|
@ -1790,74 +1790,93 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '包装规格', |
|
|
label: '包装规格', |
|
|
field: 'packUnit', |
|
|
field: 'packUnit', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
isSearch: false, |
|
|
width: 150, |
|
|
table: { |
|
|
componentProps: { |
|
|
width: 120 |
|
|
disabled: true, |
|
|
|
|
|
isSearchList: true, |
|
|
|
|
|
searchListPlaceholder: '请选择包装', |
|
|
|
|
|
searchField: 'packUnit', |
|
|
|
|
|
searchTitle: '物品包装信息', |
|
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, |
|
|
|
|
|
searchPage: ItemPackageApi.getItemPackagingPageByItemCode, |
|
|
|
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'itemCode', |
|
|
|
|
|
value: 'itemCode', |
|
|
|
|
|
message: '请选择订单行', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
disabled: true, |
|
|
|
|
|
isInpuFocusShow: true, |
|
|
|
|
|
searchListPlaceholder: '请选择包装', |
|
|
|
|
|
searchField: 'packUnit', |
|
|
|
|
|
searchTitle: '物品包装信息', |
|
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, |
|
|
|
|
|
searchPage: ItemPackageApi.getItemPackagingPageByItemCode, |
|
|
|
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'itemCode', |
|
|
|
|
|
value: 'itemCode', |
|
|
|
|
|
message: '请选择订单行', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
isTable: false, |
|
|
key: 'available', |
|
|
isTableForm: true, |
|
|
value: 'TRUE', |
|
|
isForm: true, |
|
|
isMainValue: false |
|
|
tableForm: { |
|
|
}] |
|
|
enterSearch: true, |
|
|
}, |
|
|
isInpuFocusShow: true, |
|
|
}, |
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
{ |
|
|
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
|
|
|
label: '包装数量', |
|
|
searchField: 'packUnit', // 查询弹窗赋值字段
|
|
|
field: 'packQty', |
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
sort: 'custom', |
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
table: { |
|
|
searchPage: ItemPackageApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
width: 150 |
|
|
searchCondition: [ |
|
|
}, |
|
|
{ |
|
|
form: { |
|
|
key: 'available', |
|
|
componentProps: { |
|
|
value: 'TRUE', |
|
|
disabled: true |
|
|
isMainValue: false |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
tableForm: { |
|
|
key: 'itemCode', |
|
|
disabled: true, |
|
|
value: 'itemCode', |
|
|
} |
|
|
message: '请先选择物料代码!', |
|
|
}, |
|
|
isMainValue: true |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'packUnit', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: '', |
|
|
|
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isFormModel: true |
|
|
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择包装规格', // 输入框占位文本
|
|
|
|
|
|
searchField: 'packUnit', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: ItemPackageApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'itemCode', |
|
|
|
|
|
value: 'itemCode', |
|
|
|
|
|
message: '请先选择物料代码!', // 当前置条件为空时 弹出信息提示
|
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 'packUnit', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: '', |
|
|
|
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isFormModel: true |
|
|
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '包装数量', |
|
|
|
|
|
field: 'packQty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '标签生产线代码', |
|
|
label: '标签生产线代码', |
|
|
field: 'productionLineCodePackage', |
|
|
field: 'productionLineCodePackage', |
|
@ -2159,5 +2178,11 @@ export const ProductreceiptRequestLabelRules = reactive({ |
|
|
batch: [ |
|
|
batch: [ |
|
|
{ required: true, message: '请选择批次', trigger: ['change','blur'] } |
|
|
{ required: true, message: '请选择批次', trigger: ['change','blur'] } |
|
|
], |
|
|
], |
|
|
|
|
|
packUnit: [ |
|
|
|
|
|
{ required: true, message: '请选择包装规格', trigger: ['change','blur'] } |
|
|
|
|
|
], |
|
|
|
|
|
packQty: [ |
|
|
|
|
|
{ required: true, message: '请输入包装数量', trigger: ['change','blur'] } |
|
|
|
|
|
], |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|