From a2611adbf620b85124300675d5538dd14b73fa80 Mon Sep 17 00:00:00 2001 From: chenfang Date: Thu, 25 Jul 2024 11:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=AD=97=E6=AE=B5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../relegate/relegateRequest/index.vue | 5 +- .../relegateRequestMain.data.ts | 92 +------------------ 2 files changed, 6 insertions(+), 91 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue index f8c7fcf0d..88f2cd907 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue @@ -229,7 +229,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => // console.log(row['itemCode']); // ItembasicApi.getItemListByCodes(row['itemCode']) row['downItemCode'] = val[0]['code'] - } else if (formField == 'toLocationCode') { + } else if(formField == 'packUnit'){ + row['packUnit'] = val[0]['packUnit'] + row['packQty'] = val[0]['packQty'] + }else if (formField == 'toLocationCode') { row['toLocationCode'] = val[0]['code'] } else { row[formField] = val[0][searchField] diff --git a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts index 3999a2a75..9a16dab51 100644 --- a/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts +++ b/src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts @@ -729,50 +729,6 @@ export const RelegateRequestDetail = useCrudSchemas(reactive([ * @returns {Array} 物料变更申请子表创建标签 */ export const RelegateRequestDetailLabel = useCrudSchemas(reactive([ - { - label: '生产线代码', - field: 'productionLineCodePackage', - sort: 'custom', - table: { - width: 150 - }, - tableForm:{ - disabled: true - // isInpuFocusShow: true, - // searchListPlaceholder: '请选择生产线代码', // 输入框占位文本 - // searchField: 'productionLineCode', // 查询弹窗赋值字段 - // searchTitle: '生产线物料关系信息', // 查询弹窗标题 - // searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类 - // searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法 - // searchCondition:[{ - // key: 'itemCode', - // value: 'itemCode', - // isMainValue: true - // }] - } - }, - { - label: '供应商代码', - field: 'supplierItemCode', - sort: 'custom', - table: { - width: 150 - }, - tableForm:{ - isInpuFocusShow: true, - searchListPlaceholder: '请选择供应商代码', // 输入框占位文本 - searchField: 'supplierCode', // 查询弹窗赋值字段 - searchTitle: '供应商信息', // 查询弹窗标题 - searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类 - searchPage: SupplieritemApi.getSupplieritemPage, // 查询弹窗所需分页方法 - searchCondition:[{ - key: 'itemCode', - value: 'itemCode', - message: '请填写物料代码!', - isMainValue: true - }] - } - }, { label: '物料代码', field: 'itemCode', @@ -831,7 +787,7 @@ export const RelegateRequestDetailLabel = useCrudSchemas(reactive( }, { label: '批次', - field: 'batch', + field: 'fromBatch', sort: 'custom', table: { width: 150 @@ -861,45 +817,6 @@ export const RelegateRequestDetailLabel = useCrudSchemas(reactive( } } }, - { - label: '计量单位', - field: 'uom', - dictType: DICT_TYPE.UOM, - dictClass: 'string', - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - tableForm: { - disabled: true - }, - form: { - componentProps: { - disabled: true - } - } - }, - { - label: '库存状态', - field: 'inventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, - dictClass: 'string', - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - tableForm: { - type: 'Select', - disabled: true - }, - form: { - componentProps: { - disabled: true - } - } - }, { label: '单据号', field: 'number', @@ -987,10 +904,5 @@ export const RelegateRequestDetailLabel = useCrudSchemas(reactive( //表单校验 export const RelegateRequestDetailLabelRules = reactive({ - supplierItemCode: [ - { required: true, message: '请选择供应商', trigger: 'change' } - ], - productionLineCodePackage: [ - { required: true, message: '请选择生产线', trigger: 'change' } - ] + }) \ No newline at end of file