From f792b1731514e327f7e3a67e2d9f2c210a57ded5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 19 Dec 2023 14:53:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=90=88=E6=A0=BC=E9=80=80=E6=96=99?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=20=E6=89=B9=E6=AC=A1=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E5=8F=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionreturnRequestMainNo/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue index ef17c0ec5..c3fb72198 100644 --- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue +++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue @@ -96,6 +96,7 @@ import * as ProductionreturnRequestDetailNoApi from '@/api/wms/productionreturnR import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as ItembasicApi from '@/api/wms/itembasic' import * as PackageApi from '@/api/wms/package' +import { formatTime } from '@/utils/index' // 隔离退料申请 defineOptions({ name: 'ProductionreturnRequestMainNo' }) @@ -130,7 +131,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => if(formField == 'itemCode') { // row['packingNumber'] = val[0]['packingNumber'] // row['containerNumber'] = val[0]['containerNumber'] - row['batch'] = val[0]['batch'] + row['batch'] = val[0]['batch']==''?formatTime(new Date(), 'yyyyMMdd'):val[0]['batch'] + row['itemCode'] = val[0]['itemCode'] row['uom'] = val[0]['uom'] row['inventoryStatus'] = val[0]['inventoryStatus'] @@ -140,6 +142,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => if(item.field == 'qty') { item.tableForm.max = val[0]['qty'] } + if(item.field == 'batch') { + item.tableForm.disabled = false + } }) } else if(formField == 'workStationCode') { row['workStationCode'] = val[0]['code']