address-client 3.0.38-aode → 3.0.39-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 (38) hide show
  1. package/.gradle/8.5/checksums/checksums.lock +0 -0
  2. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  7. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/8.5/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/.gradle/file-system.probe +0 -0
  12. package/.gradle/vcs-1/gc.properties +0 -0
  13. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  14. package/gradle/wrapper/gradle-wrapper.properties +7 -0
  15. package/gradlew +249 -0
  16. package/gradlew.bat +92 -0
  17. package/package.json +1 -1
  18. package/src/components/AddAreaMsg.vue +42 -6
  19. package/src/components/AddStreetOrPcd.vue +3 -3
  20. package/src/components/AddressAddAddress.vue +14 -14
  21. package/src/components/AddressFiles.vue +1 -1
  22. package/src/components/AddressList.vue +7 -7
  23. package/src/components/AddressTree.vue +6 -6
  24. package/src/components/AreaFiles.vue +1 -1
  25. package/src/components/AreaList.vue +9 -12
  26. package/src/components/AreaTree.vue +6 -6
  27. package/src/components/Basch.vue +1 -1
  28. package/src/components/BatchOrders.vue +7 -7
  29. package/src/components/NewAddressInfo.vue +4 -4
  30. package/src/components/OneCodeList.vue +1 -1
  31. package/src/components/StreetList.vue +3 -3
  32. package/src/components/UserAddress.vue +12 -13
  33. package/src/components/UserAddressChange.vue +1 -1
  34. package/src/components/addressts/AddressListts.vue +6 -6
  35. package/src/components/addressts/UserAddressChangets.vue +1 -1
  36. package/src/components/addressts/UserAddressts.vue +12 -13
  37. package/src/components/areauser/AreaUser.vue +3 -3
  38. package/src/components/selectAddress/BatchList.vue +182 -177
@@ -104,7 +104,7 @@
104
104
  title: '小区使用人',
105
105
  data () {
106
106
  return {
107
- model: new PagedList('rs/sql/getareauser', 20, {}),
107
+ model: new PagedList('api/af-revenue/sql/getareauser', 20, {}),
108
108
  condition:'',
109
109
  getfield: {},
110
110
  show:false,
@@ -128,7 +128,7 @@
128
128
  // }
129
129
  this.areaslist = []
130
130
  let HttpReset = new HttpResetClass()
131
- let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
131
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
132
132
  data: {
133
133
  items: '*',
134
134
  tablename: 't_area',
@@ -177,7 +177,7 @@
177
177
  f_residential_area_id:this.newinfo.residential_id
178
178
  }
179
179
 
180
- let res = await this.$resetpost('rs/logic/changeareaUser', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
180
+ let res = await this.$resetpost('api/af-revenue/logic/changeareaUser', {data: param}, {resolveMsg: '更新成功', rejectMsg: '更新失败'})
181
181
  this.$showMessage(`成功批量修改了${res.data}位用户的小区`)
182
182
  this.criteriaShow = false
183
183
  this.close()
@@ -32,8 +32,8 @@
32
32
  </div>
33
33
  <div class="span" style="float:right;">
34
34
  <button class="button_search button_spacing" @click="search()" >查询</button>
35
- <button class="button_new button_spacing" style="width:70px" @click="$parent.$parent.add('民用')">添加民用</button>
36
- <button class="button_new button_spacing" style="width:100px" @click="$parent.$parent.add('非民用')">添加特殊地址</button>
35
+ <button class="button_new button_spacing" style="width:100px" @click="$parent.$parent.add('民用')">添加民用</button>
36
+ <button class="button_new button_spacing" style="width:120px" @click="$parent.$parent.add('非民用')">添加特殊地址</button>
37
37
  <button class="button_search button_spacing" @click="$parent.$parent.submit()" >确定</button>
38
38
  <button class="button_search button_spacing" @click="$parent.$parent.cancel()" >取消</button>
39
39
  <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>
@@ -112,7 +112,7 @@
112
112
  </header>
113
113
  <article slot="modal-body" class="modal-body">
114
114
  <div class="form-group">
115
- <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
115
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="api/af-revenue/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
116
116
  </div>
117
117
  </article>
118
118
  <footer slot="modal-footer" class="modal-footer"></footer>
@@ -121,206 +121,211 @@
121
121
  </template>
122
122
 
123
123
  <script>
124
- import { PagedList } from 'vue-client'
125
- import {HttpResetClass} from 'vue-client'
124
+ import { PagedList } from 'vue-client'
125
+ import {HttpResetClass} from 'vue-client'
126
126
 
127
- export default {
128
- data () {
129
- return {
130
- criteriaShow: false,
131
- model: new PagedList('rs/sql/address_getUserAddress',15,{}),
132
- addflag: false,
133
- addtitle:'',
127
+ export default {
128
+ data () {
129
+ return {
130
+ criteriaShow: false,
131
+ model: new PagedList('api/af-revenue/sql/address_getUserAddress',15,{
132
+ f_filiale_id:'this.f_filiale_id'
133
+ }),
134
+ addflag: false,
135
+ addtitle:'',
134
136
 
135
- all: false,
136
- //row数据
137
- // 公司下拉
138
- curorgid: [this.$login.f.orgid],
139
- f_orgid: '',
137
+ all: false,
138
+ //row数据
139
+ // 公司下拉
140
+ curorgid: [this.$login.f.orgid],
141
+ f_orgid: '',
140
142
 
141
- //文件上传弹框
142
- showFile: false,
143
- rowsdata:[],
144
- selecteddata:[],
145
- length:99999999
143
+ //文件上传弹框
144
+ showFile: false,
145
+ rowsdata:[],
146
+ selecteddata:[],
147
+ length:99999999
148
+ }
149
+ },
150
+ title: '地址列表',
151
+ props:{
152
+ f_filialeids:{
153
+ type: String
154
+ },
155
+ clear:{
156
+ default:false
157
+ }
158
+ },
159
+ ready(){
160
+ this.search()
161
+ },
162
+ methods: {
163
+ hidden() {
164
+ this.criteriaShow = !this.criteriaShow
165
+ },
166
+
167
+ //添加方法
168
+ add(val){
169
+ if (this.f_filialeids) {
170
+ this.$refs.paged.$refs.grid.selectStore.selected = null
171
+ this.$dispatch('add',val)
172
+ } else {
173
+ this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
146
174
  }
147
175
  },
148
- title: '地址列表',
149
- props:{
150
- f_filialeids:{
151
- type: String
152
- },
153
- clear:{
154
- default:false
176
+ importAddress(){
177
+ this.showFile = true
178
+ },
179
+ // 关闭文件上传对话框
180
+ closeFile() {
181
+ this.showFile = false
182
+ // 将选的文件清空
183
+ this.$refs.file.$el.querySelector('input').value = ''
184
+ },
185
+ //修改
186
+ modify(val){
187
+ this.$refs.paged.$refs.grid.selectStore.selected = null
188
+ this.$dispatch('modify',val)
189
+ },
190
+ async delete(row){
191
+ if(row.id){
192
+ var id = row.id
193
+ let service = await this.$resetpost('api/af-revenue/sql/address_singleTable', {data: {items: 'f_addressid',tablename: 't_service',condition: `f_addressid='${id}'`}},{resolveMsg: null, rejectMsg: null})
194
+ let userfiles = await this.$resetpost('api/af-revenue/sql/address_singleTable', {data: {items: 'f_useraddress_id',tablename: 't_userfiles',condition: `f_useraddress_id='${id}' and f_table_state = '正常'`}},{resolveMsg: null, rejectMsg: null})
195
+ if(service.data.length || userfiles.data.length){
196
+ this.$showAlert('该地址下已有工单或档案,无法删除!','warning',1000)
197
+ }else{
198
+ this.$resetdelete('api/af-revenue/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
199
+ this.$dispatch('cancel')
200
+ })
201
+ }
155
202
  }
156
203
  },
157
- ready(){
158
- this.search()
204
+
205
+ search () {
206
+ this.$refs.paged.$refs.cri.search()
159
207
  },
160
- methods: {
161
- hidden() {
162
- this.criteriaShow = !this.criteriaShow
163
- },
164
208
 
165
- //添加方法
166
- add(val){
167
- if (this.f_filialeids) {
168
- this.$refs.paged.$refs.grid.selectStore.selected = null
169
- this.$dispatch('add',val)
170
- } else {
171
- this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
172
- }
173
- },
174
- importAddress(){
175
- this.showFile = true
176
- },
177
- // 关闭文件上传对话框
178
- closeFile() {
179
- this.showFile = false
180
- // 将选的文件清空
181
- this.$refs.file.$el.querySelector('input').value = ''
182
- },
183
- //修改
184
- modify(val){
185
- this.$refs.paged.$refs.grid.selectStore.selected = null
186
- this.$dispatch('modify',val)
187
- },
188
- async delete(row){
189
- if(row.id){
190
- var id = row.id
191
- let service = await this.$resetpost('rs/sql/address_singleTable', {data: {items: 'f_addressid',tablename: 't_service',condition: `f_addressid='${id}'`}},{resolveMsg: null, rejectMsg: null})
192
- let userfiles = await this.$resetpost('rs/sql/address_singleTable', {data: {items: 'f_useraddress_id',tablename: 't_userfiles',condition: `f_useraddress_id='${id}' and f_table_state = '正常'`}},{resolveMsg: null, rejectMsg: null})
193
- if(service.data.length || userfiles.data.length){
194
- this.$showAlert('该地址下已有工单或档案,无法删除!','warning',1000)
195
- }else{
196
- this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
197
- this.$dispatch('cancel')
198
- })
199
- }
200
- }
201
- },
209
+ async selfSearch (args) {
210
+ this.selecteddata = []
211
+ this.rowsdata = []
212
+ this.all = false
213
+ if (!this.f_orgid) {
214
+ this.getorg([this.$login.f.orgid])
215
+ }
216
+ console.log('查询。。。', this.f_orgid)
217
+
218
+ args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
219
+ await this.model.search(args.condition, args.model)
220
+ this.length = this.model.count
221
+ console.log(this.length,"============")
222
+ },
202
223
 
203
- search () {
204
- this.$refs.paged.$refs.cri.search()
205
- },
224
+ //清空
225
+ clear(){
226
+ this.$refs.paged.$refs.cri.model = {}
227
+ },
228
+ getorg (val) {
229
+ this.f_orgid = this.$login.convertToIn(val)
230
+ this.f_filialeids = val[0]
231
+ this.model.f_filiale_id = val[0]
232
+ },
206
233
 
207
- async selfSearch (args) {
234
+ async select() {
235
+ if(this.all){
208
236
  this.selecteddata = []
209
237
  this.rowsdata = []
210
238
  this.all = false
211
- if (!this.f_orgid) {
212
- this.getorg([this.$login.f.orgid])
213
- }
214
- console.log('查询。。。', this.f_orgid)
215
-
216
- args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
217
- await this.model.search(args.condition, args.model)
218
- this.length = this.model.count
219
- console.log(this.length,"============")
220
- },
221
-
222
- //清空
223
- clear(){
224
- this.$refs.paged.$refs.cri.model = {}
225
- },
226
- getorg (val) {
227
- this.f_orgid = this.$login.convertToIn(val)
228
- this.f_filialeids = val[0]
229
- },
230
-
231
- async select() {
232
- if(this.all){
239
+ this.length = 99999999
240
+ }else {
241
+ this.all = true
242
+ console.log(this.$refs.paged.$refs.cri.condition,"=============")
243
+ let HttpReset = new HttpResetClass()
244
+ await HttpReset.load('POST', 'api/af-revenue/sql/address_getUserAddress?pageNo=1&pageSize=9999999', {
245
+ data: {
246
+ condition: `${this.$refs.paged.$refs.cri.condition} and a.f_filialeid = '${this.f_filialeids}' `
247
+ }
248
+ }, {resolveMsg: null, rejectMsg: '全选获取数据异常,请重试!'}).then((req) => {
233
249
  this.selecteddata = []
234
250
  this.rowsdata = []
235
- this.all = false
236
- this.length = 99999999
237
- }else {
238
- this.all = true
239
- console.log(this.$refs.paged.$refs.cri.condition,"=============")
240
- let HttpReset = new HttpResetClass()
241
- await HttpReset.load('POST', 'rs/sql/address_getUserAddress?pageNo=1&pageSize=9999999', {
242
- data: {
243
- condition: `${this.$refs.paged.$refs.cri.condition} and a.f_filialeid = '${this.f_filialeids}' `
251
+ req.data.forEach((row, n) => {
252
+ console.log(row.state,"===========")
253
+ if(row.state === 'true'){
254
+ this.selecteddata.push(row.id)
255
+ this.rowsdata.push({
256
+ id: row.id,
257
+ name:row.f_address,
258
+ orgid: row.f_orgid,
259
+ gridman: row.f_gridman
260
+ })
244
261
  }
245
- }, {resolveMsg: null, rejectMsg: '全选获取数据异常,请重试!'}).then((req) => {
246
- this.selecteddata = []
247
- this.rowsdata = []
248
- req.data.forEach((row, n) => {
249
- console.log(row.state,"===========")
250
- if(row.state === 'true'){
251
- this.selecteddata.push(row.id)
252
- this.rowsdata.push({
253
- id: row.id,
254
- name:row.f_address
255
- })
256
- }
257
- })
258
262
  })
259
- }
260
- },
261
- selectOne(event, row, i) {
262
- if(this.all){
263
- this.all = !this.all
264
- }
265
- if (event.target.checked) {
266
- this.selecteddata.push(row.id)
267
- this.rowsdata.push({id:row.id,name:row.f_address})
268
- if(this.length === this.selecteddata.length){
269
- this.all = true
270
- }
271
- } else {
272
- this.all = false
273
- this.selecteddata.splice(this.selecteddata.indexOf(row.id),1)
274
- this.rowsdata.splice(parseInt(this.selecteddata.indexOf(row.id)),1)
275
- }
276
- },
277
- submit(){
278
- console.log('提交信息', this.rowsdata)
279
- this.$emit('submit',this.rowsdata)
280
- },
281
- cancel () {
282
- this.$emit('cancel')
263
+ })
283
264
  }
284
265
  },
285
- events: {
286
- onFileUpload: async function (file, res) {
287
- console.log("上传完毕"+JSON.stringify(res))
288
- let data = {
289
- filepath: res.f_downloadpath,
290
- user:this.$login.f
266
+ selectOne(event, row, i) {
267
+ if(this.all){
268
+ this.all = !this.all
269
+ }
270
+ if (event.target.checked) {
271
+ this.selecteddata.push(row.id)
272
+ this.rowsdata.push({id:row.id,name:row.f_address})
273
+ if(this.length === this.selecteddata.length){
274
+ this.all = true
291
275
  }
292
- console.log("filepath="+JSON.stringify(data))
293
- await this.$resetpost(`rs/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
294
- this.$showAlert("成功导入"+res.data+'条地址', 'success', 2000)
295
- //关闭上传框
296
- this.closeFile()
297
- //重新查询
298
- this.init()
299
- })
300
- },
301
- 'onFileError'(error) {
302
- this.$showAlert(error, 'warning', 2000)
276
+ } else {
277
+ this.all = false
278
+ this.selecteddata.splice(this.selecteddata.indexOf(row.id),1)
279
+ this.rowsdata.splice(parseInt(this.selecteddata.indexOf(row.id)),1)
303
280
  }
304
281
  },
305
- computed: {
306
- ischecked(){
307
- return function (row) {
308
- return this.all||this.selecteddata.includes(row.id)
309
- }
310
- },
311
- isall(){
312
- return function () {
313
- return this.all
314
- }
282
+ submit(){
283
+ console.log('提交信息', this.rowsdata)
284
+ this.$emit('submit',this.rowsdata)
285
+ },
286
+ cancel () {
287
+ this.$emit('cancel')
288
+ }
289
+ },
290
+ events: {
291
+ onFileUpload: async function (file, res) {
292
+ console.log("上传完毕"+JSON.stringify(res))
293
+ let data = {
294
+ filepath: res.f_downloadpath,
295
+ user:this.$login.f
315
296
  }
297
+ console.log("filepath="+JSON.stringify(data))
298
+ await this.$resetpost(`api/af-revenue/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
299
+ this.$showAlert("成功导入"+res.data+'条地址', 'success', 2000)
300
+ //关闭上传框
301
+ this.closeFile()
302
+ //重新查询
303
+ this.init()
304
+ })
316
305
  },
317
- watch:{
318
- clear(val){
319
- if(val){
320
- this.search()
321
- }
306
+ 'onFileError'(error) {
307
+ this.$showAlert(error, 'warning', 2000)
308
+ }
309
+ },
310
+ computed: {
311
+ ischecked(){
312
+ return function (row) {
313
+ return this.all||this.selecteddata.includes(row.id)
314
+ }
315
+ },
316
+ isall(){
317
+ return function () {
318
+ return this.all
319
+ }
320
+ }
321
+ },
322
+ watch:{
323
+ clear(val){
324
+ if(val){
325
+ this.search()
322
326
  }
323
327
  }
324
-
325
328
  }
329
+
330
+ }
326
331
  </script>