对接政策征求意见流程
This commit is contained in:
@@ -259,6 +259,7 @@
|
|||||||
:accept="accept"
|
:accept="accept"
|
||||||
:fileMax_M="fileMax_M"
|
:fileMax_M="fileMax_M"
|
||||||
@uploadSuccess="uploadSuccess"/>
|
@uploadSuccess="uploadSuccess"/>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -291,6 +292,7 @@
|
|||||||
active: '1',
|
active: '1',
|
||||||
accept: '',
|
accept: '',
|
||||||
fileMax_M: 0,
|
fileMax_M: 0,
|
||||||
|
dataLoading: false,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
formRules: {
|
formRules: {
|
||||||
@@ -337,7 +339,7 @@
|
|||||||
checkBox: false,
|
checkBox: false,
|
||||||
selectType: '',
|
selectType: '',
|
||||||
roleForm: {},
|
roleForm: {},
|
||||||
bpnId: '',
|
bpnId: this.$route.query.bpnId,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -439,7 +441,14 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getData()
|
//获取草稿的数据进行展示
|
||||||
|
if (this.bpnId) {
|
||||||
|
this.getTaskDraftData()
|
||||||
|
}
|
||||||
|
//获取流程中数据进行展示
|
||||||
|
if (this.taskKey) {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handlePreview(file) {
|
handlePreview(file) {
|
||||||
@@ -551,7 +560,7 @@
|
|||||||
form: json,
|
form: json,
|
||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}
|
}
|
||||||
this.completeTask(this.$route.query.taskIds,query)
|
this.completeTask(this.$route.query.taskIds, query)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//启动流程
|
//启动流程
|
||||||
@@ -586,12 +595,24 @@
|
|||||||
}, {_this: this}, res => {
|
}, {_this: this}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
|
if (this.bpnId) {
|
||||||
|
this.taskDel()
|
||||||
|
}
|
||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
this.saveLoading = false;
|
this.saveLoading = false;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//删除草稿
|
||||||
|
taskDel() {
|
||||||
|
let taskId = {
|
||||||
|
id: this.bpnId
|
||||||
|
}
|
||||||
|
taskDel(taskId).then(res => {
|
||||||
|
return res
|
||||||
|
})
|
||||||
|
},
|
||||||
handleTransfer() {
|
handleTransfer() {
|
||||||
this.title = '转办处理人'
|
this.title = '转办处理人'
|
||||||
this.checkBox = true
|
this.checkBox = true
|
||||||
@@ -670,6 +691,7 @@
|
|||||||
this.dataForm = {...this.dataForm}
|
this.dataForm = {...this.dataForm}
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
|
this.dataLoading = true
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
inboundLiaisonDetail({
|
inboundLiaisonDetail({
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
@@ -679,7 +701,9 @@
|
|||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.formProcessing(processForm)
|
this.formProcessing(processForm)
|
||||||
}
|
}
|
||||||
|
this.dataLoading = false
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
|
this.dataLoading = false
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -690,6 +714,18 @@
|
|||||||
this.$refs.personnelInformationRef.getData(row)
|
this.$refs.personnelInformationRef.getData(row)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
getTaskDraftData() {
|
||||||
|
this.dataLoading = true
|
||||||
|
queryTaskFirst({
|
||||||
|
bpnId: this.bpnId
|
||||||
|
}).then(res => {
|
||||||
|
let mes = JSON.parse(res.mes);
|
||||||
|
this.dataForm = mes.form
|
||||||
|
this.roleForm = mes.roleForm
|
||||||
|
this.commentText = mes.commentText
|
||||||
|
this.dataLoading = false
|
||||||
|
});
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user