sale-client 3.6.346 → 3.6.347

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,2 +1,2 @@
1
- #Fri Jul 26 10:19:09 CST 2024
1
+ #Wed Jul 31 10:14:59 CST 2024
2
2
  gradle.version=5.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.346",
3
+ "version": "3.6.347",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -161,7 +161,16 @@
161
161
  </td>
162
162
  </tr>
163
163
  </table>
164
-
164
+ <table class="table table-striped table-bordered" v-if="model.f_notified_path=='' && model.f_notified_path==null">
165
+ <thead>
166
+ <tr> <th colspan="4" style="text-align: center;background-color: #8cbce2;">隐患整改通知单</th></tr>
167
+ </thead>
168
+ <tr>
169
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%" v-if="model.f_notified_path!='' && model.f_notified_path!=null">
170
+ <img-self :src="'rs/image/file/'+model.f_notified_path" style="float: left" width="100" height="150"></img-self>
171
+ </td>
172
+ </tr>
173
+ </table>
165
174
 
166
175
  <table class="table table-striped table-bordered" v-if="model.f_entry_status=='入户' && model.datasource =='newos'">
167
176
  <thead>
@@ -39,8 +39,8 @@
39
39
  <span class="col-sm-7">{{ data.f_sys_balance ? data.f_sys_balance : dafault.f_user_type }}</span>
40
40
  </div>
41
41
  <div class="row" :class="[config.f_idnumber ? 'highlight' : '']">
42
- <label class="col-sm-5">证件号码</label>
43
- <span class="col-sm-7" style="word-break: break-all">{{ data ? data.f_idnumber : dafault.f_idnumber }}
42
+ <label class="col-sm-5" style="color: brown">证件号码</label>
43
+ <span class="col-sm-7" style="word-break: break-all;color: brown">{{ data ? data.f_idnumber : dafault.f_idnumber }}
44
44
  <span v-if="data"
45
45
  @click.stop="changeuseridnumber"
46
46
  class="glyphicon glyphicon-pencil clickchange"
@@ -49,15 +49,15 @@
49
49
  </span>
50
50
  </div>
51
51
  <div class="row" :class="[config.f_user_phone ? 'highlight' : '']">
52
- <label class="col-sm-5">客户电话</label>
53
- <span class="col-sm-7">{{ data ? data.f_user_phone : dafault.f_user_phone }}
52
+ <label class="col-sm-5" style="color: brown">客户电话</label>
53
+ <span class="col-sm-7" style="color: brown">{{ data ? data.f_user_phone : dafault.f_user_phone }}
54
54
  <span v-if="data" @click.stop="changeuserphone"
55
55
  class="glyphicon glyphicon-pencil clickchange" title="修正客户电话"></span>
56
56
  </span>
57
57
  </div>
58
58
  <div class="row">
59
- <label class="col-sm-5">备用电话</label>
60
- <span class="col-sm-7">{{ data ? data.f_rent_phone : dafault.f_rent_phone }}
59
+ <label class="col-sm-5" style="color: brown">备用电话</label>
60
+ <span class="col-sm-7" style="color: brown">{{ data ? data.f_rent_phone : dafault.f_rent_phone }}
61
61
  <span v-if="data" @click.stop="changerentphone"
62
62
  class="glyphicon glyphicon-pencil clickchange" title="修正备用电话"></span>
63
63
  </span>
@@ -67,8 +67,8 @@
67
67
  <span class="col-sm-7">{{ data ? data.f_user_state : dafault.f_user_state }}</span>
68
68
  </div>
69
69
  <div class="row" :class="[config.f_comments ? 'highlight' : '']">
70
- <label class="col-sm-5">备注信息</label>
71
- <span class="col-sm-7">{{ data ? data.f_comments : dafault.f_comments }}
70
+ <label class="col-sm-5" style="color: brown">备注信息</label>
71
+ <span class="col-sm-7" style="color: brown">{{ data ? data.f_comments : dafault.f_comments }}
72
72
  <span v-if="data" @click.stop="change_reason"
73
73
  class="glyphicon glyphicon-pencil clickchange" title="修改备注信息"></span>
74
74
  </span>
@@ -93,6 +93,7 @@
93
93
  <th>序号</th>
94
94
  <th>用户编号</th>
95
95
  <th>用户姓名</th>
96
+ <th>气表类型</th>
96
97
  <th>银行名称</th>
97
98
  <th>燃气方订单号</th>
98
99
  <th>银行方订单号</th>
@@ -109,6 +110,7 @@
109
110
  <td style="text-align: center;">{{$index+1}}</td>
110
111
  <td>{{row.f_userinfo_code}}</td>
111
112
  <td>{{row.f_user_name}}</td>
113
+ <td>{{row.f_meter_classify}}</td>
112
114
  <th>{{row.f_bank_name?row.f_bank_name:row.bankname}}</th>
113
115
  <td>{{row.f_serial_id}}</td>
114
116
  <td>{{row.f_trade_number}}</td>
@@ -170,7 +172,6 @@
170
172
  </template>
171
173
  <script>
172
174
  import { PagedList } from 'vue-client'
173
- import AppData from '../../../../../stores/AppData'
174
175
  import Vue from 'vue'
175
176
 
176
177
  export default {
@@ -200,7 +201,6 @@
200
201
  if (!this.f_orgid) {
201
202
  this.getorg([this.$login.f.orgid])
202
203
  }
203
- debugger
204
204
  if (!this.$refs.paged.$refs.cri.model.startDate) {
205
205
  this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString()
206
206
  }
@@ -234,25 +234,103 @@
234
234
  },
235
235
  // 微信单方账单,系统可缴费
236
236
  async charge (row) {
237
- row.f_operator = Vue.$login.f.name,
238
- row.f_operatorid = Vue.$login.f.id,
239
- row.f_orgid = Vue.$login.f.orgid,
240
- row.f_orgname = Vue.$login.f.orgs,
241
- row.f_depid = Vue.$login.f.depids,
242
- row.f_depname = Vue.$login.f.deps,
243
- row.f_zoneid = Vue.$login.f.zoneid,
244
- row.f_zones = Vue.$login.f.zones
245
- let res = await this.$resetpost('rs/logic/cardOneBank', row, {resolveMsg: '缴费成功', rejectMsg: '缴费失败'})
246
- let param = []
247
- for (let row of this.resid) {
248
- param.push({id: row.id})
249
- }
250
- let data = {
251
- param: param,
252
- f_blobid: res.data
253
- }
237
+ console.log('单边账补缴:', row)
238
+ row.f_operator = Vue.$login.f.name
239
+
240
+ // 判断表类型
241
+ if (row.f_meter_classify === '气量卡表' || row.f_meter_classify === '金额卡表') {
242
+ console.log('卡表补缴')
243
+ // 查询用户信息,获取卡号和卡表厂商别名
244
+ const userInfo = await this.$resetpost('rs/sql/sale_getUser', {
245
+ data: {
246
+ orderitem: 'f_userinfo_code',
247
+ condition: `f_userinfo_code = '${row.f_userinfo_code}'`
248
+ }
249
+ }, {resolveMsg: null, rejectMsg: '获取卡表用户信息失败'})
250
+ const f_card_id = userInfo.data[0].f_card_id
251
+ const f_alias = userInfo.data[0].f_alias
252
+ // 先按照金额进行划价
253
+ const pricingParams = {
254
+ data: {
255
+ model: {
256
+ f_card_id: f_card_id,
257
+ f_alias: f_alias
258
+ },
259
+ value: row.f_total_charge,
260
+ isGasValue: 1
261
+ }
262
+ }
263
+ const pricingRes = await this.$resetpost('rs/logic/commonCal', pricingParams, {resolveMsg: null, rejectMsg: '卡表划价失败'})
264
+ console.log('卡表划价结果:', pricingRes)
265
+ const chargeLength = pricingRes.data.chargeprice.length
266
+ let gasFee = 0
267
+ let gasAmountApproved = 0
254
268
 
255
- await this.$resetpost('rs/logic/updatefiles', data)
269
+ if (chargeLength === 1) {
270
+ gasFee = pricingRes.data.chargeprice[0].f_money
271
+ gasAmountApproved = pricingRes.data.chargeprice[0].f_gas
272
+ } else if (chargeLength === 2) {
273
+ gasFee = pricingRes.data.f_stair1fee + pricingRes.data.f_stair2fee
274
+ gasAmountApproved = pricingRes.data.oughtamount
275
+ } else if (chargeLength === 3) {
276
+ gasFee = pricingRes.data.f_stair1fee + pricingRes.data.f_stair2fee + pricingRes.data.f_stair3fee
277
+ gasAmountApproved = pricingRes.data.oughtamount
278
+ }
279
+ // 缴费
280
+ const cardSellParams = {
281
+ f_card_id: f_card_id,
282
+ f_pregas: gasAmountApproved,
283
+ f_preamount: gasFee,
284
+ f_totalcost: row.f_total_charge,
285
+ isGasValue: 1,
286
+ f_unit: 'yuan',
287
+ f_write_card: '未写卡',
288
+ f_payment: '银行',
289
+ f_bank_name: row.f_bank_name,
290
+ f_print: '普通收据',
291
+ f_operator: row.f_bank_name,
292
+ f_userinfo_code: row.f_userinfo_code,
293
+ f_userfiles_id: userInfo.data[0].f_userfiles_id,
294
+ f_user_id: userInfo.data[0].f_user_id,
295
+ f_filialeids: `('${row.f_filialeid}')`,
296
+ f_serial_id: row.f_trade_number,
297
+ f_collection: row.f_total_charge,
298
+ f_operate_date: row.delivery_date,
299
+ f_comments: `本次缴费由 ${row.f_operator} 进行单边账补缴操作`
300
+ }
301
+ const res = await this.$resetpost('rs/logic/thirdPay', cardSellParams, {resolveMsg: '补缴成功', rejectMsg: '补缴失败'})
302
+ console.log('缴费结果:', res)
303
+ } else {
304
+ const requestSellData = {
305
+ f_userinfo_code: row.f_userinfo_code,
306
+ f_filialeids: `('${row.f_filialeid}')`,
307
+ f_serial_id: row.f_trade_number,
308
+ f_userfiles_id: row.f_userfiles_id,
309
+ f_payment: '银行',
310
+ f_print: '普通收据',
311
+ f_collection: row.f_total_charge,
312
+ f_bank_name: row.f_bank_name,
313
+ f_unit: 'yuan',
314
+ f_operator: row.f_bank_name,
315
+ f_operate_date: row.delivery_date,
316
+ f_comments: `本次缴费由 ${row.f_operator} 进行单边账补缴操作`
317
+ }
318
+ let url = 'rs/logic/'
319
+
320
+ if (row.f_meter_classify === '机表') {
321
+ console.log('机表补缴')
322
+ url += 'machinePay'
323
+ } else if (row.f_meter_classify === '物联网表') {
324
+ console.log('物联网表补缴')
325
+ url += 'iotPay'
326
+ requestSellData.f_preamount = row.f_total_charge
327
+ requestSellData.f_totalcost = row.f_total_charge
328
+ } else {
329
+ this.$showAlert('气表类型错误,无法进行补缴', 'warning', 3000)
330
+ }
331
+ const res = await this.$resetpost(url, requestSellData, {resolveMsg: '补缴成功', rejectMsg: '补缴失败'})
332
+ console.log('缴费结果:', res)
333
+ }
256
334
  this.$refs.paged.$refs.cri.search()
257
335
  }
258
336
  // })
@@ -0,0 +1,389 @@
1
+ <template >
2
+ <div class="flex" style="justify-content: space-between;">
3
+ <div @keyup.enter="search" style="">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria @condition-changed='$parent.search' partial='criteria' v-ref:criteria>
6
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
+ <div class="row">
8
+ <div class="col-sm-2 form-group">
9
+ <label class="font_normal_body" title="归属日期" >开始时间</label>
10
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
11
+ class="datepicker"
12
+ condition="f_hand_date >= '{} 00:00:00' "
13
+ placeholder="起始时间"
14
+ style="width:60%"
15
+ v-model="model.f_start_date"
16
+ ></datepicker>
17
+ </div>
18
+ <div class="col-sm-2 form-group" >
19
+ <label class="font_normal_body" title="归属日期">结束时间</label>
20
+ <datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
21
+ class="datepicker"
22
+ condition="f_hand_date <= '{} 23:59:59' "
23
+ placeholder="结束时间"
24
+ style="width:60%"
25
+ v-model="model.f_end_date"
26
+ ></datepicker>
27
+ </div>
28
+ <div class="col-sm-2 form-group">
29
+ <label class="font_normal_body">是否缴费</label>
30
+ <v-select :value.sync="model.f_whether_pay" v-model='model.f_whether_pay'
31
+ style="width:60%"
32
+ :options='$parent.$parent.whetherpaies' placeholder='是否缴费'
33
+ close-on-select
34
+ condition="f_whether_pay = '{}'"></v-select>
35
+ </div>
36
+ <div class="col-sm-2 form-group">
37
+ <label class="font_normal_body" title="抄表状态">抄表状态</label>
38
+ <v-select :value.sync="model.f_meter_state" v-model='model.f_meter_state'
39
+ style="width:60%"
40
+ :options='$parent.$parent.meterstates' placeholder='抄表状态'
41
+ close-on-select
42
+ condition="f_meter_state = '{}'"></v-select>
43
+ </div>
44
+ <div class="col-sm-2 form-group">
45
+ <label class="font_normal_body" title="表单状态">表单状态</label>
46
+ <v-select :value.sync="model.f_hand_state" v-model='model.f_hand_state'
47
+ style="width:60%"
48
+ :options='$parent.$parent.handstates' placeholder='表单状态'
49
+ close-on-select
50
+ condition="f_hand_state = '{}'"></v-select>
51
+ </div>
52
+
53
+ <div style="float: right">
54
+ <button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
55
+ <print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :is-selected="true" :model="$parent.$parent.printModel"
56
+ @print-data="$parent.$parent.print()"
57
+ :starthead="$parent.$parent.starthead"
58
+ titletable="气费打印明细"
59
+ ></print-data>
60
+ <export-excel :data="$parent.$parent.getCondition"
61
+ :field="$parent.$parent.fields"
62
+ sqlurl="rs/logic/saleExport" sql-name="sale_HandplanQuery" template-name='抄表查询'
63
+ v-ref:exports
64
+ :choose-col="true">
65
+
66
+ </export-excel>
67
+ </div>
68
+ </div>
69
+
70
+
71
+ </div>
72
+
73
+ </criteria>
74
+ <data-grid :model="model" class="list_area table_sy" class="list_area table_sy" partial='list' v-ref:grid>
75
+ <template partial='head'>
76
+ <tr>
77
+
78
+ <th v-show="false"><nobr>抄表月份</nobr></th>
79
+ <th v-show="false"><nobr>用气周期</nobr></th>
80
+ <th><nobr>抄表日期</nobr></th>
81
+ <th><nobr>录入日期</nobr></th>
82
+ <th><nobr>上期底数</nobr></th>
83
+ <th><nobr>本期底数</nobr></th>
84
+ <th><nobr>上期余额</nobr></th>
85
+ <th><nobr>用气量</nobr></th>
86
+ <th><nobr>用气金额 </nobr></th>
87
+ <th><nobr>本期余额</nobr></th>
88
+ <th v-if="!row.f_meter_type.includes('物联网表')"><nobr>是否缴费 </nobr></th>
89
+ <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>一阶单价 </nobr></th>
90
+ <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>一阶气量 </nobr></th>
91
+ <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>二阶单价 </nobr></th>
92
+ <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>二阶气量 </nobr></th>
93
+ <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>三阶单价 </nobr></th>
94
+ <th v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')"><nobr>三阶气量 </nobr></th>
95
+ <th><nobr>抄表状态 </nobr></th>
96
+ <th><nobr>抄表结果状态 </nobr></th>
97
+ <th><nobr>表单状态 </nobr></th>
98
+ <th><nobr>抄表员</nobr></th>
99
+ <th><nobr>录入员</nobr></th>
100
+ </tr>
101
+ </template>
102
+ <template partial='body' partial='list' v-ref:grid>
103
+ <tr>
104
+ <td style="text-align:center" v-show="false">{{row.f_hand_date.substring(0,7)}}</td>
105
+ <th v-show="false"><nobr >{{row.datas}}</nobr></th>
106
+ <td style="text-align:center">{{row.f_hand_date}}</td>
107
+ <td style="text-align:center">{{row.f_input_date}}</td>
108
+ <td style="text-align:center">{{row.f_last_tablebase}}</td>
109
+ <td style="text-align:center">{{row.f_tablebase}}</td>
110
+ <td style="text-align:center">{{row.f_balance}}</td>
111
+ <td style="text-align:center">{{row.f_oughtamount}}</td>
112
+ <td style="text-align:center">{{row.f_oughtfee}}</td>
113
+ <td style="text-align:center">{{row.f_curbalance}}</td>
114
+ <td style="text-align:center" v-if="!row.f_meter_type.includes('物联网表')">{{row.f_whether_pay}}</td>
115
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair1price}}</td>
116
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stairamount1}}</td>
117
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair2price}}</td>
118
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair2amount}}</td>
119
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair3price}}</td>
120
+ <td style="text-align:center" v-if="!$parent.$parent.$parent.f_calculation.includes('表端结算')">{{row.f_stair3amount}}</td>
121
+ <td style="text-align:center">{{row.f_meter_state}}</td>
122
+ <td style="text-align:center">{{row.f_result_state?row.f_result_state:''}}</td>
123
+ <td style="text-align:center">{{row.f_hand_state}}</td>
124
+ <td style="text-align:center">{{row.f_inputtor}}</td>
125
+ <td style="text-align:center">{{row.f_input_person}}</td>
126
+ </tr>
127
+ </template>
128
+ <template partial='foot'></template>
129
+ </data-grid>
130
+ </criteria-paged>
131
+
132
+ </div>
133
+ <table class="table-hover">
134
+ <tr class="table-bordered" style="position: relative">
135
+ <td
136
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
137
+ 汇总信息
138
+ </td>
139
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
140
+ 用气量合计:&emsp;{{model.sums.f_oughtamount}}
141
+ </td>
142
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
143
+ 用气金额合计:&emsp;{{model.sums.f_oughtfee}}
144
+ </td>
145
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
146
+ 一阶用气量合计:&emsp;{{model.sums.f_stairamount1}}
147
+ </td>
148
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
149
+ 一阶用气金额合计:&emsp;{{model.sums.f_stair1fee}}
150
+ </td>
151
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
152
+ 二阶用气量合计:&emsp;{{model.sums.f_stair2amount}}
153
+ </td>
154
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
155
+ 二阶用气金额合计:&emsp;{{model.sums.f_stair2fee}}
156
+ </td>
157
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
158
+ 三阶用气量合计:&emsp;{{model.sums.f_stair3amount}}
159
+ </td>
160
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px" v-if="!f_calculation.includes('表端结算')">
161
+ 三阶用气金额合计:&emsp;{{model.sums.f_stair3fee}}
162
+ </td>
163
+ <!--<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
164
+ <!--欠费气量合计:&emsp;{{model.sums.f_totalowe_gas}}-->
165
+ <!--</td>-->
166
+ <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">-->
167
+ <!-- 欠费金额合计:&emsp;{{model.sums.f_qianfei_fee}}-->
168
+ <!-- </td>-->
169
+ </tr>
170
+ </table>
171
+ </div>
172
+
173
+ </template>
174
+
175
+ <script>
176
+ import {HttpResetClass, PagedList} from 'vue-client'
177
+
178
+ export default {
179
+ title: '抄表',
180
+ data () {
181
+ return {
182
+ condition: '1=1',
183
+ model: new PagedList('rs/sql/sale_HandplanQuery', 20, {f_user_id: this.row.f_user_id}, {
184
+ f_oughtfee: 0,
185
+ f_oughtamount: 0,
186
+ f_qianfei_fee: 0,
187
+ f_stairamount1: 0,
188
+ f_stair1fee: 0,
189
+ f_stair2amount: 0,
190
+ f_stair2fee: 0,
191
+ f_stair3amount: 0,
192
+ f_stair3fee: 0
193
+ }),
194
+ show: false,
195
+ lists: [],
196
+ meterstates: this.$appdata.getParam('抄表状态') ? [{
197
+ label: '全部',
198
+ value: ''
199
+ }, ...this.$appdata.getParam('抄表状态')] : [],
200
+ handstates: this.$appdata.getParam('表单状态') ? [{
201
+ label: '全部',
202
+ value: ''
203
+ }, ...this.$appdata.getParam('表单状态')] : [],
204
+ // 控制单选
205
+ radio: [],
206
+ // 选中的页
207
+ all: [],
208
+ // row数据
209
+ rowsdata: [],
210
+ f_calculation: '',
211
+ searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
212
+ starthead: '',
213
+ fields: {'f_userinfo_code': '用户编号',
214
+ 'f_user_name': '姓名',
215
+ 'f_last_tablebase': '上期底数',
216
+ 'f_tablebase': '本期底数',
217
+ 'f_balance': '上期余额',
218
+ 'f_curbalance': '本期余额',
219
+ 'f_oughtamount': '用气量',
220
+ 'f_oughtfee': '用气金额',
221
+ 'f_qianfei_fee': '欠费金额合计',
222
+ 'f_detailprice': '结算明细',
223
+ 'datas': '用气周期',
224
+ 'money1': '违约金',
225
+ 'f_stair1price': '一阶单价',
226
+ 'f_stairamount1': '一阶用量',
227
+ 'f_stair2price': '二阶单价',
228
+ 'f_stair2amount': '二阶用量',
229
+ 'f_stair3price': '三阶单价',
230
+ 'f_stair3amount': '三阶用量',
231
+ 'f_oughtfee1': '应交金额',
232
+ 'f_inputtor': '抄表员',
233
+ 'f_input_date': '抄表日期',
234
+ 'f_whether_pay': '是否缴费',
235
+ 'f_hand_date': '录入时间'},
236
+ defaultfield: [
237
+ 'datas', 'f_last_tablebase', 'f_last_tablebase', 'f_oughtamount', 'f_oughtfee', 'f_oughtfee1', 'money1', 'price1'
238
+ ],
239
+ fooinfo: [
240
+ '单位',
241
+ '收款人'
242
+ ],
243
+ printModel: {
244
+ rows: []
245
+ }
246
+ }
247
+ },
248
+ props: ['row'],
249
+ ready () {
250
+ this.$refs.paged.$refs.criteria.model.f_hand_state = ['有效']
251
+ this.f_calculation = this.row.f_calculation
252
+ this.$refs.paged.$refs.criteria.search()
253
+ // this.sumgasandmoney= this.$refs.paged.$refs.grid.model.sums
254
+ for (let i in this.all) {
255
+ this.money += i.f_oughtamount
256
+ this.gas += i.f_oughtfee
257
+ }
258
+ },
259
+ methods: {
260
+ // search() {
261
+ // this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
262
+ // this.model.search(this.condition, this.model)
263
+ // },
264
+ async search () {
265
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
266
+ this.model.search(this.condition, this.model)
267
+ let http = new HttpResetClass()
268
+ let res = await http.load('POST', 'rs/sql/sale_HandplanQuery', {
269
+ data: {
270
+ condition: this.condition,
271
+ f_user_id: this.row.f_user_id
272
+ }
273
+ }, {resolveMsg: null, rejectMsg: null})
274
+ this.printModel.rows = res.data
275
+
276
+ this.starthead = '用户编号:' + this.row.f_userinfo_code + '&emsp;&emsp;用户姓名:' + this.row.f_user_name + '&emsp;&emsp;用户地址:' + this.row.f_address
277
+ },
278
+ // 多选框初始化
279
+ selectInit () {
280
+ this.rowsdata = []
281
+ this.all = []
282
+ this.radio = []
283
+ },
284
+ print () {
285
+ console.log('====================================')
286
+ console.log('print')
287
+ console.log(this.printModel)
288
+ this.selectInit()
289
+ },
290
+ select () {
291
+ let index = this.model.pageIndex - 1
292
+ if (!this.radio[index]) {
293
+ this.radio.$set(index, [])
294
+ }
295
+ if (this.all[index]) {
296
+ // 数据
297
+ this.rowsdata[index] = Object.assign([], this.model.rows)
298
+ // 勾选
299
+ for (var i = 0; i < this.model.rows.length; i++) {
300
+ this.radio[index].$set(i, true)
301
+ }
302
+ } else {
303
+ // 数据
304
+ this.rowsdata[index] = []
305
+ // 不勾选
306
+ for (var i = 0; i < this.model.rows.length; i++) {
307
+ this.radio[index].$set(i, false)
308
+ }
309
+ }
310
+ let z = 0
311
+ for (let i = 0; i < this.all.length; i++) {
312
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
313
+ this.printModel.rows[z++] = this.rowsdata[i][j]
314
+ }
315
+ }
316
+ },
317
+ selectOne (event, row, i) {
318
+ let index = this.model.pageIndex - 1
319
+ if (!this.rowsdata[index]) {
320
+ this.rowsdata[index] = []
321
+ }
322
+ if (!this.radio[index]) {
323
+ this.radio.$set(index, [])
324
+ }
325
+ if (event.target.checked) {
326
+ // 数据
327
+ this.rowsdata[index][i] = row
328
+ // 勾选
329
+ this.radio[index].$set(i, true)
330
+ // 判断是否全部选中
331
+ var allState = true
332
+ if (this.model.rows.length != this.radio[index].length) {
333
+ allState = false
334
+ }
335
+ for (var state of this.radio[index]) {
336
+ if (!state) {
337
+ allState = false
338
+ }
339
+ }
340
+ if (allState) {
341
+ this.all.$set(index, true)
342
+ } else {
343
+ this.all.$set(index, false)
344
+ }
345
+ } else {
346
+ // 数据
347
+ this.rowsdata[index][i] = []
348
+ // 不勾选
349
+ this.radio[index].$set(i, false)
350
+ // 任意取消一个则全选状态设为false
351
+ this.all.$set(index, false)
352
+ }
353
+ let z = 0
354
+ this.printModel.rows = []
355
+ for (let i = 0; i < this.all.length; i++) {
356
+ for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
357
+ if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
358
+ this.printModel.rows[z++] = this.rowsdata[i][j]
359
+ }
360
+ }
361
+ }
362
+ }
363
+ },
364
+ computed: {
365
+ getCondition () {
366
+ return {
367
+ condition: this.condition,
368
+ f_user_id: this.row.f_user_id
369
+ }
370
+ },
371
+ whetherpaies () {
372
+ return [
373
+ {label: '全部', value: ''},
374
+ {label: '已缴费', value: '是'},
375
+ {label: '未缴费', value: '否'}
376
+ ]
377
+ },
378
+ ischecked () {
379
+ return function (index, i) {
380
+ if (!this.radio[index]) {
381
+ return false
382
+ }
383
+ return this.radio[index][i]
384
+ }
385
+ }
386
+ }
387
+ }
388
+ </script>
389
+
@@ -72,9 +72,9 @@
72
72
  sqlurl="rs/logic/saleExport" sql-name="salehandplanQuery" template-name='抄表查询导出'
73
73
  :choose-col="true"></export-excel>
74
74
  <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
75
- :defaultfield="$parent.$parent.defaultfield" print-name="抄表查询打印"
76
- titletable="抄表查询"
77
- :sumsmodel="$parent.$parent.sumsmodel"></print-data>
75
+ :defaultfield="$parent.$parent.defaultfield" print-name="机表数据"
76
+ titletable="机表数据"
77
+ :sumsmodel="$parent.$parent.printsumsmodel"></print-data>
78
78
 
79
79
  <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>
80
80
  </div>
@@ -1095,6 +1095,12 @@
1095
1095
  banklist() {
1096
1096
  return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('银行名称')]
1097
1097
  },
1098
+ printsumsmodel(){
1099
+ let param = {}
1100
+ param.f_oughtamount = this.sumsmodel.f_oughtamount
1101
+ param.f_oughtfee = this.sumsmodel.f_oughtfee
1102
+ return param
1103
+ },
1098
1104
  getCondition() {
1099
1105
  return {
1100
1106
  startDate: this.$refs.paged.$refs.cri.model.startDate,
@@ -0,0 +1,218 @@
1
+ <template>
2
+ <div class="binary flex" >
3
+ <div class="row binary-left flex" style="width:99%;height:98%;margin-bottom:0px">
4
+ <div class="auto">
5
+ <user-base-info-new :row="row" :buttonshow="buttonshow"
6
+ @cancel-main="cancel"
7
+ @cancel-re="cancelRe"
8
+ @search-main="search"></user-base-info-new></div>
9
+ <saletabbut v-if="row" v-ref:list style="height:72%;margin-top: 1%;overflow-y: scroll">
10
+ <saletab header="流水查询" v-if="permission('流水查询')">
11
+ <record-query-user :row="row"></record-query-user>
12
+ </saletab>
13
+ <saletab header="机表流水查询" v-if="permission('机表流水查询')&&row.f_meter_type.includes('机表')">
14
+ <machine-record-query :row="row" v-if="show == '机表流水查询'" @deal-msg="dealMsg"></machine-record-query>
15
+ </saletab>
16
+ <saletab header="收费查询" v-if="!newWebHand && permission('收费查询')">
17
+ <charge-query-user :row="row" v-if="show == '收费查询'" @deal-msg="dealMsg"></charge-query-user>
18
+ </saletab>
19
+ <saletab header="收费查询" v-if="newWebHand && permission('收费查询')">
20
+ <charge-query-user :row="row" v-if="show == '收费查询'" @deal-msg="dealMsg"></charge-query-user>
21
+ </saletab>
22
+ <saletab header="累购查询" v-if="permission('累购查询')">
23
+ <Repurchase :row="row" v-if="show == '累购查询'" @deal-msg="dealMsg"></Repurchase>
24
+ </saletab>
25
+ <saletab header="下账查询" v-if="!newWebHand && row.f_meter_type.includes('物联网表')&&permission('自动下账查询')">
26
+ <automatic-purse :row="row" @deal-msg="dealMsg"></automatic-purse>
27
+ </saletab>
28
+ <saletab header="下账查询" v-if="newWebHand && row.f_meter_type.includes('物联网表')&&permission('自动下账查询')">
29
+ <web-automatic-purse :row="row" @deal-msg="dealMsg"></web-automatic-purse>
30
+ </saletab>
31
+ <saletab header="抄表记录" v-if="row.f_meter_type.includes('卡表')&&permission('抄表记录')">
32
+ <card-hand-record :row="row" v-if="show == '抄表记录'" @deal-msg="dealMsg"></card-hand-record>
33
+ </saletab>
34
+ <saletab header="抄表记录" v-if="!newWebHand && !row.f_meter_type.includes('卡表')&&permission('抄表记录')">
35
+ <hand-query-user :row="row" v-if="show == '抄表记录'" @deal-msg="dealMsg"></hand-query-user>
36
+ </saletab>
37
+ <saletab header="抄表记录" v-if="newWebHand && !row.f_meter_type.includes('卡表')&&permission('抄表记录')">
38
+ <web-hand-query-user :row="row" v-if="show == '抄表记录'" @deal-msg="dealMsg"></web-hand-query-user>
39
+ </saletab>
40
+ <saletab header="补卡查询" v-if="row.f_meter_type.includes('卡表')&&permission('补卡查询')">
41
+ <fill-card-query-user :row="row" v-if="show == '补卡查询'" @deal-msg="dealMsg"></fill-card-query-user>
42
+ </saletab>
43
+ <saletab header="补气查询" v-if="permission('补气查询')">
44
+ <fill-gas-query-user :row="row" v-if="show == '补气查询'" @deal-msg="dealMsg"></fill-gas-query-user>
45
+ </saletab>
46
+ <saletab header="换表查询" v-if="permission('换表查询')">
47
+ <change-meter-query-user :row="row" v-if="show == '换表查询'" @deal-msg="dealMsg"></change-meter-query-user>
48
+ </saletab>
49
+ <saletab header="其他收费" v-if="permission('其他收费')">
50
+ <other-charge-query-user :row="row" v-if="show == '其他收费'" @deal-msg="dealMsg"></other-charge-query-user>
51
+ </saletab>
52
+ <saletab header="过户查询" v-if="permission('过户查询')">
53
+ <transfer-query-user :row="row" v-if="show == '过户查询'" @deal-msg="dealMsg"></transfer-query-user>
54
+ </saletab>
55
+ <saletab header="价格调整" v-if="permission('价格调整')">
56
+ <price-change-query-user :row="row" v-if="show == '价格调整'" @deal-msg="dealMsg"></price-change-query-user>
57
+ </saletab>
58
+ <saletab header="附件查看" v-if="permission('附件查看')">
59
+ <upload-file-history :row="row" v-if="show == '附件查看'" @deal-msg="dealMsg"></upload-file-history>
60
+ </saletab>
61
+ <saletab header="变更记录" v-if="permission('变更记录')">
62
+ <change-record :row="row" v-if="show == '变更记录'" @deal-msg="dealMsg"></change-record>
63
+ </saletab>
64
+ <saletab header="指令查看" v-if="row.f_meter_type.includes('物联网表')&&permission('指令查看')">
65
+ <query-instruct :row="row" v-if="show == '指令查看'" @deal-msg="dealMsg"></query-instruct>
66
+ </saletab>
67
+ <saletab header="历史指令查看" v-if="row.f_meter_type.includes('物联网表')&&permission('历史指令查看')">
68
+ <query-history-instruct :row="row" v-if="show == '历史指令查看'" @deal-msg="dealMsg"></query-history-instruct>
69
+ </saletab>
70
+ <saletab header="异常报警" v-if="row.f_meter_type.includes('物联网表')&&permission('异常报警')">
71
+ <watch-warning :row="row" v-if="show == '异常报警'" @deal-msg="dealMsg"></watch-warning>
72
+ </saletab>
73
+ <saletab header="表具采集" v-if="row.f_meter_type.includes('物联网表')&&permission('表具采集')">
74
+ <watch-collection :row="row" v-if="show == '表具采集'" @deal-msg="dealMsg"></watch-collection>
75
+ </saletab>
76
+ <saletab header="调价补差" v-if="permission('调价补差')">
77
+ <price-adjustment-query-user :row="row" v-if="show == '调价补差'" @deal-msg="dealMsg"></price-adjustment-query-user>
78
+ </saletab>
79
+ <saletab header="设备查询" v-if="permission('设备查询')">
80
+ <deveice-record :row="row" v-if="show == '设备查询'" @deal-msg="dealMsg"></deveice-record>
81
+ </saletab>
82
+ <saletab header="流量计参数查看" v-if="permission('流量计参数查看')">
83
+ <meter-param :row="row" v-if="show == '流量计参数查看'" @deal-msg="dealMsg"></meter-param>
84
+ </saletab>
85
+ <saletab header="表使用量图表" v-if="permission('流量计参数查看')">
86
+ <table-usage-chart :row="row" v-if="show == '表使用量图表'" @deal-msg="dealMsg"></table-usage-chart>
87
+ </saletab>
88
+ <saletab header="用户设备查询" v-if="permission('用户设备查看')">
89
+ <user-device-query :row="row" v-if="show == '用户设备查询'" @deal-msg="dealMsg"></user-device-query>
90
+ </saletab>
91
+ <saletab header="合同查看" v-if="permission('合同查看')">
92
+ <contract-signing-list :row="row" v-if="show == '合同查看'" @deal-msg="dealMsg"></contract-signing-list>
93
+ </saletab>
94
+ </saletabbut>
95
+ </div>
96
+ </div>
97
+ </template>
98
+
99
+ <script>
100
+ import {HttpResetClass} from 'vue-client'
101
+ // 导入IC卡相关查询界面
102
+ import ChangeMeterQueryUser from '../../components/common/userinfo_detail/ic_detail/ChangeMeterQueryUser'
103
+ import ChargeQueryUser from '../../components/common/userinfo_detail/ic_detail/ChargeQueryUser'
104
+ import ChargeRecordQueryUser from '../../components/common/userinfo_detail/ic_detail/ChargeRecordQuery'
105
+ import FillCardQueryUser from '../../components/common/userinfo_detail/ic_detail/FillCardQueryUser'
106
+ import HandQueryUser from './HandQueryUser'
107
+ import OtherChargeQueryUser from '../../components/common/userinfo_detail/ic_detail/OtherChargeQueryUser'
108
+ import RecordQueryUser from '../../components/common/userinfo_detail/ic_detail/RecordQueryUser'
109
+ import TransferQueryUser from '../../components/common/userinfo_detail/ic_detail/TransferQueryUser'
110
+ import CardHandRecord from '../../components/common/userinfo_detail/ic_detail/CardHandRecord'
111
+ import AutomaticPurse from '../../components/common/userinfo_detail/ic_detail/AutomaticPurse'
112
+ import Repurchase from '../../components/common/userinfo_detail/ic_detail/Repurchase'
113
+ import MachineRecordQuery from '../../components/common/userinfo_detail/ic_detail/MachineRecordQuery'
114
+ import WebAutomaticPurse from '../../components/common/userinfo_detail/ic_detail/WebAutomaticPurse'
115
+ import WebChargeQueryUser from '../../components/common/userinfo_detail/ic_detail/WebChargeQueryUser'
116
+ import WebHandQueryUser from '../../components/common/userinfo_detail/ic_detail/WebHandQueryUser'
117
+ import UserDeviceQuery from '../../components/common/userinfo_detail/ic_detail/UserDeviceQuery'
118
+ import contractSigningList from '../../components/common/userinfo_detail/ic_detail/contractSigningList'
119
+
120
+ // 导入物联网相关查询
121
+ import QueryInstruct from '../../components/common/userinfo_detail/iot_detail/QueryInstruct'
122
+ import QueryHistoryInstruct from '../../components/common/userinfo_detail/iot_detail/QueryHistoryInstruct'
123
+ import WatchCollection from '../../components/common/userinfo_detail/iot_detail/WatchCollection'
124
+ import WatchWarning from '../../components/common/userinfo_detail/iot_detail/WatchWarning'
125
+ import PriceChangeQueryUser from '../../components/common/userinfo_detail/ic_detail/PriceChangeQueryUser'
126
+ import ChangeRecord from '../../components/common/userinfo_detail/ic_detail/ChangeRecord'
127
+ import PriceAdjustmentQueryUser from '../../components/common/userinfo_detail/ic_detail/PriceAdjustmentQueryUser'
128
+ import MeterParam from '../../components/common/userinfo_detail/ic_detail/MeterParam'
129
+ import DeveiceRecord from '../../components/common/userinfo_detail/ic_detail/DeveiceRecord'
130
+
131
+ export default {
132
+ title: '用户详细信息',
133
+ props: ['f_userfiles_id', 'f_userinfo_id', 'f_userinfo_code', 'parentname', 'buttonshow'],
134
+ components: {
135
+ PriceAdjustmentQueryUser,
136
+ PriceChangeQueryUser,
137
+ AutomaticPurse,
138
+ WebAutomaticPurse,
139
+ WebChargeQueryUser,
140
+ WebHandQueryUser,
141
+ Repurchase,
142
+ ChangeMeterQueryUser,
143
+ ChargeQueryUser,
144
+ ChargeRecordQueryUser,
145
+ FillCardQueryUser,
146
+ HandQueryUser,
147
+ OtherChargeQueryUser,
148
+ RecordQueryUser,
149
+ TransferQueryUser,
150
+ WatchWarning,
151
+ WatchCollection,
152
+ QueryInstruct,
153
+ QueryHistoryInstruct,
154
+ ChangeRecord,
155
+ CardHandRecord,
156
+ MeterParam,
157
+ DeveiceRecord,
158
+ MachineRecordQuery,
159
+ UserDeviceQuery,
160
+ contractSigningList
161
+ },
162
+ data () {
163
+ return {
164
+ row: null,
165
+ name: '自动下账查询',
166
+ newWebHand: this.$appdata.getSingleValue('新抄表'),
167
+ show: ''
168
+ }
169
+ },
170
+ ready () {
171
+ this.search()
172
+ console.log(this.$login)
173
+ },
174
+ methods: {
175
+ permission (name) {
176
+ if (this.$login.r.find(value => value == '收费综合查询')) {
177
+ if (!this.$login.r.find(value => value == name)) {
178
+ return false
179
+ }
180
+ }
181
+ return true
182
+ },
183
+ async search () {
184
+ let http = new HttpResetClass()
185
+ let condition = ' 1 = 1'
186
+ if (this.f_userfiles_id) {
187
+ condition = `f_userfiles_id = '${this.f_userfiles_id}'`
188
+ } else if (this.f_userinfo_id) {
189
+ condition = `f_userinfo_id = '${this.f_userinfo_id}'`
190
+ } else if (this.f_userinfo_code) {
191
+ condition = `f_userinfo_code = '${this.f_userinfo_code}'`
192
+ }
193
+
194
+ let getBaseInfo = await http.load('POST', 'rs/sql/iot_getUserBaseData',
195
+ {data: {condition: condition}}, {resolveMsg: null, rejectMsg: '获取基本信息出错'})
196
+ this.row = getBaseInfo.data[0]
197
+ this.row.parentname = this.parentname || ''
198
+ },
199
+
200
+ cancel (val) {
201
+ this.$emit('cancel-main', val)
202
+ },
203
+
204
+ cancelRe (val) {
205
+ this.$emit('cancel-re', val)
206
+ },
207
+
208
+ butOper (val) {
209
+ this.name = val
210
+ }
211
+ },
212
+ watch: {
213
+ 'f_userinfo_id' () {
214
+ this.search()
215
+ }
216
+ }
217
+ }
218
+ </script>
@@ -39,4 +39,7 @@ export default function () {
39
39
  Vue.component('meter-message', (resolve) => { require(['./Common/MeterMessage'], resolve) })
40
40
  // 当前选择用户的表具基本信息
41
41
  Vue.component('user-meterinfodetail', (resolve) => { require(['./meterinfodetail'], resolve) })
42
+
43
+ // Vue.component('limit-gas-manages', (resolve) => { require(['./LimitGasManage'], resolve) })
44
+ Vue.component('user-info-detail-manage-new', (resolve) => { require(['./UserInfoDetailManageNew'], resolve) })
42
45
  }
File without changes
File without changes
Binary file