|
@@ -39,7 +39,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>-->
|
|
|
- <tableLayout :layout="tablecolsVersion" :data="versionList" :opwidth="200" :custom="true" fixedName="operation" @rowClick="rowClick">
|
|
|
+ <tableLayout ref="version" :layout="tablecolsVersion" :data="versionList" :opwidth="200" :custom="true" fixedName="operation" @rowClick="rowClick">
|
|
|
<template v-slot:customcol="scope">
|
|
|
<span v-if="scope.column.columnname === 'operation'" ></span>
|
|
|
<p v-else>{{scope.column.data[scope.column.columnname] || '--'}}</p>
|
|
@@ -84,7 +84,7 @@
|
|
|
<span>选择付费账号:</span>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="div_top" v-if="sys_payincidence == '1'">
|
|
|
- <tableLayout :layout="tablecolsAccount" :data="list" :opwidth="200" :custom="true" height="370px" fixedName="operation">
|
|
|
+ <tableLayout ref="account1" :layout="tablecolsAccount" :data="list" :opwidth="200" :custom="true" height="240px" fixedName="operation">
|
|
|
<template v-slot:customcol="scope">
|
|
|
<span v-if="scope.column.columnname === 'operation'" ></span>
|
|
|
<span v-else-if="scope.column.columnname === 'enddate'">
|
|
@@ -100,7 +100,7 @@
|
|
|
</tableLayout>
|
|
|
</el-col>
|
|
|
<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">
|
|
|
+ <tableLayout ref="account2" :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>
|
|
|
<span v-else-if="scope.column.columnname === 'enddate'">
|
|
@@ -180,10 +180,10 @@ export default {
|
|
|
methods:{
|
|
|
onShow(){
|
|
|
this.dialogVisible = true
|
|
|
- this.queryVersion()
|
|
|
+
|
|
|
/*this.queryAccount()*/
|
|
|
this.queryInstructions()
|
|
|
- /* this.creatOrder()*/
|
|
|
+ this.creatOrder()
|
|
|
},
|
|
|
/*新建订单*/
|
|
|
async creatOrder(){
|
|
@@ -194,6 +194,7 @@ export default {
|
|
|
})
|
|
|
this.form.sys_payorderid = res.data.sys_payorderid
|
|
|
this.form.orderno = res.data.orderno
|
|
|
+ this.queryVersion()
|
|
|
},
|
|
|
/*查询付费说明*/
|
|
|
async queryInstructions(){
|
|
@@ -233,6 +234,7 @@ export default {
|
|
|
this.modulesList = this.versionList[0].systemapp
|
|
|
this.form.sys_site_systempartitionid = this.versionList[0].sys_site_systempartitionid
|
|
|
this.queryAccount()
|
|
|
+ this.$refs.version.$refs.myTable.doLayout()
|
|
|
},
|
|
|
/*获取可选账号*/
|
|
|
async queryAccount(){
|
|
@@ -280,10 +282,13 @@ export default {
|
|
|
})
|
|
|
this.accountNum = this.userids.length
|
|
|
this.queryPrice()
|
|
|
+ this.$refs.account1.$refs.myTable.doLayout()
|
|
|
+ this.$refs.account2.$refs.myTable.doLayout()
|
|
|
},
|
|
|
/*选择版本*/
|
|
|
onCheck(val){
|
|
|
this.userLeader = ''
|
|
|
+ this.userids = []
|
|
|
this.versionList.forEach(item=>{
|
|
|
if (item.sys_site_systempartitionid === val.sys_site_systempartitionid){
|
|
|
item.checkRow = true
|
|
@@ -293,7 +298,7 @@ export default {
|
|
|
}
|
|
|
this.modulesList = val.systemapp
|
|
|
})
|
|
|
- this.userids = []
|
|
|
+
|
|
|
/* this.list.forEach(item=>{
|
|
|
if (item.checkRow){
|
|
|
item.checkRow = false
|
|
@@ -305,7 +310,6 @@ export default {
|
|
|
/*选择付费账号*/
|
|
|
userCheck(val){
|
|
|
this.userids = []
|
|
|
- console.log(val,2222)
|
|
|
if (this.userLeader !== val.userid){
|
|
|
val.checkRow ? this.list[val.index].checkRow = false : this.list[val.index].checkRow = true
|
|
|
}
|
|
@@ -327,7 +331,6 @@ export default {
|
|
|
},
|
|
|
onSubmit(){
|
|
|
this.createNow = true
|
|
|
- this.form.remarks = ''
|
|
|
this.queryPrice()
|
|
|
},
|
|
|
/*获取订单价格*/
|
|
@@ -348,15 +351,18 @@ export default {
|
|
|
this.createNow = false
|
|
|
this.amount = 0
|
|
|
this.userLeader = ''
|
|
|
+ this.form.remarks = ''
|
|
|
+ this.accountNum = 0
|
|
|
this.$emit('onSuccess',this.form.sys_payorderid,this.form.orderno)
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
onClose(){
|
|
|
this.dialogVisible = false
|
|
|
this.createNow = false
|
|
|
this.userLeader = ''
|
|
|
+ this.form.remarks = ''
|
|
|
this.amount = 0
|
|
|
+ this.accountNum = 0
|
|
|
}
|
|
|
},
|
|
|
created() {
|