sale-client 3.6.21 → 3.6.23

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 (88) hide show
  1. package/build/dev-server.js +1 -1
  2. package/package.json +2 -2
  3. package/src/components/FilesManage/FileUserFiles.vue +1014 -1014
  4. package/src/components/FilesManage/FileUserMerge.vue +203 -203
  5. package/src/components/FilesManage/UserPaperInfoTest.vue +58 -51
  6. package/src/components/FilesManageNew/FileUserFiles.vue +756 -756
  7. package/src/components/FilesManageNew/FileUserMerge.vue +202 -202
  8. package/src/components/charge/business/CardMeterCenter.vue +944 -944
  9. package/src/components/charge/business/IOTMeterCenter.vue +793 -793
  10. package/src/components/charge/business/OtherChargeNew.vue +550 -550
  11. package/src/components/charge/business/machine/MachineMeterCenter.vue +676 -676
  12. package/src/components/charge/gasloss/gasLossOperate.vue +383 -383
  13. package/src/components/newBill/CardMeterCenter.vue +902 -902
  14. package/src/components/newBill/IOTMeterCenter.vue +797 -797
  15. package/src/components/revenue/Common/EticketModal.vue +95 -90
  16. package/src/components/revenue/comprehen/Maintenance/T+MoneyDocking/moneyDocking.vue +202 -202
  17. package/src/components/revenue/comprehen/SpecialUser/BasicLiving/BasicLivingList.vue +280 -280
  18. package/src/filiale/alashan/business/CardMeterCenter.vue +897 -897
  19. package/src/filiale/ancheng/FilesManage/FileUserFiles.vue +1010 -1010
  20. package/src/filiale/ancheng/FilesManageNew/FileUserFiles.vue +763 -763
  21. package/src/filiale/chengtou/components/FilesManage/FileUserFiles.vue +1019 -1019
  22. package/src/filiale/chengtou/components/OtherChargeNew.vue +549 -549
  23. package/src/filiale/dongguan/components/FilesManage/FileUserFiles.vue +1037 -1037
  24. package/src/filiale/gaomi/components/FilesManage/FileUserFiles.vue +934 -934
  25. package/src/filiale/gehua/CardMeterCenter.vue +898 -898
  26. package/src/filiale/gehua/FileManageNew/FileUserFiles.vue +769 -769
  27. package/src/filiale/gehua/FileUserFiles.vue +1007 -1007
  28. package/src/filiale/gehua/IOTMeterCenter.vue +791 -791
  29. package/src/filiale/gehua/MachineMeterCenter.vue +685 -685
  30. package/src/filiale/gehua/OtherChargeNew.vue +558 -558
  31. package/src/filiale/guangxi/CardMeterCenter.vue +891 -891
  32. package/src/filiale/guangxi/IOTMeterCenter.vue +774 -774
  33. package/src/filiale/guangxi/MachineMeterCenter.vue +622 -622
  34. package/src/filiale/haile/MachineMeterCenter.vue +762 -762
  35. package/src/filiale/huayin/CardMeterCenter.vue +903 -903
  36. package/src/filiale/huayin/FileUserFiles.vue +1007 -1007
  37. package/src/filiale/huayin/IOTMeterCenter.vue +796 -796
  38. package/src/filiale/huayin/MachineMeterCenter.vue +680 -680
  39. package/src/filiale/jingwei/CardMeterCenter.vue +870 -870
  40. package/src/filiale/jingwei/FileUserFiles.vue +905 -905
  41. package/src/filiale/jingwei/ShowCardSellGas.vue +903 -903
  42. package/src/filiale/kelai/CardMeterCenter.vue +934 -934
  43. package/src/filiale/kelai/FileUserFiles.vue +762 -762
  44. package/src/filiale/kelai/IOTMeterCenter.vue +833 -833
  45. package/src/filiale/kelai/MachineMeterCenter.vue +705 -705
  46. package/src/filiale/konggang/FileUserFiles.vue +990 -990
  47. package/src/filiale/liaoyuan/FileUserFiles.vue +844 -844
  48. package/src/filiale/macheng/CardMeterCenter.vue +939 -939
  49. package/src/filiale/macheng/FileUserFiles.vue +930 -930
  50. package/src/filiale/meihekou/FileUserFiles.vue +995 -995
  51. package/src/filiale/ningjin/FileUserFiles.vue +1020 -1020
  52. package/src/filiale/qianneng/OtherChargeNew.vue +544 -544
  53. package/src/filiale/qianneng/eticket/EticketModal.vue +96 -91
  54. package/src/filiale/qianneng/eticket/EticketPrint.vue +377 -376
  55. package/src/filiale/qianneng/eticket/EticketRecordList.vue +309 -289
  56. package/src/filiale/qianneng/machine/MachineMeterCenter.vue +676 -676
  57. package/src/filiale/rizhao/FileUserFiles.vue +984 -984
  58. package/src/filiale/rizhao/IOTMeterCenter.vue +795 -795
  59. package/src/filiale/rongcheng/FileUserFiles.vue +881 -881
  60. package/src/filiale/rongcheng/FilesManageNew/FileUserFiles.vue +732 -732
  61. package/src/filiale/rongcheng/FilesManageNew/FileUserMerge.vue +202 -202
  62. package/src/filiale/shanggao/FileUserFiles.vue +995 -995
  63. package/src/filiale/shangluo/CardMeterCenter.vue +892 -892
  64. package/src/filiale/shangluo/IOTMeterCenter.vue +797 -797
  65. package/src/filiale/shangluo/MachineMeterCenter.vue +734 -734
  66. package/src/filiale/shanxian/OtherChargeNew.vue +561 -561
  67. package/src/filiale/shanxian/components/FilesManage/FileUserFiles.vue +1004 -1004
  68. package/src/filiale/shanxian/components/FilesManageNew/FileUserFiles.vue +756 -756
  69. package/src/filiale/shanxian/components/revenue/CardMeterCenter.vue +944 -944
  70. package/src/filiale/shaoguan/FilesManage/FileUserFiles.vue +881 -881
  71. package/src/filiale/shaoguan/FilesManageNew/FileUserFiles.vue +734 -734
  72. package/src/filiale/shexian/FilesManage/FileUserFiles.vue +991 -991
  73. package/src/filiale/tongchuan/BasicLivingList.vue +253 -253
  74. package/src/filiale/tongchuan/CardMeterCenter.vue +923 -923
  75. package/src/filiale/tongchuan/FileUserFiles.vue +1206 -1206
  76. package/src/filiale/tongchuan/bill/EticketModal.vue +90 -90
  77. package/src/filiale/tongchuan/filemanagenew/FileUserFiles.vue +842 -842
  78. package/src/filiale/wenxi/CardMeterCenter.vue +942 -942
  79. package/src/filiale/wenxi/FileUserFiles.vue +1032 -1032
  80. package/src/filiale/wenxi/IOTMeterCenter.vue +774 -774
  81. package/src/filiale/wuan/FileUserFiles.vue +1006 -1006
  82. package/src/filiale/wuhai/CardMeterCenter.vue +945 -945
  83. package/src/filiale/wuhai/IOTMeterCenter.vue +757 -757
  84. package/src/filiale/yuansheng/CardMeterCenter.vue +950 -950
  85. package/src/filiale/yuansheng/IOTMeterCenter.vue +788 -788
  86. package/src/filiale/zhongsheng/FilesManage/FileUserFiles.vue +1038 -1038
  87. package/src/filiale/zhongyi/FileUserFiles.vue +1020 -1020
  88. package/src/main.js +27 -27
@@ -1,280 +1,280 @@
1
- <template>
2
- <div @keyup.enter="search" class="flex" id="ss" style="flex:1;" v-el:sss>
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria @condition-changed='$parent.selfSearch' partial='criteria' v-ref:cri>
5
- <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
6
- <div class="row">
7
- <res-select-group :style="$parent.$parent.$parent.isdetail?'col-sm-3 form-group':'col-sm-2 form-group'" :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getorg" v-ref:sel></res-select-group>
8
- <div
9
- :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
10
- class="form-group ">
11
- <label class="font_normal_body">用户编号</label>
12
- <input class="input_search" condition="f_userinfo_code like '%{}%'" placeholder="用户编号" style="width:60%"
13
- type="text" v-model="model.ename"
14
- />
15
- </div>
16
- <div
17
- :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
18
- class="form-group " v-if="!$parent.$parent.$parent.isdetail">
19
- <label class="font_normal_body">用户姓名</label>
20
- <input class="input_search" condition="f_user_name = '{}'" placeholder="用户姓名" style="width:60%"
21
- type="text" v-model="model.name" />
22
- </div>
23
- <!-- <div-->
24
- <!-- :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"-->
25
- <!-- class="form-group "-->
26
- <!-- v-if="$parent.$parent.clientWidth>1600">-->
27
- <!-- <label class="font_normal_body">电&emsp;&emsp;话</label>-->
28
- <!-- <input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search"-->
29
- <!-- condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"-->
30
- <!-- type="text"-->
31
- <!-- v-model="model.f_user_phone">-->
32
- <!-- </div>-->
33
- <!-- <div-->
34
- <!-- :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"-->
35
- <!-- class="form-group "-->
36
- <!-- v-if="$parent.$parent.clientWidth<1600&&!$parent.$parent.$parent.isdetail">-->
37
- <!-- <label class="font_normal_body">电&emsp;&emsp;话</label>-->
38
- <!-- <input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search"-->
39
- <!-- condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"-->
40
- <!-- type="text"-->
41
- <!-- v-model="model.f_user_phone">-->
42
- <!-- </div>-->
43
- <div class="form-group button-range" style="padding-right: 10px">
44
- <import-excel v-if="$parent.$parent.basicImport === '低保户导入'" template-name="低保户导入模板" logic-name="BasicLivingImport" import-json="basicLiving.json"></import-excel>
45
- <button @click="$parent.$parent.search()" class="button_search button_spacing" v-el:cx>查询</button>
46
- <button @click="$parent.$parent.add()" class="button_export button_spacing" style="width: max-content;"
47
- v-el:cx>新增低保户
48
- </button>
49
- <export-excel
50
- :data="$parent.$parent.getCondition"
51
- :field="$parent.$parent.getfield"
52
- sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="get_BasicLiving" template-name='低保户导出'
53
- :choose-col="true">
54
- </export-excel>
55
- <div
56
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
57
- @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
58
- class="button_spacing"
59
- style="float: right"></div>
60
- </div>
61
- </div>
62
- <div class="row" v-if="$parent.$parent.criteriaShow">
63
- <div
64
- :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
65
- class="form-group " v-if="$parent.$parent.$parent.isdetail">
66
- <label class="font_normal_body">用户姓名</label>
67
- <input class="input_search" condition="f_user_name = '{}'" placeholder="用户姓名" style="width:60%"
68
- type="text" v-model="model.name" />
69
- </div>
70
- <div
71
- :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
72
- class="form-group ">
73
- <label class="font_normal_body">电&emsp;&emsp;话</label>
74
- <input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search"
75
- condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"
76
- type="text"
77
- v-model="model.f_user_phone">
78
- </div>
79
- <div
80
- :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
81
- class="form-group ">
82
- <label class="font_normal_body">地&emsp;&emsp;址</label>
83
- <input :size="model.f_address ? model.f_address.length * 2 : 4" class="input_search"
84
- condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
85
- type="text"
86
- v-model="model.f_address">
87
- </div>
88
-
89
- <div
90
- :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
91
- class="form-group ">
92
- <label class="font_normal_body">状&emsp;&emsp;态</label>
93
- <v-select
94
- :options='$parent.$parent.state'
95
- :value-single="true"
96
- :value.sync="model.f_state"
97
- close-on-select
98
- condition="f_state ='{}'"
99
- v-model="model.f_state"></v-select>
100
-
101
- </div>
102
-
103
- </div>
104
- </div>
105
- </criteria>
106
- <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
107
- <template partial='head'>
108
- <tr>
109
- <th style="text-align: center;">
110
- <nobr>序号</nobr>
111
- </th>
112
- <th style="text-align: center;">
113
- <nobr>用户编号</nobr>
114
- </th>
115
- <th style="text-align: center;">
116
- <nobr>姓名</nobr>
117
- </th>
118
- <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>
119
- <nobr>电话</nobr>
120
- </th>
121
- <th style="text-align: center;">
122
- <nobr>地址</nobr>
123
- </th>
124
- <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>
125
- <nobr>气价</nobr>
126
- </th>
127
- <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail' >
128
- <nobr>开始时间</nobr>
129
- </th>
130
- <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail' >
131
- <nobr>结束时间</nobr>
132
- </th>
133
- <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail' >
134
- <nobr>附件查看</nobr>
135
- </th>
136
- </tr>
137
- </template>
138
- <template partial='body'>
139
- <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
140
- <td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>
141
- <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
142
- <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
143
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
144
- <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
145
- <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_start_date}}</nobr></td>
146
- <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_end_date}}</nobr></td>
147
- <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"> <nobr>
148
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
149
- </nobr></td>
150
- </template>
151
- <template partial='foot'></template>
152
- </data-grid>
153
- </criteria-paged>
154
- <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
155
- <article slot="modal-body">
156
- <upload :blodid="selected.f_userinfo_id" isremark="true" :isremark="false" fusetype="低保户" v-ref:upload ></upload>
157
- </article>
158
- <footer slot="modal-footer" class="modal-footer">
159
- </footer>
160
- </modal>
161
- </div>
162
- </template>
163
-
164
- <script>
165
- import {PagedList} from 'vue-client'
166
- import Vue from 'vue'
167
-
168
- export default {
169
- data () {
170
- return {
171
- initres: {
172
- org: [this.$login.f.orgid],
173
- dep: [],
174
- user: []
175
- },
176
- state: [{value: '', label: '全部'},
177
- {value: '有效', label: '有效'},
178
- {value: '过期', label: '过期'},
179
- {value: '无效', label: '无效'}],
180
- model: new PagedList('rs/sql/get_BasicLiving', 20, {orderitem: '"' + this.orderitem + '"'}),
181
-
182
- // 公司下拉
183
- curorgid: [this.$login.f.orgid],
184
-
185
- f_orgid: '',
186
- criteriaShow: false,
187
- clientWidth: document.body.clientWidth,
188
- showupload:false,
189
- selected: {},
190
- basicImport: '',
191
- getfield: {
192
- 'f_userinfo_code': '用户编号',
193
- 'f_user_name': '姓名',
194
- 'f_user_phone': '电话',
195
- 'f_address': '地址',
196
- 'f_price_name': '气价',
197
- 'f_start_date': '开始时间',
198
- 'f_end_date': '结束时间'
199
- }
200
- }
201
- },
202
- props: {
203
- orderitem: {
204
- type: String,
205
- default: 'f_price_id'
206
- },
207
- row: {}
208
- },
209
- compiled () {
210
- window.onresize = () => {
211
- return (() => {
212
- this.clientWidth = document.body.clientWidth
213
- })()
214
- }
215
- },
216
- ready () {
217
- this.getAuthority()
218
- this.$refs.paged.$refs.cri.model.f_state = '有效'
219
- this.search()
220
- },
221
- methods: {
222
- getAuthority () {
223
- if (this.$login.r.find(value => value == '低保户导入')) {
224
- this.basicImport = '低保户导入'
225
- }
226
- },
227
- view (row) {
228
- this.showupload = true
229
- this.selected = row
230
- console.log('11', row)
231
- },
232
- async getRes (condition, obj) {
233
- console.log('低保户condition =', condition)
234
- console.log('低保户obj =', obj)
235
- this.orgname = obj.orgnames[0]
236
- this.depname = obj.depnames[0]
237
- // 更新抄表册
238
- // this.meterbooks = [{label: '全部',value: ''}];
239
- // if(this.lastorgstr != condition){
240
- // this.tempfalg = true;
241
- // this.lastorgstr = condition;
242
- // }
243
- // if(this.tempfalg && condition != null && condition!='' && condition.indexOf("(")>-1){
244
- // this.tempfalg = false;
245
- // let a = condition.substring(condition.indexOf("(")+2)
246
- // }
247
- // this.orgCondtionStr = condition
248
- },
249
-
250
- search () {
251
- this.$refs.paged.$refs.cri.search()
252
- this.$dispatch('search')
253
- console.log('低保户search,', this.f_orgid)
254
- },
255
- getorg (val) {
256
- console.log('低保户的val', val)
257
- this.f_orgid = val
258
- },
259
- selfSearch (args) {
260
- if (!this.f_orgid) {
261
- this.getorg('and f_orgid in' + '(\'' + [this.$login.f.orgid] + '\')')
262
- }
263
- console.log('查询。。。', this.f_orgid)
264
- if (this.f_orgid) {
265
- // args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
266
- args.condition = `${args.condition} ${this.f_orgid}`
267
- }
268
- this.model.search(args.condition, args.model)
269
- },
270
- add () {
271
- this.$dispatch('add')
272
- }
273
- },
274
- computed: {
275
- getCondition () {
276
- return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.f_orgid}
277
- }
278
- }
279
- }
280
- </script>
1
+ <template>
2
+ <div @keyup.enter="search" class="flex" id="ss" style="flex:1;" v-el:sss>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria @condition-changed='$parent.selfSearch' partial='criteria' v-ref:cri>
5
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
6
+ <div class="row">
7
+ <res-select-group :style="$parent.$parent.$parent.isdetail?'col-sm-3 form-group':'col-sm-2 form-group'" :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getorg" v-ref:sel></res-select-group>
8
+ <div
9
+ :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
10
+ class="form-group ">
11
+ <label class="font_normal_body">用户编号</label>
12
+ <input class="input_search" condition="f_userinfo_code like '%{}%'" placeholder="用户编号" style="width:60%"
13
+ type="text" v-model="model.ename"
14
+ />
15
+ </div>
16
+ <div
17
+ :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
18
+ class="form-group " v-if="!$parent.$parent.$parent.isdetail">
19
+ <label class="font_normal_body">用户姓名</label>
20
+ <input class="input_search" condition="f_user_name like '%{}%'" placeholder="用户姓名" style="width:60%"
21
+ type="text" v-model="model.name" />
22
+ </div>
23
+ <!-- <div-->
24
+ <!-- :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"-->
25
+ <!-- class="form-group "-->
26
+ <!-- v-if="$parent.$parent.clientWidth>1600">-->
27
+ <!-- <label class="font_normal_body">电&emsp;&emsp;话</label>-->
28
+ <!-- <input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search"-->
29
+ <!-- condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"-->
30
+ <!-- type="text"-->
31
+ <!-- v-model="model.f_user_phone">-->
32
+ <!-- </div>-->
33
+ <!-- <div-->
34
+ <!-- :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"-->
35
+ <!-- class="form-group "-->
36
+ <!-- v-if="$parent.$parent.clientWidth<1600&&!$parent.$parent.$parent.isdetail">-->
37
+ <!-- <label class="font_normal_body">电&emsp;&emsp;话</label>-->
38
+ <!-- <input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search"-->
39
+ <!-- condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"-->
40
+ <!-- type="text"-->
41
+ <!-- v-model="model.f_user_phone">-->
42
+ <!-- </div>-->
43
+ <div class="form-group button-range" style="padding-right: 10px">
44
+ <import-excel v-if="$parent.$parent.basicImport === '低保户导入'" template-name="低保户导入模板" logic-name="BasicLivingImport" import-json="basicLiving.json"></import-excel>
45
+ <button @click="$parent.$parent.search()" class="button_search button_spacing" v-el:cx>查询</button>
46
+ <button @click="$parent.$parent.add()" class="button_export button_spacing" style="width: max-content;"
47
+ v-el:cx>新增低保户
48
+ </button>
49
+ <export-excel
50
+ :data="$parent.$parent.getCondition"
51
+ :field="$parent.$parent.getfield"
52
+ sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="get_BasicLiving" template-name='低保户导出'
53
+ :choose-col="true">
54
+ </export-excel>
55
+ <div
56
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
57
+ @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
58
+ class="button_spacing"
59
+ style="float: right"></div>
60
+ </div>
61
+ </div>
62
+ <div class="row" v-if="$parent.$parent.criteriaShow">
63
+ <div
64
+ :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
65
+ class="form-group " v-if="$parent.$parent.$parent.isdetail">
66
+ <label class="font_normal_body">用户姓名</label>
67
+ <input class="input_search" condition="f_user_name like '%{}%'" placeholder="用户姓名" style="width:60%"
68
+ type="text" v-model="model.name" />
69
+ </div>
70
+ <div
71
+ :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
72
+ class="form-group ">
73
+ <label class="font_normal_body">电&emsp;&emsp;话</label>
74
+ <input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search"
75
+ condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"
76
+ type="text"
77
+ v-model="model.f_user_phone">
78
+ </div>
79
+ <div
80
+ :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
81
+ class="form-group ">
82
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
83
+ <input :size="model.f_address ? model.f_address.length * 2 : 4" class="input_search"
84
+ condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
85
+ type="text"
86
+ v-model="model.f_address">
87
+ </div>
88
+
89
+ <div
90
+ :class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
91
+ class="form-group ">
92
+ <label class="font_normal_body">状&emsp;&emsp;态</label>
93
+ <v-select
94
+ :options='$parent.$parent.state'
95
+ :value-single="true"
96
+ :value.sync="model.f_state"
97
+ close-on-select
98
+ condition="f_state ='{}'"
99
+ v-model="model.f_state"></v-select>
100
+
101
+ </div>
102
+
103
+ </div>
104
+ </div>
105
+ </criteria>
106
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
107
+ <template partial='head'>
108
+ <tr>
109
+ <th style="text-align: center;">
110
+ <nobr>序号</nobr>
111
+ </th>
112
+ <th style="text-align: center;">
113
+ <nobr>用户编号</nobr>
114
+ </th>
115
+ <th style="text-align: center;">
116
+ <nobr>姓名</nobr>
117
+ </th>
118
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>
119
+ <nobr>电话</nobr>
120
+ </th>
121
+ <th style="text-align: center;">
122
+ <nobr>地址</nobr>
123
+ </th>
124
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>
125
+ <nobr>气价</nobr>
126
+ </th>
127
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail' >
128
+ <nobr>开始时间</nobr>
129
+ </th>
130
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail' >
131
+ <nobr>结束时间</nobr>
132
+ </th>
133
+ <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail' >
134
+ <nobr>附件查看</nobr>
135
+ </th>
136
+ </tr>
137
+ </template>
138
+ <template partial='body'>
139
+ <td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
140
+ <td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>
141
+ <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
142
+ <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
143
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
144
+ <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
145
+ <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_start_date}}</nobr></td>
146
+ <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_end_date}}</nobr></td>
147
+ <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"> <nobr>
148
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
149
+ </nobr></td>
150
+ </template>
151
+ <template partial='foot'></template>
152
+ </data-grid>
153
+ </criteria-paged>
154
+ <modal :show.sync="showupload" v-if="showupload" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
155
+ <article slot="modal-body">
156
+ <upload :blodid="selected.f_userinfo_id" isremark="true" :isremark="false" fusetype="低保户" v-ref:upload ></upload>
157
+ </article>
158
+ <footer slot="modal-footer" class="modal-footer">
159
+ </footer>
160
+ </modal>
161
+ </div>
162
+ </template>
163
+
164
+ <script>
165
+ import {PagedList} from 'vue-client'
166
+ import Vue from 'vue'
167
+
168
+ export default {
169
+ data () {
170
+ return {
171
+ initres: {
172
+ org: [this.$login.f.orgid],
173
+ dep: [],
174
+ user: []
175
+ },
176
+ state: [{value: '', label: '全部'},
177
+ {value: '有效', label: '有效'},
178
+ {value: '过期', label: '过期'},
179
+ {value: '无效', label: '无效'}],
180
+ model: new PagedList('rs/sql/get_BasicLiving', 20, {orderitem: '"' + this.orderitem + '"'}),
181
+
182
+ // 公司下拉
183
+ curorgid: [this.$login.f.orgid],
184
+
185
+ f_orgid: '',
186
+ criteriaShow: false,
187
+ clientWidth: document.body.clientWidth,
188
+ showupload:false,
189
+ selected: {},
190
+ basicImport: '',
191
+ getfield: {
192
+ 'f_userinfo_code': '用户编号',
193
+ 'f_user_name': '姓名',
194
+ 'f_user_phone': '电话',
195
+ 'f_address': '地址',
196
+ 'f_price_name': '气价',
197
+ 'f_start_date': '开始时间',
198
+ 'f_end_date': '结束时间'
199
+ }
200
+ }
201
+ },
202
+ props: {
203
+ orderitem: {
204
+ type: String,
205
+ default: 'f_price_id'
206
+ },
207
+ row: {}
208
+ },
209
+ compiled () {
210
+ window.onresize = () => {
211
+ return (() => {
212
+ this.clientWidth = document.body.clientWidth
213
+ })()
214
+ }
215
+ },
216
+ ready () {
217
+ this.getAuthority()
218
+ this.$refs.paged.$refs.cri.model.f_state = '有效'
219
+ this.search()
220
+ },
221
+ methods: {
222
+ getAuthority () {
223
+ if (this.$login.r.find(value => value == '低保户导入')) {
224
+ this.basicImport = '低保户导入'
225
+ }
226
+ },
227
+ view (row) {
228
+ this.showupload = true
229
+ this.selected = row
230
+ console.log('11', row)
231
+ },
232
+ async getRes (condition, obj) {
233
+ console.log('低保户condition =', condition)
234
+ console.log('低保户obj =', obj)
235
+ this.orgname = obj.orgnames[0]
236
+ this.depname = obj.depnames[0]
237
+ // 更新抄表册
238
+ // this.meterbooks = [{label: '全部',value: ''}];
239
+ // if(this.lastorgstr != condition){
240
+ // this.tempfalg = true;
241
+ // this.lastorgstr = condition;
242
+ // }
243
+ // if(this.tempfalg && condition != null && condition!='' && condition.indexOf("(")>-1){
244
+ // this.tempfalg = false;
245
+ // let a = condition.substring(condition.indexOf("(")+2)
246
+ // }
247
+ // this.orgCondtionStr = condition
248
+ },
249
+
250
+ search () {
251
+ this.$refs.paged.$refs.cri.search()
252
+ this.$dispatch('search')
253
+ console.log('低保户search,', this.f_orgid)
254
+ },
255
+ getorg (val) {
256
+ console.log('低保户的val', val)
257
+ this.f_orgid = val
258
+ },
259
+ selfSearch (args) {
260
+ if (!this.f_orgid) {
261
+ this.getorg('and f_orgid in' + '(\'' + [this.$login.f.orgid] + '\')')
262
+ }
263
+ console.log('查询。。。', this.f_orgid)
264
+ if (this.f_orgid) {
265
+ // args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
266
+ args.condition = `${args.condition} ${this.f_orgid}`
267
+ }
268
+ this.model.search(args.condition, args.model)
269
+ },
270
+ add () {
271
+ this.$dispatch('add')
272
+ }
273
+ },
274
+ computed: {
275
+ getCondition () {
276
+ return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.f_orgid}
277
+ }
278
+ }
279
+ }
280
+ </script>