Browse Source

报废出库字段顺序修改

master
李胜楠 10 months ago
parent
commit
34053c3ddc
  1. 396
      src/views/wms/inventoryjobManage/scrap/scrapJobMain/scrapJobMain.data.ts
  2. 286
      src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts
  3. 400
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

396
src/views/wms/inventoryjobManage/scrap/scrapJobMain/scrapJobMain.data.ts

@ -6,21 +6,35 @@ import { dateFormatter } from '@/utils/formatTime'
*/ */
export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ScrapJobMain = 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: 'fromWarehouseCode', field: 'status',
dictType: DICT_TYPE.JOB_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '申请单号',
field: 'requestNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true,
}, },
{ {
label: '申请时间', label: '申请时间',
@ -62,18 +76,6 @@ export const ScrapJobMain = 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',
@ -95,28 +97,38 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '最后更新时间', label: '从仓库代码',
field: 'updateTime', field: 'fromWarehouseCode',
formatter: dateFormatter, sort: 'custom',
detail: { table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' width: 150
},
}, },
{
label: '从库区代码范围',
field: 'fromAreaCodes',
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { },
component: 'DatePicker', {
componentProps: { label: '从库位类型范围',
type: 'datetime', field: 'fromLocationTypes',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dictType: DICT_TYPE.LOCATION_TYPE,
valueFormat: 'x', dictClass: 'string',
} isTable: true,
sort: 'custom',
table: {
width: 150
}, },
}, },
{ {
label: '最后更新者', label: '到库位类型范围',
field: 'updater', field: 'toLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -152,6 +164,14 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'InputNumber', component: 'InputNumber',
} }
}, },
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '部门', label: '部门',
field: 'departmentCode', field: 'departmentCode',
@ -161,23 +181,22 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '承接人', label: '备注',
field: 'acceptUserId', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '承接时间', label: '自动完成',
field: 'acceptTime', field: 'autoComplete',
formatter: dateFormatter, dictType: DICT_TYPE.TRUE_FALSE,
detail: { dictClass: 'string',
dateFormat: 'YYYY-MM-DD HH:mm:ss' isTable: true,
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -189,24 +208,15 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '完成人', label: '允许修改库位',
field: 'completeUserId', field: 'allowModifyLocation',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
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: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -217,64 +227,34 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '从库位类型范围', label: '允许修改数量',
field: 'fromLocationTypes', field: 'allowModifyQty',
dictType: DICT_TYPE.LOCATION_TYPE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
}, },
{ {
label: '到库位类型范围', label: '允许大于推荐数量',
field: 'toLocationTypes', field: 'allowBiggerQty',
dictType: DICT_TYPE.LOCATION_TYPE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
},
{
label: '单据号',
field: 'number',
sort: 'custom',
table: {
width: 150,
fixed: 'left'
},
isSearch: true,
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
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: 'DatePicker',
componentProps: { componentProps: {
@ -285,24 +265,8 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '创建者', label: '允许小于推荐数量',
field: 'creator', field: 'allowSmallerQty',
sort: 'custom',
table: {
width: 150
},
},
{
label: '从库区代码范围',
field: 'fromAreaCodes',
sort: 'custom',
table: {
width: 150
},
},
{
label: '自动完成',
field: 'autoComplete',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -320,8 +284,8 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '允许修改库', label: '允许修改库存状态',
field: 'allowModifyLocation', field: 'allowModifyInventoryStatus',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -339,8 +303,8 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '允许修改数量', label: '允许连续扫描',
field: 'allowModifyQty', field: 'allowContinuousScanning',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -358,8 +322,8 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '允许大于推荐数量', label: '允许部分完成',
field: 'allowBiggerQty', field: 'allowPartialComplete',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -377,8 +341,8 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '允许小于推荐数量', label: '允许修改批次',
field: 'allowSmallerQty', field: 'allowModifyBatch',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -396,8 +360,8 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '允许修改库存状态', label: '允许修改箱码',
field: 'allowModifyInventoryStatus', field: 'allowModifyPackingNumber',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
@ -415,14 +379,15 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '允许连续扫描', label: '承接时间',
field: 'allowContinuousScanning', field: 'acceptTime',
dictType: DICT_TYPE.TRUE_FALSE, formatter: dateFormatter,
dictClass: 'string', detail: {
isTable: true, dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
}, },
form: { form: {
component: 'DatePicker', component: 'DatePicker',
@ -434,15 +399,24 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '允许部分完成', label: '承接人',
field: 'allowPartialComplete', field: 'acceptUserId',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
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: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -453,15 +427,24 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '允许修改批次', label: '完成人',
field: 'allowModifyBatch', field: 'completeUserId',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
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: 'DatePicker',
componentProps: { componentProps: {
@ -472,15 +455,24 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '允许修改箱码', label: '创建者',
field: 'allowModifyPackingNumber', field: 'creator',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
},
{
label: '最后更新时间',
field: 'updateTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -490,6 +482,14 @@ export const ScrapJobMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '最后更新者',
field: 'updater',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -559,122 +559,114 @@ export const ScrapJobMainRules = reactive({
*/ */
export const ScrapJobDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const ScrapJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '货主代码', label: '单据号',
field: 'ownerCode', field: 'number',
sort: 'custom',
table: {
width: 150
},
},
{
label: '包装号',
field: 'packingNumber',
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: 'fromLocationCode', field: 'itemDesc1',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '库存状态', label: '物品描述2',
field: 'inventoryStatus', field: 'itemDesc2',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '原因', label: '批次',
field: 'reason', field: 'batch',
dictType: DICT_TYPE.SCRAP_REASON,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品代码', label: '包装号',
field: 'itemCode', field: 'packingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品名称', label: '器具号',
field: 'itemName', field: 'containerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品描述1', label: '数量',
field: 'itemDesc1', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '物品描述2', label: '计量单位',
field: 'itemDesc2', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '项目代码', label: '从库位代码',
field: 'projectCode', field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '数量', label: '库存状态',
field: 'qty', field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '计量单位', label: '原因',
field: 'uom', field: 'reason',
dictType: DICT_TYPE.UOM, dictType: DICT_TYPE.SCRAP_REASON,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -683,24 +675,24 @@ export const ScrapJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '单据号', label: '货主代码',
field: 'number', field: 'ownerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '备注', label: '项目代码',
field: 'remark', field: 'projectCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '创建者', label: '备注',
field: 'creator', field: 'remark',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -726,6 +718,14 @@ export const ScrapJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
},
])) ]))
//表单校验 //表单校验

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

@ -6,17 +6,18 @@ import { dateFormatter } from '@/utils/formatTime'
*/ */
export const ScrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ScrapRecordMain = 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: 'jobNumber', field: 'requestNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -24,24 +25,17 @@ export const ScrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true isSearch: true
}, },
{ {
label: '出库事务类型', label: '任务单号',
field: 'outTransactionType', field: 'jobNumber',
sort: 'custom',
table: {
width: 150
},
},
{
label: '入库事务类型',
field: 'inTransactionType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true
}, },
{ {
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'
@ -60,8 +54,8 @@ export const ScrapRecordMain = 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'
@ -80,8 +74,8 @@ export const ScrapRecordMain = 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'
@ -100,8 +94,8 @@ export const ScrapRecordMain = 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'
@ -120,17 +114,17 @@ export const ScrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '部门', label: '从仓库代码',
field: 'departmentCode', field: 'fromWarehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '接口类型', label: '从库位类型范围',
field: 'interfaceType', field: 'fromLocationTypes',
dictType: DICT_TYPE.INTERFACE_TYPE, dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
sort: 'custom', sort: 'custom',
@ -139,14 +133,28 @@ export const ScrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '单据号', label: '从库区代码范围',
field: 'number', field: 'fromAreaCodes',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150, width: 150
fixed: 'left' },
},
{
label: '出库事务类型',
field: 'outTransactionType',
sort: 'custom',
table: {
width: 150
},
},
{
label: '入库事务类型',
field: 'inTransactionType',
sort: 'custom',
table: {
width: 150
}, },
isSearch: true
}, },
{ {
label: '业务类型', label: '业务类型',
@ -157,16 +165,27 @@ export const ScrapRecordMain = 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
@ -192,6 +211,14 @@ export const ScrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',
@ -200,33 +227,6 @@ export const ScrapRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150 // width: 150
// }, // },
// }, // },
{
label: '从仓库代码',
field: 'fromWarehouseCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '从库位类型范围',
field: 'fromLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '从库区代码范围',
field: 'fromAreaCodes',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
@ -299,24 +299,40 @@ export const ScrapRecordMainRules = reactive({
*/ */
export const ScrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const ScrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '从货主代码', label: '单据号',
field: 'fromOwnerCode', field: 'number',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '包装号', label: '物品代码',
field: 'packingNumber', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '器具号', label: '物品名称',
field: 'containerNumber', field: 'itemName',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品描述2',
field: 'itemDesc2',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -331,24 +347,46 @@ export const ScrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '从库位代码', label: '包装号',
field: 'fromLocationCode', field: 'packingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从库位组代码', label: '器具号',
field: 'fromLocationGroupCode', field: 'containerNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从库区代码', label: '数量',
field: 'fromAreaCode', field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{
label: '从库位代码',
field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -399,106 +437,79 @@ export const ScrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '单据号', label: '从库位组代码',
field: 'number', field: 'fromLocationGroupCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品代码',
field: 'itemCode',
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: '创建时间', label: '从货主代码',
field: 'createTime', field: 'fromOwnerCode',
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', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品名称', label: '项目代码',
field: 'itemName', field: 'projectCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物品描述1', label: '备注',
field: 'itemDesc1', field: 'remark',
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: 'createTime',
sort: 'custom', formatter: dateFormatter,
table: { detail: {
width: 150 dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
}, },
{
label: '数量',
field: 'qty',
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
@ -520,17 +531,6 @@ export const ScrapRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150 // width: 150
// }, // },
// }, // },
{
label: '接口类型',
field: 'interfaceType',
dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
])) ]))
//表单校验 //表单校验

400
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

@ -25,38 +25,6 @@ const userDept = userStore.userSelfInfo.dept
* @returns {Array} * @returns {Array}
*/ */
export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '从仓库代码',
field: 'fromWarehouseCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
isForm: false,
},
{
label: '从库位类型范围',
field: 'fromLocationTypes',
dictType: DICT_TYPE.LOCATION_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
isSearch: true,
isForm: false,
},
{
label: '从库区代码范围',
field: 'fromAreaCodes',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -69,60 +37,23 @@ export const ScrapRequestMain = 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: 'Scrap', value: '1',
componentProps: { componentProps: {
disabled: true disabled: true
} }
},
isForm: false,
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width: '100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
isForm: false,
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
table: {
width: 150
},
isForm: false,
},
{ {
label: '申请时间', label: '申请时间',
field: 'requestTime', field: 'requestTime',
@ -167,67 +98,65 @@ export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '部门', label: '从仓库代码',
field: 'departmentCode', field: 'fromWarehouseCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { isSearch: true,
value: userDept.name, isForm: false,
componentProps: {
disabled: true
}
}
}, },
{ {
label: '状态', label: '从库位类型范围',
field: 'status', field: 'fromLocationTypes',
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
}, },
form: { isSearch: true,
value: '1', isForm: false,
componentProps: {
disabled: true
}
}
}, },
{ {
label: '最后更新时间', label: '从库区代码范围',
field: 'updateTime', field: 'fromAreaCodes',
formatter: dateFormatter, sort: 'custom',
detail: { table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' width: 150
},
isForm: false,
}, },
{
label: '业务类型',
field: 'businessType',
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', value: 'Scrap',
componentProps: { componentProps: {
style: {width: '100%'}, disabled: true
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
} }
}, },
isForm: false, isForm: false,
}, },
{ {
label: '最后更新者', label: '部门',
field: 'updater', field: 'departmentCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isForm: false, form: {
value: userDept.name,
componentProps: {
disabled: true
}
}
}, },
{ {
label: '自动提交', label: '自动提交',
@ -309,6 +238,77 @@ export const ScrapRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
isTable: false,
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width: '100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isForm: false,
},
{
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',
@ -357,8 +357,40 @@ export const ScrapRequestMainRules = reactive({
*/ */
export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const ScrapRequestDetail = 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
},
},
{
label: '物品名称',
field: 'itemName',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '物品描述1',
field: 'itemDesc1',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -366,6 +398,24 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{
label: '物品描述2',
field: 'itemDesc2',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false,
},
{
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '包装号', label: '包装号',
field: 'packingNumber', field: 'packingNumber',
@ -402,12 +452,38 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '批次', label: '数量',
field: 'batch', field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm: {
type: 'Select'
}
}, },
{ {
label: '从库位代码', label: '从库位代码',
@ -448,28 +524,8 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '物品名称', label: '从货主代码',
field: 'itemName', field: 'fromOwnerCode',
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', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -477,26 +533,6 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{
label: '数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
min: 1,
precision: 6
}
},
tableForm: {
type: 'InputNumber',
min: 1,
precision: 6
}
},
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
@ -508,22 +544,16 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false, isForm: false,
}, },
{ {
label: '计量单位', label: '备注',
field: 'uom', field: 'remark',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm: {
type: 'Select'
}
}, },
{ {
label: '最后更新时间', label: '创建时间',
field: 'updateTime', field: 'createTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -545,8 +575,8 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false isForm: false
}, },
{ {
label: '最后更新者', label: '创建者',
field: 'updater', field: 'creator',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -555,38 +585,8 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false isForm: false
}, },
{ {
label: '单据号', label: '最后更新时间',
field: 'number', field: 'updateTime',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物品代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '备注',
field: 'remark',
sort: 'custom',
table: {
width: 150
},
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -608,8 +608,8 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false isForm: false
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

Loading…
Cancel
Save