diff --git a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue
index cbd76ffd0..910658e46 100644
--- a/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue
+++ b/src/pages/processCenter/pages/creatProcess/policyComplianceReview/index.vue
@@ -172,7 +172,13 @@
-
+
+
@@ -229,6 +235,7 @@ import personnelInformation from './components/personnelInformation';// 人员
import fetchList from './components/fetchList';// 未选择责任人时的列表
import businessDivisionList from './components/businessDivisionList';// 责任人为事业部时的列表
import productPlanningList from './components/productPlanningList';// 责任人为产品规划部的列表
+import Inventory from '@/pages/policyRegulation/standardTrackingList/Inventory.vue'
import {
queryTaskFirst,
saveTaskFirst,
@@ -243,6 +250,7 @@ import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
export default {
name: 'Index',
components: {
+ Inventory,
ReceiptDescription,
ProcessHeader,
ProcessTitle,
@@ -508,7 +516,7 @@ export default {
const _formData = new FormData();
this.$refs.personnelInformationRef.save((row) => {
const data = Object.assign(this.dataForm, row);
- data.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
+ // data.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
_formData.append('taskIds', this.$route.query.taskIds);
_formData.append('json', JSON.stringify({
form: data,
@@ -583,7 +591,7 @@ export default {
draftSaving () {
const _formData = new FormData();
const json = this.dataForm
- json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
+ // json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
json.commentText = this.commentText
_formData.append('id', this.bpnId || '')
_formData.append('createUser', this.$store.getters.userInfo.userId);
@@ -609,11 +617,14 @@ export default {
this.openButtonLoading()
if (!this.taskKey || this.taskKey == 'PolicyComplianceProgramReviewProcessKey1') {// 起草
this.closeButtonLoading()
+ if (!this.dataForm.infoTableDatas || this.dataForm.infoTableDatas.length === 0) {
+ return this.$message.warning('请至少添加一条数据')
+ }
this.$refs.personnelInformationRef.submit((row) => {
- this.$refs.fetchListRef.submit((val) => {
- this.openButtonLoading()
- this.startProcessRollBack(row)
- })
+ // this.$refs.fetchListRef.submit((val) => {
+ this.openButtonLoading()
+ this.startProcessRollBack(row)
+ // })
})
} else if (this.taskKey == 'PolicyComplianceProgramReviewProcessKey2' ||// 审核
this.taskKey == 'PolicyComplianceProgramReviewProcessKey4' ||// 审定
@@ -677,7 +688,7 @@ export default {
this.closeButtonLoading()
this.$refs.personnelInformationRef.submit((row) => {
const json = Object.assign(this.dataForm, row);
- json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
+ // json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
json.commentText = this.commentText
json.approvalFlag = 0
const query = {
@@ -782,7 +793,7 @@ export default {
startProcessRollBack (roleForm) {
const json = Object.assign(this.dataForm, roleForm);
json.commentText = this.commentText
- json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
+ // json.infoTableDatas = this.$refs.fetchListRef.infoTableDatas
const query = {
form: json,
commentText: this.commentText
@@ -927,7 +938,7 @@ export default {
this.$refs.personnelInformationRef.getData(row.form)
}
if (this.isFetchList) { // 拿到未选择责任人数据
- this.$refs.fetchListRef.getData(row.form.infoTableDatas)
+ // this.$refs.fetchListRef.getData(row.form.infoTableDatas)
}
if (this.isBusinessDivisionList) {// 拿到责任人为事业部门的数据
this.$nextTick(() => {
@@ -948,7 +959,7 @@ export default {
const mes = JSON.parse(res.mes);
this.dataForm = mes.form
this.$refs.personnelInformationRef.getData(mes.roleForm)
- this.$refs.fetchListRef.getData(mes.form.infoTableDatas)
+ // this.$refs.fetchListRef.getData(mes.form.infoTableDatas)
this.commentText = mes.commentText
this.dataLoading = false
});