sale-client 3.4.112 → 3.4.113
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/.gradle/{5.2.1 → 4.4}/fileChanges/last-build.bin +0 -0
- package/.gradle/{6.1.1 → 4.4}/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/build/dev-server.js +3 -3
- package/{.gradle/5.2.1/gc.properties → npm} +0 -0
- package/package.json +1 -1
- package/src/components/FilesManage/MeterinfoTest.vue +904 -905
- package/src/components/FilesManage/TemplateManage.vue +167 -167
- package/src/components/FilesManage/UserGeneralInfoTest.vue +642 -640
- package/src/components/charge/business/CardChangeFill.vue +612 -612
- package/src/components/charge/business/CardMeterCenter.vue +899 -899
- package/src/components/charge/business/FilesComplete.vue +253 -253
- package/src/components/charge/business/refund/IOTRefund.vue +236 -236
- package/src/components/charge/business/refund/RefundManage.vue +28 -28
- package/src/components/charge/gasloss/gasLossOperate.vue +357 -357
- package/src/components/chargeNew/thirdSurplus.vue +2 -0
- package/src/components/revenue/Common/MeterMessage.vue +184 -184
- package/src/components/revenue/HandManager/MeterBookManage.vue +153 -153
- package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
- package/src/components/revenue/base/leftview/Mulitinfo.vue +74 -74
- package/src/components/revenue/base/leftview/SafeCheck.vue +311 -311
- package/src/components/revenue/base/leftview/Stairinfo.vue +156 -156
- package/src/components/revenue/base/leftview/meterinfodetail.vue +195 -195
- package/src/components/revenue/base/rightview/CardList.vue +477 -477
- package/src/components/revenue/comprehen/ComprehenOperation/MeterDisable/DisableManage.vue +93 -93
- package/src/components/revenue/comprehen/ComprehenOperation/MeterEnable/EnableManage.vue +184 -184
- package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +5 -1
- package/src/components/revenue/comprehen/ComprehenOperation/removeTable.vue +1 -1
- package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +638 -638
- package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +7 -7
- package/src/components/revenue/comprehen/Message/MessageList.vue +587 -587
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackList.vue +1 -1
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListManage.vue +1 -1
- package/src/components/revenue/comprehen/StairPrice/GasPriceList.vue +303 -303
- package/src/components/revenue/comprehen/replacement/replacementHandInfoRecord.vue +155 -155
- package/src/components/revenue/comprehen/wechatpay/WeChat.vue +62 -62
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +8 -4
- package/src/filiale/alashan/PrintBill.vue +116 -116
- package/src/filiale/jingwei/CardHand.vue +742 -742
- package/src/filiale/macheng/FilesManageNew/FileUserFiles.vue +743 -0
- package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +371 -371
- package/src/filiale/macheng/FilesManageNew/UserGeneralInfoTest.vue +596 -596
- package/src/filiale/macheng/UserEssentialInfoTest.vue +368 -366
- package/src/filiale/meihekou/MeterinfoTest.vue +0 -1
- package/src/filiale/meihekou/PrintBill.vue +140 -140
- package/src/filiale/meihekou/ReissueBill.vue +322 -322
- package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +0 -1
- package/src/filiale/qianneng/GasPriceList.vue +330 -330
- package/src/filiale/qianneng/HandManager.vue +1838 -1838
- package/src/filiale/qianneng/OtherChargeNew.vue +6 -2
- package/src/filiale/qianneng/sale.js +30 -32
- package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +538 -533
- package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +608 -608
- package/src/filiale/rongchuang/OtherGas.vue +329 -329
- package/src/filiale/tongchuan/CardList.vue +482 -482
- package/src/filiale/tongchuan/MeterinfoTest.vue +892 -892
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/AutomaticPurse.vue +298 -298
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/CardHandRecord.vue +267 -267
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +240 -240
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChangeRecord.vue +235 -235
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +372 -372
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/DeveiceRecord.vue +251 -251
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/FillCardQueryUser.vue +209 -209
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/HandQueryUser.vue +365 -365
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +252 -252
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/OtherChargeQueryUser.vue +250 -250
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/RecordQueryUser.vue +249 -249
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/TransferQueryUser.vue +222 -222
- package/src/filiale/tongchuan/sale.js +107 -107
- package/src/filiale/zhongsheng/rightview/CardList.vue +492 -492
- package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
- package/src/main.js +1 -1
- package/src/plugins/CardService.js +1798 -1798
- package/src/plugins/ChangeMeterService.js +756 -756
- package/src/plugins/FileManageService.js +366 -366
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
- package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/6.1.1/gc.properties +0 -0
- package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.1/fileChanges/last-build.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/checksums/checksums.lock +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
|
@@ -1,249 +1,249 @@
|
|
|
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
|
-
|
|
7
|
-
<div class="form-horizontal select-overspread container-fluid auto " novalidate partial>
|
|
8
|
-
<div class="row">
|
|
9
|
-
|
|
10
|
-
<div class="col-sm-2 form-group">
|
|
11
|
-
<label class="font_normal_body">开始时间</label>
|
|
12
|
-
<datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
|
|
13
|
-
class="datepicker"
|
|
14
|
-
condition="f_operate_date >= '{} 00:00:00' "
|
|
15
|
-
placeholder="起始时间"
|
|
16
|
-
style="width:60%"
|
|
17
|
-
v-model="model.f_start_date"
|
|
18
|
-
></datepicker>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="col-sm-2 form-group" >
|
|
21
|
-
<label class="font_normal_body" >结束时间</label>
|
|
22
|
-
<datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
|
|
23
|
-
class="datepicker"
|
|
24
|
-
condition="f_operate_date <= '{} 23:59:59' "
|
|
25
|
-
placeholder="结束时间"
|
|
26
|
-
style="width:60%"
|
|
27
|
-
v-model="model.f_end_date"
|
|
28
|
-
></datepicker>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="col-sm-2 form-group">
|
|
31
|
-
<label class="font_normal_body">是否有效</label>
|
|
32
|
-
<v-select :value.sync="model.f_state" v-model='model.f_state'
|
|
33
|
-
style="width:60%"
|
|
34
|
-
:options='$parent.$parent.isstates' placeholder='是否有效'
|
|
35
|
-
close-on-select
|
|
36
|
-
condition="f_state = '{}'"></v-select>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<div style="float: right">
|
|
41
|
-
<button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
|
|
42
|
-
<print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :printview="true" :is-selected="true" :model="$parent.$parent.model"
|
|
43
|
-
@print-close="$parent.$parent.print()" @print-data="$parent.$parent.print()" print-name="购气流水"></print-data>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
</div>
|
|
48
|
-
</criteria>
|
|
49
|
-
<data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
|
|
50
|
-
<template partial='head'>
|
|
51
|
-
<tr>
|
|
52
|
-
<th><nobr>用户编号</nobr></th>
|
|
53
|
-
<th><nobr>姓名</nobr></th>
|
|
54
|
-
<th><nobr>住址</nobr></th>
|
|
55
|
-
<th><nobr>卡号</nobr></th>
|
|
56
|
-
<th><nobr>气量</nobr></th>
|
|
57
|
-
<th><nobr>应交</nobr></th>
|
|
58
|
-
<th><nobr>上期结余</nobr></th>
|
|
59
|
-
<th><nobr>收款</nobr></th>
|
|
60
|
-
<th><nobr>本期结余</nobr></th>
|
|
61
|
-
<th><nobr>操作类型</nobr></th>
|
|
62
|
-
<th><nobr>操作员 </nobr></th>
|
|
63
|
-
<th><nobr>操作时间 </nobr></th>
|
|
64
|
-
<th><nobr>状态 </nobr></th>
|
|
65
|
-
<th><nobr>备注</nobr></th>
|
|
66
|
-
</tr>
|
|
67
|
-
</template>
|
|
68
|
-
<template partial='body' partial='list' v-ref:grid>
|
|
69
|
-
<tr >
|
|
70
|
-
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
|
71
|
-
<td style="text-align:center">{{row.f_user_name}}</td>
|
|
72
|
-
<td style="text-align:center">{{row.f_address}}</td>
|
|
73
|
-
<td style="text-align:center">{{row.f_card_id}}</td>
|
|
74
|
-
<td style="text-align:center">{{row.gas}}</td>
|
|
75
|
-
<td style="text-align:center">{{row.fee}}</td>
|
|
76
|
-
<td style="text-align:center;white-space:nowrap;">{{row.f_balance}}</td>
|
|
77
|
-
<td style="text-align:center">{{row.f_collection}}</td>
|
|
78
|
-
<td style="text-align:center;white-space:nowrap;">{{row.f_curbalance}}</td>
|
|
79
|
-
<td style="text-align:center">{{row.type}}</td>
|
|
80
|
-
<td style="text-align:center">{{row.f_operator}}</td>
|
|
81
|
-
<td style="text-align:center">{{row.f_operate_date}}</td>
|
|
82
|
-
<td style="text-align:center">{{row.f_state}}</td>
|
|
83
|
-
<td style="text-align:center">{{row.note}}</td>
|
|
84
|
-
</tr>
|
|
85
|
-
</template>
|
|
86
|
-
<template partial='foot'></template>
|
|
87
|
-
</data-grid>
|
|
88
|
-
</criteria-paged>
|
|
89
|
-
</div>
|
|
90
|
-
<table class="table-hover">
|
|
91
|
-
<tr class="table-bordered" style="position: relative">
|
|
92
|
-
<td
|
|
93
|
-
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
94
|
-
汇总信息
|
|
95
|
-
</td>
|
|
96
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
97
|
-
气量合计: {{model.sums.gas}}
|
|
98
|
-
</td>
|
|
99
|
-
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
100
|
-
金额合计: {{model.sums.fee}}
|
|
101
|
-
</td>
|
|
102
|
-
</tr>
|
|
103
|
-
</table>
|
|
104
|
-
</div>
|
|
105
|
-
</template>
|
|
106
|
-
|
|
107
|
-
<script>
|
|
108
|
-
import {HttpResetClass, PagedList} from 'vue-client'
|
|
109
|
-
|
|
110
|
-
export default {
|
|
111
|
-
title: '操作查询',
|
|
112
|
-
data () {
|
|
113
|
-
return {
|
|
114
|
-
condition: '1=1',
|
|
115
|
-
model: new PagedList('rs/sql/sale_RecordQuery', 20, {}, {
|
|
116
|
-
fee: 0,
|
|
117
|
-
gas: 0
|
|
118
|
-
}),
|
|
119
|
-
isstates: this.$appdata.getParam('是否有效') ? [{
|
|
120
|
-
label: '全部',
|
|
121
|
-
value: ''
|
|
122
|
-
}, ...this.$appdata.getParam('是否有效')] : [],
|
|
123
|
-
// 控制单选
|
|
124
|
-
radio: [],
|
|
125
|
-
// 选中的页
|
|
126
|
-
all: [],
|
|
127
|
-
// row数据
|
|
128
|
-
rowsdata: [],
|
|
129
|
-
fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_address': '地址', 'f_card_id': '卡号', 'fee': '金额', 'gas': '气量', 'type': '类型', 'f_operator': '操作员', 'f_operate_date': '操作时间'},
|
|
130
|
-
defaultfield: [
|
|
131
|
-
'f_userinfo_code', 'f_user_name', 'fee', 'gas', 'type', 'f_operate_date'
|
|
132
|
-
],
|
|
133
|
-
printModel: {
|
|
134
|
-
rows: []
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
props: ['row'],
|
|
139
|
-
ready () {
|
|
140
|
-
this.$refs.paged.$refs.criteria.model.f_state = ['有效']
|
|
141
|
-
this.$refs.paged.$refs.criteria.search()
|
|
142
|
-
},
|
|
143
|
-
methods: {
|
|
144
|
-
async search () {
|
|
145
|
-
this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
|
|
146
|
-
this.model.search(this.condition, this.model)
|
|
147
|
-
let http = new HttpResetClass()
|
|
148
|
-
let res = await http.load('POST', 'rs/sql/sale_RecordQuery', {
|
|
149
|
-
data: {
|
|
150
|
-
condition: this.condition
|
|
151
|
-
}
|
|
152
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
153
|
-
this.printModel.rows = res.data
|
|
154
|
-
},
|
|
155
|
-
// 多选框初始化
|
|
156
|
-
selectInit () {
|
|
157
|
-
this.rowsdata = []
|
|
158
|
-
this.all = []
|
|
159
|
-
this.radio = []
|
|
160
|
-
},
|
|
161
|
-
print () {
|
|
162
|
-
this.selectInit()
|
|
163
|
-
},
|
|
164
|
-
select () {
|
|
165
|
-
let index = this.model.pageIndex - 1
|
|
166
|
-
if (!this.radio[index]) {
|
|
167
|
-
this.radio.$set(index, [])
|
|
168
|
-
}
|
|
169
|
-
if (this.all[index]) {
|
|
170
|
-
// 数据
|
|
171
|
-
this.rowsdata[index] = Object.assign([], this.model.rows)
|
|
172
|
-
// 勾选
|
|
173
|
-
for (var i = 0; i < this.model.rows.length; i++) {
|
|
174
|
-
this.radio[index].$set(i, true)
|
|
175
|
-
}
|
|
176
|
-
} else {
|
|
177
|
-
// 数据
|
|
178
|
-
this.rowsdata[index] = []
|
|
179
|
-
// 不勾选
|
|
180
|
-
for (var i = 0; i < this.model.rows.length; i++) {
|
|
181
|
-
this.radio[index].$set(i, false)
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
let z = 0
|
|
185
|
-
this.printModel.rows = []
|
|
186
|
-
for (let i = 0; i < this.all.length; i++) {
|
|
187
|
-
for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
|
|
188
|
-
if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
|
|
189
|
-
this.printModel.rows[z++] = this.rowsdata[i][j]
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
selectOne (event, row, i) {
|
|
195
|
-
let index = this.model.pageIndex - 1
|
|
196
|
-
if (!this.rowsdata[index]) {
|
|
197
|
-
this.rowsdata[index] = []
|
|
198
|
-
}
|
|
199
|
-
if (!this.radio[index]) {
|
|
200
|
-
this.radio.$set(index, [])
|
|
201
|
-
}
|
|
202
|
-
if (event.target.checked) {
|
|
203
|
-
// 数据
|
|
204
|
-
this.rowsdata[index][i] = row
|
|
205
|
-
// 勾选
|
|
206
|
-
this.radio[index].$set(i, true)
|
|
207
|
-
// 判断是否全部选中
|
|
208
|
-
var allState = true
|
|
209
|
-
if (this.model.rows.length != this.radio[index].length) {
|
|
210
|
-
allState = false
|
|
211
|
-
}
|
|
212
|
-
for (var state of this.radio[index]) {
|
|
213
|
-
if (!state) {
|
|
214
|
-
allState = false
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
this.all.$set(index, allState)
|
|
218
|
-
} else {
|
|
219
|
-
// 数据
|
|
220
|
-
this.rowsdata[index][i] = []
|
|
221
|
-
// 不勾选
|
|
222
|
-
this.radio[index].$set(i, false)
|
|
223
|
-
// 任意取消一个则全选状态设为false
|
|
224
|
-
this.all.$set(index, false)
|
|
225
|
-
}
|
|
226
|
-
let z = 0
|
|
227
|
-
this.printModel.rows = []
|
|
228
|
-
for (let i = 0; i < this.all.length; i++) {
|
|
229
|
-
for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
|
|
230
|
-
if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
|
|
231
|
-
this.printModel.rows[z++] = this.rowsdata[i][j]
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
computed: {
|
|
238
|
-
ischecked () {
|
|
239
|
-
return function (index, i) {
|
|
240
|
-
if (!this.radio[index]) {
|
|
241
|
-
return false
|
|
242
|
-
}
|
|
243
|
-
return this.radio[index][i]
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
</script>
|
|
249
|
-
|
|
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
|
+
|
|
7
|
+
<div class="form-horizontal select-overspread container-fluid auto " novalidate partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
|
|
10
|
+
<div class="col-sm-2 form-group">
|
|
11
|
+
<label class="font_normal_body">开始时间</label>
|
|
12
|
+
<datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_start_date"
|
|
13
|
+
class="datepicker"
|
|
14
|
+
condition="f_operate_date >= '{} 00:00:00' "
|
|
15
|
+
placeholder="起始时间"
|
|
16
|
+
style="width:60%"
|
|
17
|
+
v-model="model.f_start_date"
|
|
18
|
+
></datepicker>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group" >
|
|
21
|
+
<label class="font_normal_body" >结束时间</label>
|
|
22
|
+
<datepicker :format="'yyyy-MM-dd'" :value.sync="model.f_end_date"
|
|
23
|
+
class="datepicker"
|
|
24
|
+
condition="f_operate_date <= '{} 23:59:59' "
|
|
25
|
+
placeholder="结束时间"
|
|
26
|
+
style="width:60%"
|
|
27
|
+
v-model="model.f_end_date"
|
|
28
|
+
></datepicker>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col-sm-2 form-group">
|
|
31
|
+
<label class="font_normal_body">是否有效</label>
|
|
32
|
+
<v-select :value.sync="model.f_state" v-model='model.f_state'
|
|
33
|
+
style="width:60%"
|
|
34
|
+
:options='$parent.$parent.isstates' placeholder='是否有效'
|
|
35
|
+
close-on-select
|
|
36
|
+
condition="f_state = '{}'"></v-select>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<div style="float: right">
|
|
41
|
+
<button @click="search()" class="button_search" style="margin-right: 10px" v-el:cba>查询</button>
|
|
42
|
+
<print-data :defaultfield="$parent.$parent.defaultfield" :field="$parent.$parent.fields" :printview="true" :is-selected="true" :model="$parent.$parent.model"
|
|
43
|
+
@print-close="$parent.$parent.print()" @print-data="$parent.$parent.print()" print-name="购气流水"></print-data>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
</div>
|
|
48
|
+
</criteria>
|
|
49
|
+
<data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
|
|
50
|
+
<template partial='head'>
|
|
51
|
+
<tr>
|
|
52
|
+
<th><nobr>用户编号</nobr></th>
|
|
53
|
+
<th><nobr>姓名</nobr></th>
|
|
54
|
+
<th><nobr>住址</nobr></th>
|
|
55
|
+
<th><nobr>卡号</nobr></th>
|
|
56
|
+
<th><nobr>气量</nobr></th>
|
|
57
|
+
<th><nobr>应交</nobr></th>
|
|
58
|
+
<th><nobr>上期结余</nobr></th>
|
|
59
|
+
<th><nobr>收款</nobr></th>
|
|
60
|
+
<th><nobr>本期结余</nobr></th>
|
|
61
|
+
<th><nobr>操作类型</nobr></th>
|
|
62
|
+
<th><nobr>操作员 </nobr></th>
|
|
63
|
+
<th><nobr>操作时间 </nobr></th>
|
|
64
|
+
<th><nobr>状态 </nobr></th>
|
|
65
|
+
<th><nobr>备注</nobr></th>
|
|
66
|
+
</tr>
|
|
67
|
+
</template>
|
|
68
|
+
<template partial='body' partial='list' v-ref:grid>
|
|
69
|
+
<tr >
|
|
70
|
+
<td style="text-align:center">{{row.f_userinfo_code}}</td>
|
|
71
|
+
<td style="text-align:center">{{row.f_user_name}}</td>
|
|
72
|
+
<td style="text-align:center">{{row.f_address}}</td>
|
|
73
|
+
<td style="text-align:center">{{row.f_card_id}}</td>
|
|
74
|
+
<td style="text-align:center">{{row.gas}}</td>
|
|
75
|
+
<td style="text-align:center">{{row.fee}}</td>
|
|
76
|
+
<td style="text-align:center;white-space:nowrap;">{{row.f_balance}}</td>
|
|
77
|
+
<td style="text-align:center">{{row.f_collection}}</td>
|
|
78
|
+
<td style="text-align:center;white-space:nowrap;">{{row.f_curbalance}}</td>
|
|
79
|
+
<td style="text-align:center">{{row.type}}</td>
|
|
80
|
+
<td style="text-align:center">{{row.f_operator}}</td>
|
|
81
|
+
<td style="text-align:center">{{row.f_operate_date}}</td>
|
|
82
|
+
<td style="text-align:center">{{row.f_state}}</td>
|
|
83
|
+
<td style="text-align:center">{{row.note}}</td>
|
|
84
|
+
</tr>
|
|
85
|
+
</template>
|
|
86
|
+
<template partial='foot'></template>
|
|
87
|
+
</data-grid>
|
|
88
|
+
</criteria-paged>
|
|
89
|
+
</div>
|
|
90
|
+
<table class="table-hover">
|
|
91
|
+
<tr class="table-bordered" style="position: relative">
|
|
92
|
+
<td
|
|
93
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
94
|
+
汇总信息
|
|
95
|
+
</td>
|
|
96
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
97
|
+
气量合计: {{model.sums.gas}}
|
|
98
|
+
</td>
|
|
99
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
|
|
100
|
+
金额合计: {{model.sums.fee}}
|
|
101
|
+
</td>
|
|
102
|
+
</tr>
|
|
103
|
+
</table>
|
|
104
|
+
</div>
|
|
105
|
+
</template>
|
|
106
|
+
|
|
107
|
+
<script>
|
|
108
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
109
|
+
|
|
110
|
+
export default {
|
|
111
|
+
title: '操作查询',
|
|
112
|
+
data () {
|
|
113
|
+
return {
|
|
114
|
+
condition: '1=1',
|
|
115
|
+
model: new PagedList('rs/sql/sale_RecordQuery', 20, {}, {
|
|
116
|
+
fee: 0,
|
|
117
|
+
gas: 0
|
|
118
|
+
}),
|
|
119
|
+
isstates: this.$appdata.getParam('是否有效') ? [{
|
|
120
|
+
label: '全部',
|
|
121
|
+
value: ''
|
|
122
|
+
}, ...this.$appdata.getParam('是否有效')] : [],
|
|
123
|
+
// 控制单选
|
|
124
|
+
radio: [],
|
|
125
|
+
// 选中的页
|
|
126
|
+
all: [],
|
|
127
|
+
// row数据
|
|
128
|
+
rowsdata: [],
|
|
129
|
+
fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_address': '地址', 'f_card_id': '卡号', 'fee': '金额', 'gas': '气量', 'type': '类型', 'f_operator': '操作员', 'f_operate_date': '操作时间'},
|
|
130
|
+
defaultfield: [
|
|
131
|
+
'f_userinfo_code', 'f_user_name', 'fee', 'gas', 'type', 'f_operate_date'
|
|
132
|
+
],
|
|
133
|
+
printModel: {
|
|
134
|
+
rows: []
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
props: ['row'],
|
|
139
|
+
ready () {
|
|
140
|
+
this.$refs.paged.$refs.criteria.model.f_state = ['有效']
|
|
141
|
+
this.$refs.paged.$refs.criteria.search()
|
|
142
|
+
},
|
|
143
|
+
methods: {
|
|
144
|
+
async search () {
|
|
145
|
+
this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}' `
|
|
146
|
+
this.model.search(this.condition, this.model)
|
|
147
|
+
let http = new HttpResetClass()
|
|
148
|
+
let res = await http.load('POST', 'rs/sql/sale_RecordQuery', {
|
|
149
|
+
data: {
|
|
150
|
+
condition: this.condition
|
|
151
|
+
}
|
|
152
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
153
|
+
this.printModel.rows = res.data
|
|
154
|
+
},
|
|
155
|
+
// 多选框初始化
|
|
156
|
+
selectInit () {
|
|
157
|
+
this.rowsdata = []
|
|
158
|
+
this.all = []
|
|
159
|
+
this.radio = []
|
|
160
|
+
},
|
|
161
|
+
print () {
|
|
162
|
+
this.selectInit()
|
|
163
|
+
},
|
|
164
|
+
select () {
|
|
165
|
+
let index = this.model.pageIndex - 1
|
|
166
|
+
if (!this.radio[index]) {
|
|
167
|
+
this.radio.$set(index, [])
|
|
168
|
+
}
|
|
169
|
+
if (this.all[index]) {
|
|
170
|
+
// 数据
|
|
171
|
+
this.rowsdata[index] = Object.assign([], this.model.rows)
|
|
172
|
+
// 勾选
|
|
173
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
174
|
+
this.radio[index].$set(i, true)
|
|
175
|
+
}
|
|
176
|
+
} else {
|
|
177
|
+
// 数据
|
|
178
|
+
this.rowsdata[index] = []
|
|
179
|
+
// 不勾选
|
|
180
|
+
for (var i = 0; i < this.model.rows.length; i++) {
|
|
181
|
+
this.radio[index].$set(i, false)
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
let z = 0
|
|
185
|
+
this.printModel.rows = []
|
|
186
|
+
for (let i = 0; i < this.all.length; i++) {
|
|
187
|
+
for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
|
|
188
|
+
if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
|
|
189
|
+
this.printModel.rows[z++] = this.rowsdata[i][j]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
selectOne (event, row, i) {
|
|
195
|
+
let index = this.model.pageIndex - 1
|
|
196
|
+
if (!this.rowsdata[index]) {
|
|
197
|
+
this.rowsdata[index] = []
|
|
198
|
+
}
|
|
199
|
+
if (!this.radio[index]) {
|
|
200
|
+
this.radio.$set(index, [])
|
|
201
|
+
}
|
|
202
|
+
if (event.target.checked) {
|
|
203
|
+
// 数据
|
|
204
|
+
this.rowsdata[index][i] = row
|
|
205
|
+
// 勾选
|
|
206
|
+
this.radio[index].$set(i, true)
|
|
207
|
+
// 判断是否全部选中
|
|
208
|
+
var allState = true
|
|
209
|
+
if (this.model.rows.length != this.radio[index].length) {
|
|
210
|
+
allState = false
|
|
211
|
+
}
|
|
212
|
+
for (var state of this.radio[index]) {
|
|
213
|
+
if (!state) {
|
|
214
|
+
allState = false
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
this.all.$set(index, allState)
|
|
218
|
+
} else {
|
|
219
|
+
// 数据
|
|
220
|
+
this.rowsdata[index][i] = []
|
|
221
|
+
// 不勾选
|
|
222
|
+
this.radio[index].$set(i, false)
|
|
223
|
+
// 任意取消一个则全选状态设为false
|
|
224
|
+
this.all.$set(index, false)
|
|
225
|
+
}
|
|
226
|
+
let z = 0
|
|
227
|
+
this.printModel.rows = []
|
|
228
|
+
for (let i = 0; i < this.all.length; i++) {
|
|
229
|
+
for (let j = 0; this.rowsdata[i] && j < this.rowsdata[i].length; j++) {
|
|
230
|
+
if (this.rowsdata[i][j] && this.rowsdata[i][j].f_user_id) {
|
|
231
|
+
this.printModel.rows[z++] = this.rowsdata[i][j]
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
computed: {
|
|
238
|
+
ischecked () {
|
|
239
|
+
return function (index, i) {
|
|
240
|
+
if (!this.radio[index]) {
|
|
241
|
+
return false
|
|
242
|
+
}
|
|
243
|
+
return this.radio[index][i]
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
</script>
|
|
249
|
+
|