xiaojincai 5 年之前
父節點
當前提交
d6319dc375
共有 3 個文件被更改,包括 76 次插入10 次删除
  1. 26 3
      src/views/apply/Change.vue
  2. 24 4
      src/views/apply/New.vue
  3. 26 3
      src/views/apply/Update.vue

+ 26 - 3
src/views/apply/Change.vue

@@ -1,4 +1,14 @@
-
+<style lang="scss">
+    .paydone{
+        color:#67C23A;
+    }
+    .unpay{
+        color:#FFB800;
+    }
+    .payprice{
+        color:#409EFF;
+    }
+</style>
 <template>
     <section class="apply">
         <p>报名列表 > {{subject_item}} > 换证</p>
@@ -129,6 +139,19 @@
                 width="40">
                 </el-table-column>
                 <template v-for="(item,index) in itemList" >
+                    <el-table-column :key='index' v-if='item.checked&&item.name=="支付状态"' :width='item.width'
+                    :prop="item.value"  :label="item.name" :class-name="item.value">
+                        <template  slot-scope="scope">
+                            <span v-if="scope.row.pay_status_1" class="paydone">已支付</span>       
+                            <span v-else class="unpay">未支付</span>       
+                        </template>
+                    </el-table-column>
+                    <el-table-column :key='index' v-if='item.checked&&item.name=="支付金额"' :width='item.width'
+                    :prop="item.value"  :label="item.name" :class-name="item.value">
+                        <template  slot-scope="scope">
+                            <span class="payprice">{{scope.row.price}}</span>       
+                        </template>
+                    </el-table-column>
                     <el-table-column :key='index' v-if='item.checked&&item.name=="学时证明"' :width='item.width'
                     :prop="item.value"  :label="item.name" :class-name="item.value">
                         <template  slot-scope="scope">
@@ -148,7 +171,7 @@
                         <el-button size="mini" v-if='scope.row.order_status==9' type="danger">{{scope.row.order_status_1}}</el-button>         
                     </template>
                     </el-table-column>
-                    <el-table-column :key='index' v-if='item.checked&&item.name!="状态"&&item.name!="学时证明"' :width='item.width'
+                    <el-table-column :key='index' v-if='item.checked&&item.name!="状态"&&item.name!="学时证明"&&item.name!="支付状态"&&item.name!="支付金额"' :width='item.width'
                     :prop="item.value"  :label="item.name" :show-overflow-tooltip="true">
                     </el-table-column>
                 </template>             
@@ -203,7 +226,7 @@ export default {
       itemList:[
           {name:'姓名', value:'name',checked:true},
           {name:'联系电话', value:'phone',checked:true,width:'120px'},
-          {name:'状态', value:'order_status_1',checked:true,width:'200px'},
+          {name:'状态', value:'order_status_1',checked:true,width:'100px'},
           {name:'支付状态', value:'pay_status_1',checked:true},
           {name:'支付金额', value:'price',checked:true},
           {name:'管理员备注', value:'remark',checked:true,width:'150px'},

+ 24 - 4
src/views/apply/New.vue

@@ -1,6 +1,13 @@
 <style lang="scss">
-    
-    
+    .paydone{
+        color:#67C23A;
+    }
+    .unpay{
+        color:#FFB800;
+    }
+    .payprice{
+        color:#409EFF;
+    }
 </style>
 <template>
     <section class="apply" v-loading="download_loading">
@@ -136,6 +143,19 @@
                 width="40">
                 </el-table-column>
                 <template v-for="(item,index) in itemList" >
+                    <el-table-column :key='index' v-if='item.checked&&item.name=="支付状态"' :width='item.width'
+                    :prop="item.value"  :label="item.name" :class-name="item.value">
+                        <template  slot-scope="scope">
+                            <span v-if="scope.row.pay_status_1" class="paydone">已支付</span>       
+                            <span v-else class="unpay">未支付</span>       
+                        </template>
+                    </el-table-column>
+                    <el-table-column :key='index' v-if='item.checked&&item.name=="支付金额"' :width='item.width'
+                    :prop="item.value"  :label="item.name" :class-name="item.value">
+                        <template  slot-scope="scope">
+                            <span class="payprice">{{scope.row.price}}</span>       
+                        </template>
+                    </el-table-column>
                     <el-table-column :key='index' v-if='item.checked&&item.name=="学时证明"' :width='item.width'
                     :prop="item.value"  :label="item.name" :class-name="item.value">
                         <template  slot-scope="scope">
@@ -155,7 +175,7 @@
                             <el-button size="mini" v-if='scope.row.order_status==9' type="danger">{{scope.row.order_status_1}}</el-button>    
                         </template>
                     </el-table-column>
-                    <el-table-column :key='index' v-if='item.checked&&item.name!="状态"&&item.name!="学时证明"' :width='item.width'
+                    <el-table-column :key='index' v-if='item.checked&&item.name!="状态"&&item.name!="学时证明"&&item.name!="支付状态"&&item.name!="支付金额"' :width='item.width'
                     :prop="item.value"  :label="item.name" :show-overflow-tooltip="true">
                     </el-table-column>
                 </template>             
@@ -209,7 +229,7 @@ export default {
       itemList:[
           {name:'姓名', value:'name',checked:true},
           {name:'联系电话', value:'phone',checked:true,width:'120px'},
-          {name:'状态', value:'order_status_1',checked:true,width:'200px'},
+          {name:'状态', value:'order_status_1',checked:true,width:'100px'},
           {name:'支付状态', value:'pay_status_1',checked:true},
           {name:'支付金额', value:'price',checked:true},
           {name:'管理员备注', value:'remark',checked:true,width:'150px'},

+ 26 - 3
src/views/apply/Update.vue

@@ -1,4 +1,14 @@
-
+<style lang="scss">
+    .paydone{
+        color:#67C23A;
+    }
+    .unpay{
+        color:#FFB800;
+    }
+    .payprice{
+        color:#409EFF;
+    }
+</style>
 <template>
     <section class="apply">
         <p>报名列表 > {{subject_item}} > 复审</p>
@@ -129,6 +139,19 @@
                 width="40">
                 </el-table-column>
                 <template v-for="(item,index) in itemList" >
+                    <el-table-column :key='index' v-if='item.checked&&item.name=="支付状态"' :width='item.width'
+                    :prop="item.value"  :label="item.name" :class-name="item.value">
+                        <template  slot-scope="scope">
+                            <span v-if="scope.row.pay_status_1" class="paydone">已支付</span>       
+                            <span v-else class="unpay">未支付</span>       
+                        </template>
+                    </el-table-column>
+                    <el-table-column :key='index' v-if='item.checked&&item.name=="支付金额"' :width='item.width'
+                    :prop="item.value"  :label="item.name" :class-name="item.value">
+                        <template  slot-scope="scope">
+                            <span class="payprice">{{scope.row.price}}</span>       
+                        </template>
+                    </el-table-column>
                     <el-table-column :key='index' v-if='item.checked&&item.name=="学时证明"' :width='item.width'
                     :prop="item.value"  :label="item.name" :class-name="item.value">
                         <template  slot-scope="scope">
@@ -148,7 +171,7 @@
                         <el-button size="mini" v-if='scope.row.order_status==9' type="danger">{{scope.row.order_status_1}}</el-button>            
                     </template>
                     </el-table-column>
-                    <el-table-column :key='index' v-if='item.checked&&item.name!="状态"&&item.name!="学时证明"' :width='item.width'
+                    <el-table-column :key='index' v-if='item.checked&&item.name!="状态"&&item.name!="学时证明"&&item.name!="支付状态"&&item.name!="支付金额"' :width='item.width'
                     :prop="item.value"  :label="item.name" :show-overflow-tooltip="true">
                     </el-table-column>
                 </template>             
@@ -203,7 +226,7 @@ export default {
       itemList:[
           {name:'姓名', value:'name',checked:true},
           {name:'联系电话', value:'phone',checked:true,width:'120px'},
-          {name:'状态', value:'order_status_1',checked:true,width:'200px'},
+          {name:'状态', value:'order_status_1',checked:true,width:'100px'},
           {name:'支付状态', value:'pay_status_1',checked:true},
           {name:'支付金额', value:'price',checked:true},
           {name:'管理员备注', value:'remark',checked:true,width:'150px'},