Ver Fonte

付费规则更新

qymljy há 2 anos atrás
pai
commit
a224d5d4b7

+ 1 - 0
src/SManagement/user/pay-orders/index.vue

@@ -121,6 +121,7 @@ export default {
   },
   mounted() {
     this.listData()
+    this.$refs.add.queryInstructions()
     if (this.$route.query.isPay === '1'){
       this.$refs.add.onShow()
     }

+ 7 - 4
src/SManagement/user/pay-orders/modules/add.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <el-button class="inline-24" type="primary" size="small"  @click="onShow">新建付费订单</el-button>
+    <el-button class="inline-24" type="primary" size="small"  @click="onShow" v-if="sys_payswitch == 1">新建付费订单</el-button>
     <el-dialog
         title="新建付费订单"
         :visible.sync="dialogVisible"
@@ -82,14 +82,14 @@
                   <span v-if="form.sys_site_systempartitionid == index">{{item}}</span>
                 </span>
               </span>
-              <p v-else>{{scope.column.data[scope.column.columnname] || ''}}</p>
+              <p v-else>{{scope.column.data[scope.column.columnname] || '--'}}</p>
             </template>
             <template v-slot:opreation="scope">
               <el-checkbox :checked="scope.data.checkRow" @change="userCheck(scope.data)"></el-checkbox>
             </template>
           </tableLayout>
         </el-col>
-        <el-col :span="24" class="div_top" v-else>
+        <el-col :span="24" class="div_top" v-if="sys_payincidence == '2'">
           <tableLayout :layout="tablecolsMain" :data="list"  :opwidth="200" :custom="true"  height="370px" fixedName="operation">
             <template v-slot:customcol="scope">
               <span v-if="scope.column.columnname === 'operation'" ></span>
@@ -160,7 +160,8 @@ export default {
       userids:[],
       accountNum:0,
       amount:0,
-      createNow:false
+      createNow:false,
+      sys_payswitch:'1'
     }
   },
   components:{tableLayout},
@@ -191,6 +192,7 @@ export default {
       })
       this.payInstructions = res.data.sys_payinstructions
       this.sys_payincidence = res.data.sys_payincidence
+      this.sys_payswitch = res.data.sys_payswitch
     },
     /*查询可选版本信息*/
     async queryVersion(){
@@ -226,6 +228,7 @@ export default {
       this.list = res.data.map(item=>{
         return {
           accountno:item.accountno,
+          name:item.name,
           agentname:item.agentname,
           enddate:item.enddate,
           isleader:item.isleader,