From 6082bf23f88dd3295e9a7e7df49fc24804b20942 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 7 Nov 2024 09:18:51 +0800 Subject: [PATCH] =?UTF-8?q?YT-681=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E7=94=B3=E8=AF=B7=EF=BC=8C=E7=94=9F=E6=88=90=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=97=B6=E5=8C=85=E8=A3=85=E6=95=B0=E9=87=8F=E6=98=AF?= =?UTF-8?q?0=E6=97=A0=E6=B3=95=E4=BF=AE=E6=94=B9=E7=AE=B1=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliverRequestMain/index.vue | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index f8a548114..f1a474657 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -723,6 +723,21 @@ const getGenerateLabelList = async (row) => { if (obj) { item.packUnit = obj.packUnit item.packQty = obj.packQty + if (!item.packQty) { + // 如果没有数量可以输入 + SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { + if (item.field == 'packQty') { + item.tableForm.disabled = false + } + }) + } else { + // 有数量不可以输入 + SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { + if (item.field == 'packQty') { + item.tableForm.disabled = true + } + }) + } } else { item.packUnit = '' item.packQty = '' @@ -775,6 +790,21 @@ const formSelectChangeLabel = (field, val, row) => { let obj = row.boxPackaging.find((item) => item.packUnit == val) if (obj) { row.packQty = obj.packQty + // 如果没有数量可以输入 + if (!row.packQty) { + SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { + if (item.field == 'packQty') { + item.tableForm.disabled = false + } + }) + } else { + // 有数量不可以输入 + SupplierdeliverRequestDetailLabel.allSchemas.tableFormColumns.forEach(item => { + if (item.field == 'packQty') { + item.tableForm.disabled = true + } + }) + } // 获取托规格 const params1 = { itemCode: row.itemCode,