|
@@ -836,7 +836,7 @@ import XLSX from 'xlsx';
|
|
|
});
|
|
|
},
|
|
|
httpRequest(data) {
|
|
|
- const isPFX = data.file.type === 'application/pdf';
|
|
|
+ const isPFX = data.file.type == 'application/pdf';
|
|
|
const isLt2M = data.file.size / 1024 / 1024 < 10;
|
|
|
|
|
|
if (!isPFX) {
|
|
@@ -856,7 +856,7 @@ import XLSX from 'xlsx';
|
|
|
this.$refs[formName].validate(async (valid) => {
|
|
|
if(valid) {
|
|
|
const response = await this.$http.post(`customer/addCustomer`, this.customer);
|
|
|
- if(response.data.code === 0) {
|
|
|
+ if(response.data.code == 0) {
|
|
|
this.loadData();
|
|
|
this.addCustomerShow = false;
|
|
|
this.$message({
|
|
@@ -883,7 +883,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.data === true) {
|
|
|
+ if(response.data.data == true) {
|
|
|
this.loadData();
|
|
|
this.accIsclose = false;
|
|
|
this.$message({
|
|
@@ -899,7 +899,7 @@ import XLSX from 'xlsx';
|
|
|
},
|
|
|
async changeStatusM(){
|
|
|
const response = await this.$http.post(`customer/updateCustomer`, this.customer);
|
|
|
- if(response.data.code === 0) {
|
|
|
+ if(response.data.code == 0) {
|
|
|
this.loadData();
|
|
|
this.changeStatus = false;
|
|
|
this.$message({
|
|
@@ -920,10 +920,10 @@ import XLSX from 'xlsx';
|
|
|
async recInfo(recoder){
|
|
|
this.recVis = true;
|
|
|
const response = await this.$http.post(`lowerService/customeRecQuery`, {'customerName': recoder.customerName, 'companyName': recoder.companyName});
|
|
|
- if (response.data.code === 0) {
|
|
|
+ if (response.data.code == 0) {
|
|
|
this.customerRec = response.data.data;
|
|
|
|
|
|
- this.disable = !((this.customerRec.interType === 1) && (this.customerRec.recStatus === 2 || this.customerRec.recStatus === 0));
|
|
|
+ this.disable = !((this.customerRec.interType == 1) && (this.customerRec.recStatus == 2 || this.customerRec.recStatus == 0));
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -931,9 +931,9 @@ import XLSX from 'xlsx';
|
|
|
//this.recVis = true;
|
|
|
this.concatVis = true;
|
|
|
const response = await this.$http.post(`lowerService/customeRecQuery`, {'customerName': recoder.customerName, 'companyName': recoder.companyName});
|
|
|
- if (response.data.code === 0) {
|
|
|
+ if (response.data.code == 0) {
|
|
|
this.customerRec = response.data.data;
|
|
|
- this.disable = !((this.customerRec.interType === 1) && (this.customerRec.recStatus === 2));
|
|
|
+ this.disable = !((this.customerRec.interType == 1) && (this.customerRec.recStatus == 2));
|
|
|
}
|
|
|
},
|
|
|
stopUse(recoder){
|
|
@@ -943,7 +943,7 @@ import XLSX from 'xlsx';
|
|
|
type: 'warning'
|
|
|
}).then(async () => {
|
|
|
const response = await this.$http.post('customer/customeRecStop', {'customerName': recoder.customerName, 'companyName': recoder.companyName});
|
|
|
- if (response.data.code === 0) {
|
|
|
+ if (response.data.code == 0) {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: '停用成功'
|
|
@@ -966,7 +966,7 @@ import XLSX from 'xlsx';
|
|
|
type: 'warning'
|
|
|
}).then(async () => {
|
|
|
const response = await this.$http.post('customer/customeRecStart', {'customerName': recoder.customerName, 'companyName': recoder.companyName});
|
|
|
- if (response.data.code === 0) {
|
|
|
+ if (response.data.code == 0) {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: '启用成功'
|
|
@@ -985,7 +985,7 @@ import XLSX from 'xlsx';
|
|
|
async recInfoList(recoder){
|
|
|
this.customer.customerName =recoder.customerName;
|
|
|
const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': recoder.customerName});
|
|
|
- if (response.data.code === 0) {
|
|
|
+ if (response.data.code == 0) {
|
|
|
this.customeRecQueryListTable = response.data.data;
|
|
|
}
|
|
|
|
|
@@ -993,13 +993,13 @@ import XLSX from 'xlsx';
|
|
|
},
|
|
|
async queryCustomerRec(){
|
|
|
const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': this.customer.customerName, 'companyName': this.customer.company});
|
|
|
- if (response.data.code === 0) {
|
|
|
+ if (response.data.code == 0) {
|
|
|
this.customeRecQueryListTable = response.data.data;
|
|
|
}
|
|
|
},
|
|
|
async carInfo(recoder){
|
|
|
const response = await this.$http.post(`lowerService/customerCarRecQuery`, {'customerName': recoder.customerName});
|
|
|
- if (response.data.code === 0) {
|
|
|
+ if (response.data.code == 0) {
|
|
|
this.coustomerCarTable = response.data.data;
|
|
|
}
|
|
|
|
|
@@ -1027,7 +1027,7 @@ import XLSX from 'xlsx';
|
|
|
});
|
|
|
}else{
|
|
|
const response = await this.$http.post(`customer/customeRecQueryUpper`, this.customerRec);
|
|
|
- if (response.data.code === 0) {
|
|
|
+ if (response.data.code == 0) {
|
|
|
this.customerRec = response.data.data;
|
|
|
}else{
|
|
|
this.$message({
|
|
@@ -1047,9 +1047,9 @@ import XLSX from 'xlsx';
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
});
|
|
|
const response = await this.$http.post(`customer/customerRecAdd`, this.customerRec);
|
|
|
- if(response.data.code === 0) {
|
|
|
+ if(response.data.code == 0) {
|
|
|
const response = await this.$http.post(`lowerService/customeRecQueryList`, {'customerName': this.customer.customerName});
|
|
|
- if (response.data.code === 0) {
|
|
|
+ if (response.data.code == 0) {
|
|
|
this.customeRecQueryListTable = response.data.data;
|
|
|
}
|
|
|
this.addCustomerRecShow1 = false;
|
|
@@ -1074,7 +1074,7 @@ import XLSX from 'xlsx';
|
|
|
},
|
|
|
async customerRecConform(){
|
|
|
const response = await this.$http.post(`customer/customeRec`, this.customerRec);
|
|
|
- if(response.data.code === 0) {
|
|
|
+ if(response.data.code == 0) {
|
|
|
this.loadData();
|
|
|
this.recInfoList(this.customerRec)
|
|
|
this.changeStatus = false;
|
|
@@ -1090,7 +1090,7 @@ import XLSX from 'xlsx';
|
|
|
}
|
|
|
},
|
|
|
changeRow(id){
|
|
|
- if(id === 0){
|
|
|
+ if(id == 0){
|
|
|
this.showEtcFee =true
|
|
|
}else{
|
|
|
this.showEtcFee =false
|
|
@@ -1098,7 +1098,7 @@ import XLSX from 'xlsx';
|
|
|
},
|
|
|
async contractAdd(){
|
|
|
const response = await this.$http.post(`customer/contractAdd`, this.customerRec);
|
|
|
- if(response.data.code === 0) {
|
|
|
+ if(response.data.code == 0) {
|
|
|
this.loadData();
|
|
|
this.recInfoList(this.customerRec)
|
|
|
this.changeStatus = false;
|
|
@@ -1115,7 +1115,7 @@ import XLSX from 'xlsx';
|
|
|
},
|
|
|
async contractStatusFail() {
|
|
|
const response = await this.$http.post(`customer/contractStatusFail`, this.customerRec);
|
|
|
- if(response.data.code === 0) {
|
|
|
+ if(response.data.code == 0) {
|
|
|
this.loadData();
|
|
|
this.recInfoList(this.customerRec)
|
|
|
this.changeStatus = false;
|
|
@@ -1133,7 +1133,7 @@ import XLSX from 'xlsx';
|
|
|
|
|
|
async contractStatusProcess() {
|
|
|
const response = await this.$http.post(`customer/contractStatusProcess`, this.customerRec);
|
|
|
- if(response.data.code === 0) {
|
|
|
+ if(response.data.code == 0) {
|
|
|
this.loadData();
|
|
|
this.recInfoList(this.customerRec)
|
|
|
this.changeStatus = false;
|
|
@@ -1150,7 +1150,7 @@ import XLSX from 'xlsx';
|
|
|
},
|
|
|
async contractStatusSuccess() {
|
|
|
const response = await this.$http.post(`customer/contractStatusSuccess`, this.customerRec);
|
|
|
- if(response.data.code === 0) {
|
|
|
+ if(response.data.code == 0) {
|
|
|
this.loadData();
|
|
|
this.recInfoList(this.customerRec)
|
|
|
this.changeStatus = false;
|
|
@@ -1184,7 +1184,7 @@ import XLSX from 'xlsx';
|
|
|
formData.append('company', this.formCondition.company);
|
|
|
formData.append('subCompany', this.formCondition.subCompany);
|
|
|
const response = await this.$http.post(`customer/findCustomer`, formData);
|
|
|
- if (response.data.code === 0) {
|
|
|
+ if (response.data.code == 0) {
|
|
|
this.coustomerTable = response.data.data.records;
|
|
|
this.total = response.data.data.total;
|
|
|
}
|
|
@@ -1235,7 +1235,7 @@ import XLSX from 'xlsx';
|
|
|
// name + ".xlsx"
|
|
|
// );
|
|
|
// } catch (e) {
|
|
|
- // if (typeof console !== "undefined") console.log(e, wbout);
|
|
|
+ // if (typeof console != "undefined") console.log(e, wbout);
|
|
|
// }
|
|
|
// this.current = curr;
|
|
|
// this.pagesize = pagesize1;
|