Browse Source

制品返修修改

master
zhaoxuebing 11 months ago
parent
commit
fba327b6ca
  1. 3
      src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts
  2. 5
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  3. 22
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

3
src/views/wms/productionManage/productrepair/productrepairRecordMain/productrepairRecordMain.data.ts

@ -324,7 +324,8 @@ export const ProductrepairRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'fromOwnerCode', field: 'fromOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150,
show:false
}, },
}, },
{ {

5
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -211,10 +211,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['batch'] = val[0]['batch'] row['batch'] = val[0]['batch']
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
row['inventoryStatus'] = val[0]['inventoryStatus'] row['inventoryStatus'] = val[0]['inventoryStatus']
row['fromLocationCode'] = val[0]['locationCode']
} else if(formField == 'productionLineCode'){ } else if(formField == 'productionLineCode'){
row['productionLineCode'] = val[0]['code'] row['productionLineCode'] = val[0]['code']
} else if(formField == 'workStationCode'){ } else if(formField == 'workStationCode'){
row['fromLocationCode'] = val[0]['rawLocationCode']
row['workStationCode'] = val[0]['code'] row['workStationCode'] = val[0]['code']
} else if(formField == 'formField'){ } else if(formField == 'formField'){
row['workStationCode'] = val[0]['code'] row['workStationCode'] = val[0]['code']
@ -242,10 +242,11 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['batch'] = val[0]['batch'] setV['batch'] = val[0]['batch']
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
setV['inventoryStatus'] = val[0]['inventoryStatus'] setV['inventoryStatus'] = val[0]['inventoryStatus']
setV['fromLocationCode'] = val[0]['locationCode'] // setV['fromLocationCode'] = val[0]['locationCode']
} else if(formField == 'productionLineCode'){ } else if(formField == 'productionLineCode'){
setV['productionLineCode'] = val[0]['code'] setV['productionLineCode'] = val[0]['code']
} else if(formField == 'workStationCode'){ } else if(formField == 'workStationCode'){
setV['fromLocationCode'] = val[0]['rawLocationCode']
setV['workStationCode'] = val[0]['code'] setV['workStationCode'] = val[0]['code']
} else if(formField == 'formField'){ } else if(formField == 'formField'){
setV['workStationCode'] = val[0]['code'] setV['workStationCode'] = val[0]['code']

22
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -598,7 +598,16 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
searchField: 'packingNumber', searchField: 'packingNumber',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage searchPage: BalanceApi.getBalancePage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'locationCode',
value: 'fromLocationCode',
isMainValue: true
}]
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -608,7 +617,16 @@ export const ProductrepairRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>
searchField: 'packingNumber', searchField: 'packingNumber',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePage searchPage: BalanceApi.getBalancePage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'locationCode',
value: 'fromLocationCode',
isMainValue: true
}]
} }
} }
}, },

Loading…
Cancel
Save