Browse Source

添加到货检验参数

wms3.0_pda
lijuncheng 12 months ago
parent
commit
47867c8eb8
  1. 21
      pages/inspect/job/inspectDetail.vue
  2. 8
      pages/inspect/job/inspectResult.vue
  3. 4
      pages/putaway/record/putawayRecord.vue

21
pages/inspect/job/inspectDetail.vue

@ -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)
}) })
}, },

8
pages/inspect/job/inspectResult.vue

@ -355,6 +355,8 @@
res.inspectResult ="" res.inspectResult =""
res.inspectUser =this.$store.state.user.id res.inspectUser =this.$store.state.user.id
}) })
this.jobContent.nextAction = this.nextAction;
this.submitJob(this.jobContent) this.submitJob(this.jobContent)
} else { } else {
@ -379,6 +381,7 @@
res.inspectResult ="" res.inspectResult =""
re.inspectUser =this.$store.state.user.id re.inspectUser =this.$store.state.user.id
}) })
this.jobContent.nextAction = this.nextAction;
this.submitJob(this.jobContent) this.submitJob(this.jobContent)
// //
} else if (this.nextAction == "PARTIAL_OK") { } else if (this.nextAction == "PARTIAL_OK") {
@ -401,6 +404,7 @@
res.inspectResult ="" res.inspectResult =""
res.inspectUser =this.$store.state.user.id res.inspectUser =this.$store.state.user.id
}) })
this.jobContent.nextAction = this.nextAction;
this.submitJob(this.jobContent) this.submitJob(this.jobContent)
} }
} }
@ -415,7 +419,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=>{
@ -425,11 +429,9 @@
}, },
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)
}) })
}, },

4
pages/putaway/record/putawayRecord.vue

@ -254,13 +254,12 @@
this.showMessage("请先选择目标库位") this.showMessage("请先选择目标库位")
return; return;
} }
//
uni.showLoading({ uni.showLoading({
title: "提交中....", title: "提交中....",
mask: true mask: true
}); });
if(this.fromType=="requestType"){ if(this.fromType=="requestType"){
var params = this.setParams(false) var params = this.setParams(false)
console.log("提交" + JSON.stringify(params)) console.log("提交" + JSON.stringify(params))
@ -276,6 +275,7 @@
// this.showErrorMessage(error) // this.showErrorMessage(error)
// }) // })
}else { }else {
//
var itemCodes = [] var itemCodes = []
this.detailSource.forEach(item => { this.detailSource.forEach(item => {
itemCodes.push(item.itemCode) itemCodes.push(item.itemCode)

Loading…
Cancel
Save