diff --git a/pages.json b/pages.json
index 4494521a..2b344fee 100644
--- a/pages.json
+++ b/pages.json
@@ -218,6 +218,14 @@
"enablePullDownRefresh": true
}
},
+ {
+ "path": "pages/inspect/job/inspectFullDetail",
+ "style": {
+ "navigationBarTitleText": "到货检验(全检)详情",
+ "enablePullDownRefresh": true
+ }
+ },
+
{
"path": "pages/putaway/job/putawayJob",
diff --git a/pages/inspect/coms/inspectComDetailCard.vue b/pages/inspect/coms/inspectComDetailCard.vue
index d8ccfa50..2b3b7db8 100644
--- a/pages/inspect/coms/inspectComDetailCard.vue
+++ b/pages/inspect/coms/inspectComDetailCard.vue
@@ -17,11 +17,12 @@
不合格数
- {{jobContent.failedQty}}{{getUnitInfo(jobContent.uom)}}
+ {{jobContent.failedQty}}{{getUnitInfo(jobContent.uom)}}
+
报废数
- {{jobContent.crackQty}}{{getUnitInfo(jobContent.uom)}}
+ {{jobContent.crackQty}}{{getUnitInfo(jobContent.uom)}}
diff --git a/pages/inspect/coms/inspectEdit.vue b/pages/inspect/coms/inspectEdit.vue
index 9857f87b..53a4a918 100644
--- a/pages/inspect/coms/inspectEdit.vue
+++ b/pages/inspect/coms/inspectEdit.vue
@@ -138,7 +138,6 @@
this.dataContent.failedQty = failedQty;
this.dataContent.crackQty = crackQty
this.dataContent.goodQty = this.dataContent.handleQty -failedQty-crackQty
- debugger
this.afterSave()
diff --git a/pages/inspect/job/inspectDetail.vue b/pages/inspect/job/inspectDetail.vue
index 3f4bae60..89df9ba5 100644
--- a/pages/inspect/job/inspectDetail.vue
+++ b/pages/inspect/job/inspectDetail.vue
@@ -97,26 +97,15 @@
selectedItem: {},
failedQty: 0,
crackQty: 0,
- inspectType: "",
};
},
onLoad(option) {
this.id = option.id;
this.failedQty = option.failedQty;
this.crackQty = option.crackQty;
- this.inspectType = option.inspectType;
- if (this.id != undefined && this.inspectType == "FULL") {
+ if (this.id != undefined ) {
// //新建的任务自动接收
- if (option.status == "1") {
- this.receive((callback => {
- this.received = true;
- this.getDetail();
- }));
- } else {
- this.getDetail();
- }
- } else {
this.getDetail();
}
@@ -295,7 +284,7 @@
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
if (itemDetail.inventoryStatus != result.balance.inventoryStatus) {
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
- ']不一致,是否继续上架?', res => {
+ ']不一致,是否继续检验?', res => {
if (res) {
itemDetail.scaned = true;
itemDetail.handleQty = Number(result.balance.qty)
@@ -326,9 +315,13 @@
this.showErrorMessage("扫描数为0,请先扫描")
return;
}
- //如果是全检,必须全部扫描
- if (this.inspectType == "FULL") {
- if (this.scanCount == this.subList.length) {
+ //扫描数量和任务数量相等,直接提交
+ if (this.scanCount == this.subList.length) {
+ this.submitJob();
+ } else if (this.scanCount < this.subList.length) {
+ //扫描数量小于任务数量,判断是否允许部分提交
+ if (this.jobContent.allowPartialComplete == "TRUE") {
+ //提交
this.submitJob();
} else {
//不允许部分提交,提示
@@ -340,28 +333,9 @@
}
});
}
- } else {
- //扫描数量和任务数量相等,直接提交
- if (this.scanCount == this.subList.length) {
- this.submitJob();
- } else if (this.scanCount < this.subList.length) {
- //扫描数量小于任务数量,判断是否允许部分提交
- if (this.jobContent.allowPartialComplete == "TRUE") {
- //提交
- this.submitJob();
- } else {
- //不允许部分提交,提示
- this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交
' + "已经扫描[" + this.scanCount +
- "]箱总共[" + this
- .subList.length + "]箱", res => {
- if (res) {
- this.openScanPopup();
- }
- });
- }
- }
}
+
},
submitJob() {
@@ -440,7 +414,7 @@
detail.sampleQty = detail.qty;
detail.failedQty = detail.failedQty;
detail.crackQty = detail.crackQty;
- detail.notPassedQty = Number(detail.receiveQty)-Number(detail.crackQty);
+ detail.notPassedQty = detail.failedQty;
// detail.goodQty = detail.handleQty - detail.failedQty - detail.crackQty;
detail.inspectUser = this.$store.state.user.id
@@ -461,7 +435,7 @@
detail.sampleQty = detail.qty;
detail.failedQty = 0;
detail.crackQty = 0;
- detail.notPassedQty = Number(detail.receiveQty)-Number(detail.crackQty);;
+ detail.notPassedQty = 0;
detail.goodQty = detail.qty;
detail.inspectUser = this.$store.state.user.id
detail.toInventoryStatus = "OK"
@@ -480,7 +454,7 @@
navigateBack(2);
})
},
- getInspectType(value){
+ getInspectType(value) {
return getInspectType(value)
}
diff --git a/pages/inspect/job/inspectFullDetail.vue b/pages/inspect/job/inspectFullDetail.vue
new file mode 100644
index 00000000..2d3cb0b0
--- /dev/null
+++ b/pages/inspect/job/inspectFullDetail.vue
@@ -0,0 +1,517 @@
+
+
+
+
+
+ 检验类型 : {{getInspectType(jobContent.inspectType)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/inspect/job/inspectJob.vue b/pages/inspect/job/inspectJob.vue
index 908d65a2..97a4f727 100644
--- a/pages/inspect/job/inspectJob.vue
+++ b/pages/inspect/job/inspectJob.vue
@@ -180,7 +180,7 @@
if(item.inspectType=="FULL"){
uni.navigateTo({
- url: './inspectDetail?id=' + item.id + '&status=' + item.status+'&inspectType=' + item.inspectType
+ url: './inspectFullDetail?id=' + item.id + '&status=' + item.status
});
}else {
uni.navigateTo({
diff --git a/pages/issue/job/issueDetail.vue b/pages/issue/job/issueDetail.vue
index 2a28c1de..963a3af5 100644
--- a/pages/issue/job/issueDetail.vue
+++ b/pages/issue/job/issueDetail.vue
@@ -1,16 +1,15 @@
-
-