|
@ -41,6 +41,35 @@ const userDept = userStore.userSelfInfo.dept |
|
|
* @returns {Array} 发货申请主表 |
|
|
* @returns {Array} 发货申请主表 |
|
|
*/ |
|
|
*/ |
|
|
export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
{ |
|
|
|
|
|
label: '单据号', |
|
|
|
|
|
field: 'number', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150, |
|
|
|
|
|
fixed: 'left' |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '状态', |
|
|
|
|
|
field: 'status', |
|
|
|
|
|
dictType: DICT_TYPE.REQUEST_STATUS, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
value: '1', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '发货计划单号', |
|
|
label: '发货计划单号', |
|
|
field: 'deliverPlanNumber', |
|
|
field: 'deliverPlanNumber', |
|
@ -166,6 +195,49 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '申请时间', |
|
|
|
|
|
field: 'requestTime', |
|
|
|
|
|
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: 'dueTime', |
|
|
|
|
|
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', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从仓库代码', |
|
|
label: '从仓库代码', |
|
|
field: 'fromWarehouseCode', |
|
|
field: 'fromWarehouseCode', |
|
@ -235,17 +307,6 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
label: '单据号', |
|
|
|
|
|
field: 'number', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150, |
|
|
|
|
|
fixed: 'left' |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '业务类型', |
|
|
label: '业务类型', |
|
|
field: 'businessType', |
|
|
field: 'businessType', |
|
@ -261,89 +322,6 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
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: '申请时间', |
|
|
|
|
|
field: 'requestTime', |
|
|
|
|
|
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: 'dueTime', |
|
|
|
|
|
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', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '部门', |
|
|
label: '部门', |
|
|
field: 'departmentCode', |
|
|
field: 'departmentCode', |
|
@ -358,55 +336,6 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
label: '状态', |
|
|
|
|
|
field: 'status', |
|
|
|
|
|
dictType: DICT_TYPE.REQUEST_STATUS, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
value: '1', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
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: 'autoCommit', |
|
|
field: 'autoCommit', |
|
@ -488,26 +417,97 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '备注', |
|
|
field: 'action', |
|
|
field: 'remark', |
|
|
isDetail: false, |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
|
|
|
table: { |
|
|
table: { |
|
|
width: 300, |
|
|
width: 150 |
|
|
fixed: 'right' |
|
|
}, |
|
|
|
|
|
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, |
|
|
//表单校验
|
|
|
}, |
|
|
export const DeliverRequestMainRules = reactive({ |
|
|
{ |
|
|
customerCode: [ |
|
|
label: '创建者', |
|
|
{ required: true, message: '请选择客户代码', trigger: 'change' } |
|
|
field: 'creator', |
|
|
], |
|
|
sort: 'custom', |
|
|
// customerDockCode: [
|
|
|
table: { |
|
|
// { required: true, message: '请选择客户月台代码', trigger: 'change' }
|
|
|
width: 150 |
|
|
// ],
|
|
|
}, |
|
|
// fromWarehouseCode: [
|
|
|
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: '操作', |
|
|
|
|
|
field: 'action', |
|
|
|
|
|
isDetail: false, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 300, |
|
|
|
|
|
fixed: 'right' |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
//表单校验
|
|
|
|
|
|
export const DeliverRequestMainRules = reactive({ |
|
|
|
|
|
customerCode: [ |
|
|
|
|
|
{ required: true, message: '请选择客户代码', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
// customerDockCode: [
|
|
|
|
|
|
// { required: true, message: '请选择客户月台代码', trigger: 'change' }
|
|
|
|
|
|
// ],
|
|
|
|
|
|
// fromWarehouseCode: [
|
|
|
// { required: true, message: '请选择从仓库代码', trigger: 'change' }
|
|
|
// { required: true, message: '请选择从仓库代码', trigger: 'change' }
|
|
|
// ],
|
|
|
// ],
|
|
|
// fromLocationTypes: [
|
|
|
// fromLocationTypes: [
|
|
@ -549,6 +549,20 @@ export const DeliverRequestMainRules = reactive({ |
|
|
* @returns {Array} 发货申请子表 |
|
|
* @returns {Array} 发货申请子表 |
|
|
*/ |
|
|
*/ |
|
|
export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
{ |
|
|
|
|
|
label: '单据号', |
|
|
|
|
|
field: 'number', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '销售订单号', |
|
|
label: '销售订单号', |
|
|
field: 'soNumber', |
|
|
field: 'soNumber', |
|
@ -624,54 +638,75 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '包装号', |
|
|
label: '物品代码', |
|
|
field: 'packingNumber', |
|
|
field: 'itemCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false, |
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
|
|
|
searchField: 'code', |
|
|
|
|
|
searchTitle: '物品基础信息', |
|
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
|
|
|
searchPage: ItembasicApi.getItembasicPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, |
|
|
|
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
|
|
|
searchField: 'code', |
|
|
|
|
|
searchTitle: '物品基础信息', |
|
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
|
|
|
searchPage: ItembasicApi.getItembasicPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '器具号', |
|
|
label: '物品名称', |
|
|
field: 'containerNumber', |
|
|
field: 'itemName', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTableForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '批次', |
|
|
label: '物品描述1', |
|
|
field: 'batch', |
|
|
field: 'itemDesc1', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTableForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
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 |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
|
|
|
type: 'Select' |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
isForm: false, |
|
|
|
|
|
isTableForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到货主代码', |
|
|
label: '批次', |
|
|
field: 'toOwnerCode', |
|
|
field: 'batch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
@ -680,8 +715,8 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库位代码', |
|
|
label: '包装号', |
|
|
field: 'toLocationCode', |
|
|
field: 'packingNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
@ -690,100 +725,78 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '器具号', |
|
|
field: 'number', |
|
|
field: 'containerNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
form: { |
|
|
isForm: false, |
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品代码', |
|
|
label: '数量', |
|
|
field: 'itemCode', |
|
|
field: 'qty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm:{ |
|
|
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
|
|
|
searchField: 'code', |
|
|
|
|
|
searchTitle: '物品基础信息', |
|
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
|
|
|
searchPage: ItembasicApi.getItembasicPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
component: 'InputNumber', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
isSearchList: true, |
|
|
min: 1, |
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
precision: 6 |
|
|
searchField: 'code', |
|
|
|
|
|
searchTitle: '物品基础信息', |
|
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
|
|
|
searchPage: ItembasicApi.getItembasicPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 6 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '计量单位', |
|
|
field: 'remark', |
|
|
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: '到库位代码', |
|
|
field: 'createTime', |
|
|
field: 'toLocationCode', |
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 180 |
|
|
width: 150 |
|
|
}, |
|
|
|
|
|
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, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '库存状态', |
|
|
field: 'creator', |
|
|
field: 'inventoryStatus', |
|
|
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select' |
|
|
|
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品名称', |
|
|
label: '项目代码', |
|
|
field: 'itemName', |
|
|
field: 'projectCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
@ -792,8 +805,8 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTableForm: false |
|
|
isTableForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品描述1', |
|
|
label: '从货主代码', |
|
|
field: 'itemDesc1', |
|
|
field: 'fromOwnerCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
@ -802,68 +815,55 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTableForm: false |
|
|
isTableForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品描述2', |
|
|
label: '到货主代码', |
|
|
field: 'itemDesc2', |
|
|
field: 'toOwnerCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTableForm: false |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '项目代码', |
|
|
label: '备注', |
|
|
field: 'projectCode', |
|
|
field: 'remark', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
|
|
|
isTableForm: 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: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 6 |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
isTableForm: false, |
|
|
label: '计量单位', |
|
|
isForm: false |
|
|
field: 'uom', |
|
|
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从货主代码', |
|
|
label: '创建者', |
|
|
field: 'fromOwnerCode', |
|
|
field: 'creator', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isTableForm: false, |
|
|
isTableForm: false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
|