|
@ -34,31 +34,6 @@ const userDept = userStore.userSelfInfo.dept |
|
|
* @returns {Array} 库存初始化申请主表 |
|
|
* @returns {Array} 库存初始化申请主表 |
|
|
*/ |
|
|
*/ |
|
|
export const InventoryinitRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const InventoryinitRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
|
|
|
label: '仓库代码', |
|
|
|
|
|
field: 'warehouseCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '仓库信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '单据号', |
|
|
field: 'number', |
|
|
field: 'number', |
|
@ -71,59 +46,47 @@ export const InventoryinitRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
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: 'InventoryInitial', |
|
|
value: '1', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
} |
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '仓库代码', |
|
|
field: 'remark', |
|
|
field: 'warehouseCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isSearch: true, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '创建时间', |
|
|
|
|
|
field: 'createTime', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: {width:'100%'}, |
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
type: 'datetime', |
|
|
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
valueFormat: 'x', |
|
|
searchTitle: '仓库信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
} |
|
|
} |
|
|
}, |
|
|
} |
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '创建者', |
|
|
|
|
|
field: 'creator', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '申请时间', |
|
|
label: '申请时间', |
|
@ -169,68 +132,34 @@ export const InventoryinitRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '部门', |
|
|
label: '业务类型', |
|
|
field: 'departmentCode', |
|
|
field: 'businessType', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
value: userDept.name, |
|
|
value: 'InventoryInitial', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
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: '最后更新时间', |
|
|
|
|
|
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', |
|
@ -311,6 +240,77 @@ export const InventoryinitRequestMain = 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', |
|
@ -353,19 +353,33 @@ export const InventoryinitRequestMainRules = reactive({ |
|
|
*/ |
|
|
*/ |
|
|
export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '货主代码', |
|
|
label: '单据号', |
|
|
field: 'ownerCode', |
|
|
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 |
|
|
}, |
|
|
}, |
|
|
tableForm:{ |
|
|
tableForm:{ |
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
searchListPlaceholder: '请选择货主代码', |
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
searchField: 'code', |
|
|
searchField: 'code', |
|
|
searchTitle: '货主信息', |
|
|
searchTitle: '物品基础信息', |
|
|
searchAllSchemas: Owner.allSchemas, |
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
searchPage: OwnerApi.getOwnerPage, |
|
|
searchPage: ItembasicApi.getItembasicPage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
@ -376,11 +390,11 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
searchListPlaceholder: '请选择货主代码', |
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
searchField: 'code', |
|
|
searchField: 'code', |
|
|
searchTitle: '货主信息', |
|
|
searchTitle: '物品基础信息', |
|
|
searchAllSchemas: Owner.allSchemas, |
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
searchPage: OwnerApi.getOwnerPage, |
|
|
searchPage: ItembasicApi.getItembasicPage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
@ -390,114 +404,130 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '包装号', |
|
|
label: '物品名称', |
|
|
field: 'packingNumber', |
|
|
field: 'itemName', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '器具号', |
|
|
label: '物品描述1', |
|
|
field: 'containerNumber', |
|
|
field: 'itemDesc1', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '批次', |
|
|
label: '物品描述2', |
|
|
field: 'batch', |
|
|
field: 'itemDesc2', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '替代批次', |
|
|
label: '批次', |
|
|
field: 'altBatch', |
|
|
field: 'batch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到货日期', |
|
|
label: '包装号', |
|
|
field: 'arriveDate', |
|
|
field: 'packingNumber', |
|
|
formatter: dateFormatter, |
|
|
sort: 'custom', |
|
|
detail: { |
|
|
table: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '器具号', |
|
|
|
|
|
field: 'containerNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 180 |
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '数量', |
|
|
|
|
|
field: 'qty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
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: { |
|
|
tableForm: { |
|
|
type: 'FormDateTime', |
|
|
type: 'InputNumber', |
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
min: 1, |
|
|
valueFormat: 'x', |
|
|
precision: 6 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '生产日期', |
|
|
label: '计量单位', |
|
|
field: 'produceDate', |
|
|
field: 'uom', |
|
|
formatter: dateFormatter, |
|
|
dictType: DICT_TYPE.UOM, |
|
|
detail: { |
|
|
dictClass: 'string', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
isTable: true, |
|
|
}, |
|
|
|
|
|
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', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'FormDateTime', |
|
|
type: 'Select' |
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '过期日期', |
|
|
label: '标包数量', |
|
|
field: 'expireDate', |
|
|
field: 'stdPackQty', |
|
|
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: { |
|
|
tableForm: { |
|
|
type: 'FormDateTime', |
|
|
type: 'InputNumber', |
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
min: 1, |
|
|
valueFormat: 'x', |
|
|
precision: 6 |
|
|
} |
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '标包单位', |
|
|
|
|
|
field: 'stdPackUnit', |
|
|
|
|
|
dictType: DICT_TYPE.PACK_UNIT, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select' |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '库存状态', |
|
|
label: '库存状态', |
|
@ -571,71 +601,19 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '标包数量', |
|
|
label: '货主代码', |
|
|
field: 'stdPackQty', |
|
|
field: 'ownerCode', |
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 6 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'InputNumber', |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 6 |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '标包单位', |
|
|
|
|
|
field: 'stdPackUnit', |
|
|
|
|
|
dictType: DICT_TYPE.PACK_UNIT, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'Select' |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '单据号', |
|
|
|
|
|
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 |
|
|
}, |
|
|
}, |
|
|
tableForm:{ |
|
|
tableForm:{ |
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
searchListPlaceholder: '请选择货主代码', |
|
|
searchField: 'code', |
|
|
searchField: 'code', |
|
|
searchTitle: '物品基础信息', |
|
|
searchTitle: '货主信息', |
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
searchAllSchemas: Owner.allSchemas, |
|
|
searchPage: ItembasicApi.getItembasicPage, |
|
|
searchPage: OwnerApi.getOwnerPage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
@ -646,11 +624,11 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
searchListPlaceholder: '请选择货主代码', |
|
|
searchField: 'code', |
|
|
searchField: 'code', |
|
|
searchTitle: '物品基础信息', |
|
|
searchTitle: '货主信息', |
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
searchAllSchemas: Owner.allSchemas, |
|
|
searchPage: ItembasicApi.getItembasicPage, |
|
|
searchPage: OwnerApi.getOwnerPage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
@ -660,16 +638,26 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '项目代码', |
|
|
field: 'remark', |
|
|
field: 'projectCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '替代批次', |
|
|
|
|
|
field: 'altBatch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '到货日期', |
|
|
field: 'createTime', |
|
|
field: 'arriveDate', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
@ -687,92 +675,104 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm: { |
|
|
isForm: false |
|
|
type: 'FormDateTime', |
|
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '生产日期', |
|
|
field: 'creator', |
|
|
field: 'produceDate', |
|
|
sort: 'custom', |
|
|
formatter: dateFormatter, |
|
|
table: { |
|
|
detail: { |
|
|
width: 150 |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
|
|
|
isForm: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
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, |
|
|
tableForm: { |
|
|
isForm: false |
|
|
type: 'FormDateTime', |
|
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品描述2', |
|
|
label: '过期日期', |
|
|
field: 'itemDesc2', |
|
|
field: 'expireDate', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
form: { |
|
|
isForm: false |
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: {width:'100%'}, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'FormDateTime', |
|
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
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: '计量单位', |
|
|
label: '创建者', |
|
|
field: 'uom', |
|
|
field: 'creator', |
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
isTableForm: false, |
|
|
type: 'Select' |
|
|
isForm: false |
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
|