Browse Source

列表查询和高级筛选、增加 创建人 创建时间 更新人,更新时间字段

master_hella_20240701
滕晓飞 1 year ago
parent
commit
7f42a1f70d
  1. 67
      src/views/wms/agvManage/agvLocationrelation/agvLocationrelation.data.ts
  2. 51
      src/views/wms/basicDataManage/customerManage/customer/customer.data.ts
  3. 51
      src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts
  4. 53
      src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts
  5. 53
      src/views/wms/basicDataManage/customerManage/project/project.data.ts
  6. 49
      src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts
  7. 107
      src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts
  8. 99
      src/views/wms/basicDataManage/documentSetting/documentsetting/documentsetting.data.ts
  9. 65
      src/views/wms/basicDataManage/documentSetting/jobsetting/jobsetting.data.ts
  10. 69
      src/views/wms/basicDataManage/documentSetting/plansetting/plansetting.data.ts
  11. 91
      src/views/wms/basicDataManage/documentSetting/recordsetting/recordsetting.data.ts
  12. 69
      src/views/wms/basicDataManage/documentSetting/requestsetting/requestsetting.data.ts
  13. 69
      src/views/wms/basicDataManage/documentSetting/switch/switch.data.ts
  14. 61
      src/views/wms/basicDataManage/documentSetting/transactiontype/transactiontype.data.ts
  15. 54
      src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts
  16. 53
      src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts
  17. 53
      src/views/wms/basicDataManage/factoryModeling/location/location.data.ts
  18. 51
      src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts
  19. 61
      src/views/wms/basicDataManage/factoryModeling/process/process.data.ts
  20. 63
      src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts
  21. 53
      src/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data.ts
  22. 61
      src/views/wms/basicDataManage/factoryModeling/workshop/workshop.data.ts
  23. 57
      src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts
  24. 40
      src/views/wms/basicDataManage/itemManage/bom/bom.data.ts
  25. 67
      src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts
  26. 18
      src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts
  27. 51
      src/views/wms/basicDataManage/itemManage/itemwarehouse/itemwarehouse.data.ts
  28. 46
      src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts
  29. 38
      src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts
  30. 40
      src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts
  31. 66
      src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts
  32. 70
      src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts
  33. 67
      src/views/wms/basicDataManage/labelManage/labeltype/labeltype.data.ts
  34. 64
      src/views/wms/basicDataManage/labelManage/locationLabel/locationLabel.data.ts
  35. 66
      src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts
  36. 33
      src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts
  37. 66
      src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts
  38. 51
      src/views/wms/basicDataManage/orderManage/carrier/carrier.data.ts
  39. 51
      src/views/wms/basicDataManage/orderManage/owner/owner.data.ts
  40. 49
      src/views/wms/basicDataManage/orderManage/shift/shift.data.ts
  41. 48
      src/views/wms/basicDataManage/orderManage/team/team.data.ts
  42. 51
      src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts
  43. 42
      src/views/wms/basicDataManage/supplierManage/supplier/supplier.data.ts
  44. 41
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts
  45. 63
      src/views/wms/basicDataManage/systemSetting/accountcalendar/accountcalendar.data.ts
  46. 55
      src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts
  47. 61
      src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts
  48. 59
      src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts
  49. 33
      src/views/wms/inventoryManage/expectin/expectin.data.ts
  50. 33
      src/views/wms/inventoryManage/expectout/expectout.data.ts
  51. 35
      src/views/wms/inventoryManage/transaction/transaction.data.ts
  52. 33
      src/views/wms/inventoryManage/transferlog/transferlog.data.ts
  53. 42
      src/views/wms/issueManage/issue/issueJobMain/issueJobMain.data.ts
  54. 58
      src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts
  55. 10
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts
  56. 6
      src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts
  57. 48
      src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/productionreceiptRecordMain.data.ts
  58. 6
      src/views/wms/issueManage/productionreturn/productionreturnJobMain/productionreturnJobMain.data.ts
  59. 46
      src/views/wms/issueManage/productionreturn/productionreturnRecordMain/productionreturnRecordMain.data.ts
  60. 12
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  61. 8
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts
  62. 4
      src/views/wms/issueManage/repleinsh/repleinshJobMain/repleinshJobMain.data.ts
  63. 40
      src/views/wms/issueManage/repleinsh/repleinshRecordMain/repleinshRecordMain.data.ts
  64. 10
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts
  65. 40
      src/views/wms/productionManage/productdismantle/productdismantleRecordMain/productdismantleRecordMain.data.ts
  66. 4
      src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
  67. 6
      src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts
  68. 6
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts
  69. 4
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/productionMainPredictSparePart.data.ts
  70. 2
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts
  71. 44
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts
  72. 6
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts
  73. 42
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts
  74. 11
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts
  75. 44
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/productreceiptscrapRecordMain.data.ts
  76. 10
      src/views/wms/productionManage/productredress/productredressJobMain/productredressJobMain.data.ts
  77. 16
      src/views/wms/productionManage/productredress/productredressRecordMain/productredressRecordMain.data.ts
  78. 10
      src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts
  79. 38
      src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts
  80. 10
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts
  81. 42
      src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts
  82. 4
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts
  83. 37
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts
  84. 78
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
  85. 57
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts
  86. 8
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/purchasereturnJobMain.data.ts
  87. 12
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts
  88. 107
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
  89. 50
      src/views/wms/purchasereceiptManage/putaway/putawayJobMain/putawayJobMain.data.ts
  90. 52
      src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts
  91. 57
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/putawayRequestMain.data.ts
  92. 14
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/sparereceiptRecordMain.data.ts
  93. 105
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/sparereceiptRequestMain.data.ts
  94. 42
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/purchaseclaimRecordMain.data.ts
  95. 9
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

67
src/views/wms/agvManage/agvLocationrelation/agvLocationrelation.data.ts

@ -113,30 +113,75 @@ export const AgvLocationrelation = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '备注',
field: 'remark',
sort: 'custom',
isSearch: false,
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true, detail: {
search: { dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', style: {width:'100%'},
type: 'daterange', type: 'datetime',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
isForm: false, table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
}, },
{ {
label: '备注', label: '最后更新者',
field: 'remark', field: 'updater',
sort: 'custom', isDetail: true,
isSearch: false, isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',

51
src/views/wms/basicDataManage/customerManage/customer/customer.data.ts

@ -211,12 +211,44 @@ export const Customer = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false, isTable: false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
@ -228,18 +260,17 @@ export const Customer = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
sort: 'custom', isDetail: true,
isForm: false,
isTable: false,
table: { table: {
width: 150 width: 150
}, }
isForm: false,
isTable: false
}, },
{ {
label: '操作', label: '操作',
@ -300,4 +331,4 @@ export const CustomerRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

51
src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts

@ -239,16 +239,47 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false, isTable: false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
isSearch: false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -257,19 +288,17 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false,
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
isSearch: false, isDetail: true,
isTable: false,
isForm: false, isForm: false,
sort: 'custom', isTable: false,
table: { table: {
width: 150 width: 150
}, }
}, },
{ {
label: '操作', label: '操作',
@ -327,4 +356,4 @@ export const CustomerdockRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

53
src/views/wms/basicDataManage/customerManage/customeritem/customeritem.data.ts

@ -251,13 +251,13 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -267,19 +267,50 @@ export const Customeritem = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isTable: false,
isForm: false
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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: false, isTable: false,
isForm: false table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -320,4 +351,4 @@ export const CustomeritemRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

53
src/views/wms/basicDataManage/customerManage/project/project.data.ts

@ -122,14 +122,14 @@ export const Project = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -138,19 +138,50 @@ export const Project = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isTable: false,
isForm: false,
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom',
table: { table: {
width: 150 width: 130
}, },
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false, isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false, isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -180,4 +211,4 @@ export const ProjectRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

49
src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts

@ -173,14 +173,14 @@ export const Saleprice = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -189,19 +189,50 @@ export const Saleprice = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false,
isTable: false,
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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, isForm: false,
isTable: false, isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',

107
src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts

@ -39,7 +39,7 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '可用物料类型范围', label: '可用物料类型范围',
field: 'itemTypes', field: 'itemTypes',
@ -261,29 +261,6 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isTable: false,
isForm: false,
},
{ {
label: '描述', label: '描述',
field: 'description', field: 'description',
@ -292,7 +269,7 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
@ -300,18 +277,8 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{ {
label: '创建者', label: '是否可用',
field: 'creator',
isTable: false,
isForm: false,
sort: 'custom',
table: {
width: 150
},
},
{
label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
@ -330,6 +297,70 @@ export const Businesstype = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -376,4 +407,4 @@ export const BusinesstypeRules = reactive({
onTheWayArea: [ onTheWayArea: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

99
src/views/wms/basicDataManage/documentSetting/documentsetting/documentsetting.data.ts

@ -157,19 +157,45 @@ export const Documentsetting = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
isTable: false,
isForm: false
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isTable: false,
formatter: dateFormatter,
isForm: false, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -178,45 +204,50 @@ export const Documentsetting = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
}, },
{ {
label: '备注', label: '创建者',
field: 'remark', field: 'creator',
sort: 'custom',
table: { table: {
width: 150 width: 130
}, },
},
{
label: '创建者',
field: 'creator',
isTable: false,
isForm: false, isForm: false,
sort: 'custom', isTable: true
table: {
width: 150
},
}, },
{ {
label: '是否可用', label: '最后更新时间',
field: 'available', field: 'updateTime',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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: false, isTable: false,
isForm: false table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -271,4 +302,4 @@ export const DocumentsettingRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

65
src/views/wms/basicDataManage/documentSetting/jobsetting/jobsetting.data.ts

@ -310,19 +310,25 @@ export const Jobsetting = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter,
isForm: false, isForm: false,
isTable: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -331,25 +337,50 @@ export const Jobsetting = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isForm: false,
isTable: true
}, },
{ {
label: '备注', label: '最后更新时间',
field: 'remark', field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 width: 180
}, },
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
isTable: false, isDetail: true,
isForm: false, isForm: false,
sort: 'custom', isTable: false,
table: { table: {
width: 150 width: 150
}, }
}, },
{ {
label: '操作', label: '操作',
@ -405,4 +436,4 @@ export const JobsettingRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

69
src/views/wms/basicDataManage/documentSetting/plansetting/plansetting.data.ts

@ -178,19 +178,27 @@ export const Plansetting = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '备注',
field: 'remark',
isTable: true,
sort: 'custom',
table: {
width: 150
},
isSearch: true,
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter,
isTable: false,
isForm: false, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -199,27 +207,50 @@ export const Plansetting = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isForm: false,
isTable: true
}, },
{ {
label: '备注', label: '最后更新时间',
field: 'remark', field: 'updateTime',
isTable: true,
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 width: 180
}, },
isSearch: true, form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
isTable: false, isDetail: true,
isForm: false, isForm: false,
sort: 'custom', isTable: false,
table: { table: {
width: 150 width: 150
}, }
}, },
{ {
label: '操作', label: '操作',
@ -257,4 +288,4 @@ export const PlansettingRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

91
src/views/wms/basicDataManage/documentSetting/recordsetting/recordsetting.data.ts

@ -68,16 +68,39 @@ export const Recordsetting = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '备注',
field: 'remark',
sort: 'custom',
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
sort: 'custom',
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
isTable: false,
isForm: false,
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isTable: false,
formatter: dateFormatter,
isForm: false, isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -86,36 +109,50 @@ export const Recordsetting = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
},
{
label: '备注',
field: 'remark',
sort: 'custom',
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
isTable: false, table: {
width: 130
},
isForm: false, isForm: false,
sort: 'custom', isTable: true
}, },
{ {
label: '是否可用', label: '最后更新时间',
field: 'available', field: 'updateTime',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
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',
} }
}, }
isTable: false, },
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false, isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -140,4 +177,4 @@ export const RecordsettingRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

69
src/views/wms/basicDataManage/documentSetting/requestsetting/requestsetting.data.ts

@ -178,19 +178,27 @@ export const Requestsetting = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '备注',
field: 'remark',
isTable: true,
sort: 'custom',
table: {
width: 150
},
isSearch: true,
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter,
isTable: false,
isForm: false, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -199,27 +207,50 @@ export const Requestsetting = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isForm: false,
isTable: true
}, },
{ {
label: '备注', label: '最后更新时间',
field: 'remark', field: 'updateTime',
isTable: true,
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 width: 180
}, },
isSearch: true, form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
isTable: false, isDetail: true,
isForm: false, isForm: false,
sort: 'custom', isTable: false,
table: { table: {
width: 150 width: 150
}, }
}, },
{ {
label: '操作', label: '操作',
@ -257,4 +288,4 @@ export const RequestsettingRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

69
src/views/wms/basicDataManage/documentSetting/switch/switch.data.ts

@ -1,5 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
const { t } = useI18n() // 国际化
/** /**
* @returns {Array} * @returns {Array}
*/ */
@ -61,6 +62,70 @@ export const Switch = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -86,4 +151,4 @@ export const SwitchRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

61
src/views/wms/basicDataManage/documentSetting/transactiontype/transactiontype.data.ts

@ -137,13 +137,14 @@ export const Transactiontype = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
isTable: false,
isForm: false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -152,18 +153,54 @@ export const Transactiontype = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isForm: false,
isTable: true
}, },
{ {
label: '备注', label: '最后更新时间',
field: 'remark', field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
isTable: false, isDetail: true,
isForm: false, isForm: false,
isTable: false,
table: {
width: 150
}
},
{
label: '备注',
field: 'remark',
sort: 'custom', sort: 'custom',
}, },
{ {
@ -197,4 +234,4 @@ export const TransactiontypeRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

54
src/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data.ts

@ -173,14 +173,14 @@ export const Area = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -189,19 +189,50 @@ export const Area = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isTable: false,
isForm: false
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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: false, isTable: false,
isForm: false table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -243,4 +274,5 @@ export const AreaRules = reactive({
manageMode: [ manageMode: [
{ required: true, message: '请选择管理精度', trigger: 'change' } { required: true, message: '请选择管理精度', trigger: 'change' }
] ]
}) })

53
src/views/wms/basicDataManage/factoryModeling/dock/dock.data.ts

@ -203,13 +203,13 @@ export const Dock = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -219,19 +219,50 @@ export const Dock = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isTable: false,
isForm: false
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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: false, isTable: false,
isForm: false table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -283,4 +314,4 @@ export const DockRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

53
src/views/wms/basicDataManage/factoryModeling/location/location.data.ts

@ -335,14 +335,14 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -351,19 +351,50 @@ export const Location = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false,
isTable: false
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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, isForm: false,
isTable: false isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -420,4 +451,4 @@ export const LocationRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

51
src/views/wms/basicDataManage/factoryModeling/locationgroup/locationgroup.data.ts

@ -165,14 +165,14 @@ export const Locationgroup = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -181,19 +181,50 @@ export const Locationgroup = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false,
isTable: false
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 180 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, isForm: false,
isTable: false isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -229,4 +260,4 @@ export const LocationgroupRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

61
src/views/wms/basicDataManage/factoryModeling/process/process.data.ts

@ -168,11 +168,44 @@ export const Process = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
}, },
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 180 width: 180
}, },
@ -184,27 +217,25 @@ export const Process = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isTable: false,
isForm: false
}, },
{ {
label: '备注', label: '最后更新者',
field: 'remark', field: 'updater',
sort: 'custom', isDetail: true,
isForm: false,
isTable: false,
table: { table: {
width: 150 width: 150
}, }
}, },
{ {
label: '创建者', label: '备注',
field: 'creator', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTable: false,
isForm: false
}, },
{ {
label: '操作', label: '操作',
@ -240,4 +271,4 @@ export const ProcessRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

63
src/views/wms/basicDataManage/factoryModeling/productionline/productionline.data.ts

@ -186,14 +186,14 @@ export const Productionline = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -202,27 +202,58 @@ export const Productionline = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isTable: false, isForm: false,
isForm: false isTable: true
}, },
{ {
label: '备注', label: '最后更新时间',
field: 'remark', field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 180 width: 180
}, },
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{
label: '备注',
field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
isTable: false,
isForm: false
}, },
{ {
label: '操作', label: '操作',
@ -255,4 +286,4 @@ export const ProductionlineRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

53
src/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data.ts

@ -123,14 +123,14 @@ export const Warehouse = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -139,19 +139,50 @@ export const Warehouse = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isTable: false,
isForm: false
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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: false, isTable: false,
isForm: false table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -184,4 +215,4 @@ export const WarehouseRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

61
src/views/wms/basicDataManage/factoryModeling/workshop/workshop.data.ts

@ -91,11 +91,14 @@ export const Workshop = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -104,21 +107,55 @@ export const Workshop = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isForm: false, isForm: false,
isTable: false isTable: true
}, },
{ {
label: '备注', label: '最后更新时间',
field: 'remark', field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
sort: 'custom', isDetail: true,
isForm: false, isForm: false,
isTable: false isTable: false,
table: {
width: 150
}
},
{
label: '备注',
field: 'remark',
sort: 'custom',
}, },
{ {
label: '操作', label: '操作',
@ -148,4 +185,4 @@ export const WorkshopRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

57
src/views/wms/basicDataManage/factoryModeling/workstation/workstation.data.ts

@ -237,11 +237,44 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
}, },
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 180 width: 180
}, },
@ -253,27 +286,25 @@ export const Workstation = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false, isForm: false,
isTable: false, isTable: false,
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: { table: {
width: 150 width: 150
}, }
}, },
{ {
label: '创建者', label: '备注',
field: 'creator', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isForm: false,
isTable: false,
}, },
{ {
label: '操作', label: '操作',

40
src/views/wms/basicDataManage/itemManage/bom/bom.data.ts

@ -9,7 +9,7 @@ import { Process } from '../../factoryModeling/process/process.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const Bom = useCrudSchemas(reactive<CrudSchema[]>([ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
@ -217,7 +217,41 @@ export const Bom = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
isForm: false, isForm: false,
isTable: false isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ label: '备注', field: 'remark', isTable: false }, { label: '备注', field: 'remark', isTable: false },
{ {
@ -264,4 +298,4 @@ export const BomRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

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

@ -8,8 +8,8 @@ import {validateYS} from '@/utils/validator'
* @returns {Array} * @returns {Array}
*/ */
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,8 +18,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left' fixed: 'left'
}, },
}, },
{ {
label: '名称', label: '名称',
field: 'name', field: 'name',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -27,8 +27,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{ {
label: '描述1', label: '描述1',
field: 'desc1', field: 'desc1',
sort: 'custom', sort: 'custom',
table: { table: {
@ -36,8 +36,8 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
} , } ,
// isTableForm:false // isTableForm:false
}, },
{ {
label: '描述2', label: '描述2',
field: 'desc2', field: 'desc2',
sort: 'custom', sort: 'custom',
table: { table: {
@ -292,9 +292,9 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
width: 100 width: 100
} , } ,
}, },
{ {
label: '结算方式', label: '结算方式',
field: 'settlementType', field: 'settlementType',
dictType: DICT_TYPE.SETTLEMENT_TYPE, dictType: DICT_TYPE.SETTLEMENT_TYPE,
dictClass: 'string', dictClass: 'string',
sort: 'custom', sort: 'custom',
@ -303,9 +303,9 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
width: 120 width: 120
} , } ,
}, },
{ {
label: '项目', label: '项目',
field: 'project', field: 'project',
sort: 'custom', sort: 'custom',
table: { table: {
width: 100 width: 100
@ -322,9 +322,9 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
width: 120 width: 120
} , } ,
}, },
{ {
label: '有效天数', label: '有效天数',
field: 'validityDays', field: 'validityDays',
sort: 'custom', sort: 'custom',
table: { table: {
width: 120 width: 120
@ -432,6 +432,37 @@ export const Itembasic = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
isForm: false, isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isTable: false,
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: false isTable: false
}, },
{ label: '备注', field: 'remark', sort: 'custom', isTable: false}, { label: '备注', field: 'remark', sort: 'custom', isTable: false},
@ -497,4 +528,4 @@ export const rules = reactive({
{ required: true, message: '请选择是否可用', trigger: 'change' }, { required: true, message: '请选择是否可用', trigger: 'change' },
], ],
}) })
console.log(Itembasic) console.log(Itembasic)

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

@ -11,8 +11,8 @@ const { t } = useI18n() // 国际化
* @returns {Array} * @returns {Array}
*/ */
export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -82,8 +82,8 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '包装名称', label: '包装名称',
field: 'packName', field: 'packName',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -95,8 +95,8 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
isForm:false, isForm:false,
isDetail:false isDetail:false
}, },
{ {
label: '包装数量', label: '包装数量',
field: 'packQty', field: 'packQty',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -209,8 +209,9 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false, isForm: false,
isTable: true, isTable: false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -231,8 +232,9 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '最后更新者', label: '最后更新者',
field: 'updater', field: 'updater',
isDetail: true,
isForm: false, isForm: false,
isTable: true, isTable: false,
table: { table: {
width: 150 width: 150
} }

51
src/views/wms/basicDataManage/itemManage/itemwarehouse/itemwarehouse.data.ts

@ -153,9 +153,60 @@ export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
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
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter, 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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false, isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ {
label: '删除时间', label: '删除时间',

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

@ -196,6 +196,46 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
formatter: dateFormatter, formatter: dateFormatter,
isForm: false, isForm: false,
}, },
{
label: '创建者',
field: 'creator',
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
@ -210,6 +250,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable: false, isTable: false,
isDetail: false,
table: { table: {
width: 180 width: 180
}, },
@ -226,6 +267,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
label: '删除者', label: '删除者',
field: 'deleterId', field: 'deleterId',
sort: 'custom', sort: 'custom',
isDetail: false,
isForm: false, isForm: false,
isTable: false, isTable: false,
table: { table: {
@ -237,6 +279,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
field: 'extraProperties', field: 'extraProperties',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isDetail: false,
isTable: false, isTable: false,
table: { table: {
width: 150 width: 150
@ -247,6 +290,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
field: 'concurrencyStamp', field: 'concurrencyStamp',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isDetail: false,
isTable: false, isTable: false,
table: { table: {
width: 150 width: 150
@ -261,6 +305,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
field: 'siteId', field: 'siteId',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isDetail: false,
isTable: false, isTable: false,
table: { table: {
width: 150 width: 150
@ -270,6 +315,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
label: '操作', label: '操作',
field: 'action', field: 'action',
isForm: false, isForm: false,
isDetail: false,
table: { table: {
width: 150, width: 150,
fixed: 'right' fixed: 'right'

38
src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts

@ -229,7 +229,41 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
isForm: false, isForm: false,
isTable: false isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -260,4 +294,4 @@ export const ProductionlineitemRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

40
src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts

@ -70,7 +70,7 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }]
} }
} }
}, },
@ -182,7 +182,41 @@ export const Stdcostprice = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
isForm: false, isForm: false,
isTable: false isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ {
label: '备注', label: '备注',
@ -221,4 +255,4 @@ export const StdcostpriceRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

66
src/views/wms/basicDataManage/labelManage/barcode/barcode.data.ts

@ -1,4 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
const { t } = useI18n() // 国际化
// 表单校验 // 表单校验
export const BarcodeRules = reactive({ export const BarcodeRules = reactive({
@ -143,6 +145,70 @@ export const Barcode = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

70
src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts

@ -161,7 +161,7 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
}, },
tableForm: { tableForm: {
disabled: true, disabled: true,
type: 'Select' type: 'Select'
}, },
form: { form: {
componentProps: { componentProps: {
@ -271,7 +271,7 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
key:'available', key:'available',
value:'TRUE', value:'TRUE',
isMainValue: false isMainValue: false
}] }]
} }
}, },
tableForm:{ tableForm:{
@ -295,7 +295,7 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
key:'available', key:'available',
value:'TRUE', value:'TRUE',
isMainValue: false isMainValue: false
}] }]
}, },
}, },
{ {
@ -354,48 +354,68 @@ export const Callmaterials = useCrudSchemas(reactive<CrudSchema[]>([
// } // }
// } // }
}, },
{
label: '创建者id',
field: 'creator',
sort: 'custom',
isForm: false,
table: {
width: 180,
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
isForm: false, isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
}, },
table: { form: {
width: 180, component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
} }
}, },
{ {
label: '最后更新者id', label: '创建者',
field: 'updater', field: 'creator',
sort: 'custom',
isForm: false,
table: { table: {
width: 180, width: 130
} },
isForm: false,
isTable: true
}, },
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, isDetail: true,
isForm: false, isForm: false,
isTable: false,
formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
table: { table: {
width: 180, 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: false,
table: {
width: 150
} }
}, },
{ {

67
src/views/wms/basicDataManage/labelManage/labeltype/labeltype.data.ts

@ -1,5 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
const { t } = useI18n() // 国际化
// 表单校验 // 表单校验
export const LabeltypeRules = reactive({ export const LabeltypeRules = reactive({
labelCode: [ labelCode: [
@ -178,6 +179,70 @@ export const Labeltype = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

64
src/views/wms/basicDataManage/labelManage/locationLabel/locationLabel.data.ts

@ -91,6 +91,70 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
width: 170, width: 170,
} }
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

66
src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts

@ -101,6 +101,70 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
width: 180, width: 180,
} }
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -509,4 +573,4 @@ export const PackageRulesInventor = reactive({
productionLineCodePackage: [ productionLineCodePackage: [
{ required: true, message: '请选择生产线代码', trigger: 'change' } { required: true, message: '请选择生产线代码', trigger: 'change' }
], ],
}) })

33
src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts

@ -110,6 +110,36 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
width: 180, width: 180,
} }
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -604,6 +634,7 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -665,4 +696,4 @@ export const PackageRulesInventor = reactive({
asnNumber: [ asnNumber: [
{ required: true, message: '请选择发货单号', trigger: 'change' } { required: true, message: '请选择发货单号', trigger: 'change' }
], ],
}) })

66
src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts

@ -103,6 +103,70 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
width: 180, width: 180,
} }
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -112,4 +176,4 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'right' fixed: 'right'
} }
} }
])) ]))

51
src/views/wms/basicDataManage/orderManage/carrier/carrier.data.ts

@ -210,13 +210,13 @@ export const Carrier = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -226,19 +226,50 @@ export const Carrier = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false,
isTable: false,
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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, isForm: false,
isTable: false, isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -298,4 +329,4 @@ export const CarrierRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

51
src/views/wms/basicDataManage/orderManage/owner/owner.data.ts

@ -209,14 +209,14 @@ export const Owner = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -225,19 +225,50 @@ export const Owner = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false,
isTable: false,
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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, isForm: false,
isTable: false, isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -298,4 +329,4 @@ export const OwnerRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

49
src/views/wms/basicDataManage/orderManage/shift/shift.data.ts

@ -182,14 +182,14 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -198,19 +198,50 @@ export const Shift = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false,
isTable: false,
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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, isForm: false,
isTable: false, isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',

48
src/views/wms/basicDataManage/orderManage/team/team.data.ts

@ -140,11 +140,44 @@ export const Team = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 180 width: 180
}, },
@ -156,16 +189,17 @@ export const Team = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false,
isTable: false,
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
sort: 'custom', isDetail: true,
isForm: false, isForm: false,
isTable: false, isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',

51
src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts

@ -67,7 +67,7 @@ export const Purchaseprice = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }]
} }
} }
}, },
@ -165,13 +165,44 @@ export const Purchaseprice = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false, isTable: false,
isForm:false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
@ -183,16 +214,16 @@ export const Purchaseprice = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
isDetail: true,
isForm: false,
isTable: false, isTable: false,
isForm:false,
sort: 'custom',
table: { table: {
width: 180 width: 150
} }
}, },
{ {
@ -235,4 +266,4 @@ export const PurchasepriceRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

42
src/views/wms/basicDataManage/supplierManage/supplier/supplier.data.ts

@ -222,12 +222,10 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom',
isTable: false,
isForm: false, isForm: false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
}, },
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -237,17 +235,47 @@ export const Supplier = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
},
table: {
width: 180
} }
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false, isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false, isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ {
label: '操作', label: '操作',
@ -310,4 +338,4 @@ export const SupplierRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

41
src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

@ -262,13 +262,38 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isTable: true,
isForm: false, isForm: false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
}, },
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
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 180 width: 180
}, },
@ -280,14 +305,14 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
isTable: true, isDetail: true,
isForm: false, isForm: false,
sort: 'custom', isTable: false,
table: { table: {
width: 150 width: 150
} }
@ -336,4 +361,4 @@ export const SupplieritemRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

63
src/views/wms/basicDataManage/systemSetting/accountcalendar/accountcalendar.data.ts

@ -42,7 +42,7 @@ export const Accountcalendar = useCrudSchemas(reactive<CrudSchema[]>([
valueField: 'value' valueField: 'value'
} }
}, },
}, },
}, },
{ {
@ -213,11 +213,44 @@ export const Accountcalendar = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 180 width: 180
}, },
@ -229,27 +262,25 @@ export const Accountcalendar = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isTable: false,
isForm: false
}, },
{ {
label: '备注', label: '最后更新者',
field: 'remark', field: 'updater',
sort: 'custom', isDetail: true,
isForm: false,
isTable: false,
table: { table: {
width: 150 width: 150
}, }
}, },
{ {
label: '创建者', label: '备注',
field: 'creator', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTable: false,
isForm: false
}, },
{ {
label: '操作', label: '操作',
@ -289,4 +320,4 @@ export const AccountcalendarRules = reactive({
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],
}) })

55
src/views/wms/basicDataManage/systemSetting/currencyexchange/currencyexchange.data.ts

@ -122,11 +122,44 @@ export const Currencyexchange = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 180 width: 180
}, },
@ -138,20 +171,28 @@ export const Currencyexchange = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false, isForm: false,
isTable: false, isTable: false,
table: {
width: 150
}
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
table: { table: {
@ -189,4 +230,4 @@ export const CurrencyexchangeRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

61
src/views/wms/basicDataManage/systemSetting/systemcalendar/systemcalendar.data.ts

@ -146,11 +146,44 @@ export const Systemcalendar = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat : 'YYYY-MM-DD HH:mm:ss'
}, },
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 180 width: 180
}, },
@ -162,27 +195,25 @@ export const Systemcalendar = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isTable: false,
isForm: false
}, },
{ {
label: '备注', label: '最后更新者',
field: 'remark', field: 'updater',
sort: 'custom', isDetail: true,
isForm: false,
isTable: false,
table: { table: {
width: 150 width: 150
}, }
}, },
{ {
label: '创建者', label: '备注',
field: 'creator', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTable: false,
isForm: false
}, },
{ {
label: '操作', label: '操作',
@ -208,4 +239,4 @@ export const SystemcalendarRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
}) })

59
src/views/wms/buttMesManage/mesBarCode/mesBarCode.data.ts

@ -183,24 +183,67 @@ export const MesBarCode = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', isForm: false,
formatter: dateFormatter, table: {
table: {
width: 180 width: 180
}, },
search: { formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss', style: {width:'100%'},
type: 'daterange', type: 'datetime',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
}, },
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' 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, isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ {
label: '备注', label: '备注',

33
src/views/wms/inventoryManage/expectin/expectin.data.ts

@ -129,6 +129,39 @@ export const Expectin = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false isForm: false
}, },
{
label: '更新时间',
field: 'updateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false,
isTable: false
},
{
label: '更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: false
},
])) ]))
// 表单校验 // 表单校验

33
src/views/wms/inventoryManage/expectout/expectout.data.ts

@ -137,6 +137,39 @@ export const Expectout = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false isForm: false
}, },
{
label: '更新时间',
field: 'updateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false,
isTable: false
},
{
label: '更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: false
},
])) ]))
// 表单校验 // 表单校验

35
src/views/wms/inventoryManage/transaction/transaction.data.ts

@ -33,7 +33,7 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{ {
label: '业务类型', label: '业务类型',
field: 'businessType', field: 'businessType',
@ -346,6 +346,39 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false isForm: false
}, },
{
label: '最后更新时间',
field: 'updateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false,
isTable: false
},
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: false
},
])) ]))
// 表单校验 // 表单校验

33
src/views/wms/inventoryManage/transferlog/transferlog.data.ts

@ -386,6 +386,39 @@ export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false isForm: false
}, },
{
label: '最后更新时间',
field: 'updateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false,
isTable: false
},
{
label: '更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: false
},
])) ]))
// 表单校验 // 表单校验

42
src/views/wms/issueManage/issue/issueJobMain/issueJobMain.data.ts

@ -154,7 +154,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
@ -186,7 +186,7 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable: false, isTable: false,
}, },
{ {
label: '优先级', label: '优先级',
field: 'priority', field: 'priority',
@ -350,6 +350,40 @@ export const IssueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{ {
label: '从库区代码范围', label: '从库区代码范围',
field: 'fromAreaCodes', field: 'fromAreaCodes',
@ -941,8 +975,8 @@ export const IssueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTable:false, isTable:false,
hiddenInMain:true, hiddenInMain:true,
}, },
])) ]))
//表单校验 //表单校验

58
src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts

@ -205,6 +205,27 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
@ -212,28 +233,41 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '创建时间', label: '最后更新时间',
field: 'createTime', field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
isTable: false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
}, },
// { // {
// label: '代码', // label: '代码',
@ -314,7 +348,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150 // width: 150
// }, // },
// form: { // form: {
// component: 'Switch', // component: 'Switch',
// value: 'TRUE', // value: 'TRUE',
// componentProps: { // componentProps: {
// inactiveValue: 'FALSE', // inactiveValue: 'FALSE',
@ -547,7 +581,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable:false isTable:false
}, },
{ {
label: '供应商代码', label: '供应商代码',
field: 'supplierCode', field: 'supplierCode',
@ -620,7 +654,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
hiddenInMain:true, hiddenInMain:true,
}, },
{ {
label: '到库区代码', label: '到库区代码',
field: 'toAreaCode', field: 'toAreaCode',
@ -767,7 +801,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
hiddenInMain:true, hiddenInMain:true,
}, },
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -776,7 +810,7 @@ export const IssueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150 // width: 150
// }, // },
// }, // },
// { // {
// label: '任务明细ID', // label: '任务明细ID',
// field: 'jobDetailId', // field: 'jobDetailId',
@ -834,4 +868,4 @@ export const IssueRecordDetailRules = reactive({
creator: [ creator: [
{ required: true, message: '请输入创建者', trigger: 'blur' } { required: true, message: '请输入创建者', trigger: 'blur' }
], ],
}) })

10
src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

@ -39,7 +39,7 @@ const queryParams = {
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
* @returns {Array} * @returns {Array}
*/ */
@ -392,7 +392,7 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable:false, isTable:true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -410,7 +410,7 @@ export const IssueRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:false, isTable:true,
isForm: false, isForm: false,
}, },
{ {
@ -706,8 +706,8 @@ export const IssueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',

6
src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/productionreceiptJobMain.data.ts

@ -305,7 +305,7 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -322,7 +322,7 @@ export const ProductionreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '从库区代码范围', label: '从库区代码范围',
@ -851,7 +851,7 @@ export const ProductionreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>(
}, },
hiddenInMain: true, hiddenInMain: true,
}, },
])) ]))
//表单校验 //表单校验

48
src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/productionreceiptRecordMain.data.ts

@ -196,6 +196,27 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>
}, },
isTable: false, isTable: false,
}, },
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detai: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
@ -203,28 +224,41 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '创建时间', label: '最后更新时间',
field: 'createTime', field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter, formatter: dateFormatter,
detai: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
isTable: false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ {
label: '从仓库代码', label: '从仓库代码',

6
src/views/wms/issueManage/productionreturn/productionreturnJobMain/productionreturnJobMain.data.ts

@ -308,7 +308,7 @@ export const ProductionreturnJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -325,7 +325,7 @@ export const ProductionreturnJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '从库区代码范围', label: '从库区代码范围',
@ -813,7 +813,7 @@ export const ProductionreturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
])) ]))
//表单校验 //表单校验

46
src/views/wms/issueManage/productionreturn/productionreturnRecordMain/productionreturnRecordMain.data.ts

@ -45,7 +45,7 @@ export const ProductionreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
isTable: false, isTable: false,
isSearch: true isSearch: true
}, },
{ {
label: '任务单号', label: '任务单号',
field: 'jobNumber', field: 'jobNumber',
@ -56,7 +56,7 @@ export const ProductionreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
isTable: false, isTable: false,
isSearch: true isSearch: true
}, },
{ {
label: '出库事务类型', label: '出库事务类型',
field: 'outTransactionType', field: 'outTransactionType',
@ -205,7 +205,7 @@ export const ProductionreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '创建时间', label: '创建时间',
@ -218,7 +218,7 @@ export const ProductionreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -228,6 +228,40 @@ export const ProductionreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
}, },
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -665,7 +699,7 @@ export const ProductionreturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]
width: 150 width: 150
}, },
}, },
])) ]))
//表单校验 //表单校验
@ -715,4 +749,4 @@ export const ProductionreturnRecordDetailRules = reactive({
creator: [ creator: [
{ required: true, message: '请输入创建者', trigger: 'blur' } { required: true, message: '请输入创建者', trigger: 'blur' }
], ],
}) })

12
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -44,7 +44,7 @@ const queryParams = {
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
* @returns {Array} 退 * @returns {Array} 退
*/ */
@ -400,7 +400,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -419,7 +419,7 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
isForm: false isForm: false
}, },
{ {
@ -490,7 +490,7 @@ export const ProductionreturnRequestMainRules = reactive({
], ],
workshopCode: [ workshopCode: [
{ required: true, message: '请选择车间', trigger: 'change' } { required: true, message: '请选择车间', trigger: 'change' }
], ],
}) })
/** /**
@ -928,7 +928,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{ {
label: '包装规格', label: '包装规格',
field: 'packUnit', field: 'packUnit',
@ -998,7 +998,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
} }
} }
}, },
{ {
label: '包装号', label: '包装号',
field: 'packingNumber', field: 'packingNumber',

8
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

@ -128,7 +128,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
}] }]
}, },
}, },
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
@ -400,6 +400,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
table: { table: {
width: 150 width: 150
}, },
isTable: true,
hiddenInMain: true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
@ -426,7 +427,8 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
} }
}, },
isTableForm: false, isTableForm: false,
isForm: false isForm: false,
isTable: true,
}, },
{ {
label: '包装规格', label: '包装规格',
@ -842,7 +844,7 @@ export const ProductionreturnRequestDetailNoLabelRules = reactive({
], ],
productionLineCodePackage: [ productionLineCodePackage: [
{ required: true, message: '请选择生产线', trigger: 'change' } { required: true, message: '请选择生产线', trigger: 'change' }
], ],
batch: [ batch: [
{ required: true, message: '请输入批次', trigger: 'blur' } { required: true, message: '请输入批次', trigger: 'blur' }
] ]

4
src/views/wms/issueManage/repleinsh/repleinshJobMain/repleinshJobMain.data.ts

@ -532,7 +532,7 @@ export const RepleinshJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
@ -546,7 +546,7 @@ export const RepleinshJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {

40
src/views/wms/issueManage/repleinsh/repleinshRecordMain/repleinshRecordMain.data.ts

@ -204,7 +204,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '创建时间', label: '创建时间',
@ -217,7 +217,7 @@ export const RepleinshRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -227,6 +227,40 @@ export const RepleinshRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -756,4 +790,4 @@ export const RepleinshRecordDetailRules = reactive({
toAreaCode: [ toAreaCode: [
{ required: true, message: '请选择到库区代码', trigger: 'change' } { required: true, message: '请选择到库区代码', trigger: 'change' }
], ],
}) })

10
src/views/wms/issueManage/repleinsh/repleinshRequestMain/repleinshRequestMain.data.ts

@ -340,7 +340,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -358,7 +358,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
isForm: false, isForm: false,
}, },
{ {
@ -372,6 +372,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isDetail: true,
hiddenInMain:true, hiddenInMain:true,
isTable: false, isTable: false,
form: { form: {
@ -394,6 +395,7 @@ export const RepleinshRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
hiddenInMain:true, hiddenInMain:true,
isTable: false, isTable: false,
isDetail: true,
isForm: false, isForm: false,
}, },
{ {
@ -561,7 +563,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true disabled: true
} }
}, },
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -769,7 +771,7 @@ export const RepleinshRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
sortTableDefault:2, sortTableDefault:2,
}, },
{ {
label: '从货主代码', label: '从货主代码',
field: 'fromOwnerCode', field: 'fromOwnerCode',

40
src/views/wms/productionManage/productdismantle/productdismantleRecordMain/productdismantleRecordMain.data.ts

@ -190,7 +190,7 @@ export const ProductdismantleRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
isTable: false, isTable: true,
table: { table: {
width: 150 width: 150
}, },
@ -206,7 +206,7 @@ export const ProductdismantleRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -216,6 +216,40 @@ export const ProductdismantleRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
}, },
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -479,7 +513,7 @@ export const ProductdismantleRecordDetaila = useCrudSchemas(reactive<CrudSchema[
width: 150 width: 150
}, },
}, },
{ {
label: '物料名称', label: '物料名称',
field: 'itemName', field: 'itemName',

4
src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts

@ -493,7 +493,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
isForm: false, isForm: false,
}, },
{ {
@ -507,7 +507,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {

6
src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

@ -484,7 +484,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
isForm: false, isForm: false,
}, },
{ {
@ -498,7 +498,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -787,6 +787,7 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: true,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
hiddenInMain: true, hiddenInMain: true,
@ -802,6 +803,7 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: true,
hiddenInMain: true, hiddenInMain: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',

6
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts

@ -484,7 +484,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
isForm: false, isForm: false,
}, },
{ {
@ -498,7 +498,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -791,11 +791,13 @@ export const ProductionDetail = useCrudSchemas(reactive<CrudSchema[]>([
hiddenInMain: true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
isTable: true,
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, formatter: dateFormatter,
isTable: true,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },

4
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/productionMainPredictSparePart.data.ts

@ -485,7 +485,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
isForm: false, isForm: false,
}, },
{ {
@ -499,7 +499,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {

2
src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts

@ -134,7 +134,7 @@ export const ProductreceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{ {
label: '过期时间', label: '过期时间',
field: 'expiredTime', field: 'expiredTime',

44
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts

@ -229,7 +229,7 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '创建时间', label: '创建时间',
@ -238,7 +238,7 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
isTable: false, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -252,6 +252,40 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -557,7 +591,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
}, },
{ {
label: '到货主代码', label: '到货主代码',
field: 'toOwnerCode', field: 'toOwnerCode',
@ -568,7 +602,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
isTable: false, isTable: false,
}, },
{ {
label: '到库位组代码', label: '到库位组代码',
field: 'toLocationGroupCode', field: 'toLocationGroupCode',
@ -987,4 +1021,4 @@ export const BackflushRecordDetailbRules = reactive({
creator: [ creator: [
{ required: true, message: '请输入创建者', trigger: 'blur' } { required: true, message: '请输入创建者', trigger: 'blur' }
], ],
}) })

6
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts

@ -51,7 +51,7 @@ const queryParams = {
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
* @returns {Array} * @returns {Array}
*/ */
@ -998,7 +998,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
tableForm: { tableForm: {
type: 'Select' type: 'Select'
} }
}, },
{ {
label: '生产日期', label: '生产日期',
@ -1347,7 +1347,7 @@ export const BackflushRequestDetailbRules = reactive({
creator: [ creator: [
{ required: true, message: '请输入创建者', trigger: 'blur' } { required: true, message: '请输入创建者', trigger: 'blur' }
], ],
}) })

42
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts

@ -256,6 +256,40 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -561,7 +595,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
}, },
{ {
label: '到货主代码', label: '到货主代码',
field: 'toOwnerCode', field: 'toOwnerCode',
@ -571,7 +605,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
}, },
isTable: false, isTable: false,
}, },
{ {
label: '到库位组代码', label: '到库位组代码',
field: 'toLocationGroupCode', field: 'toLocationGroupCode',
@ -620,8 +654,8 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
component: 'InputNumber', component: 'InputNumber',
} }
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

11
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/productreceiptAssembleRequestMain.data.ts

@ -51,7 +51,7 @@ const queryParams = {
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
* @returns {Array} * @returns {Array}
*/ */
@ -392,7 +392,7 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
@ -999,7 +999,6 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
tableForm: { tableForm: {
type: 'Select' type: 'Select'
} }
}, },
{ {
label: '生产日期', label: '生产日期',
@ -1089,13 +1088,15 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
} }
}, },
isTableForm: false, isTableForm: false,
isForm: false isForm: false,
isTable: true
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sortTableDefault:1010, sortTableDefault:1010,
sort: 'custom', sort: 'custom',
isTable: true,
table: { table: {
width: 150 width: 150
}, },
@ -1347,7 +1348,7 @@ export const BackflushRequestDetailbRules = reactive({
creator: [ creator: [
{ required: true, message: '请输入创建者', trigger: 'blur' } { required: true, message: '请输入创建者', trigger: 'blur' }
], ],
}) })

44
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/productreceiptscrapRecordMain.data.ts

@ -217,7 +217,7 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '创建时间', label: '创建时间',
@ -230,7 +230,7 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -240,6 +240,40 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -574,7 +608,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
}, },
isTable: false, isTable: false,
}, },
{ {
label: '到库位组代码', label: '到库位组代码',
field: 'toLocationGroupCode', field: 'toLocationGroupCode',
@ -650,7 +684,7 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
}, },
isTable: false, isTable: false,
}, },
// { // {
// label: '任务明细ID', // label: '任务明细ID',
// field: 'jobDetailId', // field: 'jobDetailId',
@ -982,4 +1016,4 @@ export const BackflushRecordDetailbRules = reactive({
creator: [ creator: [
{ required: true, message: '请输入创建者', trigger: 'blur' } { required: true, message: '请输入创建者', trigger: 'blur' }
], ],
}) })

10
src/views/wms/productionManage/productredress/productredressJobMain/productredressJobMain.data.ts

@ -376,7 +376,7 @@ export const ProductredressJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:false, isTable:true,
isForm: false, isForm: false,
}, },
{ {
@ -390,7 +390,7 @@ export const ProductredressJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable:false, isTable:true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -453,7 +453,7 @@ export const ProductredressJobDetailRules = reactive({
}) })
export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
@ -582,7 +582,7 @@ export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
// }, // },
// isForm: false // isForm: false
// }, // },
{ {
label: '物品描述1', label: '物品描述1',
field: 'itemDesc1', field: 'itemDesc1',
@ -621,7 +621,7 @@ export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150 // width: 150
// }, // },
// }, // },
{ {
label: '订单号', label: '订单号',
field: 'woNumber', field: 'woNumber',

16
src/views/wms/productionManage/productredress/productredressRecordMain/productredressRecordMain.data.ts

@ -271,7 +271,7 @@ export const ProductredressRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable:false, isTable:true,
table: { table: {
width: 150 width: 150
}, },
@ -287,7 +287,7 @@ export const ProductredressRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable:false, isTable:true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -448,8 +448,8 @@ export const ProductredressRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
isTable:false, isTable:false,
hiddenInMain: true hiddenInMain: true
}, },
{ {
label: '物品描述1', label: '物品描述1',
field: 'itemDesc1', field: 'itemDesc1',
@ -528,8 +528,8 @@ export const ProductredressRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
}, },
isForm: false isForm: false
}, },
{ {
label: 'BOM版本', label: 'BOM版本',
field: 'bomVersion', field: 'bomVersion',
@ -540,8 +540,8 @@ export const ProductredressRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
isTable:false, isTable:false,
hiddenInMain: true, hiddenInMain: true,
}, },
// { // {
// label: '到货主代码', // label: '到货主代码',
// field: 'toOwnerCode', // field: 'toOwnerCode',

10
src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts

@ -225,7 +225,7 @@ export const ProductredressRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
isTable: false, isTable: true,
table: { table: {
width: 150 width: 150
}, },
@ -241,7 +241,7 @@ export const ProductredressRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -307,7 +307,7 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
// field: 'bomVersion', // field: 'bomVersion',
// sort: 'custom', // sort: 'custom',
// }, // },
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
@ -548,7 +548,7 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
isTableForm: false, isTableForm: false,
hiddenInMain:true, hiddenInMain:true,
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
@ -633,7 +633,7 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

38
src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts

@ -204,7 +204,7 @@ export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false isTable: true
}, },
{ {
label: '创建时间', label: '创建时间',
@ -217,7 +217,7 @@ export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -227,6 +227,40 @@ export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',

10
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -45,7 +45,7 @@ const queryParams = {
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
* @returns {Array} * @returns {Array}
*/ */
@ -274,7 +274,7 @@ export const ProductrepairRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -293,7 +293,7 @@ export const ProductrepairRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
isForm: false, isForm: false,
}, },
{ {
@ -366,7 +366,7 @@ export const ProductrepairRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
@ -540,7 +540,7 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
label: '返修工位', label: '返修工位',
field: 'workStationCode', field: 'workStationCode',

42
src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts

@ -227,7 +227,7 @@ export const ProductscrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '创建时间', label: '创建时间',
@ -240,7 +240,7 @@ export const ProductscrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -250,6 +250,40 @@ export const ProductscrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -534,7 +568,7 @@ export const ProductscrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -583,7 +617,7 @@ export const ProductscrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{ {
label: '物料描述1', label: '物料描述1',
field: 'itemDesc1', field: 'itemDesc1',

4
src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

@ -1023,7 +1023,7 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -1043,7 +1043,7 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },

37
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts

@ -636,7 +636,38 @@ export const PurchasereceiptJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
sortTableDefault:1001, sortTableDefault:1001,
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
}
])) ]))
//表单校验 //表单校验
@ -896,7 +927,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true disabled: true
} }
}, },
{ {
label: '供应商计量数量', label: '供应商计量数量',
field: 'supplierQty', field: 'supplierQty',
@ -1114,7 +1145,7 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTableForm:true, isTableForm:true,
}, },
])) ]))
//表单校验 //表单校验

78
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts

@ -378,7 +378,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
@ -445,6 +445,70 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
sortTableDefault:12, sortTableDefault:12,
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
])) ]))
// 表单校验 // 表单校验
@ -763,7 +827,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
sortTableDefault:24, sortTableDefault:24,
hiddenInMain:true hiddenInMain:true
}, },
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
@ -1004,7 +1068,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
// width: 150 // width: 150
// }, // },
// }, // },
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
@ -1077,7 +1141,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
sortTableDefault:2000, sortTableDefault:2000,
}, },
{ {
label: '操作', label: '操作',
hiddenInMain:true, hiddenInMain:true,
@ -1415,7 +1479,7 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
disabled: true, disabled: true,
} }
}, },
{ {
label: '包装数量', label: '包装数量',
field: 'packQty', field: 'packQty',
@ -1432,7 +1496,7 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
tableForm: { tableForm: {
disabled: true, disabled: true,
} }
}, },
{ {
label: '包装规格', label: '包装规格',
@ -1452,7 +1516,7 @@ export const PurchasereceiptRecordDetailPackingNumber = useCrudSchemas(reactive<
tableForm: { tableForm: {
disabled: true, disabled: true,
} }
}, },
{ {
label: '供应商计量数量', label: '供应商计量数量',

57
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts

@ -30,7 +30,7 @@ const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
* @returns {Array} * @returns {Array}
*/ */
@ -301,14 +301,14 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -317,19 +317,50 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false,
isTable: false,
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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, isForm: false,
isTable: false, isTable: false,
table: {
width: 150
}
}, },
{ {
label: '申请时间', label: '申请时间',
@ -565,7 +596,7 @@ export const PurchasereceiptRequestMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
@ -1180,7 +1211,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
@ -1207,7 +1238,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
} }
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

8
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/purchasereturnJobMain.data.ts

@ -562,7 +562,7 @@ export const PurchasereturnJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '创建时间', label: '创建时间',
@ -575,7 +575,7 @@ export const PurchasereturnJobMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -768,7 +768,7 @@ export const PurchasereturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
sortTableDefault: 15, sortTableDefault: 15,
hiddenInMain:true, hiddenInMain:true,
}, },
{ {
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
@ -952,7 +952,7 @@ export const PurchasereturnJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
])) ]))
//表单校验 //表单校验

12
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts

@ -338,7 +338,7 @@ export const PurchasereturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: true,
}, },
{ {
label: '创建时间', label: '创建时间',
@ -351,7 +351,7 @@ export const PurchasereturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable: false, isTable: true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -435,7 +435,7 @@ export const PurchasereturnRecordMainRules = reactive({
* @returns {Array} 退 * @returns {Array} 退
*/ */
export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '从包装号', label: '从包装号',
field: 'fromPackingNumber', field: 'fromPackingNumber',
@ -693,7 +693,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
sortTableDefault: 1013, sortTableDefault: 1013,
hiddenInMain: true hiddenInMain: true
}, },
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
@ -864,7 +864,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
}, },
])) ]))
//表单校验 //表单校验
@ -902,4 +902,4 @@ export const PurchasereturnRecordDetailRules = reactive({
poline: [ poline: [
{ required: true, message: '请选择订单行', trigger: 'change' } { required: true, message: '请选择订单行', trigger: 'change' }
], ],
}) })

107
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -32,7 +32,7 @@ const queryParams = {
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
// 采购收货记录展示列 // 采购收货记录展示列
export const PurchasereceiptRecordMain1 = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchasereceiptRecordMain1 = useCrudSchemas(reactive<CrudSchema[]>([
@ -82,7 +82,7 @@ export const PurchasereceiptRecordMain1 = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
}, },
{ {
label: '物料名称', label: '物料名称',
field: 'itemName', field: 'itemName',
@ -139,8 +139,8 @@ export const PurchasereceiptRecordMain1 = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
}, },
])) ]))
/** /**
@ -438,7 +438,7 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '原因', label: '原因',
field: 'remark', field: 'remark',
@ -448,28 +448,50 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom',
table: { table: {
width: 150 width: 130
}, },
isForm: false, isForm: false,
isTable: false, isTable: true
}, },
{ {
label: '创建时间', label: '最后更新时间',
field: 'createTime', field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
isTable: false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -478,8 +500,17 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false, isForm: false,
isTable: false,
table: {
width: 150
}
}, },
{ {
label: '自动提交', label: '自动提交',
@ -649,7 +680,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
isInpuFocusShow: false, // 开启查询弹窗 isInpuFocusShow: false, // 开启查询弹窗
searchListPlaceholder: '请选择订单行', searchListPlaceholder: '请选择订单行',
@ -729,7 +760,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
@ -747,7 +778,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
isTableForm:false, isTableForm:false,
isTable:false, isTable:false,
hiddenInMain: true, hiddenInMain: true,
tableForm:{ tableForm:{
disabled:true disabled:true
@ -766,7 +797,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
isTableForm:false, isTableForm:false,
isTable:false, isTable:false,
hiddenInMain: true, hiddenInMain: true,
tableForm:{ tableForm:{
disabled:true disabled:true
@ -798,8 +829,8 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
field: 'altBatch', field: 'altBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true, hiddenInMain: true,
isTableForm: false, isTableForm: false,
isTable: false, isTable: false,
@ -818,7 +849,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true, hiddenInMain: true,
tableForm:{ tableForm:{
disabled:true disabled:true
@ -841,7 +872,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true, disabled:true,
type: 'Select', type: 'Select',
@ -907,7 +938,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { form: {
componentProps:{ componentProps:{
disabled:true disabled:true
@ -942,7 +973,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true, hiddenInMain: true,
isTable: false, isTable: false,
form: { form: {
@ -1035,7 +1066,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true, disabled:true,
type: 'Select', type: 'Select',
@ -1054,7 +1085,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
@ -1073,7 +1104,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
@ -1092,7 +1123,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
@ -1125,7 +1156,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm:{ tableForm:{
disabled:true, disabled:true,
type: 'FormDate', type: 'FormDate',
@ -1155,7 +1186,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm:{ tableForm:{
disabled:true, disabled:true,
type: 'FormDate', type: 'FormDate',
@ -1185,7 +1216,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTableForm: false, isTableForm: false,
isTable: false, isTable: false,
tableForm:{ tableForm:{
@ -1201,7 +1232,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
@ -1220,7 +1251,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
@ -1240,7 +1271,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
hiddenInMain: true, hiddenInMain: true,
tableForm:{ tableForm:{
disabled:true disabled:true
@ -1259,7 +1290,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
@ -1277,7 +1308,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
@ -1309,7 +1340,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
@ -1322,7 +1353,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
disabled:true disabled:true
}, },
@ -1528,7 +1559,7 @@ export const PurchasereReturnRequestDetailLabel = useCrudSchemas(reactive<CrudSc
valueFormat: 'x', valueFormat: 'x',
}, },
}, },
{ {
label: '替代批次', label: '替代批次',
field: 'altBatch', field: 'altBatch',

50
src/views/wms/purchasereceiptManage/putaway/putawayJobMain/putawayJobMain.data.ts

@ -262,32 +262,66 @@ export const PutawayJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
isTable: false, formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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: false, isTable: false,
table: {
width: 150
}
}, },
// { // {
// label: '到仓库代码', // label: '到仓库代码',

52
src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts

@ -185,35 +185,69 @@ export const PutawayRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom',
table: { table: {
width: 150 width: 130
}, },
isTable: false, isForm: false,
isTable: true
}, },
{ {
label: '创建时间', label: '最后更新时间',
field: 'createTime', field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
isTable: false,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
}, },
// { // {
// label: '代码', // label: '代码',
@ -658,7 +692,7 @@ export const PutawayRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
component: 'InputNumber', component: 'InputNumber',
} }
}, },
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',

57
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/putawayRequestMain.data.ts

@ -45,7 +45,7 @@ const requestsettingData = data?.list[0] || {}
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
* @returns {Array} * @returns {Array}
*/ */
@ -203,35 +203,66 @@ export const PutawayRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
formatter: dateFormatter, isForm: false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
isTable: false, formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width: '100%' }, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, }
isForm: false
}, },
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom', sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: { table: {
width: 150 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: false, isTable: false,
isForm: false table: {
width: 150
}
}, },
{ {
label: '申请时间', label: '申请时间',
@ -1283,4 +1314,4 @@ export const PutawayRequestDetailChildPackingNumber = useCrudSchemas(reactive<Cr
disabled: true, disabled: true,
} }
} }
])) ]))

14
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRecordMain/sparereceiptRecordMain.data.ts

@ -353,7 +353,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable:false, isTable:true,
}, },
{ {
label: '创建时间', label: '创建时间',
@ -366,7 +366,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 180 width: 180
}, },
isTable:false, isTable:true,
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -377,7 +377,7 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
@ -762,7 +762,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
sortTableDefault:24, sortTableDefault:24,
hiddenInMain:true hiddenInMain:true
}, },
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',
@ -1003,7 +1003,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
// width: 150 // width: 150
// }, // },
// }, // },
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
@ -1077,7 +1077,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
sortTableDefault:2000, sortTableDefault:2000,
}, },
{ {
label: '操作', label: '操作',
hiddenInMain:true, hiddenInMain:true,
@ -1145,4 +1145,4 @@ export const PurchasereceiptRecordDetailRules = reactive({
visualInspectResult: [ visualInspectResult: [
{ required: true, message: '请选择目检结果', trigger: 'change' } { required: true, message: '请选择目检结果', trigger: 'change' }
], ],
}) })

105
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/sparereceiptRequestMain.data.ts

@ -33,7 +33,7 @@ import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
/** /**
* @returns {Array} * @returns {Array}
@ -302,39 +302,6 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
isTable: false, isTable: false,
}, },
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false,
isTable: false,
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: false,
},
{ {
label: '申请时间', label: '申请时间',
field: 'requestTime', field: 'requestTime',
@ -519,6 +486,70 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
isTable: false, isTable: false,
isSearch: false, isSearch: false,
}, },
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat : 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
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',
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -569,7 +600,7 @@ export const PurchasereceiptRequestMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
@ -1184,7 +1215,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
@ -1211,7 +1242,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
} }
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

42
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/purchaseclaimRecordMain.data.ts

@ -162,27 +162,27 @@ export const PurchaseclaimRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ // {
label: '创建者', // label: '创建者',
field: 'creator', // field: 'creator',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
} // }
}, // },
{ // {
label: '创建时间', // label: '创建时间',
field: 'createTime', // field: 'createTime',
isTable: true, // isTable: true,
formatter: dateFormatter, // formatter: dateFormatter,
detail: { // detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' // dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, // },
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 180 // width: 180
} // }
}, // },
])) ]))
//表单校验 //表单校验

9
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

@ -18,7 +18,7 @@ const { t } = useI18n() // 国际化
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray:any = [userDept]
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = { const queryParams = {
@ -294,6 +294,7 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '最后更新者', label: '最后更新者',
field: 'updater', field: 'updater',
isForm:false, isForm:false,
isTable: false,
table: { table: {
width: 120 width: 120
} }
@ -301,7 +302,7 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
isTable: true, isTable: false,
formatter: dateFormatter, formatter: dateFormatter,
isForm:false, isForm:false,
detail: { detail: {
@ -403,7 +404,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物料名称', label: '物料名称',
@ -474,7 +475,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
// disabled:true, // disabled:true,
// } // }
}, },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

Loading…
Cancel
Save