diff --git a/pages/hdyy/zpgl/mater-zudai.vue b/pages/hdyy/zpgl/mater-zudai.vue
index 4c4c926..fe13b67 100644
--- a/pages/hdyy/zpgl/mater-zudai.vue
+++ b/pages/hdyy/zpgl/mater-zudai.vue
@@ -73,12 +73,20 @@
- 数量
+ 净重
+
+
+ 总重
+
+
+
+
+
有效期至
@@ -102,9 +110,9 @@
-
-
-
+
+
+
@@ -176,6 +184,7 @@
recordNo: '',
materialData: {},
num: '',
+ totalQty: '',
unit: 'KG',
disabled: false,
disabled1: false,
@@ -192,8 +201,8 @@
},
computed: {
startDate() {
- return this.nowDate
- // return getDate('start');
+ // return this.nowDate
+ return getDate('start');
},
endDate() {
return getDate('end');
@@ -282,6 +291,7 @@
this.materialData = res.data
this.pcsn = this.materialData.pcsn
this.num = this.materialData.qty
+ this.totalQty = this.materialData.total_qty
this.date = this.materialData.validity_period
// 调用此接口后并成功返回结构后,页面所有操作禁用,【标签打印】按钮可以正常使用。
this.flag = true
@@ -322,6 +332,7 @@
this.recordNo = ''
this.materialData = {}
this.num = ''
+ this.totalQty = ''
this.unit = 'KG'
this.pcsn = ''
this.flag = false
@@ -345,14 +356,14 @@
async _confirmBagAssembly (username, password) {
this.disabled = true
try {
- let res = await confirmBagAssembly(username, password, this.val1, this.materialData.material_id, this.materialData.supp_code, this.num, this.pcsn, this.date)
+ let res = await confirmBagAssembly(username, password, this.totalQty, this.val1, this.materialData.material_id, this.materialData.supp_code, this.num, this.pcsn, this.date)
if (res) {
uni.showToast({
title: res.message,
icon: 'none'
})
}
- this.toEmpty()
+ this.val1 = ''
this.disabled = false
} catch (e) {
this.disabled = false
@@ -491,7 +502,6 @@
title: '操作成功',
icon: 'none'
})
- this.toEmpty()
this.disabled1 = false
},
printTwo (row) {
@@ -574,7 +584,6 @@
title: '操作成功',
icon: 'none'
})
- this.toEmpty()
this.disabled1 = false
}
}
diff --git a/pages/hdyy/zpgl/mater-zutong.vue b/pages/hdyy/zpgl/mater-zutong.vue
index 96650a8..8cfd217 100644
--- a/pages/hdyy/zpgl/mater-zutong.vue
+++ b/pages/hdyy/zpgl/mater-zutong.vue
@@ -56,7 +56,7 @@
- 数量
+ 净重
diff --git a/utils/getData3.js b/utils/getData3.js
index 740eced..f08be17 100644
--- a/utils/getData3.js
+++ b/utils/getData3.js
@@ -150,9 +150,9 @@ export const byBagCodeInfo = (mid) => request({
data: {material_id: mid}
})
// 物料组袋
-export const confirmBagAssembly = (username, password, bagNo, mid, suppCode, qty, pcsn, vperiod) => request({
+export const confirmBagAssembly = (username, password, tqty, bagNo, mid, suppCode, qty, pcsn, vperiod) => request({
url:'api/pdaCommon/confirmBagAssembly',
- data: {username: username, password: RSAencrypt(password), bagNo: bagNo, materialId: mid, suppCode: suppCode, qty: qty, pcsn: pcsn, validity_period: vperiod}
+ data: {username: username, password: RSAencrypt(password), total_qty: tqty, bagNo: bagNo, materialId: mid, suppCode: suppCode, qty: qty, pcsn: pcsn, validity_period: vperiod}
})
// 物料组袋-打印
export const printBag = (row, printId) => request({