|
@@ -760,6 +760,61 @@
|
|
YDetailPageLayout,
|
|
YDetailPageLayout,
|
|
},
|
|
},
|
|
watch:{
|
|
watch:{
|
|
|
|
+ 'personal.clienteleType'(nv,ov){
|
|
|
|
+ if (nv=='个人'){
|
|
|
|
+ let simpleAll = new Object();
|
|
|
|
+ simpleAll.ccId = 1;
|
|
|
|
+ this.$api.customerLinkman.simpleAll(simpleAll).then(res=>{
|
|
|
|
+ if (res.code === 200){
|
|
|
|
+ this.customerContract = res.data;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ 'personal.clienteleId'(nv,ov){
|
|
|
|
+ let simpleAll = new Object();
|
|
|
|
+ simpleAll.terminal=0;
|
|
|
|
+ simpleAll.parentId= nv;
|
|
|
|
+ this.$api.customerCompany.simpleAll(simpleAll).then(res=>{
|
|
|
|
+ if (res.code === 200){
|
|
|
|
+ this.subCustomerCompany = res.data;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ 'personal.clienteleSubId'(nv,ov){
|
|
|
|
+ let simpleAll = new Object();
|
|
|
|
+ simpleAll.ccId = nv;
|
|
|
|
+ this.$api.customerLinkman.simpleAll(simpleAll).then(res=>{
|
|
|
|
+ if (res.code === 200){
|
|
|
|
+ this.customerContract = res.data;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ 'personal.terminalClienteleType'(nv,ov){
|
|
|
|
+ console.log(nv)
|
|
|
|
+ if (nv=='企业'){
|
|
|
|
+ this.getCustomerCompany(1);
|
|
|
|
+ let simpleAll = new Object();
|
|
|
|
+ simpleAll.terminal=1;
|
|
|
|
+ simpleAll.ccId = this.personal.terminalClienteleId;
|
|
|
|
+ this.$api.customerLinkman.simpleAll(simpleAll).then(res=>{
|
|
|
|
+ if (res.code === 200){
|
|
|
|
+ this.tCustomerContract =res.data;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ let simpleAll = new Object();
|
|
|
|
+ simpleAll.ccId = 2;
|
|
|
|
+ simpleAll.terminal = 1;
|
|
|
|
+ this.$api.customerLinkman.simpleAll(simpleAll).then(res=>{
|
|
|
|
+ if (res.code === 200){
|
|
|
|
+ this.tCustomerCompany = res.data;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
|
|
|
|
@@ -798,7 +853,7 @@
|
|
bailoraTel:null,
|
|
bailoraTel:null,
|
|
bailorB:null,
|
|
bailorB:null,
|
|
bailorbTel:null,
|
|
bailorbTel:null,
|
|
- terminalClienteleType:'企业',
|
|
|
|
|
|
+ terminalClienteleType:null,
|
|
tterminalClienteleName:null,
|
|
tterminalClienteleName:null,
|
|
tterminalClienteleContactName:null,
|
|
tterminalClienteleContactName:null,
|
|
tmobile:null,
|
|
tmobile:null,
|