diff --git a/components/NumberInput.vue b/components/NumberInput.vue
index 5a3e3f5..8542bcf 100644
--- a/components/NumberInput.vue
+++ b/components/NumberInput.vue
@@ -1,34 +1,135 @@
+
+
diff --git a/pages/manage/wlzp.vue b/pages/manage/wlzp.vue
index b7bf406..844e9be 100644
--- a/pages/manage/wlzp.vue
+++ b/pages/manage/wlzp.vue
@@ -9,15 +9,15 @@
载具编码
-
+
- 物料信息
+ 物料编码
-
+
@@ -36,43 +36,24 @@
-
-
- 物料编码
-
-
-
-
-
物料数量
-
-
-
-
-
- 物料批次
-
-
-
-
-
-
-
- 源单编码
-
-
-
+
-
+
@@ -92,11 +73,8 @@
return {
title: '',
val1: '',
- val2: '',
- val3: '',
+ qty: null,
currentData: {},
- options: [],
- index: '',
disabled: false
};
},
@@ -106,6 +84,7 @@
onShow() {
if (this.$store.getters.publicObj !== '') {
this.currentData = this.$store.getters.publicObj
+ this.qty = this.currentData.qty
}
},
methods: {
@@ -116,19 +95,18 @@
},
toEmpty () {
this.currentData = {}
- this.index = ''
+ this.qty = null
this.disabled = false
this.$store.dispatch('setPublicObj', '')
},
async _groupPlate () {
this.disabled = true
- if (JSON.stringify(this.currentData) === '{}') {
+ if (JSON.stringify(this.currentData) === '{}' || !this.val1 || !this.qty) {
this.disabled = false
return
}
try {
- this.currentData.stor_code = this.index
- let res = await groupPlate(this.currentData.material_id, this.val3, this.currentData.qty, this.val2, this.val1)
+ let res = await groupPlate(this.currentData.material_id, this.qty, this.val1)
uni.showToast({
title: res.message,
icon: 'none'
diff --git a/pages/manage/zprk.vue b/pages/manage/zprk.vue
index dc66c18..db38d9d 100644
--- a/pages/manage/zprk.vue
+++ b/pages/manage/zprk.vue
@@ -8,13 +8,12 @@
站点信息
-
+
-
@@ -119,9 +118,6 @@
},
selectChange (e) {
this.index = e
- if (e) {
- this._getVehicleMaterial(e)
- }
},
handleChange (e) {
if (e) {
diff --git a/utils/getData.js b/utils/getData.js
index 29eeb3e..d8fda49 100644
--- a/utils/getData.js
+++ b/utils/getData.js
@@ -39,9 +39,9 @@ export const getMaterialList = (search, page, size) => request({
})
// 物料组盘确认
-export const groupPlate = (mid, pcsn, qty, vcode, ecode, siteCode) => request({
+export const groupPlate = (mid, qty, vcode) => request({
url:'api/pda/iosIn/groupPlate',
- data: {material_id: mid, pcsn: pcsn, qty: qty, vehicle_code: vcode, ext_code: ecode, siteCode}
+ data: {material_id: mid, qty: qty, vehicle_code: vcode}
})
// 定点确认