Browse Source

BUG修改

hella_online_20240829
parent
commit
23483dc1b6
  1. 1171
      src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts
  2. 736
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts
  3. 1141
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

1171
src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts

File diff suppressed because it is too large

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

@ -1,391 +1,395 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' import { dateFormatter, dateFormatter2 } from '@/utils/formatTime'
/** /**
* @returns {Array} * @returns {Array}
*/ */
export const DeliverRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ export const DeliverRecordMain = useCrudSchemas(
{ reactive<CrudSchema[]>([
label: '单据号', {
field: 'number', label: '单据号',
sort: 'custom', field: 'number',
table: { sort: 'custom',
width: 180, table: {
fixed: 'left' width: 180,
}, fixed: 'left'
isSearch: true },
}, isSearch: true
{ },
label: '申请单号', {
field: 'requestNumber', label: '申请单号',
sort: 'custom', field: 'requestNumber',
table: { sort: 'custom',
width: 180 table: {
}, width: 180
isSearch: true },
}, isSearch: true
{ },
label: '任务单号', {
field: 'jobNumber', label: '任务单号',
sort: 'custom', field: 'jobNumber',
table: { sort: 'custom',
width: 180 table: {
}, width: 180
},
{
label: '发货记录单号',
field: 'deliverRecordNumber',
sort: 'custom',
table: {
width: 150
},
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
},
// {
// label: '发货计划单号',
// field: 'deliverPlanNumber',
// sort: 'custom',
// table: {
// width: 180
// },
// },
// {
// label: '客户发货单号',
// field: 'customerDeliverNumber',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isSearch: false,
isTable: false,
isForm: false,
isDetail:false,
sort: 'custom',
table: {
width: 150
},
},
{
label: '客户代码',
field: 'customerCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true
},
{
label: '客户月台代码',
field: 'customerDockCode',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '承运商',
field: 'carrierCode',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '运输方式',
field: 'transferMode',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '车牌号',
field: 'vehiclePlateNumber',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '申请时间',
field: 'requestTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
isTable: false,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
}, {
{ label: '发货记录单号',
label: '截止时间', field: 'deliverRecordNumber',
field: 'dueTime', sort: 'custom',
formatter: dateFormatter, table: {
detail: { width: 150
dateFormat: 'YYYY-MM-DD HH:mm:ss' },
}, isSearch: false,
sort: 'custom', isTable: false,
table: { isForm: false,
width: 180 isDetail: false
}, },
isTable: false, {
form: { label: '发货计划单号',
component: 'DatePicker', field: 'deliverPlanNumber',
componentProps: { sort: 'custom',
type: 'datetime', table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss', width: 180
valueFormat: 'x', },
isTable: true,
isDetail: true
},
// {
// label: '客户发货单号',
// field: 'customerDeliverNumber',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isSearch: false,
isTable: false,
isForm: false,
isDetail: false,
sort: 'custom',
table: {
width: 150
} }
}, },
}, {
{ label: '客户代码',
label: '执行时间', field: 'customerCode',
field: 'executeTime', sort: 'custom',
formatter: dateFormatter, table: {
detail: { width: 150
dateFormat: 'YYYY-MM-DD HH:mm:ss' },
}, isSearch: true
sort: 'custom', },
table: { {
width: 180 label: '客户月台代码',
}, field: 'customerDockCode',
isTable: false, sort: 'custom',
form: { table: {
component: 'DatePicker', width: 150
componentProps: { },
type: 'datetime', isTable: false
dateFormat: 'YYYY-MM-DD HH:mm:ss', },
valueFormat: 'x', {
label: '承运商',
field: 'carrierCode',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '运输方式',
field: 'transferMode',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '车牌号',
field: 'vehiclePlateNumber',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '申请时间',
field: 'requestTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
isTable: false,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
} }
}, },
}, {
{ label: '截止时间',
label: '生效日期', field: 'dueTime',
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 },
}, isTable: false,
isTable: false, form: {
form: { component: 'DatePicker',
component: 'DatePicker', componentProps: {
componentProps: { type: 'datetime',
style: {width: '100%'}, dateFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'date', valueFormat: 'x'
dateFormat: 'YYYY-MM-DD', }
valueFormat: 'x',
} }
}, },
}, {
{ label: '执行时间',
label: '从仓库代码', field: 'executeTime',
field: 'fromWarehouseCode', formatter: dateFormatter,
sort: 'custom', detail: {
table: { dateFormat: 'YYYY-MM-DD HH:mm:ss'
width: 150 },
}, sort: 'custom',
isTable: false, table: {
}, width: 180
{ },
label: '到仓库代码', isTable: false,
field: 'toWarehouseCode', form: {
sort: 'custom', component: 'DatePicker',
table: { componentProps: {
width: 150 type: 'datetime',
}, dateFormat: 'YYYY-MM-DD HH:mm:ss',
isTable: false, valueFormat: 'x'
}, }
{ }
label: '从库区类型范围',
field: 'fromAreaTypes',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isTable: false,
sort: 'custom',
table: {
width: 150
},
},
{
label: '到库区类型范围',
field: 'toAreaTypes',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isTable: false,
sort: 'custom',
table: {
width: 150
},
},
{
label: '从库区代码范围',
field: 'fromAreaCodes',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '到库区代码范围',
field: 'toAreaCodes',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '从月台代码',
field: 'fromDockCode',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '入库事务类型',
field: 'inTransactionType',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '部门',
field: 'departmentCode',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '接口类型',
field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: false,
sort: 'custom',
table: {
width: 150
},
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
}, },
isTable: false, {
}, label: '生效日期',
{ field: 'activeDate',
label: '创建时间', formatter: dateFormatter2,
field: 'createTime', detail: {
formatter: dateFormatter, dateFormat: 'YYYY-MM-DD'
detail: { },
dateFormat: 'YYYY-MM-DD HH:mm:ss' sort: 'custom',
table: {
width: 180
},
isTable: false,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x'
}
}
}, },
sort: 'custom', {
table: { label: '从仓库代码',
width: 180 field: 'fromWarehouseCode',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '到仓库代码',
field: 'toWarehouseCode',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '从库区类型范围',
field: 'fromAreaTypes',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isTable: false,
sort: 'custom',
table: {
width: 150
}
}, },
isTable: true, {
form: { label: '到库区类型范围',
component: 'DatePicker', field: 'toAreaTypes',
componentProps: { dictType: DICT_TYPE.AREA_TYPE,
type: 'datetime', dictClass: 'string',
dateFormat: 'YYYY-MM-DD HH:mm:ss', isTable: false,
valueFormat: 'x', sort: 'custom',
table: {
width: 150
} }
}, },
}, {
{ label: '从库区代码范围',
label: '创建者', field: 'fromAreaCodes',
field: 'creator', sort: 'custom',
sort: 'custom', table: {
table: { width: 150
width: 150 },
isTable: false
},
{
label: '到库区代码范围',
field: 'toAreaCodes',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '从月台代码',
field: 'fromDockCode',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '入库事务类型',
field: 'inTransactionType',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '部门',
field: 'departmentCode',
sort: 'custom',
table: {
width: 150
},
isTable: false
},
{
label: '接口类型',
field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: false,
sort: 'custom',
table: {
width: 150
}
}, },
isTable: true, {
}, label: '备注',
// { field: 'remark',
// label: '代码', sort: 'custom',
// field: 'code', table: {
// sort: 'custom', width: 150
// table: { },
// width: 150 isTable: false
// }, },
// }, {
{ label: '创建时间',
label: '是否可用', field: 'createTime',
field: 'available', formatter: dateFormatter,
dictType: DICT_TYPE.TRUE_FALSE, detail: {
dictClass: 'string', dateFormat: 'YYYY-MM-DD HH:mm:ss'
isSearch: false, },
isTable: false, sort: 'custom',
sort: 'custom', table: {
table: { width: 180
width: 150 },
isTable: true,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}
}, },
form: { {
component: 'Switch', label: '创建者',
value: 'TRUE', field: 'creator',
componentProps: { sort: 'custom',
inactiveValue: 'FALSE', table: {
activeValue: 'TRUE' width: 150
},
isTable: true
},
// {
// label: '代码',
// field: 'code',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: false,
sort: 'custom',
table: {
width: 150
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
} }
} }
}, ])
])) )
//表单校验 //表单校验
export const DeliverRecordMainRules = reactive({ export const DeliverRecordMainRules = reactive({

1141
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

File diff suppressed because it is too large
Loading…
Cancel
Save