Browse Source

转移管理字段顺序调整

master
李胜楠 1 year ago
parent
commit
d14617b49d
  1. 382
      src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts
  2. 540
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts
  3. 420
      src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts
  4. 378
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/inventorymoveRecordMain.data.ts
  5. 610
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

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

@ -6,41 +6,35 @@ import { dateFormatter } from '@/utils/formatTime'
*/ */
export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '申请单号', label: '单号',
field: 'requestNumber', field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150,
fixed: 'left'
}, },
isSearch: true isSearch: true
}, },
{ {
label: '仓库代码', label: '申请单号',
field: 'warehouseCode', field: 'requestNumber',
sort: 'custom',
table: {
width: 150
},
},
{
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true
}, },
{ {
label: '入库事务类型', label: '仓库代码',
field: 'inTransactionType', field: 'warehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '执行时间', label: '申请时间',
field: 'executeTime', field: 'requestTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -59,8 +53,8 @@ export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '生效日期', label: '截止时间',
field: 'activeDate', field: 'dueTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -79,8 +73,8 @@ export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '申请时间', label: '执行时间',
field: 'requestTime', field: 'executeTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -99,8 +93,8 @@ export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '截止时间', label: '生效日期',
field: 'dueTime', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -119,37 +113,32 @@ export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '部门', label: '出库事务类型',
field: 'departmentCode', field: 'outTransactionType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '接口类型', label: '入库事务类型',
field: 'interfaceType', field: 'inTransactionType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '单据号', label: '业务类型',
field: 'number', field: 'businessType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150, width: 150
fixed: 'left'
}, },
isSearch: true
}, },
{ {
label: '业务类型', label: '部门',
field: 'businessType', field: 'departmentCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -164,8 +153,11 @@ export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '创建者', label: '接口类型',
field: 'creator', field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -191,6 +183,14 @@ export const InventorychangeRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -269,43 +269,56 @@ export const InventorychangeRecordMainRules = reactive({
*/ */
export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '库位代码', label: '单据号',
field: 'locationCode', field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '库位组代码', label: '物品代码',
field: 'locationGroupCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '库区代码', label: '物品名称',
field: 'areaCode', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从数量', label: '物品描述1',
field: 'fromQty', field: 'itemDesc1',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '从货主代码', label: '物品描述2',
field: 'fromOwnerCode', field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
},
{
label: '从批次',
field: 'fromBatch',
sort: 'custom',
table: {
width: 150
},
},
{
label: '到批次',
field: 'toBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -320,93 +333,66 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
}, },
{ {
label: '从器具号', label: '到包装号',
field: 'fromContainerNumber', field: 'toPackingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从批次', label: '从器具号',
field: 'fromBatch', field: 'fromContainerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从替代批次', label: '到器具号',
field: 'fromAltbatch', field: 'toContainerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从到货日期', label: '数量',
field: 'fromArriveDate', field: 'qty',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: { }
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
}, },
{ {
label: '从生产日期', label: '从数量',
field: 'fromProduceDate', field: 'fromQty',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: { }
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
}, },
{ {
label: '从过期日期', label: '到数量',
field: 'fromExpireDate', field: 'toQty',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: { }
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
}, },
{ {
label: '从库存状态', label: '计量单位',
field: 'frominventoryStatus', field: 'uom',
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -415,43 +401,54 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
}, },
{ {
label: '到数量', label: '库位代码',
field: 'toQty', field: 'locationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '到货主代码', label: '从库存状态',
field: 'toOwnerCode', field: 'fromInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到包装号', label: '到库存状态',
field: 'toPackingNumber', field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到器具号', label: '库位组代码',
field: 'toContainerNumber', field: 'locationGroupCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到批次', label: '库区代码',
field: 'toBatch', field: 'areaCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '从替代批次',
field: 'fromAltBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -466,8 +463,8 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
}, },
{ {
label: '到货日期', label: '到货日期',
field: 'toArrivdAte', field: 'fromArriveDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -486,8 +483,8 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
}, },
{ {
label: '到生产日期', label: '到到货日期',
field: 'toProduceDate', field: 'toArriveDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -506,8 +503,8 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
}, },
{ {
label: '到过期日期', label: '从生产日期',
field: 'toExpireDate', field: 'fromProduceDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -526,51 +523,28 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
}, },
{ {
label: '到库存状态', label: '到生产日期',
field: 'toInventoryStatus', field: 'toProduceDate',
dictType: DICT_TYPE.INVENTORY_STATUS, formatter: dateFormatter,
dictClass: 'string', detail: {
isTable: true, dateFormat: 'YYYY-MM-DD HH:mm:ss'
sort: 'custom',
table: {
width: 150
}, },
},
{
label: '单据号',
field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
},
},
{
label: '物品代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
}, },
}, form: {
{ component: 'DatePicker',
label: '备注', componentProps: {
field: 'remark', type: 'datetime',
sort: 'custom', dateFormat: 'YYYY-MM-DD HH:mm:ss',
table: { valueFormat: 'x',
width: 150 }
}, },
}, },
// {
// label: '任务明细ID',
// field: 'jobDetailId',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{ {
label: '创建时间', label: '从过期日期',
field: 'createTime', field: 'fromExpireDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -589,32 +563,36 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
}, },
{ {
label: '创建者', label: '到过期日期',
field: 'creator', field: 'toExpireDate',
sort: 'custom', formatter: dateFormatter,
table: { detail: {
width: 150 dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
},
{
label: '物品名称',
field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}, },
}, },
{ {
label: '物品描述1', label: '从货主代码',
field: 'itemDesc1', field: 'fromOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品描述2', label: '到货主代码',
field: 'itemDesc2', field: 'toOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -628,42 +606,64 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
}, },
// {
// label: '代码',
// field: 'code',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{ {
label: '数量', label: '接口类型',
field: 'qty', field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '计量单位', label: '备注',
field: 'uom', field: 'remark',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
// { // {
// label: '代码', // label: '任务明细ID',
// field: 'code', // field: 'jobDetailId',
// sort: 'custom', // sort: 'custom',
// table: { // table: {
// width: 150 // width: 150
// }, // },
// }, // },
{ {
label: '接口类型', label: '创建时间',
field: 'interfaceType', field: 'createTime',
dictType: DICT_TYPE.INTERFACE_TYPE, formatter: dateFormatter,
dictClass: 'string', detail: {
isTable: true, dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '创建者',
field: 'creator',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

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

@ -25,15 +25,6 @@ const userDept = userStore.userSelfInfo.dept
* @returns {Array} * @returns {Array}
*/ */
export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '仓库代码',
field: 'warehouseCode',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -46,48 +37,26 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
isSearch: true, isSearch: true,
}, },
{ {
label: '业务类型', label: '状态',
field: 'businessType', field: 'status',
sort: 'custom', dictType: DICT_TYPE.REQUEST_STATUS,
table: { dictClass: 'string',
width: 150 isSearch: true,
}, isTable: true,
isForm: false,
},
{
label: '备注',
field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTable: false,
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: { form: {
component: 'DatePicker', value: '1',
componentProps: { componentProps: {
style: { width:'100%'}, disabled: true
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, }
isForm: false,
}, },
{ {
label: '创建者', label: '仓库代码',
field: 'creator', field: 'warehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -138,67 +107,36 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
}, },
}, },
{ {
label: '部门', label: '业务类型',
field: 'departmentCode', field: 'businessType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { isForm: false,
value: userDept.name,
componentProps: {
disabled: true
}
}
}, },
{ {
label: '状态', label: '部门',
field: 'status', field: 'departmentCode',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { form: {
value: '1', value: userDept.name,
componentProps: { componentProps: {
disabled: true disabled: true
} }
} }
}, },
{ {
label: '最后更新时间', label: '备注',
field: 'updateTime', field: 'remark',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false
},
{
label: '最后更新者',
field: 'updater',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isForm: false isTable: false,
}, },
{ {
label: '自动提交', label: '自动提交',
@ -280,6 +218,68 @@ export const InventorychangeRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
} }
} }
}, },
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false,
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{
label: '最后更新时间',
field: 'updateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false
},
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isForm: false
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -325,8 +325,22 @@ export const InventorychangeRequestMainRules = reactive({
*/ */
export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '库位代码', label: '单据号',
field: 'locationCode', field: 'number',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物品代码',
field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -336,8 +350,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
{ {
label: '库位组代码', label: '物品名称',
field: 'locationGroupCode', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -346,8 +360,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '库区代码', label: '物品描述1',
field: 'areaCode', field: 'itemDesc1',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -356,30 +370,29 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '从数量', label: '物品描述2',
field: 'fromQty', field: 'itemDesc2',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
},
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
label: '从货主代码', label: '从批次',
field: 'fromOwnerCode', field: 'fromBatch',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{
label: '到批次',
field: 'toBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -415,8 +428,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
{ {
label: '从器具号', label: '到包装号',
field: 'fromContainerNumber', field: 'toPackingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -425,19 +438,18 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '从批次', label: '从器具号',
field: 'fromBatch', field: 'fromContainerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm: { isTableForm: false,
disabled: true isForm: false,
}
}, },
{ {
label: '从替代批次', label: '到器具号',
field: 'fromAltbatch', field: 'toContainerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -446,78 +458,75 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '从到货日期', label: '数量',
field: 'fromArriveDate', field: 'qty',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: { componentProps: {
style: { width:'100%'}, min: 1,
type: 'datetime', precision: 6
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
},
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
label: '从生产日期', label: '从数量',
field: 'fromProduceDate', field: 'fromQty',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: { componentProps: {
style: { width:'100%'}, min: 1,
type: 'datetime', precision: 6
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
},
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
label: '从过期日期', label: '到数量',
field: 'fromExpireDate', field: 'toQty',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: { componentProps: {
style: { width:'100%'}, min: 1,
type: 'datetime', precision: 6
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
},
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
label: '从库存状态', label: '计量单位',
field: 'frominventoryStatus', field: 'uom',
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -525,47 +534,56 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
width: 150 width: 150
}, },
tableForm: { tableForm: {
type: 'Select', type: 'Select'
disabled: true
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
label: '到数量', label: '库位代码',
field: 'toQty', field: 'locationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { tableForm: {
component: 'InputNumber', disabled: true
componentProps: { }
min: 1, },
precision: 6 {
} label: '从库存状态',
field: 'fromInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
}, },
tableForm: { tableForm: {
type: 'InputNumber', type: 'Select',
min: 1, disabled: true
precision: 6
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
label: '到货主代码', label: '到库存状态',
field: 'toOwnerCode', field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, tableForm: {
isForm: false, type: 'Select'
},
}, },
{ {
label: '到包装号', label: '库位组代码',
field: 'toPackingNumber', field: 'locationGroupCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -574,8 +592,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '到器具号', label: '库区代码',
field: 'toContainerNumber', field: 'areaCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -584,8 +602,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '到批次', label: '从货主代码',
field: 'toBatch', field: 'fromOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -594,8 +612,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '替代批次', label: '替代批次',
field: 'toAltBatch', field: 'fromAltbatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -604,8 +622,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '到货日期', label: '到货日期',
field: 'toArrivdAte', field: 'fromArriveDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -627,8 +645,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '生产日期', label: '生产日期',
field: 'toProduceDate', field: 'fromProduceDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -650,8 +668,8 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '过期日期', label: '过期日期',
field: 'toExpireDate', field: 'fromExpireDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -673,54 +691,28 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '到库存状态', label: '到货主代码',
field: 'toInventoryStatus', field: 'toOwnerCode',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select'
},
},
{
label: '单据号',
field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, isTableForm: false,
form: { isForm: false,
componentProps: {
disabled: true
}
}
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
}, },
{ {
label: '创建者', label: '到替代批次',
field: 'creator', field: 'toAltBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, isTableForm: false,
isForm: false isForm: false,
}, },
{ {
label: '创建时间', label: '到到货日期',
field: 'createTime', field: 'toArrivdAte',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -739,45 +731,50 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
isTableForm: false, isTableForm: false,
isForm: false isForm: false,
}, },
{ {
label: '物品代码', label: '到生产日期',
field: 'itemCode', field: 'toProduceDate',
sort: 'custom', formatter: dateFormatter,
table: { detail: {
width: 150 dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
tableForm: {
disabled: true
}
},
{
label: '物品名称',
field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
}, },
isTableForm: false, form: {
isForm: false, component: 'DatePicker',
}, componentProps: {
{ style: { width:'100%'},
label: '物品描述1', type: 'datetime',
field: 'itemDesc1', dateFormat: 'YYYY-MM-DD HH:mm:ss',
sort: 'custom', valueFormat: 'x',
table: { }
width: 150
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{ {
label: '物品描述2', label: '到过期日期',
field: 'itemDesc2', field: 'toExpireDate',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
@ -793,46 +790,39 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isForm: false, isForm: false,
}, },
{ {
label: '数量', label: '备注',
field: 'qty', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
},
isTableForm: false,
isForm: false,
}, },
{ {
label: '计量单位', label: '创建时间',
field: 'uom', field: 'createTime',
dictType: DICT_TYPE.UOM, formatter: dateFormatter,
dictClass: 'string', detail: {
isTable: true, dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
}, },
tableForm: { form: {
type: 'Select' component: 'DatePicker',
componentProps: {
style: { width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}, },
isTableForm: false, isTableForm: false,
isForm: false, isForm: false
}, },
{ {
label: '最后更新者', label: '创建者',
field: 'updater', field: 'creator',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -863,6 +853,16 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

420
src/views/wms/moveManage/inventorymove/inventorymoveJobMain/inventorymoveJobMain.data.ts

@ -5,6 +5,28 @@ import { dateFormatter } from '@/utils/formatTime'
* @returns {Array} * @returns {Array}
*/ */
export const InventorymoveJobMain = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorymoveJobMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150,
fixed: 'left'
},
isSearch: true,
},
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.JOB_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '申请单号', label: '申请单号',
field: 'requestNumber', field: 'requestNumber',
@ -32,14 +54,6 @@ export const InventorymoveJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '从仓库代码',
field: 'fromWarehouseCode',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '申请时间', label: '申请时间',
field: 'requestTime', field: 'requestTime',
@ -80,18 +94,6 @@ export const InventorymoveJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.JOB_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '过期时间', label: '过期时间',
field: 'expiredTime', field: 'expiredTime',
@ -113,127 +115,37 @@ export const InventorymoveJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '最后更新时间', label: '从仓库代码',
field: 'updateTime', field: 'fromWarehouseCode',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
},
// {
// label: '状态',
// field: 'jobStageStatus',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{
label: '优先级',
field: 'priority',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{
label: '优先级增量',
field: 'priorityIncrement',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '部门', label: '到仓库代码',
field: 'departmentCode', field: 'toWarehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '承接人', label: '从库区代码范围',
field: 'acceptUserId', field: 'fromAreaCodes',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '承接时间', label: '到库区代码范围',
field: 'acceptTime', field: 'toAreaCodes',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '完成人',
field: 'completeUserId',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{
label: '完成时间',
field: 'completeTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{ {
label: '从库位类型范围', label: '从库位类型范围',
field: 'fromLocationTypes', field: 'fromLocationTypes',
@ -259,78 +171,46 @@ export const InventorymoveJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '单据号', label: '优先级',
field: 'number', field: 'priority',
sort: 'custom',
table: {
width: 150,
fixed: 'left'
},
isSearch: true,
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
},
{
label: '备注',
field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: { }
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
}, },
{ {
label: '创建者', label: '优先级增量',
field: 'creator', field: 'priorityIncrement',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '从库区代码范围', label: '业务类型',
field: 'fromAreaCodes', field: 'businessType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到库区代码范围', label: '部门',
field: 'toAreaCodes', field: 'departmentCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到仓库代码', label: '备注',
field: 'toWarehouseCode', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -526,6 +406,126 @@ export const InventorymoveJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '承接时间',
field: 'acceptTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '承接人',
field: 'acceptUserId',
sort: 'custom',
table: {
width: 150
},
},
{
label: '完成时间',
field: 'completeTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '完成人',
field: 'completeUserId',
sort: 'custom',
table: {
width: 150
},
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
},
{
label: '最后更新时间',
field: 'updateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
},
// {
// label: '状态',
// field: 'jobStageStatus',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -598,153 +598,153 @@ export const InventorymoveJobMainRules = reactive({
*/ */
export const InventorymoveJobDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorymoveJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '包装号', label: '单据号',
field: 'packingNumber', field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '器具号', label: '物品代码',
field: 'containerNumber', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '批次', label: '物品名称',
field: 'batch', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '库存状态', label: '物品描述1',
field: 'inventoryStatus', field: 'itemDesc1',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '订单号', label: '物品描述2',
field: 'poNumber', field: 'itemDesc2',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '订单行', label: '批次',
field: 'poLine', field: 'batch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从库位代码', label: '包装号',
field: 'fromLocationCode', field: 'packingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到库位代码', label: '器具号',
field: 'toLocationCode', field: 'containerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从货主代码', label: '数量',
field: 'fromOwnerCode', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '到货主代码', label: '计量单位',
field: 'toOwnerCode', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品代码', label: '从库位代码',
field: 'itemCode', field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品名称', label: '到库位代码',
field: 'itemName', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品描述1', label: '库存状态',
field: 'itemDesc1', field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品描述2', label: '订单号',
field: 'itemDesc2', field: 'poNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '项目代码', label: '订单行',
field: 'projectCode', field: 'poLine',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '数量', label: '从货主代码',
field: 'qty', field: 'fromOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '计量单位', label: '到货主代码',
field: 'uom', field: 'toOwnerCode',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '单据号', label: '项目代码',
field: 'number', field: 'projectCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

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

@ -5,6 +5,16 @@ import { dateFormatter } from '@/utils/formatTime'
* @returns {Array} * @returns {Array}
*/ */
export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150,
fixed: 'left'
},
isSearch: true
},
{ {
label: '申请单号', label: '申请单号',
field: 'requestNumber', field: 'requestNumber',
@ -43,86 +53,8 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '从仓库代码', label: '申请时间',
field: 'fromWarehouseCode', field: 'requestTime',
sort: 'custom',
table: {
width: 150
},
},
{
label: '到仓库代码',
field: 'toWarehouseCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '从库位类型范围',
field: 'fromLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '到库位类型范围',
field: 'toLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '从库区代码范围',
field: 'fromAreaCodes',
sort: 'custom',
table: {
width: 150
},
},
{
label: '到库区代码范围',
field: 'toAreaCodes',
sort: 'custom',
table: {
width: 150
},
},
{
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom',
table: {
width: 150
},
},
{
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom',
table: {
width: 150
},
},
{
label: '入库事务类型',
field: 'inTransactionType',
sort: 'custom',
table: {
width: 150
},
},
{
label: '执行时间',
field: 'executeTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -141,8 +73,8 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '生效日期', label: '截止时间',
field: 'activeDate', field: 'dueTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -161,8 +93,8 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '申请时间', label: '执行时间',
field: 'requestTime', field: 'executeTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -181,8 +113,8 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '截止时间', label: '生效日期',
field: 'dueTime', field: 'activeDate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -201,17 +133,25 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '部门', label: '从仓库代码',
field: 'departmentCode', field: 'fromWarehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '接口类型', label: '到仓库代码',
field: 'interfaceType', field: 'toWarehouseCode',
dictType: DICT_TYPE.INTERFACE_TYPE, sort: 'custom',
table: {
width: 150
},
},
{
label: '从库位类型范围',
field: 'fromLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -220,14 +160,47 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '单据号', label: '到库位类型范围',
field: 'number', field: 'toLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150, width: 150
fixed: 'left' },
},
{
label: '从库区代码范围',
field: 'fromAreaCodes',
sort: 'custom',
table: {
width: 150
},
},
{
label: '到库区代码范围',
field: 'toAreaCodes',
sort: 'custom',
table: {
width: 150
},
},
{
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom',
table: {
width: 150
},
},
{
label: '入库事务类型',
field: 'inTransactionType',
sort: 'custom',
table: {
width: 150
}, },
isSearch: true
}, },
{ {
label: '业务类型', label: '业务类型',
@ -238,16 +211,27 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '备注', label: '部门',
field: 'remark', field: 'departmentCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '创建者', label: '接口类型',
field: 'creator', field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '备注',
field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -273,6 +257,14 @@ export const InventorymoveRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -363,91 +355,88 @@ export const InventorymoveRecordMainRules = reactive({
*/ */
export const InventorymoveRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorymoveRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '在途库库位', label: '单据号',
field: 'onTheWayLocationCode', field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从货主代码', label: '物品代码',
field: 'fromOwnerCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从包装号', label: '物品名称',
field: 'fromPackingNumber', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从器具号', label: '物品描述1',
field: 'fromContainerNumber', field: 'itemDesc1',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从批次', label: '物品描述2',
field: 'fromBatch', field: 'itemDesc2',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从库位代码', label: '在途库库位',
field: 'fromLocationCode', field: 'onTheWayLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从库位组代码', label: '从批次',
field: 'fromLocationGroupCode', field: 'fromBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从库区代码', label: '到批次',
field: 'fromAreaCode', field: 'toBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从库存状态', label: '从包装号',
field: 'fromInventoryStatus', field: 'fromPackingNumber',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到货主代码', label: '到包装号',
field: 'toOwnerCode', field: 'toPackingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到包装号', label: '从器具号',
field: 'toPackingNumber', field: 'fromContainerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -462,32 +451,49 @@ export const InventorymoveRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '到批次', label: '数量',
field: 'toBatch', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '到库位代码', label: '计量单位',
field: 'toLocationCode', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到库位组代码', label: '从库位代码',
field: 'toLocationGroupCode', field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到库区代码', label: '到库位代码',
field: 'toAreaCode', field: 'toLocationCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '从库存状态',
field: 'fromInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -505,114 +511,111 @@ export const InventorymoveRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '单据号', label: '从库位组代码',
field: 'number', field: 'fromLocationGroupCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品代码', label: '到库位组代码',
field: 'itemCode', field: 'toLocationGroupCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '备注', label: '从库区代码',
field: 'remark', field: 'fromAreaCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
// {
// label: '任务明细ID',
// field: 'jobDetailId',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{ {
label: '创建时间', label: '到库区代码',
field: 'createTime', field: 'toAreaCode',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}, },
}, },
{ {
label: '创建者', label: '项目代码',
field: 'creator', field: 'projectCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品名称', label: '从货主代码',
field: 'itemName', field: 'fromOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品描述1', label: '到货主代码',
field: 'itemDesc1', field: 'toOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品描述2', label: '接口类型',
field: 'itemDesc2', field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '项目代码', label: '备注',
field: 'projectCode', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
// {
// label: '任务明细ID',
// field: 'jobDetailId',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{ {
label: '数量', label: '创建时间',
field: 'qty', field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
}, },
form: { form: {
component: 'InputNumber', component: 'DatePicker',
} componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
}, },
{ {
label: '计量单位', label: '创建者',
field: 'uom', field: 'creator',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -626,17 +629,6 @@ export const InventorymoveRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150 // width: 150
// }, // },
// }, // },
{
label: '接口类型',
field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
])) ]))
//表单校验 //表单校验

610
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -28,67 +28,6 @@ const userDept = userStore.userSelfInfo.dept
* @returns {Array} * @returns {Array}
*/ */
export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '从仓库代码',
field: 'fromWarehouseOde',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{
label: '从库位类型范围',
field: 'fromLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{
label: '从库区代码范围',
field: 'fromAreaCodes',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{
label: '到仓库代码',
field: 'toWarehouseCode',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{
label: '到库位类型范围',
field: 'toLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
isSearch: true,
isForm: false,
},
{
label: '到库区代码范围',
field: 'toAreaCodes',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -101,32 +40,26 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '业务类型', label: '状态',
field: 'businessType', field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { form: {
value: 'Move', value: '1',
componentProps: { componentProps: {
disabled: true disabled: true
} }
}, }
isForm: false,
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
isTable: false,
}, },
{ {
label: '创建时间', label: '申请时间',
field: 'createTime', field: 'requestTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -147,17 +80,8 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
}, },
{ {
label: '创建者', label: '截止时间',
field: 'creator', field: 'dueTime',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{
label: '申请时间',
field: 'requestTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -175,91 +99,105 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
valueFormat: 'x', valueFormat: 'x',
} }
}, },
isForm: false,
}, },
{ {
label: '截止时间', label: '从仓库代码',
field: 'dueTime', field: 'fromWarehouseOde',
formatter: dateFormatter, sort: 'custom',
detail: { table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' width: 150
}, },
isForm: false,
},
{
label: '从库位类型范围',
field: 'fromLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { isForm: false,
component: 'DatePicker', },
componentProps: { {
style: { width:'100%'}, label: '从库区代码范围',
type: 'datetime', field: 'fromAreaCodes',
dateFormat: 'YYYY-MM-DD HH:mm:ss', sort: 'custom',
valueFormat: 'x', table: {
} width: 150
}, },
isForm: false,
}, },
{ {
label: '部门', label: '到仓库代码',
field: 'departmentCode', field: 'toWarehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { isForm: false,
value: userDept.name,
componentProps: {
disabled: true
}
}
}, },
{ {
label: '状态', label: '到库位类型范围',
field: 'status', field: 'toLocationTypes',
dictType: DICT_TYPE.REQUEST_STATUS, dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string', dictClass: 'string',
isSearch: true,
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true,
isForm: false,
},
{
label: '到库区代码范围',
field: 'toAreaCodes',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
form: { form: {
value: '1', value: 'Move',
componentProps: { componentProps: {
disabled: true disabled: true
} }
} },
isForm: false,
}, },
{ {
label: '最后更新时间', label: '部门',
field: 'updateTime', field: 'departmentCode',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', value: userDept.name,
componentProps: { componentProps: {
style: { width:'100%'}, disabled: true
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, }
isForm: false
}, },
{ {
label: '最后更新者', label: '备注',
field: 'updater', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isForm: false isTable: false,
}, },
{ {
label: '自动提交', label: '自动提交',
@ -362,34 +300,96 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '操作', label: '创建时间',
field: 'action', field: 'createTime',
isDetail: false, formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false, isForm: false,
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: { table: {
width: 300, width: 150
fixed: 'right'
}, },
} isForm: false,
])) },
{
//表单校验 label: '最后更新时间',
export const InventorymoveRequestMainRules = reactive({ field: 'updateTime',
// fromWarehouseOde: [ formatter: dateFormatter,
// { required: true, message: '请选择从仓库代码', trigger: 'change' } detail: {
// ], dateFormat: 'YYYY-MM-DD HH:mm:ss'
// fromLocationTypes: [ },
// { required: true, message: '请选择从库位类型范围', trigger: 'change' } sort: 'custom',
// ], table: {
// fromAreaCodes: [ width: 180
// { required: true, message: '请选择从库区代码范围', trigger: 'change' } },
// ], form: {
// toWarehouseCode: [ component: 'DatePicker',
// { required: true, message: '请选择到仓库代码', trigger: 'change' } componentProps: {
// ], style: { width:'100%'},
// toLocationTypes: [ type: 'datetime',
// { required: true, message: '请选择到库位类型范围', trigger: 'change' } dateFormat: 'YYYY-MM-DD HH:mm:ss',
// ], valueFormat: 'x',
}
},
isForm: false
},
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isForm: false
},
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
table: {
width: 300,
fixed: 'right'
},
}
]))
//表单校验
export const InventorymoveRequestMainRules = reactive({
// fromWarehouseOde: [
// { required: true, message: '请选择从仓库代码', trigger: 'change' }
// ],
// fromLocationTypes: [
// { required: true, message: '请选择从库位类型范围', trigger: 'change' }
// ],
// fromAreaCodes: [
// { required: true, message: '请选择从库区代码范围', trigger: 'change' }
// ],
// toWarehouseCode: [
// { required: true, message: '请选择到仓库代码', trigger: 'change' }
// ],
// toLocationTypes: [
// { required: true, message: '请选择到库位类型范围', trigger: 'change' }
// ],
departmentCode: [ departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } { required: true, message: '请输入部门', trigger: 'blur' }
], ],
@ -418,8 +418,74 @@ export const InventorymoveRequestMainRules = reactive({
*/ */
export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '从货主代码', label: '单据号',
field: 'fromOwnerCode', field: 'number',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物品代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{
label: '物品名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '物品描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '物品描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '从批次',
field: 'fromBatch',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
}
},
{
label: '到批次',
field: 'toBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -454,6 +520,16 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
} }
}, },
{
label: '到包装号',
field: 'toPackingNumber',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{ {
label: '从器具号', label: '从器具号',
field: 'fromContainerNumber', field: 'fromContainerNumber',
@ -466,31 +542,39 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
{ {
label: '从批次', label: '到器具号',
field: 'fromBatch', field: 'toContainerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm: { isTableForm: false,
disabled: true isForm: false,
}
}, },
{ {
label: '从库位代码', label: '数量',
field: 'fromLocationCode', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: { tableForm: {
disabled: true type: 'InputNumber',
min: 1,
precision: 6
} }
}, },
{ {
label: '从库存状态', label: '计量单位',
field: 'fromInventoryStatus', field: 'uom',
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -498,49 +582,19 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
tableForm: { tableForm: {
disabled: true,
type: 'Select' type: 'Select'
} }
}, },
{ {
label: '到货主代码', label: '从库位代码',
field: 'toOwnerCode', field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '到包装号',
field: 'toPackingNumber',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '到器具号',
field: 'toContainerNumber',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '到批次',
field: 'toBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, tableForm: {
isForm: false, disabled: true
}
}, },
{ {
label: '到库位代码', label: '到库位代码',
@ -580,8 +634,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
} }
}, },
{ {
label: '库存状态', label: '库存状态',
field: 'toInventoryStatus', field: 'fromInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -590,78 +644,27 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
tableForm: { tableForm: {
disabled: true,
type: 'Select' type: 'Select'
},
},
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
form: {
componentProps: {
disabled: true
}
} }
}, },
{ {
label: '备注', label: '到库存状态',
field: 'remark', field: 'toInventoryStatus',
sort: 'custom', dictType: DICT_TYPE.INVENTORY_STATUS,
table: { dictClass: 'string',
width: 150 isTable: true,
},
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: { width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isTableForm: false,
isForm: false
},
{
label: '物品代码',
field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm: { tableForm: {
disabled: true type: 'Select'
} },
}, },
{ {
label: '物品名称', label: '从货主代码',
field: 'itemName', field: 'fromOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -670,8 +673,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
isForm: false, isForm: false,
}, },
{ {
label: '物品描述1', label: '到货主代码',
field: 'itemDesc1', field: 'toOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -680,8 +683,8 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
isForm: false, isForm: false,
}, },
{ {
label: '物品描述2', label: '项目代码',
field: 'itemDesc2', field: 'projectCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -690,52 +693,39 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
isForm: false, isForm: false,
}, },
{ {
label: '项目代码', label: '备注',
field: 'projectCode', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTableForm: false,
isForm: false,
}, },
{ {
label: '数量', label: '创建时间',
field: 'qty', field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
}, },
form: { form: {
component: 'InputNumber', component: 'DatePicker',
componentProps: { componentProps: {
min: 1, style: { width:'100%'},
precision: 6 type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
tableForm: { isTableForm: false,
type: 'InputNumber', isForm: false
min: 1,
precision: 6
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select'
}
}, },
{ {
label: '最后更新者', label: '创建者',
field: 'updater', field: 'creator',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -766,6 +756,16 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

Loading…
Cancel
Save