Browse Source

HL-6339WMS 制品子件报废申请新增时,主数据不选择生产线,直接添加明细,此时会带出产线代码,后面选择来源库位的时候,展示的不是前面产线代码对应的数据。

hella_online_20241030
yufei_wang 4 weeks ago
parent
commit
e22250deed
  1. 2
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  2. 29
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

2
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -476,7 +476,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['childList'] = [] newRow['childList'] = []
newRow['singlePrice'] = item['singlePrice'] newRow['singlePrice'] = item['singlePrice']
newRow['amount'] = newRow['qty']*item['singlePrice'] newRow['amount'] = newRow['qty']*item['singlePrice']
newRow['productionLineCode'] = item['productionLineCode']
if(item['bomList'].length>0){ if(item['bomList'].length>0){
newRow['bomVersionInitOptions'] = item['bomList'].map(item1=>({ newRow['bomVersionInitOptions'] = item['bomList'].map(item1=>({
label:item1, label:item1,

29
src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

@ -981,8 +981,9 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
key:'productionLineCode', key:'productionLineCode',
value:'productionLineCode', value:'productionLineCode',
message: '请填写生产线代码!', message: '请填写生产线代码!',
isMainValue: true, isMainValue: false,
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 // isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
isTableRowValue: true, //查询当前searchTable表中行数据的值
}, },
// { // {
// key: 'itemCode', // key: 'itemCode',
@ -1025,8 +1026,9 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
key:'productionLineCode', key:'productionLineCode',
value:'productionLineCode', value:'productionLineCode',
message: '请填写生产线代码!', message: '请填写生产线代码!',
isMainValue: true, isMainValue: false,
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断 // isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
isTableRowValue: true, //查询当前searchTable表中行数据的值
}, },
// { // {
// key: 'itemCode', // key: 'itemCode',
@ -1103,6 +1105,13 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
value: 'workshopCode', value: 'workshopCode',
message: '请填写车间代码!', message: '请填写车间代码!',
isMainValue: true isMainValue: true
},{
key:'productionLineCode',
value:'productionLineCode',
message: '请填写生产线代码!',
isMainValue: false,
// isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
isTableRowValue: true, //查询当前searchTable表中行数据的值
}], }],
verificationParams: [{ verificationParams: [{
key: 'code', key: 'code',
@ -1127,6 +1136,18 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}, {
key: 'workshopCode',
value: 'workshopCode',
message: '请填写车间代码!',
isMainValue: true
},{
key:'productionLineCode',
value:'productionLineCode',
message: '请填写生产线代码!',
isMainValue: false,
// isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
isTableRowValue: true, //查询当前searchTable表中行数据的值
}], }],
verificationParams: [{ verificationParams: [{
key: 'code', key: 'code',

Loading…
Cancel
Save