From 21bdf0f6e844a1a747c616197f1427d6a7445afe Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期五, 16 五月 2025 08:23:17 +0800
Subject: [PATCH] 1.无线打印条码方法公共化 2.采购退货优化

---
 H5/Js/BarCf.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/H5/Js/BarCf.js b/H5/Js/BarCf.js
index be38d8a..9f2065a 100644
--- a/H5/Js/BarCf.js
+++ b/H5/Js/BarCf.js
@@ -105,6 +105,10 @@
                 });
         },
         getChaiFen() {
+            if (this.isLoading) {
+                return;
+            }
+
             var that = this;
 
             if (that.formData.cfNum * 1 <= 0) {
@@ -125,6 +129,8 @@
                     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.formData.cfNum = null;
@@ -145,5 +151,12 @@
         //cleraCode() {
         //    this.formData.sectionCode = null;
         //},
+        handleNumberInput3(value) {
+            this.formData.cfNum = value.replace(/[^\d.]/g, '')  // 1. 鍘婚櫎闈炴暟瀛楀拰灏忔暟鐐�
+                .replace(/(\..*)\./g, '$1')               // 2. 绂佹澶氫釜灏忔暟鐐�
+                .replace(/^\./g, '');
+        },
+
+
     }
 })
\ No newline at end of file

--
Gitblit v1.9.3