From 22bf55bffb3c85851a8be21c36c52be88693be79 Mon Sep 17 00:00:00 2001
From: caill <815519168@qq.com>
Date: Sat, 16 Sep 2023 21:14:24 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=81=E6=96=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/config/getData2.js | 5 ++--
src/pages/proj/SendMater.vue | 54 +++++++++++++++++++++---------------
2 files changed, 33 insertions(+), 26 deletions(-)
diff --git a/src/config/getData2.js b/src/config/getData2.js
index ecd9ca8..0e683f9 100644
--- a/src/config/getData2.js
+++ b/src/config/getData2.js
@@ -102,12 +102,11 @@ export const pdaReport = (code, qty) => post('api/pda/report', {
})
// 送料
-export const sendMaterial = (code, vcode, qty, weight, is) => post('api/pda/sendMaterial', {
+export const sendMaterial = (code, vcode, qty, weight) => post('api/pda/sendMaterial', {
point_code: code,
vehicle_code: vcode,
qty: qty,
- weight: weight,
- is_full: is
+ weight: weight
})
// 叫料
diff --git a/src/pages/proj/SendMater.vue b/src/pages/proj/SendMater.vue
index 8d9863e..c96fbac 100644
--- a/src/pages/proj/SendMater.vue
+++ b/src/pages/proj/SendMater.vue
@@ -43,18 +43,18 @@
-
+
@@ -99,9 +99,9 @@ export default {
active2: '',
open2: false,
val2: '',
- option3: [{value: '0', label: '否'}, {value: '1', label: '是'}],
- active3: '1',
- open3: false,
+ // option3: [{value: '0', label: '否'}, {value: '1', label: '是'}],
+ // active3: '1',
+ // open3: false,
val3: '',
val4: '',
val5: '',
@@ -112,6 +112,9 @@ export default {
this._pdaRegion()
},
methods: {
+ inputLimit () {
+ this.val5 = this.val5.indexOf('.') > -1 ? this.val5.slice(0, this.val5.indexOf('.') + 4) : this.val5
+ },
/** 查询区域 */
async _pdaRegion () {
let res = await pdaRegion('send_material')
@@ -223,7 +226,7 @@ export default {
/** 确认 */
async _sendMaterial () {
this.disabled1 = true
- if (this.val2 === '' || this.val3 === '' || this.val4 === '' || this.val5 === '' || this.active3 === '') {
+ if (this.val2 === '' || this.val3 === '' || this.val4 === '' || this.val5 === '') {
this.disabled1 = false
return
}
@@ -234,7 +237,7 @@ export default {
code = el.point_code
}
})
- let res = await sendMaterial(code, this.val3, this.val4, this.val5, this.option3[this.active3].value)
+ let res = await sendMaterial(code, this.val3, this.val4, this.val5)
if (res.code === '1') {
this.toast(res.desc)
this.toCancle()
@@ -252,23 +255,28 @@ export default {
this.val2 = ''
this.active1 = ''
this.active2 = ''
- this.active3 = ''
this.val3 = ''
this.val4 = ''
this.val5 = ''
this.disabled1 = false
- },
- toggleItem3 () {
- if (!this.open3) {
- this.open3 = true
- } else {
- this.open3 = false
- }
- },
- dropdownMenu3 (i) {
- this.active3 = i + ''
- this.open3 = false
}
+ // toggleItem3 () {
+ // if (!this.open3) {
+ // this.open3 = true
+ // } else {
+ // this.open3 = false
+ // }
+ // },
+ // dropdownMenu3 (i) {
+ // this.active3 = i + ''
+ // this.open3 = false
+ // }
}
}
+
+