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', // 容器状态
PREDICT_TIME_TYPE = 'predict_time_type', // 预测时间类型
PACK_UNIT_TYPE = 'pack_unit_type', // 包装规格类型
PACK_DATA_SOURCE = 'pack_data_source', // 物料包装数据来源
TRANSFER_REASON = 'transfer_reason', // 调拨出入库原因
PURCHASERECEIPT_SOURCE_TYPE = 'purchasereceipt_source_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 = {}
setV[formField] = val[0][searchField]
if('itemCode'==formField){
setV['itemName'] = val[0]['name']
setV['uom'] = val[0]['uom']
}
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: '计量单位',
field: 'uom',
@ -56,7 +74,8 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true,
table: {
width: 120
},form: {
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
disabled: true
@ -231,10 +250,25 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
field: 'dataSource',
sort: 'custom',
isForm:false,
dictType: DICT_TYPE.PACK_DATA_SOURCE,
dictClass: 'string',
table: {
width: 180
},
},
{
label: '备注',
field: 'remark',
sort: 'custom',
isSearch: false,
table: {
width: 120
},
isTable:true,
isTableForm:true,
isForm:true,
isDetail:true
},
{
label: '创建时间',
field: 'createTime',

Loading…
Cancel
Save