Browse Source

HL-6165应去掉物料类型不一致校验,现有校验 @王宇飞

hella_online_20241011
yufei_wang 2 months ago
parent
commit
798ff0eefc
  1. 20
      src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

20
src/views/wms/issueManage/productionscrap/productionscrapRequestMain/index.vue

@ -235,10 +235,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
return return
} }
const isType = await isItemType(val[0]['itemCode'], labelType.value) // const isType = await isItemType(val[0]['itemCode'], labelType.value)
if(!isType){ // if(!isType){
message.warning('当前物料可制造与其他数据不一致,请重新选择!') // message.warning('')
} else { // } else {
row['itemCode'] = val[0]['itemCode'] row['itemCode'] = val[0]['itemCode']
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
row['inventoryStatus'] = val[0]['inventoryStatus'] row['inventoryStatus'] = val[0]['inventoryStatus']
@ -263,7 +263,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['singlePrice'] = resyStdcost[0].price row['singlePrice'] = resyStdcost[0].price
row['amount'] = Number(Number(resyStdcost[0].price * row['qty']).toFixed(2)) row['amount'] = Number(Number(resyStdcost[0].price * row['qty']).toFixed(2))
} }
} // }
} else if(formField == 'workStationCode') { } else if(formField == 'workStationCode') {
// //
val.forEach(item=>{ val.forEach(item=>{
@ -302,10 +302,10 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(async () => { nextTick(async () => {
const setV = {} const setV = {}
if(formField == 'itemCode') { if(formField == 'itemCode') {
const isType = await isItemType(val[0]['itemCode'], labelType.value) // const isType = await isItemType(val[0]['itemCode'], labelType.value)
if(!isType){ // if(!isType){
message.warning('当前物料可制造与其他数据不一致,请重新选择!') // message.warning('')
} else { // } else {
setV['itemCode'] = val[0]['itemCode'] setV['itemCode'] = val[0]['itemCode']
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
setV['inventoryStatus'] = val[0]['inventoryStatus'] setV['inventoryStatus'] = val[0]['inventoryStatus']
@ -322,7 +322,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
item.tableForm.max = val[0]['qty'] item.tableForm.max = val[0]['qty']
} }
}) })
} // }
} else if(formField == 'workStationCode') { } else if(formField == 'workStationCode') {
setV['workStationCode'] = val[0]['code'] setV['workStationCode'] = val[0]['code']
setV['fromLocationCode'] = val[0]['rawLocationCode'] setV['fromLocationCode'] = val[0]['rawLocationCode']

Loading…
Cancel
Save