Browse Source

HL-6112隔离收货申请,创建标签时2个包装规格选择相同的规格,生成2个任务,应生成一个任务

hella_online_20240927
yufei_wang 2 months ago
parent
commit
9363a7487c
  1. 9
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  2. 3
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts

9
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -695,6 +695,15 @@ const submitFormLabel = async (formType, submitData) => {
if(data.masterId){
data.id = data.masterId
}
let messageList = []
detatableData.tableList.forEach(item=>{
if(item['packUnit'] == item['secondPackUnit']){
messageList.push(item['itemCode'])
}
})
if(messageList.length>0){
message.error(`物料${messageList.join(',')}包装规格1和包装规格2不能相同`)
}
try {
detatableData.tableList.forEach(async (item) => {
//

3
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts

@ -2074,6 +2074,9 @@ export const ProductreceiptRequestLabel = useCrudSchemas(reactive<CrudSchema[]>(
//表单校验
export const ProductreceiptRequestLabelRules = reactive({
secondPackUnit: [
{ required: true, message: '请选择包装规格2', trigger: 'change' }
],
supplierItemCode: [
{ required: true, message: '请选择供应商', trigger: 'change' }
],

Loading…
Cancel
Save