|
@ -7,517 +7,667 @@ export const ProductredressJobMainRules = reactive({ |
|
|
|
|
|
|
|
|
export const ProductredressJobMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const ProductredressJobMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: 'id', |
|
|
label: '单据号', |
|
|
field: 'id', |
|
|
field: 'number', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180, |
|
|
|
|
|
fixed: 'left' |
|
|
|
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '申请单号', |
|
|
label: '申请单号', |
|
|
field: 'requestNumber', |
|
|
field: 'requestNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '生产计划单号', |
|
|
label: '状态', |
|
|
field: 'productionPlanNumber', |
|
|
field: 'status', |
|
|
sort: 'custom', |
|
|
dictType: DICT_TYPE.JOB_STATUS, |
|
|
|
|
|
dictClass: 'string', |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
}, |
|
|
isTable: true, |
|
|
{ |
|
|
|
|
|
label: '车间代码', |
|
|
|
|
|
field: 'workShopCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '班组', |
|
|
|
|
|
field: 'team', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '班次', |
|
|
|
|
|
field: 'shift', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '明细', |
|
|
|
|
|
field: 'details', |
|
|
|
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
value: '1', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '申请时间', |
|
|
label: '申请时间', |
|
|
field: 'requestTime', |
|
|
field: 'requestTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width: '100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '要求截止时间', |
|
|
label: '要求截止时间', |
|
|
field: 'requestDueTime', |
|
|
field: 'requestDueTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width: '100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
isForm: false |
|
|
{ |
|
|
|
|
|
label: '状态', |
|
|
|
|
|
field: 'status', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Radio' |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '过期时间', |
|
|
label: '过期时间', |
|
|
field: 'expiredTime', |
|
|
field: 'expiredTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width: '100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
isForm: false |
|
|
{ |
|
|
|
|
|
label: '最后更新时间', |
|
|
|
|
|
field: 'updateTime', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '最后更新者Id', |
|
|
|
|
|
field: 'updater', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '并发乐观锁', |
|
|
|
|
|
field: 'concurrencyStamp', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '状态', |
|
|
|
|
|
field: 'jobStageStatus', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Radio' |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '优先级', |
|
|
label: '优先级', |
|
|
field: 'priority', |
|
|
field: 'priority', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
isForm:false, |
|
|
component: 'InputNumber', |
|
|
isTable:false, |
|
|
value: 0 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '优先级增量', |
|
|
label: '优先级增量', |
|
|
field: 'priorityIncrement', |
|
|
field: 'priorityIncrement', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
isForm:false, |
|
|
component: 'InputNumber', |
|
|
isTable:false, |
|
|
value: 0 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '部门', |
|
|
label: '部门', |
|
|
field: 'departmentCode', |
|
|
field: 'departmentCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
}, |
|
|
table: { |
|
|
{ |
|
|
width: 150 |
|
|
label: '用户组', |
|
|
}, |
|
|
field: 'userGroupCode', |
|
|
isForm:false, |
|
|
sort: 'custom', |
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '承接人用户ID', |
|
|
label: '承接人用户ID', |
|
|
field: 'acceptUserId', |
|
|
field: 'acceptUserId', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '承接人用户名', |
|
|
label: '承接人用户名', |
|
|
field: 'acceptUserName', |
|
|
field: 'acceptUserName', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '承接时间', |
|
|
label: '承接时间', |
|
|
field: 'acceptTime', |
|
|
field: 'acceptTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width: '100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '完成人用户ID', |
|
|
label: '完成人用户ID', |
|
|
field: 'completeUserId', |
|
|
field: 'completeUserId', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '完成人用户名', |
|
|
label: '完成人用户名', |
|
|
field: 'completeUserName', |
|
|
field: 'completeUserName', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '完成时间', |
|
|
label: '完成时间', |
|
|
field: 'completeTime', |
|
|
field: 'completeTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width: '100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到仓库代码', |
|
|
label: '到仓库代码', |
|
|
field: 'toWarehouseCode', |
|
|
field: 'toWarehouseCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库区代码范围', |
|
|
label: '到库区代码范围', |
|
|
field: 'toAreaCodes', |
|
|
field: 'toAreaCodes', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库区类型范围', |
|
|
label: '从库区类型范围', |
|
|
field: 'fromAreaTypes', |
|
|
field: 'fromAreaTypes', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库区类型范围', |
|
|
label: '到库区类型范围', |
|
|
field: 'toAreaTypes', |
|
|
field: 'toAreaTypes', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
}, |
|
|
isForm:false, |
|
|
{ |
|
|
isTable:false, |
|
|
label: '单据号', |
|
|
|
|
|
field: 'number', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '收货类型', |
|
|
|
|
|
field: 'type', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'SelectV2' |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '业务类型', |
|
|
label: '业务类型', |
|
|
field: 'businessType', |
|
|
field: 'businessType', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
isForm:false, |
|
|
component: 'SelectV2' |
|
|
isTable:false, |
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
|
field: 'remark', |
|
|
field: 'remark', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
}, |
|
|
isForm:false, |
|
|
{ |
|
|
isTable:false, |
|
|
label: '创建时间', |
|
|
|
|
|
field: 'createTime', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '创建者id', |
|
|
|
|
|
field: 'creator', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '自动完成', |
|
|
label: '自动完成', |
|
|
field: 'autoComplete', |
|
|
field: 'autoComplete', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '允许修改库位', |
|
|
label: '允许修改库位', |
|
|
field: 'allowModifyLocation', |
|
|
field: 'allowModifyLocation', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '允许修改数量', |
|
|
label: '允许修改数量', |
|
|
field: 'allowModifyQty', |
|
|
field: 'allowModifyQty', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '允许大于推荐数量', |
|
|
label: '允许大于推荐数量', |
|
|
field: 'allowBiggerQty', |
|
|
field: 'allowBiggerQty', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '允许小于推荐数量', |
|
|
label: '允许小于推荐数量', |
|
|
field: 'allowSmallerQty', |
|
|
field: 'allowSmallerQty', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '允许修改库存状态', |
|
|
label: '允许修改库存状态', |
|
|
field: 'allowModifyInventoryStatus', |
|
|
field: 'allowModifyInventoryStatus', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
isForm:false, |
|
|
component: 'Radio' |
|
|
isTable:false, |
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '允许连续扫描', |
|
|
label: '允许连续扫描', |
|
|
field: 'allowContinuousScanning', |
|
|
field: 'allowContinuousScanning', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '允许部分完成', |
|
|
label: '允许部分完成', |
|
|
field: 'allowPartialComplete', |
|
|
field: 'allowPartialComplete', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '允许修改批次', |
|
|
label: '允许修改批次', |
|
|
field: 'allowModifyBatch', |
|
|
field: 'allowModifyBatch', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '允许修改箱码', |
|
|
label: '允许修改箱码', |
|
|
field: 'allowModifyPackingNumber', |
|
|
field: 'allowModifyPackingNumber', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '入库库存状态范围', |
|
|
label: '入库库存状态范围', |
|
|
field: 'inInventoryStatuses', |
|
|
field: 'inInventoryStatuses', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '出库库存状态范围', |
|
|
label: '出库库存状态范围', |
|
|
field: 'outInventoryStatuses', |
|
|
field: 'outInventoryStatuses', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '创建者', |
|
|
field: 'action', |
|
|
field: 'creator', |
|
|
isForm: false, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150, |
|
|
|
|
|
fixed: 'right' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
|
|
export const ProductredressJobDetailRules = reactive({ |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
{ |
|
|
|
|
|
label: 'id', |
|
|
|
|
|
field: 'id', |
|
|
|
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '生产线代码', |
|
|
label: '创建时间', |
|
|
field: 'productionLineCode', |
|
|
field: 'createTime', |
|
|
sort: 'custom', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '工位代码', |
|
|
|
|
|
field: 'workStationCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '工序代码', |
|
|
|
|
|
field: 'processCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '包装号', |
|
|
|
|
|
field: 'packingNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '器具号', |
|
|
|
|
|
field: 'containerNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '批次', |
|
|
|
|
|
field: 'batch', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '生产日期', |
|
|
|
|
|
field: 'produceDate', |
|
|
|
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width: '100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '过期日期', |
|
|
label: '最后更新者', |
|
|
field: 'expireDate', |
|
|
field: 'updater', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '最后更新时间', |
|
|
|
|
|
field: 'updateTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
|
|
|
style: {width: '100%'}, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
valueFormat: 'x' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
|
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
|
|
export const ProductredressJobDetailRules = reactive({ |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
export const ProductredressJobDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '库存状态', |
|
|
label: '包装号', |
|
|
field: 'inventoryStatus', |
|
|
field: 'packingNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
table: { |
|
|
component: 'Radio' |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库位代码', |
|
|
label: '批次', |
|
|
field: 'toLocationCode', |
|
|
field: 'batch', |
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '订单号', |
|
|
|
|
|
field: 'woNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '订单行', |
|
|
|
|
|
field: 'woLine', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '包装数量', |
|
|
|
|
|
field: 'packQty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '包装规格', |
|
|
|
|
|
field: 'packUnit', |
|
|
|
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '生产日期',
|
|
|
|
|
|
// field: 'produceDate',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// formatter: dateFormatter,
|
|
|
|
|
|
// detail: {
|
|
|
|
|
|
// dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
|
|
|
|
// },
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 180
|
|
|
|
|
|
// },
|
|
|
|
|
|
// form: {
|
|
|
|
|
|
// component: 'DatePicker',
|
|
|
|
|
|
// componentProps: {
|
|
|
|
|
|
// style: {width: '100%'},
|
|
|
|
|
|
// type: 'datetime',
|
|
|
|
|
|
// dateFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
|
|
// valueFormat: 'x',
|
|
|
|
|
|
// }
|
|
|
|
|
|
// },
|
|
|
|
|
|
// isForm: false
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '过期日期',
|
|
|
|
|
|
// field: 'expireDate',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// formatter: dateFormatter,
|
|
|
|
|
|
// detail: {
|
|
|
|
|
|
// dateFormat: 'YYYY-MM-DD HH:mm:ss'
|
|
|
|
|
|
// },
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 180
|
|
|
|
|
|
// },
|
|
|
|
|
|
// form: {
|
|
|
|
|
|
// component: 'DatePicker',
|
|
|
|
|
|
// componentProps: {
|
|
|
|
|
|
// style: {width: '100%'},
|
|
|
|
|
|
// type: 'datetime',
|
|
|
|
|
|
// dateFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
|
|
// valueFormat: 'x',
|
|
|
|
|
|
// }
|
|
|
|
|
|
// },
|
|
|
|
|
|
// isForm: false
|
|
|
|
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '物品代码', |
|
|
label: '物品代码', |
|
|
field: 'itemCode', |
|
|
field: 'itemCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品名称', |
|
|
label: '物品名称', |
|
|
field: 'itemName', |
|
|
field: 'itemName', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品描述1', |
|
|
label: '物品描述1', |
|
|
field: 'itemDesc1', |
|
|
field: 'itemDesc1', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品描述2', |
|
|
label: '物品描述2', |
|
|
field: 'itemDesc2', |
|
|
field: 'itemDesc2', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '项目代码', |
|
|
label: '项目代码', |
|
|
field: 'projectCode', |
|
|
field: 'projectCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '数量', |
|
|
field: 'qty', |
|
|
field: 'qty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '计量单位', |
|
|
label: '计量单位', |
|
|
field: 'uom', |
|
|
field: 'uom', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '主表ID', |
|
|
label: '包装规格', |
|
|
field: 'masterId', |
|
|
field: 'packUnit', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
table: { |
|
|
component: 'InputNumber', |
|
|
width: 150 |
|
|
value: 0 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '包装数量', |
|
|
field: 'number', |
|
|
field: 'packQty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
// {
|
|
|
|
|
|
// label: '单据号',
|
|
|
|
|
|
// field: 'number',
|
|
|
|
|
|
// sort: 'custom',
|
|
|
|
|
|
// table: {
|
|
|
|
|
|
// width: 150
|
|
|
|
|
|
// },
|
|
|
|
|
|
// },
|
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '库存状态', |
|
|
field: 'remark', |
|
|
field: 'inventoryStatus', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '到库位代码', |
|
|
field: 'createTime', |
|
|
field: 'toLocationCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
table: { |
|
|
isForm: false, |
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '订单号', |
|
|
|
|
|
field: 'woNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '订单行', |
|
|
|
|
|
field: 'woLine', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '备注', |
|
|
|
|
|
field: 'remark', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建者Id', |
|
|
label: '创建者', |
|
|
field: 'creator', |
|
|
field: 'creator', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '创建时间', |
|
|
field: 'updateTime', |
|
|
field: 'createTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
isForm: false, |
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: {width: '100%'}, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新者Id', |
|
|
label: '最后更新者', |
|
|
field: 'updater', |
|
|
field: 'updater', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到货主代码', |
|
|
label: '最后更新时间', |
|
|
field: 'toOwnerCode', |
|
|
field: 'updateTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
}, |
|
|
formatter: dateFormatter, |
|
|
{ |
|
|
detail: { |
|
|
label: '操作', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
field: 'action', |
|
|
}, |
|
|
isForm: false, |
|
|
|
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 180 |
|
|
fixed: 'right' |
|
|
}, |
|
|
} |
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: {width: '100%'}, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: false |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|