From 52dbfd767f2485a1d615c5d9db50d648a1d8214a Mon Sep 17 00:00:00 2001
From: wbc <2597324127@qq.com>
Date: 星期二, 23 十二月 2025 23:56:58 +0800
Subject: [PATCH] 生产报工模糊查询
---
H5/Js/Dbrk.js | 27 ++++++---------------------
1 files changed, 6 insertions(+), 21 deletions(-)
diff --git a/H5/Js/Dbrk.js b/H5/Js/Dbrk.js
index 2047c93..cc68df3 100644
--- a/H5/Js/Dbrk.js
+++ b/H5/Js/Dbrk.js
@@ -11,8 +11,8 @@
num: "",
billNo: "",
barcode: "",
- sectionCode:"",
- ItemBlDetail:[],
+ sectionCode: "",
+ ItemBlDetail: [],
modeInfo: [],
active: 0,
show: false,
@@ -50,14 +50,12 @@
}
else {
that.$toast.fail(json.message);
- that.$playSound('error');
}
that.isLoading = false;
})
.catch(function (error) {
that.isLoading = false;
that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
- that.$playSound('error');
console.log(error);
});
},
@@ -87,13 +85,11 @@
if (json.status == 0) {
//that.ItemBlDetail = json.data.tbBillList;
that.ItemDetail = json.data.tbBillList;
- that.$playSound('success');
that.$refs.sectionCode.focus();
- that.sectionCode = "";
+ //that.sectionCode = "";
}
else {
that.$toast.fail(json.message);
- that.$playSound('error');
that.$refs.billNo.focus();
that.billNo = "";
that.ItemBlDetail = null;
@@ -103,7 +99,6 @@
.catch(function (error) {
that.isLoading = false;
that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
- that.$playSound('error');
that.$refs.billNo.focus();
that.billNo = "";
that.ItemBlDetail = null;
@@ -117,7 +112,6 @@
if (that.sectionCode.length == 0) {
this.$toast.fail("搴撲綅缂栫爜涓嶈兘涓虹┖");
- that.$playSound('error');
return;
}
@@ -130,25 +124,22 @@
var json = res;
if (json.status == 0) {
that.$notify({ type: 'success', message: json.data.tbBillList });
- that.$playSound('success');
that.$refs.barcode.focus();
that.barcode = "";
}
else {
that.$toast.fail(json.message);
- that.$playSound('error');
that.$refs.sectionCode.focus();
- that.sectionCode = "";
+ //that.sectionCode = "";
}
})
.catch(function (error) {
that.isLoading = false;
that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
- that.$playSound('error');
//console.log(error);
that.$refs.sectionCode.focus();
- that.sectionCode = "";
+ //that.sectionCode = "";
});
},
getBarcode() {
@@ -160,21 +151,18 @@
if (!that.userInfo.loginAccount) {
this.$toast.fail("璇烽噸鏂版鏌ョ櫥褰曠姸鎬�");
- that.$playSound('error');
that.isLoading = false;
return;
}
if (!that.sectionCode) {
this.$toast.fail("搴撲綅涓嶈兘涓虹┖");
- that.$playSound('error');
that.isLoading = false;
return;
}
if (!that.barcode) {
this.$toast.fail("鏉$爜涓嶈兘涓虹┖");
- that.$playSound('error');
that.isLoading = false;
return;
}
@@ -200,7 +188,6 @@
//that.barcode = json.data.form.barcode;
that.ItemBlDetail = json.data.items
that.$notify({ type: 'success', message: '鎵爜鎴愬姛' });
- that.$playSound('success');
that.$refs.barcode.focus();
that.barcode = "";
that.billNo = json.data.form.billNo;
@@ -208,7 +195,6 @@
}
else {
that.$toast.fail(json.message);
- that.$playSound('error');
that.$refs.barcode.focus();
that.barcode = "";
}
@@ -217,14 +203,13 @@
.catch(function (error) {
that.isLoading = false;
that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
- that.$playSound('error');
//console.log(error);
that.$refs.barcode.focus();
that.barcode = "";
});
},
tmcf() {
-
+
}
}
})
\ No newline at end of file
--
Gitblit v1.9.3