|
@@ -207,7 +207,8 @@ export default {
|
|
|
createNow:false,
|
|
|
sys_payswitch:'1',
|
|
|
userLeader:'',
|
|
|
- version:""
|
|
|
+ version:"",
|
|
|
+ isleader:''
|
|
|
}
|
|
|
},
|
|
|
components:{tableLayout},
|
|
@@ -305,6 +306,13 @@ export default {
|
|
|
checkRow:false
|
|
|
}
|
|
|
})
|
|
|
+ this.isleader = 0
|
|
|
+ this.list.forEach(item=>{
|
|
|
+ if (item.isleader ===1){
|
|
|
+ this.isleader = 1
|
|
|
+ return
|
|
|
+ }
|
|
|
+ })
|
|
|
let date = new Date()
|
|
|
let dateNow = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
|
|
|
this.dataNow = dateNow
|
|
@@ -471,13 +479,41 @@ export default {
|
|
|
this.coupon_amount = 0
|
|
|
}
|
|
|
if (this.createNow){
|
|
|
- console.log(this.message,'mess')
|
|
|
- if (this.message !== ''){
|
|
|
- this.$confirm(this.message+' 付费还未到期,是否继续付费?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
+ if (this.isleader === 1){
|
|
|
+ if (this.message !== ''){
|
|
|
+ this.$confirm(this.message+' 付费还未到期,是否继续付费?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ if (this.amount === 0){
|
|
|
+ this.createNow = false
|
|
|
+ this.amount = 0
|
|
|
+ this.orig_amount = 0
|
|
|
+ this.coupon_amount = 0
|
|
|
+ this.userLeader = ''
|
|
|
+ this.form.remarks = ''
|
|
|
+ this.accountNum = 0
|
|
|
+ this.usAccountNum = 0
|
|
|
+ this.isleader = 0
|
|
|
+ this.$emit('addSuccess',this.form.orderno,this.message)
|
|
|
+ }else {
|
|
|
+ this.dialogVisible = false
|
|
|
+ this.createNow = false
|
|
|
+ this.amount = 0
|
|
|
+ this.orig_amount = 0
|
|
|
+ this.coupon_amount = 0
|
|
|
+ this.userLeader = ''
|
|
|
+ this.form.remarks = ''
|
|
|
+ this.accountNum = 0
|
|
|
+ this.usAccountNum = 0
|
|
|
+ this.isleader = 0
|
|
|
+ this.$emit('onSuccess',this.form.sys_payorderid,this.form.orderno,this.message)
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
+ }else {
|
|
|
if (this.amount === 0){
|
|
|
this.createNow = false
|
|
|
this.amount = 0
|
|
@@ -487,6 +523,7 @@ export default {
|
|
|
this.form.remarks = ''
|
|
|
this.accountNum = 0
|
|
|
this.usAccountNum = 0
|
|
|
+ this.isleader = 0
|
|
|
this.$emit('addSuccess',this.form.orderno,this.message)
|
|
|
}else {
|
|
|
this.dialogVisible = false
|
|
@@ -498,23 +535,17 @@ export default {
|
|
|
this.form.remarks = ''
|
|
|
this.accountNum = 0
|
|
|
this.usAccountNum = 0
|
|
|
+ this.isleader = 0
|
|
|
this.$emit('onSuccess',this.form.sys_payorderid,this.form.orderno,this.message)
|
|
|
}
|
|
|
- }).catch(() => {
|
|
|
-
|
|
|
- });
|
|
|
+ }
|
|
|
}else {
|
|
|
- if (this.amount === 0){
|
|
|
- this.createNow = false
|
|
|
- this.amount = 0
|
|
|
- this.orig_amount = 0
|
|
|
- this.coupon_amount = 0
|
|
|
- this.userLeader = ''
|
|
|
- this.form.remarks = ''
|
|
|
- this.accountNum = 0
|
|
|
- this.usAccountNum = 0
|
|
|
- this.$emit('addSuccess',this.form.orderno,this.message)
|
|
|
- }else {
|
|
|
+ this.$confirm('您的团队缺少主账号无法使用,请联系客服!', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ showCancelButton:false,
|
|
|
+ showClose:false,
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
this.dialogVisible = false
|
|
|
this.createNow = false
|
|
|
this.amount = 0
|
|
@@ -524,11 +555,11 @@ export default {
|
|
|
this.form.remarks = ''
|
|
|
this.accountNum = 0
|
|
|
this.usAccountNum = 0
|
|
|
- this.$emit('onSuccess',this.form.sys_payorderid,this.form.orderno,this.message)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
+ this.isleader = 0
|
|
|
+ }).catch(() => {
|
|
|
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
onClose(){
|