diff --git a/mycomponents/job/jobDetailPopup.vue b/mycomponents/job/jobDetailPopup.vue
index 611bdd03..07cd68ea 100644
--- a/mycomponents/job/jobDetailPopup.vue
+++ b/mycomponents/job/jobDetailPopup.vue
@@ -1,7 +1,7 @@
-
+
diff --git a/mycomponents/recommend/recommend.vue b/mycomponents/recommend/recommend.vue
index 44fb58d0..ffbbedd7 100644
--- a/mycomponents/recommend/recommend.vue
+++ b/mycomponents/recommend/recommend.vue
@@ -11,7 +11,7 @@
-
diff --git a/pages/inspect/coms/inspectComDetailCard.vue b/pages/inspect/coms/inspectComDetailCard.vue
index cae19e61..e788e4ff 100644
--- a/pages/inspect/coms/inspectComDetailCard.vue
+++ b/pages/inspect/coms/inspectComDetailCard.vue
@@ -1,23 +1,33 @@
-
-
- 检验类型 : {{getInspectType(jobContent.inspectType)}}
-
-
- 收货数量 : {{jobContent.receiveQty}}{{getUnitInfo(jobContent.uom)}}
-
-
- 检验数量 : {{jobContent.sampleQty}}{{getUnitInfo(jobContent.uom)}}
-
-
- 不合格数量 : {{jobContent.failedQty}}{{getUnitInfo(jobContent.uom)}}
-
-
- 报废数量 : {{jobContent.crackQty}}{{getUnitInfo(jobContent.uom)}}
+
+
+
+
+ 类型
+ {{getInspectType(jobContent.inspectType)}}
+
+
+ 收货数
+ {{jobContent.receiveQty}}{{getUnitInfo(jobContent.uom)}}
+
+
+ 检验数
+ {{jobContent.sampleQty}}{{getUnitInfo(jobContent.uom)}}
+
+
+ 不合格数
+ {{jobContent.failedQty}}{{getUnitInfo(jobContent.uom)}}
+
+
+ 报废数
+ {{jobContent.crackQty}}{{getUnitInfo(jobContent.uom)}}
+
+
+
@@ -168,7 +178,7 @@
detail(item) {
this.showItem = item;
- this.$refs.receiptHint.openScanPopup()
+ this.$refs.receiptHint.openScanPopup(item)
},
remove(item) {
this.$refs.message.showQuestionMessage("确定移除扫描信息?",
@@ -181,6 +191,7 @@
item.notPassedQty = 0;
item.inspectResult =""
item.failedReason =""
+ item.handleQty =0;
item.photos =""
this.$forceUpdate()
this.$emit('remove', item)
diff --git a/pages/inspect/coms/inspectEdit.vue b/pages/inspect/coms/inspectEdit.vue
index 27157e93..9857f87b 100644
--- a/pages/inspect/coms/inspectEdit.vue
+++ b/pages/inspect/coms/inspectEdit.vue
@@ -100,7 +100,7 @@
openEditPopup(item) {
this.failedReasonArray = getInspectFailedReasonList();
//拷贝数据到页面显示,防止修改数据原数据修改
- Object.assign(this.dataContent, item)
+ this.dataContent = Object.assign({}, item)
this.$refs['editPopup'].open("bottom");
},
@@ -138,6 +138,7 @@
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 f1800641..e32a286a 100644
--- a/pages/inspect/job/inspectDetail.vue
+++ b/pages/inspect/job/inspectDetail.vue
@@ -291,8 +291,7 @@
']不一致,是否继续上架?', res => {
if (res) {
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.balance.qty)
itemDetail.balance = result.balance;
this.calcHandleQty();
} else {
@@ -302,8 +301,7 @@
} else {
itemDetail.scaned = true;
itemDetail.balance = result.balance;
- itemDetail.handleQty = Number(result.label.qty) > Number(result.balance.qty) ? Number(
- result.balance.qty) : Number(result.label.qty);
+ itemDetail.handleQty = Number(result.balance.qty)
this.calcHandleQty();
}
}
@@ -370,7 +368,7 @@
inspectJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成到货检验记录" + res.data, )
+ this.showCommitSuccessMessage("提交成功
生成到货检验记录" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
diff --git a/pages/inspect/job/inspectResult.vue b/pages/inspect/job/inspectResult.vue
index 000d765a..e24ad139 100644
--- a/pages/inspect/job/inspectResult.vue
+++ b/pages/inspect/job/inspectResult.vue
@@ -51,7 +51,7 @@
不合格数量
-
@@ -63,7 +63,7 @@
报废数量
-
@@ -155,6 +155,10 @@
getInspectType,
getUnitInfo
} from '@/common/directory.js';
+
+ import {
+ goHome
+ } from '@/common/basic.js';
export default {
components: {
@@ -181,6 +185,12 @@
}
},
+ //返回首页
+ onNavigationBarButtonTap(e) {
+ if (e.index === 0) {
+ goHome();
+ }
+ },
onLoad(option) {
this.id = option.id;
this.status = option.status;
@@ -317,7 +327,14 @@
}
}
},
-
+
+ clearFailedQty(){
+ this.jobContent.failedQty = null;
+ },
+
+ clearCrackQty(){
+ this.jobContent.crackQty = null
+ },
commit() {
diff --git a/pages/inspect/request/inspectRequestDetail.vue b/pages/inspect/request/inspectRequestDetail.vue
index a74b28ba..26e6c558 100644
--- a/pages/inspect/request/inspectRequestDetail.vue
+++ b/pages/inspect/request/inspectRequestDetail.vue
@@ -5,10 +5,10 @@
- 发货单号 :
+ 单据号 : {{jobContent.number}}
- 供应商 :
+ 供应商代码 : {{jobContent.supplierCode}}