From fc9d7a7032b04910be93b2cdc67440d409f09a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=83=9C=E6=A5=A0?= <2792649152@qq.com> Date: Thu, 9 Nov 2023 19:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B6=E5=93=81=E4=B8=8A=E6=9E=B6=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productputawayRequestMain/index.vue | 14 ++++++ .../productputawayRequestMain.data.ts | 50 +++++++++++-------- 2 files changed, 43 insertions(+), 21 deletions(-) diff --git a/src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue b/src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue index 3318bfac0..8dc6b18b3 100644 --- a/src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue +++ b/src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue @@ -104,6 +104,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => if (type == 'tableForm') { // 明细查询页赋值 row[formField] = val[0][searchField] + row['poLine'] = val[0]['itemCode'] + row['packingNumber'] = val[0]['packingNumber'] + row['containerNumber'] = val[0]['containerNumber'] + row['batch'] = val[0]['batch'] + row['uom'] = val[0]['uom'] + row['inventoryStatus'] = val[0]['inventoryStatus'] + row['fromLocationCode'] = val[0]['locationCode'] } else { const setV = {} setV[formField] = val[0][searchField] @@ -116,6 +123,13 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { nextTick(() => { const setV = {} setV[formField] = val[0][searchField] + setV['poLine'] = val[0]['itemCode'] + setV['packingNumber'] = val[0]['packingNumber'] + setV['containerNumber'] = val[0]['containerNumber'] + setV['batch'] = val[0]['batch'] + setV['uom'] = val[0]['uom'] + setV['inventoryStatus'] = val[0]['inventoryStatus'] + setV['fromLocationCode'] = val[0]['locationCode'] formRef.setValues(setV) }) } diff --git a/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts b/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts index 705ef32f5..0e20f2693 100644 --- a/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts +++ b/src/views/wms/productionManage/productputaway/productputawayRequestMain/productputawayRequestMain.data.ts @@ -2,8 +2,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' import * as getRequestsettingApi from '@/api/wms/requestsetting/index' -import * as ItembasicApi from '@/api/wms/itembasic' -import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' +import * as BalanceApi from '@/api/wms/balance' +import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' const { t } = useI18n() // 国际化 @@ -70,7 +70,7 @@ export const ProductputawayRequestMain = useCrudSchemas(reactive([ field: 'number', sort: 'custom', table: { - width: 150, + width: 180, fixed: 'left' }, isForm: false, @@ -222,7 +222,7 @@ export const ProductputawayRequestMain = useCrudSchemas(reactive([ valueFormat: 'x', } }, - isTable: false, + isForm: false, }, { label: '最后更新者', @@ -231,7 +231,7 @@ export const ProductputawayRequestMain = useCrudSchemas(reactive([ table: { width: 150 }, - isTable: false, + isForm: false, }, { label: '到仓库代码', @@ -401,8 +401,9 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive table: { width: 150 }, - isForm: false, - isTableForm: false, + tableForm: { + disabled: true + } }, { label: '器具号', @@ -411,8 +412,9 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive table: { width: 150 }, - isForm: false, - isTableForm: false, + tableForm: { + disabled: true + } }, { label: '批次', @@ -421,8 +423,9 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive table: { width: 150 }, - isForm: false, - isTableForm: false, + tableForm: { + disabled: true + } }, { label: '库存状态', @@ -435,7 +438,8 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive width: 150 }, tableForm: { - type: 'Select' + type: 'Select', + disabled: true } }, { @@ -465,6 +469,9 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive table: { width: 150 }, + tableForm: { + disabled: true + } }, { label: '单据号', @@ -491,20 +498,20 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive isInpuFocusShow: true, isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择物品代码', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '物品基础信息', // 查询弹窗标题 - searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 - searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法 + searchField: 'itemCode', // 查询弹窗赋值字段 + searchTitle: '库存余额信息', // 查询弹窗标题 + searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 + searchPage: BalanceApi.getBalancePage // 查询弹窗所需分页方法 }, form: { // labelMessage: '信息提示说明!!!', componentProps: { isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择物品代码', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '物品基础信息', // 查询弹窗标题 - searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 - searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法 + searchField: 'itemCode', // 查询弹窗赋值字段 + searchTitle: '库存余额信息', // 查询弹窗标题 + searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 + searchPage: BalanceApi.getBalancePage // 查询弹窗所需分页方法 } } }, @@ -619,7 +626,8 @@ export const ProductputawayRequestDetail = useCrudSchemas(reactive width: 150 }, tableForm:{ - type: 'Select' + type: 'Select', + disabled: true } }, {