From 71c4ece010f68a74eeff5e986caecb9a0bb2e36c Mon Sep 17 00:00:00 2001 From: Crunchy <3114200645@qq.com> Date: 星期四, 25 四月 2024 17:37:39 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/components/view/b1-inspection-order.vue | 79 +++++++++++++++++++++++++++++++-------- 1 files changed, 63 insertions(+), 16 deletions(-) diff --git a/src/components/view/b1-inspection-order.vue b/src/components/view/b1-inspection-order.vue index c09dd5f..7a4c8e1 100644 --- a/src/components/view/b1-inspection-order.vue +++ b/src/components/view/b1-inspection-order.vue @@ -172,7 +172,7 @@ </el-row> </span> </el-dialog> - <el-dialog title="鏁版嵁鏌ョ湅" :visible.sync="dataDialogVisible" width="70%"> + <el-dialog title="鏁版嵁鏌ョ湅" :visible.sync="dataDialogVisible" width="80%"> <div style="height: 70vh;overflow-y: auto;" v-if="dataDialogVisible"> <ValueTable ref="ValueTableDataLook" :url="$api.insOrder.selectSampleAndProductByOrderId" :componentData="componentDataDataLook"/> @@ -233,7 +233,7 @@ type: 'text', method: 'handleDataLook', disabFun: (row, index) => { - return row.state != 1 + return row.state != 1 && row.state != 4 } }, { id: 'download', @@ -241,7 +241,7 @@ type: 'text', method: 'download', disabFun: (row, index) => { - return row.state != 1 || row.reportId == null + return row.state != 4 || row.reportId == null } }, { id: 'verify', @@ -257,7 +257,7 @@ type: 'text', method: 'handlEquash', disabFun: (row, index) => { - return row.state == 2 || row.state == 3 + return row.state != 1 && row.state != 0 } }, { font: '鍒嗛厤', @@ -290,7 +290,37 @@ }, createUser: { select: [] - } + }, + orderType: { + select: [] + }, + processing: { + select: [{ + value: 1, + label: '瀹為獙瀹ゅ鐞�' + },{ + value: 0, + label: '濮旀墭鍗曚綅鍙栧洖' + }] + }, + isLeave: { + select: [{ + value: 1, + label: '鐣欐牱' + },{ + value: 0, + label: '涓嶇暀鏍�' + }] + }, + send: { + select: [{ + value: 1, + label: '鑷彇' + },{ + value: 0, + label: '鍏朵粬' + }] + } }, selectField: {}, requiredAdd: [], @@ -322,10 +352,25 @@ label: '涓嶅悎鏍�', type: 'danger' }] - }, - inspectionValueType: {select: []} + } }, selectField: {}, + spanConfig:{ + rows:[ + { + name:'sampleCode', + index:0 + }, + { + name:'sample', + index:1 + }, + { + name:'model', + index:2 + } + ] + }, requiredAdd: [], requiredUp: [] }, @@ -364,7 +409,7 @@ this.getUserMenu() this.getAuthorizedPerson() this.getInsStateDicts() - this.selectEnumByCategoryForInspectionValueType() + this.selectEnumByCategoryForOrderType() }, methods: { getAuthorizedPerson() { @@ -436,7 +481,9 @@ this.dataDialogVisible = true; }, // 涓嬭浇鎶ュ憡 - download(row) {}, + download(row) { + console.log(row); + }, // 瀹℃牳 handleVerify(row) { // this.verifyDialogVisible = true; @@ -537,13 +584,13 @@ this.componentDataDataLook.tagField.insState.select = data }) }, - selectEnumByCategoryForInspectionValueType() { - this.$axios.post(this.$api.enums.selectEnumByCategory, { - category: "妫�楠屽�肩被鍨�" - }).then(res => { - this.componentDataDataLook.tagField.inspectionValueType.select = res.data - }) - }, + selectEnumByCategoryForOrderType() { + this.$axios.post(this.$api.enums.selectEnumByCategory, { + category: "妫�楠岀被鍒�" + }).then(res => { + this.componentData.tagField.orderType.select = res.data + }) + }, } } </script> -- Gitblit v1.9.3