sale-client 4.2.142 → 4.2.144
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/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/.project +6 -0
- package/build/dev-server.js +27 -19
- package/hs_err_pid255736.log +796 -0
- package/package.json +1 -1
- package/src/components/FilesManage/addressts/FileUserFilests.vue +671 -0
- package/src/components/FilesManage/ncUserinfoList.vue +315 -0
- package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +107 -0
- package/src/components/SendCard/SendCardData.vue +208 -0
- package/src/components/accounts/accountAdd.vue +276 -0
- package/src/components/accounts/accountsList.vue +183 -0
- package/src/components/accounts/accountsManage.vue +87 -0
- package/src/components/common/chargeinfo/chargeinfo.vue +55 -0
- package/src/components/common/userinfo_detail/config/exportConfig.js +85 -0
- package/src/components/common/userinfo_detail/ic_detail/OtherChargeQueryUser.vue +1 -1
- package/src/components/ncarchives/ncArchivesAdd.vue +468 -0
- package/src/components/ncarchives/ncArchivesList.vue +159 -0
- package/src/components/ncarchives/ncUserfilesList.vue +373 -0
- package/src/components/ncarchives/ncarchivesmanage.vue +80 -0
- package/src/components/revenue/IOTArrears/arrears.vue +323 -0
- package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +369 -0
- package/src/components/revenue/base/CardServer/ReadCard.vue +98 -98
- package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +59 -0
- package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +59 -0
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +73 -0
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +73 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +199 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +24 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +24 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +185 -0
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +185 -0
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +356 -0
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +148 -0
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +136 -0
- package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +65 -0
- package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +483 -0
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +279 -0
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +265 -0
- package/src/components/thirdapply/thirdAdd.vue +289 -0
- package/src/components/thirdapply/thirdList.vue +162 -0
- package/src/components/thirdapply/thirdManage.vue +74 -0
- package/src/components/webMeter/InstructQuery.vue +414 -0
- package/src/components/webMeter/ParamSet/ParamSet.vue +556 -0
- package/src/components/webMeter/ParamSet/ParamSetForm.vue +296 -0
- package/src/components/webMeter/WebUserHand.vue +483 -0
- package/src/components/webMeter/instructionView/NewQueryInstruct.vue +509 -0
- package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +48 -0
- package/src/components/webMeter/webManage/NewMeterList.vue +461 -0
- package/src/filiale/yuncheng/ChangeMeter.vue +1149 -1149
- package/src/filiale/yuncheng/FileManageService.js +469 -469
- package/src/filiale/yuncheng/ParamSetForm.vue +55 -13
- package/src/main.js +1 -1
- package/src/plugins/FileManageServicets.js +214 -0
- package/src/plugins/GetImg.js +53 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div class="basic-main">
|
|
4
|
+
<div class="flex" v-if="!listpage">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
7
|
+
<!-- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>-->
|
|
8
|
+
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
9
|
+
<div class="row">
|
|
10
|
+
<div class="col-sm-2 form-group">
|
|
11
|
+
<label class="font_normal_body" >组织机构</label>
|
|
12
|
+
<res-select
|
|
13
|
+
:initresid='$parent.$parent.curorgid'
|
|
14
|
+
@res-select="$parent.$parent.getorg"
|
|
15
|
+
is-mul="false"
|
|
16
|
+
restype='organization'>
|
|
17
|
+
</res-select>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-2 form-group">
|
|
20
|
+
<label class="font_normal_body">客户编号</label>
|
|
21
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" style="width:60%"
|
|
22
|
+
condition="f_userinfo_code like '{}%'" placeholder="客户编号"
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<div class="col-sm-4 form-group">
|
|
28
|
+
<label class="font_normal_body">客户地址</label>
|
|
29
|
+
<input type="text" class="input_search"
|
|
30
|
+
v-model="model.f_name" style="width:80%"
|
|
31
|
+
condition="f_address like '%{}%'" placeholder="客户地址"
|
|
32
|
+
/>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div style="float:right">
|
|
36
|
+
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
37
|
+
<button class="button_search button_spacing" @click="clear()" >清空</button>
|
|
38
|
+
<!-- <button class="button_search button_spacing" @click="$parent.$parent.SaveAsFileAll('daochu')" >导出</button>-->
|
|
39
|
+
<export-excel :data="$parent.$parent.getcondition" :defaultselect="$parent.$parent.defaultfield"
|
|
40
|
+
:field="$parent.$parent.getfield"
|
|
41
|
+
sqlurl="rs/logic/saleExport" sql-name="iotArrearsInfo" template-name='物联网表欠费用户信息'
|
|
42
|
+
:choose-col="true"></export-excel>
|
|
43
|
+
<!-- <button class="button_export" @click="$parent.$parent.importFile()">导入</button>-->
|
|
44
|
+
<div
|
|
45
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
46
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
50
|
+
<div class="col-sm-2 form-group">
|
|
51
|
+
<label class="font_normal_body">客户名称</label>
|
|
52
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_user_name" style="width:60%"
|
|
53
|
+
condition="f_user_name like '%{}%'" placeholder="客户名称"
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="col-sm-2 form-group">
|
|
57
|
+
<label class="font_normal_body">气表品牌</label>
|
|
58
|
+
<v-select :value.sync="model.f_meter_brand"
|
|
59
|
+
v-model="model.f_meter_brand"
|
|
60
|
+
:options='$parent.$parent.meterbrands' placeholder='请选择'
|
|
61
|
+
condition="f_meter_brand = '{}'"
|
|
62
|
+
close-on-select></v-select>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="col-sm-2 form-group">
|
|
65
|
+
<label class="font_normal_body">客户类型</label>
|
|
66
|
+
<v-select :options='$parent.$parent.usertypes'
|
|
67
|
+
@change="$parent.$parent.userTypeChange"
|
|
68
|
+
:value.sync="model.f_user_type"
|
|
69
|
+
close-on-select condition="f_user_type = '{}'"
|
|
70
|
+
placeholder='用户类型'
|
|
71
|
+
style="width: 60%" v-model="model.f_user_type"></v-select>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-2 form-group">
|
|
74
|
+
<label class="font_normal_body">用气性质</label>
|
|
75
|
+
<v-select :options='$parent.$parent.gasproperties'
|
|
76
|
+
:value.sync="model.f_gasproperties"
|
|
77
|
+
close-on-select
|
|
78
|
+
condition="f_gasproperties = '{}'"
|
|
79
|
+
placeholder='用气性质'
|
|
80
|
+
style="width: 60%"
|
|
81
|
+
v-model="model.f_gasproperties">
|
|
82
|
+
</v-select>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="col-sm-3 form-group">
|
|
85
|
+
<label class="font_normal_body">表累购金额</label>
|
|
86
|
+
<v-select :options='$parent.$parent.totalmoneystate'
|
|
87
|
+
:value.sync="model.f_total_state"
|
|
88
|
+
close-on-select condition="f_total_fee {} allmoney"
|
|
89
|
+
placeholder='全部' :width="'20%'"
|
|
90
|
+
@change="$parent.$parent.changecolor(1,model.f_total_state)"
|
|
91
|
+
style="margin-right: 8px;" v-model="model.f_total_state"></v-select>
|
|
92
|
+
<label class="font_normal_body">表累购金额(记录合计)</label>
|
|
93
|
+
</div>
|
|
94
|
+
<div class="col-sm-3 form-group">
|
|
95
|
+
<label class="font_normal_body">表累购金额</label>
|
|
96
|
+
<v-select :options='$parent.$parent.totalmoneystate'
|
|
97
|
+
:value.sync="model.f_totaluse_state"
|
|
98
|
+
close-on-select condition="f_total_fee {} f_balance_amount+f_total_usegas_amount"
|
|
99
|
+
placeholder='全部'
|
|
100
|
+
:width="'20%'"
|
|
101
|
+
@change="$parent.$parent.changecolor(2,model.f_totaluse_state)"
|
|
102
|
+
style="margin-right: 8px;" v-model="model.f_totaluse_state"></v-select>
|
|
103
|
+
<label class="font_normal_body">剩余金额+累用金额</label>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="col-sm-4 form-group">
|
|
106
|
+
<label class="font_normal_body">表累购金额</label>
|
|
107
|
+
<v-select :options='$parent.$parent.totalmoneystate'
|
|
108
|
+
:value.sync="model.f_totalsy_state"
|
|
109
|
+
close-on-select condition="f_total_fee {} fillmoney+allmoney"
|
|
110
|
+
placeholder='全部'
|
|
111
|
+
:width="'20%'"
|
|
112
|
+
@change="$parent.$parent.changecolor(3,model.f_totalsy_state)"
|
|
113
|
+
style="margin-right: 8px;" v-model="model.f_totalsy_state"></v-select>
|
|
114
|
+
<label class="font_normal_body">补气金额(旧表)+表累购金额(记录合计)</label>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="col-sm-5 form-group">
|
|
117
|
+
<p style="font-weight:bold;font-size: 14px; color:darkred;margin-top: 19px;">说明:由于旧表存在老系统换表补费,补气金额(旧表)需要和表累购金额(记录合计)的和才能等于表累购金额</p>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</criteria>
|
|
123
|
+
<data-grid id="daochu" :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
124
|
+
<template partial='head'>
|
|
125
|
+
<tr>
|
|
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 :style="{background:($parent.$parent.$parent.showcolorstate=='1' || $parent.$parent.$parent.showcolorstate=='2' || $parent.$parent.$parent.showcolorstate=='3' ? '#ffc7ce!important':'')}">
|
|
138
|
+
<nobr>当前表累购金额</nobr></th>
|
|
139
|
+
<th :style="{background:($parent.$parent.$parent.showcolorstate=='3'? '#f1dec2!important':'')}">
|
|
140
|
+
<nobr>补气金额(旧表)</nobr>
|
|
141
|
+
</th>
|
|
142
|
+
<th :style="{background:($parent.$parent.$parent.showcolorstate=='1' || $parent.$parent.$parent.showcolorstate=='3' ? '#f1dec2!important':'')}">
|
|
143
|
+
<nobr>当前表累购金额(记录合计)</nobr></th>
|
|
144
|
+
<th :style="{background:($parent.$parent.$parent.showcolorstate=='2'? '#c6efce!important':'')}">
|
|
145
|
+
<nobr>累用金额</nobr></th>
|
|
146
|
+
<th :style="{background:($parent.$parent.$parent.showcolorstate=='2'? '#c6efce!important':'')}">
|
|
147
|
+
<nobr>剩余金额</nobr></th>
|
|
148
|
+
<th><nobr>最后上报时间</nobr></th>
|
|
149
|
+
<th><nobr>最后结算时间</nobr></th>
|
|
150
|
+
<th><nobr>所属组织</nobr></th>
|
|
151
|
+
</tr>
|
|
152
|
+
</template>
|
|
153
|
+
<template partial='body'>
|
|
154
|
+
<tr>
|
|
155
|
+
<td style="text-align:center">
|
|
156
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span>
|
|
157
|
+
</td>
|
|
158
|
+
<td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
|
|
159
|
+
<td style="text-align:center"><nobr>{{row.f_user_state}}</nobr>
|
|
160
|
+
<td style="text-align:center"><nobr>{{row.f_meternumber}}</nobr></td>
|
|
161
|
+
<td style="text-align:center"><nobr>{{row.f_user_type}}</nobr></td>
|
|
162
|
+
<td style="text-align:center"><nobr>{{row.f_gasproperties}}</nobr></td>
|
|
163
|
+
<td style="text-align:center"><nobr>{{row.f_meter_brand}}</nobr></td>
|
|
164
|
+
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
165
|
+
<td style="text-align:center"><nobr>{{row.f_meter_classify}}</nobr></td>
|
|
166
|
+
<td style="text-align:center"><nobr>{{row.f_table_state}}</nobr></td>
|
|
167
|
+
<td style="text-align:center"><nobr>{{row.f_meter_base}}</nobr></td>
|
|
168
|
+
<td style="text-align:center" :style="{background:($parent.$parent.$parent.showcolorstate=='1' || $parent.$parent.$parent.showcolorstate=='2' || $parent.$parent.$parent.showcolorstate=='3' ? '#ffc7ce!important':'')}" >
|
|
169
|
+
<nobr>{{row.f_total_fee}}</nobr></td>
|
|
170
|
+
<td style="text-align:center" :style="{background:($parent.$parent.$parent.showcolorstate=='3'? '#f1dec2!important':'')}">
|
|
171
|
+
<nobr>{{row.fillmoney}}</nobr></td>
|
|
172
|
+
<td style="text-align:center" :style="{background:($parent.$parent.$parent.showcolorstate=='1' || $parent.$parent.$parent.showcolorstate=='3' ? '#f1dec2!important':'')}">
|
|
173
|
+
<nobr>{{row.allmoney}}</nobr></td>
|
|
174
|
+
<td style="text-align:center" :style="{background:($parent.$parent.$parent.showcolorstate=='2'? '#c6efce!important':'')}" >
|
|
175
|
+
<nobr>{{row.f_total_usegas_amount}}</nobr></td>
|
|
176
|
+
<td style="text-align:center" :style="{background:($parent.$parent.$parent.showcolorstate=='2'? '#c6efce!important':'')}" >
|
|
177
|
+
<nobr>{{row.f_balance_amount}}</nobr></td>
|
|
178
|
+
<td style="text-align:center"><nobr>{{row.f_meteread_date}}</nobr></td>
|
|
179
|
+
<td style="text-align:center"><nobr>{{row.f_hand_date}}</nobr></td>
|
|
180
|
+
<td style="text-align:center"><nobr>{{row.name}}</nobr></td>
|
|
181
|
+
</tr>
|
|
182
|
+
</template>
|
|
183
|
+
<template partial='foot'></template>
|
|
184
|
+
</data-grid>
|
|
185
|
+
</criteria-paged>
|
|
186
|
+
</div>
|
|
187
|
+
<div v-if="listpage">
|
|
188
|
+
<user-info-detail-manage :f_userinfo_id="rowdata.f_userinfo_id" @cancel-main="cancel"></user-info-detail-manage>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
<modal :show.sync="fileshow" width="500px" title="文件导入" v-ref:modal large backdrop="false">
|
|
195
|
+
<article slot="modal-body" class="modal-body">
|
|
196
|
+
<file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
|
|
197
|
+
action="rs/file/uploadFile" tagname="导入发票" v-ref:file :headers="headers"></file-upload>
|
|
198
|
+
</article>
|
|
199
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
200
|
+
</footer>
|
|
201
|
+
</modal>
|
|
202
|
+
|
|
203
|
+
</template>
|
|
204
|
+
|
|
205
|
+
<script>
|
|
206
|
+
import { PagedList } from 'vue-client'
|
|
207
|
+
import {HttpResetClass} from 'vue-client'
|
|
208
|
+
import Vue from "vue";
|
|
209
|
+
import getLodop from "../../../plugins/LodopFuncs";
|
|
210
|
+
import exportConfig from "../../common/userinfo_detail/config/exportConfig"
|
|
211
|
+
let getGasbrandGen = async function (self) {
|
|
212
|
+
await self.$LoadParams.loadParam()
|
|
213
|
+
self.initQueryParam()
|
|
214
|
+
}
|
|
215
|
+
// self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
216
|
+
export default {
|
|
217
|
+
data () {
|
|
218
|
+
return {
|
|
219
|
+
defaultfield: [],
|
|
220
|
+
config: {
|
|
221
|
+
defaultPrint: ['f_user_name','f_meter_brand','f_user_type']
|
|
222
|
+
},
|
|
223
|
+
model: new PagedList('rs/sql/iotrechargeaudit',20),
|
|
224
|
+
fileshow: false,
|
|
225
|
+
condition: '1=1',
|
|
226
|
+
moneystate: [{label: '欠费', value: '<'}, {label: '正常', value: '>='}],
|
|
227
|
+
totalmoneystate: [{label:'全部',value:''},{label: '相等', value: '='}, {label: '不等', value: '!='}],
|
|
228
|
+
// f_usertype:[{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
|
|
229
|
+
// gasproperties:[],
|
|
230
|
+
meterBrand:[],
|
|
231
|
+
meterbrands: [],
|
|
232
|
+
curorgid: [this.$login.f.orgid],
|
|
233
|
+
radio: [],
|
|
234
|
+
//选中的页
|
|
235
|
+
all: [],
|
|
236
|
+
//row数据
|
|
237
|
+
rowsdata: [],
|
|
238
|
+
printModel: {
|
|
239
|
+
rows: []
|
|
240
|
+
},
|
|
241
|
+
listpage:false,
|
|
242
|
+
criteriaShow:false,
|
|
243
|
+
iscomplanAllInfo:false,
|
|
244
|
+
rowdata:[],
|
|
245
|
+
gasproperties: this.$appdata.getParam('用气性质') ? [{
|
|
246
|
+
label: '全部',
|
|
247
|
+
value: ''
|
|
248
|
+
}, ...this.$appdata.getParam('用气性质')] : [],
|
|
249
|
+
showcolorstate:0
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
title: '物联网金额监控',
|
|
253
|
+
ready(){
|
|
254
|
+
this.search()
|
|
255
|
+
for(var item in exportConfig.iotrechargeaudit){
|
|
256
|
+
this.defaultfield.push(item)
|
|
257
|
+
}
|
|
258
|
+
getGasbrandGen(this)
|
|
259
|
+
},
|
|
260
|
+
computed : {
|
|
261
|
+
getcondition(){
|
|
262
|
+
return {
|
|
263
|
+
condition: `${this.$refs.paged.$refs.cri.condition}`
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
getfield() {
|
|
267
|
+
return exportConfig.iotrechargeaudit
|
|
268
|
+
},
|
|
269
|
+
usertypes() {
|
|
270
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('客户类型')]
|
|
271
|
+
},
|
|
272
|
+
metertypes() {
|
|
273
|
+
return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
|
|
274
|
+
},
|
|
275
|
+
tableState () {
|
|
276
|
+
return [{label: '全部', value: ''}, ...this.$appdata.getParam('表具状态')]
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
events : {
|
|
280
|
+
|
|
281
|
+
},
|
|
282
|
+
methods: {
|
|
283
|
+
changecolor(number,val){
|
|
284
|
+
if(number != this.showcolorstate && (val == null || val == '')){
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
if(number == 3){
|
|
288
|
+
this.$refs.paged.$refs.cri.model.f_total_state = ''
|
|
289
|
+
this.$refs.paged.$refs.cri.model.f_totaluse_state = ''
|
|
290
|
+
}
|
|
291
|
+
if(number == 2){
|
|
292
|
+
this.$refs.paged.$refs.cri.model.f_totalsy_state=''
|
|
293
|
+
this.$refs.paged.$refs.cri.model.f_total_state = ''
|
|
294
|
+
}
|
|
295
|
+
if(number == 1){
|
|
296
|
+
this.$refs.paged.$refs.cri.model.f_totaluse_state = ''
|
|
297
|
+
this.$refs.paged.$refs.cri.model.f_totalsy_state = ''
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
this.showcolorstate = 0;
|
|
301
|
+
if(val == null || val =='' ){
|
|
302
|
+
this.showcolorstate = 0
|
|
303
|
+
}else{
|
|
304
|
+
this.showcolorstate = number
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
hidden(){
|
|
308
|
+
this.criteriaShow = !this.criteriaShow
|
|
309
|
+
},
|
|
310
|
+
cancel(){
|
|
311
|
+
this.listpage=false
|
|
312
|
+
},
|
|
313
|
+
dealmsg(val) {
|
|
314
|
+
console.log("=---------------dealmsg--------------")
|
|
315
|
+
this.listpage=true
|
|
316
|
+
this.rowdata=val
|
|
317
|
+
console.log(this.rowdata.f_userinfo_id)
|
|
318
|
+
val.model = this.model.model
|
|
319
|
+
// this('deal-msg', val)
|
|
320
|
+
},
|
|
321
|
+
search () {
|
|
322
|
+
this.$refs.paged.$refs.cri.search()
|
|
323
|
+
},
|
|
324
|
+
userTypeChange () {
|
|
325
|
+
this.gasproperties=[]
|
|
326
|
+
if(this.$refs.paged.model.model !== null ) {
|
|
327
|
+
this.$refs.paged.model.model.f_gasproperties=''
|
|
328
|
+
|
|
329
|
+
console.log(this.$refs.paged.model.model.f_user_type[0])
|
|
330
|
+
this.gasproperties = this.$appdata.getParam(this.$refs.paged.model.model.f_user_type[0])
|
|
331
|
+
// this.gasproperties.push({label: '全部', value: ''})
|
|
332
|
+
}
|
|
333
|
+
else{
|
|
334
|
+
this.gasproperties =[{label: '全部', value: ''}]
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
async selfSearch (args) {
|
|
338
|
+
if (!this.f_orgid) {
|
|
339
|
+
this.getorg([this.$login.f.orgid])
|
|
340
|
+
}
|
|
341
|
+
console.log('查询。。。', this.f_orgid)
|
|
342
|
+
args.condition = `${args.condition} and f_filialeid in ${this.f_orgid}`
|
|
343
|
+
this.model.search(args.condition, args.model)
|
|
344
|
+
},
|
|
345
|
+
//清空
|
|
346
|
+
clear(){
|
|
347
|
+
this.$refs.paged.$refs.cri.model = {}
|
|
348
|
+
},
|
|
349
|
+
getorg (val) {
|
|
350
|
+
this.f_orgid = this.$login.convertToIn(val)
|
|
351
|
+
this.f_filialeids = val[0]
|
|
352
|
+
},
|
|
353
|
+
initQueryParam () {
|
|
354
|
+
let arr = []
|
|
355
|
+
this.$GetSaleParam.getGasbrand().forEach((item) => {
|
|
356
|
+
let temp = {}
|
|
357
|
+
if(item.value.f_meter_type==='物联网表'){
|
|
358
|
+
temp.label = item.label
|
|
359
|
+
temp.value = item.value.f_meter_brand
|
|
360
|
+
arr.push(temp )
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
})
|
|
364
|
+
this.meterbrands = [{label: '全部', value: ''}, ...arr]
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
}
|
|
369
|
+
</script>
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<!-- <button class="btn btn-success width-60" @click='readCard()' :disabled="hasCard.cardState === -1"> -->
|
|
3
|
-
<button class="button_search" @click='readCard()'>
|
|
4
|
-
<!-- <span class="glyphicon glyphicon-credit-card"></span> -->
|
|
5
|
-
读卡
|
|
6
|
-
</button>
|
|
7
|
-
</template>
|
|
8
|
-
<script>
|
|
9
|
-
/**
|
|
10
|
-
*卡服务
|
|
11
|
-
*读卡
|
|
12
|
-
*/
|
|
13
|
-
import co from 'co'
|
|
14
|
-
// import cardListen from '../../plugins/CardListen'
|
|
15
|
-
// import CardService from '../../../plugins/CardService'
|
|
16
|
-
|
|
17
|
-
let readGen = function * (self, param) {
|
|
18
|
-
let hasCard = yield self.$resetpost('http://127.0.0.1:8003/HasCard', {}, {resolveMsg: null, rejectMsg: null}).catch((error) => {
|
|
19
|
-
if (error.status === 612) {
|
|
20
|
-
self.$showAlert('请检查读卡器是否启动!!', 'danger', 2000)
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
if (JSON.parse(hasCard.data).state !== 1) {
|
|
24
|
-
self.$showAlert('请检查卡是否插好!!', 'danger', 2000)
|
|
25
|
-
} else {
|
|
26
|
-
let data = {}
|
|
27
|
-
if (param) {
|
|
28
|
-
data.Factory = param
|
|
29
|
-
}
|
|
30
|
-
yield self.$resetpost('http://127.0.0.1:8003/ReadCard', data, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
31
|
-
console.log('返回卡信息')
|
|
32
|
-
self.cardInfo = res
|
|
33
|
-
res.data.Err ? self.$showAlert(res.data.Err, 'danger', 2000) : ''
|
|
34
|
-
if (res.data.Err === null && res.data.Exception) {
|
|
35
|
-
self.$showAlert(res.data.Exception, 'danger', 2000)
|
|
36
|
-
}
|
|
37
|
-
// 验证卡上信息和用户信息是否一致
|
|
38
|
-
if (param) {
|
|
39
|
-
console.log('读完卡之后核对', res.data, self.isSingle)
|
|
40
|
-
if (res.data.CardID != self.isSingle[0].f_card_id || res.data.Factory != self.isSingle[0].f_alias) {
|
|
41
|
-
self.$showAlert('此时的卡片信息和用户信息不匹配,请核实后在进行读卡', 'warning', 5000)
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
self.$dispatch('read-info', res)
|
|
47
|
-
}).catch((res) => {
|
|
48
|
-
self.$showAlert(res.data, 'danger', 2000)
|
|
49
|
-
})
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export default {
|
|
54
|
-
title: '读卡',
|
|
55
|
-
// data () {
|
|
56
|
-
// return {
|
|
57
|
-
// hasCard: cardListen
|
|
58
|
-
// }
|
|
59
|
-
// },
|
|
60
|
-
props: {
|
|
61
|
-
cardInfo: {
|
|
62
|
-
twoWay: true
|
|
63
|
-
},
|
|
64
|
-
isSingle: []
|
|
65
|
-
},
|
|
66
|
-
methods: {
|
|
67
|
-
readCard () {
|
|
68
|
-
console.log('查看是否只有单户', this.isSingle)
|
|
69
|
-
// if (this.isSingle) {
|
|
70
|
-
// let gen = readGen(this, this.isSingle.length == 1 ? this.isSingle[0].f_alias : null)
|
|
71
|
-
// return co(gen)
|
|
72
|
-
// } else {
|
|
73
|
-
let gen = readGen(this)
|
|
74
|
-
return co(gen)
|
|
75
|
-
// }
|
|
76
|
-
},
|
|
77
|
-
async readCard2 (param) {
|
|
78
|
-
// 这是二次掉卡服务,所以这里不做判卡处理
|
|
79
|
-
let data = {}
|
|
80
|
-
if (param) {
|
|
81
|
-
data.kmm = param
|
|
82
|
-
}
|
|
83
|
-
let res = await this.$resetpost('http://127.0.0.1:8003/ReadCard', data, {resolveMsg: null, rejectMsg: '获取卡信息出错!!'})
|
|
84
|
-
return res.data
|
|
85
|
-
},
|
|
86
|
-
// 读卡返回的 cardInfo.NewParam.error 为 0002 需要携带次数进行读卡操作
|
|
87
|
-
async readCard3 (cs) {
|
|
88
|
-
// 这是二次掉卡服务,所以这里不做判卡处理
|
|
89
|
-
let data = {}
|
|
90
|
-
if (cs) {
|
|
91
|
-
data.cs = cs
|
|
92
|
-
}
|
|
93
|
-
let res = await this.$resetpost('http://127.0.0.1:8003/ReadCard', data, {resolveMsg: null, rejectMsg: '获取卡信息出错!!'})
|
|
94
|
-
return res.data
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<!-- <button class="btn btn-success width-60" @click='readCard()' :disabled="hasCard.cardState === -1"> -->
|
|
3
|
+
<button class="button_search" @click='readCard()'>
|
|
4
|
+
<!-- <span class="glyphicon glyphicon-credit-card"></span> -->
|
|
5
|
+
读卡
|
|
6
|
+
</button>
|
|
7
|
+
</template>
|
|
8
|
+
<script>
|
|
9
|
+
/**
|
|
10
|
+
*卡服务
|
|
11
|
+
*读卡
|
|
12
|
+
*/
|
|
13
|
+
import co from 'co'
|
|
14
|
+
// import cardListen from '../../plugins/CardListen'
|
|
15
|
+
// import CardService from '../../../plugins/CardService'
|
|
16
|
+
|
|
17
|
+
let readGen = function * (self, param) {
|
|
18
|
+
let hasCard = yield self.$resetpost('http://127.0.0.1:8003/HasCard', {}, {resolveMsg: null, rejectMsg: null}).catch((error) => {
|
|
19
|
+
if (error.status === 612) {
|
|
20
|
+
self.$showAlert('请检查读卡器是否启动!!', 'danger', 2000)
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
if (JSON.parse(hasCard.data).state !== 1) {
|
|
24
|
+
self.$showAlert('请检查卡是否插好!!', 'danger', 2000)
|
|
25
|
+
} else {
|
|
26
|
+
let data = {}
|
|
27
|
+
if (param) {
|
|
28
|
+
data.Factory = param
|
|
29
|
+
}
|
|
30
|
+
yield self.$resetpost('http://127.0.0.1:8003/ReadCard', data, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
31
|
+
console.log('返回卡信息')
|
|
32
|
+
self.cardInfo = res
|
|
33
|
+
res.data.Err ? self.$showAlert(res.data.Err, 'danger', 2000) : ''
|
|
34
|
+
if (res.data.Err === null && res.data.Exception) {
|
|
35
|
+
self.$showAlert(res.data.Exception, 'danger', 2000)
|
|
36
|
+
}
|
|
37
|
+
// 验证卡上信息和用户信息是否一致
|
|
38
|
+
if (param) {
|
|
39
|
+
console.log('读完卡之后核对', res.data, self.isSingle)
|
|
40
|
+
if (res.data.CardID != self.isSingle[0].f_card_id || res.data.Factory != self.isSingle[0].f_alias) {
|
|
41
|
+
self.$showAlert('此时的卡片信息和用户信息不匹配,请核实后在进行读卡', 'warning', 5000)
|
|
42
|
+
return
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
self.$dispatch('read-info', res)
|
|
47
|
+
}).catch((res) => {
|
|
48
|
+
self.$showAlert(res.data, 'danger', 2000)
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export default {
|
|
54
|
+
title: '读卡',
|
|
55
|
+
// data () {
|
|
56
|
+
// return {
|
|
57
|
+
// hasCard: cardListen
|
|
58
|
+
// }
|
|
59
|
+
// },
|
|
60
|
+
props: {
|
|
61
|
+
cardInfo: {
|
|
62
|
+
twoWay: true
|
|
63
|
+
},
|
|
64
|
+
isSingle: []
|
|
65
|
+
},
|
|
66
|
+
methods: {
|
|
67
|
+
readCard () {
|
|
68
|
+
console.log('查看是否只有单户', this.isSingle)
|
|
69
|
+
// if (this.isSingle) {
|
|
70
|
+
// let gen = readGen(this, this.isSingle.length == 1 ? this.isSingle[0].f_alias : null)
|
|
71
|
+
// return co(gen)
|
|
72
|
+
// } else {
|
|
73
|
+
let gen = readGen(this)
|
|
74
|
+
return co(gen)
|
|
75
|
+
// }
|
|
76
|
+
},
|
|
77
|
+
async readCard2 (param) {
|
|
78
|
+
// 这是二次掉卡服务,所以这里不做判卡处理
|
|
79
|
+
let data = {}
|
|
80
|
+
if (param) {
|
|
81
|
+
data.kmm = param
|
|
82
|
+
}
|
|
83
|
+
let res = await this.$resetpost('http://127.0.0.1:8003/ReadCard', data, {resolveMsg: null, rejectMsg: '获取卡信息出错!!'})
|
|
84
|
+
return res.data
|
|
85
|
+
},
|
|
86
|
+
// 读卡返回的 cardInfo.NewParam.error 为 0002 需要携带次数进行读卡操作
|
|
87
|
+
async readCard3 (cs) {
|
|
88
|
+
// 这是二次掉卡服务,所以这里不做判卡处理
|
|
89
|
+
let data = {}
|
|
90
|
+
if (cs) {
|
|
91
|
+
data.cs = cs
|
|
92
|
+
}
|
|
93
|
+
let res = await this.$resetpost('http://127.0.0.1:8003/ReadCard', data, {resolveMsg: null, rejectMsg: '获取卡信息出错!!'})
|
|
94
|
+
return res.data
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
</script>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<partial-view v-ref:pv>
|
|
4
|
+
<div class="row">
|
|
5
|
+
<label class = "col-sm-4">客户名称:</label>
|
|
6
|
+
<span class = "col-sm-6">{{model.f_user_name}}</span>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<label class = "col-sm-4">补费金额:</label>
|
|
10
|
+
<span class = "col-sm-2" style="text-align:left">{{model.f_preamount}}</span>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="row">
|
|
13
|
+
<label class = "col-sm-4">备注:</label>
|
|
14
|
+
<span class = "col-sm-8" style="text-align:left">{{model.f_comments}}</span>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="row">
|
|
17
|
+
<label class = "col-sm-4">操作人:</label>
|
|
18
|
+
<span class = "col-sm-8" style="text-align:left">{{model.f_operator}}</span>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="row">
|
|
21
|
+
<label class = "col-sm-4">操作时间:</label>
|
|
22
|
+
<span class = "col-sm-8" style="text-align:left">{{data.f_operate_date}}</span>
|
|
23
|
+
</div>
|
|
24
|
+
</partial-view>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
export default {
|
|
30
|
+
title: '超用收费详情',
|
|
31
|
+
props: ['data'],
|
|
32
|
+
data () {
|
|
33
|
+
return {
|
|
34
|
+
model: {}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
ready () {
|
|
38
|
+
let sql = 'singleTable_OrderBy'
|
|
39
|
+
let params = {
|
|
40
|
+
items: 'f_user_name, f_pregas, f_preamount, f_comments, f_operator, f_operate_date',
|
|
41
|
+
tablename: 't_sellinggas',
|
|
42
|
+
condition: 'id = ' + this.data.id,
|
|
43
|
+
orderitem: 'id'
|
|
44
|
+
}
|
|
45
|
+
this.$info(`加载数据中..., sql:${sql}`)
|
|
46
|
+
console.log("我走的这里啊")
|
|
47
|
+
this.$refs.pv.load('rs/logic/getOneData', {data: {sql: sql, params: params}}).then((a) => {
|
|
48
|
+
this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
|
|
49
|
+
this.model = a.data
|
|
50
|
+
}).catch((error) => {
|
|
51
|
+
if (error.status) {
|
|
52
|
+
this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
|
|
53
|
+
return
|
|
54
|
+
}
|
|
55
|
+
throw error
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
</script>
|