Browse Source

YT-270物料基本信息修改

intex_online20241111
zhaoyiran 3 weeks ago
parent
commit
82a7e17552
  1. 577
      src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts
  2. 12
      src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts
  3. 20
      src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts

577
src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

@ -9,7 +9,7 @@ import {validateYS} from '@/utils/validator'
*/ */
export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '代码', label: '品番',
field: 'code', field: 'code',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -18,6 +18,15 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left' fixed: 'left'
}, },
}, },
{
label: '品名',
field: 'name',
sort: 'custom',
isSearch: true,
table: {
width: 150
},
},
{ {
label: '品号', label: '品号',
field: 'articleNumber', field: 'articleNumber',
@ -46,25 +55,93 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '名称', label: '描述1',
field: 'name', field: 'desc1',
sort: 'custom',
table: {
width: 150
} ,
// isTableForm:false
},
{
label: '描述2',
field: 'desc2',
sort: 'custom', sort: 'custom',
isSearch: true,
table: { table: {
width: 150 width: 150
} ,
},
{
label: '物料类型',
field: 'type',
sort: 'custom',
dictType: DICT_TYPE.ITEM_TYPE,
dictClass: 'string',
isTable: true,
table: {
width: 100
} ,
},
{
label: '物料状态',
field: 'status',
sort: 'custom',
dictType: DICT_TYPE.ITEM_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
table: {
width: 120
}
},
{
label: '可采购',
field: 'enableBuy',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
table: {
width: 100
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}, },
}, },
{ {
label: '是否可用', label: '可制造',
field: 'available', field: 'enableMake',
sort: 'custom', sort: 'custom',
isSearch:true,
isForm: false,
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑 dictClass: 'string',
search: { isTable: true,
table: {
width: 100
} ,
form: {
component: 'Switch',
value: 'TRUE', value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}, },
},
{
label: '虚零件',
field: 'isPhantom',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
table: {
width: 100
} ,
form: { form: {
component: 'Switch', component: 'Switch',
value: 'TRUE', value: 'TRUE',
@ -73,27 +150,46 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
activeValue: 'TRUE' activeValue: 'TRUE'
} }
}, },
},
{
label: 'ABC类',
field: 'abcClass',
sort: 'custom',
dictType: DICT_TYPE.ABC_CLASS,
dictClass: 'string',
isTable: true,
table: { table: {
width: 110 width: 100
} } ,
}, },
{ {
label: '描述1', label: '默认包装规格',
field: 'desc1', field: 'defaultPackUnit',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
} , } ,
// isTableForm:false
}, },
{ {
label: '描述2', label: '默认包装数量',
field: 'desc2', field: 'defaultPackQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
} , } ,
}, },
{
label: '计量单位',
field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isSearch: true,
isTable: true,
table: {
width: 120
}
},
{ {
label: '受入号', label: '受入号',
field: 'receivedNumber', field: 'receivedNumber',
@ -103,15 +199,6 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
// {
// label: '受入地',
// field: 'receivedLocation',
// sort: 'custom',
// isSearch: true,
// table: {
// width: 150
// },
// },
{ {
label: '前工程', label: '前工程',
field: 'preEngineering', field: 'preEngineering',
@ -131,7 +218,7 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '再订货点', label: '再订货点数量',
field: 'reorderPoint', field: 'reorderPoint',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
@ -148,15 +235,6 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '生产线分区',
field: 'productionLineZoning',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
},
{ {
label: '采购员', label: '采购员',
field: 'purchaser', field: 'purchaser',
@ -167,73 +245,42 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '状态', label: '项目',
field: 'status', field: 'project',
sort: 'custom',
dictType: DICT_TYPE.ITEM_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
table: {
width: 120
}
},
{
label: '计量单位',
field: 'uom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isSearch: true,
isTable: true,
table: {
width: 120
}
},
{
label: '替代计量单位',
field: 'altUom',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
table: { table: {
width: 150 width: 100
} , } ,
}, },
{ {
label: '是否标包', label: '是否脱离ERP管理',
field: 'isStdPack', field: 'isOutErp',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
// colorType: 'danger',
isTable: true, isTable: true,
table: { table: {
width: 120 width: 100
}, },
form: { form: {
component: 'Switch', component: 'Switch',
value: 'TRUE', value: 'FALSE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', inactiveValue: 'FALSE',
activeValue: 'TRUE' activeValue: 'TRUE'
} }
}, },
// tableForm:{
// width: 180,
// type:'Radio',
// }
}, },
{ {
label: '可采购', label: '是否可用',
field: 'enableBuy', field: 'available',
sort: 'custom', sort: 'custom',
isSearch:true,
isForm: false,
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isTable: true, search: {
table: { value: 'TRUE',
width: 100
}, },
form: { form: {
component: 'Switch', component: 'Switch',
@ -243,129 +290,245 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
activeValue: 'TRUE' activeValue: 'TRUE'
} }
}, },
table: {
width: 110
}
}, },
{ {
label: '可制造', label: '生效时间',
field: 'enableMake', field: 'activeTime',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true, isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 100 width: 180
} , } ,
form: { form: {
component: 'Switch', component: 'DatePicker',
value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', style: {width:'100%'},
activeValue: 'TRUE' type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
// tableForm:{
// width: 200,
// type:'FormDateTime',
// }
}, },
{ {
label: '可委外加工', label: '失效时间',
field: 'enableOutsourcing', field: 'expireTime',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true, isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 120 width: 180
} , } ,
form: { form: {
component: 'Switch', component: 'DatePicker',
value: 'TRUE', value:'activeTime',
componentProps: { componentProps: {
inactiveValue: 'FALSE', style: {width:'100%'},
activeValue: 'TRUE' type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
}, },
{ {
label: '回收件', label: '备注',
field: 'isRecycled', field: 'remark',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, isTable: false
dictClass: 'string', },
{
label: '创建者',
field: 'creator',
isForm: false,
isTable: true, isTable: true,
table: { table: {
width: 100 width: 180
},
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
isTable: true,
formatter: dateFormatter,
isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 180
}, },
form: { form: {
component: 'Switch', component: 'DatePicker',
value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', style: {width:'100%'},
activeValue: 'TRUE' type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: true,
table: {
width: 180
}, },
}, },
{ {
label: '虚零件', label: '最后更新时间',
field: 'isPhantom', field: 'updateTime',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true, isTable: true,
isDetail: true,
formatter: dateFormatter,
isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 100 width: 180
} , },
form: { form: {
component: 'Switch', component: 'DatePicker',
value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', style: {width:'100%'},
activeValue: 'TRUE' type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}
},
// {
// label: '受入地',
// field: 'receivedLocation',
// sort: 'custom',
// isSearch: true,
// table: {
// width: 150
// },
// },
{
label: '生产线分区',
field: 'productionLineZoning',
sort: 'custom',
isSearch: false,
isTable: false,
isDetail:false,
table: {
width: 150
}, },
}, },
{ {
label: '是否脱离ERP管理', label: '替代计量单位',
field: 'isOutErp', field: 'altUom',
sort: 'custom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: false,
isDetail:false,
table: {
width: 150
} ,
},
{
label: '是否标包',
field: 'isStdPack',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, // colorType: 'danger',
isTable: false,
isDetail:false,
table: { table: {
width: 100 width: 120
}, },
form: { form: {
component: 'Switch', component: 'Switch',
value: 'FALSE', value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', inactiveValue: 'FALSE',
activeValue: 'TRUE' activeValue: 'TRUE'
} }
}, },
// tableForm:{
// width: 180,
// type:'Radio',
// }
}, },
{ {
label: 'ABC类', label: '可委外加工',
field: 'abcClass', field: 'enableOutsourcing',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ABC_CLASS, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
isDetail:false,
table: { table: {
width: 100 width: 120
} , } ,
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
}, },
{ {
label: '类型', label: '回收件',
field: 'type', field: 'isRecycled',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ITEM_TYPE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
isDetail:false,
table: { table: {
width: 100 width: 100
} , },
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
}, },
{ {
label: '产品类', label: '产品类',
field: 'prodCla', field: 'prodCla',
sort: 'custom', sort: 'custom',
isForm:false, isForm:false,
isTable: false,
isDetail:false,
table: { table: {
width: 100 width: 100
} , } ,
@ -376,7 +539,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ITEM_CATEGORY, dictType: DICT_TYPE.ITEM_CATEGORY,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
isDetail:false,
table: { table: {
width: 100 width: 100
} , } ,
@ -387,7 +551,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ITEM_GROUP, dictType: DICT_TYPE.ITEM_GROUP,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
isDetail:false,
table: { table: {
width: 100 width: 100
} , } ,
@ -398,7 +563,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ITEM_COLOR, dictType: DICT_TYPE.ITEM_COLOR,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
isDetail:false,
table: { table: {
width: 100 width: 100
} , } ,
@ -409,7 +575,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.ITEM_CONFIGURATION, dictType: DICT_TYPE.ITEM_CONFIGURATION,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
isDetail:false,
table: { table: {
width: 100 width: 100
} , } ,
@ -420,26 +587,21 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.SETTLEMENT_TYPE, dictType: DICT_TYPE.SETTLEMENT_TYPE,
dictClass: 'string', dictClass: 'string',
sort: 'custom', sort: 'custom',
isTable: true, isTable: false,
isDetail:false,
table: { table: {
width: 120 width: 120
} , } ,
}, },
{
label: '项目',
field: 'project',
sort: 'custom',
table: {
width: 100
} ,
},
{ {
label: '质量等级', label: '质量等级',
field: 'eqLevel', field: 'eqLevel',
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.EQ_LEVEL, dictType: DICT_TYPE.EQ_LEVEL,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: false,
isDetail:false,
table: { table: {
width: 120 width: 120
} , } ,
@ -448,6 +610,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
label: '有效天数', label: '有效天数',
field: 'validityDays', field: 'validityDays',
sort: 'custom', sort: 'custom',
isTable: false,
isDetail:false,
table: { table: {
width: 120 width: 120
}, },
@ -459,122 +623,9 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '生效时间',
field: 'activeTime',
sort: 'custom',
isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 180
} ,
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
// tableForm:{
// width: 200,
// type:'FormDateTime',
// }
},
{
label: '失效时间',
field: 'expireTime',
sort: 'custom',
isTable: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 180
} ,
form: {
component: 'DatePicker',
value:'activeTime',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
isTable: true,
formatter: dateFormatter,
isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
isForm: false,
isTable: true,
table: {
width: 180
},
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isTable: true,
isDetail: true,
formatter: dateFormatter,
isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: true,
table: {
width: 180
},
},
{ label: '备注', field: 'remark', sort: 'custom', isTable: false},
// { // {
// label: '操作', // label: '操作',
// field: 'action', // field: 'action',

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

@ -144,6 +144,9 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: false,
isDetail:false,
isForm:false,
table: { table: {
width: 120 width: 120
}, },
@ -223,6 +226,15 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '数据来源',
field: 'dataSource',
sort: 'custom',
isForm:false,
table: {
width: 180
},
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

20
src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts

@ -122,6 +122,8 @@ export const Packageunit1 = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: false, isSearch: false,
isTable: false,
isDetail:false,
form: { form: {
component: 'Switch', component: 'Switch',
value: 'TRUE', value: 'TRUE',
@ -141,6 +143,8 @@ export const Packageunit1 = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: false, isSearch: false,
isTable: false,
isDetail:false,
form: { form: {
component: 'Switch', component: 'Switch',
value: 'FALSE', value: 'FALSE',
@ -335,7 +339,9 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
label: '父包装代码', label: '父包装代码',
field: 'parentCode', field: 'parentCode',
sort: 'custom', sort: 'custom',
isTable:false, isTable: false,
isDetail:false,
isForm:false,
table: { table: {
width: 150 width: 150
}, },
@ -479,6 +485,9 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: false, isSearch: false,
isTable: false,
isDetail:false,
isForm:false,
form: { form: {
component: 'Switch', component: 'Switch',
value: 'TRUE', value: 'TRUE',
@ -498,6 +507,9 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: false, isSearch: false,
isTable: false,
isDetail:false,
isForm:false,
form: { form: {
component: 'Switch', component: 'Switch',
value: 'FALSE', value: 'FALSE',
@ -713,9 +725,9 @@ export const PackageunitRules = reactive({
type: [ type: [
{ required: true, message: '请选择包装类型', trigger: 'change' } { required: true, message: '请选择包装类型', trigger: 'change' }
], ],
reuse: [ // reuse: [
{ required: true, message: '请选择是否重复使用', trigger: 'change' } // { required: true, message: '请选择是否重复使用', trigger: 'change' }
], // ],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],

Loading…
Cancel
Save