|
@@ -92,6 +92,19 @@
|
|
|
<span v-if="form.sys_site_systempartitionid == index">{{item}}</span>
|
|
|
</span>
|
|
|
</span>
|
|
|
+ <span v-else-if="scope.column.columnname === 'name'">
|
|
|
+ <span v-if="JSON.stringify(scope.column.data.enddate) === '{}'">
|
|
|
+ <span style="margin-right: 10px">{{scope.column.data.name}}</span>
|
|
|
+ <el-tag type="danger" size="mini">未付费</el-tag>
|
|
|
+ </span>
|
|
|
+ <span v-else>
|
|
|
+ <span v-if="dataNow > JSON.stringify(scope.column.data.enddate)">
|
|
|
+ <span style="margin-right: 10px">{{scope.column.data.name}}</span>
|
|
|
+ <el-tag type="danger" size="mini">未付费</el-tag>
|
|
|
+ </span>
|
|
|
+ <span v-else>{{scope.column.data.name}}</span>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
<p v-else>{{scope.column.data[scope.column.columnname] || '--'}}</p>
|
|
|
</template>
|
|
|
<template v-slot:opreation="scope">
|
|
@@ -142,6 +155,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
dialogVisible:false,
|
|
|
+ dataNow:'',
|
|
|
versionList:[],
|
|
|
modulesList:[],
|
|
|
form:{
|
|
@@ -184,6 +198,7 @@ export default {
|
|
|
/*this.queryAccount()*/
|
|
|
this.queryInstructions()
|
|
|
this.creatOrder()
|
|
|
+ /*this.queryVersion()*/
|
|
|
},
|
|
|
/*新建订单*/
|
|
|
async creatOrder(){
|
|
@@ -230,11 +245,24 @@ export default {
|
|
|
checkRow:false
|
|
|
}
|
|
|
})
|
|
|
- this.versionList[0].checkRow = true
|
|
|
- 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()
|
|
|
+ if (this.$route.query.isPay == 2){
|
|
|
+ this.versionList.forEach(item=>{
|
|
|
+ if (item.sys_site_systempartitionid == this.$route.query.id){
|
|
|
+ item.checkRow = true
|
|
|
+ this.modulesList = item.systemapp
|
|
|
+ this.form.sys_site_systempartitionid = item.sys_site_systempartitionid
|
|
|
+ this.queryAccount()
|
|
|
+ this.$refs.version.$refs.myTable.doLayout()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.versionList[0].checkRow = true
|
|
|
+ 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(){
|
|
@@ -256,34 +284,71 @@ export default {
|
|
|
})
|
|
|
let date = new Date()
|
|
|
let dateNow = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
|
|
|
- this.list.forEach((item)=>{
|
|
|
- if (item.isleader === 1){
|
|
|
- if (item.enddate[this.form.sys_site_systempartitionid]){
|
|
|
- if (dateNow > item.enddate[this.form.sys_site_systempartitionid]){
|
|
|
+ this.dataNow = dateNow
|
|
|
+ if (this.$route.query.isPay == 2){
|
|
|
+
|
|
|
+ this.list.forEach(item=>{
|
|
|
+ if (item.isleader === 1){
|
|
|
+ if (item.enddate[this.form.sys_site_systempartitionid]){
|
|
|
+ if (dateNow > item.enddate[this.form.sys_site_systempartitionid]){
|
|
|
+ item.checkRow = true
|
|
|
+ this.userLeader = item.userid
|
|
|
+ }
|
|
|
+ }else {
|
|
|
item.checkRow = true
|
|
|
this.userLeader = item.userid
|
|
|
}
|
|
|
- }else {
|
|
|
+ }
|
|
|
+ if (item.userid == this.$route.query.userid){
|
|
|
item.checkRow = true
|
|
|
- this.userLeader = item.userid
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
- this.userids = []
|
|
|
- this.list.forEach(item=>{
|
|
|
- if (item.checkRow){
|
|
|
- this.userids.push({
|
|
|
- "isleader": item.isleader,
|
|
|
- "userid": item.userid,
|
|
|
- "sa_agentsid": item.sa_agentsid,
|
|
|
- "enddate": item.enddate[this.form.sys_site_systempartitionid]
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- this.accountNum = this.userids.length
|
|
|
- this.queryPrice()
|
|
|
- this.$refs.account1.$refs.myTable.doLayout()
|
|
|
- this.$refs.account2.$refs.myTable.doLayout()
|
|
|
+ })
|
|
|
+ this.userids = []
|
|
|
+ this.list.forEach(item=>{
|
|
|
+ if (item.checkRow){
|
|
|
+ this.userids.push({
|
|
|
+ "isleader": item.isleader,
|
|
|
+ "userid": item.userid,
|
|
|
+ "sa_agentsid": item.sa_agentsid,
|
|
|
+ "enddate": item.enddate[this.form.sys_site_systempartitionid]
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.accountNum = this.userids.length
|
|
|
+ this.queryPrice()
|
|
|
+ this.$refs.account1.$refs.myTable.doLayout()
|
|
|
+ this.$refs.account2.$refs.myTable.doLayout()
|
|
|
+ }else {
|
|
|
+ this.list.forEach((item)=>{
|
|
|
+ if (item.isleader === 1){
|
|
|
+ if (item.enddate[this.form.sys_site_systempartitionid]){
|
|
|
+ if (dateNow > item.enddate[this.form.sys_site_systempartitionid]){
|
|
|
+ item.checkRow = true
|
|
|
+ this.userLeader = item.userid
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ item.checkRow = true
|
|
|
+ this.userLeader = item.userid
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.userids = []
|
|
|
+ this.list.forEach(item=>{
|
|
|
+ if (item.checkRow){
|
|
|
+ this.userids.push({
|
|
|
+ "isleader": item.isleader,
|
|
|
+ "userid": item.userid,
|
|
|
+ "sa_agentsid": item.sa_agentsid,
|
|
|
+ "enddate": item.enddate[this.form.sys_site_systempartitionid]
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.accountNum = this.userids.length
|
|
|
+ this.queryPrice()
|
|
|
+ this.$refs.account1.$refs.myTable.doLayout()
|
|
|
+ this.$refs.account2.$refs.myTable.doLayout()
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
/*选择版本*/
|
|
|
onCheck(val){
|