南骏 池
2025-05-16 21bdf0f6e844a1a747c616197f1427d6a7445afe
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, '');
        },
    }
})