From 408b576b8aa155c9f7c8b919be3cd82be52a1da8 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期二, 25 十一月 2025 08:52:44 +0800
Subject: [PATCH] 1.标准代码更新(2025-11-25)
---
H5/Js/Strk.js | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/H5/Js/Strk.js b/H5/Js/Strk.js
index bc01d1b..05fa2c4 100644
--- a/H5/Js/Strk.js
+++ b/H5/Js/Strk.js
@@ -17,7 +17,12 @@
depot: {},
show: false,
actions: [],
- ItemTblDetail:[]
+ ItemBlDetail: [], // 寰呮壂
+ ItemYsDetail: [], // 宸叉壂
+ ItemTblDetail: [],
+ ItemDetail: [],
+ ItemBarKw: [],
+ currentIndex: -1,
}
},
mounted() {
@@ -43,6 +48,7 @@
if (json.status == 0) {
if (json.data.tbBillList.length <= 0) {
that.$toast.fail("娌℃湁鍙敤鐨勬暟鎹�");
+ that.show = false;
} else {
that.actions = json.data.tbBillList.map(item => {
return { name: item }
@@ -58,6 +64,7 @@
that.isLoading = false;
that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
console.log(error);
+ that.show = false;
});
},
//onClick(index, title) {
@@ -70,6 +77,8 @@
// 鍙互閫氳繃 close-on-click-action 灞炴�у紑鍚嚜鍔ㄦ敹璧�
this.show = false;
this.billNo = item.name;
+ // 娓呯┖搴撲綅鍒楄〃
+ this.ItemBarKw = [];
this.getMesItemDetailByBillNo();
//this.$toast(item.name);
},
@@ -82,7 +91,9 @@
.then(function (res) {
var json = res;
if (json.status == 0) {
- that.ItemTblDetail = json.data.tbBillList;
+ var tbBillList = json.data.tbBillList || {};
+ that.ItemBlDetail = tbBillList.blDetails || []; // 寰呮壂
+ that.ItemYsDetail = tbBillList.ysDetails || []; // 宸叉壂
that.$refs.sectionCode.focus();
}
else {
@@ -165,6 +176,7 @@
that.itemNo = json.data.tbBillList.itemNo;
that.sms = json.data.tbBillList.num;
that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
+ that.$toast.success("鎵弿鎴愬姛");
that.$refs.barcode.focus();
that.barcode = null;
that.getMesItemDetailByBillNo();
--
Gitblit v1.9.3