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/Sccl.js | 32 +++++---------------------------
1 files changed, 5 insertions(+), 27 deletions(-)
diff --git a/H5/Js/Sccl.js b/H5/Js/Sccl.js
index 4153c19..d0a1120 100644
--- a/H5/Js/Sccl.js
+++ b/H5/Js/Sccl.js
@@ -48,14 +48,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);
});
},
@@ -77,7 +75,7 @@
GetMesItemBlDetailByBillNo() {
var that = this;
that.isLoading = true;
- that.AxiosHttp("post", 'MesItemBl/GetMesItemBlDetailByBillNo', {
+ that.AxiosHttp("post", 'MesItemBl/GetMesItemBlDetailBySccBillNo', {
billNo: that.billNo,
type:"鐢熶骇瓒呴"
}, false)
@@ -86,18 +84,15 @@
if (json.status == 0) {
that.ItemBlDetail = json.data.tbBillList.item;
that.daa001 = json.data.tbBillList.bl001;
- that.$playSound('success');
}
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);
});
},
@@ -110,39 +105,34 @@
if (!that.userInfo.loginAccount) {
this.$toast.fail("璇烽噸鏂版鏌ョ櫥褰曠姸鎬�");
- that.$playSound('error');
that.isLoading = false;
return;
}
if (!that.barcode) {
this.$toast.fail("鏉$爜涓嶈兘涓虹┖");
- that.$playSound('error');
that.isLoading = false;
return;
}
if (!that.billNo) {
this.$toast.fail("琛ユ枡鍗曞彿涓嶈兘涓虹┖");
- that.$playSound('error');
that.isLoading = false;
return;
}
if (!that.daa001) {
this.$toast.fail("宸ュ崟鍙蜂笉鑳戒负绌�");
- that.$playSound('error');
that.isLoading = false;
return;
}
- that.AxiosHttp("post", 'MesItemBl/ScblScanBarcode', {
+ that.AxiosHttp("post", 'MesItemBl/ScanBarcodeForOverPicking', {
userName: that.userInfo.loginAccount,
barcode: that.barcode,
blNo: that.billNo,
- billNo: that.daa001,
- type: "鐢熶骇瓒呴"
+ billNo: that.daa001
}, false)
.then(function (res) {
var json = res;
@@ -152,19 +142,16 @@
that.sms = json.data.tbBillList.item.fum;
that.num = json.data.tbBillList.item.num;
that.ItemBlDetail = json.data.tbBillList.pendingList
- that.$playSound('error');
that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
}
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);
});
},
@@ -176,64 +163,55 @@
if (!that.userInfo.loginAccount) {
this.$toast.fail("璇烽噸鏂版鏌ョ櫥褰曠姸鎬�");
- that.$playSound('error');
that.isLoading = false;
return;
}
if (!that.barcode) {
this.$toast.fail("鏉$爜涓嶈兘涓虹┖");
- that.$playSound('error');
that.isLoading = false;
return;
}
if (!that.billNo) {
this.$toast.fail("琛ユ枡鍗曞彿涓嶈兘涓虹┖");
- that.$playSound('error');
that.isLoading = false;
return;
}
if (!that.daa001) {
this.$toast.fail("宸ュ崟鍙蜂笉鑳戒负绌�");
- that.$playSound('error');
that.isLoading = false;
return;
}
if (!that.sms) {
this.$toast.fail("鍙戣揣鏁伴噺涓嶈兘涓虹┖");
- that.$playSound('error');
that.isLoading = false;
return;
}
- that.AxiosHttp("post", 'MesItemBl/SplitBarcode', {
+ that.AxiosHttp("post", 'MesItemBl/PrintBarcodeForOverPicking', {
userName: that.userInfo.loginAccount,
barcode: that.barcode,
blNo: that.billNo,
billNo: that.daa001,
- num: that.sms,
- type: "鐢熶骇瓒呴"
+ num: that.sms
}, false)
.then(function (res) {
var json = res;
if (json.status == 0) {
that.ItemBlDetail = json.data.tbBillList.pendingList;
- that.$playSound('success');
that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
}
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);
});
}
--
Gitblit v1.9.3