diff --git a/src/api/unqualProcess.js b/src/api/unqualProcess.js index 61866c15e..c51fad700 100644 --- a/src/api/unqualProcess.js +++ b/src/api/unqualProcess.js @@ -63,12 +63,13 @@ export function meetingByMonth(params) { //未符合项模块新增 export function addUn( - closeState, standSerialNumber, standName, + closeState,standId, standSerialNumber, standName, itemsNum, itemsName, productType, productLine, productName, reason, responsibleUnit, dutyEngineer, authEngineer, qaEngineer, planCloseTime) { const data = { closeState, + standId, standSerialNumber, //标准号 standName, //标准名称 itemsNum, //条款号 @@ -92,12 +93,13 @@ export function addUn( //未符合项模块编辑 export function editUn( - closeState, standSerialNumber, standName, + closeState, standId, standSerialNumber, standName, itemsNum, itemsName, productType, productLine, productName, reason, responsibleUnit, dutyEngineer, authEngineer, qaEngineer, planCloseTime, id) { const data = { closeState, + standId, standSerialNumber, //标准号 standName, //标准名称 itemsNum, //条款号 diff --git a/src/pages/processCenter/pages/components/ProcessMixin.vue b/src/pages/processCenter/pages/components/ProcessMixin.vue index b624620b9..808fcac93 100644 --- a/src/pages/processCenter/pages/components/ProcessMixin.vue +++ b/src/pages/processCenter/pages/components/ProcessMixin.vue @@ -80,7 +80,19 @@ export default { { label: '外部标准化会后管理流程', value: "22" - } + }, + { + label: "企标复审流程", + value: "23" + }, + { + label: '企标废止流程', + value: "24" + }, + { + label: '企标制修订计划管控', + value: "25" + }, ], formDisableFlag: false, pickerOptions: { diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue index d4d2818c9..a802ef400 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step1-1.vue @@ -676,6 +676,7 @@ export default { this.roleForm = mes.roleForm; this.commentText = mes.commentText; this.dataList = mes.form.dataList; + this.fileType = mes.form.fileType this.dataList.forEach(item => { if(!item.productLine){ this.dataList = null diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step5.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step5.vue index 90edd8a9d..ff2a30683 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step5.vue @@ -421,7 +421,6 @@ export default { }, //批量分发按钮 choiceZRRS(row, type, index) { - console.log(row); this.selectedId = row.id || row.standId; this.type = type; if (type === 1) { @@ -429,13 +428,20 @@ export default { this.nodeList = []; this.zrIndex = index; this.zrType = type; - this.nodeList.push(row); + if (row.workPeopleId) { + this.nodeList = row.workPeopleId.split(","); + }else{ + this.nodeList.push(row); + } this.modalshowflag = true; } else if (type === 2) { // 批量 if (this.selectList.length > 0) { this.zrType = type; this.nodeList = []; + if (row.workPeopleId) { + this.nodeList = row.workPeopleId.split(","); + } this.modalshowflag = true; this.drawerTitle = "批量选择责任人"; } else { @@ -461,6 +467,75 @@ export default { } }, + checkedRole(data) { + console.log(data); + var idList = ""; + var nameList = ""; + data.forEach(item => { + if (nameList.length > 0) { + nameList += ","; + idList += ","; + } + idList += item.id; + nameList += item.name; + }); + //单选操作 + if (this.type === 1) { + this.dataList.forEach(item => { + if(item.standId === this.selectedId){ + item.workPeople = nameList || '请选择责任人' + item.workPeopleId = idList; + } + if (item.children) { + item.children.forEach(items => { + if (items.id === this.selectedId) { + items.workPeople = nameList; + items.workPeopleId = idList; + // this.$set(items,'workPeople',data[0].name) + //this.$set(items,'workPeopleId',data[0].id) + } + }); + } + }); + this.dataList = JSON.parse(JSON.stringify(this.dataList)); + } else if (this.type === 2) { + this.selectList.forEach(item => { + this.dataList.map(items => { + if (item.standId === items.standId) { + items.workPeople = nameList || '请选择责任人' + items.workPeopleId = idList; + // this.$message.warning('您只能针对条款进行分发') + } + if (items.children) { + items.children.map(childrenItem => { + if (childrenItem.id === item.id) { + childrenItem.workPeople = nameList; + childrenItem.workPeopleId = idList; + } + }); + } + }); + }); + this.dataList = JSON.parse(JSON.stringify(this.dataList)); + } else if (this.type === 3) { + // console.log("529",this.workPeopleList) + for (let i = 0; i < this.workPeopleList.children.length; i++) { + + this.workPeopleList.children[i].workPeople = data[0].name; + this.workPeopleList.children[i].workPeopleId = data[0].id; + // console.log(row.children[i].id) + // console.log(row.children[i].workPeople) + } + + // items.children.map(childrenItem => { + // + // childrenItem.workPeople = data[0].name; + // childrenItem.workPeopleId = data[0].id; + // }) + + } + this.modalshowflag = false; + }, setChildren(children, type) { // 编辑多个子层级 children.map(j => { @@ -541,74 +616,6 @@ export default { this.roleRow = this.$refs.tree.getCheckedNodes()[0]; } }, - checkedRole(data) { - var idList = ""; - var nameList = ""; - data.forEach(item => { - if (nameList.length > 0) { - nameList += ","; - idList += ","; - } - idList += item.id; - nameList += item.name; - }); - //单选操作 - if (this.type === 1) { - this.dataList.forEach(item => { - if(item.standId === this.selectedId){ - item.workPeople = nameList; - item.workPeopleId = idList; - } - if (item.children) { - item.children.forEach(items => { - if (items.id === this.selectedId) { - items.workPeople = nameList; - items.workPeopleId = idList; - // this.$set(items,'workPeople',data[0].name) - //this.$set(items,'workPeopleId',data[0].id) - } - }); - } - }); - this.dataList = JSON.parse(JSON.stringify(this.dataList)); - } else if (this.type === 2) { - this.selectList.forEach(item => { - this.dataList.map(items => { - if (item.standId === items.standId) { - items.workPeople = nameList; - items.workPeopleId = idList; - // this.$message.warning('您只能针对条款进行分发') - } - if (items.children) { - items.children.map(childrenItem => { - if (childrenItem.id === item.id) { - childrenItem.workPeople = nameList; - childrenItem.workPeopleId = idList; - } - }); - } - }); - }); - this.dataList = JSON.parse(JSON.stringify(this.dataList)); - } else if (this.type === 3) { - // console.log("529",this.workPeopleList) - for (let i = 0; i < this.workPeopleList.children.length; i++) { - - this.workPeopleList.children[i].workPeople = data[0].name; - this.workPeopleList.children[i].workPeopleId = data[0].id; - // console.log(row.children[i].id) - // console.log(row.children[i].workPeople) - } - - // items.children.map(childrenItem => { - // - // childrenItem.workPeople = data[0].name; - // childrenItem.workPeopleId = data[0].id; - // }) - - } - this.modalshowflag = false; - }, cancleUserInfo() { this.modalshowflag = false; } diff --git a/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue b/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue index a2096a542..cb7767e23 100644 --- a/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue +++ b/src/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase.vue @@ -116,6 +116,7 @@ prop="standName" fixed="left" width="180" + show-overflow-tooltip label="标准名称">