From ffe702ccc8fe81006eb173f5a1ff814bc671057a Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Wed, 6 Nov 2024 14:53:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A6=81=E8=B4=A7=E8=AE=A1=E5=88=92=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=9D=A5=E6=BA=90=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dict.ts | 1 + .../purchasePlanMain/purchasePlanMain.data.ts | 13 +++++++++++++ .../purchaseClaim/purchaseClaimRequest/index.vue | 11 ----------- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 0cc1ddc92..59e2c45b9 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -249,6 +249,7 @@ export enum DICT_TYPE { WORK_ORDER_DETAIL_STATUS = 'work_order_detail_status', // 生产订单明细状态 PURCHASE_PLAN_STATUS = 'purchase_plan_status', // 要货计划状态 PURCHASE_PLAN_DETAIL_STATUS = 'purchase_plan_detail_status', // 要货计划明细状态 + PURCHASE_PLAN_SOURCE = 'purchase_plan_source', // 要货计划来源 PLAN_STATUS = 'plan_status', // 计划状态 PRODUCTION_PLAN_DETAIL_STATUS = 'production_plan_detail_status', // 计划明细状态 // PREPARE_TO_ISSUE_PLAN_STATUS = 'prepare_to_issue_plan_status', // 备料计划状态 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts index f4fffccc2..0df6a5f57 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts @@ -253,6 +253,19 @@ export const PurchasePlanMain = useCrudSchemas( width: 150 }, }, + { + label: '来源', + field: 'source', + sort: 'custom', + dictType: DICT_TYPE.PURCHASE_PLAN_SOURCE, + dictClass: 'string', + isTable: true, + isForm: false, + sortTableDefault: 13, + table: { + width: 150 + }, + }, { label: '收货人', field: 'contacts', diff --git a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue index d2526b38c..e123e8d56 100644 --- a/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue +++ b/src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue @@ -163,14 +163,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => tableData.value = [] } formRef.setValues(setV) - // else { - // // 主表查询页赋值 - // if (formField == 'supplierCode') { - // setV['supplierName'] = val[0].name - // } - // setV[formField] = val[0][searchField] - // formRef.setValues(setV) - // } }) } @@ -179,9 +171,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => { nextTick(() => { const setV = {} setV[formField] = val[0][searchField] - // setV['soLine'] = val[0]['lineNumber'] - // setV['lineNumber'] = val[0]['lineNumber'] - // setV['itemCode'] = val[0]['itemCode'] setV['remark'] = val[0]['remark'] setV['uom'] = val[0]['customerUom'] formRef.setValues(setV)