From 05909b4ca845d54ade85c8d2a91340bfafd0c58b Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期五, 19 十二月 2025 21:32:53 +0800
Subject: [PATCH] 增加一键调拨
---
H5/Js/Dbck.js | 91 +++++++++++++++++++++++----------------------
1 files changed, 47 insertions(+), 44 deletions(-)
diff --git a/H5/Js/Dbck.js b/H5/Js/Dbck.js
index 6eac1c9..37e9047 100644
--- a/H5/Js/Dbck.js
+++ b/H5/Js/Dbck.js
@@ -11,7 +11,7 @@
num: "",
fum: "",
billNo: "",
- barcode:"",
+ barcode: "",
ItemBlDetail: [], // 寰呮壂
ItemYsDetail: [], // 宸叉壂
@@ -35,56 +35,56 @@
};
},
methods: {
- handleRowClick(item, index) {
- if (this.isLoading) {
- return;
- }
+ handleRowClick(item, index) {
+ if (this.isLoading) {
+ return;
+ }
- // 閲嶇疆鎵�鏈夎鐨勯�変腑鐘舵��
- this.currentIndex = -1;
+ // 閲嶇疆鎵�鏈夎鐨勯�変腑鐘舵��
+ this.currentIndex = -1;
- // 璁剧疆褰撳墠閫変腑琛�
- this.currentIndex = index;
- this.selItem = {
- itemid: item.itemId,
- index: index
- };
+ // 璁剧疆褰撳墠閫変腑琛�
+ this.currentIndex = index;
+ this.selItem = {
+ itemid: item.itemId,
+ index: index
+ };
- console.log('褰撳墠閫変腑椤�:', this.selItem); // 璋冭瘯鐢�
+ console.log('褰撳墠閫変腑椤�:', this.selItem); // 璋冭瘯鐢�
- this.GetBarKwByItem();
- //this.active = 1; //鑷姩鍒囨崲鍒板簱浣嶅垪琛╰ab
- },
- GetBarKwByItem() {
+ this.GetBarKwByItem();
+ //this.active = 1; //鑷姩鍒囨崲鍒板簱浣嶅垪琛╰ab
+ },
+ GetBarKwByItem() {
- var that = this;
- that.isLoading = true;
- that.AxiosHttp("post", 'Womdaa/GetBarKwByItemCK', {
- itemId: that.selItem.itemid,
- userName: that.userInfo.loginAccount,
- type: 'DBCK',//璋冩嫧鍑哄簱
- 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("缃戠粶閿欒锛岃閲嶈瘯锛�");
+ var that = this;
+ that.isLoading = true;
+ that.AxiosHttp("post", 'Womdaa/GetBarKwByItemCK', {
+ itemId: that.selItem.itemid,
+ userName: that.userInfo.loginAccount,
+ type: 'DBCK',//璋冩嫧鍑哄簱
+ 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');
- console.log(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;
@@ -148,6 +148,9 @@
that.ItemYsDetail = tbBillList.ysDetails || []; // 宸叉壂
that.$refs.barcode.focus();
that.barcode = "";
+ // 閲嶇疆搴撲綅鏌ヨ涓墍鏈夎鐨勯�変腑鐘舵��
+ that.currentIndex = -1;
+ that.ItemBarKw = [];
}
else {
that.$toast.fail(json.message);
--
Gitblit v1.9.3