|
@ -31,7 +31,6 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
takeInspectJob, |
|
|
takeInspectJob, |
|
|
cancleTakeInspectJob, |
|
|
cancleTakeInspectJob, |
|
@ -181,9 +180,9 @@ |
|
|
res.crackQty = 0; |
|
|
res.crackQty = 0; |
|
|
res.sampleQty = 0; |
|
|
res.sampleQty = 0; |
|
|
res.notPassedQty = 0; |
|
|
res.notPassedQty = 0; |
|
|
res.failedReason =""; |
|
|
res.failedReason = ""; |
|
|
res.photos = "" |
|
|
res.photos = "" |
|
|
res.inspectResult ="" |
|
|
res.inspectResult = "" |
|
|
}) |
|
|
}) |
|
|
that.detailSource = getDataSource(that.subList); |
|
|
that.detailSource = getDataSource(that.subList); |
|
|
} else { |
|
|
} else { |
|
@ -265,8 +264,7 @@ |
|
|
this.showMessage("物料号【" + itemCode + "】不在列表中") |
|
|
this.showMessage("物料号【" + itemCode + "】不在列表中") |
|
|
} else { |
|
|
} else { |
|
|
var itemDetail = detail.subList.find(r => { |
|
|
var itemDetail = detail.subList.find(r => { |
|
|
return r.packingNumber == packingNumber |
|
|
return r.packingNumber == packingNumber && |
|
|
&& |
|
|
|
|
|
r.batch == batch |
|
|
r.batch == batch |
|
|
}) |
|
|
}) |
|
|
if (itemDetail == undefined) { |
|
|
if (itemDetail == undefined) { |
|
@ -282,7 +280,8 @@ |
|
|
']不一致,是否继续上架?', res => { |
|
|
']不一致,是否继续上架?', res => { |
|
|
if (res) { |
|
|
if (res) { |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.handleQty = Number(result.label.qty)>Number(result.balance.qty)?Number(result.balance.qty):Number(result.label.qty); |
|
|
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance |
|
|
|
|
|
.qty) ? Number(result.balance.qty) : Number(result.label.qty); |
|
|
this.calcHandleQty(); |
|
|
this.calcHandleQty(); |
|
|
} else { |
|
|
} else { |
|
|
this.scanPopupGetFocus(); |
|
|
this.scanPopupGetFocus(); |
|
@ -290,7 +289,8 @@ |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.scaned = true; |
|
|
itemDetail.handleQty = Number(result.label.qty)>Number(result.balance.qty)?Number(result.balance.qty):Number(result.label.qty); |
|
|
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance.qty) ? Number( |
|
|
|
|
|
result.balance.qty) : Number(result.label.qty); |
|
|
this.calcHandleQty(); |
|
|
this.calcHandleQty(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -304,7 +304,7 @@ |
|
|
|
|
|
|
|
|
commit() { |
|
|
commit() { |
|
|
this.scanCount = getScanCount(this.subList); |
|
|
this.scanCount = getScanCount(this.subList); |
|
|
if( this.scanCount==0){ |
|
|
if (this.scanCount == 0) { |
|
|
this.showErrorMessage("扫描数为0,请先扫描") |
|
|
this.showErrorMessage("扫描数为0,请先扫描") |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -342,7 +342,7 @@ |
|
|
if (res.data) { |
|
|
if (res.data) { |
|
|
this.showCommitSuccessMessage("提交成功<br>生成到货检验记录" + res.data, ) |
|
|
this.showCommitSuccessMessage("提交成功<br>生成到货检验记录" + res.data, ) |
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("提交失败"+res.msg) |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
} |
|
|
} |
|
|
}).catch(error => { |
|
|
}).catch(error => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
@ -435,16 +435,15 @@ |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
this.jobContent.subList = list |
|
|
this.jobContent.subList = list |
|
|
|
|
|
this.jobContent.nextAction = "PARTIAL_OK"; |
|
|
return this.jobContent; |
|
|
return this.jobContent; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
showCommitSuccessMessage(hint) { |
|
|
showCommitSuccessMessage(hint) { |
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
setTimeout(() => { |
|
|
|
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: './inspectJob' |
|
|
url: './inspectJob' |
|
|
}) |
|
|
}) |
|
|
}, 3000) |
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|