From 0e48cf4e6c4ca74f2e32beb089faad8513169d68 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Wed, 21 Aug 2024 08:57:37 +0800 Subject: [PATCH] =?UTF-8?q?HL-4885=20=E8=81=82=E5=96=9C=E5=A9=B7=EF=BC=9A@?= =?UTF-8?q?=E9=82=B1=E6=99=A8=20@=E7=8E=8B=E5=AE=87=E9=A3=9E=20=E5=85=88?= =?UTF-8?q?=E6=8A=8A=E6=95=B0=E9=87=8F=E7=9A=84=E6=A0=A1=E9=AA=8C=E6=8B=BF?= =?UTF-8?q?=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionreturnRequestMain/index.vue | 22 ++++++++------- .../productionreturnRequestMainNo/index.vue | 28 ++++++++++--------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue index c38810975..b4fff91b6 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue @@ -208,13 +208,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => } else { row['batch'] = '000000' } + // HL-4885 聂喜婷:@邱晨 @王宇飞 先把数量的校验拿掉 // 修改 tableform 属性 数量最大值设置为库存余额中数量 // TODO: tableFormColumns 修改属性目前只限于整个列 并不满足行要求 例如: 第一条数据最大10 第二条数据最大20 那么第一条数据会变成最大20限制 - ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => { - if(item.field == 'qty' && val[0]['qty'] > 0) { - item.tableForm.max = val[0]['qty'] - } - }) + // ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => { + // if(item.field == 'qty' && val[0]['qty'] > 0) { + // item.tableForm.max = val[0]['qty'] + // } + // }) } } else if(formField == 'workStationCode') { // 明细查询页赋值 @@ -257,12 +258,13 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { } else { setV['batch'] = '000000' } + // HL-4885 聂喜婷:@邱晨 @王宇飞 先把数量的校验拿掉 // 修改 tableform 属性 数量最大值设置为库存余额中数量 - ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => { - if(item.field == 'qty' && val[0]['qty'] > 0) { - item.tableForm.max = val[0]['qty'] - } - }) + // ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => { + // if(item.field == 'qty' && val[0]['qty'] > 0) { + // item.tableForm.max = val[0]['qty'] + // } + // }) } } else if(formField == 'workStationCode') { setV['workStationCode'] = val[0]['code'] diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue index 14dd3b34a..817725eb9 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue @@ -193,15 +193,16 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['uom'] = val[0]['uom'] row['inventoryStatus'] = val[0]['inventoryStatus'] row['qty'] = Number(val[0]['qty']) + // HL-4885 聂喜婷:@邱晨 @王宇飞 先把数量的校验拿掉 // 修改 tableform 属性 数量最大值设置为库存余额中数量 - ProductionreturnRequestDetail.allSchemas.tableFormColumns.forEach(item => { - if(item.field == 'qty' && Number(val[0]['qty'])>item.tableForm.min) { - item.tableForm.max = Number(val[0]['qty']) - } - // if(item.field == 'batch') { - // item.tableForm.disabled = false - // } - }) + // ProductionreturnRequestDetail.allSchemas.tableFormColumns.forEach(item => { + // if(item.field == 'qty' && Number(val[0]['qty'])>item.tableForm.min) { + // item.tableForm.max = Number(val[0]['qty']) + // } + // // if(item.field == 'batch') { + // // item.tableForm.disabled = false + // // } + // }) } } else if(formField == 'workStationCode') { val.forEach(item=>{ @@ -238,12 +239,13 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { setV['uom'] = val[0]['uom'] setV['inventoryStatus'] = val[0]['inventoryStatus'] setV['qty'] = val[0]['qty'] + // HL-4885 聂喜婷:@邱晨 @王宇飞 先把数量的校验拿掉 // 修改 tableform 属性 数量最大值设置为库存余额中数量 - ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => { - if(item.field == 'qty') { - item.tableForm.max = val[0]['qty'] - } - }) + // ProductionreturnRequestDetail.allSchemas.tableFormColumns.map(item => { + // if(item.field == 'qty') { + // item.tableForm.max = val[0]['qty'] + // } + // }) } } else if(formField == 'workStationCode') { setV['workStationCode'] = val[0]['code']