address-client 3.1.9 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,117 +1,117 @@
1
- <template>
2
- <div id="unit" class="flex-row">
3
- <div :class="{'basic-main':!useraddressShow,'binary-left':useraddressShow}">
4
- <address-list @select-changed="selected" v-ref:addresslist :style="style" :f_filialeids.sync="f_filialeids"></address-list>
5
- </div>
6
- <div v-show="useraddressShow" class="binary-right">
7
- <div class="flex">
8
- <user-address v-ref:useraddressmsg
9
- :f_filialeids.sync="f_filialeids" :row="row"></user-address>
10
-
11
- <user-address-change v-if="addressId" :address_id="addressId"></user-address-change>
12
- </div>
13
- </div>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- export default {
19
- title: '地址管理',
20
- components:{
21
- },
22
- data () {
23
- return {
24
- //分公司id串
25
- f_filialeids: this.$login.f.orgid,
26
- area: [],
27
- street: [],
28
- residential: [],
29
- row: {},
30
- useraddressShow: false,
31
- addressId: null,
32
- style:'col-sm-2 form-group'
33
- }
34
- },
35
- props:{
36
-
37
- },
38
- methods:{
39
- selected(obj){
40
- this.$refs.addresslist.showrightchange=false;
41
- this.style='col-sm-3 form-group'
42
- if(obj.val&&obj.val.id){
43
- if (obj.val.f_filialeid != this.f_filialeids) {
44
- this.refresh()
45
- return
46
- }
47
- // 呼叫中心需要
48
- this.$dispatch('re-ref', obj.val)
49
- this.addressId=obj.val.id
50
- this.useraddressShow=true
51
- this.$refs.useraddressmsg.cleardara()
52
- this.$refs.useraddressmsg.initdata()
53
- this.$refs.useraddressmsg.usertype=obj.val.f_user_type
54
- this.$refs.useraddressmsg.operation='modify'
55
- this.$refs.useraddressmsg.onedata='one'
56
- this.$refs.useraddressmsg.model=Object.assign({},this.$refs.useraddressmsg.model,obj.val)
57
- if(obj.val.f_special=='1'){
58
- this.$refs.useraddressmsg.usertype = true
59
- }else{
60
- this.$refs.useraddressmsg.usertype = false
61
- }
62
- if (obj.val.f_slice_area) {
63
- this.$refs.useraddressmsg.model.slice_area = [{
64
- name: this.$refs.useraddressmsg.model.f_slice_area,
65
- code: this.$refs.useraddressmsg.model.f_area_code
66
- }]
67
- }
68
- }
69
- },
70
- refresh () {
71
- this.addressId=null
72
- this.useraddressShow = false
73
- this.$refs.addresslist.$refs.paged.$refs.cri.search()
74
- }
75
- },
76
- events:{
77
- 'add'(val){
78
- this.style='col-sm-3 form-group'
79
- this.useraddressShow = true
80
- this.$refs.useraddressmsg.cleardara()
81
- this.addressId=null
82
- //true为新增特殊地址
83
- if (val!='民用') {
84
- //非民用
85
- this.$refs.useraddressmsg.usertype = true
86
- this.$refs.useraddressmsg.onedata = 'one'
87
- }else{
88
- this.$refs.useraddressmsg.usertype = false
89
- }
90
- this.$refs.useraddressmsg.operation='add'
91
- this.$refs.useraddressmsg.pcdslist=[]
92
- this.$refs.useraddressmsg.streetslist=[]
93
- this.$refs.useraddressmsg.areaslist=[]
94
- this.$refs.useraddressmsg.initdata()
95
- },
96
- 'confirm' () {
97
- this.style='col-sm-2 form-group'
98
- this.addressId=null
99
- this.$refs.addresslist.$refs.paged.$refs.cri.search()
100
- this.useraddressShow = false
101
- this.$refs.addresslist.showrightchange=true;
102
- },
103
- 'modify'(area){
104
- this.style='col-sm-2 form-group'
105
- },
106
- 'cancel' () {
107
- this.style='col-sm-2 form-group'
108
- this.addressId=null
109
- this.$refs.addresslist.showrightchange=true;
110
- this.$refs.addresslist.$refs.paged.$refs.cri.search()
111
- this.useraddressShow = false
112
- },
113
- }
114
- }
115
- </script>
116
- <style>
117
- </style>
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div :class="{'basic-main':!useraddressShow,'binary-left':useraddressShow}">
4
+ <address-list @select-changed="selected" v-ref:addresslist :style="style" :f_filialeids.sync="f_filialeids"></address-list>
5
+ </div>
6
+ <div v-show="useraddressShow" class="binary-right">
7
+ <div class="flex">
8
+ <user-address v-ref:useraddressmsg
9
+ :f_filialeids.sync="f_filialeids" :row="row"></user-address>
10
+
11
+ <user-address-change v-if="addressId" :address_id="addressId"></user-address-change>
12
+ </div>
13
+ </div>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+ title: '地址管理',
20
+ components:{
21
+ },
22
+ data () {
23
+ return {
24
+ //分公司id串
25
+ f_filialeids: this.$login.f.orgid,
26
+ area: [],
27
+ street: [],
28
+ residential: [],
29
+ row: {},
30
+ useraddressShow: false,
31
+ addressId: null,
32
+ style:'col-sm-2 form-group'
33
+ }
34
+ },
35
+ props:{
36
+
37
+ },
38
+ methods:{
39
+ selected(obj){
40
+ this.$refs.addresslist.showrightchange=false;
41
+ this.style='col-sm-3 form-group'
42
+ if(obj.val&&obj.val.id){
43
+ if (obj.val.f_filialeid != this.f_filialeids) {
44
+ this.refresh()
45
+ return
46
+ }
47
+ // 呼叫中心需要
48
+ this.$dispatch('re-ref', obj.val)
49
+ this.addressId=obj.val.id
50
+ this.useraddressShow=true
51
+ this.$refs.useraddressmsg.cleardara()
52
+ this.$refs.useraddressmsg.initdata()
53
+ this.$refs.useraddressmsg.usertype=obj.val.f_user_type
54
+ this.$refs.useraddressmsg.operation='modify'
55
+ this.$refs.useraddressmsg.onedata='one'
56
+ this.$refs.useraddressmsg.model=Object.assign({},this.$refs.useraddressmsg.model,obj.val)
57
+ if(obj.val.f_special=='1'){
58
+ this.$refs.useraddressmsg.usertype = true
59
+ }else{
60
+ this.$refs.useraddressmsg.usertype = false
61
+ }
62
+ if (obj.val.f_slice_area) {
63
+ this.$refs.useraddressmsg.model.slice_area = [{
64
+ name: this.$refs.useraddressmsg.model.f_slice_area,
65
+ code: this.$refs.useraddressmsg.model.f_area_code
66
+ }]
67
+ }
68
+ }
69
+ },
70
+ refresh () {
71
+ this.addressId=null
72
+ this.useraddressShow = false
73
+ this.$refs.addresslist.$refs.paged.$refs.cri.search()
74
+ }
75
+ },
76
+ events:{
77
+ 'add'(val){
78
+ this.style='col-sm-3 form-group'
79
+ this.useraddressShow = true
80
+ this.$refs.useraddressmsg.cleardara()
81
+ this.addressId=null
82
+ //true为新增特殊地址
83
+ if (val!='民用') {
84
+ //非民用
85
+ this.$refs.useraddressmsg.usertype = true
86
+ this.$refs.useraddressmsg.onedata = 'one'
87
+ }else{
88
+ this.$refs.useraddressmsg.usertype = false
89
+ }
90
+ this.$refs.useraddressmsg.operation='add'
91
+ this.$refs.useraddressmsg.pcdslist=[]
92
+ this.$refs.useraddressmsg.streetslist=[]
93
+ this.$refs.useraddressmsg.areaslist=[]
94
+ this.$refs.useraddressmsg.initdata()
95
+ },
96
+ 'confirm' () {
97
+ this.style='col-sm-2 form-group'
98
+ this.addressId=null
99
+ this.$refs.addresslist.$refs.paged.$refs.cri.search()
100
+ this.useraddressShow = false
101
+ this.$refs.addresslist.showrightchange=true;
102
+ },
103
+ 'modify'(area){
104
+ this.style='col-sm-2 form-group'
105
+ },
106
+ 'cancel' () {
107
+ this.style='col-sm-2 form-group'
108
+ this.addressId=null
109
+ this.$refs.addresslist.showrightchange=true;
110
+ this.$refs.addresslist.$refs.paged.$refs.cri.search()
111
+ this.useraddressShow = false
112
+ },
113
+ }
114
+ }
115
+ </script>
116
+ <style>
117
+ </style>
@@ -46,7 +46,7 @@
46
46
  <export-excel :data="$parent.$parent.getCondition"
47
47
  :field="$parent.$parent.getfield"
48
48
  sqlurl="rs/logic/exportfile"
49
- sql-name="address_getarealist"
49
+ sql-name="manage_getarealist"
50
50
  template-name='小区信息查询导出'
51
51
  :choose-col="true"></export-excel>
52
52
  <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
@@ -24,7 +24,7 @@
24
24
  <export-excel :data="$parent.$parent.getCondition"
25
25
  :field="$parent.$parent.getfield"
26
26
  sqlurl="rs/logic/exportfile"
27
- sql-name="address_getstreetlist"
27
+ sql-name="manage_getstreetlist"
28
28
  template-name='街道信息查询导出'
29
29
  :choose-col="true"></export-excel>
30
30
  <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>