qymljy 2 rokov pred
rodič
commit
5facffe3c7

+ 25 - 4
src/HManagement/accountManage/index.vue

@@ -1,7 +1,8 @@
 <template>
-  <div>
+  <div >
     <div class="container normal-panel normal-margin">
       <add style="margin-right:10px;" v-if="tool.checkAuth($route.name,'insert')" @onSuccess="onSuccess"></add>
+<!--      <el-button @click="query">获取</el-button>-->
     </div>
     <list v-if="tool.checkAuth($route.name,'read')" ref="list" @handleSelectionChange="handleSelectionChange">
       <template v-slot:detail="scope">
@@ -47,7 +48,9 @@ export default {
   },
   data () {
     return {
-      accounts:[]
+      accounts:[],
+      moduleList:[],
+      list:[]
     }
   },
   methods:{
@@ -58,7 +61,24 @@ export default {
       console.log(arr)
       this.accounts = arr
     },
-    
+    query(){
+      var module = []
+      module = sessionStorage.getItem('module_info')
+      module = JSON.parse(module)
+      console.log(module,'module')
+      module.forEach(item=>{
+        if (item.systemname === '通用'){
+          this.moduleList = item
+        }
+      })
+      console.log(this.moduleList,'moduleList')
+      this.moduleList.forEach(item => {
+        if (item.systemmodulename === '用户管理') {
+          this.list = item
+        }
+      })
+      console.log(this.list,'list')
+    }
   }
 }
 
@@ -69,4 +89,5 @@ export default {
 .borderRight{
   border-right: 1px solid #ccc;
 }
-</style>
+
+</style>

+ 10 - 1
src/SManagement/user/pay-orders/modules/add.vue

@@ -5,6 +5,7 @@
         title="新建付费订单"
         :visible.sync="dialogVisible"
         width="980px"
+        @close="onClose"
        >
       <el-row :gutter="20" style="margin-top: -20px">
         <el-col :span="24" v-if="payInstructions">
@@ -259,14 +260,16 @@ export default {
     /*选择付费账号*/
     userCheck(val){
       this.userids = []
+      console.log(val)
       val.checkRow ? this.list[val.index].checkRow = false : this.list[val.index].checkRow = true
       this.list.forEach(item=>{
         if (item.checkRow){
+          console.log(item.enddate[this.form.sys_site_systempartitionid])
           this.userids.push({
             "isleader": item.isleader,
             "userid": item.userid,
             "sa_agentsid": item.sa_agentsid,
-            "enddate": item.enddate
+            "enddate": item.enddate[this.form.sys_site_systempartitionid]
           })
         }
       })
@@ -295,9 +298,15 @@ export default {
       this.amount = res.data.amount
       if (this.createNow){
         this.dialogVisible = false
+        this.createNow = false
+        this.amount = 0
         this.$emit('onSuccess',this.form.sys_payorderid,this.form.orderno)
       }
 
+    },
+    onClose(){
+      this.dialogVisible = false
+      this.createNow = false
     }
   },
   created() {

+ 2 - 2
src/views/select_accounts/index.vue

@@ -35,7 +35,7 @@ export default {
     // 查询应用授权
     async query_userauth () {
       const res = await this.$api.requested({
-        "classname": "sysmanage.develop.userauth.userauth",
+        "classname": "system.payorder.payorder",
         "method": "query_userauth",
         "content": {
         }
@@ -121,4 +121,4 @@ export default {
   background: #fff no-repeat 50% url(../../assets/bg.png);
   background-size: 2560px 1490px;
 }
-</style>
+</style>