From 9f571972ce45d45facd8ca667376e2d4c99da3af Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期一, 07 四月 2025 13:22:06 +0800 Subject: [PATCH] 原辅料下单修改 --- src/views/structural/capabilityAndLaboratory/capability/index.vue | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/views/structural/capabilityAndLaboratory/capability/index.vue b/src/views/structural/capabilityAndLaboratory/capability/index.vue index ff4930d..f184385 100644 --- a/src/views/structural/capabilityAndLaboratory/capability/index.vue +++ b/src/views/structural/capabilityAndLaboratory/capability/index.vue @@ -155,7 +155,7 @@ { label: '璇曢獙瀹�', prop: 'sonLaboratory' }, { label: '瑕佹眰鎻忚堪', prop: 'askTell' }, { label: '瑕佹眰鍊�', prop: 'ask' }, - { label: '璇曢獙鏉′欢', prop: 'radiusList' }, + // { label: '璇曢獙鏉′欢', prop: 'radiusList' }, { label: '璁¢噺鍗曚綅', prop: 'unit' }, { label: '宸ユ椂(H)', prop: 'manHour' }, { label: '棰勮鏃堕棿(H)', prop: 'manDay' }, @@ -282,17 +282,20 @@ clickFun: (row) => { this.bindPartFirst(row); }, + disabled: (row) => { + return row.product + } }, - // { - // name: '杞﹂棿缁戝畾', - // type: 'text', - // clickFun: (row) => { - // this.bindWokshop1(row); - // }, - // disabled: (row) => { - // return row.objectType != '鍘熻緟鏂�' && row.objectType != '鍖呮潗' - // } - // }, + { + name: '杞﹂棿缁戝畾', + type: 'text', + clickFun: (row) => { + this.bindWokshop1(row); + }, + disabled: (row) => { + return row.objectType != '鍘熻緟鏉�' && row.objectType != '鍖呮潗' + } + }, ] } ], @@ -348,7 +351,7 @@ // this.bindWokshop(row); // }, // showHide: (row) => { - // if (this.currentObj.objectType != '鍘熻緟鏂�' && row.objectType != '鍖呮潗') { + // if (this.currentObj.objectType != '鍘熻緟鏉�' && row.objectType != '鍖呮潗') { // return false // } else { // return true @@ -413,7 +416,7 @@ this.getDicts("product_classification").then((response) => { this.productClassification = this.dictToValue(response.data); }); - // this.selectWorkShop() + this.selectWorkShop() }, computed: { title() { @@ -586,7 +589,7 @@ // 浜у搧缁存姢 upProduct(row) { this.currentObj = row; - // if (this.currentObj.objectType == '鍘熻緟鏂�') { + // if (this.currentObj.objectType == '鍘熻緟鏉�') { // if (this.productColumn.length < 4) { // this.productColumn.splice(2, 0, { label: '杞﹂棿鍚嶇О', prop: 'workShopName' }) // } -- Gitblit v1.9.3