From 78061b1a02d28ffc7831e84db6146976ded0bbc5 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期二, 09 九月 2025 08:19:12 +0800
Subject: [PATCH] 1.PDA条码重打

---
 H5/BarCf.aspx  |   11 ++++++++---
 H5/Js/BarCf.js |   39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 3 deletions(-)

diff --git a/H5/BarCf.aspx b/H5/BarCf.aspx
index 5293dae..e254a5a 100644
--- a/H5/BarCf.aspx
+++ b/H5/BarCf.aspx
@@ -1,4 +1,5 @@
-锘�<%@ Page Title="鍦ㄥ簱鍒嗘枡" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="BarCf.aspx.cs" Inherits="H5_Scll" %>
+锘�
+<%@ Page Title="鍦ㄥ簱鍒嗘枡" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="BarCf.aspx.cs" Inherits="H5_Scll" %>
 <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
     <style>
     .bg-info {
@@ -31,7 +32,11 @@
   v-focus.noKeyboard
           @keyup.enter.native="getScan"
 <%--  @change="getScan"--%>
-></van-field>
+>
+     <template #button>
+                <van-button size="small" type="info" plain @click="BarRePrint" >鏉$爜閲嶆墦</van-button>
+                </template>
+ </van-field>
    <van-field
   v-model="formData.itemNo"
   label="鐗╂枡缂栫爜"
@@ -78,5 +83,5 @@
     <%--<comback ></comback>--%>
 </asp:Content>
 <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
-    <script src="Js/BarCf.js?<%=1211111 %>"></script>
+    <script src="Js/BarCf.js?<%=1211113 %>"></script>
 </asp:Content>
diff --git a/H5/Js/BarCf.js b/H5/Js/BarCf.js
index bdc9891..c19122d 100644
--- a/H5/Js/BarCf.js
+++ b/H5/Js/BarCf.js
@@ -167,6 +167,45 @@
                 .replace(/^\./g, '');
         },
 
+        BarRePrint() {
+            if (this.isLoading) {
+                return;
+            }
+
+            var that = this;
+
+            if (that.formData.barcode.length * 1 <= 0) {
+                that.$toast.fail("鐗╂枡鏉$爜涓嶈兘涓虹┖锛�");
+                return;
+            }
+            that.isLoading = true;
+            that.AxiosHttp("post", 'MesBarCF/BarRePrint', {
+                userName: that.userInfo.loginAccount,
+                barcode: that.formData.barcode
+            }, false)
+                .then(function (res) {
+                    var json = res;
+                    if (json.status == 0) {
+                        //  that.modeInfo = json.data.tbBillList;
+                        // 鎷嗗垎鍏ㄥ眬璋冪敤鏂规硶
+                        that.sendPrintMessage(json.data.tbBillList);
+                        that.$refs.barcode.focus();
+                        that.formData.barcode = null;
+                        that.$notify({ type: 'success', message: json.message });
+                    }
+                    else {
+                        that.$toast.fail(json.message);
+                        that.$refs.barcode.focus();
+                    }
+                    that.isLoading = false;
+                })
+                .catch(function (error) {
+                    that.isLoading = false;
+                    that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                    console.log(error);
+                });
+        },
+
 
     }
 })
\ No newline at end of file

--
Gitblit v1.9.3