Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
66d766ae0f
  1. 6
      src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts
  2. 10
      src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts
  3. 8
      src/views/wms/countManage/count/countRecordMain/countRecordMain.data.ts
  4. 8
      src/views/wms/countManage/countadjust/countadjustRecordMain/countadjustRecordMain.data.ts
  5. 8
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/customerreceiptRecordMain.data.ts
  6. 8
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/customerreturnRecordMain.data.ts
  7. 8
      src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/customersettleRecordMain.data.ts
  8. 8
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts
  9. 8
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
  10. 14
      src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts
  11. 26
      src/views/wms/inventoryManage/balance/balance.data.ts
  12. 16
      src/views/wms/inventoryManage/package/package.data.ts
  13. 26
      src/views/wms/inventoryManage/transaction/transaction.data.ts
  14. 26
      src/views/wms/inventoryManage/transferlog/transferlog.data.ts
  15. 32
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/inventoryinitRecordMain.data.ts
  16. 32
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
  17. 8
      src/views/wms/inventoryjobManage/packageManage/packagemergeMain/packagemergeMain.data.ts
  18. 8
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverMain.data.ts
  19. 8
      src/views/wms/inventoryjobManage/packageManage/packagesplitMain/packagesplitMain.data.ts
  20. 8
      src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts
  21. 8
      src/views/wms/inventoryjobManage/transferissue/transferissueRecordMain/transferissueRecordMain.data.ts
  22. 8
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRecordMain/transferreceiptRecordMain.data.ts
  23. 8
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts
  24. 20
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/unplannedreceiptJobMain.data.ts
  25. 26
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts
  26. 32
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  27. 8
      src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts
  28. 8
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRecordMain/onlinesettlementRecordMain.data.ts
  29. 8
      src/views/wms/issueManage/pick/pickRecordMain/pickRecordMain.data.ts
  30. 8
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts
  31. 9
      src/views/wms/issueManage/productionreceipt/productionreceiptRecordMain/productionreceiptRecordMain.data.ts
  32. 9
      src/views/wms/issueManage/productionreturn/productionreturnRecordMain/productionreturnRecordMain.data.ts
  33. 9
      src/views/wms/issueManage/repleinsh/repleinshRecordMain/repleinshRecordMain.data.ts
  34. 51
      src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts
  35. 46
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts
  36. 9
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/inventorymoveRecordMain.data.ts
  37. 22
      src/views/wms/moveManage/itemChange/itemChange.data.ts
  38. 9
      src/views/wms/productionManage/offlinesettlement/offlinesettlementRecordMain/offlinesettlementRecordMain.data.ts
  39. 16
      src/views/wms/productionManage/productdismantle/productdismantleJobMain/productdismantleJobMain.data.ts
  40. 23
      src/views/wms/productionManage/productdismantle/productdismantleRecordMain/productdismantleRecordMain.data.ts
  41. 18
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts
  42. 14
      src/views/wms/productionManage/productionplan/workMain/workMain.data.ts
  43. 9
      src/views/wms/productionManage/productputaway/productputawayRecordMain/productputawayRecordMain.data.ts
  44. 16
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts
  45. 23
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data.ts
  46. 18
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data.ts
  47. 23
      src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts
  48. 9
      src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts
  49. 9
      src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/inspectRecordMain.data.ts
  50. 23
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/purchasereceiptJobMain.data.ts
  51. 30
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
  52. 20
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts
  53. 9
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts
  54. 36
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
  55. 9
      src/views/wms/purchasereceiptManage/putaway/putawayRecordMain/putawayRecordMain.data.ts
  56. 12
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts
  57. 14
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts
  58. 18
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierPackage/supplierPackage.data.ts
  59. 30
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts
  60. 32
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts
  61. 6
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/purchaseclaimRecordMain.data.ts
  62. 6
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import { Itembasic } from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data"; import { Itembasic } from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data";
import * as ItembasicApi from "@/api/wms/itembasic"; import * as ItembasicApi from "@/api/wms/itembasic";
@ -186,12 +186,12 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter2,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD',
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')], defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')],
disabled: true disabled: true

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import { Itembasic } from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data"; import { Itembasic } from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data";
import * as ItembasicApi from "@/api/wms/itembasic"; import * as ItembasicApi from "@/api/wms/itembasic";
@ -195,12 +195,12 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter2,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD',
type: 'daterange', type: 'daterange',
disabled: true, disabled: true,
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
@ -239,12 +239,12 @@ export const PackageInventory = useCrudSchemas(reactive<CrudSchema[]>([
label: '失效日期', label: '失效日期',
field: 'expireDate', field: 'expireDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter2,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD',
type: 'daterange', type: 'daterange',
disabled: true, disabled: true,
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]

8
src/views/wms/countManage/count/countRecordMain/countRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -139,9 +139,9 @@ export const CountRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -151,7 +151,7 @@ export const CountRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/countManage/countadjust/countadjustRecordMain/countadjustRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -120,9 +120,9 @@ export const CountadjustRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -132,7 +132,7 @@ export const CountadjustRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRecordMain/customerreceiptRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -143,9 +143,9 @@ export const CustomerreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -155,7 +155,7 @@ export const CustomerreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/customerreturnRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} 退 * @returns {Array} 退
@ -152,9 +152,9 @@ export const CustomerreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -164,7 +164,7 @@ export const CustomerreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/deliversettlementManage/customersettle/customersettleRecordMain/customersettleRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -112,9 +112,9 @@ export const CustomersettleRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -124,7 +124,7 @@ export const CustomersettleRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -152,9 +152,9 @@ export const DeliverRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -164,7 +164,7 @@ export const DeliverRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as CustomerApi from '@/api/wms/customer' import * as CustomerApi from '@/api/wms/customer'
import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data' import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data'
@ -66,9 +66,9 @@ export const DeliverPlanMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '计划日期', label: '计划日期',
field: 'planDate', field: 'planDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -78,7 +78,7 @@ export const DeliverPlanMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

14
src/views/wms/deliversettlementManage/deliverplan/saleMain/saleMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as CustomerApi from '@/api/wms/customer' import * as CustomerApi from '@/api/wms/customer'
import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data' import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data'
@ -64,9 +64,9 @@ export const SaleMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单日期', label: '订单日期',
field: 'orderDate', field: 'orderDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -76,7 +76,7 @@ export const SaleMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -84,9 +84,9 @@ export const SaleMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '截止日期', label: '截止日期',
field: 'dueDate', field: 'dueDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -96,7 +96,7 @@ export const SaleMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

26
src/views/wms/inventoryManage/balance/balance.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -156,9 +156,9 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -168,16 +168,18 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
} dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
}, },
},
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -187,16 +189,18 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
} },
}, },
{ {
label: '失效日期', label: '失效日期',
field: 'expireDate', field: 'expireDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -206,8 +210,10 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
} },
}, },
{ {
label: '货主代码', label: '货主代码',

16
src/views/wms/inventoryManage/package/package.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const PackageRules = reactive({ export const PackageRules = reactive({
@ -80,12 +80,12 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter2,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD',
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
@ -94,7 +94,8 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
valueFormat: 'x' dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
}, },
table: { table: {
@ -120,12 +121,12 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
label: '失效日期', label: '失效日期',
field: 'expireDate', field: 'expireDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter2,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD',
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
@ -134,7 +135,8 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
valueFormat: 'x' dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
}, },
table: { table: {

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -223,9 +223,9 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -235,16 +235,18 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
} dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
}, },
},
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -254,8 +256,10 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
} },
}, },
{ {
label: '生效时间', label: '生效时间',
@ -280,9 +284,9 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
label: '失效日期', label: '失效日期',
field: 'expireDate', field: 'expireDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -292,8 +296,10 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
} },
}, },
{ {
label: '货主代码', label: '货主代码',

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -90,9 +90,9 @@ export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -102,16 +102,18 @@ export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
} dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
}, },
},
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -121,8 +123,10 @@ export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
} },
}, },
{ {
label: '生效时间', label: '生效时间',
@ -141,9 +145,9 @@ export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
label: '失效日期', label: '失效日期',
field: 'expireDate', field: 'expireDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -153,8 +157,10 @@ export const Transferlog = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
} },
}, },
{ {
label: '从事务号', label: '从事务号',

32
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRecordMain/inventoryinitRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -95,20 +95,20 @@ export const InventoryinitRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
form: { form: {
component: 'Switch', component: 'DatePicker',
value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', type: 'datetime',
activeValue: 'TRUE' dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
} }
}, },
@ -454,9 +454,9 @@ export const InventoryinitRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -466,7 +466,7 @@ export const InventoryinitRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -474,9 +474,9 @@ export const InventoryinitRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -486,7 +486,7 @@ export const InventoryinitRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -494,9 +494,9 @@ export const InventoryinitRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -506,7 +506,7 @@ export const InventoryinitRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

32
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as WarehouseApi from '@/api/wms/warehouse' import * as WarehouseApi from '@/api/wms/warehouse'
@ -671,9 +671,9 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -684,22 +684,22 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -710,22 +710,22 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -736,13 +736,13 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/inventoryjobManage/packageManage/packagemergeMain/packagemergeMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
export const PackagemergeMain = useCrudSchemas(reactive<CrudSchema[]>([ export const PackagemergeMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
@ -61,9 +61,9 @@ export const PackagemergeMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
table: { table: {
width: 180 width: 180
@ -73,7 +73,7 @@ export const PackagemergeMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
export const PackageoverMain = useCrudSchemas(reactive<CrudSchema[]>([ export const PackageoverMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
@ -61,9 +61,9 @@ export const PackageoverMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
table: { table: {
width: 180 width: 180
@ -73,7 +73,7 @@ export const PackageoverMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/inventoryjobManage/packageManage/packagesplitMain/packagesplitMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
export const PackagesplitMain = useCrudSchemas(reactive<CrudSchema[]>([ export const PackagesplitMain = useCrudSchemas(reactive<CrudSchema[]>([
@ -62,9 +62,9 @@ export const PackagesplitMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
table: { table: {
width: 180 width: 180
@ -74,7 +74,7 @@ export const PackagesplitMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -96,9 +96,9 @@ export const ScrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -108,7 +108,7 @@ export const ScrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/inventoryjobManage/transferissue/transferissueRecordMain/transferissueRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -120,9 +120,9 @@ export const TransferissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -132,7 +132,7 @@ export const TransferissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRecordMain/transferreceiptRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -88,9 +88,9 @@ export const TransferreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -100,7 +100,7 @@ export const TransferreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -96,9 +96,9 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -108,7 +108,7 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

20
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/unplannedreceiptJobMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -724,9 +724,9 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -736,7 +736,7 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -744,9 +744,9 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -756,7 +756,7 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -764,9 +764,9 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -776,7 +776,7 @@ export const UnplannedreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

26
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -96,9 +96,9 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -108,7 +108,7 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -432,9 +432,9 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -444,7 +444,7 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -452,9 +452,9 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -464,7 +464,7 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -472,9 +472,9 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -484,7 +484,7 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

32
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance' import * as BalanceApi from '@/api/wms/balance'
@ -655,9 +655,9 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -667,22 +667,22 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -692,22 +692,22 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -717,13 +717,13 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -80,9 +80,9 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -92,7 +92,7 @@ export const IssueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/issueManage/onlinesettlement/onlinesettlementRecordMain/onlinesettlementRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} 线 * @returns {Array} 线
@ -80,9 +80,9 @@ export const OnlinesettlementRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -92,7 +92,7 @@ export const OnlinesettlementRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/issueManage/pick/pickRecordMain/pickRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -72,9 +72,9 @@ export const PickRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -84,7 +84,7 @@ export const PickRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

8
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as ProductionMainApi from '@/api/wms/productionMain' import * as ProductionMainApi from '@/api/wms/productionMain'
import { ProductionMain } from '@/views/wms/productionManage/productionplan/productionMain/productionMain.data' import { ProductionMain } from '@/views/wms/productionManage/productionplan/productionMain/productionMain.data'
@ -177,9 +177,9 @@ export const PreparetoissueMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '计划日期', label: '计划日期',
field: 'planDate', field: 'planDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -190,7 +190,7 @@ export const PreparetoissueMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -80,9 +80,9 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detai: { detai: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -91,8 +91,9 @@ export const ProductionreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} 退 * @returns {Array} 退
@ -80,9 +80,9 @@ export const ProductionreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -91,8 +91,9 @@ export const ProductionreturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -72,9 +72,9 @@ export const RepleinshRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -83,8 +83,9 @@ export const RepleinshRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

51
src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -95,9 +95,9 @@ export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -106,8 +106,9 @@ export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -465,9 +466,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '从到货日期', label: '从到货日期',
field: 'fromArriveDate', field: 'fromArriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -476,8 +477,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -485,9 +487,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '到到货日期', label: '到到货日期',
field: 'toArriveDate', field: 'toArriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -496,8 +498,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -505,9 +508,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '从生产日期', label: '从生产日期',
field: 'fromProduceDate', field: 'fromProduceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -516,8 +519,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -525,9 +529,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '到生产日期', label: '到生产日期',
field: 'toProduceDate', field: 'toProduceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -536,8 +540,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -545,9 +550,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '从过期日期', label: '从过期日期',
field: 'fromExpireDate', field: 'fromExpireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -556,8 +561,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -565,9 +571,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '到过期日期', label: '到过期日期',
field: 'toExpireDate', field: 'toExpireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -576,8 +582,9 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

46
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance' import * as BalanceApi from '@/api/wms/balance'
@ -680,9 +680,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '从到货日期', label: '从到货日期',
field: 'fromArriveDate', field: 'fromArriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -693,7 +693,7 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: { width:'100%'}, style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -703,9 +703,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '从生产日期', label: '从生产日期',
field: 'fromProduceDate', field: 'fromProduceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -716,7 +716,7 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: { width:'100%'}, style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -726,9 +726,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '从过期日期', label: '从过期日期',
field: 'fromExpireDate', field: 'fromExpireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -739,14 +739,14 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: { width:'100%'}, style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
disabled: true disabled: true
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
disabled: true disabled: true
}, },
@ -754,9 +754,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '到过期日期', label: '到过期日期',
field: 'toExpireDate', field: 'toExpireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -767,13 +767,13 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: { width:'100%'}, style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
}, },
}, },
@ -790,9 +790,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '到到货日期', label: '到到货日期',
field: 'toArrivdAte', field: 'toArrivdAte',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -803,7 +803,7 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: { width:'100%'}, style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -813,9 +813,9 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '到生产日期', label: '到生产日期',
field: 'toProduceDate', field: 'toProduceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -826,7 +826,7 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: { width:'100%'}, style: { width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

9
src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/inventorymoveRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -115,9 +115,9 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -126,8 +126,9 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

22
src/views/wms/moveManage/itemChange/itemChange.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as OwnerApi from '@/api/wms/owner' import * as OwnerApi from '@/api/wms/owner'
import { Owner } from '@/views/wms/basicDataManage/orderManage/owner/owner.data' import { Owner } from '@/views/wms/basicDataManage/orderManage/owner/owner.data'
@ -159,9 +159,9 @@ export const ItemChange = useCrudSchemas(reactive<CrudSchema[]>([
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -170,7 +170,10 @@ export const ItemChange = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
}, },
isForm: false isForm: false
@ -179,9 +182,9 @@ export const ItemChange = useCrudSchemas(reactive<CrudSchema[]>([
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -190,7 +193,10 @@ export const ItemChange = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
}, },
isForm: false isForm: false
@ -200,9 +206,9 @@ export const ItemChange = useCrudSchemas(reactive<CrudSchema[]>([
label: '失效日期', label: '失效日期',
field: 'expireDate', field: 'expireDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -213,7 +219,7 @@ export const ItemChange = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
style:{width:'100%'}, style:{width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
} }

9
src/views/wms/productionManage/offlinesettlement/offlinesettlementRecordMain/offlinesettlementRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} 线 * @returns {Array} 线
@ -80,9 +80,9 @@ export const OfflinesettlementRecordMain = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -91,8 +91,9 @@ export const OfflinesettlementRecordMain = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

16
src/views/wms/productionManage/productdismantle/productdismantleJobMain/productdismantleJobMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -633,9 +633,9 @@ export const ProductdismantleJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -644,8 +644,9 @@ export const ProductdismantleJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -653,9 +654,9 @@ export const ProductdismantleJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -664,8 +665,9 @@ export const ProductdismantleJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -88,9 +88,9 @@ export const ProductdismantleRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -99,8 +99,9 @@ export const ProductdismantleRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -377,9 +378,9 @@ export const ProductdismantleRecordDetaila = useCrudSchemas(reactive<CrudSchema[
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -388,8 +389,9 @@ export const ProductdismantleRecordDetaila = useCrudSchemas(reactive<CrudSchema[
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -397,9 +399,9 @@ export const ProductdismantleRecordDetaila = useCrudSchemas(reactive<CrudSchema[
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -408,8 +410,9 @@ export const ProductdismantleRecordDetaila = useCrudSchemas(reactive<CrudSchema[
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

18
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as ProcessApi from '@/api/wms/process' import * as ProcessApi from '@/api/wms/process'
@ -695,9 +695,9 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -708,23 +708,23 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
componentProps: { componentProps: {
style:{width:'100%'}, style:{width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
disabled: true disabled: true
} }
}, },
tableForm: { tableForm: {
disabled: true, disabled: true,
type: 'FormDateTime', type: 'FormDate',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -735,14 +735,14 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
componentProps: { componentProps: {
style:{width:'100%'}, style:{width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
disabled: true disabled: true
} }
}, },
tableForm: { tableForm: {
disabled: true, disabled: true,
type: 'FormDateTime', type: 'FormDate',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

14
src/views/wms/productionManage/productionplan/workMain/workMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as CustomerApi from '@/api/wms/customer' import * as CustomerApi from '@/api/wms/customer'
import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data' import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data'
import * as ItembasicApi from '@/api/wms/itembasic' import * as ItembasicApi from '@/api/wms/itembasic'
@ -64,9 +64,9 @@ export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '订单日期', label: '订单日期',
field: 'orderDate', field: 'orderDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -76,7 +76,7 @@ export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -84,9 +84,9 @@ export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '截止日期', label: '截止日期',
field: 'dueDate', field: 'dueDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -96,7 +96,7 @@ export const WorkMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

9
src/views/wms/productionManage/productputaway/productputawayRecordMain/productputawayRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -80,9 +80,9 @@ export const ProductputawayRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -91,8 +91,9 @@ export const ProductputawayRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -641,9 +641,9 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -652,8 +652,9 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -661,9 +662,9 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -672,8 +673,9 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -104,9 +104,9 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -115,8 +115,9 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -385,9 +386,9 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -396,8 +397,9 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -405,9 +407,9 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -416,8 +418,9 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as WorkshopApi from '@/api/wms/workshop' import * as WorkshopApi from '@/api/wms/workshop'
@ -888,16 +888,16 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
valueFormat: 'x', valueFormat: 'x',
}, },
form: { form: {
@ -905,7 +905,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -913,16 +913,16 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
valueFormat: 'x', valueFormat: 'x',
}, },
form: { form: {
@ -930,7 +930,7 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import {Bom} from "@/views/wms/basicDataManage/itemManage/bom/bom.data"; import {Bom} from "@/views/wms/basicDataManage/itemManage/bom/bom.data";
import * as BomApi from "@/api/wms/bom"; import * as BomApi from "@/api/wms/bom";
@ -88,9 +88,9 @@ export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -99,8 +99,9 @@ export const ProductrepairRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -387,9 +388,9 @@ export const ProductrepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -398,8 +399,9 @@ export const ProductrepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -407,9 +409,9 @@ export const ProductrepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -418,8 +420,9 @@ export const ProductrepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data"; import {Workshop} from "@/views/wms/basicDataManage/factoryModeling/workshop/workshop.data";
import * as WorkshopApi from "@/api/wms/workshop"; import * as WorkshopApi from "@/api/wms/workshop";
import {Team} from "@/views/wms/basicDataManage/orderManage/team/team.data"; import {Team} from "@/views/wms/basicDataManage/orderManage/team/team.data";
@ -117,9 +117,9 @@ export const ProductscrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -128,8 +128,9 @@ export const ProductscrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

9
src/views/wms/purchasereceiptManage/inspect/inspectRecordMain/inspectRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -88,9 +88,9 @@ export const InspectRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter : dateFormatter, formatter : dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -99,8 +99,9 @@ export const InspectRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -658,9 +658,9 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -669,8 +669,9 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -678,9 +679,9 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -689,8 +690,9 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -698,9 +700,9 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -709,8 +711,9 @@ export const PurchasereceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
@ -184,9 +184,9 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -195,8 +195,9 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -652,9 +653,9 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -663,8 +664,9 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -672,9 +674,9 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -683,8 +685,9 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -692,9 +695,9 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -703,8 +706,9 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as SupplierApi from '@/api/wms/supplier' import * as SupplierApi from '@/api/wms/supplier'
@ -659,9 +659,9 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -672,7 +672,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -685,9 +685,9 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -698,7 +698,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -711,9 +711,9 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -724,7 +724,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} 退 * @returns {Array} 退
@ -190,9 +190,9 @@ export const PurchasereturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -201,8 +201,9 @@ export const PurchasereturnRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as PurchasereceiptRecordMainApi from '@/api/wms/purchasereceiptRecordMain' import * as PurchasereceiptRecordMainApi from '@/api/wms/purchasereceiptRecordMain'
@ -813,9 +813,9 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -824,25 +824,25 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
disabled: true, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm:{ tableForm:{
disabled:true, disabled:true,
type: 'FormDateTime', type: 'FormDate',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -852,24 +852,25 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
disabled: true, disabled: true,
style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm:{ tableForm:{
disabled:true, disabled:true,
type: 'FormDateTime', type: 'FormDate',
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -879,15 +880,16 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
disabled: true, disabled: true,
style: {width:'100%'},
type: 'datetime', type: 'datetime',
format: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm:{ tableForm:{
disabled:true, disabled:true,
type: 'FormDateTime', type: 'FormDate',
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -80,9 +80,9 @@ export const PutawayRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -91,8 +91,9 @@ export const PutawayRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

12
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/demandforecastingMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as SupplierApi from '@/api/wms/supplier' import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import * as SupplieritemApi from '@/api/wms/supplieritem' import * as SupplieritemApi from '@/api/wms/supplieritem'
@ -269,9 +269,9 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '预测日期', label: '预测日期',
field: 'predictTime', field: 'predictTime',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -282,13 +282,13 @@ export const DemandforecastingDetail = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
style: { width: '100%' }, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

14
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as SupplierApi from '@/api/wms/supplier' import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
import * as SupplieritemApi from '@/api/wms/supplieritem' import * as SupplieritemApi from '@/api/wms/supplieritem'
@ -81,9 +81,9 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '订单日期', label: '订单日期',
field: 'orderDate', field: 'orderDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -94,7 +94,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
}, },
value: new Date().getTime() value: new Date().getTime()
@ -104,9 +104,9 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '截止日期', label: '截止日期',
field: 'dueDate', field: 'dueDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
detail:{ detail:{
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -117,7 +117,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

18
src/views/wms/purchasereceiptManage/supplierdeliver/supplierPackage/supplierPackage.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const PackageRules = reactive({ export const PackageRules = reactive({
@ -84,12 +84,12 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter2,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD',
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
@ -97,8 +97,10 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width: '100%' },
type: 'datetime', type: 'datetime',
valueFormat: 'x' dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
}, },
table: { table: {
@ -124,12 +126,12 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
label: '失效日期', label: '失效日期',
field: 'expireDate', field: 'expireDate',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter2,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'YYYY-MM-DD',
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
@ -137,8 +139,10 @@ export const Package = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: { width: '100%' },
type: 'datetime', type: 'datetime',
valueFormat: 'x' dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
} }
}, },
table: { table: {

30
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -188,9 +188,9 @@ export const SupplierdeliverRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -199,8 +199,9 @@ export const SupplierdeliverRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -550,9 +551,9 @@ export const SupplierdeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -561,8 +562,9 @@ export const SupplierdeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -570,9 +572,9 @@ export const SupplierdeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -581,8 +583,9 @@ export const SupplierdeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
@ -590,9 +593,9 @@ export const SupplierdeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -601,8 +604,9 @@ export const SupplierdeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
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',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

32
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as SupplierApi from '@/api/wms/supplier' import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
@ -568,9 +568,9 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]
{ {
label: '到货日期', label: '到货日期',
field: 'arriveDate', field: 'arriveDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -582,23 +582,23 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: { width: '100%' }, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isTableForm: false, isTableForm: false,
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
{ {
label: '生产日期', label: '生产日期',
field: 'produceDate', field: 'produceDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -609,22 +609,22 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: { width: '100%' }, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
{ {
label: '过期日期', label: '过期日期',
field: 'expireDate', field: 'expireDate',
formatter: dateFormatter, formatter: dateFormatter2,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {
@ -635,13 +635,13 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]
componentProps: { componentProps: {
style: { width: '100%' }, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },
tableForm: { tableForm: {
type: 'FormDateTime', type: 'FormDate',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

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

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -82,9 +82,9 @@ export const PurchaseclaimRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
deatil: { deatil: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {

6
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
@ -85,9 +85,9 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '生效日期', label: '生效日期',
field: 'activeDate', field: 'activeDate',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter2,
deatil: { deatil: {
dateFormatter: 'YYYY-MM-DD HH:mm:ss' dateFormatter: 'YYYY-MM-DD'
}, },
sort: 'custom', sort: 'custom',
table: { table: {

Loading…
Cancel
Save