|
|
@ -42,7 +42,8 @@ |
|
|
|
inspectJobSubmit, |
|
|
|
deleteFileById, |
|
|
|
getFileList, |
|
|
|
deleteFileByTable |
|
|
|
deleteFileByTable, |
|
|
|
createPutAwayRequest |
|
|
|
} from '@/api/request2.js'; |
|
|
|
import { |
|
|
|
goHome, |
|
|
@ -151,8 +152,7 @@ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
deleteFileByTable(id) { |
|
|
|
deleteFileByTable("jobInspectDetail", id).then(res=>{ |
|
|
|
}) |
|
|
|
deleteFileByTable("jobInspectDetail", id).then(res => {}) |
|
|
|
}, |
|
|
|
|
|
|
|
clearPicList(subList) { |
|
|
@ -379,10 +379,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
submitJob() { |
|
|
@ -397,6 +393,13 @@ |
|
|
|
uni.hideLoading() |
|
|
|
if (res.data) { |
|
|
|
this.showCommitSuccessMessage("提交成功<br>生成到货检验记录" + res.data) |
|
|
|
//创建完检验记录后创建上架申请 |
|
|
|
createPutAwayRequest(res.data).then(putawayres => { |
|
|
|
this.showCommitSuccessMessage("生成上架申请单号<br>" + putawayres.data) |
|
|
|
}).catch(error => { |
|
|
|
uni.hideLoading(); |
|
|
|
this.showErrorMessage(error); |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
|
} |
|
|
@ -462,7 +465,7 @@ |
|
|
|
detail.failedQty = detail.failedQty; |
|
|
|
detail.crackQty = detail.crackQty; |
|
|
|
detail.notPassedQty = detail.failedQty; |
|
|
|
var tempQty = calc.sub(detail.handleQt,detail.failedQty) |
|
|
|
var tempQty = calc.sub(detail.handleQty, detail.failedQty) |
|
|
|
detail.goodQty = calc.sub(tempQty, detail.crackQty); |
|
|
|
detail.inspectUser = this.$store.state.user.id |
|
|
|
|
|
|
@ -518,6 +521,7 @@ |
|
|
|
height: 100%; |
|
|
|
background-color: #fff; |
|
|
|
} |
|
|
|
|
|
|
|
.page-wraper { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|