|
@@ -68,6 +68,9 @@
|
|
|
<FormItem label="销售人员">
|
|
|
<sale-select ref="saleRef" :saleType="'1'" @salePerson="salePerson" v-if="bShow"></sale-select>
|
|
|
</FormItem>
|
|
|
+ <FormItem label="业绩归属部门">
|
|
|
+ <Cascader v-model="member.saleCodeModel" :data="saleDep" trigger="hover" @on-change="saleDepChange"></Cascader>
|
|
|
+ </FormItem>
|
|
|
<FormItem label="业绩统计时间">
|
|
|
<date-sigle ref="sigleRef3" :dateType="'date'" :dataV="member.sale_time" :placeholderd="'请选择业绩统计时间'"
|
|
|
@startDate="saleDate" :overTime="0"></date-sigle>
|
|
@@ -272,6 +275,11 @@
|
|
|
<v-cascader ref="casRef2" :initVal="'h01'" placeholderType="签约主体" reqType="签约主体"
|
|
|
@levelChange="paybackChange" v-if="bShow"></v-cascader>
|
|
|
</FormItem>
|
|
|
+ <FormItem label="约定支付方式" prop="payType">
|
|
|
+ <Select v-model="member.payType" placeholder="请选择约定支付方式" :disabled="finish_dis">
|
|
|
+ <Option v-for="item in payTypes" :value="item.v" :key="item.v">{{ item.n }}</Option>
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
<FormItem label="协议签订时间" v-show="member.agreementStatus == '1'">
|
|
|
<date-sigle ref="sigleRef" :dateType="'date'" :placeholderd="'请选择协议签订时间'" @startDate="agreeDate"
|
|
|
:overTime="0"></date-sigle>
|
|
@@ -446,6 +454,9 @@ export default {
|
|
|
},500)
|
|
|
}).post()
|
|
|
},
|
|
|
+ saleDepChange (val) {
|
|
|
+ this.saleCode = String(val[val.length-1])
|
|
|
+ },
|
|
|
radiosChange(val) {
|
|
|
this.member.buySubject = String(val)
|
|
|
this.member.buyCount = ''
|
|
@@ -470,7 +481,7 @@ export default {
|
|
|
this.show(this.olddata)
|
|
|
}
|
|
|
|
|
|
- console.log(this.repair,this.member.createType,'切换服务状态')
|
|
|
+ // console.log(this.repair,this.member.createType,'切换服务状态')
|
|
|
},
|
|
|
buyHandler() {
|
|
|
this.member.buyCount=this.member.buyCount.replace(/[^\d]+/g,'')
|
|
@@ -579,7 +590,7 @@ export default {
|
|
|
// if (!this.returnMyReceivable) {
|
|
|
// this.interested = false
|
|
|
// }
|
|
|
- console.log('权益是否开通' + this.interested)
|
|
|
+ // console.log('权益是否开通' + this.interested)
|
|
|
},
|
|
|
moneyReg(val) {
|
|
|
return val.replace(/[^\d^\.]+/g, '').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.')
|
|
@@ -651,7 +662,7 @@ export default {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- console.log(this.member.products,this.member.buySubject)
|
|
|
+ // console.log(this.member.products,this.member.buySubject)
|
|
|
if (this.member.products == 1) {
|
|
|
if(this.member.buySubject!='2'){//主体为个体走原有逻辑
|
|
|
if (this.bigStas == 1) {
|
|
@@ -722,7 +733,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
- console.log('企业',this.member.buySubject)
|
|
|
+ // console.log('企业',this.member.buySubject)
|
|
|
this.colr = ''
|
|
|
if (this.nums == 0) {
|
|
|
this.creAuth = '1'
|
|
@@ -906,7 +917,7 @@ export default {
|
|
|
}).success((res) => {
|
|
|
this.oldCurrentId = res.data.list
|
|
|
}).post()
|
|
|
- console.log("扩充订单新旧服务对比", this.currentId, this.oldCurrentId)
|
|
|
+ // console.log("扩充订单新旧服务对比", this.currentId, this.oldCurrentId)
|
|
|
},
|
|
|
unique(arr) {// 去重
|
|
|
const res = new Map()
|
|
@@ -976,7 +987,7 @@ export default {
|
|
|
}).map(t => {
|
|
|
return t.count
|
|
|
}) : []
|
|
|
- console.log(this.member.level,this.member.buySubject)
|
|
|
+ // console.log(this.member.level,this.member.buySubject)
|
|
|
if(this.member.buySubject!=this.show_buy_subject){
|
|
|
this.pacData.push({
|
|
|
id: v.id,
|
|
@@ -986,7 +997,7 @@ export default {
|
|
|
b_pkcount: '',
|
|
|
count: Number(String(countStr))
|
|
|
})
|
|
|
- console.log(this.member.supplyMoney)
|
|
|
+ // console.log(this.member.supplyMoney)
|
|
|
this.member.supplyMoney='0'
|
|
|
this.member.sums='0'
|
|
|
this.member.supplyPayMoney=0
|
|
@@ -1122,7 +1133,7 @@ export default {
|
|
|
this.sumSel = []
|
|
|
this.serData.forEach(k => {
|
|
|
if (this.repair == '1') {
|
|
|
- console.log(this.currentId,this.equity,'新服务选中ID,和权益是否开通')
|
|
|
+ // console.log(this.currentId,this.equity,'新服务选中ID,和权益是否开通')
|
|
|
if (k.id == 1) {
|
|
|
k._checked = true
|
|
|
k._disabled = true
|
|
@@ -1206,7 +1217,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
leChange(val, check = true) {// 会员套餐
|
|
|
- console.log("会员套餐", val, check)
|
|
|
+ // console.log("会员套餐", val, check)
|
|
|
|
|
|
val = val ? JSON.parse(val) : ''
|
|
|
this.sArr = []
|
|
@@ -1215,7 +1226,7 @@ export default {
|
|
|
if (this.pReadon) {
|
|
|
this.myNoTchange()
|
|
|
}
|
|
|
- console.log("phone 权益", val.i_ispreinstall, this.bigStas, this.subStas)
|
|
|
+ // console.log("phone 权益", val.i_ispreinstall, this.bigStas, this.subStas)
|
|
|
if (val.i_ispreinstall == 0) { //自定义套餐
|
|
|
// if (check && val !== undefined) {
|
|
|
// this.allCancel()
|
|
@@ -1983,7 +1994,7 @@ export default {
|
|
|
areaCount:this.member.single&&this.combo_id.id==6?this.member.areaCount:0,// 仅大会员商机版2.0时 单省版才有效
|
|
|
updateType: this.noPass1 ? 0 : 1
|
|
|
}
|
|
|
- console.log(obj)
|
|
|
+ // console.log(obj)
|
|
|
if (this.returnMyReceivable) {
|
|
|
this.urlReq('/order/updateBigOrder', obj)
|
|
|
} else {
|
|
@@ -2025,7 +2036,7 @@ export default {
|
|
|
salesPersonId: this.member.salesPerson ? JSON.parse(this.member.salesPerson).id : '',
|
|
|
updateType: this.noPass1 ? 0 : 1
|
|
|
}
|
|
|
- console.log(obj)
|
|
|
+ // console.log(obj)
|
|
|
if (this.returnMyReceivable) {
|
|
|
this.urlReq('/order/updateSubOrder', obj)
|
|
|
} else {
|
|
@@ -2179,14 +2190,23 @@ export default {
|
|
|
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{
|
|
|
this.finish_dis=false
|
|
|
-
|
|
|
+ }
|
|
|
+ if (res.saleDep) {
|
|
|
+ let url = '/order/getSalesChannelItem'
|
|
|
+ this.$request(url).data({
|
|
|
+ name: this.reqType
|
|
|
+ }).success((res) => {
|
|
|
+ if (res.data.dep) {
|
|
|
+ this.saleDep = res.data.dep
|
|
|
+ }
|
|
|
+ }).post()
|
|
|
+ this.saleCode = String(res.saleDep[res.saleDep.length-1])
|
|
|
}
|
|
|
|
|
|
// 补充包列表
|
|
@@ -2238,8 +2258,9 @@ export default {
|
|
|
contract_archive_time: contractRes.contract_archive_time, //
|
|
|
contract_archive_num: contractRes.contract_archive_num == 0 ? '' : contractRes.contract_archive_num ,//
|
|
|
single: filterData.areaCount>0 ? true:false,
|
|
|
- areaCount: filterData.areaCount
|
|
|
-
|
|
|
+ areaCount: filterData.areaCount,
|
|
|
+ payType: res.payType,
|
|
|
+ saleCodeModel: res.saleDep
|
|
|
}
|
|
|
if (this.member.cycleType === 1) {
|
|
|
this.max_length = 4
|
|
@@ -2295,7 +2316,7 @@ export default {
|
|
|
// this.proChange(Number(products))
|
|
|
}
|
|
|
this.nums = 0
|
|
|
- console.log(this.interested,res.buy_subject,this.member.buySubject,'21212121')
|
|
|
+ // console.log(this.interested,res.buy_subject,this.member.buySubject,'21212121')
|
|
|
})
|
|
|
this.bShow = true
|
|
|
|
|
@@ -2304,6 +2325,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ saleCode: '',
|
|
|
+ saleDep : [],
|
|
|
olddata:null,
|
|
|
show_buy_subject:'',
|
|
|
max_length: 2,
|
|
@@ -2405,6 +2428,8 @@ export default {
|
|
|
contract_archive_num: '',
|
|
|
single:false, // 大会员商机版2.0-单省版 radio 选中状态
|
|
|
areaCount:'0', // 大会员省份版-省份数量
|
|
|
+ payType: '',
|
|
|
+ saleCodeModel: []
|
|
|
},
|
|
|
isAll: false,
|
|
|
radioDis1: false,
|
|
@@ -2421,6 +2446,11 @@ export default {
|
|
|
{v: '0', n: '不签协议'},
|
|
|
{v: '1', n: '已签协议'}
|
|
|
],
|
|
|
+ payTypes: [
|
|
|
+ {v: 'transferAccounts', n: '对公转账'},
|
|
|
+ {v: 'wx', n: '微信'},
|
|
|
+ {v: 'ali', n: '支付宝'}
|
|
|
+ ],
|
|
|
unitOptions: [
|
|
|
{v: 0, n: '月'},
|
|
|
{v: 1, n: '天'}
|