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.
- package/build/dev-server.js +1 -1
- package/package.json +2 -2
- package/src/components/FilesManage/FileUserFiles.vue +1014 -1014
- package/src/components/FilesManage/FileUserMerge.vue +203 -203
- package/src/components/FilesManage/UserPaperInfoTest.vue +58 -51
- package/src/components/FilesManageNew/FileUserFiles.vue +756 -756
- package/src/components/FilesManageNew/FileUserMerge.vue +202 -202
- package/src/components/charge/business/CardMeterCenter.vue +944 -944
- package/src/components/charge/business/IOTMeterCenter.vue +793 -793
- package/src/components/charge/business/OtherChargeNew.vue +550 -550
- package/src/components/charge/business/machine/MachineMeterCenter.vue +676 -676
- package/src/components/charge/gasloss/gasLossOperate.vue +383 -383
- package/src/components/newBill/CardMeterCenter.vue +902 -902
- package/src/components/newBill/IOTMeterCenter.vue +797 -797
- package/src/components/revenue/Common/EticketModal.vue +95 -90
- package/src/components/revenue/comprehen/Maintenance/T+MoneyDocking/moneyDocking.vue +202 -202
- package/src/components/revenue/comprehen/SpecialUser/BasicLiving/BasicLivingList.vue +280 -280
- package/src/filiale/alashan/business/CardMeterCenter.vue +897 -897
- package/src/filiale/ancheng/FilesManage/FileUserFiles.vue +1010 -1010
- package/src/filiale/ancheng/FilesManageNew/FileUserFiles.vue +763 -763
- package/src/filiale/chengtou/components/FilesManage/FileUserFiles.vue +1019 -1019
- package/src/filiale/chengtou/components/OtherChargeNew.vue +549 -549
- package/src/filiale/dongguan/components/FilesManage/FileUserFiles.vue +1037 -1037
- package/src/filiale/gaomi/components/FilesManage/FileUserFiles.vue +934 -934
- package/src/filiale/gehua/CardMeterCenter.vue +898 -898
- package/src/filiale/gehua/FileManageNew/FileUserFiles.vue +769 -769
- package/src/filiale/gehua/FileUserFiles.vue +1007 -1007
- package/src/filiale/gehua/IOTMeterCenter.vue +791 -791
- package/src/filiale/gehua/MachineMeterCenter.vue +685 -685
- package/src/filiale/gehua/OtherChargeNew.vue +558 -558
- package/src/filiale/guangxi/CardMeterCenter.vue +891 -891
- package/src/filiale/guangxi/IOTMeterCenter.vue +774 -774
- package/src/filiale/guangxi/MachineMeterCenter.vue +622 -622
- package/src/filiale/haile/MachineMeterCenter.vue +762 -762
- package/src/filiale/huayin/CardMeterCenter.vue +903 -903
- package/src/filiale/huayin/FileUserFiles.vue +1007 -1007
- package/src/filiale/huayin/IOTMeterCenter.vue +796 -796
- package/src/filiale/huayin/MachineMeterCenter.vue +680 -680
- package/src/filiale/jingwei/CardMeterCenter.vue +870 -870
- package/src/filiale/jingwei/FileUserFiles.vue +905 -905
- package/src/filiale/jingwei/ShowCardSellGas.vue +903 -903
- package/src/filiale/kelai/CardMeterCenter.vue +934 -934
- package/src/filiale/kelai/FileUserFiles.vue +762 -762
- package/src/filiale/kelai/IOTMeterCenter.vue +833 -833
- package/src/filiale/kelai/MachineMeterCenter.vue +705 -705
- package/src/filiale/konggang/FileUserFiles.vue +990 -990
- package/src/filiale/liaoyuan/FileUserFiles.vue +844 -844
- package/src/filiale/macheng/CardMeterCenter.vue +939 -939
- package/src/filiale/macheng/FileUserFiles.vue +930 -930
- package/src/filiale/meihekou/FileUserFiles.vue +995 -995
- package/src/filiale/ningjin/FileUserFiles.vue +1020 -1020
- package/src/filiale/qianneng/OtherChargeNew.vue +544 -544
- package/src/filiale/qianneng/eticket/EticketModal.vue +96 -91
- package/src/filiale/qianneng/eticket/EticketPrint.vue +377 -376
- package/src/filiale/qianneng/eticket/EticketRecordList.vue +309 -289
- package/src/filiale/qianneng/machine/MachineMeterCenter.vue +676 -676
- package/src/filiale/rizhao/FileUserFiles.vue +984 -984
- package/src/filiale/rizhao/IOTMeterCenter.vue +795 -795
- package/src/filiale/rongcheng/FileUserFiles.vue +881 -881
- package/src/filiale/rongcheng/FilesManageNew/FileUserFiles.vue +732 -732
- package/src/filiale/rongcheng/FilesManageNew/FileUserMerge.vue +202 -202
- package/src/filiale/shanggao/FileUserFiles.vue +995 -995
- package/src/filiale/shangluo/CardMeterCenter.vue +892 -892
- package/src/filiale/shangluo/IOTMeterCenter.vue +797 -797
- package/src/filiale/shangluo/MachineMeterCenter.vue +734 -734
- package/src/filiale/shanxian/OtherChargeNew.vue +561 -561
- package/src/filiale/shanxian/components/FilesManage/FileUserFiles.vue +1004 -1004
- package/src/filiale/shanxian/components/FilesManageNew/FileUserFiles.vue +756 -756
- package/src/filiale/shanxian/components/revenue/CardMeterCenter.vue +944 -944
- package/src/filiale/shaoguan/FilesManage/FileUserFiles.vue +881 -881
- package/src/filiale/shaoguan/FilesManageNew/FileUserFiles.vue +734 -734
- package/src/filiale/shexian/FilesManage/FileUserFiles.vue +991 -991
- package/src/filiale/tongchuan/BasicLivingList.vue +253 -253
- package/src/filiale/tongchuan/CardMeterCenter.vue +923 -923
- package/src/filiale/tongchuan/FileUserFiles.vue +1206 -1206
- package/src/filiale/tongchuan/bill/EticketModal.vue +90 -90
- package/src/filiale/tongchuan/filemanagenew/FileUserFiles.vue +842 -842
- package/src/filiale/wenxi/CardMeterCenter.vue +942 -942
- package/src/filiale/wenxi/FileUserFiles.vue +1032 -1032
- package/src/filiale/wenxi/IOTMeterCenter.vue +774 -774
- package/src/filiale/wuan/FileUserFiles.vue +1006 -1006
- package/src/filiale/wuhai/CardMeterCenter.vue +945 -945
- package/src/filiale/wuhai/IOTMeterCenter.vue +757 -757
- package/src/filiale/yuansheng/CardMeterCenter.vue +950 -950
- package/src/filiale/yuansheng/IOTMeterCenter.vue +788 -788
- package/src/filiale/zhongsheng/FilesManage/FileUserFiles.vue +1038 -1038
- package/src/filiale/zhongyi/FileUserFiles.vue +1020 -1020
- package/src/main.js +27 -27
|
@@ -1,253 +1,253 @@
|
|
|
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','department','operator']" :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
|
|
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">电  话</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">电  话</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
|
-
<button @click="$parent.$parent.search()" class="button_search button_spacing" v-el:cx>查询</button>
|
|
45
|
-
<button @click="$parent.$parent.add()" class="button_export button_spacing" style="width: max-content;"
|
|
46
|
-
v-el:cx>新增低保户
|
|
47
|
-
</button>
|
|
48
|
-
<export-excel
|
|
49
|
-
:data="$parent.$parent.getCondition"
|
|
50
|
-
:field="$parent.$parent.getfield"
|
|
51
|
-
sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="get_BasicLiving" template-name='低保户导出'
|
|
52
|
-
:choose-col="true">
|
|
53
|
-
</export-excel>
|
|
54
|
-
<div
|
|
55
|
-
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
56
|
-
@click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
|
|
57
|
-
class="button_spacing"
|
|
58
|
-
style="float: right"></div>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
62
|
-
<div
|
|
63
|
-
:class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
64
|
-
class="form-group ">
|
|
65
|
-
<!-- v-if="$parent.$parent.$parent.isdetail">-->
|
|
66
|
-
<label class="font_normal_body">用户姓名</label>
|
|
67
|
-
<input class="input_search" condition="f_user_name
|
|
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">电  话</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">地  址</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">状  态</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
|
-
</tr>
|
|
134
|
-
</template>
|
|
135
|
-
<template partial='body'>
|
|
136
|
-
<td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
|
|
137
|
-
<td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
138
|
-
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
139
|
-
<td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
|
|
140
|
-
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
141
|
-
<td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
|
|
142
|
-
<td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_start_date}}</nobr></td>
|
|
143
|
-
<td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_end_date}}</nobr></td>
|
|
144
|
-
</template>
|
|
145
|
-
<template partial='foot'></template>
|
|
146
|
-
</data-grid>
|
|
147
|
-
</criteria-paged>
|
|
148
|
-
</div>
|
|
149
|
-
</template>
|
|
150
|
-
|
|
151
|
-
<script>
|
|
152
|
-
import {PagedList} from 'vue-client'
|
|
153
|
-
import Vue from 'vue'
|
|
154
|
-
|
|
155
|
-
export default {
|
|
156
|
-
data () {
|
|
157
|
-
return {
|
|
158
|
-
initres: {
|
|
159
|
-
org: [this.$login.f.orgid],
|
|
160
|
-
dep: [],
|
|
161
|
-
user: []
|
|
162
|
-
},
|
|
163
|
-
state: [{value: '', label: '全部'},
|
|
164
|
-
{value: '有效', label: '有效'},
|
|
165
|
-
{value: '过期', label: '过期'},
|
|
166
|
-
{value: '无效', label: '无效'}],
|
|
167
|
-
model: new PagedList('rs/sql/get_BasicLiving', 20, {orderitem: '"' + this.orderitem + '"'}),
|
|
168
|
-
|
|
169
|
-
// 公司下拉
|
|
170
|
-
curorgid: [this.$login.f.orgid],
|
|
171
|
-
|
|
172
|
-
f_orgid: '',
|
|
173
|
-
criteriaShow: false,
|
|
174
|
-
clientWidth: document.body.clientWidth,
|
|
175
|
-
getfield: {
|
|
176
|
-
'f_userinfo_code': '用户编号',
|
|
177
|
-
'f_user_name': '姓名',
|
|
178
|
-
'f_user_phone': '电话',
|
|
179
|
-
'f_address': '地址',
|
|
180
|
-
'f_price_name': '气价',
|
|
181
|
-
'f_start_date': '开始时间',
|
|
182
|
-
'f_end_date': '结束时间'
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
props: {
|
|
187
|
-
orderitem: {
|
|
188
|
-
type: String,
|
|
189
|
-
default: 'f_price_id'
|
|
190
|
-
},
|
|
191
|
-
row: {}
|
|
192
|
-
},
|
|
193
|
-
compiled () {
|
|
194
|
-
window.onresize = () => {
|
|
195
|
-
return (() => {
|
|
196
|
-
this.clientWidth = document.body.clientWidth
|
|
197
|
-
})()
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
ready () {
|
|
201
|
-
this.$refs.paged.$refs.cri.model.f_state = '有效'
|
|
202
|
-
this.search()
|
|
203
|
-
},
|
|
204
|
-
methods: {
|
|
205
|
-
async getRes (condition, obj) {
|
|
206
|
-
console.log('低保户condition =', condition)
|
|
207
|
-
console.log('低保户obj =', obj)
|
|
208
|
-
this.orgname = obj.orgnames[0]
|
|
209
|
-
this.depname = obj.depnames[0]
|
|
210
|
-
// 更新抄表册
|
|
211
|
-
// this.meterbooks = [{label: '全部',value: ''}];
|
|
212
|
-
// if(this.lastorgstr != condition){
|
|
213
|
-
// this.tempfalg = true;
|
|
214
|
-
// this.lastorgstr = condition;
|
|
215
|
-
// }
|
|
216
|
-
// if(this.tempfalg && condition != null && condition!='' && condition.indexOf("(")>-1){
|
|
217
|
-
// this.tempfalg = false;
|
|
218
|
-
// let a = condition.substring(condition.indexOf("(")+2)
|
|
219
|
-
// }
|
|
220
|
-
// this.orgCondtionStr = condition
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
search () {
|
|
224
|
-
this.$refs.paged.$refs.cri.search()
|
|
225
|
-
this.$dispatch('search')
|
|
226
|
-
console.log('低保户search,', this.f_orgid)
|
|
227
|
-
},
|
|
228
|
-
getorg (val) {
|
|
229
|
-
console.log('低保户的val', val)
|
|
230
|
-
this.f_orgid = val
|
|
231
|
-
},
|
|
232
|
-
selfSearch (args) {
|
|
233
|
-
if (!this.f_orgid) {
|
|
234
|
-
this.getorg('and f_orgid in' + '(\'' + [this.$login.f.orgid] + '\')')
|
|
235
|
-
}
|
|
236
|
-
console.log('查询。。。', this.f_orgid)
|
|
237
|
-
if (this.f_orgid) {
|
|
238
|
-
// args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
|
|
239
|
-
args.condition = `${args.condition} ${this.f_orgid}`
|
|
240
|
-
}
|
|
241
|
-
this.model.search(args.condition, args.model)
|
|
242
|
-
},
|
|
243
|
-
add () {
|
|
244
|
-
this.$dispatch('add')
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
computed: {
|
|
248
|
-
getCondition () {
|
|
249
|
-
return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.f_orgid}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
</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','department','operator']" :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">电  话</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">电  话</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
|
+
<button @click="$parent.$parent.search()" class="button_search button_spacing" v-el:cx>查询</button>
|
|
45
|
+
<button @click="$parent.$parent.add()" class="button_export button_spacing" style="width: max-content;"
|
|
46
|
+
v-el:cx>新增低保户
|
|
47
|
+
</button>
|
|
48
|
+
<export-excel
|
|
49
|
+
:data="$parent.$parent.getCondition"
|
|
50
|
+
:field="$parent.$parent.getfield"
|
|
51
|
+
sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="get_BasicLiving" template-name='低保户导出'
|
|
52
|
+
:choose-col="true">
|
|
53
|
+
</export-excel>
|
|
54
|
+
<div
|
|
55
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
56
|
+
@click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
|
|
57
|
+
class="button_spacing"
|
|
58
|
+
style="float: right"></div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
62
|
+
<div
|
|
63
|
+
:class="{'col-sm-2':!$parent.$parent.$parent.isdetail,'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
64
|
+
class="form-group ">
|
|
65
|
+
<!-- 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">电  话</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">地  址</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">状  态</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
|
+
</tr>
|
|
134
|
+
</template>
|
|
135
|
+
<template partial='body'>
|
|
136
|
+
<td style="text-align: center;"><nobr>{{$index+1}}</nobr></td>
|
|
137
|
+
<td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
138
|
+
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
139
|
+
<td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_user_phone}}</nobr></td>
|
|
140
|
+
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
141
|
+
<td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_price_name}}</nobr></td>
|
|
142
|
+
<td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_start_date}}</nobr></td>
|
|
143
|
+
<td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_end_date}}</nobr></td>
|
|
144
|
+
</template>
|
|
145
|
+
<template partial='foot'></template>
|
|
146
|
+
</data-grid>
|
|
147
|
+
</criteria-paged>
|
|
148
|
+
</div>
|
|
149
|
+
</template>
|
|
150
|
+
|
|
151
|
+
<script>
|
|
152
|
+
import {PagedList} from 'vue-client'
|
|
153
|
+
import Vue from 'vue'
|
|
154
|
+
|
|
155
|
+
export default {
|
|
156
|
+
data () {
|
|
157
|
+
return {
|
|
158
|
+
initres: {
|
|
159
|
+
org: [this.$login.f.orgid],
|
|
160
|
+
dep: [],
|
|
161
|
+
user: []
|
|
162
|
+
},
|
|
163
|
+
state: [{value: '', label: '全部'},
|
|
164
|
+
{value: '有效', label: '有效'},
|
|
165
|
+
{value: '过期', label: '过期'},
|
|
166
|
+
{value: '无效', label: '无效'}],
|
|
167
|
+
model: new PagedList('rs/sql/get_BasicLiving', 20, {orderitem: '"' + this.orderitem + '"'}),
|
|
168
|
+
|
|
169
|
+
// 公司下拉
|
|
170
|
+
curorgid: [this.$login.f.orgid],
|
|
171
|
+
|
|
172
|
+
f_orgid: '',
|
|
173
|
+
criteriaShow: false,
|
|
174
|
+
clientWidth: document.body.clientWidth,
|
|
175
|
+
getfield: {
|
|
176
|
+
'f_userinfo_code': '用户编号',
|
|
177
|
+
'f_user_name': '姓名',
|
|
178
|
+
'f_user_phone': '电话',
|
|
179
|
+
'f_address': '地址',
|
|
180
|
+
'f_price_name': '气价',
|
|
181
|
+
'f_start_date': '开始时间',
|
|
182
|
+
'f_end_date': '结束时间'
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
props: {
|
|
187
|
+
orderitem: {
|
|
188
|
+
type: String,
|
|
189
|
+
default: 'f_price_id'
|
|
190
|
+
},
|
|
191
|
+
row: {}
|
|
192
|
+
},
|
|
193
|
+
compiled () {
|
|
194
|
+
window.onresize = () => {
|
|
195
|
+
return (() => {
|
|
196
|
+
this.clientWidth = document.body.clientWidth
|
|
197
|
+
})()
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
ready () {
|
|
201
|
+
this.$refs.paged.$refs.cri.model.f_state = '有效'
|
|
202
|
+
this.search()
|
|
203
|
+
},
|
|
204
|
+
methods: {
|
|
205
|
+
async getRes (condition, obj) {
|
|
206
|
+
console.log('低保户condition =', condition)
|
|
207
|
+
console.log('低保户obj =', obj)
|
|
208
|
+
this.orgname = obj.orgnames[0]
|
|
209
|
+
this.depname = obj.depnames[0]
|
|
210
|
+
// 更新抄表册
|
|
211
|
+
// this.meterbooks = [{label: '全部',value: ''}];
|
|
212
|
+
// if(this.lastorgstr != condition){
|
|
213
|
+
// this.tempfalg = true;
|
|
214
|
+
// this.lastorgstr = condition;
|
|
215
|
+
// }
|
|
216
|
+
// if(this.tempfalg && condition != null && condition!='' && condition.indexOf("(")>-1){
|
|
217
|
+
// this.tempfalg = false;
|
|
218
|
+
// let a = condition.substring(condition.indexOf("(")+2)
|
|
219
|
+
// }
|
|
220
|
+
// this.orgCondtionStr = condition
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
search () {
|
|
224
|
+
this.$refs.paged.$refs.cri.search()
|
|
225
|
+
this.$dispatch('search')
|
|
226
|
+
console.log('低保户search,', this.f_orgid)
|
|
227
|
+
},
|
|
228
|
+
getorg (val) {
|
|
229
|
+
console.log('低保户的val', val)
|
|
230
|
+
this.f_orgid = val
|
|
231
|
+
},
|
|
232
|
+
selfSearch (args) {
|
|
233
|
+
if (!this.f_orgid) {
|
|
234
|
+
this.getorg('and f_orgid in' + '(\'' + [this.$login.f.orgid] + '\')')
|
|
235
|
+
}
|
|
236
|
+
console.log('查询。。。', this.f_orgid)
|
|
237
|
+
if (this.f_orgid) {
|
|
238
|
+
// args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
|
|
239
|
+
args.condition = `${args.condition} ${this.f_orgid}`
|
|
240
|
+
}
|
|
241
|
+
this.model.search(args.condition, args.model)
|
|
242
|
+
},
|
|
243
|
+
add () {
|
|
244
|
+
this.$dispatch('add')
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
computed: {
|
|
248
|
+
getCondition () {
|
|
249
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.f_orgid}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
</script>
|