sale-client 3.6.550 → 3.6.551
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/package.json
CHANGED
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
// 对此数据进行验证
|
|
137
137
|
if (await this.validateRow(obj)) {
|
|
138
138
|
// 获取未写卡或者写卡失败记录
|
|
139
|
-
let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and (f_write_card = '未写卡' or
|
|
139
|
+
let getUnWriteSell = await this.$SqlService.singleTable('t_sellinggas', `f_state = '有效' and (f_write_card = '未写卡' or f_write_card = '写卡失败' ) and f_userfiles_id = '${obj.f_userfiles_id}'`)
|
|
140
140
|
console.log('获取未写卡记录', getUnWriteSell)
|
|
141
141
|
if (getUnWriteSell.data.length > 1) {
|
|
142
142
|
this.$showAlert('此卡已缴费多次未写卡。请核实后处理!!', 'warning', 5000)
|
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div @keyup.enter="search">
|
|
3
|
+
<partial-view v-ref:pv>
|
|
4
|
+
<criteria-paged :model="model" :pager="false" v-ref:paged>
|
|
5
|
+
<criteria @condition-changed='$parent.$parent.selfSearch' partial='criteria' v-ref:cri>
|
|
6
|
+
<div class="form-horizontal" novalidate partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="form-group col-sm-4">
|
|
9
|
+
<!-- <label>用户编号:</label> -->
|
|
10
|
+
<input class="input_search" condition="f_userinfo_code = '{}'" placeholder='客户编号' style="width: 80%"
|
|
11
|
+
type="text"
|
|
12
|
+
v-model="model.f_userinfo_code">
|
|
13
|
+
</div>
|
|
14
|
+
<div class="form-group col-sm-4" style="flex: 1;width: max-content">
|
|
15
|
+
<!-- <label>操作类型:</label> -->
|
|
16
|
+
<v-select :options='$parent.$parent.$parent.operationtypes'
|
|
17
|
+
|
|
18
|
+
:value.sync="model.f_operat_type"
|
|
19
|
+
:width="'100%'"
|
|
20
|
+
close-on-select
|
|
21
|
+
condition="f_operat_type = '{}'"
|
|
22
|
+
id="f_paytype"
|
|
23
|
+
placeholder='操作类型'
|
|
24
|
+
style="width: 100%"
|
|
25
|
+
v-model="model.f_operat_type"></v-select>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="form-group col-sm-2 button-range" style="padding-right: 10px">
|
|
28
|
+
<button @click="search()" class="button_search">查询</button>
|
|
29
|
+
<div
|
|
30
|
+
:class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
|
|
31
|
+
@click="$parent.$parent.$parent.criteriaShow=!$parent.$parent.$parent.criteriaShow" class="button_spacing" style="float: right"></div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="form-group col-sm-5" v-show="$parent.$parent.$parent.criteriaShow">
|
|
34
|
+
<!-- <label>用户编号:</label> -->
|
|
35
|
+
<input class="input_search" condition="r.f_operator like '%{}%'" placeholder='操作员' style="width: 80%"
|
|
36
|
+
type="text"
|
|
37
|
+
v-model="model.f_operator">
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<!-- <partial name="cardcriteria"></partial> -->
|
|
41
|
+
<!-- <div class="form-group">
|
|
42
|
+
<partial name="cardcriteria"></partial>
|
|
43
|
+
</div> -->
|
|
44
|
+
</div>
|
|
45
|
+
</criteria>
|
|
46
|
+
<div partial="list" style="overflow-y: scroll;height: 90%">
|
|
47
|
+
<accordion :one-at-atime="true" type="info" >
|
|
48
|
+
<panel :is-click="false" :is-open="true" type="info" v-for="row in model.rows" >
|
|
49
|
+
<span @click="$parent.$parent.$parent.selected(row)" class="panel-title row" slot="header"
|
|
50
|
+
style="cursor: pointer;">
|
|
51
|
+
<div class="col-sm-11">
|
|
52
|
+
<!-- <div class="row" v-if="row.f_state==='冲正' " style="color: red">-->
|
|
53
|
+
<!-- <strong :title="row.f_userinfo_code" class="col-sm-4" show-overflow-tooltip="true">{{row.f_userinfo_code.length>9?''+row.f_userinfo_code.substring(0,9)+'...':row.f_userinfo_code}}</strong>-->
|
|
54
|
+
<!-- <span class="col-sm-4">{{$parent.$parent.$parent.dateDes(row.f_operate_date)}}</span>-->
|
|
55
|
+
<!-- <span class="col-sm-4">{{row.type}}</span>-->
|
|
56
|
+
<!-- </div>-->
|
|
57
|
+
<div class="row">
|
|
58
|
+
<strong :title="row.f_userinfo_code" class="col-sm-4" show-overflow-tooltip="true">{{row.f_userinfo_code.length>9?''+row.f_userinfo_code.substring(0,9)+'...':row.f_userinfo_code}}</strong>
|
|
59
|
+
<span class="col-sm-4">{{$parent.$parent.$parent.dateDes(row.f_operate_date)}}</span>
|
|
60
|
+
<span class="col-sm-4">{{row.type}}</span>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-sm-1" v-if="$parent.$parent.$parent.isOperate" title="涉及权限:冲正权限">
|
|
64
|
+
<dropdown class="auto"
|
|
65
|
+
v-if="(row.type ==='机表收费撤销' || row.type ==='卡表收费撤销' || row.type ==='物联网收费撤销' || row.type ==='其他收费撤销'
|
|
66
|
+
|| row.type ==='气损收费撤销' || row.type ==='预存缴费' || row.type === '补卡' || row.type === '物联网收费' ||
|
|
67
|
+
row.type === '用户退费' || row.type === '机表收费' || row.type === '数码表收费' ||
|
|
68
|
+
row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气' || row.type === '其他收费' ||
|
|
69
|
+
row.type === '换表' || row.state === 1 || row.type==='调价补费' || row.type==='卡表赠气' ||
|
|
70
|
+
row.type==='物联网赠气'|| row.type==='物联网赠费'|| row.type==='卡表赠费'|| row.type==='卡表赠气'||
|
|
71
|
+
row.type==='卡表收费撤销'||row.type==='物联网补费' || row.type==='物联网扣费'||row.type==='机表补费'||
|
|
72
|
+
row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气'||row.type==='气损收费' ||
|
|
73
|
+
row.type === '气表清零' || row.type === '掉气补气' || row.type === '其他补气' || row.type === '清零补气' ||
|
|
74
|
+
row.type === '换表补气' || row.type === '过户'|| row.type ==='价格补差' || row.type ==='价格补差撤销') && row.type!=='新增户档案' && row.type!=='转气转出' && row.type!=='转气转入'">
|
|
75
|
+
<button data-toggle="dropdown" style="border: 0px;background: none;" type="button"
|
|
76
|
+
v-if="row.f_user_state==='正常'||row.f_user_state==='预备'||row.type==='气损收费' ">
|
|
77
|
+
<span class="glyphicon glyphicon-th-list"></span>
|
|
78
|
+
</button>
|
|
79
|
+
<ul class="dropdown-menu dropdown-menu-right" slot="dropdown-menu" style=" min-width: 60px;" v-if="row.f_user_state==='正常'||row.f_user_state==='预备'||row.type==='气损收费' ">
|
|
80
|
+
<!-- <li-->
|
|
81
|
+
<!-- v-if="row.type === '换新表' || row.type === '气表清零' || row.type === '掉气补气' || row.type === '其他补气' || row.type === '清零补气' || row.type === '换表补气'-->
|
|
82
|
+
<!-- || row.type === '补卡' || row.type === '物联网开户' || row.type === '物联网收费' || row.type === '用户退费' || row.type === '机表收费' || row.type === '数码表收费' || row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气' || row.type === '其他收费' || row.type === '换表' || row.type === '过户'|| row.type==='预存缴费'|| row.type==='退费'|| row.type==='调价补费' ||row.type==='卡表收费撤销'||row.type==='物联网补费' || row.type==='物联网扣费'||row.type==='机表补费'||row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气'||row.type==='气损收费' ">-->
|
|
83
|
+
<!-- <a @click.stop="$parent.$parent.$parent.operate('票据补打', row)" href="#">票据补打</a>-->
|
|
84
|
+
<!-- </li>-->
|
|
85
|
+
<!-- <li-->
|
|
86
|
+
<!-- v-if="row.state === 1 && (row.type === '其他收费欠费登记' || row.type === '迁表' || row.type === '调价预存' || row.type === '拆表' || row.type === '物联网开户' || row.type === '物联网收费'|| row.type === '卡表收费' || row.type === '其他收费'|| row.type === '气费减免'||row.type === '维修收费' || row.type === '过户' || row.type === '换新表' || row.type === '气表清零' || row.type === '机表收费' || row.type === '超用收费' || row.type === '其他收费' || row.type === '补卡'|| row.type === '调价补费'|| row.type=='预存缴费' || row.type==='卡表赠气'|| row.type==='物联网赠费'|| row.type==='卡表赠费'|| row.type==='物联网赠气')">-->
|
|
87
|
+
<!-- <a @click.stop="$parent.$parent.$parent.operate('撤销', row)" href="#">撤销</a>-->
|
|
88
|
+
<!-- </li>-->
|
|
89
|
+
<li>
|
|
90
|
+
<a @click.stop="$parent.$parent.$parent.operate('票据补打', row)" href="#">票据补打</a>
|
|
91
|
+
</li>
|
|
92
|
+
<li v-if="row.type === '机表收费'">
|
|
93
|
+
<a @click.stop="$parent.$parent.$parent.foldReprint(row)" href="#">折子补打</a>
|
|
94
|
+
</li>
|
|
95
|
+
<li>
|
|
96
|
+
<a @click.stop="$parent.$parent.$parent.operate('撤销', row)" href="#">撤销</a>
|
|
97
|
+
</li>
|
|
98
|
+
</ul>
|
|
99
|
+
</dropdown>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
</span>
|
|
103
|
+
<div class="panel-body" v-if="$parent.$parent.$parent.isSelected(row)">
|
|
104
|
+
<salecardgas-detail :data="row" v-if="row.type === '发卡售气'"></salecardgas-detail>
|
|
105
|
+
<movemeter-detail :data="row" v-if="row.type === '迁表'"></movemeter-detail>
|
|
106
|
+
<salecardgas-detail :data="row" v-if="row.type === '换表发卡'"></salecardgas-detail>
|
|
107
|
+
<cardmetercenter-detail :data="row" v-if="row.type === '卡表收费'||row.type === '数码表收费' "></cardmetercenter-detail>
|
|
108
|
+
<movegas-detail :data="row" v-if="row.type === '转气转出'"></movegas-detail>
|
|
109
|
+
<movegas-detail :data="row" v-if="row.type === '转气转入'"></movegas-detail>
|
|
110
|
+
<machinemetercenter-detail :data="row" v-if="row.type === '机表收费'"></machinemetercenter-detail>
|
|
111
|
+
<autoaccounts-detail :data="row" v-if="row.type === '自动下账'"></autoaccounts-detail>
|
|
112
|
+
<bankdk-detail :data="row" v-if="row.type === '银行代扣'"></bankdk-detail>
|
|
113
|
+
<bank-pay :data="row" v-if="row.type === '银行支付'"></bank-pay>
|
|
114
|
+
<wechat-pay :data="row" v-if="row.type === '微信支付'"></wechat-pay>
|
|
115
|
+
<disablemanage-detail :data="row" v-if="row.type === '停用'"></disablemanage-detail>
|
|
116
|
+
<enablemanage-detail :data="row" v-if="row.type === '启用'"></enablemanage-detail>
|
|
117
|
+
<replacecardmanage-detail :data="row" v-if="row.type === '补卡'"></replacecardmanage-detail>
|
|
118
|
+
<machinecard-detail :data="row" v-if="row.type === '机表补卡'"></machinecard-detail>
|
|
119
|
+
<transfermanage-detail :data="row" v-if="row.type === '过户'"></transfermanage-detail>
|
|
120
|
+
<othercharge-detail :data="row" v-if="row.type === '其他收费欠费登记'||row.type === '其他收费'||row.type === '维修收费'"></othercharge-detail>
|
|
121
|
+
<inputtorchange-detail :data="row" v-if="row.type === '抄表员变更'"></inputtorchange-detail>
|
|
122
|
+
<offgasaddgas-detail :data="row" v-if=" row.type === '换表补气' || row.type === '批量换表补气' || row.type === '其他补气' || row.type === '清零补气' || row.type === '掉气补气'||row.type==='物联网补费'||row.type==='物联网扣费'||row.type==='机表补费'||row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气' " ></offgasaddgas-detail>
|
|
123
|
+
<iotopen-detail :data="row" v-if="row.type === '开通'"></iotopen-detail>
|
|
124
|
+
<iotmetercenter-detail :data="row" v-if="row.type === '物联网收费' || row.type === '物联网开户' || row.type === '调价退费' || row.type === '调价补费'||row.type === '退押金' "></iotmetercenter-detail>
|
|
125
|
+
<overuserchange-detail :data="row" v-if="row.type === '超用收费'"></overuserchange-detail>
|
|
126
|
+
<adduser-detail :data="row" v-if="row.type === '新增户档案'"></adduser-detail>
|
|
127
|
+
<gaspricechange-detail :data="row" v-if="row.type === '气价变更'"></gaspricechange-detail>
|
|
128
|
+
<userchange-detail :data="row" v-if="row.type === '档案变更'"></userchange-detail>
|
|
129
|
+
<changemeter-detail :data="row" v-if="row.type === '换新表' || row.type === '批量换表' || row.type === '气表清零'"></changemeter-detail>
|
|
130
|
+
<changeflowmeter-detail :data="row" v-if="row.type === '换卡控流量计'"></changeflowmeter-detail>
|
|
131
|
+
<cardoveruser-detail :data="row" v-if="row.type === '卡表超用'||row.type === '超用'"></cardoveruser-detail>
|
|
132
|
+
<cancellation-detail :data="row" v-if="row.type === '销户'"></cancellation-detail>
|
|
133
|
+
<refund-detail :data="row" v-if="row.type === '退费' || row.type == '卡表退费'"></refund-detail>
|
|
134
|
+
|
|
135
|
+
<change-meter-cancel :data="row" v-if="row.type === '换表撤销'"></change-meter-cancel>
|
|
136
|
+
<autoaccounts-cancel-detail :data="row" v-if="row.type === '自动下账撤销'"></autoaccounts-cancel-detail>
|
|
137
|
+
<transfermanage-cancel-detail :data="row" v-if="row.type === '过户撤销'"></transfermanage-cancel-detail>
|
|
138
|
+
<cardmetercenter-cancel-detail :data="row" v-if="row.type === '卡表收费撤销'"></cardmetercenter-cancel-detail>
|
|
139
|
+
<machinemetercenter-cancel-detail :data="row" v-if="row.type === '机表收费撤销'"></machinemetercenter-cancel-detail>
|
|
140
|
+
<machinemetercenter-cancel-detail :data="row" v-if="row.type == '预存缴费撤销'"></machinemetercenter-cancel-detail>
|
|
141
|
+
<othercharge-cancel-detail :data="row" v-if="row.type === '其他收费撤销'"></othercharge-cancel-detail>
|
|
142
|
+
<replacecardmanage-cancel-detail :data="row" v-if="row.type === '补卡撤销'"></replacecardmanage-cancel-detail>
|
|
143
|
+
<iotmetercenter-cancel-detail :data="row" v-if="row.type === '物联网收费撤销'"></iotmetercenter-cancel-detail>
|
|
144
|
+
<feededuction-detail :data="row" v-if="row.type === '补费' ||row.type === '扣费' ||row.type === '补气' ||row.type === '扣气' "></feededuction-detail>
|
|
145
|
+
<with-gas :data="row" v-if="row.type==='物联网赠气' || row.type==='物联网赠费'||row.type==='卡表赠气'||row.type==='卡表赠费'"></with-gas>
|
|
146
|
+
<replace-card-manageDetail :data="row" v-if=" row.type==='物联网补费'||row.type==='物联网扣费'||row.type==='机表补费'||row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气' "></replace-card-manageDetail>
|
|
147
|
+
<blacklist-detail :data="row" v-if="row.type ==='拉黑' ||row.type === '取消拉黑' "></blacklist-detail>
|
|
148
|
+
<advance-delivery-detail :data="row" v-if="row.type ==='卡表预交' "></advance-delivery-detail>
|
|
149
|
+
<machinemetercenter-detail :data="row" v-if="row.type === '预存缴费'||row.type == '调价预存'"></machinemetercenter-detail>
|
|
150
|
+
<price-adjustment-detail :data="row" v-if="row.type === '价格补差'"></price-adjustment-detail>
|
|
151
|
+
<gasloss-detail :data="row" v-if="row.type === '气损收费' || row.type === '气损收费撤销'"></gasloss-detail>
|
|
152
|
+
<garbage-detail :data="row" v-if="row.type === '垃圾费收费'"></garbage-detail>
|
|
153
|
+
</div>
|
|
154
|
+
<div style="margin-top: 8px;background: #FFF;" v-if="!$parent.$parent.$parent.isSelected(row)">
|
|
155
|
+
<span>{{row.f_describe}}</span>
|
|
156
|
+
</div>
|
|
157
|
+
</panel>
|
|
158
|
+
</accordion>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
</criteria-paged>
|
|
162
|
+
</partial-view>
|
|
163
|
+
<book-bill :show="bookPrint" :url="'rs/report/book_detail_bill'" :data='bookData' @toggle="closeBookPrint" @printok="bookPrintOK" v-ref:bookbill></book-bill>
|
|
164
|
+
<record-cancel :data="cancel_data" :show.sync="cancel_show" @cancel="cancelOper()" @cancel-success="cancelSucc()" v-if="cancel_show"></record-cancel>
|
|
165
|
+
<reissue-bill :data="reissue_data" :show.sync="reissue_show" @cancel="reissueOper()" @reissue-success="reissueSucc()" v-if="reissue_show"></reissue-bill>
|
|
166
|
+
</div>
|
|
167
|
+
</template>
|
|
168
|
+
<script>
|
|
169
|
+
/**
|
|
170
|
+
*操作记录信息
|
|
171
|
+
*/
|
|
172
|
+
import {PagedList} from 'vue-client'
|
|
173
|
+
import co from 'co'
|
|
174
|
+
|
|
175
|
+
let cancelGen = function *(self, data) {
|
|
176
|
+
let msgRet = yield self.$showMessage('撤销后数据不可恢复,确认撤销录入吗?', ['confirm', 'cancel'])
|
|
177
|
+
if (msgRet === 'cancel') return
|
|
178
|
+
// 撤销操作完成,刷新界面
|
|
179
|
+
self.search()
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* 发票补打
|
|
184
|
+
*/
|
|
185
|
+
let reprintGen = async function (self, row) {
|
|
186
|
+
try {
|
|
187
|
+
row.billUrl = self.getBillUrl(row)
|
|
188
|
+
if (!row.billUrl) {
|
|
189
|
+
self.$showMessage('当前操作类型暂时没有票据')
|
|
190
|
+
return
|
|
191
|
+
}
|
|
192
|
+
row.f_bill_type = row.type
|
|
193
|
+
row.f_bill_style = '普通收据'
|
|
194
|
+
row.f_operator = self.$login.f.name
|
|
195
|
+
row.f_operatorid = self.$login.f.id
|
|
196
|
+
row.f_orgid = self.$login.f.orgid
|
|
197
|
+
row.f_orgname = self.$login.f.orgs
|
|
198
|
+
row.f_depid = self.$login.f.depids
|
|
199
|
+
row.f_depname = self.$login.f.deps
|
|
200
|
+
self.reissue_data = JSON.parse(JSON.stringify(row))
|
|
201
|
+
if (row.type === '调价预存') {
|
|
202
|
+
let id = await self.$resetpost('rs/sql/singleTable_OrderBy', {
|
|
203
|
+
data: {
|
|
204
|
+
items: 'f_surplus_id',
|
|
205
|
+
tablename: 't_sellinggas',
|
|
206
|
+
condition: `id = '${row.id}'`,
|
|
207
|
+
orderitem: 'id'
|
|
208
|
+
}
|
|
209
|
+
}, {resolveMsg: null, rejectMsg: '查询优惠信息失败'})
|
|
210
|
+
self.reissue_data.id = id.data[0].f_surplus_id
|
|
211
|
+
}
|
|
212
|
+
self.reissue_show = true
|
|
213
|
+
} catch (error) {
|
|
214
|
+
if (error.status) {
|
|
215
|
+
self.$warn(`加载数据出错, ${JSON.stringify(error)}`, 'CardList')
|
|
216
|
+
}
|
|
217
|
+
throw error
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
let asyncCardList = async function (self) {
|
|
221
|
+
await self.$getConfig(self, 'CardList')
|
|
222
|
+
console.log('操作汇总config', self.config)
|
|
223
|
+
}
|
|
224
|
+
export default {
|
|
225
|
+
title: '操作汇总',
|
|
226
|
+
data () {
|
|
227
|
+
return {
|
|
228
|
+
config: {
|
|
229
|
+
cancleother: false, // 默认可以撤销别人的操作
|
|
230
|
+
cancletime: true // 默认可以冲正今天以前的操作
|
|
231
|
+
},
|
|
232
|
+
model: new PagedList(`${this.sqlurl}`, 9999,
|
|
233
|
+
{
|
|
234
|
+
items: '"' + this.items + '"',
|
|
235
|
+
tablename: '"' + this.tablename + '"',
|
|
236
|
+
orderitem: '"' + this.orderitem + '"'
|
|
237
|
+
}),
|
|
238
|
+
show: false,
|
|
239
|
+
asideTitle: '用户操作',
|
|
240
|
+
row: Object,
|
|
241
|
+
comp: null,
|
|
242
|
+
operationtypes: this.$appdata.getParam('操作类型') ? [{
|
|
243
|
+
label: '全部',
|
|
244
|
+
value: ''
|
|
245
|
+
}, ...this.$appdata.getParam('操作类型')] : [],
|
|
246
|
+
|
|
247
|
+
cancel_show: false,
|
|
248
|
+
bookPrint: false,
|
|
249
|
+
bookData: {},
|
|
250
|
+
cancel_data: null,
|
|
251
|
+
criteriaShow: false,
|
|
252
|
+
reissue_show: false,
|
|
253
|
+
reissue_data: null,
|
|
254
|
+
authArr: this.$login.r ? this.$login.r : []
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
props: {
|
|
258
|
+
sqlurl: {
|
|
259
|
+
type: String,
|
|
260
|
+
default: 'rs/sql/getRecord'
|
|
261
|
+
},
|
|
262
|
+
items: {
|
|
263
|
+
type: String,
|
|
264
|
+
default: '*'
|
|
265
|
+
},
|
|
266
|
+
tablename: {
|
|
267
|
+
type: String,
|
|
268
|
+
default: 't_record'
|
|
269
|
+
},
|
|
270
|
+
orderitem: {
|
|
271
|
+
type: String,
|
|
272
|
+
default: 'f_operate_date desc'
|
|
273
|
+
},
|
|
274
|
+
btns: {
|
|
275
|
+
type: Array
|
|
276
|
+
},
|
|
277
|
+
operationtype: {
|
|
278
|
+
type: String,
|
|
279
|
+
default: ''
|
|
280
|
+
},
|
|
281
|
+
userinfoid: {},
|
|
282
|
+
isOperate: {
|
|
283
|
+
type: Boolean,
|
|
284
|
+
default: true
|
|
285
|
+
},
|
|
286
|
+
f_orgid: ''
|
|
287
|
+
},
|
|
288
|
+
ready () {
|
|
289
|
+
this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
|
|
290
|
+
asyncCardList(this)
|
|
291
|
+
// this.search()
|
|
292
|
+
},
|
|
293
|
+
methods: {
|
|
294
|
+
closeBookPrint () {
|
|
295
|
+
this.bookPrint = false
|
|
296
|
+
this.bookData = {}
|
|
297
|
+
},
|
|
298
|
+
bookPrintOK () {
|
|
299
|
+
this.bookPrint = false
|
|
300
|
+
this.bookData = {}
|
|
301
|
+
this.$dispatch('refresh')
|
|
302
|
+
},
|
|
303
|
+
getGasHandMonth (hand) {
|
|
304
|
+
let date1, date2, previousMonth1, previousMonthDate1, previousMonth2, previousMonthDate2
|
|
305
|
+
if (hand.length > 1) {
|
|
306
|
+
let len = hand.length
|
|
307
|
+
date1 = new Date(hand[len - 1].f_input_date)
|
|
308
|
+
date2 = new Date(hand[0].f_input_date)
|
|
309
|
+
previousMonthDate1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate())
|
|
310
|
+
previousMonth1 = previousMonthDate1.getMonth()
|
|
311
|
+
previousMonthDate2 = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate())
|
|
312
|
+
previousMonth2 = previousMonthDate2.getMonth()
|
|
313
|
+
return (previousMonth1 < 10 ? '0' + previousMonth1 : previousMonth1) + '-' + (previousMonth2 < 10 ? '0' + previousMonth2 : previousMonth2)
|
|
314
|
+
} else if (hand.length === 1) {
|
|
315
|
+
date1 = new Date(hand[0].f_input_date)
|
|
316
|
+
previousMonthDate1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate())
|
|
317
|
+
previousMonth1 = previousMonthDate1.getMonth()
|
|
318
|
+
return (previousMonth1 < 10 ? '0' + previousMonth1 : previousMonth1) + '-' + (previousMonth1 < 10 ? '0' + previousMonth1 : previousMonth1)
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
async foldReprint (row) {
|
|
322
|
+
console.log('折子补打', row)
|
|
323
|
+
let result = await this.$resetpost('rs/logic/foldReprintGetData', {
|
|
324
|
+
data: {
|
|
325
|
+
f_userinfo_code: row.f_userinfo_code,
|
|
326
|
+
id: row.id
|
|
327
|
+
}
|
|
328
|
+
}, {resolveMsg: null, rejectMsg: '查询优惠信息失败'})
|
|
329
|
+
this.bookData = {
|
|
330
|
+
f_userinfo_id: row.f_userinfo_id,
|
|
331
|
+
f_book_no: result.data.userinfo.f_book_no,
|
|
332
|
+
f_zzhh: result.data.userinfo.f_zzhh,
|
|
333
|
+
content: {
|
|
334
|
+
f_operate_date: `'${this.$login.toStandardDateString()}'`,
|
|
335
|
+
f_abstract: `'消费'`,
|
|
336
|
+
f_gas_month: `'${this.getGasHandMonth(result.data.hand)}'`,
|
|
337
|
+
f_meter_base: `'${result.data.userinfo.f_meter_base}'`,
|
|
338
|
+
f_gas: `'${result.data.sell.f_pregas}'`,
|
|
339
|
+
f_money: `'${result.data.sell.f_collection}'`,
|
|
340
|
+
f_omoney: `'${result.data.sell.f_delaypay}'`,
|
|
341
|
+
f_balance: `'${result.data.sell.f_curbalance}'`,
|
|
342
|
+
f_operator: `'${this.$login.f.name}'`
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
console.log('最终打印的数据', this.bookData)
|
|
346
|
+
this.bookPrint = true
|
|
347
|
+
},
|
|
348
|
+
dateDes (date) {
|
|
349
|
+
return this.$login.dateDescripte(date)
|
|
350
|
+
},
|
|
351
|
+
selected (row) {
|
|
352
|
+
if (this.row === row) {
|
|
353
|
+
this.row = null
|
|
354
|
+
} else {
|
|
355
|
+
this.row = row
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
isSelected (row) {
|
|
359
|
+
return this.row === row
|
|
360
|
+
},
|
|
361
|
+
search () {
|
|
362
|
+
let condition = '1=1'
|
|
363
|
+
if (this.f_orgid) {
|
|
364
|
+
condition += `and (u.f_filialeid in ${this.f_orgid} or g.f_orgid in ${this.f_orgid}) `
|
|
365
|
+
} else {
|
|
366
|
+
condition += `and (u.f_filialeid = '${this.$login.f.orgid}' or g.f_orgid ='${this.$login.f.orgid}')`
|
|
367
|
+
}
|
|
368
|
+
this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
369
|
+
if (a.data.length === 0) {
|
|
370
|
+
this.model.rows = []
|
|
371
|
+
this.model.state = '错误'
|
|
372
|
+
this.model.error = '没有符合条件的记录'
|
|
373
|
+
return
|
|
374
|
+
}
|
|
375
|
+
this.model.state = '正确'
|
|
376
|
+
this.model.rows = a.data
|
|
377
|
+
})
|
|
378
|
+
},
|
|
379
|
+
disEvent (btn) {
|
|
380
|
+
this.$dispatch(`${btn.eventName}`)
|
|
381
|
+
},
|
|
382
|
+
async operate (title, row) {
|
|
383
|
+
console.log('撤销的这条数据的信息', row)
|
|
384
|
+
if (title === '撤销') {
|
|
385
|
+
// 验证是否能撤销
|
|
386
|
+
let res = await this.$resetpost('rs/logic/recordRepealJudge', {data: row}, {
|
|
387
|
+
resolveMsg: null,
|
|
388
|
+
rejectMsg: '验证权限错误!!'
|
|
389
|
+
})
|
|
390
|
+
if (!res.data.pass) {
|
|
391
|
+
this.$showMessage(res.data.msg)
|
|
392
|
+
return
|
|
393
|
+
}
|
|
394
|
+
if (row.type === '卡表收费') {
|
|
395
|
+
if (!this.authArr.includes('无卡收费撤销权限')) {
|
|
396
|
+
this.$showAlert('当前用户没有【无卡收费撤销权限】,请联系管理员获取此权限后再进行该操作!', 'warning', 3000)
|
|
397
|
+
return
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
if (row.type === '物联网收费' || row.type === '卡表赠气' || row.type === '物联网赠费' || row.type === '卡表赠费' || row.type === '物联网赠气') {
|
|
401
|
+
let table_name = this.$appdata.getSingleValue('新抄表') ? 't_web_handplan' : 't_handplan'
|
|
402
|
+
let getWebHand = await this.$SqlService.singleTable(table_name, `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_userfiles_id = '${row.f_userfiles_id}'`)
|
|
403
|
+
console.log('长度', getWebHand)
|
|
404
|
+
if (getWebHand.data.length > 0) {
|
|
405
|
+
this.$showAlert('此次物联网收费之后有结算,不能撤销此纪录', 'warning', 1500)
|
|
406
|
+
return
|
|
407
|
+
}
|
|
408
|
+
} else if (row.type === '机表收费') {
|
|
409
|
+
let getWebHand = await this.$SqlService.singleTable('t_handplan', `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_whether_pay = '是' and f_userfiles_id = '${row.f_userfiles_id}'`)
|
|
410
|
+
|
|
411
|
+
console.log('长度', getWebHand)
|
|
412
|
+
if (getWebHand.data.length > 0) {
|
|
413
|
+
this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
|
|
414
|
+
return
|
|
415
|
+
}
|
|
416
|
+
let sql = `select th.*from t_handplan th
|
|
417
|
+
left join t_sellinghand tsh on th.id=tsh.f_hand_id
|
|
418
|
+
where th.f_hand_state = '有效' and th.f_input_date > '${row.f_operate_date}' and tsh.f_debt_money>0
|
|
419
|
+
and th.f_userfiles_id = '${row.f_userfiles_id}' and tsh.f_state='有效'`
|
|
420
|
+
let getwate = await this.$resetpost('rs/logic/sqlquery', {data: {sql: sql}}, {
|
|
421
|
+
resolveMsg: null,
|
|
422
|
+
rejectMsg: '获取记录详情出错!!'
|
|
423
|
+
})
|
|
424
|
+
if (getwate.data.length > 0) {
|
|
425
|
+
this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
|
|
426
|
+
return
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
if (this.authArr.includes('冲正权限')) {
|
|
430
|
+
if (this.config.cancleother) {
|
|
431
|
+
if (row.f_operator != this.$login.f.name) {
|
|
432
|
+
this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
|
|
433
|
+
return
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
if (this.config.cancletime && !this.$login.f.rolesnames.includes('管理员')) {
|
|
437
|
+
let a = this.$login.toStandardYearMonth()
|
|
438
|
+
console.log('当前时间', a < row.f_operate_date)
|
|
439
|
+
if (!this.authArr.includes('跨月撤销')) {
|
|
440
|
+
if (row.f_operate_date < a) {
|
|
441
|
+
this.$showAlert('不能撤销非本月的记录,请联系管理员获取【跨月撤销】的权限。', 'warning', 1500)
|
|
442
|
+
return
|
|
443
|
+
}
|
|
444
|
+
a = this.$login.toStandardDateString() + ' 00:00:00'
|
|
445
|
+
if (row.f_operate_date < a) {
|
|
446
|
+
this.$showAlert('不能撤销不是当天的操作', 'warning', 1500)
|
|
447
|
+
return
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
} else {
|
|
452
|
+
this.$showAlert('当前用户没有【冲正权限】', 'warning', 1500)
|
|
453
|
+
return
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
if (title === '撤销') {
|
|
458
|
+
this.cancel_show = true
|
|
459
|
+
this.cancel_data = row
|
|
460
|
+
} else {
|
|
461
|
+
let reprint = reprintGen(this, row)
|
|
462
|
+
return co(reprint)
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
cancelOper () {
|
|
466
|
+
this.cancel_data = null
|
|
467
|
+
this.cancel_show = false
|
|
468
|
+
},
|
|
469
|
+
cancelSucc () {
|
|
470
|
+
console.log('-----------------------------撤销成功了,隐藏掉')
|
|
471
|
+
this.cancel_show = false
|
|
472
|
+
this.$dispatch('refresh')
|
|
473
|
+
},
|
|
474
|
+
reissueOper () {
|
|
475
|
+
this.reissue_data = null
|
|
476
|
+
this.reissue_show = false
|
|
477
|
+
},
|
|
478
|
+
reissueSucc () {
|
|
479
|
+
this.reissue_show = false
|
|
480
|
+
this.$dispatch('refresh')
|
|
481
|
+
},
|
|
482
|
+
|
|
483
|
+
getBillUrl (row) {
|
|
484
|
+
let type = row.type
|
|
485
|
+
let name = ''
|
|
486
|
+
// 根据type数据 选择调用的Logic
|
|
487
|
+
if (type === '过户') {
|
|
488
|
+
name = 'rs/report/transfer_bill'
|
|
489
|
+
} else if (type === '换新表' || type === '气表清零') {
|
|
490
|
+
name = 'rs/report/change_meter'
|
|
491
|
+
} else if (type === '机表收费' || type === '机表收费撤销') {
|
|
492
|
+
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
493
|
+
name = 'rs/report/fmy_machine_bill'
|
|
494
|
+
} else {
|
|
495
|
+
name = 'rs/report/machine_bill'
|
|
496
|
+
}
|
|
497
|
+
} else if (type === '物联网收费' || type === '物联网收费撤销' || type === '物联网开户') {
|
|
498
|
+
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
499
|
+
name = 'rs/report/fmy_iot_bill'
|
|
500
|
+
} else {
|
|
501
|
+
name = 'rs/report/iot_bill'
|
|
502
|
+
}
|
|
503
|
+
} else if (type === '物联网补费' || type === '物联网扣费' || type === '物联网补气' || type === '物联网扣气' || type === '机表补费' || type === '机表扣费') {
|
|
504
|
+
name = 'rs/report/MakeUp'
|
|
505
|
+
} else if (type === '超用收费') {
|
|
506
|
+
name = 'rs/report/overuse_bill'
|
|
507
|
+
} else if (type === '其他收费' || type === '其他收费撤销') {
|
|
508
|
+
name = 'rs/report/otherCharge_bill'
|
|
509
|
+
} else if (type === '补卡') {
|
|
510
|
+
name = 'rs/report/replace_sell'
|
|
511
|
+
} else if (type === '发卡售气') {
|
|
512
|
+
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
513
|
+
name = 'rs/report/fmy_sendCard_bill'
|
|
514
|
+
} else {
|
|
515
|
+
if (row.f_meter_classify === '金额卡表' && this.$appdata.getSingleValue('金额气量区分卡表票据')) {
|
|
516
|
+
name = 'rs/report/fee_sendCard_bill'
|
|
517
|
+
} else {
|
|
518
|
+
name = 'rs/report/sendCard_bill'
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
} else if (type === '卡表收费' || type === '卡表收费撤销' || type === '卡表收费撤销') {
|
|
522
|
+
if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
|
|
523
|
+
name = 'rs/report/fmy_card_bill'
|
|
524
|
+
} else {
|
|
525
|
+
if (row.f_meter_classify === '金额卡表' && this.$appdata.getSingleValue('金额气量区分卡表票据')) {
|
|
526
|
+
name = 'rs/report/fee_card_bill'
|
|
527
|
+
} else {
|
|
528
|
+
name = 'rs/report/card_bill'
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
} else if (type === '预存缴费') {
|
|
532
|
+
name = 'rs/report/pre_sell'
|
|
533
|
+
} else if (type === '调价预存') {
|
|
534
|
+
name = 'rs/report/refund_sell'
|
|
535
|
+
} else if (type === '退费') {
|
|
536
|
+
name = 'rs/report/refund_sell'
|
|
537
|
+
} else if (type === '调价补费') {
|
|
538
|
+
name = 'rs/report/compensation_bill'
|
|
539
|
+
} else if (type === '数码表收费') {
|
|
540
|
+
name = 'rs/report/digtial_bill'
|
|
541
|
+
} else if (type === '气损收费' || type === '气损收费撤销') {
|
|
542
|
+
name = 'rs/report/gasloss_bill'
|
|
543
|
+
} else if (type === '掉气补气') {
|
|
544
|
+
name = 'rs/report/acceptOffGasAddGas_bill'
|
|
545
|
+
} else if (type === '其他补气') {
|
|
546
|
+
name = 'rs/report/acceptOtherGas_bill'
|
|
547
|
+
} else if (type === '清零补气' || type === '换表补气' || type === '批量换表补气') {
|
|
548
|
+
if (row.f_meter_classify.indexOf('卡表') > -1) {
|
|
549
|
+
name = 'rs/report/card_gas_bill'
|
|
550
|
+
} else {
|
|
551
|
+
name = 'rs/report/iot_sell'
|
|
552
|
+
}
|
|
553
|
+
} else if (type === '垃圾费收费') {
|
|
554
|
+
name = 'rs/report/garbageChargeReport'
|
|
555
|
+
} else if (type === '物联网赠费') {
|
|
556
|
+
name = 'rs/report/iotGiftFee'
|
|
557
|
+
} else if (type === '物联网赠气') {
|
|
558
|
+
name = 'rs/report/iotGiftGas'
|
|
559
|
+
} else if (type === '卡表赠费') {
|
|
560
|
+
name = 'rs/report/icGiftFee'
|
|
561
|
+
} else if (type === '卡表赠气') {
|
|
562
|
+
name = 'rs/report/icGiftGas'
|
|
563
|
+
}
|
|
564
|
+
return name
|
|
565
|
+
},
|
|
566
|
+
// 撤销为统一操作,所以写到基础组件中
|
|
567
|
+
operateCancel (row) {
|
|
568
|
+
let cancel = cancelGen(this, row)
|
|
569
|
+
co(cancel)
|
|
570
|
+
},
|
|
571
|
+
selfSearch (args) {
|
|
572
|
+
// if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
573
|
+
// args.condition += `and f_filialeids = '${this.$login.f.f_orgids}'`
|
|
574
|
+
// }
|
|
575
|
+
if (this.f_orgid) {
|
|
576
|
+
args.condition += `and r.f_orgid in ${this.f_orgid}`
|
|
577
|
+
} else {
|
|
578
|
+
args.condition += `and r.f_orgid = '${this.$login.f.orgid}'`
|
|
579
|
+
}
|
|
580
|
+
if (this.authArr.includes('操作记录查询限定')) {
|
|
581
|
+
args.condition += ` and r.f_operatorid = '${this.$login.f.id}'`
|
|
582
|
+
}
|
|
583
|
+
this.model.search(args.condition, args.model)
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
watch: {
|
|
587
|
+
// 'userinfoid' (newVal) {
|
|
588
|
+
// this.model.rows={}
|
|
589
|
+
// if (newVal && newVal !== '') {
|
|
590
|
+
// this.$nextTick(function () {
|
|
591
|
+
// this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
|
|
592
|
+
// }.bind(this))
|
|
593
|
+
// }else{
|
|
594
|
+
// this.$nextTick(function () {
|
|
595
|
+
// this.$refs.paged.$refs.cri.model.f_userinfo_code = ""
|
|
596
|
+
// }.bind(this))
|
|
597
|
+
// }
|
|
598
|
+
// this.$refs.paged.$refs.cri.model.f_operat_type = ''
|
|
599
|
+
// }
|
|
600
|
+
'userinfoid' (newVal) {
|
|
601
|
+
if (newVal && newVal !== '') {
|
|
602
|
+
this.$nextTick(function () {
|
|
603
|
+
this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
|
|
604
|
+
}.bind(this))
|
|
605
|
+
this.$refs.paged.$refs.cri.model.f_operat_type = ''
|
|
606
|
+
let condition = `f_userinfo_code = '${newVal}' and u.f_filialeid = '${this.$login.f.orgid}'`
|
|
607
|
+
this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
608
|
+
if (a.data.length === 0) {
|
|
609
|
+
this.model.rows = []
|
|
610
|
+
this.model.state = '错误'
|
|
611
|
+
this.model.error = '没有符合条件的记录'
|
|
612
|
+
return
|
|
613
|
+
}
|
|
614
|
+
this.model.state = '正确'
|
|
615
|
+
this.model.rows = a.data
|
|
616
|
+
})
|
|
617
|
+
} else {
|
|
618
|
+
this.model.rows = {}
|
|
619
|
+
this.$nextTick(function () {
|
|
620
|
+
this.$refs.paged.$refs.cri.model.f_userinfo_code = ''
|
|
621
|
+
}.bind(this))
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
</script>
|
|
@@ -26,4 +26,5 @@ export default function () {
|
|
|
26
26
|
Vue.component('sale-arrears-query', (resolve) => { require(['./machineHandManage/ArrearsQuery'], resolve) })
|
|
27
27
|
// 机表查询
|
|
28
28
|
Vue.component('un-handplan-query', (resolve) => { require(['./unHandplanQuery'], resolve) })
|
|
29
|
+
Vue.component('card-list', (resolve) => { require(['./CardList'], resolve) })
|
|
29
30
|
}
|