Browse Source

WMS 需求:HL-5517 WMS发料管理-隔离退料申请字段变更

hella_online_20240828
gaojs 4 weeks ago
parent
commit
f4a3339b4c
  1. 12
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  2. 162
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts
  3. 12
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  4. 103
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

12
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -209,6 +209,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else { } else {
row['batch'] = '000000' row['batch'] = '000000'
} }
row['packUnit'] = val[0]['packUnit']
row['packQty'] = val[0]['packQty']
// HL-4885 @ @ // HL-4885 @ @
// tableform // tableform
// TODO: tableFormColumns 10 20 20 // TODO: tableFormColumns 10 20 20
@ -226,10 +228,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['fromLocationCode'] = item['rawLocationCode'] newRow['fromLocationCode'] = item['rawLocationCode']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else if(formField == 'packUnit') { }
row['packUnit'] = val[0]['packUnit'] // else if(formField == 'packUnit') {
row['packQty'] = val[0]['packQty'] // row['packUnit'] = val[0]['packUnit']
} else { // row['packQty'] = val[0]['packQty']
// }
else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
} else { } else {

162
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -521,9 +521,9 @@ export const ProductionreturnRequestMainRules = reactive({
workshopCode: [ workshopCode: [
{ required: true, message: '请选择车间', trigger: 'change' } { required: true, message: '请选择车间', trigger: 'change' }
], ],
productionLineCode: [ // productionLineCode: [
{ required: true, message: '请选择生产线代码', trigger: 'change' } // { required: true, message: '请选择生产线代码', trigger: 'change' }
], // ],
}) })
/** /**
@ -623,21 +623,34 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
searchTitle: '工位信息', // 查询弹窗标题 searchTitle: '工位信息', // 查询弹窗标题
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类 searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法 searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法
searchCondition:[{ searchCondition: [
key: 'available', {
value: 'TRUE', key: 'available',
isMainValue: false value: 'TRUE',
},{ action: '==', // 查询拼接条件
key: 'workshopCode', isSearch: true, // 使用自定义拼接条件
value: 'workshopCode', isMainValue: false
message: '请选择车间信息!', },
isMainValue: true {
},{ key: 'workshopCode',
key: 'productionLineCode', value: 'workshopCode',
value: 'productionLineCode', message: '请选择车间信息!',
message: '请选择生产线信息!', action: '==', // 查询拼接条件
isMainValue: true isSearch: true, // 使用自定义拼接条件
}], isMainValue: false, // 拼接条件必须要 false 同时不能与 isMainValue: true 同用
isFormModel:true, // filters中添加筛选的数据--取于formModel
required:true, // 前置添加必有,和isFormModel结合使用
},
{
key: 'productionLineCode', // 查询列表中字段
value: 'productionLineCode', // 指查询具体值
action: '==', // 查询拼接条件
isSearch: true, // 使用自定义拼接条件
isMainValue: false, // 拼接条件必须要 false 同时不能与 isMainValue: true 同用
isFormModel:true, // filters中添加筛选的数据--取于formModel
required:false, // 前置添加必有,和isFormModel结合使用
},
],
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法 verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true, isShowTableFormSearch: true,
isRepeat: true,//是否可以重复添加该条数据 isRepeat: true,//是否可以重复添加该条数据
@ -651,10 +664,33 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
}], // 失去焦点校验参数 }], // 失去焦点校验参数
}, },
}, },
{
label: '来源库位',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
},
isDetail:false,
isTable:true,
isTableForm: true,
isForm: false,
},
{ {
label: '目标库位', label: '目标库位',
field: 'toLocationCode', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
tableForm: { tableForm: {
multiple: true,//多选 multiple: true,//多选
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
@ -698,26 +734,6 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
} }
} }
}, },
{
label: '原料库位',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
},
isDetail:false,
isTable:false,
isTableForm: true,
isForm: false,
},
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
@ -914,23 +930,6 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
} }
} }
}, },
{
label: '来源库位',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '从货主', label: '从货主',
field: 'fromOwnerCode', field: 'fromOwnerCode',
@ -1035,32 +1034,33 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[
isTable:true, isTable:true,
isTableForm: true, isTableForm: true,
tableForm: { tableForm: {
enterSearch:true, disabled: true
isInpuFocusShow: true, // enterSearch:true,
isSearchList: true, // 开启查询弹窗 // isInpuFocusShow: true,
searchListPlaceholder: '请选择包装规格', // 输入框占位文本 // isSearchList: true, // 开启查询弹窗
searchField: 'packUnit', // 查询弹窗赋值字段 // searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchTitle: '物料包装信息', // 查询弹窗标题 // searchField: 'packUnit', // 查询弹窗赋值字段
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类 // searchTitle: '物料包装信息', // 查询弹窗标题
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法 // searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchCondition: [{ // searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
key: 'available', // searchCondition: [{
value: 'TRUE', // key: 'available',
isMainValue: false // value: 'TRUE',
},{ // isMainValue: false
key: 'itemCode', // },{
value: 'itemCode', // key: 'itemCode',
message: '请先选择物料代码!', // value: 'itemCode',
isMainValue: true // message: '请先选择物料代码!',
}], // isMainValue: true
verificationParams: [{ // }],
key: 'packUnit', // verificationParams: [{
action: '==', // key: 'packUnit',
value: '', // action: '==',
isMainValue: false, // value: '',
isSearch: true, // isMainValue: false,
isFormModel: true, // isSearch: true,
}], // 失去焦点校验参数 // isFormModel: true,
// }], // 失去焦点校验参数
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',

12
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -194,6 +194,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
row['inventoryStatus'] = val[0]['inventoryStatus'] row['inventoryStatus'] = val[0]['inventoryStatus']
row['qty'] = Number(val[0]['qty']) row['qty'] = Number(val[0]['qty'])
row['packUnit'] = val[0]['packUnit']
row['packQty'] = val[0]['packQty']
// HL-4885 @ @ // HL-4885 @ @
// tableform // tableform
// ProductionreturnRequestDetail.allSchemas.tableFormColumns.forEach(item => { // ProductionreturnRequestDetail.allSchemas.tableFormColumns.forEach(item => {
@ -212,10 +214,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['fromLocationCode'] = item['rawLocationCode'] newRow['fromLocationCode'] = item['rawLocationCode']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else if(formField == 'packUnit') { }
row['packUnit'] = val[0]['packUnit'] // else if(formField == 'packUnit') {
row['packQty'] = val[0]['packQty'] // row['packUnit'] = val[0]['packUnit']
} else { // row['packQty'] = val[0]['packQty']
// }
else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
} else { } else {

103
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/productionreturnRequestMainNo.data.ts

@ -129,20 +129,29 @@ export const ProductionreturnRequestDetail = useCrudSchemas(
{ {
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
action: '==', // 查询拼接条件
isSearch: true, // 使用自定义拼接条件
isMainValue: false isMainValue: false
}, },
{ {
key: 'workshopCode', key: 'workshopCode',
value: 'workshopCode', value: 'workshopCode',
message: '请选择车间信息!', message: '请选择车间信息!',
isMainValue: true action: '==', // 查询拼接条件
isSearch: true, // 使用自定义拼接条件
isMainValue: false, // 拼接条件必须要 false 同时不能与 isMainValue: true 同用
isFormModel:true, // filters中添加筛选的数据--取于formModel
required:true, // 前置添加必有,和isFormModel结合使用
}, },
{ {
key: 'productionLineCode', key: 'productionLineCode', // 查询列表中字段
value: 'productionLineCode', value: 'productionLineCode', // 指查询具体值
message: '请选择生产线信息!', action: '==', // 查询拼接条件
isMainValue: true isSearch: true, // 使用自定义拼接条件
} isMainValue: false, // 拼接条件必须要 false 同时不能与 isMainValue: true 同用
isFormModel:true, // filters中添加筛选的数据--取于formModel
required:false, // 前置添加必有,和isFormModel结合使用
},
], ],
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法 verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
isShowTableFormSearch: true, isShowTableFormSearch: true,
@ -159,10 +168,30 @@ export const ProductionreturnRequestDetail = useCrudSchemas(
] // 失去焦点校验参数 ] // 失去焦点校验参数
} }
}, },
{
label: '来源库位',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
isTableForm: true,
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '目标库位', label: '目标库位',
field: 'toLocationCode', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
table: {
width: 150
},
tableForm: { tableForm: {
multiple: true,//多选 multiple: true,//多选
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
@ -405,23 +434,6 @@ export const ProductionreturnRequestDetail = useCrudSchemas(
} }
} }
}, },
{
label: '来源库位',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '从货主', label: '从货主',
field: 'fromOwnerCode', field: 'fromOwnerCode',
@ -533,29 +545,30 @@ export const ProductionreturnRequestDetail = useCrudSchemas(
table: { table: {
width: 120 width: 120
}, },
isTable:false, isTable:true,
isTableForm:true, isTableForm:true,
tableForm: { tableForm: {
isInpuFocusShow: true, disabled: true
isSearchList: true, // 开启查询弹窗 // isInpuFocusShow: true,
searchListPlaceholder: '请选择包装规格', // 输入框占位文本 // isSearchList: true, // 开启查询弹窗
searchField: 'packUnit', // 查询弹窗赋值字段 // searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchTitle: '物料包装信息', // 查询弹窗标题 // searchField: 'packUnit', // 查询弹窗赋值字段
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类 // searchTitle: '物料包装信息', // 查询弹窗标题
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法 // searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchCondition: [ // searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
{ // searchCondition: [
key: 'available', // {
value: 'TRUE', // key: 'available',
isMainValue: false // value: 'TRUE',
}, // isMainValue: false
{ // },
key: 'itemCode', // {
value: 'itemCode', // key: 'itemCode',
message: '请先选择物料代码!', // value: 'itemCode',
isMainValue: true // message: '请先选择物料代码!',
} // isMainValue: true
] // }
// ]
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -589,7 +602,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(
table: { table: {
width: 120 width: 120
}, },
isTable: false, isTable: true,
isTableForm: true, isTableForm: true,
tableForm: { tableForm: {
disabled: true disabled: true

Loading…
Cancel
Save