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/Xsck.js | 88 ++++++--------------------------------------
1 files changed, 12 insertions(+), 76 deletions(-)
diff --git a/H5/Js/Xsck.js b/H5/Js/Xsck.js
index 2f6ba4c..672c7c6 100644
--- a/H5/Js/Xsck.js
+++ b/H5/Js/Xsck.js
@@ -19,11 +19,6 @@
active: 0,
show: false,
actions: [],
- ItemTblDetail: [],
- ItemDetail: [],
- ItemBarKw: [],
- currentIndex: -1,
- zdy: "",
}
},
mounted() {
@@ -34,55 +29,6 @@
};
},
methods: {
- handleRowClick(item, index) {
- if (this.isLoading) {
- return;
- }
-
- // 閲嶇疆鎵�鏈夎鐨勯�変腑鐘舵��
- this.currentIndex = -1;
-
- // 璁剧疆褰撳墠閫変腑琛�
- this.currentIndex = index;
- this.selItem = {
- itemid: item.itemId,
- index: index
- };
-
- console.log('褰撳墠閫変腑椤�:', this.selItem); // 璋冭瘯鐢�
-
- this.GetBarKwByItem();
- },
- GetBarKwByItem() {
-
- var that = this;
- that.isLoading = true;
- that.AxiosHttp("post", 'Womdaa/GetBarKwByItemCK', {
- itemId: that.selItem.itemid,
- userName: that.userInfo.loginAccount,
- //type: 'XSCK',
- //billNo: that.billNo
- }, false)
- .then(function (res) {
- var json = res;
- if (json.status == 0) {
- that.ItemBarKw = json.data.tbBillList;
- }
- else {
- that.$toast.fail(json.message);
- that.$playSound('error');
- that.ItemBarKw = [];
- }
- that.isLoading = false;
- })
- .catch(function (error) {
- that.isLoading = false;
- that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
- that.$playSound('error');
- console.log(error);
- that.ItemBarKw = [];
- });
- },
//鑾峰彇鍙戣揣閫氱煡鍗曞彿
getInfo() {
this.show = true;
@@ -128,9 +74,6 @@
this.show = false;
this.billNo = item.name;
-
- // 娓呯┖搴撲綅鍒楄〃
- this.ItemBarKw = [];
this.GetMesItemDetailByBillNo();
//this.$toast(item.name);
@@ -147,7 +90,6 @@
var json = res;
if (json.status == 0) {
that.ItemBlDetail = json.data.tbBillList;
- that.zdy = json.data.tbBillList.allList[0].createNmae;
//that.daa001 = json.data.tbBillList.item1;
that.$refs.barcode.focus();
}
@@ -164,7 +106,7 @@
that.isLoading = false;
that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
//console.log(error);
- that.$refs.billNo.focus();
+ tthat.$refs.billNo.focus();
that.billNo = "";
that.daa001 = "";
that.ItemBlDetail = [];
@@ -191,7 +133,7 @@
}
if (!that.billNo) {
- this.$toast.fail("鐢宠鍗曞彿涓嶈兘涓虹┖");
+ this.$toast.fail("鍙戣揣閫氱煡鍗曞彿涓嶈兘涓虹┖");
that.isLoading = false;
return;
}
@@ -206,8 +148,7 @@
that.AxiosHttp("post", 'MesXsck/XSCKScanBarcode', {
userName: that.userInfo.loginAccount,
barcode: that.barcode,
- daa001: that.daa001,
- billNo: that.billNo,
+ daa001: that.billNo,
//type: selectType
}, false)
.then(function (res) {
@@ -227,12 +168,8 @@
} else if (json.status == 2) {
that.$refs.splitNum.focus();
- that.splitNum = json.data.tbBillList.splitNum; // 鎷嗗垎鏁伴噺
- that.num = json.data.tbBillList.barcodeNum; // 鏉$爜鏁伴噺
- that.daa001 = json.data.tbBillList.daa001; // 宸ュ崟鍙�
- if (json.data.tbBillList.billNo) {
- that.billNo = json.data.tbBillList.billNo;
- } // 鍙戣揣閫氱煡鍗曞彿锛屽彧鍦ㄦ湁鍊兼椂璧嬪��
+ that.splitNum = json.data.cfNum;
+ that.num = json.data.num;
}
else {
that.$toast.fail(json.message);
@@ -273,16 +210,16 @@
}
if (!that.billNo) {
- this.$toast.fail("鍙戣揣鍗曞彿涓嶈兘涓虹┖");
+ this.$toast.fail("琛ユ枡鍗曞彿涓嶈兘涓虹┖");
that.isLoading = false;
return;
}
- //if (!that.daa001) {
- // this.$toast.fail("宸ュ崟鍙蜂笉鑳戒负绌�");
- // that.isLoading = false;
- // return;
- //}
+ if (!that.daa001) {
+ this.$toast.fail("宸ュ崟鍙蜂笉鑳戒负绌�");
+ that.isLoading = false;
+ return;
+ }
if (!that.splitNum) {
this.$toast.fail("鍙戣揣鏁伴噺涓嶈兘涓虹┖");
@@ -293,8 +230,7 @@
that.AxiosHttp("post", 'MesXsck/SplitBarcode', {
userName: that.userInfo.loginAccount,
barcode: that.barcode,
- daa001: that.daa001,
- billNo: that.billNo,
+ daa001: that.billNo,
num: that.splitNum,
//type: selectType
}, false)
--
Gitblit v1.9.3