|
@@ -663,26 +663,31 @@
|
|
import FileSaver from "file-saver";
|
|
import FileSaver from "file-saver";
|
|
import XLSX from "xlsx";
|
|
import XLSX from "xlsx";
|
|
export default {
|
|
export default {
|
|
- data(){
|
|
+ data() {
|
|
- return{
|
|
+ return {
|
|
- formCondition:{
|
|
+ formCondition: {
|
|
- customerName:'',
|
|
+ customerName: '',
|
|
- company:'',
|
|
+ company: '',
|
|
- subCompany:''
|
|
+ subCompany: ''
|
|
},
|
|
},
|
|
- hightt:'0px',
|
|
+ hightt: '0px',
|
|
- coustomerTable:[],
|
|
+ coustomerTable: [],
|
|
- coustomerCarTable:[],
|
|
+ coustomerCarTable: [],
|
|
- customeRecQueryListTable:[],
|
|
+ customeRecQueryListTable: [],
|
|
- companyList:[{id:1,name:"行业用户"},{id:2,name:"自营平台"},{id:3,name:"合作商户"}],
|
|
+ companyList: [{id: 1, name: "行业用户"},
|
|
- bussinessTypeList:[{id:"0",name:"自有车"},{id:"2",name:"无车"}],
|
|
+ {id: 2, name: "自营平台"},
|
|
- operatingRangeList:[{id:1,name:"快递"},
|
|
+ {id: 3, name: "合作商户"}],
|
|
- {id:2,name:"速运"},
|
|
+ bussinessTypeList: [{id: "0", name: "自有车"},
|
|
- {id:3,name:"货运代理"},
|
|
+ {id: "2", name: "无车"}],
|
|
- {id:4,name:"普通货运"},
|
|
+ operatingRangeList: [{id: 1, name: "快递"},
|
|
- {id:5,name:"专线运输"},
|
|
+ {id: 2, name: "速运"},
|
|
- {id:6,name:"其他"}],
|
|
+ {id: 3, name: "货运代理"},
|
|
- serviceTypeList:[{id:1,name:"一级产品"},{id:2,name:"二级产品"},{id:3,name:"三级产品"}],
|
|
+ {id: 4, name: "普通货运"},
|
|
|
|
+ {id: 5, name: "专线运输"},
|
|
|
|
+ {id: 6, name: "其他"}],
|
|
|
|
+ serviceTypeList: [{id: 1, name: "一级产品"},
|
|
|
|
+ {id: 2, name: "二级产品"},
|
|
|
|
+ {id: 3, name: "三级产品"}],
|
|
custAddrules: {
|
|
custAddrules: {
|
|
customerName: [
|
|
customerName: [
|
|
{ required: true, message: '请输入', trigger: 'blur' },
|
|
{ required: true, message: '请输入', trigger: 'blur' },
|
|
@@ -693,80 +698,77 @@ import XLSX from "xlsx";
|
|
{ min: 3, max: 100, message: '长度在 3 到 300个字符', trigger: 'blur' }
|
|
{ min: 3, max: 100, message: '长度在 3 到 300个字符', trigger: 'blur' }
|
|
],
|
|
],
|
|
bussinessType: [
|
|
bussinessType: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
custRecAddrules: {
|
|
custRecAddrules: {
|
|
customerName: [
|
|
customerName: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
companyLeader: [
|
|
companyLeader: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
companyLeaderPhone: [
|
|
companyLeaderPhone: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
companyName: [
|
|
companyName: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
companyReferencenum: [
|
|
companyReferencenum: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
companyOpenbank: [
|
|
companyOpenbank: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
companyOpenbankAcc: [
|
|
companyOpenbankAcc: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
companyAdress: [
|
|
companyAdress: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
companyPhone: [
|
|
companyPhone: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
bussinessType: [
|
|
bussinessType: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
companyType: [
|
|
companyType: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
operatingRangeType: [
|
|
operatingRangeType: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
serviceType: [
|
|
serviceType: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
serviceStartTime: [
|
|
serviceStartTime: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
],
|
|
],
|
|
serviceEndTime: [
|
|
serviceEndTime: [
|
|
- { required: true, message: '请输入', trigger: 'blur' },
|
|
+ { required: true, message: '请输入', trigger: 'blur' }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
- customerRec:{
|
|
+ customerRec: {
|
|
|
|
|
|
},
|
|
},
|
|
- queryParam:{},
|
|
+ queryParam: {},
|
|
- customer:{
|
|
+ customer: {
|
|
- id:0,
|
|
+ id: 0,
|
|
- customerName:'',
|
|
+ customerName: '',
|
|
- usenumAll:'',
|
|
+ usenumAll: '',
|
|
- invoiceTime:'',
|
|
+ invoiceTime: '',
|
|
- usenumInterface:'',
|
|
+ usenumInterface: '',
|
|
- usenumPlat:'',
|
|
+ usenumPlat: '',
|
|
- accountBalance:'',
|
|
+ accountBalance: '',
|
|
- bussinessType:'',
|
|
+ bussinessType: '',
|
|
- integrationType:'',
|
|
+ integrationType: '',
|
|
- firstSign:'',
|
|
+ firstSign: '',
|
|
- accstatus:'0',
|
|
+ accstatus: '0',
|
|
- company:''
|
|
+ company: ''
|
|
- },
|
|
|
|
- customerRecharge:{
|
|
|
|
- customerName:'',
|
|
|
|
- rechargeMony:''
|
|
|
|
},
|
|
},
|
|
- queryParam:{
|
|
+ customerRecharge: {
|
|
-
|
|
+ customerName: '',
|
|
|
|
+ rechargeMony: ''
|
|
},
|
|
},
|
|
optionone: [{
|
|
optionone: [{
|
|
value: 0,
|
|
value: 0,
|
|
@@ -784,35 +786,35 @@ import XLSX from "xlsx";
|
|
}],
|
|
}],
|
|
current: 1,
|
|
current: 1,
|
|
pagesize: 8,
|
|
pagesize: 8,
|
|
- total:'',
|
|
+ total: '',
|
|
- addCustomerShow:false,
|
|
+ addCustomerShow: false,
|
|
- addCustomerRecShow1:false,
|
|
+ addCustomerRecShow1: false,
|
|
- changeStatus:false,
|
|
+ changeStatus: false,
|
|
- recVis:false,
|
|
+ recVis: false,
|
|
- concatVis:false,
|
|
+ concatVis: false,
|
|
- accIsclose:false,
|
|
+ accIsclose: false,
|
|
- carRecclose:false,
|
|
+ carRecclose: false,
|
|
- recVisList:false,
|
|
+ recVisList: false,
|
|
- disable:false,
|
|
+ disable: false,
|
|
- showEtcFee:false
|
|
+ showEtcFee: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
+ created() {
|
|
- this.heightt = tableHeight;
|
|
+ this.heightt = tableHeight // eslint-disable-line
|
|
this.loadData();
|
|
this.loadData();
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
- rounding (value) {
|
|
+ rounding(value) {
|
|
return value.toFixed(2)
|
|
return value.toFixed(2)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- methods:{
|
|
+ methods: {
|
|
- showAddCustomerRec(){
|
|
+ showAddCustomerRec() {
|
|
- this.addCustomerRecShow1 =true;
|
|
+ this.addCustomerRecShow1 = true;
|
|
this.customerRec.customerName = this.customer.customerName;
|
|
this.customerRec.customerName = this.customer.customerName;
|
|
},
|
|
},
|
|
- changeAmt(value){
|
|
+ changeAmt(value) {
|
|
- value=value.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;
|
|
this.customerRecharge.rechargeMony = value;
|
|
},
|
|
},
|
|
getBase64(file) {
|
|
getBase64(file) {
|
|
@@ -822,21 +824,18 @@ import XLSX from "xlsx";
|
|
let reader = new FileReader();
|
|
let reader = new FileReader();
|
|
let fileResult = "";
|
|
let fileResult = "";
|
|
reader.readAsDataURL(file);
|
|
reader.readAsDataURL(file);
|
|
- //开始转
|
|
|
|
reader.onload = function() {
|
|
reader.onload = function() {
|
|
fileResult = reader.result;
|
|
fileResult = reader.result;
|
|
};
|
|
};
|
|
- //转 失败
|
|
|
|
reader.onerror = function(error) {
|
|
reader.onerror = function(error) {
|
|
reject(error);
|
|
reject(error);
|
|
};
|
|
};
|
|
- //转 结束 咱就 resolve 出去
|
|
|
|
reader.onloadend = function() {
|
|
reader.onloadend = function() {
|
|
resolve(fileResult);
|
|
resolve(fileResult);
|
|
};
|
|
};
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- httpRequest(data){ // 没事儿就打印data看看呗 //这是限制上传文件类型
|
|
+ httpRequest(data) {
|
|
const isPFX = data.file.type === "application/pdf";
|
|
const isPFX = data.file.type === "application/pdf";
|
|
const isLt2M = data.file.size / 1024 / 1024 < 10;
|
|
const isLt2M = data.file.size / 1024 / 1024 < 10;
|
|
|
|
|
|
@@ -844,14 +843,15 @@ import XLSX from "xlsx";
|
|
this.$message.error("上传文件只能是pdf格式!");
|
|
this.$message.error("上传文件只能是pdf格式!");
|
|
}else if (!isLt2M) {
|
|
}else if (!isLt2M) {
|
|
this.$message.error("上传文件大小不能超过 10MB!");
|
|
this.$message.error("上传文件大小不能超过 10MB!");
|
|
- }else{
|
|
+ } else {
|
|
// 转base64
|
|
// 转base64
|
|
- this.getBase64(data.file).then(resBase64 => {
|
|
+ this.getBase64(data.file).then((resBase64) => {
|
|
- this.fileBase64 = resBase64.split(',')[1] //直接拿到base64信息
|
|
+ this.fileBase64 = resBase64.split(',')[1]//直接拿到base64信息
|
|
this.customerRec.base64Str = resBase64.split(',')[1];
|
|
this.customerRec.base64Str = resBase64.split(',')[1];
|
|
})
|
|
})
|
|
this.$message.success('文件上传成功');
|
|
this.$message.success('文件上传成功');
|
|
- }},
|
|
+ }
|
|
|
|
+ },
|
|
addCustomer(formName){
|
|
addCustomer(formName){
|
|
this.$refs[formName].validate(async (valid) => {
|
|
this.$refs[formName].validate(async (valid) => {
|
|
if(valid) {
|
|
if(valid) {
|
|
@@ -876,14 +876,14 @@ import XLSX from "xlsx";
|
|
})
|
|
})
|
|
},
|
|
},
|
|
investMone(recoder){
|
|
investMone(recoder){
|
|
- this.customer = this.customer= JSON.parse(JSON.stringify(recoder ));;
|
|
+ this.customer = this.customer= JSON.parse(JSON.stringify(recoder ));
|
|
this.customerRecharge['rechargeMony']='';
|
|
this.customerRecharge['rechargeMony']='';
|
|
this.accIsclose = true;
|
|
this.accIsclose = true;
|
|
},
|
|
},
|
|
async customRecharge(){
|
|
async customRecharge(){
|
|
this.customerRecharge['customerName'] = this.customer['customerName'];
|
|
this.customerRecharge['customerName'] = this.customer['customerName'];
|
|
const response = await this.$http.post(`customer/customRecharge`, this.customerRecharge);
|
|
const response = await this.$http.post(`customer/customRecharge`, this.customerRecharge);
|
|
- if(response.data.data == true) {
|
|
+ if(response.data.data === true) {
|
|
this.loadData();
|
|
this.loadData();
|
|
this.accIsclose = false;
|
|
this.accIsclose = false;
|
|
this.$message({
|
|
this.$message({
|
|
@@ -919,24 +919,21 @@ import XLSX from "xlsx";
|
|
},
|
|
},
|
|
async recInfo(recoder){
|
|
async recInfo(recoder){
|
|
this.recVis = true;
|
|
this.recVis = true;
|
|
-
|
|
+ const response = await this.$http.post(`lowerService/customeRecQuery`, {"customerName": recoder.customerName, "companyName": recoder.companyName});
|
|
-
|
|
|
|
- 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.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));
|
|
-
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
async concatInfo(recoder){
|
|
async concatInfo(recoder){
|
|
//this.recVis = true;
|
|
//this.recVis = true;
|
|
this.concatVis = true;
|
|
this.concatVis = true;
|
|
- const response = await this.$http.post(`lowerService/customeRecQuery`, {"customerName":recoder.customerName,"companyName":recoder.companyName});
|
|
+ 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.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){
|
|
stopUse(recoder){
|
|
@@ -945,7 +942,7 @@ import XLSX from "xlsx";
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
- const response = await this.$http.post("customer/customeRecStop", {"customerName":recoder.customerName,"companyName":recoder.companyName});
|
|
+ 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({
|
|
this.$message({
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -961,7 +958,6 @@ import XLSX from "xlsx";
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
//几点取消的提示
|
|
//几点取消的提示
|
|
});
|
|
});
|
|
-
|
|
|
|
},
|
|
},
|
|
startUse(recoder){
|
|
startUse(recoder){
|
|
this.$confirm('此操作将备案状态改为启用状态, 是否继续?', '提示', {
|
|
this.$confirm('此操作将备案状态改为启用状态, 是否继续?', '提示', {
|
|
@@ -969,7 +965,7 @@ import XLSX from "xlsx";
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
- const response = await this.$http.post("customer/customeRecStart", {"customerName":recoder.customerName,"companyName":recoder.companyName});
|
|
+ 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({
|
|
this.$message({
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -985,11 +981,10 @@ import XLSX from "xlsx";
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
//几点取消的提示
|
|
//几点取消的提示
|
|
});
|
|
});
|
|
-
|
|
|
|
},
|
|
},
|
|
async recInfoList(recoder){
|
|
async recInfoList(recoder){
|
|
this.customer.customerName =recoder.customerName;
|
|
this.customer.customerName =recoder.customerName;
|
|
- const response = await this.$http.post(`lowerService/customeRecQueryList`, {"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;
|
|
this.customeRecQueryListTable = response.data.data;
|
|
}
|
|
}
|
|
@@ -997,13 +992,13 @@ import XLSX from "xlsx";
|
|
this.recVisList = true;
|
|
this.recVisList = true;
|
|
},
|
|
},
|
|
async queryCustomerRec(){
|
|
async queryCustomerRec(){
|
|
- const response = await this.$http.post(`lowerService/customeRecQueryList`, {"customerName":this.customer.customerName,"companyName":this.customer.company});
|
|
+ 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;
|
|
this.customeRecQueryListTable = response.data.data;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async carInfo(recoder){
|
|
async carInfo(recoder){
|
|
- const response = await this.$http.post(`lowerService/customerCarRecQuery`, {"customerName":recoder.customerName});
|
|
+ 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;
|
|
this.coustomerCarTable = response.data.data;
|
|
}
|
|
}
|
|
@@ -1019,14 +1014,13 @@ import XLSX from "xlsx";
|
|
this.customer['accstatus'] = 0;
|
|
this.customer['accstatus'] = 0;
|
|
},
|
|
},
|
|
custRecClose() {
|
|
custRecClose() {
|
|
- this.recVis = false,
|
|
+ this.recVis = false;
|
|
- this.concatVis = false,
|
|
+ this.concatVis = false;
|
|
this.addCustomerRecShow1 =false;
|
|
this.addCustomerRecShow1 =false;
|
|
this.customerRec = {};
|
|
this.customerRec = {};
|
|
},
|
|
},
|
|
async customerRecquerry(){
|
|
async customerRecquerry(){
|
|
- if(this.customerRec['companyName'] == null || this.customerRec['companyReferencenum'] == null
|
|
+ if(this.customerRec['companyName'] == null || this.customerRec['companyReferencenum'] == null || this.customerRec['companyType'] == null){
|
|
- || this.customerRec['companyType'] == null){
|
|
|
|
this.$message({
|
|
this.$message({
|
|
type: 'error',
|
|
type: 'error',
|
|
message: '需要填写公司名称、税号和公司类型'
|
|
message: '需要填写公司名称、税号和公司类型'
|
|
@@ -1053,10 +1047,8 @@ import XLSX from "xlsx";
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
});
|
|
});
|
|
const response = await this.$http.post(`customer/customerRecAdd`, this.customerRec);
|
|
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});
|
|
- 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.customeRecQueryListTable = response.data.data;
|
|
}
|
|
}
|
|
@@ -1075,11 +1067,10 @@ import XLSX from "xlsx";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-
|
|
|
|
},
|
|
},
|
|
generateWord(){
|
|
generateWord(){
|
|
const token = sessionStorage.getItem('token');
|
|
const token = sessionStorage.getItem('token');
|
|
- window.open(hostUrl+'customer/generateWord?customerRecId='+this.customerRec['id']+'&token='+token);
|
|
+ window.open(hostUrl+'customer/generateWord?customerRecId='+this.customerRec['id']+'&token='+token);// eslint-disable-line
|
|
},
|
|
},
|
|
async customerRecConform(){
|
|
async customerRecConform(){
|
|
const response = await this.$http.post(`customer/customeRec`, this.customerRec);
|
|
const response = await this.$http.post(`customer/customeRec`, this.customerRec);
|
|
@@ -1099,7 +1090,7 @@ import XLSX from "xlsx";
|
|
}
|
|
}
|
|
},
|
|
},
|
|
changeRow(id){
|
|
changeRow(id){
|
|
- if(id == 0){
|
|
+ if(id === 0){
|
|
this.showEtcFee =true
|
|
this.showEtcFee =true
|
|
}else{
|
|
}else{
|
|
this.showEtcFee =false
|
|
this.showEtcFee =false
|
|
@@ -1122,9 +1113,7 @@ import XLSX from "xlsx";
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
+ async contractStatusFail() {
|
|
- async contractStatusFail(){
|
|
|
|
-
|
|
|
|
const response = await this.$http.post(`customer/contractStatusFail`, this.customerRec);
|
|
const response = await this.$http.post(`customer/contractStatusFail`, this.customerRec);
|
|
if(response.data.code === 0) {
|
|
if(response.data.code === 0) {
|
|
this.loadData();
|
|
this.loadData();
|
|
@@ -1142,8 +1131,7 @@ import XLSX from "xlsx";
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- async contractStatusProcess(){
|
|
+ async contractStatusProcess() {
|
|
-
|
|
|
|
const response = await this.$http.post(`customer/contractStatusProcess`, this.customerRec);
|
|
const response = await this.$http.post(`customer/contractStatusProcess`, this.customerRec);
|
|
if(response.data.code === 0) {
|
|
if(response.data.code === 0) {
|
|
this.loadData();
|
|
this.loadData();
|
|
@@ -1160,9 +1148,7 @@ import XLSX from "xlsx";
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
+ async contractStatusSuccess() {
|
|
- async contractStatusSuccess(){
|
|
|
|
-
|
|
|
|
const response = await this.$http.post(`customer/contractStatusSuccess`, this.customerRec);
|
|
const response = await this.$http.post(`customer/contractStatusSuccess`, this.customerRec);
|
|
if(response.data.code === 0) {
|
|
if(response.data.code === 0) {
|
|
this.loadData();
|
|
this.loadData();
|
|
@@ -1182,7 +1168,7 @@ import XLSX from "xlsx";
|
|
|
|
|
|
contractDownload(){
|
|
contractDownload(){
|
|
const token = sessionStorage.getItem('token');
|
|
const token = sessionStorage.getItem('token');
|
|
- window.open(hostUrl+'customer/contractDownload?customerRecId='+this.customerRec['id']+'&token='+token);
|
|
+ window.open(hostUrl+'customer/contractDownload?customerRecId='+this.customerRec['id']+'&token='+token);// eslint-disable-line
|
|
},
|
|
},
|
|
firstLoadData(){
|
|
firstLoadData(){
|
|
this.current = 1;
|
|
this.current = 1;
|
|
@@ -1220,7 +1206,7 @@ import XLSX from "xlsx";
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
});
|
|
});
|
|
let customer = this.formCondition.customerName;
|
|
let customer = this.formCondition.customerName;
|
|
- window.location.href = hostUrl+"customer/findCustomerRecListExport?customerName="+customer+"&&companyName="+this.formCondition.subCompany+"&&companyBelongName="+this.formCondition.company+"&&token="+sessionStorage.getItem('token');
|
|
+ window.location.href = hostUrl+"customer/findCustomerRecListExport?customerName="+customer+"&&companyName="+this.formCondition.subCompany+"&&companyBelongName="+this.formCondition.company+"&&token="+sessionStorage.getItem('token');// eslint-disable-line
|
|
loading.close();
|
|
loading.close();
|
|
// let curr = this.current;
|
|
// let curr = this.current;
|
|
// let pagesize1 = this.pagesize;
|
|
// let pagesize1 = this.pagesize;
|
|
@@ -1255,7 +1241,7 @@ import XLSX from "xlsx";
|
|
// this.pagesize = pagesize1;
|
|
// this.pagesize = pagesize1;
|
|
// this.loadData();
|
|
// this.loadData();
|
|
// return wbout;
|
|
// return wbout;
|
|
- },
|
|
+ }
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|