From a62f990874d3c03c1148a631f4f1034ada615cd6 Mon Sep 17 00:00:00 2001 From: liyawei Date: Wed, 28 Sep 2022 12:14:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=90=88=E8=A7=84=E8=AF=84?= =?UTF-8?q?=E4=BC=B0=E6=B5=81=E7=A8=8B=EF=BC=8C=E8=B4=A3=E4=BB=BB=E4=BA=BA?= =?UTF-8?q?=E5=A1=AB=E5=86=99=E8=AF=84=E4=BC=B0=E5=8F=8D=E9=A6=88=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9D=A1=E6=AC=BE=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/xmpg/step3.vue | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue index 1bb8eb380..d1c3403bf 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue @@ -112,6 +112,19 @@ align="center" label="条款名称"> + + + + + +
+
+ 关闭 +
+
@@ -513,7 +533,9 @@ export default { currentPage: 1, pageSize: 20, nodeList: [], + itemsTextDialogs:false, isTransfer: false, + itemsText:'', // 调整处理人抽屉状态 drawerModal: false, batchEditForm: { @@ -671,6 +693,10 @@ export default { }); window.open(routeUrl.href, "_blank"); }, + itemsTextDialog(itemsNum, text) { + this.itemsTextDialogs = true + this.itemsText = '

' + itemsNum + '

' + text.replace(/''/g, '\'') + }, //查询项目下的标准 getStandData() { this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", { @@ -764,6 +790,7 @@ export default { this.$set(items, "standYear", item.standYear); this.$set(items, "standSort", item.standSort); this.$set(items, "standNumber", item.standNumber); + this.$set(items, "termsConditions", item.termsConditions); } }) }) @@ -777,12 +804,28 @@ export default { if(index > -1){ dataListChildren.splice(index, 1) } + let idList = [] dataListChildren.forEach(item => { + idList.push(item.id) item.workPeople = this.$store.getters.userInfo.userName item.workPeopleId = this.$store.getters.userInfo.userId }) + this.$http.post("SarStandItems/sar-stand-items/findTermsConditions",{ + idList: idList + }, { + _this:this + }, res => { + res.data.forEach(val => { + dataListChildren.forEach(item => { + if(item.id == val.id){ + item.termsConditions = val.termsConditions + } + }) + }) + }) this.dataList = dataListChildren; this.total = this.dataList.length; + this.$forceUpdate() } else { let dataChildren = []; let dataListChildren = []; @@ -896,11 +939,21 @@ export default { this.$message.warning("请填写完整的不符合项信息"); this.comFlag = 0; } else { + this.listForm.breakdownList.forEach(item => { + if (item.termsConditions) { + item.termsConditions = '' + } + }); this.listForm.dataList.forEach(item => { // item.userId = this.$store.getters.userInfo.userId if (item.workPeople === "请选择责任人") { item.workPeople = ""; } + item.children.forEach(val => { + if(val.termsConditions){ + delete val.termsConditions + } + }) }); this.isSubmit = true; this.listForm.commentText = this.commentText;