From b2a607f3b2b29a45ea87fde2a5c2c3d9c4e1d9ab Mon Sep 17 00:00:00 2001
From: wbc <2597324127@qq.com>
Date: 星期四, 13 十一月 2025 15:24:23 +0800
Subject: [PATCH] Merge branch 'master' of http://43.142.96.171:8080/r/~cnf/JH/JH_PdaClient
---
H5/Js/Dbck.js | 70 +++++++++++++++++++++++++++++++++-
1 files changed, 67 insertions(+), 3 deletions(-)
diff --git a/H5/Js/Dbck.js b/H5/Js/Dbck.js
index 42df939..e86d919 100644
--- a/H5/Js/Dbck.js
+++ b/H5/Js/Dbck.js
@@ -12,7 +12,13 @@
fum: "",
billNo: "",
barcode:"",
- ItemBlDetail:[],
+
+ ItemBlDetail: [], // 寰呮壂
+ ItemYsDetail: [], // 宸叉壂
+ ItemDetail: [],
+ ItemBarKw: [],
+ currentIndex: -1,
+
modeInfo: [],
active: 0,
show: false,
@@ -29,6 +35,56 @@
};
},
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();
+ //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("缃戠粶閿欒锛岃閲嶈瘯锛�");
+ that.$playSound('error');
+ console.log(error);
+ that.ItemBarKw = [];
+ });
+ },
getInfo() {
this.show = true;
@@ -71,6 +127,8 @@
this.show = false;
this.billNo = item.name;
+ // 娓呯┖搴撲綅鍒楄〃
+ this.ItemBarKw = [];
this.GetMesItemBlDetailByBillNo();
//this.$toast(item.name);
@@ -84,9 +142,15 @@
.then(function (res) {
var json = res;
if (json.status == 0) {
- that.ItemDetail = json.data.tbBillList;
+ //that.ItemDetail = json.data.tbBillList;
+ var tbBillList = json.data.tbBillList || {};
+ that.ItemBlDetail = tbBillList.blDetails || []; // 寰呮壂
+ that.ItemYsDetail = tbBillList.ysDetails || []; // 宸叉壂
that.$refs.barcode.focus();
that.barcode = "";
+ // 閲嶇疆搴撲綅鏌ヨ涓墍鏈夎鐨勯�変腑鐘舵��
+ that.currentIndex = -1;
+ that.ItemBarKw = [];
}
else {
that.$toast.fail(json.message);
@@ -144,7 +208,7 @@
////that.fum = json.data.form.fum;
//that.ItemBlDetail = json.data.items
that.$notify({ type: 'success', message: '鎵爜鎴愬姛' });
-
+ that.$toast.success("鎵弿鎴愬姛");
that.$refs.barcode.focus();
that.barcode = "";
//that.GetMesItemBlDetailByBillNo();
--
Gitblit v1.9.3