address-client 3.0.34-aode → 3.0.34-aodeToV4

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.
Files changed (35) hide show
  1. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  2. package/AddressClient.iml +12 -12
  3. package/CHANGELOG.md +12 -12
  4. package/build/dev-server.js +128 -128
  5. package/build/webpack.base.conf.js +81 -81
  6. package/examples/showAdd/App.vue +40 -40
  7. package/index.html +40 -40
  8. package/package.json +1 -1
  9. package/src/address.js +58 -58
  10. package/src/components/AddAreaMsg.vue +599 -599
  11. package/src/components/AddStreetOrPcd.vue +231 -231
  12. package/src/components/AddressAddAddress.vue +479 -479
  13. package/src/components/AddressFiles.vue +156 -156
  14. package/src/components/AddressList.vue +323 -307
  15. package/src/components/AddressManage.vue +117 -117
  16. package/src/components/AddressTree.vue +501 -501
  17. package/src/components/AreaFiles.vue +73 -73
  18. package/src/components/AreaList.vue +28 -5
  19. package/src/components/AreaManage.vue +101 -101
  20. package/src/components/AreaTree.vue +508 -508
  21. package/src/components/Basch.vue +72 -72
  22. package/src/components/BatchOrders.vue +328 -328
  23. package/src/components/CityManage.vue +76 -76
  24. package/src/components/NewAddressInfo.vue +432 -432
  25. package/src/components/OneCodeList.vue +251 -251
  26. package/src/components/StreetList.vue +184 -184
  27. package/src/components/UserAddress.vue +780 -780
  28. package/src/components/UserAddressChange.vue +58 -58
  29. package/src/components/addressts/AddressListts.vue +307 -307
  30. package/src/components/addressts/AddressManagets.vue +117 -117
  31. package/src/components/addressts/UserAddressChangets.vue +58 -58
  32. package/src/components/addressts/UserAddressts.vue +739 -739
  33. package/src/components/areauser/AreaUser.vue +233 -233
  34. package/src/components/selectAddress/BatchList.vue +326 -326
  35. package/src/main.js +23 -23
@@ -1,233 +1,233 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-4" >
8
- <label class="font_normal_body">客户编号</label>
9
- <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
10
- condition="f_userinfo_code = '{}'" @keyup.enter="search()">
11
- </div>
12
- <div class="form-group col-sm-4 button-range" >
13
- <button class="button_search" style="margin-right: 10px" v-if="this.$login.r.includes('批量调小区')" @click="$parent.$parent.changearea()" v-el:cba>批量调小区</button>
14
- <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
15
- </div>
16
- </div>
17
- </div>
18
- </criteria>
19
- <data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
20
- <template partial='head' >
21
- <tr>
22
- <th><nobr>序号</nobr></th>
23
- <th><nobr>客户编号</nobr></th>
24
- <th><nobr>客户名称</nobr></th>
25
- <th><nobr>客户地址</nobr></th>
26
- </tr>
27
- </template>
28
- <template partial='body' >
29
- <tr >
30
- <td style="text-align:center;">{{$index+1}}</td>
31
- <td style="text-align:center"><span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></td>
32
- <td style="text-align:center">{{row.f_user_name}}</td>
33
- <td style="text-align:center;white-space: nowrap;">{{row.f_address}}</td>
34
- </tr>
35
- </template>
36
- <template partial='foot'></template>
37
- </data-grid>
38
- </criteria-paged>
39
-
40
-
41
- <modal :show.sync="show" width="40%" backdrop="false">
42
-
43
- <header slot="modal-header" class="modal-header">
44
- <h4 class="modal-title" style="text-align: center;">小区调整</h4>
45
- </header>
46
- <article slot="modal-body" class="modal-body">
47
- <div class="panel panel-primary datapanel">
48
- <form class="form-horizontal select-overspread">
49
- <div class="form-group">
50
- <div class="row bg-info text-center text-center" style="height:35px">
51
- <div style="float: left">
52
- <label class="font_normal_body">旧小区信息</label>
53
- </div>
54
- </div>
55
- <div class="row" style="margin-top: 2%">
56
- <div class="col-sm-6 flex-row ">
57
- <label class="control-label">小区名称</label>
58
- <p class="form-control-static">{{model.rows[0].f_residential_area}}</p>
59
- </div>
60
- <div class="col-sm-6 flex-row ">
61
- <label class="control-label">可调整用户数</label>
62
- <p class="form-control-static">{{model.count}}</p>
63
- </div>
64
- </div>
65
- <div class="row bg-info text-center text-center" style="height:35px">
66
- <div style="float: left">
67
- <label class="font_normal_body">新小区信息</label>
68
- </div>
69
- </div>
70
- <div class="row" style="margin-top: 2%">
71
-
72
- <div class="col-sm-6 flex-row" >
73
- <label class="control-label">小区名称</label>
74
- <v-select :value.sync="newinfo.residential_id" v-model="newinfo.residential_id"
75
- placeholder='小区名称' :options="areaslist" value-single
76
- close-on-select v-ref:name></v-select>
77
- </div>
78
-
79
- </div>
80
- </div>
81
- </form>
82
- </div>
83
-
84
-
85
- </article>
86
- <footer slot="modal-footer" class="modal-footer">
87
- <button :disabled="battchbuttonClick" class="button_search" @click="modifyUser">确认</button>
88
- <button type="button" class="button_clear" @click='close'>取消</button>
89
- </footer>
90
-
91
- </modal>
92
- </div>
93
- </template>
94
-
95
- <script>
96
- import {HttpResetClass, PagedList} from 'vue-client'
97
-
98
-
99
- let loadParamGem = async function (self) {
100
- console.log('执行了')
101
- await self.initareas(` f_filialeid = '${self.f_filialeid}'`)
102
- }
103
- export default {
104
- title: '小区使用人',
105
- data () {
106
- return {
107
- model: new PagedList('rs/sql/getareauser', 20, {}),
108
- condition:'',
109
- getfield: {},
110
- show:false,
111
- gasproperties: [],
112
- newinfo:{
113
- residential_id:''
114
- },
115
- battchbuttonClick:false, //批量调整确认按钮
116
- areaslist:[]
117
- }
118
- },
119
- props: ['f_residential_area_id','f_residential_area','f_filialeid'],
120
- ready () {
121
- this.search()
122
- loadParamGem(this)
123
- },
124
- methods: {
125
- async initareas(pconditon){
126
- // if(this.usertype){
127
- // pconditon=pconditon+` and f_special='1' `
128
- // }
129
- this.areaslist = []
130
- let HttpReset = new HttpResetClass()
131
- let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
132
- data: {
133
- items: '*',
134
- tablename: 't_area',
135
- orderitem: 'id',
136
- condition: pconditon
137
- }
138
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
139
- let redata = []
140
- req.data.forEach((row) => {
141
- redata.push({
142
- label: row.f_residential_area,
143
- value: row.id,
144
- data: row,
145
- id: row.id
146
- })
147
- })
148
- this.areaslist=redata
149
- },
150
- close() {
151
- this.show = false
152
- this.newinfo = {
153
- residential_id:''
154
- }
155
- },
156
- async modifyUser () {
157
- if(this.newinfo.residential_id == ''){
158
- this.$showAlert('请选择新小区后进行点击!','warning',1000)
159
- return;
160
- }
161
- if(this.f_filialeid ==''){
162
- this.$showAlert('请选择组织后进行点击!','warning',1000)
163
- return;
164
- }
165
- //将调整按钮改为不可点击
166
- this.battchbuttonClick = true
167
- let param={
168
- f_oldresidential_area_id: this.f_residential_area_id,
169
- f_oldresidential_area: this.model.rows[0].f_residential_area,
170
- f_filialeid:this.f_filialeid,
171
- f_operator : this.$login.f.name,
172
- f_operatorid : this.$login.f.id,
173
- f_orgid : this.$login.f.orgid,
174
- f_orgname : this.$login.f.orgs,
175
- f_depid :this.$login.f.depids,
176
- f_depname : this.$login.f.deps,
177
- f_residential_area_id:this.newinfo.residential_id
178
- }
179
-
180
- let res = await this.$resetpost('rs/logic/changeareaUser', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
181
- this.$showMessage(`成功批量修改了${res.data}位用户的小区`)
182
- this.criteriaShow = false
183
- this.close()
184
- this.search ()
185
- },
186
- search() {
187
- this.$refs.paged.$refs.criteria.search()
188
- },
189
- changearea(){
190
- this.battchbuttonClick=false
191
- this.show=true
192
- },
193
- selfSearch(args) {
194
- if(this.f_filialeid==null || this.f_filialeid == ''){
195
- this.$showAlert("请选择组织进行操作!!",'warning',2000);
196
- return;
197
- }
198
- args.condition = `${args.condition} and id = '${this.f_residential_area_id}' and f_orgid = ${this.f_filialeid}`
199
- this.condition = args.condition
200
- this.model.search(args.condition, args.model)
201
- },
202
- dealmsg (val) {
203
- this.$parent.f_userinfo_id=val.f_userinfo_id
204
- this.$parent.listpage=false
205
- },
206
- getPricenames () {
207
- console.log('气价。,。。', this.newinfo.pricetype, this.newinfo.f_user_type, this.newinfo.f_gasproperties)
208
- let rs = []
209
- if (this.newinfo.f_user_type.length === 1 && this.newinfo.f_gasproperties.length === 1 && this.newinfo.pricetype.length === 1) {
210
- let params = {
211
- f_user_type: this.newinfo.f_user_type[0],
212
- f_gasproperties: this.newinfo.f_gasproperties[0],
213
- f_price_type: this.newinfo.pricetype[0],
214
- filter: this.f_filialeid
215
- }
216
- rs = this.$GetSaleParam.getPrice(params)
217
- }
218
- if (rs.length === 0) {
219
- this.newinfo.f_price_name = ''
220
- }
221
- return rs
222
- },
223
- },
224
- watch:{
225
- 'f_residential_area_id'(){
226
- this.search()
227
- },
228
- 'f_filialeid' (val) {
229
- loadParamGem(this)
230
- }
231
- }
232
- }
233
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-4" >
8
+ <label class="font_normal_body">客户编号</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" placeholder='客户编号'
10
+ condition="f_userinfo_code = '{}'" @keyup.enter="search()">
11
+ </div>
12
+ <div class="form-group col-sm-4 button-range" >
13
+ <button class="button_search" style="margin-right: 10px" v-if="this.$login.r.includes('批量调小区')" @click="$parent.$parent.changearea()" v-el:cba>批量调小区</button>
14
+ <button class="button_search" style="margin-right: 10px" @click="search()" v-el:cba>查询</button>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </criteria>
19
+ <data-grid :model="model" class="table_sy" partial='list' v-ref:grid >
20
+ <template partial='head' >
21
+ <tr>
22
+ <th><nobr>序号</nobr></th>
23
+ <th><nobr>客户编号</nobr></th>
24
+ <th><nobr>客户名称</nobr></th>
25
+ <th><nobr>客户地址</nobr></th>
26
+ </tr>
27
+ </template>
28
+ <template partial='body' >
29
+ <tr >
30
+ <td style="text-align:center;">{{$index+1}}</td>
31
+ <td style="text-align:center"><span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></td>
32
+ <td style="text-align:center">{{row.f_user_name}}</td>
33
+ <td style="text-align:center;white-space: nowrap;">{{row.f_address}}</td>
34
+ </tr>
35
+ </template>
36
+ <template partial='foot'></template>
37
+ </data-grid>
38
+ </criteria-paged>
39
+
40
+
41
+ <modal :show.sync="show" width="40%" backdrop="false">
42
+
43
+ <header slot="modal-header" class="modal-header">
44
+ <h4 class="modal-title" style="text-align: center;">小区调整</h4>
45
+ </header>
46
+ <article slot="modal-body" class="modal-body">
47
+ <div class="panel panel-primary datapanel">
48
+ <form class="form-horizontal select-overspread">
49
+ <div class="form-group">
50
+ <div class="row bg-info text-center text-center" style="height:35px">
51
+ <div style="float: left">
52
+ <label class="font_normal_body">旧小区信息</label>
53
+ </div>
54
+ </div>
55
+ <div class="row" style="margin-top: 2%">
56
+ <div class="col-sm-6 flex-row ">
57
+ <label class="control-label">小区名称</label>
58
+ <p class="form-control-static">{{model.rows[0].f_residential_area}}</p>
59
+ </div>
60
+ <div class="col-sm-6 flex-row ">
61
+ <label class="control-label">可调整用户数</label>
62
+ <p class="form-control-static">{{model.count}}</p>
63
+ </div>
64
+ </div>
65
+ <div class="row bg-info text-center text-center" style="height:35px">
66
+ <div style="float: left">
67
+ <label class="font_normal_body">新小区信息</label>
68
+ </div>
69
+ </div>
70
+ <div class="row" style="margin-top: 2%">
71
+
72
+ <div class="col-sm-6 flex-row" >
73
+ <label class="control-label">小区名称</label>
74
+ <v-select :value.sync="newinfo.residential_id" v-model="newinfo.residential_id"
75
+ placeholder='小区名称' :options="areaslist" value-single
76
+ close-on-select v-ref:name></v-select>
77
+ </div>
78
+
79
+ </div>
80
+ </div>
81
+ </form>
82
+ </div>
83
+
84
+
85
+ </article>
86
+ <footer slot="modal-footer" class="modal-footer">
87
+ <button :disabled="battchbuttonClick" class="button_search" @click="modifyUser">确认</button>
88
+ <button type="button" class="button_clear" @click='close'>取消</button>
89
+ </footer>
90
+
91
+ </modal>
92
+ </div>
93
+ </template>
94
+
95
+ <script>
96
+ import {HttpResetClass, PagedList} from 'vue-client'
97
+
98
+
99
+ let loadParamGem = async function (self) {
100
+ console.log('执行了')
101
+ await self.initareas(` f_filialeid = '${self.f_filialeid}'`)
102
+ }
103
+ export default {
104
+ title: '小区使用人',
105
+ data () {
106
+ return {
107
+ model: new PagedList('api/af-revenue/sql/getareauser', 20, {}),
108
+ condition:'',
109
+ getfield: {},
110
+ show:false,
111
+ gasproperties: [],
112
+ newinfo:{
113
+ residential_id:''
114
+ },
115
+ battchbuttonClick:false, //批量调整确认按钮
116
+ areaslist:[]
117
+ }
118
+ },
119
+ props: ['f_residential_area_id','f_residential_area','f_filialeid'],
120
+ ready () {
121
+ this.search()
122
+ loadParamGem(this)
123
+ },
124
+ methods: {
125
+ async initareas(pconditon){
126
+ // if(this.usertype){
127
+ // pconditon=pconditon+` and f_special='1' `
128
+ // }
129
+ this.areaslist = []
130
+ let HttpReset = new HttpResetClass()
131
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
132
+ data: {
133
+ items: '*',
134
+ tablename: 't_area',
135
+ orderitem: 'id',
136
+ condition: pconditon
137
+ }
138
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
139
+ let redata = []
140
+ req.data.forEach((row) => {
141
+ redata.push({
142
+ label: row.f_residential_area,
143
+ value: row.id,
144
+ data: row,
145
+ id: row.id
146
+ })
147
+ })
148
+ this.areaslist=redata
149
+ },
150
+ close() {
151
+ this.show = false
152
+ this.newinfo = {
153
+ residential_id:''
154
+ }
155
+ },
156
+ async modifyUser () {
157
+ if(this.newinfo.residential_id == ''){
158
+ this.$showAlert('请选择新小区后进行点击!','warning',1000)
159
+ return;
160
+ }
161
+ if(this.f_filialeid ==''){
162
+ this.$showAlert('请选择组织后进行点击!','warning',1000)
163
+ return;
164
+ }
165
+ //将调整按钮改为不可点击
166
+ this.battchbuttonClick = true
167
+ let param={
168
+ f_oldresidential_area_id: this.f_residential_area_id,
169
+ f_oldresidential_area: this.model.rows[0].f_residential_area,
170
+ f_filialeid:this.f_filialeid,
171
+ f_operator : this.$login.f.name,
172
+ f_operatorid : this.$login.f.id,
173
+ f_orgid : this.$login.f.orgid,
174
+ f_orgname : this.$login.f.orgs,
175
+ f_depid :this.$login.f.depids,
176
+ f_depname : this.$login.f.deps,
177
+ f_residential_area_id:this.newinfo.residential_id
178
+ }
179
+
180
+ let res = await this.$resetpost('api/af-revenue/logic/changeareaUser', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
181
+ this.$showMessage(`成功批量修改了${res.data}位用户的小区`)
182
+ this.criteriaShow = false
183
+ this.close()
184
+ this.search ()
185
+ },
186
+ search() {
187
+ this.$refs.paged.$refs.criteria.search()
188
+ },
189
+ changearea(){
190
+ this.battchbuttonClick=false
191
+ this.show=true
192
+ },
193
+ selfSearch(args) {
194
+ if(this.f_filialeid==null || this.f_filialeid == ''){
195
+ this.$showAlert("请选择组织进行操作!!",'warning',2000);
196
+ return;
197
+ }
198
+ args.condition = `${args.condition} and id = '${this.f_residential_area_id}' and f_orgid = ${this.f_filialeid}`
199
+ this.condition = args.condition
200
+ this.model.search(args.condition, args.model)
201
+ },
202
+ dealmsg (val) {
203
+ this.$parent.f_userinfo_id=val.f_userinfo_id
204
+ this.$parent.listpage=false
205
+ },
206
+ getPricenames () {
207
+ console.log('气价。,。。', this.newinfo.pricetype, this.newinfo.f_user_type, this.newinfo.f_gasproperties)
208
+ let rs = []
209
+ if (this.newinfo.f_user_type.length === 1 && this.newinfo.f_gasproperties.length === 1 && this.newinfo.pricetype.length === 1) {
210
+ let params = {
211
+ f_user_type: this.newinfo.f_user_type[0],
212
+ f_gasproperties: this.newinfo.f_gasproperties[0],
213
+ f_price_type: this.newinfo.pricetype[0],
214
+ filter: this.f_filialeid
215
+ }
216
+ rs = this.$GetSaleParam.getPrice(params)
217
+ }
218
+ if (rs.length === 0) {
219
+ this.newinfo.f_price_name = ''
220
+ }
221
+ return rs
222
+ },
223
+ },
224
+ watch:{
225
+ 'f_residential_area_id'(){
226
+ this.search()
227
+ },
228
+ 'f_filialeid' (val) {
229
+ loadParamGem(this)
230
+ }
231
+ }
232
+ }
233
+ </script>