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.
Files changed (66) hide show
  1. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  2. package/build/dev-server.js +133 -125
  3. package/package.json +2 -2
  4. package/src/address.js +55 -55
  5. package/src/components/AddAreaMsg.vue +675 -669
  6. package/src/components/AddressList.vue +391 -611
  7. package/src/components/AddressManage.vue +110 -117
  8. package/src/components/AreaList.vue +137 -135
  9. package/src/components/AreaManage.vue +101 -100
  10. package/src/components/CityList.vue +133 -133
  11. package/src/components/StreetList.vue +210 -210
  12. package/src/components/UserAddress.vue +905 -896
  13. package/src/main.js +21 -21
  14. package/yarn-error.log +7619 -0
  15. package/.gradle/3.5/file-changes/last-build.bin +0 -0
  16. package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
  17. package/.gradle/buildOutputCleanup/built.bin +0 -0
  18. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
  19. package/AddressClient.iml +0 -13
  20. package/src/filiale/WEINAN/AddAreaMsg.vue +0 -656
  21. package/src/filiale/WEINAN/AddressList.vue +0 -351
  22. package/src/filiale/WEINAN/AddressManage.vue +0 -122
  23. package/src/filiale/WEINAN/AreaList.vue +0 -275
  24. package/src/filiale/WEINAN/UserAddress.vue +0 -783
  25. package/src/filiale/WEINAN/sale.js +0 -16
  26. package/src/filiale/gaomi/AddressList.vue +0 -430
  27. package/src/filiale/gaomi/UserAddress.vue +0 -832
  28. package/src/filiale/gaomi/sale.js +0 -14
  29. package/src/filiale/gongyi/AddAreaMsg.vue +0 -640
  30. package/src/filiale/gongyi/AreaManage.vue +0 -100
  31. package/src/filiale/gongyi/UserAddress.vue +0 -751
  32. package/src/filiale/gongyi/sale.js +0 -14
  33. package/src/filiale/jingwei/UserAddress.vue +0 -764
  34. package/src/filiale/jingwei/sale.js +0 -12
  35. package/src/filiale/macheng/AddAreaMsg.vue +0 -635
  36. package/src/filiale/macheng/AddStreetOrPcd.vue +0 -231
  37. package/src/filiale/macheng/AddressList.vue +0 -306
  38. package/src/filiale/macheng/AreaList.vue +0 -279
  39. package/src/filiale/macheng/CityManage.vue +0 -76
  40. package/src/filiale/macheng/StreetList.vue +0 -186
  41. package/src/filiale/macheng/UserAddress.vue +0 -743
  42. package/src/filiale/macheng/sale.js +0 -17
  43. package/src/filiale/rongcheng/AddressList.vue +0 -363
  44. package/src/filiale/rongcheng/UserAddress.vue +0 -799
  45. package/src/filiale/rongcheng/sale.js +0 -11
  46. package/src/filiale/shaoguan/AddAreaMsg.vue +0 -631
  47. package/src/filiale/shaoguan/UserAddress.vue +0 -764
  48. package/src/filiale/shaoguan/sale.js +0 -11
  49. package/src/filiale/tongchuan/AddAreaMsg.vue +0 -635
  50. package/src/filiale/tongchuan/AddStreetOrPcd.vue +0 -308
  51. package/src/filiale/tongchuan/AddressList.vue +0 -379
  52. package/src/filiale/tongchuan/AreaList.vue +0 -315
  53. package/src/filiale/tongchuan/AreaManage.vue +0 -100
  54. package/src/filiale/tongchuan/CityList.vue +0 -133
  55. package/src/filiale/tongchuan/StreetList.vue +0 -208
  56. package/src/filiale/tongchuan/UserAddress.vue +0 -822
  57. package/src/filiale/tongchuan/sale.js +0 -19
  58. package/src/filiale/wuhai/UserAddress.vue +0 -795
  59. package/src/filiale/wuhai/sale.js +0 -12
  60. package/src/filiale/zhoukou/AddAreaMsg.vue +0 -673
  61. package/src/filiale/zhoukou/AddressList.vue +0 -391
  62. package/src/filiale/zhoukou/AddressManage.vue +0 -115
  63. package/src/filiale/zhoukou/AreaList.vue +0 -319
  64. package/src/filiale/zhoukou/AreaManage.vue +0 -100
  65. package/src/filiale/zhoukou/UserAddress.vue +0 -925
  66. 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" :f_filialeids.sync="f_filialeids"></address-list>
5
- </div>
6
- <div v-show="useraddressShow" class="binary-right">
7
- <div class="flex">
8
- <user-address v-ref:useraddressmsg
9
- :f_filialeids.sync="f_filialeids" :row="row"></user-address>
10
-
11
- <user-address-change v-if="addressId" :address_id="addressId"></user-address-change>
12
- </div>
13
- </div>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- export default {
19
- title: '地址管理',
20
- components:{
21
- },
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
-
37
- },
38
- methods:{
39
- selected(obj){
40
- this.$refs.addresslist.showrightchange=false;
41
- this.style='col-sm-3 form-group'
42
- if(obj.val&&obj.val.id){
43
- if (obj.val.f_filialeid != this.f_filialeids) {
44
- this.refresh()
45
- return
46
- }
47
- // 呼叫中心需要
48
- this.$dispatch('re-ref', obj.val)
49
- this.addressId=obj.val.id
50
- this.useraddressShow=true
51
- this.$refs.useraddressmsg.cleardara()
52
- this.$refs.useraddressmsg.initdata()
53
- this.$refs.useraddressmsg.usertype=obj.val.f_user_type
54
- this.$refs.useraddressmsg.operation='modify'
55
- this.$refs.useraddressmsg.onedata='one'
56
- this.$refs.useraddressmsg.model=Object.assign({},this.$refs.useraddressmsg.model,obj.val)
57
- if(obj.val.f_special=='1'){
58
- this.$refs.useraddressmsg.usertype = true
59
- }else{
60
- this.$refs.useraddressmsg.usertype = false
61
- }
62
- if (obj.val.f_slice_area) {
63
- this.$refs.useraddressmsg.model.slice_area = [{
64
- name: this.$refs.useraddressmsg.model.f_slice_area,
65
- code: this.$refs.useraddressmsg.model.f_area_code
66
- }]
67
- }
68
- }
69
- },
70
- refresh () {
71
- this.addressId=null
72
- this.useraddressShow = false
73
- this.$refs.addresslist.$refs.paged.$refs.cri.search()
74
- }
75
- },
76
- events:{
77
- 'add'(val){
78
- this.style='col-sm-3 form-group'
79
- this.useraddressShow = true
80
- this.$refs.useraddressmsg.cleardara()
81
- this.addressId=null
82
- //true为新增特殊地址
83
- if (val!='民用') {
84
- //非民用
85
- this.$refs.useraddressmsg.usertype = true
86
- this.$refs.useraddressmsg.onedata = 'one'
87
- }else{
88
- this.$refs.useraddressmsg.usertype = false
89
- }
90
- this.$refs.useraddressmsg.operation='add'
91
- this.$refs.useraddressmsg.pcdslist=[]
92
- this.$refs.useraddressmsg.streetslist=[]
93
- this.$refs.useraddressmsg.areaslist=[]
94
- this.$refs.useraddressmsg.initdata()
95
- },
96
- 'confirm' () {
97
- this.style='col-sm-2 form-group'
98
- this.addressId=null
99
- this.$refs.addresslist.$refs.paged.$refs.cri.search()
100
- this.useraddressShow = false
101
- this.$refs.addresslist.showrightchange=true;
102
- },
103
- 'modify'(area){
104
- this.style='col-sm-2 form-group'
105
- },
106
- 'cancel' () {
107
- this.style='col-sm-2 form-group'
108
- this.addressId=null
109
- this.$refs.addresslist.showrightchange=true;
110
- this.$refs.addresslist.$refs.paged.$refs.cri.search()
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">小区编号</label>
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">省&emsp;&emsp;份</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="manage_getarealist"
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">小区名称</label>
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>小区名称</nobr></th>
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
- import { PagedList } from 'vue-client'
171
- let readyGen = async function (self) {
172
- self.getfield = self.config.excelHeaders
173
- self.search()
174
- }
175
- export default {
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
- data () {
178
- return {
179
- criteriaShow: false,
180
- model: new PagedList('rs/sql/address_getarealist',20),
181
- addflag: false,
182
- addtitle:'',
183
- getfield: {},
184
- // 公司下拉
185
- curorgid: [this.$login.f.orgid],
186
- f_orgid: '',
187
- config: {
188
- // 导出列要和查询列相同
189
- excelHeaders: {
190
- 'f_district':'区/县',
191
- 'f_street':'街道名称',
192
- 'f_residential_area':'小区名称',
193
- 'f_area_address':'小区地址',
194
- 'f_comments':'小区备注',
195
- 'f_inputtor':'抄表员',
196
- 'f_house_type':'房屋类型',
197
- 'f_position':'安装位置',
198
- 'f_slice_area':'片区/管理站',
199
- 'f_operator':'操作人',
200
- 'f_operate_date':'操作日期',
201
- 'addressnum':'地址数'
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
- f_special:{
218
- type: String
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
- ready(){
222
- readyGen(this)
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
- async delete(row){
234
- if(row.id >= 0){
235
- var id = row.id
236
- let useraredss = await this.$resetpost('rs/sql/address_singleTable',
237
- {data: {
238
- items: 'f_residential_area_id',
239
- tablename: 't_user_address',
240
- condition: `f_residential_area_id='${id}'`}
241
- },
242
- {resolveMsg: null, rejectMsg: null})
243
- if(useraredss.data.length>0){
244
- this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
245
- }else{
246
- this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
247
- this.$dispatch('cancel')
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
- modify(val){
252
+ }
253
+ },
254
+ add(val){
255
+ if (this.f_filialeids) {
261
256
  this.$refs.paged.$refs.grid.selectStore.selected = null
262
- this.$dispatch('modify',val)
263
- },
264
- selfSearch (args) {
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
- if (!this.f_orgid) {
267
- this.getorg([this.$login.f.orgid])
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
- watch:{
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
- computed:{
289
- getCondition() {
290
- var condition=''
291
- if(this.f_special){
292
- condition = `${this.$refs.paged.$refs.cri.condition} and s.f_special='1' and s.f_filialeid = '${this.f_filialeids}'`
293
- }else{
294
- condition = `${this.$refs.paged.$refs.cri.condition} and s.f_filialeid = ${this.f_orgid}`
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>