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)