|
|
@ -151,6 +151,9 @@ |
|
|
|
getCountByItemCode, |
|
|
|
getRecommendBalance |
|
|
|
} from '@/api/index.js'; |
|
|
|
import { |
|
|
|
calc |
|
|
|
} from '@/common/calc.js'; |
|
|
|
import { |
|
|
|
getJobStatuStyle, |
|
|
|
getJobStatuDesc, |
|
|
@ -451,7 +454,7 @@ |
|
|
|
mask: true |
|
|
|
}) |
|
|
|
|
|
|
|
getRecommendBalance(itemCode,productLine).then(res=>{ |
|
|
|
getRecommendBalance(itemCode,productLine,false).then(res=>{ |
|
|
|
uni.hideLoading() |
|
|
|
if (res.length > 0) { |
|
|
|
var list = []; |
|
|
@ -511,7 +514,17 @@ |
|
|
|
this.showMessage('发料数量必须大于0'); |
|
|
|
return; |
|
|
|
} |
|
|
|
that.finsh(); |
|
|
|
|
|
|
|
|
|
|
|
if(that.details[0].tempHandledToQty>calc.sub(this.allCount,this.scanCount)){ |
|
|
|
showConfirmMsg("发料数量大于未发数量,是否提交?",res=>{ |
|
|
|
if(res){ |
|
|
|
that.finsh(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}else { |
|
|
|
that.finsh(); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
@ -583,7 +596,6 @@ |
|
|
|
return; |
|
|
|
} |
|
|
|
item.tempHandledFromQty =value; |
|
|
|
console.log('item', item.tempHandledFromQty); |
|
|
|
this.$forceUpdate(); |
|
|
|
|
|
|
|
}, |
|
|
|