address-client 3.2.2 → 3.2.3-zk
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/buildOutputCleanup/cache.properties +2 -2
- package/build/dev-server.js +133 -125
- package/package.json +2 -2
- package/src/address.js +55 -55
- package/src/components/AddAreaMsg.vue +675 -669
- package/src/components/AddressList.vue +391 -611
- package/src/components/AddressManage.vue +110 -117
- package/src/components/AreaList.vue +137 -135
- package/src/components/AreaManage.vue +101 -100
- package/src/components/CityList.vue +133 -133
- package/src/components/StreetList.vue +210 -210
- package/src/components/UserAddress.vue +905 -896
- package/src/main.js +21 -21
- package/yarn-error.log +7619 -0
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
- package/AddressClient.iml +0 -13
- 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 -822
- 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/AddAreaMsg.vue +0 -673
- package/src/filiale/zhoukou/AddressList.vue +0 -391
- package/src/filiale/zhoukou/AddressManage.vue +0 -115
- package/src/filiale/zhoukou/AreaList.vue +0 -319
- package/src/filiale/zhoukou/AreaManage.vue +0 -100
- package/src/filiale/zhoukou/UserAddress.vue +0 -925
- package/src/filiale/zhoukou/sale.js +0 -23
|
@@ -1,117 +1,110 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row">
|
|
3
|
-
<div :class="{'basic-main':!useraddressShow,'binary-left':useraddressShow}">
|
|
4
|
-
<address-list @select-changed="selected" v-ref:addresslist :style="style"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
</
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if(obj.val
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
this.
|
|
79
|
-
|
|
80
|
-
this.$refs.useraddressmsg.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
'
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
this.useraddressShow = false
|
|
112
|
-
},
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
</script>
|
|
116
|
-
<style>
|
|
117
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div :class="{'basic-main':!useraddressShow,'binary-left':useraddressShow}">
|
|
4
|
+
<address-list @select-changed="selected" v-ref:addresslist :style="style"
|
|
5
|
+
:f_filialeids.sync="f_filialeids"></address-list>
|
|
6
|
+
</div>
|
|
7
|
+
<div v-show="useraddressShow" class="binary-right">
|
|
8
|
+
<div class="flex">
|
|
9
|
+
<user-address v-ref:useraddressmsg
|
|
10
|
+
:f_filialeids.sync="f_filialeids" :row.sync="row"></user-address>
|
|
11
|
+
|
|
12
|
+
<user-address-change v-if="addressId" :address_id="addressId"></user-address-change>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
export default {
|
|
20
|
+
title: '地址管理',
|
|
21
|
+
components: {},
|
|
22
|
+
data() {
|
|
23
|
+
return {
|
|
24
|
+
//分公司id串
|
|
25
|
+
f_filialeids: this.$login.f.orgid,
|
|
26
|
+
area: [],
|
|
27
|
+
street: [],
|
|
28
|
+
residential: [],
|
|
29
|
+
row: {},
|
|
30
|
+
useraddressShow: false,
|
|
31
|
+
addressId: null,
|
|
32
|
+
style: 'col-sm-2 form-group'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
props: {},
|
|
36
|
+
methods: {
|
|
37
|
+
selected(obj) {
|
|
38
|
+
console.log(JSON.stringify(obj))
|
|
39
|
+
this.$refs.addresslist.showrightchange = false;
|
|
40
|
+
this.style = 'col-sm-3 form-group'
|
|
41
|
+
if (obj.val && obj.val.id) {
|
|
42
|
+
if (obj.val.f_filialeid != this.f_filialeids) {
|
|
43
|
+
this.refresh()
|
|
44
|
+
return
|
|
45
|
+
}
|
|
46
|
+
// 呼叫中心需要
|
|
47
|
+
this.$dispatch('re-ref', obj.val)
|
|
48
|
+
this.addressId = obj.val.id
|
|
49
|
+
this.$refs.useraddressmsg.cleardara()
|
|
50
|
+
this.$refs.useraddressmsg.initdata()
|
|
51
|
+
this.useraddressShow = true
|
|
52
|
+
this.$refs.useraddressmsg.operation = 'modify'
|
|
53
|
+
this.$refs.useraddressmsg.onedata = 'one'
|
|
54
|
+
// this.$refs.useraddressmsg.model.f_residential_area = obj.val.f_residential_area
|
|
55
|
+
this.$refs.useraddressmsg.model = Object.assign({}, this.$refs.useraddressmsg.model, obj.val)
|
|
56
|
+
this.$refs.useraddressmsg.usertype = obj.val.f_special === '1';
|
|
57
|
+
if (obj.val.f_slice_area) {
|
|
58
|
+
this.$refs.useraddressmsg.model.slice_area = this.$refs.useraddressmsg.model.f_slice_area
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
refresh() {
|
|
63
|
+
this.addressId = null
|
|
64
|
+
this.useraddressShow = false
|
|
65
|
+
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
events: {
|
|
69
|
+
'add'(val) {
|
|
70
|
+
this.style = 'col-sm-3 form-group'
|
|
71
|
+
this.useraddressShow = true
|
|
72
|
+
this.$refs.useraddressmsg.cleardara()
|
|
73
|
+
this.addressId = null
|
|
74
|
+
//true为新增特殊地址
|
|
75
|
+
if (val != '民用') {
|
|
76
|
+
//非民用
|
|
77
|
+
this.$refs.useraddressmsg.usertype = true
|
|
78
|
+
this.$refs.useraddressmsg.onedata = 'one'
|
|
79
|
+
} else {
|
|
80
|
+
this.$refs.useraddressmsg.usertype = false
|
|
81
|
+
}
|
|
82
|
+
this.$refs.useraddressmsg.operation = 'add'
|
|
83
|
+
this.$refs.useraddressmsg.pcdslist = []
|
|
84
|
+
this.$refs.useraddressmsg.streetslist = []
|
|
85
|
+
this.$refs.useraddressmsg.areaslist = []
|
|
86
|
+
this.$refs.useraddressmsg.initdata()
|
|
87
|
+
},
|
|
88
|
+
'confirm'() {
|
|
89
|
+
this.style = 'col-sm-2 form-group'
|
|
90
|
+
this.addressId = null
|
|
91
|
+
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
92
|
+
this.useraddressShow = false
|
|
93
|
+
this.$refs.addresslist.showrightchange = true;
|
|
94
|
+
},
|
|
95
|
+
'modify'(area) {
|
|
96
|
+
this.style = 'col-sm-2 form-group'
|
|
97
|
+
},
|
|
98
|
+
'cancel'() {
|
|
99
|
+
this.style = 'col-sm-2 form-group'
|
|
100
|
+
this.addressId = null
|
|
101
|
+
this.$refs.addresslist.showrightchange = true;
|
|
102
|
+
// 取消不需要重新查询
|
|
103
|
+
// this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
104
|
+
this.useraddressShow = false
|
|
105
|
+
},
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
</script>
|
|
109
|
+
<style>
|
|
110
|
+
</style>
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
</res-select>
|
|
14
14
|
</div>
|
|
15
15
|
<div :class="$parent.$parent.style">
|
|
16
|
-
<label class="font_normal_body"
|
|
16
|
+
<label class="font_normal_body">单位编号</label>
|
|
17
17
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_area_id"
|
|
18
|
-
condition="f_area_id = '{}'" placeholder="
|
|
18
|
+
condition="f_area_id = '{}'" placeholder="单位编号"/>
|
|
19
19
|
</div>
|
|
20
20
|
<div :class="$parent.$parent.style" v-if="false">
|
|
21
21
|
<label class="font_normal_body">省  份</label>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<export-excel :data="$parent.$parent.getCondition"
|
|
47
47
|
:field="$parent.$parent.getfield"
|
|
48
48
|
sqlurl="rs/logic/exportfile"
|
|
49
|
-
sql-name="
|
|
49
|
+
sql-name="address_getarealist"
|
|
50
50
|
template-name='小区信息查询导出'
|
|
51
51
|
:choose-col="true"></export-excel>
|
|
52
52
|
<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>
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
:size="model.f_street ? model.f_street.length*2 : 6"/>
|
|
73
73
|
</div>
|
|
74
74
|
<div :class="$parent.$parent.style">
|
|
75
|
-
<label class="font_normal_body"
|
|
75
|
+
<label class="font_normal_body">单位名称</label>
|
|
76
76
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_residential_area"
|
|
77
|
-
condition="f_residential_area like '%{}%'" placeholder="
|
|
77
|
+
condition="f_residential_area like '%{}%'" placeholder="单位"
|
|
78
78
|
:size="model.f_residential_area ? model.f_residential_area.length*2 : 6"/>
|
|
79
79
|
</div>
|
|
80
80
|
<div :class="$parent.$parent.style">
|
|
@@ -109,7 +109,8 @@
|
|
|
109
109
|
<th v-show="!$parent.$parent.$parent.$parent.areaShow"><nobr>区/县</nobr></th>
|
|
110
110
|
<th><nobr>街道/乡镇</nobr></th>
|
|
111
111
|
<!--民用小区信息开始-->
|
|
112
|
-
<th v-if="!$parent.$parent.$parent.f_special"><nobr
|
|
112
|
+
<th v-if="!$parent.$parent.$parent.f_special"><nobr>单位编号</nobr></th>
|
|
113
|
+
<th v-if="!$parent.$parent.$parent.f_special"><nobr>单位名称</nobr></th>
|
|
113
114
|
<th v-if="!$parent.$parent.$parent.f_special"><nobr>详细地址</nobr></th>
|
|
114
115
|
<th v-if="!$parent.$parent.$parent.f_special && !$parent.$parent.$parent.$parent.areaShow"><nobr>小区备注</nobr></th>
|
|
115
116
|
<!--民用小区信息结束-->
|
|
@@ -137,6 +138,7 @@
|
|
|
137
138
|
<td style="text-align:center" v-if="false"><nobr>{{row.f_city}}</nobr></td>
|
|
138
139
|
<td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
|
|
139
140
|
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
141
|
+
<td style="text-align:center"><nobr>{{row.f_area_id}}</nobr></td>
|
|
140
142
|
<td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
141
143
|
<td style="text-align:center"><nobr>{{row.f_area_address}}{{row.f_residential_area}}</nobr></td>
|
|
142
144
|
<td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
|
|
@@ -167,151 +169,151 @@
|
|
|
167
169
|
</template>
|
|
168
170
|
|
|
169
171
|
<script>
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
import { PagedList } from 'vue-client'
|
|
173
|
+
let readyGen = async function (self) {
|
|
174
|
+
self.getfield = self.config.excelHeaders
|
|
175
|
+
self.search()
|
|
176
|
+
}
|
|
177
|
+
export default {
|
|
176
178
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
},
|
|
204
|
-
housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
|
|
205
|
-
position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
title: '小区管理',
|
|
209
|
-
props:{
|
|
210
|
-
f_filialeids:{
|
|
211
|
-
type: String
|
|
212
|
-
},
|
|
213
|
-
style: {
|
|
214
|
-
type: String,
|
|
215
|
-
default: 'col-sm-2 form-group'
|
|
179
|
+
data () {
|
|
180
|
+
return {
|
|
181
|
+
criteriaShow: false,
|
|
182
|
+
model: new PagedList('rs/sql/address_getarealist',20),
|
|
183
|
+
addflag: false,
|
|
184
|
+
addtitle:'',
|
|
185
|
+
getfield: {},
|
|
186
|
+
// 公司下拉
|
|
187
|
+
curorgid: [this.$login.f.orgid],
|
|
188
|
+
f_orgid: '',
|
|
189
|
+
config: {
|
|
190
|
+
// 导出列要和查询列相同
|
|
191
|
+
excelHeaders: {
|
|
192
|
+
'f_district':'区/县',
|
|
193
|
+
'f_street':'街道名称',
|
|
194
|
+
'f_residential_area':'小区名称',
|
|
195
|
+
'f_area_address':'小区地址',
|
|
196
|
+
'f_comments':'小区备注',
|
|
197
|
+
'f_inputtor':'抄表员',
|
|
198
|
+
'f_house_type':'房屋类型',
|
|
199
|
+
'f_position':'安装位置',
|
|
200
|
+
'f_slice_area':'片区/管理站',
|
|
201
|
+
'f_operator':'操作人',
|
|
202
|
+
'f_operate_date':'操作日期',
|
|
203
|
+
'addressnum':'地址数'
|
|
204
|
+
}
|
|
216
205
|
},
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
206
|
+
housetype:[{label:'全部',value:''},{label: '楼房', value: '楼房'}, {label: '自建房', value: '自建房'}],
|
|
207
|
+
position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}]
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
title: '小区管理',
|
|
211
|
+
props:{
|
|
212
|
+
f_filialeids:{
|
|
213
|
+
type: String
|
|
220
214
|
},
|
|
221
|
-
|
|
222
|
-
|
|
215
|
+
style: {
|
|
216
|
+
type: String,
|
|
217
|
+
default: 'col-sm-2 form-group'
|
|
218
|
+
},
|
|
219
|
+
f_special:{
|
|
220
|
+
type: String
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
ready(){
|
|
224
|
+
readyGen(this)
|
|
223
225
|
|
|
226
|
+
},
|
|
227
|
+
methods: {
|
|
228
|
+
hidden() {
|
|
229
|
+
this.criteriaShow = !this.criteriaShow
|
|
230
|
+
},
|
|
231
|
+
search() {
|
|
232
|
+
this.$refs.paged.$refs.cri.search()
|
|
224
233
|
},
|
|
225
|
-
methods: {
|
|
226
|
-
hidden() {
|
|
227
|
-
this.criteriaShow = !this.criteriaShow
|
|
228
|
-
},
|
|
229
|
-
search() {
|
|
230
|
-
this.$refs.paged.$refs.cri.search()
|
|
231
|
-
},
|
|
232
234
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
add(val){
|
|
253
|
-
if (this.f_filialeids) {
|
|
254
|
-
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
255
|
-
this.$dispatch('add')
|
|
256
|
-
} else {
|
|
257
|
-
this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
|
235
|
+
async delete(row){
|
|
236
|
+
if(row.id >= 0){
|
|
237
|
+
var id = row.id
|
|
238
|
+
let useraredss = await this.$resetpost('rs/sql/address_singleTable',
|
|
239
|
+
{data: {
|
|
240
|
+
items: 'f_residential_area_id',
|
|
241
|
+
tablename: 't_user_address',
|
|
242
|
+
condition: `f_residential_area_id='${id}'`}
|
|
243
|
+
},
|
|
244
|
+
{resolveMsg: null, rejectMsg: null})
|
|
245
|
+
if(useraredss.data.length>0){
|
|
246
|
+
this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
|
|
247
|
+
}else{
|
|
248
|
+
this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
249
|
+
this.$dispatch('cancel')
|
|
250
|
+
})
|
|
258
251
|
}
|
|
259
|
-
}
|
|
260
|
-
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
add(val){
|
|
255
|
+
if (this.f_filialeids) {
|
|
261
256
|
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
262
|
-
this.$dispatch('
|
|
263
|
-
}
|
|
264
|
-
|
|
257
|
+
this.$dispatch('add')
|
|
258
|
+
} else {
|
|
259
|
+
this.$showAlert('请先选择左上角的所在分公司', 'warning', 2000)
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
modify(val){
|
|
263
|
+
this.$refs.paged.$refs.grid.selectStore.selected = null
|
|
264
|
+
this.$dispatch('modify',val)
|
|
265
|
+
},
|
|
266
|
+
selfSearch (args) {
|
|
265
267
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
if(this.f_special){
|
|
270
|
-
args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
|
|
271
|
-
}else{
|
|
272
|
-
args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
|
|
273
|
-
}
|
|
274
|
-
this.model.search(args.condition, args.model)
|
|
275
|
-
},
|
|
276
|
-
//清空
|
|
277
|
-
clear(){
|
|
278
|
-
this.$refs.paged.$refs.cri.model = {}
|
|
279
|
-
},
|
|
280
|
-
getorg (val) {
|
|
281
|
-
this.f_orgid = this.$login.convertToIn(val)
|
|
282
|
-
this.f_filialeids = val[0]
|
|
268
|
+
if (!this.f_orgid) {
|
|
269
|
+
this.getorg([this.$login.f.orgid])
|
|
283
270
|
}
|
|
271
|
+
if(this.f_special){
|
|
272
|
+
args.condition = `${args.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
|
|
273
|
+
}else{
|
|
274
|
+
args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
|
|
275
|
+
}
|
|
276
|
+
this.model.search(args.condition, args.model)
|
|
277
|
+
},
|
|
278
|
+
//清空
|
|
279
|
+
clear(){
|
|
280
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
284
281
|
},
|
|
285
|
-
|
|
282
|
+
getorg (val) {
|
|
283
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
284
|
+
this.f_filialeids = val[0]
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
watch:{
|
|
286
288
|
|
|
289
|
+
},
|
|
290
|
+
computed:{
|
|
291
|
+
getCondition() {
|
|
292
|
+
var condition=''
|
|
293
|
+
if(this.f_special){
|
|
294
|
+
condition = `${this.$refs.paged.$refs.cri.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
|
|
295
|
+
}else{
|
|
296
|
+
condition = `${this.$refs.paged.$refs.cri.condition} and s.f_filialeid = ${this.f_orgid}`
|
|
297
|
+
}
|
|
298
|
+
return {
|
|
299
|
+
condition: condition
|
|
300
|
+
}
|
|
287
301
|
},
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return {
|
|
297
|
-
condition: condition
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
inputtores () {
|
|
301
|
-
// 获取抄表员
|
|
302
|
-
let rs = new Array()
|
|
303
|
-
if (this.$login.f.f_gasman.length > 0) {
|
|
304
|
-
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
305
|
-
let temp = {
|
|
306
|
-
label: this.$login.f.f_gasman[i].name,
|
|
307
|
-
value: this.$login.f.f_gasman[i].name
|
|
308
|
-
}
|
|
309
|
-
rs.push(temp)
|
|
302
|
+
inputtores () {
|
|
303
|
+
// 获取抄表员
|
|
304
|
+
let rs = new Array()
|
|
305
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
306
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
307
|
+
let temp = {
|
|
308
|
+
label: this.$login.f.f_gasman[i].name,
|
|
309
|
+
value: this.$login.f.f_gasman[i].name
|
|
310
310
|
}
|
|
311
|
+
rs.push(temp)
|
|
311
312
|
}
|
|
312
|
-
return rs
|
|
313
313
|
}
|
|
314
|
+
return rs
|
|
314
315
|
}
|
|
315
|
-
|
|
316
316
|
}
|
|
317
|
+
|
|
318
|
+
}
|
|
317
319
|
</script>
|