diff --git a/src/common/detail.js b/src/common/detail.js
index 4fd36866..9cfb545f 100644
--- a/src/common/detail.js
+++ b/src/common/detail.js
@@ -118,10 +118,12 @@ export function calcTreeHandleQty(detailSource) {
for (let detail of item.subList) {
if (detail != undefined && detail.scaned) {
- detail.handleQty = new Decimal(0).toNumber();
- for (let pack of detail.packList){
- if(pack!=undefined&&pack.scaned){
- detail.handleQty = calc.add(detail.handleQty, pack.handleQty);
+ if(detail.packList.length>0){
+ detail.handleQty = new Decimal(0).toNumber();
+ for (let pack of detail.packList){
+ if(pack!=undefined&&pack.scaned){
+ detail.handleQty = calc.add(detail.handleQty, pack.handleQty);
+ }
}
}
item.handleQty = calc.add(item.handleQty, detail.handleQty);
diff --git a/src/mycomponents/package/packageList.vue b/src/mycomponents/package/packageList.vue
index 10f12497..1f7d0408 100644
--- a/src/mycomponents/package/packageList.vue
+++ b/src/mycomponents/package/packageList.vue
@@ -117,7 +117,7 @@
res => {
if (res) {
item.scaned = false
- item.handleQty = 0
+ item.handleQty = null;
this.$emit('updateData')
this.$forceUpdate()
}
diff --git a/src/pages.json b/src/pages.json
index 5f149645..ae981a2f 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -472,6 +472,13 @@
"enablePullDownRefresh": false
}
},
+ {
+ "path": "pages/issue/request/issueScanRequest",
+ "style": {
+ "navigationBarTitleText": "扫描叫料申请",
+ "enablePullDownRefresh": false
+ }
+ },
{
"path": "pages/issue/job/issueJob",
diff --git a/src/pages/issue/request/issueScanRequest.vue b/src/pages/issue/request/issueScanRequest.vue
new file mode 100644
index 00000000..03247804
--- /dev/null
+++ b/src/pages/issue/request/issueScanRequest.vue
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue
index 71aa0e8f..a711a661 100644
--- a/src/pages/purchaseReceipt/job/receiptDetail.vue
+++ b/src/pages/purchaseReceipt/job/receiptDetail.vue
@@ -311,6 +311,7 @@
})
calcTreeHandleQty(this.detailSource);
+ var test =this.detailSource
this.continueScan()
this.$forceUpdate()
}
@@ -409,17 +410,17 @@
var params = this.setParams()
console.log("提交参数", JSON.stringify(params));
- purchaseReceiptJobSubmit(params).then(res => {
- uni.hideLoading()
- if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成采购收货记录
" + res.data)
- } else {
- this.showErrorMessage("提交失败[" + res.msg + "]")
- }
- }).catch(error => {
- uni.hideLoading()
- this.showErrorMessage(error)
- })
+ // purchaseReceiptJobSubmit(params).then(res => {
+ // uni.hideLoading()
+ // if (res.data) {
+ // this.showCommitSuccessMessage("提交成功
生成采购收货记录
" + res.data)
+ // } else {
+ // this.showErrorMessage("提交失败[" + res.msg + "]")
+ // }
+ // }).catch(error => {
+ // uni.hideLoading()
+ // this.showErrorMessage(error)
+ // })
} else {
uni.hideLoading();
this.showErrorMessage(res.message);