address-client 3.0.24-78 → 3.0.24-aode
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/.gradle/{5.2.1 → 5.5}/fileChanges/last-build.bin +0 -0
- package/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/{5.2.1 → 5.5}/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +1 -0
- package/CHANGELOG.md +0 -3
- package/build/dev-server.js +2 -2
- package/build/webpack.base.conf.js +2 -6
- package/examples/showAdd/App.vue +2 -2
- package/index.html +0 -4
- package/package.json +5 -6
- package/src/address.js +5 -11
- package/src/components/AddAreaMsg.vue +78 -148
- package/src/components/AddStreetOrPcd.vue +2 -79
- package/src/components/AddressList.vue +108 -182
- package/src/components/AddressManage.vue +1 -1
- package/src/components/AddressTree.vue +1 -1
- package/src/components/AreaList.vue +247 -317
- package/src/components/AreaManage.vue +18 -17
- package/src/components/CityManage.vue +1 -1
- package/src/components/NewAddressInfo.vue +1 -1
- package/src/components/StreetList.vue +26 -50
- package/src/components/UserAddress.vue +383 -509
- package/src/components/areauser/AreaUser.vue +233 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/gradlew +0 -172
- package/gradlew.bat +0 -84
- package/src/components/CityList.vue +0 -133
- package/src/filiale/WEINAN/AddAreaMsg.vue +0 -656
- package/src/filiale/WEINAN/AddressList.vue +0 -351
- package/src/filiale/WEINAN/AddressManage.vue +0 -122
- package/src/filiale/WEINAN/AreaList.vue +0 -275
- package/src/filiale/WEINAN/UserAddress.vue +0 -783
- package/src/filiale/WEINAN/sale.js +0 -16
- package/src/filiale/gaomi/AddressList.vue +0 -430
- package/src/filiale/gaomi/UserAddress.vue +0 -832
- package/src/filiale/gaomi/sale.js +0 -14
- package/src/filiale/gongyi/AddAreaMsg.vue +0 -640
- package/src/filiale/gongyi/AreaManage.vue +0 -100
- package/src/filiale/gongyi/UserAddress.vue +0 -751
- package/src/filiale/gongyi/sale.js +0 -14
- package/src/filiale/jingwei/UserAddress.vue +0 -764
- package/src/filiale/jingwei/sale.js +0 -12
- package/src/filiale/macheng/AddAreaMsg.vue +0 -635
- package/src/filiale/macheng/AddStreetOrPcd.vue +0 -231
- package/src/filiale/macheng/AddressList.vue +0 -306
- package/src/filiale/macheng/AreaList.vue +0 -279
- package/src/filiale/macheng/CityManage.vue +0 -76
- package/src/filiale/macheng/StreetList.vue +0 -186
- package/src/filiale/macheng/UserAddress.vue +0 -743
- package/src/filiale/macheng/sale.js +0 -17
- package/src/filiale/rongcheng/AddressList.vue +0 -363
- package/src/filiale/rongcheng/UserAddress.vue +0 -799
- package/src/filiale/rongcheng/sale.js +0 -11
- package/src/filiale/shaoguan/AddAreaMsg.vue +0 -631
- package/src/filiale/shaoguan/UserAddress.vue +0 -764
- package/src/filiale/shaoguan/sale.js +0 -11
- package/src/filiale/tongchuan/AddAreaMsg.vue +0 -635
- package/src/filiale/tongchuan/AddStreetOrPcd.vue +0 -308
- package/src/filiale/tongchuan/AddressList.vue +0 -379
- package/src/filiale/tongchuan/AreaList.vue +0 -315
- package/src/filiale/tongchuan/AreaManage.vue +0 -100
- package/src/filiale/tongchuan/CityList.vue +0 -133
- package/src/filiale/tongchuan/StreetList.vue +0 -208
- package/src/filiale/tongchuan/UserAddress.vue +0 -795
- package/src/filiale/tongchuan/sale.js +0 -19
- package/src/filiale/wuhai/UserAddress.vue +0 -795
- package/src/filiale/wuhai/sale.js +0 -12
- package/src/filiale/zhoukou/AddressList.vue +0 -391
- package/src/filiale/zhoukou/UserAddress.vue +0 -833
- package/src/filiale/zhoukou/sale.js +0 -13
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
<div class="flex" @keyup.enter="search">
|
|
3
3
|
<criteria-paged :model="model" v-ref:paged>
|
|
4
4
|
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
-
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
|
|
6
7
|
<div class="row">
|
|
8
|
+
|
|
7
9
|
<div :class="$parent.$parent.style">
|
|
8
10
|
<label class="font_normal_body">组织机构</label>
|
|
9
11
|
<res-select
|
|
10
12
|
restype='organization'
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
@res-select="$parent.$parent.getorg"
|
|
14
|
+
is-mul="false"
|
|
15
|
+
:initresid='$parent.$parent.curorgid'
|
|
14
16
|
>
|
|
15
17
|
</res-select>
|
|
16
18
|
</div>
|
|
@@ -26,6 +28,7 @@
|
|
|
26
28
|
:size="model.f_residential_arearea ? model.f_residential_arearea.length*2 : 8"/>
|
|
27
29
|
</div>
|
|
28
30
|
<!--<div v-if="$parent.$parent.showrightchange" :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.useraddressShow">-->
|
|
31
|
+
|
|
29
32
|
<div :class="$parent.$parent.style" v-if="$parent.$parent.$parent.showrightchange">
|
|
30
33
|
<label class="font_normal_body">楼  号</label>
|
|
31
34
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_building" style="width:60%"
|
|
@@ -37,16 +40,7 @@
|
|
|
37
40
|
<button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('民用')">添加民用</button>
|
|
38
41
|
<button class="button_new button_spacing" style="width: max-content" @click="$parent.$parent.add('非民用')">添加特殊地址</button>
|
|
39
42
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
40
|
-
<button class="button_export button_spacing" @click="$parent.$parent.importAddress
|
|
41
|
-
<button class="button_export button_spacing"
|
|
42
|
-
v-show="this.$login.r.includes('完善地址')"
|
|
43
|
-
@click="$parent.$parent.importAddress('完善')">完善地址</button>
|
|
44
|
-
<export-excel :data="$parent.$parent.getCondition"
|
|
45
|
-
:field="$parent.$parent.getfield"
|
|
46
|
-
sqlurl="rs/logic/exportfile"
|
|
47
|
-
sql-name="addressGetAddress"
|
|
48
|
-
template-name='地址管理查询导出'
|
|
49
|
-
:choose-col="true"></export-excel>
|
|
43
|
+
<button class="button_export button_spacing" @click="$parent.$parent.importAddress">导入地址</button>
|
|
50
44
|
<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>
|
|
51
45
|
</div>
|
|
52
46
|
</div>
|
|
@@ -65,19 +59,19 @@
|
|
|
65
59
|
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showrightchange">
|
|
66
60
|
<label class="font_normal_body">楼  号</label>
|
|
67
61
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_building" style="width:60%"
|
|
68
|
-
condition="a.f_building like '
|
|
62
|
+
condition="a.f_building like '{}'" placeholder="楼号"
|
|
69
63
|
:size="model.f_building ? model.f_building.length*2 : 6"/>
|
|
70
64
|
</div>
|
|
71
65
|
<div :class="$parent.$parent.style" >
|
|
72
66
|
<label class="font_normal_body">单  元</label>
|
|
73
67
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_unit" style="width:60%"
|
|
74
|
-
condition="a.f_unit like '
|
|
68
|
+
condition="a.f_unit like '{}'" placeholder="单元"
|
|
75
69
|
:size="model.f_unit ? model.f_unit.length*2 : 6"/>
|
|
76
70
|
</div>
|
|
77
71
|
<div :class="$parent.$parent.style">
|
|
78
72
|
<label class="font_normal_body">楼  层</label>
|
|
79
73
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_floor" style="width:60%"
|
|
80
|
-
condition="a.f_floor like '
|
|
74
|
+
condition="a.f_floor like '{}'" placeholder="楼层"
|
|
81
75
|
:size="model.f_floor ? model.f_floor.length*2 : 6"/>
|
|
82
76
|
</div>
|
|
83
77
|
<div :class="$parent.$parent.style">
|
|
@@ -86,13 +80,6 @@
|
|
|
86
80
|
condition="a.f_room like '%{}%'" placeholder="门牌号"
|
|
87
81
|
:size="model.f_room ? model.f_room.length*2 : 6"/>
|
|
88
82
|
</div>
|
|
89
|
-
<!-- <div :class="$parent.$parent.style">-->
|
|
90
|
-
<!-- <label class="font_normal_body">小  区</label>-->
|
|
91
|
-
<!-- <input type="text" class="input_search" style="width:60%" v-model="model.f_residential_arearea" style="width:60%"-->
|
|
92
|
-
<!-- condition="a.f_residential_area like '%{}%'" placeholder="小区"-->
|
|
93
|
-
<!-- :size="model.f_residential_arearea ? model.f_residential_arearea.length*2 : 8"/>-->
|
|
94
|
-
<!-- </div>-->
|
|
95
|
-
|
|
96
83
|
<div :class="$parent.$parent.style">
|
|
97
84
|
<label class="font_normal_body">地址 ID</label>
|
|
98
85
|
<input type="text" class="input_search" style="width:60%" v-model="model.id" style="width:60%"
|
|
@@ -105,32 +92,15 @@
|
|
|
105
92
|
condition="a.f_address like '%{}%'" placeholder="详细地址"
|
|
106
93
|
:size="model.f_address ? model.f_address.length*2 : 8"/>
|
|
107
94
|
</div>
|
|
108
|
-
<div :class="$parent.$parent.style" v-if="!$parent.$parent.$parent.showrightchange">
|
|
109
|
-
<label class="font_normal_body">街  道</label>
|
|
110
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_street"
|
|
111
|
-
condition="f_street like '%{}%'" placeholder="街道"
|
|
112
|
-
:size="model.f_street ? model.f_street.length*2 : 6"/>
|
|
113
|
-
</div>
|
|
114
95
|
<div :class="$parent.$parent.style" >
|
|
115
|
-
<label class="font_normal_body"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
close-on-select>
|
|
122
|
-
</v-select>
|
|
123
|
-
</div>
|
|
124
|
-
<div :class="$parent.$parent.style" >
|
|
125
|
-
<label class="font_normal_body">状  态</label>
|
|
126
|
-
<v-select :value.sync="model.f_state"
|
|
127
|
-
class="select_list select"
|
|
128
|
-
v-model="model.f_state"
|
|
129
|
-
condition="a.f_state {}"
|
|
130
|
-
:options='$parent.$parent.getstate' placeholder='地址状态'
|
|
131
|
-
close-on-select>
|
|
132
|
-
</v-select>
|
|
96
|
+
<label class="font_normal_body">特殊地址</label>
|
|
97
|
+
<v-select :value.sync="model.f_special"
|
|
98
|
+
v-model="model.f_special"
|
|
99
|
+
:options='$parent.$parent.specialoptions' placeholder='请选择'
|
|
100
|
+
condition=" {} "
|
|
101
|
+
close-on-select></v-select>
|
|
133
102
|
</div>
|
|
103
|
+
|
|
134
104
|
</div>
|
|
135
105
|
</div>
|
|
136
106
|
</criteria>
|
|
@@ -139,17 +109,15 @@
|
|
|
139
109
|
<tr>
|
|
140
110
|
<th><nobr>序号</nobr></th>
|
|
141
111
|
<th><nobr>用户编号</nobr></th>
|
|
142
|
-
<th
|
|
143
|
-
<th
|
|
112
|
+
<th><nobr>区/县</nobr></th>
|
|
113
|
+
<th><nobr>片区</nobr></th>
|
|
144
114
|
<th><nobr>街道</nobr></th>
|
|
145
115
|
<th><nobr>小区(单位)</nobr></th>
|
|
146
|
-
<th
|
|
147
|
-
<th
|
|
148
|
-
<th
|
|
149
|
-
<th
|
|
116
|
+
<th><nobr>楼号</nobr></th>
|
|
117
|
+
<th><nobr>单元</nobr></th>
|
|
118
|
+
<th><nobr>楼层</nobr></th>
|
|
119
|
+
<th><nobr>门牌号</nobr></th>
|
|
150
120
|
<th><nobr>详细地址</nobr></th>
|
|
151
|
-
<th><nobr>地址状态</nobr></th>
|
|
152
|
-
<th><nobr>状态</nobr></th>
|
|
153
121
|
<th><nobr>时间</nobr></th>
|
|
154
122
|
<th><nobr>操作</nobr></th>
|
|
155
123
|
</tr>
|
|
@@ -158,23 +126,20 @@
|
|
|
158
126
|
<tr>
|
|
159
127
|
<td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
|
|
160
128
|
<td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
161
|
-
<td
|
|
162
|
-
<td
|
|
129
|
+
<td style="text-align:center"><nobr>{{row.f_pcd}}</nobr></td>
|
|
130
|
+
<td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
163
131
|
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
164
132
|
<td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
165
|
-
<td
|
|
166
|
-
<td
|
|
167
|
-
<td
|
|
168
|
-
<td
|
|
133
|
+
<td style="text-align:center"><nobr>{{row.f_building}}{{row.f_building_suffix}}</nobr></td>
|
|
134
|
+
<td style="text-align:center"><nobr>{{row.f_unit}}{{row.f_unit_suffix}}</nobr></td>
|
|
135
|
+
<td style="text-align:center"><nobr>{{row.f_floor}}{{row.f_floor_suffix}}</nobr></td>
|
|
136
|
+
<td style="text-align:center"><nobr>{{row.f_room}}{{row.f_room_suffix}}</nobr></td>
|
|
169
137
|
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
170
|
-
<td style="text-align:center"><nobr>{{row.f_address_state}}</nobr></td>
|
|
171
|
-
<td style="text-align:center"><nobr>{{row.f_state ==='作废'?'作废':'有效'}}</nobr></td>
|
|
172
138
|
<td style="text-align:center"><nobr>{{row.f_create_date}}</nobr></td>
|
|
173
139
|
<td style="text-align:center">
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
<button
|
|
177
|
-
style="padding: 5px 12px"
|
|
140
|
+
<!-- <button type="button" name="button" class="btn btn-link"
|
|
141
|
+
@click.stop="$parent.$parent.$parent.modify(row)">修改</button>-->
|
|
142
|
+
<button type="button" name="button" class="btn btn-link"
|
|
178
143
|
@click.stop="$parent.$parent.$parent.delete(row)">删除</button>
|
|
179
144
|
</td>
|
|
180
145
|
</tr>
|
|
@@ -183,8 +148,7 @@
|
|
|
183
148
|
</data-grid>
|
|
184
149
|
</criteria-paged>
|
|
185
150
|
</div>
|
|
186
|
-
<
|
|
187
|
-
<modal :show.sync="showFile" width="480px" v-ref:modal backdrop="true">
|
|
151
|
+
<modal :show.sync="showFile" v-ref:modal backdrop="true">
|
|
188
152
|
<header slot="modal-header" class="modal-header">
|
|
189
153
|
<button type="button" class="close" @click="closeFile"><span>×</span></button>
|
|
190
154
|
<h4 class="modal-title">选择文件</h4>
|
|
@@ -194,54 +158,32 @@
|
|
|
194
158
|
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
|
|
195
159
|
</div>
|
|
196
160
|
</article>
|
|
197
|
-
<footer slot="modal-footer" class="modal-footer"
|
|
161
|
+
<footer slot="modal-footer" class="modal-footer"></footer>
|
|
198
162
|
</modal>
|
|
163
|
+
<work-busy :is-busy="iswork" v-show="iswork"></work-busy>
|
|
164
|
+
|
|
199
165
|
</template>
|
|
200
166
|
|
|
201
167
|
<script>
|
|
202
168
|
import { PagedList } from 'vue-client'
|
|
203
|
-
|
|
204
|
-
self.getfield = self.config.excelHeaders
|
|
205
|
-
}
|
|
169
|
+
|
|
206
170
|
export default {
|
|
207
171
|
data () {
|
|
208
172
|
return {
|
|
173
|
+
iswork: false,
|
|
209
174
|
criteriaShow: false,
|
|
210
175
|
model: new PagedList('rs/sql/address_getAddress',20,{tablename: `'t_user_address'`,items: `'*'`,orderitem: `'id desc'`}),
|
|
211
|
-
config: {
|
|
212
|
-
// 导出列要和查询列相同
|
|
213
|
-
excelHeaders: {
|
|
214
|
-
'f_user_name':'用户姓名',
|
|
215
|
-
'f_userinfo_code':'用户编号',
|
|
216
|
-
'id':'地址ID',
|
|
217
|
-
'f_pcd':'区/县',
|
|
218
|
-
'f_slice_area':'片区',
|
|
219
|
-
'f_street':'街道',
|
|
220
|
-
'f_residential_area':'小区',
|
|
221
|
-
'f_building':'楼号',
|
|
222
|
-
'f_unit':'单元',
|
|
223
|
-
'f_floor':'楼层',
|
|
224
|
-
'f_room':'门牌号',
|
|
225
|
-
'f_address':'详细地址',
|
|
226
|
-
'f_address_state':'地址状态',
|
|
227
|
-
'f_create_date':'时间',
|
|
228
|
-
'f_state':'状态'
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
isbusy:false,
|
|
232
176
|
addflag: false,
|
|
233
177
|
addtitle:'',
|
|
234
|
-
|
|
235
|
-
footer: [],
|
|
236
|
-
getfield: {},
|
|
237
|
-
imptype:'',
|
|
178
|
+
|
|
238
179
|
// 公司下拉
|
|
239
180
|
curorgid: [this.$login.f.orgid],
|
|
240
181
|
f_orgid: '',
|
|
241
|
-
|
|
182
|
+
|
|
242
183
|
//文件上传弹框
|
|
243
184
|
showFile: false,
|
|
244
|
-
showrightchange:true
|
|
185
|
+
showrightchange:true,
|
|
186
|
+
specialoptions:[{label:"全部",value:""},{label:"是",value:"a.f_special ='1'"},{label:"否",value:"a.f_special is null"}]
|
|
245
187
|
}
|
|
246
188
|
},
|
|
247
189
|
title: '地址列表',
|
|
@@ -255,27 +197,9 @@
|
|
|
255
197
|
}
|
|
256
198
|
},
|
|
257
199
|
ready(){
|
|
258
|
-
readyGen(this)
|
|
259
200
|
this.search()
|
|
260
201
|
},
|
|
261
202
|
methods: {
|
|
262
|
-
getotherfooter() {
|
|
263
|
-
// this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
|
|
264
|
-
// this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
|
|
265
|
-
this.other = [];
|
|
266
|
-
this.footer = [];
|
|
267
|
-
// let exportdata = this.getCondition;
|
|
268
|
-
let otherInData = [];
|
|
269
|
-
otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
|
|
270
|
-
let footerData = [], exportfield = this.getfield;
|
|
271
|
-
footerData.push("合计");
|
|
272
|
-
let self = this;
|
|
273
|
-
for (var field in self.sumsmodel) {
|
|
274
|
-
footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`);
|
|
275
|
-
}
|
|
276
|
-
this.footer.push(footerData);
|
|
277
|
-
this.other.push(otherInData);
|
|
278
|
-
},
|
|
279
203
|
hidden() {
|
|
280
204
|
this.criteriaShow = !this.criteriaShow
|
|
281
205
|
},
|
|
@@ -289,8 +213,7 @@
|
|
|
289
213
|
this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
|
290
214
|
}
|
|
291
215
|
},
|
|
292
|
-
importAddress(
|
|
293
|
-
this.imptype = val
|
|
216
|
+
importAddress(){
|
|
294
217
|
this.showFile = true
|
|
295
218
|
},
|
|
296
219
|
// 关闭文件上传对话框
|
|
@@ -305,77 +228,80 @@
|
|
|
305
228
|
this.$dispatch('modify',val)
|
|
306
229
|
},
|
|
307
230
|
async delete(row){
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
})
|
|
317
|
-
}
|
|
231
|
+
|
|
232
|
+
if(row.id){
|
|
233
|
+
var id = row.id
|
|
234
|
+
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 in ('正常','待开通')`}},{resolveMsg: null, rejectMsg: null})
|
|
235
|
+
let isdelete = await this.$resetpost('rs/sql/isDeleteAddress', {data: {f_addressid: id}},{resolveMsg: null, rejectMsg: null})
|
|
236
|
+
if(userfiles.data.length){
|
|
237
|
+
this.$showAlert('该地址下已有正常/待开通表具档案,无法删除!','warning',1000)
|
|
238
|
+
return
|
|
318
239
|
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
},
|
|
323
|
-
selfSearch (args) {
|
|
324
|
-
if (!this.f_orgid) {
|
|
325
|
-
this.getorg([this.$login.f.orgid])
|
|
240
|
+
if(isdelete.data.length){
|
|
241
|
+
this.$showAlert('该地址下已有正在工作的置换单,无法删除!','warning',1000)
|
|
242
|
+
return
|
|
326
243
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
244
|
+
this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
245
|
+
this.$dispatch('cancel')
|
|
246
|
+
})
|
|
247
|
+
}
|
|
248
|
+
},
|
|
330
249
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
250
|
+
search () {
|
|
251
|
+
this.$refs.paged.$refs.cri.search()
|
|
252
|
+
},
|
|
253
|
+
|
|
254
|
+
selfSearch (args) {
|
|
255
|
+
debugger
|
|
256
|
+
//去除空格
|
|
257
|
+
for(let key in args.model){
|
|
258
|
+
if(args.model[key] instanceof String){
|
|
259
|
+
args.model[key] = args.model[key].trim();
|
|
338
260
|
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
261
|
+
}
|
|
262
|
+
if (!this.f_orgid) {
|
|
263
|
+
this.getorg([this.$login.f.orgid])
|
|
264
|
+
}
|
|
265
|
+
console.log("xxx"+this.f_filialeids)
|
|
266
|
+
args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
|
|
267
|
+
this.model.search(args.condition, args.model)
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
//清空
|
|
271
|
+
clear(){
|
|
272
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
273
|
+
},
|
|
274
|
+
getorg (val) {
|
|
275
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
276
|
+
if (!this.f_orgid) {
|
|
277
|
+
this.f_orgid = this.f_filialeids
|
|
278
|
+
}
|
|
279
|
+
this.f_filialeids = val[0]
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
events: {
|
|
283
|
+
onFileUpload: async function (file, res) {
|
|
284
|
+
this.$showAlert('文件上传成功','success',1000);
|
|
285
|
+
this.iswork = true
|
|
286
|
+
console.log("上传完毕"+JSON.stringify(res))
|
|
287
|
+
let data = {
|
|
288
|
+
filepath: res.f_downloadpath,
|
|
289
|
+
user:this.$login.f
|
|
290
|
+
}
|
|
291
|
+
this.closeFile();
|
|
292
|
+
try{
|
|
350
293
|
await this.$resetpost(`rs/logic/address_useraddressimport`,data, {resolveMsg: null, rejectMsg: '导入失败', silent: true}, 0).then((res)=>{
|
|
351
|
-
this
|
|
352
|
-
|
|
353
|
-
this.$showAlert("导入信息:"+res.data.msg, res.data.type, 2000);
|
|
354
|
-
}else{
|
|
355
|
-
this.$showMessage(res.data.msg);
|
|
356
|
-
}
|
|
357
|
-
//关闭上传框
|
|
358
|
-
this.closeFile()
|
|
359
|
-
//重新查询
|
|
294
|
+
this.$showAlert("导入成功",'success', 2000);
|
|
295
|
+
this.iswork = false
|
|
360
296
|
this.init()
|
|
361
|
-
}).catch(error=>{
|
|
362
|
-
this.isbusy = false
|
|
363
297
|
})
|
|
364
|
-
}
|
|
365
|
-
'onFileError'(error) {
|
|
366
|
-
this.$showAlert(error, 'warning', 2000)
|
|
298
|
+
}catch(e){
|
|
367
299
|
}
|
|
368
300
|
},
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
getaddresstate() {
|
|
372
|
-
return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
|
|
373
|
-
},
|
|
374
|
-
getCondition() {
|
|
375
|
-
return {
|
|
376
|
-
condition: `${this.$refs.paged.$refs.cri.condition}` + `and a.f_filialeid = '${this.f_filialeids}'`}
|
|
377
|
-
}
|
|
301
|
+
'onFileError'(error) {
|
|
302
|
+
this.$showAlert(error, 'warning', 2000)
|
|
378
303
|
}
|
|
304
|
+
}
|
|
379
305
|
|
|
380
306
|
}
|
|
381
307
|
</script>
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
this.$refs.useraddressmsg.usertype=obj.val.f_user_type
|
|
54
54
|
this.$refs.useraddressmsg.operation='modify'
|
|
55
55
|
this.$refs.useraddressmsg.onedata='one'
|
|
56
|
-
this.$refs.useraddressmsg.model=Object.assign({},
|
|
56
|
+
this.$refs.useraddressmsg.model=Object.assign({},obj.val)
|
|
57
57
|
if(obj.val.f_special=='1'){
|
|
58
58
|
this.$refs.useraddressmsg.usertype = true
|
|
59
59
|
}else{
|