|
@@ -785,7 +785,7 @@ import XLSX from "xlsx";
|
|
|
this.customerRec.customerName = this.customer.customerName;
|
|
|
},
|
|
|
changeAmt(value){
|
|
|
- value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '');
|
|
|
+ value=value.replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '');
|
|
|
this.customerRecharge.rechargeMony = value;
|
|
|
},
|
|
|
getBase64(file) {
|
|
@@ -856,7 +856,7 @@ import XLSX from "xlsx";
|
|
|
async customRecharge(){
|
|
|
this.customerRecharge['customerName'] = this.customer['customerName'];
|
|
|
const response = await this.$http.post(`customer/customRecharge`, this.customerRecharge);
|
|
|
- if(response.data.code === 0) {
|
|
|
+ if(response.data.data == true) {
|
|
|
this.loadData();
|
|
|
this.accIsclose = false;
|
|
|
this.$message({
|