|
@@ -67,11 +67,11 @@
|
|
|
</el-timeline>
|
|
</el-timeline>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
- <el-button v-if="form.auditStatus==5 || form.auditStatus==6" type="primary" @click="onReCommit()">提交</el-button>
|
|
|
|
|
- <el-button type="primary" @click="onSubmit()">提交</el-button>
|
|
|
|
|
- <el-button v-if="!form.auditStatus || form.auditStatus==0" @click="onSave()">暂存</el-button>
|
|
|
|
|
- <el-button v-if="form.auditStatus==5 || form.auditStatus==6" type="warning" @click="onClose()">关闭</el-button>
|
|
|
|
|
- <el-button v-if="form.auditStatus==0" type="danger" @click="onDelete()">删除</el-button>
|
|
|
|
|
|
|
+ <el-button v-if="form.auditStatus==5 || form.auditStatus==6" type="primary" @click="onReCommit()" v-loading.fullscreen.lock="fullscreenLoading">提交</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="onSubmit()" v-loading.fullscreen.lock="fullscreenLoading">提交</el-button>
|
|
|
|
|
+ <el-button v-if="!form.auditStatus || form.auditStatus==0" @click="onSave()" v-loading.fullscreen.lock="fullscreenLoading">暂存</el-button>
|
|
|
|
|
+ <el-button v-if="form.auditStatus==5 || form.auditStatus==6" type="warning" @click="onClose()" v-loading.fullscreen.lock="fullscreenLoading">关闭</el-button>
|
|
|
|
|
+ <el-button v-if="form.auditStatus==0" type="danger" @click="onDelete()" v-loading.fullscreen.lock="fullscreenLoading">删除</el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<PeopleSelect ref="peopleSelect" :type="type" :isCheck="true" :open="peopleOpen" @cancel="peopleOpen = false"
|
|
<PeopleSelect ref="peopleSelect" :type="type" :isCheck="true" :open="peopleOpen" @cancel="peopleOpen = false"
|
|
@@ -104,6 +104,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ fullscreenLoading:false,
|
|
|
tasks:[],
|
|
tasks:[],
|
|
|
loading:false,
|
|
loading:false,
|
|
|
files: [],
|
|
files: [],
|
|
@@ -278,9 +279,9 @@ export default {
|
|
|
console.log(this.form);
|
|
console.log(this.form);
|
|
|
this.form.startUserSelectAssignees = this.form.peopleList.split(',');
|
|
this.form.startUserSelectAssignees = this.form.peopleList.split(',');
|
|
|
this.form.auditPass = true;
|
|
this.form.auditPass = true;
|
|
|
- this.$parent.$parent.detailLoading = true;
|
|
|
|
|
|
|
+ this.fullscreenLoading = true;
|
|
|
create(this.form).then(response => {
|
|
create(this.form).then(response => {
|
|
|
- this.$parent.$parent.detailLoading = false;
|
|
|
|
|
|
|
+ this.fullscreenLoading = false;
|
|
|
this.$modal.msgSuccess("提交成功");
|
|
this.$modal.msgSuccess("提交成功");
|
|
|
if(this.id){
|
|
if(this.id){
|
|
|
this.$parent.$parent.closeEdit();
|
|
this.$parent.$parent.closeEdit();
|
|
@@ -302,9 +303,9 @@ export default {
|
|
|
console.log(this.form);
|
|
console.log(this.form);
|
|
|
this.form.startUserSelectAssignees = this.form.peopleList.split(',');
|
|
this.form.startUserSelectAssignees = this.form.peopleList.split(',');
|
|
|
this.form.auditPass = true;
|
|
this.form.auditPass = true;
|
|
|
- this.$parent.$parent.detailLoading = true;
|
|
|
|
|
|
|
+ this.fullscreenLoading = true;
|
|
|
reCommit(this.form).then(response => {
|
|
reCommit(this.form).then(response => {
|
|
|
- this.$parent.$parent.detailLoading = false;
|
|
|
|
|
|
|
+ this.fullscreenLoading = false;
|
|
|
this.$modal.msgSuccess("提交成功");
|
|
this.$modal.msgSuccess("提交成功");
|
|
|
if(this.id){
|
|
if(this.id){
|
|
|
this.$parent.$parent.closeEdit();
|
|
this.$parent.$parent.closeEdit();
|
|
@@ -324,9 +325,9 @@ export default {
|
|
|
this.form.startUserSelectAssignees = this.form.peopleList.split(',');
|
|
this.form.startUserSelectAssignees = this.form.peopleList.split(',');
|
|
|
}
|
|
}
|
|
|
this.form.auditPass = false;
|
|
this.form.auditPass = false;
|
|
|
- this.$parent.$parent.detailLoading = true;
|
|
|
|
|
|
|
+ this.fullscreenLoading = true;
|
|
|
save(this.form).then(response => {
|
|
save(this.form).then(response => {
|
|
|
- this.$parent.$parent.detailLoading = false;
|
|
|
|
|
|
|
+ this.fullscreenLoading = false;
|
|
|
this.$modal.msgSuccess("暂存成功");
|
|
this.$modal.msgSuccess("暂存成功");
|
|
|
if(this.id){
|
|
if(this.id){
|
|
|
this.$parent.$parent.closeEdit();
|
|
this.$parent.$parent.closeEdit();
|
|
@@ -338,7 +339,9 @@ export default {
|
|
|
//暂存删除
|
|
//暂存删除
|
|
|
async onDelete() {
|
|
async onDelete() {
|
|
|
this.$modal.confirm('是否确认删除?').then(() => {
|
|
this.$modal.confirm('是否确认删除?').then(() => {
|
|
|
|
|
+ this.fullscreenLoading = true;
|
|
|
deleteById(this.id).then(response => {
|
|
deleteById(this.id).then(response => {
|
|
|
|
|
+ this.fullscreenLoading = false;
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
this.$parent.$parent.closeEdit();
|
|
this.$parent.$parent.closeEdit();
|
|
|
})
|
|
})
|
|
@@ -347,7 +350,9 @@ export default {
|
|
|
//暂存删除
|
|
//暂存删除
|
|
|
async onClose() {
|
|
async onClose() {
|
|
|
this.$modal.confirm('是否确认关闭?').then(() => {
|
|
this.$modal.confirm('是否确认关闭?').then(() => {
|
|
|
|
|
+ this.fullscreenLoading = true;
|
|
|
closeById(this.id).then(response => {
|
|
closeById(this.id).then(response => {
|
|
|
|
|
+ this.fullscreenLoading = false;
|
|
|
this.$modal.msgSuccess("流程已关闭");
|
|
this.$modal.msgSuccess("流程已关闭");
|
|
|
this.$parent.$parent.closeEdit();
|
|
this.$parent.$parent.closeEdit();
|
|
|
})
|
|
})
|