tanyanfei 5 jaren geleden
bovenliggende
commit
e1c8ce8f2c
6 gewijzigde bestanden met toevoegingen van 110 en 78 verwijderingen
  1. 62 0
      src/style/home.scss
  2. 13 1
      src/views/apply/Detail.vue
  3. 28 16
      src/views/apply/Edit.vue
  4. 1 60
      src/views/apply/New.vue
  5. 5 0
      src/views/project/Index.vue
  6. 1 1
      src/views/system/Index.vue

+ 62 - 0
src/style/home.scss

@@ -141,6 +141,68 @@ $height: 50px;
 	font-size: 14px;
 	color: #6A737B;
 }
+// 报名列表页面
+.apply{
+	.filter{
+		 background: #fff;
+		 padding: 20px 20px 10px; 
+		 border:1px solid #EDEDED;
+		 border-radius:2px;
+		 margin-bottom: 10px;
+		 margin-top: 10px;
+		 .el-form-item{
+			 margin-bottom: 10px;
+		 }
+		 .el-input,.el-select{
+			 width: 150px;
+		 }
+ 
+	}
+	
+	.el-divider--horizontal{
+		margin: 10px 0 20px;
+	}
+	.divider{
+	 //    margin-bottom: 15px;
+		background: #fff;
+		padding: 10px;
+		.el-button--small, .el-button--small.is-round {
+			 padding: 9px 5px;
+		 }
+		 .el-button+.el-button{
+			 margin-left: 5px;
+		 }
+	}
+	thead{
+		th{
+			background: #eee;
+		}
+	}   
+	.el-button--warning {
+	 color: #FFF;
+	 background-color: #FFB800;
+	 border-color: #FFB800;
+	 }
+	 .el-button--info {
+	 color: #FFF;
+	 background-color: #393D49;
+	 border-color: #393D49;
+	 }  
+	 .checkList{
+		 padding:0 10px;
+		 label{
+			 margin: 5px 0;
+		 }
+	 }
+	 .table{
+		 button{
+			 padding:6px;
+		 }
+	 }
+	 .el-table__fixed-right::before, .el-table__fixed::before{
+		 background: none;
+	 }
+ }
 @media (max-width: 750px) {
 	.left-aside {
 		position: absolute;

+ 13 - 1
src/views/apply/Detail.vue

@@ -103,6 +103,14 @@
                <li>
                    培训类型  <span>{{form.subject_items[2]}}</span>
                </li>
+               <li>
+                   发票类型  <span v-if='form.bill_type == 1'>不需要发票</span>
+                   <span v-if='form.bill_type == 2'>个人发票</span>
+                   <span v-if='form.bill_type == 3'>企业发票</span>
+               </li>
+               <li v-if='form.bill_type == 3'>
+                   税号  <span>{{form.bill_no}}</span>
+               </li>
                <li>
                    单位名称  <span>{{form.company}}</span>
                </li>
@@ -140,7 +148,7 @@
                         <el-tag v-else type="danger">未支付</el-tag>
                     </li>
                     <li>
-                        订单总额  <span>{{form.price}}</span>
+                        订单总额  <span>{{form.total_fee}}</span>
                     </li>
                     <li>
                         培训金额  <span>{{form.price}}</span>
@@ -162,6 +170,10 @@
                     <li class="title">学历照</li>
                     <img width="100%" :src="form.education_img" alt="">
                 </ul>
+                <ul v-if='form.train_type == "换证"'>
+                    <li class="title">换证证件照</li>
+                    <img width="100%" :src="form.oldcard_img" alt="">
+                </ul>
            </div>
         </div>
     </section>

+ 28 - 16
src/views/apply/Edit.vue

@@ -2,9 +2,10 @@
     .edit{
         button{
             position: relative;
+            width: 100%;
         }
-        .el-input{
-            width: 300px;
+        .el-input,.el-select,.el-cascader{
+            width: 100% !important;
             position: relative;
         }
         .gou{
@@ -69,14 +70,18 @@
                 </el-form-item>
                 <el-form-item label="发票类型">
                     <el-select v-model="form.bill_type" placeholder="请选择" clearable>
-                        <el-option  label="不需要发票"  :value="0"></el-option>
-                        <el-option  label="个人发票"  :value="1"></el-option>
-                        <el-option  label="公司发票"  :value="2"></el-option>
+                        <el-option  label="不需要发票"  :value="1"></el-option>
+                        <el-option  label="个人发票"  :value="2"></el-option>
+                        <el-option  label="企业发票"  :value="3"></el-option>
                     </el-select>
                 </el-form-item>
-                <el-form-item label="发票方式">
+                <el-form-item label="发票方式" v-if='form.bill_type != 1'>
                           <el-radio v-model="form.bill_type" label="1">纸质发票</el-radio>
                 </el-form-item>
+                <el-form-item label="税号" v-if='form.bill_type == 3'>
+                    <span v-show="form.bill_no" class="gou">✓</span>
+                        <el-input  v-model="form.bill_no"></el-input>
+                </el-form-item>
                 <el-form-item label="领证方式">
                     <el-radio-group v-model="form.receive_card">
                             <el-radio label="自取">自取</el-radio>
@@ -94,32 +99,39 @@
                         <el-input  v-model="form.address"></el-input>
                 </el-form-item>
                 
-                <el-form-item label="正面照">
+                <el-form-item label="">
                         <template  v-if="form.idnoimg_face" >
                             <img width="150" :src="form.idnoimg_face" alt=""> <br>
                         </template>
-                        <el-button type="warning">上传 <input @change="upload('idnoimg_face')" id='idnoimg_face' type="file"> </el-button>
+                        <el-button icon="el-icon-upload" type="warning">上传正面照 <input @change="upload('idnoimg_face')" id='idnoimg_face' type="file"> </el-button>
                 </el-form-item>
-                <el-form-item label="反面照">
+                <el-form-item label="">
                     <template  v-if="form.idnoimg_back" >
                         <img width="150" :src="form.idnoimg_back" alt=""> <br>
                     </template>
-                        <el-button type="warning">上传 <input @change="upload('idnoimg_back')" id='idnoimg_back' type="file"> </el-button>
+                        <el-button icon="el-icon-upload" type="warning">上传反面照 <input @change="upload('idnoimg_back')" id='idnoimg_back' type="file"> </el-button>
                 </el-form-item>
-                <el-form-item label="上半身照">
+                <el-form-item label="">
                         <template  v-if="form.halfbody_img" >
                             <img width="150" :src="form.halfbody_img" alt=""> <br>
                         </template>
-                        <el-button type="warning">上传 <input @change="upload('halfbody_img')" id='halfbody_img' type="file"> </el-button>
+                        <el-button icon="el-icon-upload" type="warning">上传上半身照 <input @change="upload('halfbody_img')" id='halfbody_img' type="file"> </el-button>
                 </el-form-item>
-                <el-form-item label="学历照">
+                <el-form-item label="">
                         <template  v-if="form.education_img" >
                             <img width="150" :src="form.education_img" alt=""> <br>
                         </template>
-                        <el-button type="warning">上传 <input @change="upload('education_img')" id='education_img' type="file"> </el-button>
+                        <el-button icon="el-icon-upload" type="warning">上传学历照 <input @change="upload('education_img')" id='education_img' type="file"> </el-button>
                 </el-form-item>
+                <el-form-item label="" v-if='form.train_type == "换证"'>
+                        <template  v-if="form.oldcard_img" >
+                            <img width="150" :src="form.oldcard_img" alt=""> <br>
+                        </template>
+                        <el-button icon="el-icon-upload" type="warning">上传换证证件照 <input @change="upload('oldcard_img')" id='oldcard_img' type="file"> </el-button>
+                </el-form-item>
+                
                 <el-form-item label=" " >
-                        <el-button @click="save" style="width:300px" type="primary">保存</el-button>
+                        <el-button @click="save" type="primary">修改报名</el-button>
                 </el-form-item>
             </el-form>
         </div>
@@ -167,7 +179,7 @@ export default {
           this.$api.updateSign(parm).then(res=>{
                 if(res.data.code==0){
                       this.$message({message: '修改成功!',type: 'success'});
-                    //   this.$router.push({path:'/new'})
+                      this.$router.go(-1);
                   }else{
                       this.$message.error(res.data.message);
                   }

+ 1 - 60
src/views/apply/New.vue

@@ -1,65 +1,6 @@
 <style lang="scss">
-    .apply{
-       .filter{
-            background: #fff;
-            padding: 20px 20px 10px; 
-            border:1px solid #EDEDED;
-            border-radius:2px;
-            margin-bottom: 10px;
-            margin-top: 10px;
-            .el-form-item{
-                margin-bottom: 10px;
-            }
-            .el-input,.el-select{
-                width: 150px;
-            }
     
-       }
-       
-       .el-divider--horizontal{
-           margin: 10px 0 20px;
-       }
-       .divider{
-        //    margin-bottom: 15px;
-           background: #fff;
-           padding: 10px;
-           .el-button--small, .el-button--small.is-round {
-                padding: 9px 5px;
-            }
-            .el-button+.el-button{
-                margin-left: 5px;
-            }
-       }
-       thead{
-           th{
-               background: #eee;
-           }
-       }   
-       .el-button--warning {
-        color: #FFF;
-        background-color: #FFB800;
-        border-color: #FFB800;
-        }
-        .el-button--info {
-        color: #FFF;
-        background-color: #393D49;
-        border-color: #393D49;
-        }  
-    }
-    .checkList{
-           padding:0 10px;
-           label{
-               margin: 5px 0;
-           }
-    }
-    .table{
-        button{
-            padding:6px;
-        }
-    }
-    .el-table__fixed-right::before, .el-table__fixed::before{
-        background: none;
-    }
+    
 </style>
 <template>
     <section class="apply">

+ 5 - 0
src/views/project/Index.vue

@@ -116,6 +116,11 @@
                           <el-input-number v-model="form.price_change" controls-position="right" :min="0" ></el-input-number>
                           <span class="req">*</span>
                     </el-form-item>
+                    <el-form-item label="学时" v-if='form.isleaf'>
+                          <el-input v-model="form.class_hour"></el-input>
+                          <span class="req">*</span>
+                    </el-form-item>
+                    
                     <el-form-item label="排序">
                           <el-input-number v-model="form.order" controls-position="right" :min="0" ></el-input-number>
                     </el-form-item>

+ 1 - 1
src/views/system/Index.vue

@@ -26,7 +26,7 @@
   <section class="apply">
     <p>系统管理 > 账号管理</p>
     <div class="filter">
-      <el-form label-width="80px" :inline="true" size="small">
+      <el-form label-width="60px" :inline="true" size="small">
         <el-form-item label="用户名">
           <el-input placeholder="请输入用户/姓名" v-model="form.name"></el-input>
         </el-form-item>