Browse Source

WMS的采购订单要和SCP一致 YT-560

intex_online20241111
YEJIAXING-PC\lenovo 3 weeks ago
parent
commit
4e647590ef
  1. 136
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data.ts

136
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMainWms/purchaseMain.data.ts

@ -56,7 +56,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '订单类型', label: '订单类型',
field: 'type', field: 'type',
dictType: DICT_TYPE.PURCHASE_ORDER_TYPE, dictType: DICT_TYPE.PURCHASE_ORDER_TYPE,
@ -69,19 +69,14 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '物料类型', label: '行类型',
field: 'itemTypeList', field: 'poLineType',
dictType: DICT_TYPE.ITEM_TYPE, isTable: true,
dictClass: 'string',
isTable: false,
isForm: false,
isSearch: true, isSearch: true,
sort: 'custom', sort: 'custom',
search: { table: {
componentProps: { width: 150
multiple: true,//多选 },
}
}
}, },
{ {
label: '状态', label: '状态',
@ -291,7 +286,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isTable:true, isTable:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -554,6 +549,26 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
precision: 6 precision: 6
}, },
}, },
{
label: '默认收货库区',
field: 'defaultAreaCode',
table: {
width: 150
},
isTableForm: false,
isForm: false,
isTable: true,
},
{
label: '库区描述',
field: 'areaDescription',
table: {
width: 150
},
isTableForm: false,
isForm: false,
isTable: true,
},
// { // {
// label: 'ERP库位', // label: 'ERP库位',
// field: 'erpLocationCode', // field: 'erpLocationCode',
@ -821,16 +836,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
min: 0 min: 0
} }
}, },
{
label: '创建者',
field: 'creator',
isTableForm: false,
table: {
width: 150
},
hiddenInMain:true,
isForm: false,
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -843,7 +848,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
hiddenInMain:true, hiddenInMain:false,
isForm: false, isForm: false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -856,48 +861,58 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '最后更新者', label: '创建者',
field: 'updater', field: 'creator',
isTableForm: false,
table: {
width: 150
},
hiddenInMain:true,
isForm: false,
// form: {
// component: 'DatePicker',
// componentProps: {
// style: {width:'100%'},
// type: 'datetime',
// dateFormat: 'YYYY-MM-DD HH:mm:ss',
// valueFormat: 'x',
// }
// }
},
{
label: '最后更新时间',
field: 'updateTime',
isTableForm: false, isTableForm: false,
isTable: true,
hiddenInMain:true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 width: 150
}, },
hiddenInMain:false,
isForm: false, isForm: false,
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
}, },
// {
// label: '最后更新时间',
// field: 'updateTime',
// isTableForm: false,
// isTable: true,
// hiddenInMain:false,
// formatter: dateFormatter,
// detail: {
// dateFormat: 'YYYY-MM-DD HH:mm:ss'
// },
// table: {
// width: 150
// },
// isForm: false,
// form: {
// component: 'DatePicker',
// componentProps: {
// style: {width:'100%'},
// type: 'datetime',
// dateFormat: 'YYYY-MM-DD HH:mm:ss',
// valueFormat: 'x',
// }
// }
// },
// {
// label: '最后更新者',
// field: 'updater',
// isTableForm: false,
// table: {
// width: 150
// },
// hiddenInMain:false,
// isForm: false,
// // form: {
// // component: 'DatePicker',
// // componentProps: {
// // style: {width:'100%'},
// // type: 'datetime',
// // dateFormat: 'YYYY-MM-DD HH:mm:ss',
// // valueFormat: 'x',
// // }
// // }
// },
{ {
label: '备注', label: '备注',
hiddenInMain:true, hiddenInMain:true,
@ -912,6 +927,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'action', field: 'action',
isDetail: false, isDetail: false,
isForm: false , isForm: false ,
isTable: false ,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'

Loading…
Cancel
Save