|
@@ -6,7 +6,7 @@
|
|
|
<div class="top">
|
|
|
<el-input placeholder="客户名称" class="input-demo" v-model="formCondition.customName"></el-input>
|
|
|
<el-button type="success" style="margin-left: 1%;" @click="loadData">查询</el-button>
|
|
|
- <!-- <el-button type="success" style="margin-left: 1%;" @click="addCustomerShow = true">添加</el-button> -->
|
|
|
+ <el-button type="success" style="margin-left: 1%;" @click="addCustomerShow = true">添加</el-button>
|
|
|
<el-button type="primary" style="margin-left: 1%;" @click="exportExcel">导出报表</el-button>
|
|
|
|
|
|
</div>
|
|
@@ -111,7 +111,17 @@
|
|
|
<el-form-item label="客户主体" prop="customerCompany">
|
|
|
<el-input v-model="customer.company" auto-complete="off" placeholder="请输入主体名称"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="ETC卡月费" prop="customerCompany">
|
|
|
+ <el-form-item label="业务类型" prop="bussinessType">
|
|
|
+ <el-select v-model="customer.bussinessType" @change="changeRow" placeholder="请选择业务类型" style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in roleList"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="ETC卡月费" v-show="showEtcFee" prop="customerCompany">
|
|
|
<el-input v-model="customer.fee" auto-complete="off" placeholder="etc卡月费用"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -676,6 +686,13 @@ import XLSX from "xlsx";
|
|
|
value: 1,
|
|
|
label: '停用'
|
|
|
}],
|
|
|
+ roleList: [{
|
|
|
+ value: 0,
|
|
|
+ label: '自有车'
|
|
|
+ }, {
|
|
|
+ value: 2,
|
|
|
+ label: '无车'
|
|
|
+ }],
|
|
|
current: 1,
|
|
|
pagesize: 8,
|
|
|
total:'',
|
|
@@ -687,7 +704,8 @@ import XLSX from "xlsx";
|
|
|
accIsclose:false,
|
|
|
carRecclose:false,
|
|
|
recVisList:false,
|
|
|
- disable:false
|
|
|
+ disable:false,
|
|
|
+ showEtcFee:false
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -927,6 +945,13 @@ import XLSX from "xlsx";
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ changeRow(id){
|
|
|
+ if(id == 0){
|
|
|
+ this.showEtcFee =true
|
|
|
+ }else{
|
|
|
+ this.showEtcFee =false
|
|
|
+ }
|
|
|
+ },
|
|
|
async contractAdd(){
|
|
|
const response = await this.$http.post(`customer/contractAdd`, this.customerRec);
|
|
|
if(response.data.code === 0) {
|