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