Browse Source

YT-1098物料包装信息,缺少物料名称、备注字段;数据来源,应是下拉选

intex
zhaoyiran 4 days ago
parent
commit
da48dfe6d5
  1. 1
      src/utils/dict.ts
  2. 1
      src/views/wms/basicDataManage/itemManage/itempackage/index.vue
  3. 36
      src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts

1
src/utils/dict.ts

@ -283,6 +283,7 @@ export enum DICT_TYPE {
CONTAINER_STATUS = 'container_status', // 容器状态 CONTAINER_STATUS = 'container_status', // 容器状态
PREDICT_TIME_TYPE = 'predict_time_type', // 预测时间类型 PREDICT_TIME_TYPE = 'predict_time_type', // 预测时间类型
PACK_UNIT_TYPE = 'pack_unit_type', // 包装规格类型 PACK_UNIT_TYPE = 'pack_unit_type', // 包装规格类型
PACK_DATA_SOURCE = 'pack_data_source', // 物料包装数据来源
TRANSFER_REASON = 'transfer_reason', // 调拨出入库原因 TRANSFER_REASON = 'transfer_reason', // 调拨出入库原因
PURCHASERECEIPT_SOURCE_TYPE = 'purchasereceipt_source_type', //采购收货数据来源 PURCHASERECEIPT_SOURCE_TYPE = 'purchasereceipt_source_type', //采购收货数据来源
PLAN_PRODUCTION_TYPE = 'plan_production_type', // 生产计划类型 PLAN_PRODUCTION_TYPE = 'plan_production_type', // 生产计划类型

1
src/views/wms/basicDataManage/itemManage/itempackage/index.vue

@ -357,6 +357,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if('itemCode'==formField){ if('itemCode'==formField){
setV['itemName'] = val[0]['name']
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
} }
if('packUnit'==formField){ if('packUnit'==formField){

36
src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts

@ -46,6 +46,24 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '物料名称',
field: 'itemName',
sort: 'custom',
isSearch: false,
table: {
width: 120
},
form: {
componentProps: {
disabled: true
}
},
isTable:true,
isTableForm:true,
isForm:true,
isDetail:true
},
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
@ -56,7 +74,8 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
table: { table: {
width: 120 width: 120
},form: { },
form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
disabled: true disabled: true
@ -231,10 +250,25 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
field: 'dataSource', field: 'dataSource',
sort: 'custom', sort: 'custom',
isForm:false, isForm:false,
dictType: DICT_TYPE.PACK_DATA_SOURCE,
dictClass: 'string',
table: { table: {
width: 180 width: 180
}, },
}, },
{
label: '备注',
field: 'remark',
sort: 'custom',
isSearch: false,
table: {
width: 120
},
isTable:true,
isTableForm:true,
isForm:true,
isDetail:true
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

Loading…
Cancel
Save