From b74f10ff713fecf8c1e0e3fe8a5836c3fa22dd89 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 13 Jun 2024 19:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=B4=A7=E7=94=B3=E8=AF=B7--=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deliverRequestMain/deliverRequestMain.data.ts | 5 +++++ .../deliver/deliverRequestMain/index.vue | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts index 5963f219d..a6feb85ee 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts @@ -168,6 +168,11 @@ export const DeliverRequestMain = useCrudSchemas(reactive([ table: { width: 150 }, + form: { + componentProps: { + disabled:true + } + } }, { label: '发货计划单号', diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue index bb5838ae1..67a8c6bf2 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue @@ -94,6 +94,7 @@ import { DeliverRequestMain,DeliverRequestMainRules,DeliverRequestDetail,Deliver import * as DeliverRequestMainApi from '@/api/wms/deliverRequestMain' import * as DeliverRequestDetailApi from '@/api/wms/deliverRequestDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' +import * as AreabasicApi from '@/api/wms/areabasic' // 发货申请 defineOptions({ name: 'DeliverRequestMain' }) @@ -141,8 +142,8 @@ const updataTableColumns = (val) => { } // 查询页面返回 -const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { - nextTick(() => { +const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { + nextTick(async () => { if (type == 'tableForm') { if(formField == 'itemCode') { const tableFormKeys = {} @@ -172,6 +173,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => //客户月台 setV['toWarehouseCode'] = val[0]['warehouseCode']//到仓库 setV['toLocationCode'] = val[0]['defaultLocationCode']//到库位 + let res = await AreabasicApi.selectAreabasicDOByCode(val[0]['defaultLocationCode']) + if(res){ + setV['deliverType'] = res['type'] + } } else { setV[formField] = val[0][searchField] }