Browse Source

要货计划新增来源字段

intex_online20241111
YEJIAXING-PC\lenovo 3 weeks ago
parent
commit
ffe702ccc8
  1. 1
      src/utils/dict.ts
  2. 13
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
  3. 11
      src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue

1
src/utils/dict.ts

@ -249,6 +249,7 @@ export enum DICT_TYPE {
WORK_ORDER_DETAIL_STATUS = 'work_order_detail_status', // 生产订单明细状态 WORK_ORDER_DETAIL_STATUS = 'work_order_detail_status', // 生产订单明细状态
PURCHASE_PLAN_STATUS = 'purchase_plan_status', // 要货计划状态 PURCHASE_PLAN_STATUS = 'purchase_plan_status', // 要货计划状态
PURCHASE_PLAN_DETAIL_STATUS = 'purchase_plan_detail_status', // 要货计划明细状态 PURCHASE_PLAN_DETAIL_STATUS = 'purchase_plan_detail_status', // 要货计划明细状态
PURCHASE_PLAN_SOURCE = 'purchase_plan_source', // 要货计划来源
PLAN_STATUS = 'plan_status', // 计划状态 PLAN_STATUS = 'plan_status', // 计划状态
PRODUCTION_PLAN_DETAIL_STATUS = 'production_plan_detail_status', // 计划明细状态 PRODUCTION_PLAN_DETAIL_STATUS = 'production_plan_detail_status', // 计划明细状态
// PREPARE_TO_ISSUE_PLAN_STATUS = 'prepare_to_issue_plan_status', // 备料计划状态 // PREPARE_TO_ISSUE_PLAN_STATUS = 'prepare_to_issue_plan_status', // 备料计划状态

13
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -253,6 +253,19 @@ export const PurchasePlanMain = useCrudSchemas(
width: 150 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: '收货人', label: '收货人',
field: 'contacts', field: 'contacts',

11
src/views/wms/supplierManage/purchaseClaim/purchaseClaimRequest/index.vue

@ -163,14 +163,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
tableData.value = [] tableData.value = []
} }
formRef.setValues(setV) 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(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] 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['remark'] = val[0]['remark']
setV['uom'] = val[0]['customerUom'] setV['uom'] = val[0]['customerUom']
formRef.setValues(setV) formRef.setValues(setV)

Loading…
Cancel
Save