manage-client 1.22.26-ca → 1.22.30-ca

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.
@@ -1,363 +1,417 @@
1
- <template>
2
- <div style="flex:1;overflow: hidden !important;" class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" v-show="$parent.$parent.criteriaShow">
7
- <div class="col-sm-2 form-group form-fix-width" >
8
- <label class="font_normal_body _zoom4" >新卡号</label>
9
- <input type="text" class="form-control _zoom6" v-model="model.f_newcard_id"
10
- condition="f_newcard_id = '{}' " placeholder="新卡号">
11
- </div>
12
- <div class="col-sm-2 form-group form-fix-width" >
13
- <label class="font_normal_body _zoom4" >旧卡号</label>
14
- <input type="text" class="form-control _zoom6" v-model="model.f_card_id"
15
- condition="f_card_id = '{}' " placeholder="旧卡号">
16
- </div>
17
- <div class="col-sm-2 form-group form-fix-width" >
18
- <label class="font_normal_body _zoom4" >用户编号</label>
19
- <input type="text" class="form-control _zoom6" v-model="model.f_userinfo_code"
20
- condition="f_userinfo_code = '{}' " placeholder="用户编号">
21
- </div>
22
- <div class="col-sm-2 form-group form-fix-width" >
23
- <label class="font_normal_body _zoom4" >用户姓名</label>
24
- <input type="text" class="form-control _zoom6" v-model="model.f_user_name"
25
- condition="f_user_name like '%{}%'" placeholder="用户姓名">
26
- </div>
27
- <div class="col-sm-2 form-group form-fix-width" >
28
- <label class="font_normal_body _zoom4" >用户电话</label>
29
- <input type="text" class="form-control _zoom6" v-model="model.f_user_phone"
30
- condition="f_user_phone like '%{}%'" placeholder="用户电话">
31
- </div>
32
- <div class="col-sm-2 form-group form-fix-width" >
33
- <label class="font_normal_body _zoom4" >用户地址</label>
34
- <input type="text" class="form-control _zoom6" v-model="model.f_address"
35
- condition="f_address like '%{}%'" placeholder='用户地址'>
36
- </div>
37
- <div class="col-sm-2 form-group form-fix-width" >
38
- <label class="font_normal_body _zoom4" >换表类型</label>
39
- <v-select :value.sync="model.f_type"
40
- v-model="model.f_type"
41
- :options='$parent.$parent.changeTypes' placeholder='请选择'
42
- condition="f_type = '{}'"
43
- close-on-select></v-select>
44
- </div>
45
- <div class="col-sm-2 form-group form-fix-width" >
46
- <label class="font_normal_body _zoom4" >换表人</label>
47
- <v-select :value.sync="model.f_change_operator"
48
- v-model="model.f_change_operator"
49
- :options='$parent.$parent.changeOperator' placeholder='换表人'
50
- condition="f_operator = '{}'"
51
- close-on-select></v-select>
52
- </div>
53
- <div class="col-sm-2 form-group form-fix-width" >
54
- <label class="font_normal_body _zoom4" >新表号</label>
55
- <input type="text" class="form-control _zoom6" v-model="model.f_newmeternumber"
56
- condition="f_newmeternumber = '{}'" placeholder='表编号'>
57
- </div>
58
- <div class="col-sm-2 form-group form-fix-width" >
59
- <label class="font_normal_body _zoom4" >旧表号</label>
60
- <input type="text" class="form-control _zoom6" v-model="model.f_meternumber"
61
- condition="f_meternumber = '{}'" placeholder='表编号'>
62
- </div>
63
- <div class="col-sm-2 form-group form-fix-width" >
64
- <label class="font_normal_body _zoom4" >换表状态</label>
65
- <v-select :value.sync="model.f_state"
66
- v-model="model.f_state"
67
- :options='$parent.$parent.charge_state' placeholder='请选择'
68
- condition="f_state = '{}'"
69
- close-on-select></v-select>
70
- </div>
71
- <div class="col-sm-2 form-group form-fix-width" >
72
- <label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
73
- <datepicker id="startDate" placeholder="开始日期"
74
- class="_zoom6"
75
- v-model="model.startDate"
76
- :value.sync="model.startDate"
77
- :format="'yyyy-MM-dd'"
78
- :show-reset-button="true"
79
- condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
80
- </datepicker>
81
- </div>
82
- <div class="col-sm-2 form-group form-fix-width" >
83
- <label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
84
- <datepicker id="endDate" placeholder="结束日期" class="_zoom6"
85
- v-model="model.endDate"
86
- :value.sync="model.endDate"
87
- :format="'yyyy-MM-dd'"
88
- :show-reset-button="true"
89
- condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
90
- </datepicker>
91
- </div>
92
-
93
- </div>
94
- <div class="row">
95
- <div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
96
- <button class="btn btn-success" @click="search()">查询</button>
97
- <button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
98
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
99
-
100
- <export-excel :data="$parent.$parent.getCondition"
101
- :field="$parent.$parent.getfield"
102
- sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出' :choose-col="true"></export-excel>
103
-
104
- <div
105
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
106
- @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
107
- </div>
108
- </div>
109
- </div>
110
- </criteria>
111
-
112
- <data-grid :model="model" partial='list' v-ref:grid @dblclick="$parent.$parent.toBusiness">
113
- <template partial='head'>
114
- <tr>
115
- <th><nobr>旧卡号</nobr></th>
116
- <th><nobr>新卡号</nobr></th>
117
- <th><nobr>用户编号</nobr></th>
118
- <th><nobr>用户姓名</nobr></th>
119
- <th><nobr>用户地址</nobr></th>
120
- <th><nobr>换表类型</nobr></th>
121
- <th><nobr>换表费</nobr></th>
122
- <th><nobr>是否保修期免交</nobr></th>
123
- <th><nobr>免交原因</nobr></th>
124
- <th><nobr>旧表表号</nobr></th>
125
- <th><nobr>新表表号</nobr></th>
126
- <th><nobr>转移气量</nobr></th>
127
- <th><nobr>转移金额</nobr></th>
128
- <th><nobr>旧气表类型</nobr></th>
129
- <th><nobr>旧气表品牌</nobr></th>
130
- <th><nobr>旧气表型号</nobr></th>
131
- <th><nobr>旧表底数</nobr></th>
132
- <th><nobr>旧表剩余</nobr></th>
133
- <th><nobr>旧表封号</nobr></th>
134
- <th><nobr>新气表类型</nobr></th>
135
- <th><nobr>新气表品牌</nobr></th>
136
- <th><nobr>新气表型号</nobr></th>
137
- <th><nobr>新表底数</nobr></th>
138
- <th><nobr>新表封号</nobr></th>
139
- <th><nobr>换表原因</nobr></th>
140
- <th><nobr>状态</nobr></th>
141
- <th><nobr>换表日期</nobr></th>
142
- <th><nobr>操作日期</nobr></th>
143
- <th><nobr>操作员</nobr></th>
144
- <!--<th><nobr>营业网点</nobr></th>-->
145
- <!--<th><nobr>分公司</nobr></th>-->
146
- </tr>
147
- </template>
148
- <template partial='body'>
149
- <td style="text-align: center;"><nobr>
150
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_card_id}}</a></span></nobr></td>
151
- <td style="text-align: center;"><nobr>{{row.f_newcard_id}}</nobr></td>
152
- <td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>
153
- <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
154
- <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
155
- <td style="text-align: center;"><nobr>{{row.f_type}}</nobr></td>
156
- <td style="text-align: center;"><nobr>{{row.f_changemeter_fee}}</nobr></td>
157
- <td style="text-align: center;"><nobr>{{row.f_freereason}}</nobr></td>
158
- <td style="text-align: center;"><nobr>{{row.f_freereason}}</nobr></td>
159
- <!--<td style="text-align: center;"><nobr>{{row.f_total_gas}}</nobr></td>-->
160
- <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
161
- <td style="text-align: center;"><nobr>{{row.f_newmeternumber}}</nobr></td>
162
- <td style="text-align: center;"><nobr>{{row.f_shiftgas}}</nobr></td>
163
- <td style="text-align: center;"><nobr>{{row.f_shiftgas_money}}</nobr></td>
164
- <td style="text-align: center;"><nobr>{{row.f_meter_classify}}</nobr></td>
165
- <td style="text-align: center;"><nobr>{{row.f_old_meterbrand}}</nobr></td>
166
- <td style="text-align: center;"><nobr>{{row.f_old_meternmodel}}</nobr></td>
167
- <td style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></td>
168
- <td style="text-align: center;"><nobr>{{row.f_tablebase_gas}}</nobr></td>
169
- <td style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></td>
170
- <td style="text-align: center;"><nobr>{{row.f_newmeter_classify}}</nobr></td>
171
- <td style="text-align: center;"><nobr>{{row.f_new_meterbrand}}</nobr></td>
172
- <td style="text-align: center;"><nobr>{{row.f_new_meternmodel}}</nobr></td>
173
- <td style="text-align: center;"><nobr>{{row.f_newmeter_base}}</nobr></td>
174
- <td style="text-align: center;"><nobr>{{row.f_newmetertitles}}</nobr></td>
175
- <td style="text-align: center;"><nobr>{{row.f_reason}},{{row.f_result_change}}</nobr></td>
176
- <td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
177
- <td style="text-align: center;"><nobr>{{row.f_changemeter_date}}</nobr></td>
178
- <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
179
- <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
180
- <!--<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>-->
181
- <!--<td style="text-align: center;"><nobr>{{row.f_filiale}}</nobr></td>-->
182
- </template>
183
- <template partial='foot'></template>
184
- </data-grid>
185
-
186
- </criteria-paged>
187
-
188
- <table class="table-hover" >
189
- <tr class="table-bordered">
190
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
191
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}</td>
192
- </tr>
193
- </table>
194
- <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
195
- <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
196
- <!--<header slot="modal-header" class="modal-header text-center">-->
197
- <!--<h4 class="modal-title">打印列选择</h4>-->
198
- <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
199
- <!--<label for="f_generations" class="font-size">全选</label>-->
200
- <!--</header>-->
201
- <!--<article slot="modal-body">-->
202
- <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
203
- <!--<div class="col-sm-3" v-for="f in fields">-->
204
- <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
205
- <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
206
- <!--</div>-->
207
- <!--</div>-->
208
- <!--</article>-->
209
- <!--<footer slot="modal-footer" class="modal-footer">-->
210
- <!--<center>-->
211
- <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
212
- <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
213
- <!--<print-table :model='model' v-show="false" v-ref:print-->
214
- <!--:top='40' :left='60' :right='40' :bottom='60'-->
215
- <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
216
- <!--:fields="modelval" :printpage="true">-->
217
- <!--</print-table>-->
218
- <!--</center>-->
219
- <!--</footer>-->
220
- <!--</modal>-->
221
- </div>
222
- </template>
223
-
224
- <script>
225
- import { PagedList } from 'vue-client'
226
- import defaultPrint from '../config/DefaultPrint'
227
- import exportConfig from '../config/exportConfig'
228
-
229
- let readySomething = async function (self) {
230
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
231
- self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
232
- self.$refs.paged.$refs.cri.model.f_state = ['有效']
233
- }
234
- export default {
235
- props:['changeOperator'],
236
- data() {
237
- return {
238
- data: {},
239
- model: new PagedList('rs/sql/changeMeterQuery', 20,{},{f_changemeter_fee: 0}),
240
- criteriaShow: true,
241
-
242
- filialeNameStr: null,
243
- filialeCodeStr: this.$login.f.f_orgids,
244
- userid: this.$login.f.id,
245
- source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
246
-
247
- modelval: [],
248
- printshow: false,
249
- all: false,
250
- fields: {},
251
- thead: '',
252
- tfoot: '',
253
- // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
254
- changeTypes: this.$appdata.getParam('换表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')] : [],
255
- changePerson: this.$appdata.getParam('换表人') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')] : [],
256
- charge_state: [{label: '全部', value: ''},{label: '有效', value: '有效'},{label: '无效', value: '无效'}],
257
- //合计数据
258
- sumsmodel: {}
259
- }
260
- },
261
- ready(){
262
- readySomething(this).then(() => {
263
- this.$emit('ready')
264
- }).catch((error) => {
265
- this.$emit('error', error)
266
- })
267
- },
268
- methods: {
269
- selfSearch (args) {
270
- this.model.search(args.condition, args.model)
271
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
272
- },
273
- clear(){
274
- Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
275
- this.$refs.paged.$refs.cri.model[key] = ''
276
- })
277
- },
278
- show(){
279
- this.criteriaShow = true
280
- },
281
- hidden(){
282
- this.criteriaShow = !this.criteriaShow
283
- },
284
- getRes(obj) {
285
- this.filialeNameStr = obj.res
286
- this.filialeCodeStr = obj.resids
287
- },
288
- stamp () {
289
- this.all = false
290
- //默认选择要打印的列
291
- this.modelval = defaultPrint.config
292
- this.fields = this.getfield
293
- console.log('所有打印字段',this.fields)
294
- this.printshow = true
295
- this.put()
296
- },
297
- dealmsg (val) {
298
- console.log('---------------dealmsg')
299
- val.model = this.model.model
300
- this.$dispatch('deal-msg',val)
301
- },
302
- put () {
303
- // 对Modelval进行排序
304
- this.sortModelval()
305
- this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
306
- for (let key of this.modelval) {
307
- this.thead += '<th>' + this.fields[key] + '</th>'
308
- }
309
- this.thead += '</tr>'
310
- },
311
- print () {
312
- this.$refs.print.PrintAsFile()
313
- this.printshow = false
314
- },
315
- close () {
316
- this.printshow = false
317
- this.all = false
318
- },
319
- // 对选择的列进行排序
320
- sortModelval () {
321
- let sortModel = []
322
- Object.keys(this.fields).forEach((key) => {
323
- if (this.modelval.includes(key)) {
324
- sortModel.push(key)
325
- }
326
- })
327
- this.modelval = sortModel
328
- console.log('选择的打印的字段', this.modelval)
329
- }
330
- },
331
- watch:{
332
- 'all' (val) {
333
- if (val) {
334
- this.modelval = this.bodyData
335
- } else {
336
- this.modelval = defaultPrint.config
337
- this.put()
338
- }
339
- },
340
- 'modelval.length' () {
341
- this.put()
342
- },
343
- },
344
- computed:{
345
- getCondition(){
346
- return {condition: `${this.$refs.paged.$refs.cri.condition} `}
347
- },
348
- getfield(){
349
- return exportConfig.changemeterConfig
350
- },
351
- meterbrands () {
352
- let arr = []
353
- this.$GetSaleParam.getGasbrand().forEach((item) => {
354
- let temp = {}
355
- temp.label = item.label
356
- temp.value = item.value.f_meter_brand
357
- arr.push(temp)
358
- })
359
- return [{label: '全部', value: ''}, ...arr]
360
- }
361
- }
362
- }
363
- </script>
1
+ <template>
2
+ <div style="flex:1;overflow: hidden !important;" class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-2 form-group form-fix-width" >
8
+ <label class="font_normal_body _zoom4" >新卡号</label>
9
+ <input type="text" class="form-control _zoom6" v-model="model.f_newcard_id"
10
+ condition="f_newcard_id = '{}' " placeholder="新卡号">
11
+ </div>
12
+ <div class="col-sm-2 form-group form-fix-width" >
13
+ <label class="font_normal_body _zoom4" >旧卡号</label>
14
+ <input type="text" class="form-control _zoom6" v-model="model.f_card_id"
15
+ condition="f_card_id = '{}' " placeholder="旧卡号">
16
+ </div>
17
+ <div class="col-sm-2 form-group form-fix-width" >
18
+ <label class="font_normal_body _zoom4" >用户编号</label>
19
+ <input type="text" class="form-control _zoom6" v-model="model.f_userinfo_code"
20
+ condition="f_userinfo_code = '{}' " placeholder="用户编号">
21
+ </div>
22
+ <div class="col-sm-2 form-group form-fix-width" >
23
+ <label class="font_normal_body _zoom4" >用户姓名</label>
24
+ <input type="text" class="form-control _zoom6" v-model="model.f_user_name"
25
+ condition="f_user_name like '%{}%'" placeholder="用户姓名">
26
+ </div>
27
+ <div class="col-sm-4">
28
+ <div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
29
+ <button class="btn btn-success" @click="search()">查询</button>
30
+ <button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
31
+ <export-excel :data="$parent.$parent.getCondition"
32
+ :field="$parent.$parent.getfield"
33
+ sqlurl="rs/logic/exportfile" sql-name="changeMeterQuery" template-name='换表查询导出' :choose-col="true"></export-excel>
34
+
35
+ <div
36
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
37
+ @click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
38
+ </div>
39
+ </div>
40
+ </div>
41
+ <div class="row" v-show="$parent.$parent.criteriaShow">
42
+ <div class="col-sm-2 form-group form-fix-width" >
43
+ <label class="font_normal_body _zoom4" >用户电话</label>
44
+ <input type="text" class="form-control _zoom6" v-model="model.f_user_phone"
45
+ condition="f_user_phone like '%{}%'" placeholder="用户电话">
46
+ </div>
47
+ <div class="col-sm-2 form-group form-fix-width" >
48
+ <label class="font_normal_body _zoom4" >用户地址</label>
49
+ <input type="text" class="form-control _zoom6" v-model="model.f_address"
50
+ condition="f_address like '%{}%'" placeholder='用户地址'>
51
+ </div>
52
+ <div class="col-sm-2 form-group form-fix-width" >
53
+ <label class="font_normal_body _zoom4" >换表类型</label>
54
+ <v-select :value.sync="model.f_type"
55
+ v-model="model.f_type"
56
+ :options='$parent.$parent.changeTypes' placeholder='请选择'
57
+ condition="f_type = '{}'"
58
+ close-on-select></v-select>
59
+ </div>
60
+ <div class="col-sm-2 form-group form-fix-width" >
61
+ <label class="font_normal_body _zoom4" >换表人</label>
62
+ <v-select :value.sync="model.f_change_operator"
63
+ v-model="model.f_change_operator"
64
+ :options='$parent.$parent.changeOperator' placeholder='换表人'
65
+ condition="f_operator = '{}'"
66
+ close-on-select></v-select>
67
+ </div>
68
+ <div class="col-sm-2 form-group form-fix-width" >
69
+ <label class="font_normal_body _zoom4" >新表号</label>
70
+ <input type="text" class="form-control _zoom6" v-model="model.f_newmeternumber"
71
+ condition="f_newmeternumber = '{}'" placeholder='表编号'>
72
+ </div>
73
+ <div class="col-sm-2 form-group form-fix-width" >
74
+ <label class="font_normal_body _zoom4" >旧表号</label>
75
+ <input type="text" class="form-control _zoom6" v-model="model.f_meternumber"
76
+ condition="f_meternumber = '{}'" placeholder='表编号'>
77
+ </div>
78
+ <div class="col-sm-2 form-group form-fix-width" >
79
+ <label class="font_normal_body _zoom4" >换表状态</label>
80
+ <v-select :value.sync="model.f_state"
81
+ v-model="model.f_state"
82
+ :options='$parent.$parent.charge_state' placeholder='请选择'
83
+ condition="f_state = '{}'"
84
+ close-on-select></v-select>
85
+ </div>
86
+ <div class="col-sm-2 form-group form-fix-width" >
87
+ <label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
88
+ <datepicker id="startDate" placeholder="开始日期"
89
+ class="_zoom6"
90
+ v-model="model.startDate"
91
+ :value.sync="model.startDate"
92
+ :format="'yyyy-MM-dd'"
93
+ :show-reset-button="true"
94
+ condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
95
+ </datepicker>
96
+ </div>
97
+ <div class="col-sm-2 form-group form-fix-width" >
98
+ <label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
99
+ <datepicker id="endDate" placeholder="结束日期" class="_zoom6"
100
+ v-model="model.endDate"
101
+ :value.sync="model.endDate"
102
+ :format="'yyyy-MM-dd'"
103
+ :show-reset-button="true"
104
+ condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
105
+ </datepicker>
106
+ </div>
107
+ <div class="col-sm-2 form-group form-fix-width" >
108
+ <label class="font_normal_body _zoom4" >用户类型</label>
109
+ <v-select :value.sync="model.f_user_type"
110
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
111
+ condition="f_user_type = '{}'"
112
+ close-on-select></v-select>
113
+ </div>
114
+ <div class="col-sm-2 form-group form-fix-width" >
115
+ <label class="font_normal_body _zoom4" >用气性质</label>
116
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
117
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
118
+ condition="f_gasproperties = '{}'"
119
+ close-on-select></v-select>
120
+ </div>
121
+ <div class="col-sm-2 form-group form-fix-width" >
122
+ <label class="font_normal_body _zoom4" >新表品牌</label>
123
+ <v-select :value.sync="model.f_meter_brand"
124
+ v-model="model.f_meter_brand"
125
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
126
+ condition="new_meter_brand = '{}'"
127
+ close-on-select></v-select>
128
+ </div>
129
+ <div class="col-sm-2 form-group form-fix-width" >
130
+ <label class="font_normal_body _zoom4" >旧表品牌</label>
131
+ <v-select :value.sync="model.old_meter_brand"
132
+ v-model="model.old_meter_brand"
133
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
134
+ condition="old_meter_brand = '{}'"
135
+ close-on-select></v-select>
136
+ </div>
137
+ <div class="col-sm-2 form-group form-fix-width" >
138
+ <label class="font_normal_body _zoom4" >换表原因</label>
139
+ <v-select :value.sync="model.f_reason"
140
+ v-model="model.f_reason"
141
+ :options='$parent.$parent.reason' placeholder='请选择'
142
+ condition="f_reason = '{}'"
143
+ close-on-select></v-select>
144
+ </div>
145
+ <div class="col-sm-2 form-group form-fix-width" >
146
+ <label class="font_normal_body _zoom4" >换表费</label>
147
+ <input type="number" class="form-control _zoom6" v-model="model.f_changemeter_fee"
148
+ condition="f_changemeter_fee = {} " placeholder="换表费">
149
+ </div>
150
+ </div>
151
+ <div class="row">
152
+
153
+ </div>
154
+ </div>
155
+ </criteria>
156
+
157
+ <data-grid :model="model" partial='list' v-ref:grid @dblclick="$parent.$parent.toBusiness">
158
+ <template partial='head'>
159
+ <tr>
160
+ <th><nobr>旧卡号</nobr></th>
161
+ <th><nobr>新卡号</nobr></th>
162
+ <!-- <th><nobr>用户编号</nobr></th>-->
163
+ <th><nobr>用户姓名</nobr></th>
164
+ <th><nobr>用户地址</nobr></th>
165
+ <th><nobr>换表类型</nobr></th>
166
+ <th><nobr>换表费</nobr></th>
167
+ <th><nobr>是否保修期免交</nobr></th>
168
+ <th><nobr>免交原因</nobr></th>
169
+ <th><nobr>旧表表号</nobr></th>
170
+ <th><nobr>新表表号</nobr></th>
171
+ <th><nobr>转移气量</nobr></th>
172
+ <th><nobr>转移金额</nobr></th>
173
+ <th><nobr>旧气表类型</nobr></th>
174
+ <th><nobr>旧气表品牌</nobr></th>
175
+ <th><nobr>旧气表型号</nobr></th>
176
+ <th><nobr>旧表底数</nobr></th>
177
+ <th><nobr>旧表剩余</nobr></th>
178
+ <th><nobr>旧表封号</nobr></th>
179
+ <th><nobr>新气表类型</nobr></th>
180
+ <th><nobr>新气表品牌</nobr></th>
181
+ <th><nobr>新气表型号</nobr></th>
182
+ <th><nobr>新表底数</nobr></th>
183
+ <th><nobr>新表封号</nobr></th>
184
+ <th><nobr>换表原因</nobr></th>
185
+ <th><nobr>状态</nobr></th>
186
+ <th><nobr>换表日期</nobr></th>
187
+ <th><nobr>操作日期</nobr></th>
188
+ <th><nobr>操作员</nobr></th>
189
+ <!--<th><nobr>营业网点</nobr></th>-->
190
+ <!--<th><nobr>分公司</nobr></th>-->
191
+ </tr>
192
+ </template>
193
+ <template partial='body'>
194
+ <td style="text-align: center;"><nobr>
195
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_card_id}}</a></span></nobr></td>
196
+ <td style="text-align: center;"><nobr>{{row.f_newcard_id}}</nobr></td>
197
+ <!-- <td style="text-align: center;"><nobr>{{row.f_userinfo_code}}</nobr></td>-->
198
+ <td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
199
+ <td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
200
+ <td style="text-align: center;"><nobr>{{row.f_type}}</nobr></td>
201
+ <td style="text-align: center;"><nobr>{{row.f_changemeter_fee}}</nobr></td>
202
+ <td style="text-align: center;"><nobr>{{row.f_freereason}}</nobr></td>
203
+ <td style="text-align: center;"><nobr>{{row.f_freereason}}</nobr></td>
204
+ <!--<td style="text-align: center;"><nobr>{{row.f_total_gas}}</nobr></td>-->
205
+ <td style="text-align: center;"><nobr>{{row.f_meternumber}}</nobr></td>
206
+ <td style="text-align: center;"><nobr>{{row.f_newmeternumber}}</nobr></td>
207
+ <td style="text-align: center;"><nobr>{{row.f_shiftgas}}</nobr></td>
208
+ <td style="text-align: center;"><nobr>{{row.f_shiftgas_money}}</nobr></td>
209
+ <td style="text-align: center;"><nobr>{{row.f_meter_classify}}</nobr></td>
210
+ <td style="text-align: center;"><nobr>{{row.f_old_meterbrand}}</nobr></td>
211
+ <td style="text-align: center;"><nobr>{{row.f_old_meternmodel}}</nobr></td>
212
+ <td style="text-align: center;"><nobr>{{row.f_meter_base}}</nobr></td>
213
+ <td style="text-align: center;"><nobr>{{row.f_tablebase_gas}}</nobr></td>
214
+ <td style="text-align: center;"><nobr>{{row.f_metertitles}}</nobr></td>
215
+ <td style="text-align: center;"><nobr>{{row.f_newmeter_classify}}</nobr></td>
216
+ <td style="text-align: center;"><nobr>{{row.f_new_meterbrand}}</nobr></td>
217
+ <td style="text-align: center;"><nobr>{{row.f_new_meternmodel}}</nobr></td>
218
+ <td style="text-align: center;"><nobr>{{row.f_newmeter_base}}</nobr></td>
219
+ <td style="text-align: center;"><nobr>{{row.f_newmetertitles}}</nobr></td>
220
+ <td style="text-align: center;"><nobr>{{row.f_reason}},{{row.f_result_change}}</nobr></td>
221
+ <td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
222
+ <td style="text-align: center;"><nobr>{{row.f_changemeter_date}}</nobr></td>
223
+ <td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
224
+ <td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
225
+ <!--<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>-->
226
+ <!--<td style="text-align: center;"><nobr>{{row.f_filiale}}</nobr></td>-->
227
+ </template>
228
+ <template partial='foot'></template>
229
+ </data-grid>
230
+
231
+ </criteria-paged>
232
+
233
+ <table class="table-hover" >
234
+ <tr class="table-bordered">
235
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
236
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">换表费合计:&emsp;{{sumsmodel.f_changemeter_fee}}</td>
237
+ </tr>
238
+ </table>
239
+ <!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
240
+ <!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
241
+ <!--<header slot="modal-header" class="modal-header text-center">-->
242
+ <!--<h4 class="modal-title">打印列选择</h4>-->
243
+ <!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
244
+ <!--<label for="f_generations" class="font-size">全选</label>-->
245
+ <!--</header>-->
246
+ <!--<article slot="modal-body">-->
247
+ <!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
248
+ <!--<div class="col-sm-3" v-for="f in fields">-->
249
+ <!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
250
+ <!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
251
+ <!--</div>-->
252
+ <!--</div>-->
253
+ <!--</article>-->
254
+ <!--<footer slot="modal-footer" class="modal-footer">-->
255
+ <!--<center>-->
256
+ <!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
257
+ <!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
258
+ <!--<print-table :model='model' v-show="false" v-ref:print-->
259
+ <!--:top='40' :left='60' :right='40' :bottom='60'-->
260
+ <!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
261
+ <!--:fields="modelval" :printpage="true">-->
262
+ <!--</print-table>-->
263
+ <!--</center>-->
264
+ <!--</footer>-->
265
+ <!--</modal>-->
266
+ </div>
267
+ </template>
268
+
269
+ <script>
270
+ import { PagedList } from 'vue-client'
271
+ import defaultPrint from '../config/DefaultPrint'
272
+ import exportConfig from '../config/exportConfig'
273
+
274
+ let readySomething = async function (self) {
275
+ await self.$MagLoadParams.loadParam(self.$login.f)
276
+ // 初始化气表品牌
277
+ let brandArr = []
278
+ self.$MagGetSaleParam.getGasbrand().forEach((item) => {
279
+ let temp = {}
280
+ temp.label = item.label
281
+ temp.value = item.value.f_meter_brand
282
+ brandArr.push(temp)
283
+ })
284
+ self.meterbrands = [{label: '全部', value: ''}, ...brandArr]
285
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
286
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
287
+ self.$refs.paged.$refs.cri.model.f_state = ['有效']
288
+ }
289
+ export default {
290
+ props:['changeOperator'],
291
+ data() {
292
+ return {
293
+ data: {},
294
+ model: new PagedList('rs/sql/changeMeterQuery', 20,{},{f_changemeter_fee: 0}),
295
+ criteriaShow: true,
296
+
297
+ filialeNameStr: null,
298
+ filialeCodeStr: this.$login.f.f_orgids,
299
+ userid: this.$login.f.id,
300
+ source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
301
+
302
+ modelval: [],
303
+ printshow: false,
304
+ all: false,
305
+ fields: {},
306
+ thead: '',
307
+ tfoot: '',
308
+ meterbrands: [],
309
+ // tablestate: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '停用', value: '停用'}],
310
+ changeTypes: this.$appdata.getParam('换表类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('换表类型')] : [],
311
+ changePerson: this.$appdata.getParam('换表人') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('换表人')] : [],
312
+ charge_state: [{label: '全部', value: ''},{label: '有效', value: '有效'},{label: '无效', value: '无效'}],
313
+ usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : [],
314
+ reason: this.$appdata.getParam('换表原因') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('换表原因')] : [], //合计数据
315
+ sumsmodel: {}
316
+ }
317
+ },
318
+ ready(){
319
+ readySomething(this).then(() => {
320
+ this.$emit('ready')
321
+ }).catch((error) => {
322
+ this.$emit('error', error)
323
+ })
324
+ },
325
+ methods: {
326
+ selfSearch (args) {
327
+ this.model.search(args.condition, args.model)
328
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
329
+ },
330
+ clear(){
331
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
332
+ this.$refs.paged.$refs.cri.model[key] = ''
333
+ })
334
+ },
335
+ show(){
336
+ this.criteriaShow = true
337
+ },
338
+ hidden(){
339
+ this.criteriaShow = !this.criteriaShow
340
+ },
341
+ getRes(obj) {
342
+ this.filialeNameStr = obj.res
343
+ this.filialeCodeStr = obj.resids
344
+ },
345
+ stamp () {
346
+ this.all = false
347
+ //默认选择要打印的列
348
+ this.modelval = defaultPrint.config
349
+ this.fields = this.getfield
350
+ console.log('所有打印字段',this.fields)
351
+ this.printshow = true
352
+ this.put()
353
+ },
354
+ dealmsg (val) {
355
+ console.log('---------------dealmsg')
356
+ val.model = this.model.model
357
+ this.$dispatch('deal-msg',val)
358
+ },
359
+ put () {
360
+ // 对Modelval进行排序
361
+ this.sortModelval()
362
+ this.thead = `<tr><th colspan=${this.modelval.length}>换表查询统计报表</th></tr><tr>`
363
+ for (let key of this.modelval) {
364
+ this.thead += '<th>' + this.fields[key] + '</th>'
365
+ }
366
+ this.thead += '</tr>'
367
+ },
368
+ print () {
369
+ this.$refs.print.PrintAsFile()
370
+ this.printshow = false
371
+ },
372
+ close () {
373
+ this.printshow = false
374
+ this.all = false
375
+ },
376
+ // 对选择的列进行排序
377
+ sortModelval () {
378
+ let sortModel = []
379
+ Object.keys(this.fields).forEach((key) => {
380
+ if (this.modelval.includes(key)) {
381
+ sortModel.push(key)
382
+ }
383
+ })
384
+ this.modelval = sortModel
385
+ console.log('选择的打印的字段', this.modelval)
386
+ }
387
+ },
388
+ watch:{
389
+ 'all' (val) {
390
+ if (val) {
391
+ this.modelval = this.bodyData
392
+ } else {
393
+ this.modelval = defaultPrint.config
394
+ this.put()
395
+ }
396
+ },
397
+ 'modelval.length' () {
398
+ this.put()
399
+ },
400
+ },
401
+ computed:{
402
+ gasproperties () {
403
+ let rs = []
404
+ if (this.$refs.paged.$refs.cri.model.f_user_type.length === 1) {
405
+ rs = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
406
+ }
407
+ return [{label: '全部', value: ''}, ...rs]
408
+ },
409
+ getCondition(){
410
+ return {condition: `${this.$refs.paged.$refs.cri.condition} `}
411
+ },
412
+ getfield(){
413
+ return exportConfig.changemeterConfig
414
+ }
415
+ }
416
+ }
417
+ </script>