address-client 3.0.34-aodeToV4 → 3.0.35-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 (41) hide show
  1. package/AddressClient.iml +12 -12
  2. package/CHANGELOG.md +12 -12
  3. package/build/dev-server.js +128 -128
  4. package/build/webpack.base.conf.js +81 -81
  5. package/examples/showAdd/App.vue +40 -40
  6. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  7. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  8. package/gradlew +234 -0
  9. package/gradlew.bat +89 -0
  10. package/index.html +40 -40
  11. package/package.json +1 -1
  12. package/src/address.js +58 -58
  13. package/src/components/AddAreaMsg.vue +599 -599
  14. package/src/components/AddStreetOrPcd.vue +231 -231
  15. package/src/components/AddressAddAddress.vue +479 -479
  16. package/src/components/AddressFiles.vue +156 -156
  17. package/src/components/AddressList.vue +323 -323
  18. package/src/components/AddressManage.vue +117 -117
  19. package/src/components/AddressTree.vue +501 -501
  20. package/src/components/AreaFiles.vue +73 -73
  21. package/src/components/AreaList.vue +357 -357
  22. package/src/components/AreaManage.vue +101 -101
  23. package/src/components/AreaTree.vue +508 -508
  24. package/src/components/Basch.vue +72 -72
  25. package/src/components/BatchOrders.vue +328 -328
  26. package/src/components/CityManage.vue +76 -76
  27. package/src/components/NewAddressInfo.vue +432 -432
  28. package/src/components/OneCodeList.vue +251 -251
  29. package/src/components/StreetList.vue +184 -184
  30. package/src/components/UserAddress.vue +780 -780
  31. package/src/components/UserAddressChange.vue +58 -58
  32. package/src/components/addressts/AddressListts.vue +307 -307
  33. package/src/components/addressts/AddressManagets.vue +117 -117
  34. package/src/components/addressts/UserAddressChangets.vue +58 -58
  35. package/src/components/addressts/UserAddressts.vue +739 -739
  36. package/src/components/areauser/AreaUser.vue +233 -233
  37. package/src/components/selectAddress/BatchList.vue +177 -174
  38. package/src/main.js +23 -23
  39. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  40. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  41. package/.gradle/buildOutputCleanup/cache.properties +0 -2
@@ -121,206 +121,209 @@
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('api/af-revenue/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('api/af-revenue/sql/address_singleTable', {data: {items: 'f_addressid',tablename: 't_service',condition: `f_addressid='${id}'`}},{resolveMsg: null, rejectMsg: null})
192
- 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})
193
- if(service.data.length || userfiles.data.length){
194
- this.$showAlert('该地址下已有工单或档案,无法删除!','warning',1000)
195
- }else{
196
- this.$resetdelete('api/af-revenue/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', 'api/af-revenue/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
+ })
244
259
  }
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
260
  })
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')
261
+ })
283
262
  }
284
263
  },
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
264
+ selectOne(event, row, i) {
265
+ if(this.all){
266
+ this.all = !this.all
267
+ }
268
+ if (event.target.checked) {
269
+ this.selecteddata.push(row.id)
270
+ this.rowsdata.push({id:row.id,name:row.f_address})
271
+ if(this.length === this.selecteddata.length){
272
+ this.all = true
291
273
  }
292
- console.log("filepath="+JSON.stringify(data))
293
- await this.$resetpost(`api/af-revenue/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)
274
+ } else {
275
+ this.all = false
276
+ this.selecteddata.splice(this.selecteddata.indexOf(row.id),1)
277
+ this.rowsdata.splice(parseInt(this.selecteddata.indexOf(row.id)),1)
303
278
  }
304
279
  },
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
- }
280
+ submit(){
281
+ console.log('提交信息', this.rowsdata)
282
+ this.$emit('submit',this.rowsdata)
283
+ },
284
+ cancel () {
285
+ this.$emit('cancel')
286
+ }
287
+ },
288
+ events: {
289
+ onFileUpload: async function (file, res) {
290
+ console.log("上传完毕"+JSON.stringify(res))
291
+ let data = {
292
+ filepath: res.f_downloadpath,
293
+ user:this.$login.f
315
294
  }
295
+ console.log("filepath="+JSON.stringify(data))
296
+ await this.$resetpost(`api/af-revenue/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
297
+ this.$showAlert("成功导入"+res.data+'条地址', 'success', 2000)
298
+ //关闭上传框
299
+ this.closeFile()
300
+ //重新查询
301
+ this.init()
302
+ })
316
303
  },
317
- watch:{
318
- clear(val){
319
- if(val){
320
- this.search()
321
- }
304
+ 'onFileError'(error) {
305
+ this.$showAlert(error, 'warning', 2000)
306
+ }
307
+ },
308
+ computed: {
309
+ ischecked(){
310
+ return function (row) {
311
+ return this.all||this.selecteddata.includes(row.id)
312
+ }
313
+ },
314
+ isall(){
315
+ return function () {
316
+ return this.all
317
+ }
318
+ }
319
+ },
320
+ watch:{
321
+ clear(val){
322
+ if(val){
323
+ this.search()
322
324
  }
323
325
  }
324
-
325
326
  }
327
+
328
+ }
326
329
  </script>
package/src/main.js CHANGED
@@ -1,23 +1,23 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
- import { system } from 'system-clients'
5
- import { sale } from 'sale-client'
6
- import { ldap } from 'ldap-clients'
7
- import address from './address'
8
-
9
- Vue.config.silent = true
10
-
11
- /** **************************通用组件******************************/
12
- all()
13
- address()
14
- ldap()
15
- system(false)
16
- sale()
17
- require('system-clients/src/styles/less/bootstrap.less')
18
-
19
-
20
- new Vue({
21
- el: 'body',
22
- components: { App }
23
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+ import { system } from 'system-clients'
5
+ import { sale } from 'sale-client'
6
+ import { ldap } from 'ldap-clients'
7
+ import address from './address'
8
+
9
+ Vue.config.silent = true
10
+
11
+ /** **************************通用组件******************************/
12
+ all()
13
+ address()
14
+ ldap()
15
+ system(false)
16
+ sale()
17
+ require('system-clients/src/styles/less/bootstrap.less')
18
+
19
+
20
+ new Vue({
21
+ el: 'body',
22
+ components: { App }
23
+ })
@@ -1,2 +0,0 @@
1
- #Fri Jul 10 10:01:08 CST 2020
2
- gradle.version=3.5