From 603670bfbc029fd081fb1c88d00a18f78ec7d349 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期三, 02 四月 2025 14:26:57 +0800
Subject: [PATCH] 1.采购入库界面优化
---
H5/Js/Qtrk.js | 36 +++++++++++++++++++++++++++---------
1 files changed, 27 insertions(+), 9 deletions(-)
diff --git a/H5/Js/Qtrk.js b/H5/Js/Qtrk.js
index 6b5f934..3728adc 100644
--- a/H5/Js/Qtrk.js
+++ b/H5/Js/Qtrk.js
@@ -83,6 +83,8 @@
var json = res;
if (json.status == 0) {
that.ItemBlDetail = json.data.tbBillList;
+ that.$refs.sectionCode.focus();
+ that.sectionCode = null;
}
else {
that.$toast.fail(json.message);
@@ -95,12 +97,20 @@
console.log(error);
});
},
- getSectionCode(value) {
+ getSectionCode() {
var that = this;
- that.sectionCode = value;
+ //that.sectionCode = value;
- if (!that.barcode) {
- this.$toast.fail("鏉$爜涓嶈兘涓虹┖");
+ //if (!that.barcode) {
+ // this.$toast.fail("鏉$爜涓嶈兘涓虹┖");
+ // that.isLoading = false;
+ // return;
+ //}
+
+ if (!that.billNo) {
+ this.$toast.fail("鐢宠鍗曞彿涓嶈兘涓虹┖");
+ that.$refs.sectionCode.focus();
+ that.sectionCode = null;
that.isLoading = false;
return;
}
@@ -110,6 +120,7 @@
that.isLoading = false;
return;
}
+
that.AxiosHttp("post", 'MesItemQtrk/ScanInDepotsQT', {
billNo: that.billNo,
sectionCode: that.sectionCode
@@ -118,9 +129,12 @@
var json = res;
if (json.status == 0) {
that.$notify({ type: 'success', message: json.data.tbBillList });
+ that.$refs.barcode.focus();
}
else {
that.$toast.fail(json.message);
+ that.$refs.sectionCode.focus();
+ that.sectionCode = null;
}
that.isLoading = false;
})
@@ -130,9 +144,9 @@
console.log(error);
});
},
- getBarcode(value) {
+ getBarcode() {
- this.barcode = value;
+ //this.barcode = value;
var that = this;
that.isLoading = true;
@@ -172,14 +186,18 @@
var json = res;
if (json.status == 0) {
- that.itemNo = json.data.tbBillList.form.itemNo;
- that.num = json.data.tbBillList.form.num;
+ that.itemNo = json.data.form.itemNo;
+ that.num = json.data.form.num;
that.barcode = null;
- that.ItemBlDetail = json.data.tbBillList.item
+ that.ItemBlDetail = json.data.items;
that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
+ that.$refs.barcode.focus();
+ //that.GetMesItemBlDetailByBillNo()
}
else {
that.$toast.fail(json.message);
+ that.$refs.barcode.focus();
+ that.barcode = null;
}
that.isLoading = false;
})
--
Gitblit v1.9.3