|
@@ -347,6 +347,7 @@ import bUpload from '@/components/uploadFile.vue'
|
|
|
import saleSelect from './salesSelect.vue'
|
|
|
import reviewRecord from './reviewRecord.vue'
|
|
|
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
vCascader,
|
|
@@ -452,7 +453,8 @@ export default {
|
|
|
}
|
|
|
this.member.level=''
|
|
|
this.nums=''
|
|
|
- this.initialized()
|
|
|
+ this.datas2=[]
|
|
|
+ // this.initialized()
|
|
|
this.reged()
|
|
|
console.log(this.repair,this.member.createType,'切换服务状态')
|
|
|
},
|
|
@@ -599,7 +601,7 @@ export default {
|
|
|
paybackChange(val) {
|
|
|
this.member.paybackCompany = String(val)
|
|
|
},
|
|
|
- reged() {
|
|
|
+ reged(val) {
|
|
|
this.spinShow = true
|
|
|
// this.initialized()
|
|
|
this.$request('/order/isOpenBig').data({// 验证手机号权限
|
|
@@ -728,7 +730,6 @@ export default {
|
|
|
//企业自定义走新建
|
|
|
this.member.createType = '1'
|
|
|
this.repair = '1'
|
|
|
-
|
|
|
this.monthTime = 60
|
|
|
}
|
|
|
|
|
@@ -880,9 +881,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
tipFunc(val) {
|
|
|
- if (val) {
|
|
|
+
|
|
|
return val.toLocaleString('zh', {style: 'currency', currency: 'CNY'})
|
|
|
- }
|
|
|
+
|
|
|
},
|
|
|
currentServer() {// 获取用户当前已享有的服务
|
|
|
this.currentId = this.curIds
|
|
@@ -955,12 +956,37 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (v.i_ispackage == 1) {
|
|
|
+
|
|
|
let countStr = this.supplys ? this.supplys.filter(s => {
|
|
|
return Number(s.id) == v.id
|
|
|
}).map(t => {
|
|
|
return t.count
|
|
|
}) : []
|
|
|
- this.pacData.push({
|
|
|
+ console.log(this.member.level,this.member.buySubject)
|
|
|
+ if(this.member.buySubject!=this.show_buy_subject){
|
|
|
+ this.pacData.push({
|
|
|
+ id: v.id,
|
|
|
+ s_name: v.s_name,
|
|
|
+ i_pkprice: v.i_pkprice,
|
|
|
+ s_pkcount: v.s_pkcount,
|
|
|
+ b_pkcount: '',
|
|
|
+ count: Number(String(countStr))
|
|
|
+ })
|
|
|
+ console.log(this.member.supplyMoney)
|
|
|
+ this.member.supplyMoney='0'
|
|
|
+ this.member.sums='0'
|
|
|
+ // if (Number(String(countStr)) / v.s_pkcount) {
|
|
|
+ // this.datas2.push({
|
|
|
+ // id: v.id,
|
|
|
+ // name: v.s_name,
|
|
|
+ // price: v.i_pkprice,
|
|
|
+ // s_pkcount: v.s_pkcount,
|
|
|
+ // count: Number(String(countStr)) / v.s_pkcount ? Number(String(countStr)) / v.s_pkcount : ''
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+
|
|
|
+ }else{
|
|
|
+ this.pacData.push({
|
|
|
id: v.id,
|
|
|
s_name: v.s_name,
|
|
|
i_pkprice: v.i_pkprice,
|
|
@@ -977,6 +1003,9 @@ export default {
|
|
|
count: Number(String(countStr)) / v.s_pkcount ? Number(String(countStr)) / v.s_pkcount : ''
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
let arr1 = {
|
|
@@ -1039,6 +1068,7 @@ export default {
|
|
|
s_pkcount: null,
|
|
|
_checked: false
|
|
|
}
|
|
|
+
|
|
|
if (this.repair == '1' || this.repair == '2') {
|
|
|
if (!(this.currentId.indexOf(17) > -1) && !(this.currentId.indexOf(18) > -1)) {
|
|
|
resList.splice(1, 0, arr1)
|
|
@@ -2107,14 +2137,14 @@ export default {
|
|
|
this.curIds = filterData.serversId ? filterData.serversId.split(',').map(Number) : []
|
|
|
|
|
|
this.proNums = products
|
|
|
-
|
|
|
+
|
|
|
if(!res.buy_subject){ //老数据购买主体无值 禁用购买主体选项
|
|
|
this.radio_dis=true
|
|
|
}else{
|
|
|
this.radio_dis=false
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+ this.show_buy_subject=res.buy_subject
|
|
|
if(res.orderStatus == 1){//回显订单已完成禁用购买主体
|
|
|
this.finish_dis=true
|
|
|
}else{
|
|
@@ -2233,6 +2263,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ show_buy_subject:'',
|
|
|
max_length: 2,
|
|
|
doReview: false,
|
|
|
orderCode: '',
|