Browse Source

前端代码提交

mashengyi 3 years ago
parent
commit
8286c9d03e
3 changed files with 38 additions and 4 deletions
  1. 9 0
      houtaixiangmu.iml
  2. 28 3
      src/views/customer/Customer.vue
  3. 1 1
      src/views/sys/user.vue

+ 9 - 0
houtaixiangmu.iml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <output url="file://$MODULE_DIR$/bin" />
+    <exclude-output />
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 28 - 3
src/views/customer/Customer.vue

@@ -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) {

+ 1 - 1
src/views/sys/user.vue

@@ -430,7 +430,7 @@ export default{
       
     // },
     changeRow(id){
-     if(id == 3){
+     if(id == 0){
        this.showEtcFee =true
      }else{
        this.showEtcFee =false