|
@@ -169,6 +169,7 @@ export default {
|
|
|
bgColor:'linear-gradient(45deg, grey, grey)',
|
|
|
useColor:'linear-gradient(45deg, orange, red)',
|
|
|
dialogVisible:false,
|
|
|
+ message:'',
|
|
|
dataNow:'',
|
|
|
versionList:[],
|
|
|
modulesList:[],
|
|
@@ -417,6 +418,7 @@ export default {
|
|
|
this.list.forEach(item=>{
|
|
|
if (item.checkRow){
|
|
|
this.userids.push({
|
|
|
+ "name":item.name,
|
|
|
"isleader": item.isleader,
|
|
|
"userid": item.userid,
|
|
|
"sa_agentsid": item.sa_agentsid,
|
|
@@ -425,6 +427,17 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.accountNum = this.userids.length
|
|
|
+ this.message = ''
|
|
|
+ this.userids.forEach((item,index)=>{
|
|
|
+ if (item.enddate !== '' && item.enddate !== undefined){
|
|
|
+ if (index === 0){
|
|
|
+ this.message = item.name
|
|
|
+ }else {
|
|
|
+ this.message = this.message + ',' + item.name
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
let newLength = this.userids.filter(item=>{
|
|
|
return item.isleader !== 1
|
|
|
})
|
|
@@ -458,28 +471,64 @@ export default {
|
|
|
this.coupon_amount = 0
|
|
|
}
|
|
|
if (this.createNow){
|
|
|
- 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)
|
|
|
+ console.log(this.message,'mess')
|
|
|
+ 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.$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.$emit('onSuccess',this.form.sys_payorderid,this.form.orderno,this.message)
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+
|
|
|
+ });
|
|
|
}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.$emit('onSuccess',this.form.sys_payorderid,this.form.orderno)
|
|
|
+ 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.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.$emit('onSuccess',this.form.sys_payorderid,this.form.orderno,this.message)
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
onClose(){
|