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.
- package/AddressClient.iml +12 -12
- package/CHANGELOG.md +12 -12
- package/build/dev-server.js +128 -128
- package/build/webpack.base.conf.js +81 -81
- package/examples/showAdd/App.vue +40 -40
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/gradlew +234 -0
- package/gradlew.bat +89 -0
- package/index.html +40 -40
- package/package.json +1 -1
- package/src/address.js +58 -58
- package/src/components/AddAreaMsg.vue +599 -599
- package/src/components/AddStreetOrPcd.vue +231 -231
- package/src/components/AddressAddAddress.vue +479 -479
- package/src/components/AddressFiles.vue +156 -156
- package/src/components/AddressList.vue +323 -323
- package/src/components/AddressManage.vue +117 -117
- package/src/components/AddressTree.vue +501 -501
- package/src/components/AreaFiles.vue +73 -73
- package/src/components/AreaList.vue +357 -357
- package/src/components/AreaManage.vue +101 -101
- package/src/components/AreaTree.vue +508 -508
- package/src/components/Basch.vue +72 -72
- package/src/components/BatchOrders.vue +328 -328
- package/src/components/CityManage.vue +76 -76
- package/src/components/NewAddressInfo.vue +432 -432
- package/src/components/OneCodeList.vue +251 -251
- package/src/components/StreetList.vue +184 -184
- package/src/components/UserAddress.vue +780 -780
- package/src/components/UserAddressChange.vue +58 -58
- package/src/components/addressts/AddressListts.vue +307 -307
- package/src/components/addressts/AddressManagets.vue +117 -117
- package/src/components/addressts/UserAddressChangets.vue +58 -58
- package/src/components/addressts/UserAddressts.vue +739 -739
- package/src/components/areauser/AreaUser.vue +233 -233
- package/src/components/selectAddress/BatchList.vue +177 -174
- package/src/main.js +23 -23
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
|
@@ -121,206 +121,209 @@
|
|
|
121
121
|
</template>
|
|
122
122
|
|
|
123
123
|
<script>
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
import { PagedList } from 'vue-client'
|
|
125
|
+
import {HttpResetClass} from 'vue-client'
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
all: false,
|
|
138
|
+
//row数据
|
|
139
|
+
// 公司下拉
|
|
140
|
+
curorgid: [this.$login.f.orgid],
|
|
141
|
+
f_orgid: '',
|
|
140
142
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
158
|
-
|
|
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
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
204
|
-
|
|
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
|
-
|
|
234
|
+
async select() {
|
|
235
|
+
if(this.all){
|
|
208
236
|
this.selecteddata = []
|
|
209
237
|
this.rowsdata = []
|
|
210
238
|
this.all = false
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
console.log(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
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
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
-
|
|
293
|
-
|
|
294
|
-
|
|
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
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
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
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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
|
+
})
|
|
Binary file
|
|
Binary file
|