对接重点认证标准/政策合规性项目审查流程
This commit is contained in:
+3
@@ -284,6 +284,9 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
save(callback){
|
||||||
|
callback && callback(this.roleForm)
|
||||||
|
},
|
||||||
getData(item) {
|
getData(item) {
|
||||||
let row = item ? JSON.parse(JSON.stringify(item)) : {}
|
let row = item ? JSON.parse(JSON.stringify(item)) : {}
|
||||||
this.roleForm = {
|
this.roleForm = {
|
||||||
|
|||||||
+4
-1
@@ -340,7 +340,7 @@
|
|||||||
getData(row) {
|
getData(row) {
|
||||||
this.infoTableDatas = row.infoTableDatas || []
|
this.infoTableDatas = row.infoTableDatas || []
|
||||||
this.infoTableDatas = [...this.infoTableDatas]
|
this.infoTableDatas = [...this.infoTableDatas]
|
||||||
this.multipleTableData = row.productPlanningList || []
|
this.multipleTableData = row.cpghDataList || []
|
||||||
this.multipleTableData = [...this.multipleTableData]
|
this.multipleTableData = [...this.multipleTableData]
|
||||||
},
|
},
|
||||||
submit(callback) {
|
submit(callback) {
|
||||||
@@ -350,6 +350,9 @@
|
|||||||
this.$message.warning('请至少添加一条数据')
|
this.$message.warning('请至少添加一条数据')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
save(callback) {
|
||||||
|
callback && callback(this.multipleTableData)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -351,6 +351,7 @@
|
|||||||
if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey2' ||
|
if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey2' ||
|
||||||
this.taskKey == 'PolicyComplianceProgramReviewProcessKey4' ||
|
this.taskKey == 'PolicyComplianceProgramReviewProcessKey4' ||
|
||||||
this.taskKey == 'PolicyComplianceProgramReviewProcessKey5' ||
|
this.taskKey == 'PolicyComplianceProgramReviewProcessKey5' ||
|
||||||
|
this.taskKey == 'PolicyComplianceProgramReviewProcessKey9' ||
|
||||||
this.taskKey == 'PolicyComplianceProgramReviewProcessKey10' ||
|
this.taskKey == 'PolicyComplianceProgramReviewProcessKey10' ||
|
||||||
this.taskKey == 'PolicyComplianceProgramReviewProcessKey11' ||
|
this.taskKey == 'PolicyComplianceProgramReviewProcessKey11' ||
|
||||||
this.taskKey == 'PolicyComplianceProgramReviewProcessKey12' ||
|
this.taskKey == 'PolicyComplianceProgramReviewProcessKey12' ||
|
||||||
@@ -454,17 +455,52 @@
|
|||||||
this.openButtonLoading()
|
this.openButtonLoading()
|
||||||
if (!this.taskKey || this.taskKey == 'PolicyComplianceProgramReviewProcessKey1') {
|
if (!this.taskKey || this.taskKey == 'PolicyComplianceProgramReviewProcessKey1') {
|
||||||
this.draftSaving()
|
this.draftSaving()
|
||||||
|
} else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey3') {
|
||||||
|
let _formData = new FormData();
|
||||||
|
this.$refs.personnelInformationRef.save((row) => {
|
||||||
|
const data = Object.assign(this.dataForm, row);
|
||||||
|
data.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
|
||||||
|
_formData.append("taskIds", this.$route.query.taskIds);
|
||||||
|
_formData.append("json", JSON.stringify({
|
||||||
|
form: data,
|
||||||
|
commentText: this.commentText,
|
||||||
|
currentUserId: this.$store.getters.userInfo.userId
|
||||||
|
}));
|
||||||
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.closeButtonLoading()
|
||||||
|
this.$message.success("保存成功");
|
||||||
|
this.$refs.solicitationListRef.getData()
|
||||||
|
}).catch(e => {
|
||||||
|
this.closeButtonLoading()
|
||||||
|
});
|
||||||
|
})
|
||||||
|
} else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey7') {
|
||||||
|
let _formData = new FormData();
|
||||||
|
let dataForm = JSON.parse(JSON.stringify(this.dataForm))
|
||||||
|
_formData.append("taskIds", this.$route.query.taskIds);
|
||||||
|
_formData.append("json", JSON.stringify({
|
||||||
|
form: dataForm,
|
||||||
|
commentText: this.commentText,
|
||||||
|
currentUserId: this.$store.getters.userInfo.userId
|
||||||
|
}));
|
||||||
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.closeButtonLoading()
|
||||||
|
this.$message.success("保存成功");
|
||||||
|
this.$refs.solicitationListRef.getData()
|
||||||
|
}).catch(e => {
|
||||||
|
this.closeButtonLoading()
|
||||||
|
});
|
||||||
} else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey8' ||
|
} else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey8' ||
|
||||||
this.taskKey == 'PolicyComplianceProgramReviewProcessKey9') {
|
this.taskKey == 'PolicyComplianceProgramReviewProcessKey9') {
|
||||||
if (this.dataForm.departmentType == 'undertaking') {//事业部提交
|
if (this.dataForm.departmentType == 'undertaking') {//事业部保存
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
this.$refs.solicitationListRef.save((row, ids) => {
|
let dataForm = JSON.parse(JSON.stringify(this.dataForm))
|
||||||
|
this.$refs.businessDivisionListRef.submit((row) => {
|
||||||
_formData.append("taskIds", this.$route.query.taskIds);
|
_formData.append("taskIds", this.$route.query.taskIds);
|
||||||
|
dataForm.sybDataList = row
|
||||||
_formData.append("json", JSON.stringify({
|
_formData.append("json", JSON.stringify({
|
||||||
form: this.dataForm,
|
form: dataForm,
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
policySolicitOpinionEOList: row,
|
|
||||||
removeIds: ids,
|
|
||||||
currentUserId: this.$store.getters.userInfo.userId
|
currentUserId: this.$store.getters.userInfo.userId
|
||||||
}));
|
}));
|
||||||
saveTaskForPub(_formData).then(res => {
|
saveTaskForPub(_formData).then(res => {
|
||||||
@@ -475,14 +511,15 @@
|
|||||||
this.closeButtonLoading()
|
this.closeButtonLoading()
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
} else if (this.data.departmentType == 'productPlanning') {//产品规划部提交
|
} else if (this.data.departmentType == 'productPlanning') {//产品规划部保存
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
|
let dataForm = JSON.parse(JSON.stringify(this.dataForm))
|
||||||
this.$refs.solicitationListRef.save((row, ids) => {
|
this.$refs.solicitationListRef.save((row, ids) => {
|
||||||
_formData.append("taskIds", this.$route.query.taskIds);
|
_formData.append("taskIds", this.$route.query.taskIds);
|
||||||
|
dataForm.cpghDataList = row
|
||||||
_formData.append("json", JSON.stringify({
|
_formData.append("json", JSON.stringify({
|
||||||
form: this.dataForm,
|
form: this.dataForm,
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
policySolicitOpinionEOList: row,
|
|
||||||
removeIds: ids,
|
removeIds: ids,
|
||||||
currentUserId: this.$store.getters.userInfo.userId
|
currentUserId: this.$store.getters.userInfo.userId
|
||||||
}));
|
}));
|
||||||
@@ -571,9 +608,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (productPlanning) {
|
if (productPlanning) {
|
||||||
this.dataForm.departmentType = 'productPlanning'
|
this.dataForm.departmentType = 'productPlanning' //产品规划
|
||||||
} else if (undertaking) {
|
} else if (undertaking) {
|
||||||
this.dataForm.departmentType = 'undertaking'
|
this.dataForm.departmentType = 'undertaking' //事业
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning("请选择责任人");
|
this.$message.warning("请选择责任人");
|
||||||
return
|
return
|
||||||
@@ -590,6 +627,7 @@
|
|||||||
this.closeButtonLoading()
|
this.closeButtonLoading()
|
||||||
this.$refs.personnelInformationRef.submit((row) => {
|
this.$refs.personnelInformationRef.submit((row) => {
|
||||||
const json = Object.assign(this.dataForm, row);
|
const json = Object.assign(this.dataForm, row);
|
||||||
|
json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
|
||||||
json.commentText = this.commentText
|
json.commentText = this.commentText
|
||||||
json.approvalFlag = 0
|
json.approvalFlag = 0
|
||||||
let query = {
|
let query = {
|
||||||
@@ -625,7 +663,7 @@
|
|||||||
this.$refs.productPlanningListRef.submit((row) => {
|
this.$refs.productPlanningListRef.submit((row) => {
|
||||||
const json = Object.assign(this.dataForm);
|
const json = Object.assign(this.dataForm);
|
||||||
json.commentText = this.commentText
|
json.commentText = this.commentText
|
||||||
json.productPlanningList = row
|
json.cpghDataList = row
|
||||||
json.approvalFlag = 0
|
json.approvalFlag = 0
|
||||||
let query = {
|
let query = {
|
||||||
form: json,
|
form: json,
|
||||||
@@ -654,23 +692,34 @@
|
|||||||
handleReject() {
|
handleReject() {
|
||||||
// approvalFlag value:0通过 1驳回
|
// approvalFlag value:0通过 1驳回
|
||||||
this.openButtonLoading()
|
this.openButtonLoading()
|
||||||
if (this.taskKey == 'PolicySolicitOpinionProcessKey10' ||
|
if (this.taskKey == 'PolicySolicitOpinionProcessKey9') {
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey11' ||
|
if (this.dataForm.departmentType == 'undertaking') {//事业部驳回
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey12' ||
|
this.$refs.businessDivisionListRef.submit((row) => {
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey13' ||
|
const json = Object.assign(this.dataForm);
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey14') {
|
json.commentText = this.commentText
|
||||||
this.$refs.solicitationListRef.submit((row, ids) => {
|
json.sybDataList = row
|
||||||
const json = Object.assign(this.dataForm);
|
json.approvalFlag = 1
|
||||||
json.commentText = this.commentText
|
let query = {
|
||||||
json.approvalFlag = 1
|
form: json,
|
||||||
let query = {
|
commentText: this.commentText
|
||||||
form: json,
|
}
|
||||||
policySolicitOpinionEOList: row,
|
this.openButtonLoading()
|
||||||
removeIds: ids,
|
this.completeTask(this.$route.query.taskIds, query)
|
||||||
commentText: this.commentText
|
})
|
||||||
}
|
} else if (this.data.departmentType == 'productPlanning') {//产品规划部驳回
|
||||||
this.completeTask(this.$route.query.taskIds, query)
|
this.$refs.productPlanningListRef.save((row) => {
|
||||||
})
|
const json = Object.assign(this.dataForm);
|
||||||
|
json.commentText = this.commentText
|
||||||
|
json.cpghDataList = row
|
||||||
|
json.approvalFlag = 1
|
||||||
|
let query = {
|
||||||
|
form: json,
|
||||||
|
commentText: this.commentText
|
||||||
|
}
|
||||||
|
this.openButtonLoading()
|
||||||
|
this.completeTask(this.$route.query.taskIds, query)
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const json = Object.assign(this.dataForm);
|
const json = Object.assign(this.dataForm);
|
||||||
json.commentText = this.commentText
|
json.commentText = this.commentText
|
||||||
|
|||||||
@@ -507,6 +507,35 @@
|
|||||||
this.openButtonLoading()
|
this.openButtonLoading()
|
||||||
if (!this.taskKey || this.taskKey == 'PolicySolicitOpinionProcessKey1') {
|
if (!this.taskKey || this.taskKey == 'PolicySolicitOpinionProcessKey1') {
|
||||||
this.draftSaving()
|
this.draftSaving()
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey3') {
|
||||||
|
let _formData = new FormData();
|
||||||
|
_formData.append("taskIds", this.$route.query.taskIds);
|
||||||
|
let data = Object.assign(this.dataForm, this.$refs.personnelInformationRef.roleForm);
|
||||||
|
_formData.append("json", JSON.stringify({
|
||||||
|
form: data,
|
||||||
|
commentText: this.commentText,
|
||||||
|
currentUserId: this.$store.getters.userInfo.userId
|
||||||
|
}));
|
||||||
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.closeButtonLoading()
|
||||||
|
this.$message.success("保存成功");
|
||||||
|
}).catch(e => {
|
||||||
|
this.closeButtonLoading()
|
||||||
|
});
|
||||||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey7') {
|
||||||
|
let _formData = new FormData();
|
||||||
|
_formData.append("taskIds", this.$route.query.taskIds);
|
||||||
|
_formData.append("json", JSON.stringify({
|
||||||
|
form: this.dataForm,
|
||||||
|
commentText: this.commentText,
|
||||||
|
currentUserId: this.$store.getters.userInfo.userId
|
||||||
|
}));
|
||||||
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.closeButtonLoading()
|
||||||
|
this.$message.success("保存成功");
|
||||||
|
}).catch(e => {
|
||||||
|
this.closeButtonLoading()
|
||||||
|
});
|
||||||
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
} else if (this.taskKey == 'PolicySolicitOpinionProcessKey8' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey9' ||
|
this.taskKey == 'PolicySolicitOpinionProcessKey9' ||
|
||||||
this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
this.taskKey == 'PolicySolicitOpinionProcessKey12') {
|
||||||
|
|||||||
Reference in New Issue
Block a user