| | |
| | | }); |
| | | }, |
| | | getChaiFen() { |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | var that = this; |
| | | |
| | | if (that.formData.cfNum * 1 <= 0) { |
| | |
| | | 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; |
| | |
| | | //cleraCode() { |
| | | // this.formData.sectionCode = null; |
| | | //}, |
| | | handleNumberInput3(value) { |
| | | this.formData.cfNum = value.replace(/[^\d.]/g, '') // 1. 去除非数字和小数点 |
| | | .replace(/(\..*)\./g, '$1') // 2. 禁止多个小数点 |
| | | .replace(/^\./g, ''); |
| | | }, |
| | | |
| | | |
| | | } |
| | | }) |