|
|
@ -1060,7 +1060,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
width: 150, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
isTableForm:true, |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
@ -1104,6 +1104,601 @@ export const PurchasereceiptRequestDetailRules = reactive({ |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 采购收货申请子表--子包装号 |
|
|
|
*/ |
|
|
|
export const PurchasereceiptRequestDetailPackingNumber = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '包装号', |
|
|
|
field: 'packingNumber', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单号', |
|
|
|
field: 'poNumber', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
isInpuFocusShow: false, |
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
searchField: 'number', |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage, |
|
|
|
searchCondition: [{ |
|
|
|
key:'supplierCode', |
|
|
|
value:'supplierCode', |
|
|
|
message: '请选择供应商!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
}, |
|
|
|
form: { |
|
|
|
labelMessage: '该订单号会影响订单行的选择', |
|
|
|
componentProps: { |
|
|
|
disabled:true, |
|
|
|
isSearchList: false, |
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
searchField: 'number', |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage, |
|
|
|
searchCondition: [{ |
|
|
|
key:'supplierCode', |
|
|
|
value:'supplierCode', |
|
|
|
message: '请选择供应商!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单行', |
|
|
|
field: 'poLine', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
disabled:true, |
|
|
|
isSearchList: false, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择订单行', // 输入框占位文本
|
|
|
|
searchField: 'lineNumber', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '订单信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: PurchaseDetail.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key:'number', |
|
|
|
value:'poNumber', |
|
|
|
message: '请填写订单号!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
isInpuFocusShow: false, |
|
|
|
searchListPlaceholder: '请选择订单行', // 输入框占位文本
|
|
|
|
searchField: 'lineNumber', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '订单信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: PurchaseDetail.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key:'number', |
|
|
|
value:'poNumber', |
|
|
|
message: '请填写订单号!', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料名称', |
|
|
|
field: 'itemName', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料描述1', |
|
|
|
field: 'itemDesc1', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料描述2', |
|
|
|
field: 'itemDesc2', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '器具号', |
|
|
|
field: 'containerNumber', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '数量', |
|
|
|
field: 'qty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计量单位', |
|
|
|
field: 'uom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从库位代码', |
|
|
|
field: 'fromLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '默认到库位代码', |
|
|
|
field: 'defaultToLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true, |
|
|
|
isInpuFocusShow: false, |
|
|
|
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '库位信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
}, |
|
|
|
isTableForm: true, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '生产日期', |
|
|
|
field: 'produceDate', |
|
|
|
formatter: dateFormatter2, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
disabled:true, |
|
|
|
style: {width: '100%'}, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true, |
|
|
|
type:'FormDate', |
|
|
|
placeholder: '请选择生产日期', |
|
|
|
valueFormat: 'x', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
field: 'batch', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '替代批次', |
|
|
|
field: 'altBatch', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到货日期', |
|
|
|
field: 'arriveDate', |
|
|
|
formatter: dateFormatter2, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
disabled:true, |
|
|
|
style: {width: '100%'}, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true, |
|
|
|
type:'FormDate', |
|
|
|
placeholder: '请选择到货日期', |
|
|
|
valueFormat: 'x', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '过期日期', |
|
|
|
field: 'expireDate', |
|
|
|
formatter: dateFormatter2, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
disabled:true, |
|
|
|
style: {width: '100%'}, |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: true, |
|
|
|
type:'FormDate', |
|
|
|
placeholder: '请选择过期日期', |
|
|
|
valueFormat: 'x', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库存状态', |
|
|
|
field: 'inventoryStatus', |
|
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装数量', |
|
|
|
field: 'packQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择包装', |
|
|
|
searchField: 'packQty', |
|
|
|
searchTitle: '物品包装信息', |
|
|
|
searchAllSchemas: Itempackaging.allSchemas, |
|
|
|
searchPage: ItemPackageApi.getItempackagingPageBySupplierdeliver, |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
message: '请选择订单行', |
|
|
|
isMainValue: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
isInpuFocusShow: false, |
|
|
|
searchListPlaceholder: '请选择包装', |
|
|
|
searchField: 'packQty', |
|
|
|
searchTitle: '物品包装信息', |
|
|
|
searchAllSchemas: Itempackaging.allSchemas, |
|
|
|
searchPage: ItemPackageApi.getItempackagingPageBySupplierdeliver, |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
message: '请选择订单行', |
|
|
|
isMainValue: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
}, |
|
|
|
isTableForm: true, |
|
|
|
isForm: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '包装规格', |
|
|
|
field: 'packUnit', |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
isTableForm: true, |
|
|
|
isForm: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商计量数量', |
|
|
|
field: 'supplierPackQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
}, |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商计量单位', |
|
|
|
field: 'supplierPackUnit', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '转换率', |
|
|
|
field: 'convertRate', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0 |
|
|
|
}, |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单据号', |
|
|
|
field: 'number', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '项目代码', |
|
|
|
field: 'projectCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从货主代码', |
|
|
|
field: 'fromOwnerCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到货主代码', |
|
|
|
field: 'toOwnerCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
|
field: 'creator', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
formatter: dateFormatter, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
}, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
export const PurchasereceiptRequestDetailLabel = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|