From 79af2c523b7789e00ed1542b06fbc9ea7f87cf7a Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Fri, 27 Aug 2021 14:05:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AF=84=E4=BC=B0-=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=20=E6=B5=81=E7=A8=8B=E7=9A=84=E7=AC=AC6=E6=AD=A5?= =?UTF-8?q?=E7=9A=84=E6=89=B9=E9=87=8F=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/xmpg2/step6.vue | 207 +++++++++++++++++- 1 file changed, 206 insertions(+), 1 deletion(-) diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue index f5de1e3ca..8401257ba 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step6.vue @@ -42,6 +42,12 @@ +
+
+ 批量编辑 + +
+
+ + + + + + + + + + +
@@ -331,6 +348,73 @@ @submit="handleSubmit" > + +
+ + 在研产品 + + + + + + + + + + + + + +
+ 在产产品 + + + + + + + + + + + + + +
+
+ +
@@ -349,6 +433,27 @@ export default { }, data() { return { + batchEditForm: { + // 在研产品 + // 合规 + complianceReasons :'', + // 不合规 + noCompliance :'', + // 应对措施 + countermeasures :'', + // 完成时间 + completionTime :'', + + // 在产产品 + // 合规 + zcComplianceReasons :'', + // 不合规 + zcNoCompliance:'', + // 应对措施 + zcCountermeasures:'', + // 完成时间 + zcCompletionTime:'' + }, hasChildren: true, active: "1", loading: false, @@ -398,6 +503,83 @@ export default { }; }, methods: { + //批量编辑确定按钮事件 + saveBatchEditForm() { + + // console.log(this.selectList) + for( let a = 0; a < this.dataList.length; a++) { + for ( let b = 0; b < this.selectList.length; b++) { + if (this.dataList[a].id === this.selectList[b]) { + //合规 + this.dataList[a].complianceReasons = this.batchEditForm.complianceReasons + //不合规 + this.dataList[a].noCompliance = this.batchEditForm.noCompliance + //应对措施 + this.dataList[a].countermeasures = this.batchEditForm.countermeasures + //完成时间 + this.dataList[a].completionTime = this.batchEditForm.completionTime + //合规 + this.dataList[a].zcComplianceReasons = this.batchEditForm.zcComplianceReasons + //不合规 + this.dataList[a].zcNoCompliance = this.batchEditForm.zcNoCompliance + //应对措施 + this.dataList[a].zcCountermeasures = this.batchEditForm.zcCountermeasures + //完成时间 + this.dataList[a].zcCompletionTime = this.batchEditForm.zcCompletionTime + }else { + for (let i=0;i 0) { + //合规 + this.batchEditForm.complianceReasons = '' + //不合规 + this.batchEditForm.noCompliance = '' + //应对措施 + this.batchEditForm.countermeasures = '' + //完成时间 + this.batchEditForm.completionTime = '' + //合规 + this.batchEditForm.zcComplianceReasons = '' + //不合规 + this.batchEditForm.zcNoCompliance = '' + //应对措施 + this.batchEditForm.zcCountermeasures = '' + //完成时间 + this.batchEditForm.zcCompletionTime = '' + this.modalshowflag = true + } else { + this.$message.warning('请选择要编辑的数据') + } + }, // 点击查看 handlePreview(item) { let routeUrl = this.$router.resolve({ @@ -525,7 +707,11 @@ export default { }, //标准表格选择框改变 selectStandChange(data) { - this.selectList = data; + this.selectList = []; + for (let i = 0; i < data.length; i++) { + this.selectList.push(data[i].id); + } + }, getTree() { this.$http.get("SarInstitution/institution/institutionAndUser", {}, {}, res => { @@ -605,6 +791,25 @@ export default { height: calc(~'100% - 103px'); overflow: auto; + .tableTitle { + margin-bottom: 10px; + height: 30px; + line-height: 30px; + position: relative; + font-size: 13px; + font-weight: bold; + + .tableButton { + position: absolute; + right: 0; + top: 0; + } + + .accessStandardsAndRegulations { + height: 100%; + } + } + .accessStandardsAndRegulations { height: 100%; }