|
@ -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'] |
|
|