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,482 +1,482 @@
|
|
|
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 === '用户退费' || row.type === '机表收费' ||
|
|
66
|
-
row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气' || row.type === '其他收费' ||
|
|
67
|
-
row.type === '换表' || row.state === 1 || row.type==='调价补费' || row.type==='卡表赠气' ||
|
|
68
|
-
row.type==='物联网赠气'|| row.type==='物联网赠费'|| row.type==='卡表赠费'|| row.type==='卡表赠气'||
|
|
69
|
-
row.type==='卡表收费撤销'||row.type==='物联网补费' || row.type==='物联网扣费'||row.type==='机表补费'||
|
|
70
|
-
row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气'||row.type==='气损收费') && row.type!=='新增户档案' && row.type!=='转气转出' && row.type!=='转气转入'">
|
|
71
|
-
<button data-toggle="dropdown" style="border: 0px;background: none;" type="button" v-if="row.f_user_state==='正常'||row.f_user_state==='预备'||row.type==='气损收费' ">
|
|
72
|
-
<span class="glyphicon glyphicon-th-list"></span>
|
|
73
|
-
</button>
|
|
74
|
-
<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==='气损收费' ">
|
|
75
|
-
<li
|
|
76
|
-
v-if="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==='气损收费' ">
|
|
77
|
-
<a @click.stop="$parent.$parent.$parent.operate('票据补打', row)" href="#">票据补打</a>
|
|
78
|
-
</li>
|
|
79
|
-
<li
|
|
80
|
-
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==='物联网赠气')">
|
|
81
|
-
<a @click.stop="$parent.$parent.$parent.operate('撤销', row)" href="#">撤销</a>
|
|
82
|
-
</li>
|
|
83
|
-
<li v-else>
|
|
84
|
-
<a href="#">暂无其他操作</a>
|
|
85
|
-
</li>
|
|
86
|
-
</ul>
|
|
87
|
-
</dropdown>
|
|
88
|
-
</div>
|
|
89
|
-
|
|
90
|
-
</span>
|
|
91
|
-
<div class="panel-body" v-if="$parent.$parent.$parent.isSelected(row)">
|
|
92
|
-
<salecardgas-detail :data="row" v-if="row.type === '发卡售气'"></salecardgas-detail>
|
|
93
|
-
<movemeter-detail :data="row" v-if="row.type === '迁表'"></movemeter-detail>
|
|
94
|
-
<salecardgas-detail :data="row" v-if="row.type === '换表发卡'"></salecardgas-detail>
|
|
95
|
-
<cardmetercenter-detail :data="row" v-if="row.type === '卡表收费'||row.type === '数码表收费' "></cardmetercenter-detail>
|
|
96
|
-
<movegas-detail :data="row" v-if="row.type === '转气转出'"></movegas-detail>
|
|
97
|
-
<movegas-detail :data="row" v-if="row.type === '转气转入'"></movegas-detail>
|
|
98
|
-
<machinemetercenter-detail :data="row" v-if="row.type === '机表收费'"></machinemetercenter-detail>
|
|
99
|
-
<autoaccounts-detail :data="row" v-if="row.type === '自动下账'"></autoaccounts-detail>
|
|
100
|
-
<bankdk-detail :data="row" v-if="row.type === '银行代扣'"></bankdk-detail>
|
|
101
|
-
<bank-pay :data="row" v-if="row.type === '银行支付'"></bank-pay>
|
|
102
|
-
<wechat-pay :data="row" v-if="row.type === '微信支付'"></wechat-pay>
|
|
103
|
-
<disablemanage-detail :data="row" v-if="row.type === '停用'"></disablemanage-detail>
|
|
104
|
-
<enablemanage-detail :data="row" v-if="row.type === '启用'"></enablemanage-detail>
|
|
105
|
-
<replacecardmanage-detail :data="row" v-if="row.type === '补卡'"></replacecardmanage-detail>
|
|
106
|
-
<machinecard-detail :data="row" v-if="row.type === '机表补卡'"></machinecard-detail>
|
|
107
|
-
<transfermanage-detail :data="row" v-if="row.type === '过户'"></transfermanage-detail>
|
|
108
|
-
<othercharge-detail :data="row" v-if="row.type === '其他收费欠费登记'||row.type === '其他收费'||row.type === '维修收费'"></othercharge-detail>
|
|
109
|
-
<inputtorchange-detail :data="row" v-if="row.type === '抄表员变更'"></inputtorchange-detail>
|
|
110
|
-
<offgasaddgas-detail :data="row"
|
|
111
|
-
v-if=" row.type === '换表补气' ||row.type === '其他补气' || row.type === '清零补气' || row.type === '掉气补气'||row.type==='物联网补费'||row.type==='物联网扣费'||row.type==='机表补费'||row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气' " ></offgasaddgas-detail>
|
|
112
|
-
<iotopen-detail :data="row" v-if="row.type === '开通'"></iotopen-detail>
|
|
113
|
-
<iotmetercenter-detail :data="row" v-if="row.type === '物联网收费' || row.type === '物联网开户' || row.type === '调价退费' || row.type === '调价补费'||row.type === '退押金' "></iotmetercenter-detail>
|
|
114
|
-
<overuserchange-detail :data="row" v-if="row.type === '超用收费'"></overuserchange-detail>
|
|
115
|
-
<adduser-detail :data="row" v-if="row.type === '新增户档案'"></adduser-detail>
|
|
116
|
-
<gaspricechange-detail :data="row" v-if="row.type === '气价变更'"></gaspricechange-detail>
|
|
117
|
-
<userchange-detail :data="row" v-if="row.type === '档案变更'"></userchange-detail>
|
|
118
|
-
<changemeter-detail :data="row" v-if="row.type === '换新表' || row.type === '气表清零'"></changemeter-detail>
|
|
119
|
-
<changeflowmeter-detail :data="row" v-if="row.type === '换卡控流量计'"></changeflowmeter-detail>
|
|
120
|
-
<cardoveruser-detail :data="row" v-if="row.type === '卡表超用'||row.type === '超用'"></cardoveruser-detail>
|
|
121
|
-
<cancellation-detail :data="row" v-if="row.type === '销户'"></cancellation-detail>
|
|
122
|
-
<refund-detail :data="row" v-if="row.type === '退费'"></refund-detail>
|
|
123
|
-
|
|
124
|
-
<change-meter-cancel :data="row" v-if="row.type === '换表撤销'"></change-meter-cancel>
|
|
125
|
-
<autoaccounts-cancel-detail :data="row" v-if="row.type === '自动下账撤销'"></autoaccounts-cancel-detail>
|
|
126
|
-
<transfermanage-cancel-detail :data="row" v-if="row.type === '过户撤销'"></transfermanage-cancel-detail>
|
|
127
|
-
<cardmetercenter-cancel-detail :data="row" v-if="row.type === '卡表收费撤销'"></cardmetercenter-cancel-detail>
|
|
128
|
-
<machinemetercenter-cancel-detail :data="row"
|
|
129
|
-
v-if="row.type === '机表收费撤销'"></machinemetercenter-cancel-detail>
|
|
130
|
-
<machinemetercenter-cancel-detail :data="row"
|
|
131
|
-
v-if="row.type == '预存缴费撤销'"></machinemetercenter-cancel-detail>
|
|
132
|
-
<othercharge-cancel-detail :data="row" v-if="row.type === '其他收费撤销'"></othercharge-cancel-detail>
|
|
133
|
-
<replacecardmanage-cancel-detail :data="row" v-if="row.type === '补卡撤销'"></replacecardmanage-cancel-detail>
|
|
134
|
-
<iotmetercenter-cancel-detail :data="row" v-if="row.type === '物联网收费撤销'"></iotmetercenter-cancel-detail>
|
|
135
|
-
<feededuction-detail :data="row" v-if="row.type === '补费' ||row.type === '扣费' ||row.type === '补气' ||row.type === '扣气' "></feededuction-detail>
|
|
136
|
-
<with-gas :data="row" v-if="row.type==='物联网赠气' || row.type==='物联网赠费'||row.type==='卡表赠气'||row.type==='卡表赠费'"></with-gas>
|
|
137
|
-
<replace-card-manageDetail :data="row" v-if=" row.type==='物联网补费'||row.type==='物联网扣费'||row.type==='机表补费'||row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气' "></replace-card-manageDetail>
|
|
138
|
-
<blacklist-detail :data="row" v-if="row.type ==='拉黑' ||row.type === '取消拉黑' "></blacklist-detail>
|
|
139
|
-
<advance-delivery-detail :data="row" v-if="row.type ==='卡表预交' "></advance-delivery-detail>
|
|
140
|
-
<machinemetercenter-detail :data="row" v-if="row.type === '预存缴费'||row.type == '调价预存'"></machinemetercenter-detail>
|
|
141
|
-
<gasloss-detail :data="row" v-if="row.type === '气损收费'"></gasloss-detail>
|
|
142
|
-
</div>
|
|
143
|
-
<div style="margin-top: 8px;background: #FFF;" v-if="!$parent.$parent.$parent.isSelected(row)">
|
|
144
|
-
<span>{{row.f_describe}}</span>
|
|
145
|
-
</div>
|
|
146
|
-
</panel>
|
|
147
|
-
</accordion>
|
|
148
|
-
</div>
|
|
149
|
-
|
|
150
|
-
</criteria-paged>
|
|
151
|
-
</partial-view>
|
|
152
|
-
<record-cancel :data="cancel_data" :show.sync="cancel_show" @cancel="cancelOper()" @cancel-success="cancelSucc()" v-if="cancel_show"></record-cancel>
|
|
153
|
-
<reissue-bill :data="reissue_data" :show.sync="reissue_show" @cancel="reissueOper()" @reissue-success="reissueSucc()" v-if="reissue_show"></reissue-bill>
|
|
154
|
-
</div>
|
|
155
|
-
</template>
|
|
156
|
-
<script>
|
|
157
|
-
/**
|
|
158
|
-
*操作记录信息
|
|
159
|
-
*/
|
|
160
|
-
import {PagedList} from 'vue-client'
|
|
161
|
-
import co from 'co'
|
|
162
|
-
|
|
163
|
-
let cancelGen = function *(self, data) {
|
|
164
|
-
let msgRet = yield self.$showMessage('撤销后数据不可恢复,确认撤销录入吗?', ['confirm', 'cancel'])
|
|
165
|
-
if (msgRet === 'cancel') return
|
|
166
|
-
// 撤销操作完成,刷新界面
|
|
167
|
-
self.search()
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* 发票补打
|
|
172
|
-
*/
|
|
173
|
-
let reprintGen = function *(self, row) {
|
|
174
|
-
try {
|
|
175
|
-
row.f_bill_type = row.type
|
|
176
|
-
row.f_bill_style = '普通收据'
|
|
177
|
-
row.f_operator = self.$login.f.name
|
|
178
|
-
row.f_operatorid = self.$login.f.id
|
|
179
|
-
row.f_orgid = self.$login.f.orgid
|
|
180
|
-
row.f_orgname = self.$login.f.orgs
|
|
181
|
-
row.f_depid = self.$login.f.depids
|
|
182
|
-
row.f_depname = self.$login.f.deps
|
|
183
|
-
row.billUrl = self.getBillUrl(row.type)
|
|
184
|
-
self.reissue_data = row
|
|
185
|
-
self.reissue_show = true
|
|
186
|
-
} catch (error) {
|
|
187
|
-
if (error.status) {
|
|
188
|
-
self.$warn(`加载数据出错, ${JSON.stringify(error)}`, 'CardList')
|
|
189
|
-
}
|
|
190
|
-
throw error
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
let asyncCardList = async function (self) {
|
|
194
|
-
await self.$getConfig(self, 'CardList')
|
|
195
|
-
console.log('操作汇总config', self.config)
|
|
196
|
-
}
|
|
197
|
-
export default {
|
|
198
|
-
title: '操作汇总',
|
|
199
|
-
data () {
|
|
200
|
-
return {
|
|
201
|
-
config: {
|
|
202
|
-
cancleother: false, // 默认可以撤销别人的操作
|
|
203
|
-
cancletime: true // 默认可以冲正今天以前的操作
|
|
204
|
-
},
|
|
205
|
-
model: new PagedList(`${this.sqlurl}`, 9999,
|
|
206
|
-
{
|
|
207
|
-
items: '"' + this.items + '"',
|
|
208
|
-
tablename: '"' + this.tablename + '"',
|
|
209
|
-
orderitem: '"' + this.orderitem + '"'
|
|
210
|
-
}),
|
|
211
|
-
show: false,
|
|
212
|
-
asideTitle: '用户操作',
|
|
213
|
-
row: Object,
|
|
214
|
-
comp: null,
|
|
215
|
-
operationtypes: this.$appdata.getParam('操作类型') ? [{
|
|
216
|
-
label: '全部',
|
|
217
|
-
value: ''
|
|
218
|
-
}, ...this.$appdata.getParam('操作类型')] : [],
|
|
219
|
-
|
|
220
|
-
cancel_show: false,
|
|
221
|
-
cancel_data: null,
|
|
222
|
-
criteriaShow:false,
|
|
223
|
-
reissue_show: false,
|
|
224
|
-
reissue_data: null,
|
|
225
|
-
authArr: this.$login.r ? this.$login.r : []
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
props: {
|
|
229
|
-
sqlurl: {
|
|
230
|
-
type: String,
|
|
231
|
-
default: 'rs/sql/getRecord'
|
|
232
|
-
},
|
|
233
|
-
items: {
|
|
234
|
-
type: String,
|
|
235
|
-
default: '*'
|
|
236
|
-
},
|
|
237
|
-
tablename: {
|
|
238
|
-
type: String,
|
|
239
|
-
default: 't_record'
|
|
240
|
-
},
|
|
241
|
-
orderitem: {
|
|
242
|
-
type: String,
|
|
243
|
-
default: 'f_operate_date desc'
|
|
244
|
-
},
|
|
245
|
-
btns: {
|
|
246
|
-
type: Array
|
|
247
|
-
},
|
|
248
|
-
operationtype: {
|
|
249
|
-
type: String,
|
|
250
|
-
default: ''
|
|
251
|
-
},
|
|
252
|
-
userinfoid: {},
|
|
253
|
-
isOperate: {
|
|
254
|
-
type: Boolean,
|
|
255
|
-
default: true
|
|
256
|
-
},
|
|
257
|
-
f_orgid: ''
|
|
258
|
-
},
|
|
259
|
-
ready () {
|
|
260
|
-
this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
|
|
261
|
-
asyncCardList(this)
|
|
262
|
-
// this.search()
|
|
263
|
-
},
|
|
264
|
-
methods: {
|
|
265
|
-
dateDes (date) {
|
|
266
|
-
return this.$login.dateDescripte(date)
|
|
267
|
-
},
|
|
268
|
-
selected (row) {
|
|
269
|
-
if (this.row === row) {
|
|
270
|
-
this.row = null
|
|
271
|
-
} else {
|
|
272
|
-
this.row = row
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
isSelected (row) {
|
|
276
|
-
return this.row === row
|
|
277
|
-
},
|
|
278
|
-
search () {
|
|
279
|
-
let condition = '1=1'
|
|
280
|
-
if (this.f_orgid) {
|
|
281
|
-
condition += `and (u.f_filialeid in ${this.f_orgid} or g.f_orgid in ${this.f_orgid}) `
|
|
282
|
-
} else {
|
|
283
|
-
console.log('12143124')
|
|
284
|
-
condition += `and (u.f_filialeid = '${this.$login.f.orgid}' or g.f_orgid ='${this.$login.f.orgid}')`
|
|
285
|
-
}
|
|
286
|
-
this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
287
|
-
if (a.data.length === 0) {
|
|
288
|
-
this.model.rows = []
|
|
289
|
-
this.model.state = '错误'
|
|
290
|
-
this.model.error = '没有符合条件的记录'
|
|
291
|
-
return
|
|
292
|
-
}
|
|
293
|
-
this.model.state = '正确'
|
|
294
|
-
this.model.rows = a.data
|
|
295
|
-
})
|
|
296
|
-
},
|
|
297
|
-
disEvent (btn) {
|
|
298
|
-
this.$dispatch(`${btn.eventName}`)
|
|
299
|
-
},
|
|
300
|
-
async operate (title, row) {
|
|
301
|
-
|
|
302
|
-
console.log('撤销的这条数据的信息', row)
|
|
303
|
-
if (title === '撤销') {
|
|
304
|
-
if(row.type === '卡表收费'){
|
|
305
|
-
// let getiswrite = await this.$SqlService.singleTable('t_sellinggas', `id = '${row.id}'`)
|
|
306
|
-
// if(getiswrite.data[0].f_write_card ==='已写卡'){
|
|
307
|
-
// this.$showAlert('此笔卡表收费为需要写卡的记录,请先读卡再撤销', 'warning', 1500)
|
|
308
|
-
// return
|
|
309
|
-
// }
|
|
310
|
-
if(!this.authArr.includes('无卡收费撤销权限')){
|
|
311
|
-
this.$showAlert('当前用户没有【无卡收费撤销权限】,请联系管理员获取此权限后再进行该操作!', 'warning', 3000)
|
|
312
|
-
return
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
if (row.type === '物联网收费' || row.type === '卡表赠气' || row.type === '物联网赠费' || row.type === '卡表赠费' || row.type === '物联网赠气') {
|
|
316
|
-
let getWebHand = await this.$SqlService.singleTable('t_handplan', `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_userfiles_id = '${row.f_userfiles_id}'`)
|
|
317
|
-
console.log('长度', getWebHand)
|
|
318
|
-
if (getWebHand.data.length > 0) {
|
|
319
|
-
this.$showAlert('此次物联网收费之后有结算,不能撤销此纪录', 'warning', 1500)
|
|
320
|
-
return
|
|
321
|
-
}
|
|
322
|
-
} else if (row.type === '机表收费') {
|
|
323
|
-
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}'`)
|
|
324
|
-
|
|
325
|
-
console.log('长度', getWebHand)
|
|
326
|
-
if (getWebHand.data.length > 0) {
|
|
327
|
-
this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
|
|
328
|
-
return
|
|
329
|
-
}
|
|
330
|
-
let sql = `select th.*from t_handplan th
|
|
331
|
-
left join t_sellinghand tsh on th.id=tsh.f_hand_id
|
|
332
|
-
where th.f_hand_state = '有效' and th.f_input_date > '${row.f_operate_date}' and tsh.f_debt_money>0
|
|
333
|
-
and th.f_userfiles_id = '${row.f_userfiles_id}' and tsh.f_state='有效'`
|
|
334
|
-
let getwate = await this.$resetpost('rs/logic/sqlquery', {data: {sql: sql}})
|
|
335
|
-
if (getwate.data.length > 0) {
|
|
336
|
-
this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
|
|
337
|
-
return
|
|
338
|
-
}
|
|
339
|
-
} else {
|
|
340
|
-
if (this.authArr.includes('冲正权限')) {
|
|
341
|
-
if (this.config.cancleother) {
|
|
342
|
-
if (row.f_operator != this.$login.f.name) {
|
|
343
|
-
this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
|
|
344
|
-
return
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
if (this.config.cancletime) {
|
|
348
|
-
let a = this.$login.toStandardYearMonth()
|
|
349
|
-
console.log('当前时间', a < row.f_operate_date)
|
|
350
|
-
if (!this.authArr.includes('跨月撤销')) {
|
|
351
|
-
if (row.f_operate_date < a) {
|
|
352
|
-
this.$showAlert('不能撤销不是当月的操作', 'warning', 1500)
|
|
353
|
-
return
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
} else {
|
|
358
|
-
this.$showAlert('当前用户没有*冲正权限*', 'warning', 1500)
|
|
359
|
-
return
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
if (title === '撤销') {
|
|
365
|
-
this.cancel_show = true
|
|
366
|
-
this.cancel_data = row
|
|
367
|
-
} else {
|
|
368
|
-
let reprint = reprintGen(this, row)
|
|
369
|
-
return co(reprint)
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
cancelOper () {
|
|
373
|
-
this.cancel_data = null
|
|
374
|
-
this.cancel_show = false
|
|
375
|
-
},
|
|
376
|
-
cancelSucc () {
|
|
377
|
-
console.log("-----------------------------撤销成功了,隐藏掉")
|
|
378
|
-
this.cancel_show = false
|
|
379
|
-
this.$dispatch('refresh')
|
|
380
|
-
},
|
|
381
|
-
reissueOper () {
|
|
382
|
-
this.reissue_data = null
|
|
383
|
-
this.reissue_show = false
|
|
384
|
-
},
|
|
385
|
-
reissueSucc () {
|
|
386
|
-
this.reissue_show = false
|
|
387
|
-
this.$dispatch('refresh')
|
|
388
|
-
},
|
|
389
|
-
|
|
390
|
-
getBillUrl (type) {
|
|
391
|
-
let name = ''
|
|
392
|
-
// 根据type数据 选择调用的Logic
|
|
393
|
-
if (type === '过户') {
|
|
394
|
-
name = 'rs/report/transfer_bill'
|
|
395
|
-
} else if (type === '换表') {
|
|
396
|
-
console.log('看看row..', this.row)
|
|
397
|
-
name = 'rs/report/change_meter'
|
|
398
|
-
} else if (type === '机表收费') {
|
|
399
|
-
name = 'rs/report/machine_bill'
|
|
400
|
-
} else if (type === '物联网收费' || type === '物联网开户' || type === '物联网赠气') {
|
|
401
|
-
name = 'rs/report/iot_bill'
|
|
402
|
-
} else if (type === '物联网补费' || type === '物联网扣费' || type === '物联网补气' || type === '物联网扣气' || type === '机表补费' || type === '机表扣费') {
|
|
403
|
-
name = 'rs/report/MakeUp'
|
|
404
|
-
} else if (type === '超用收费') {
|
|
405
|
-
name = 'rs/report/overuse_bill'
|
|
406
|
-
} else if (type === '其他收费') {
|
|
407
|
-
name = 'rs/report/otherCharge_bill'
|
|
408
|
-
} else if (type === '补卡') {
|
|
409
|
-
name = 'rs/report/replace_sell'
|
|
410
|
-
} else if (type === '发卡售气') {
|
|
411
|
-
name = 'rs/report/sendCard_bill'
|
|
412
|
-
} else if (type === '卡表收费' || type === '卡表赠气' || type === '卡表收费撤销') {
|
|
413
|
-
name = 'rs/report/card_bill'
|
|
414
|
-
} else if (type === '预存缴费') {
|
|
415
|
-
name = 'rs/report/pre_sell'
|
|
416
|
-
} else if (type === '退费') {
|
|
417
|
-
name = 'rs/report/refund_sell'
|
|
418
|
-
} else if (type === '调价补费') {
|
|
419
|
-
name = 'rs/report/compensation_bill'
|
|
420
|
-
} else if (type === '数码表收费') {
|
|
421
|
-
name = 'rs/report/digtial_bill'
|
|
422
|
-
}
|
|
423
|
-
return name
|
|
424
|
-
},
|
|
425
|
-
// 撤销为统一操作,所以写到基础组件中
|
|
426
|
-
operateCancel (row) {
|
|
427
|
-
let cancel = cancelGen(this, row)
|
|
428
|
-
co(cancel)
|
|
429
|
-
},
|
|
430
|
-
selfSearch (args) {
|
|
431
|
-
// if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
432
|
-
// args.condition += `and f_filialeids = '${this.$login.f.f_orgids}'`
|
|
433
|
-
// }
|
|
434
|
-
if (this.f_orgid) {
|
|
435
|
-
args.condition += `and r.f_orgid in ${this.f_orgid}`
|
|
436
|
-
} else {
|
|
437
|
-
args.condition += `and r.f_orgid = '${this.$login.f.orgid}'`
|
|
438
|
-
}
|
|
439
|
-
this.model.search(args.condition, args.model)
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
watch: {
|
|
443
|
-
// 'userinfoid' (newVal) {
|
|
444
|
-
// this.model.rows={}
|
|
445
|
-
// if (newVal && newVal !== '') {
|
|
446
|
-
// this.$nextTick(function () {
|
|
447
|
-
// this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
|
|
448
|
-
// }.bind(this))
|
|
449
|
-
// }else{
|
|
450
|
-
// this.$nextTick(function () {
|
|
451
|
-
// this.$refs.paged.$refs.cri.model.f_userinfo_code = ""
|
|
452
|
-
// }.bind(this))
|
|
453
|
-
// }
|
|
454
|
-
// this.$refs.paged.$refs.cri.model.f_operat_type = ''
|
|
455
|
-
// }
|
|
456
|
-
'userinfoid' (newVal) {
|
|
457
|
-
if (newVal && newVal !== '') {
|
|
458
|
-
this.$nextTick(function () {
|
|
459
|
-
this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
|
|
460
|
-
}.bind(this))
|
|
461
|
-
this.$refs.paged.$refs.cri.model.f_operat_type = ''
|
|
462
|
-
let condition = `f_userinfo_code = '${newVal}' and u.f_filialeid = '${this.$login.f.orgid}'`
|
|
463
|
-
this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
464
|
-
if (a.data.length === 0) {
|
|
465
|
-
this.model.rows = []
|
|
466
|
-
this.model.state = '错误'
|
|
467
|
-
this.model.error = '没有符合条件的记录'
|
|
468
|
-
return
|
|
469
|
-
}
|
|
470
|
-
this.model.state = '正确'
|
|
471
|
-
this.model.rows = a.data
|
|
472
|
-
})
|
|
473
|
-
} else {
|
|
474
|
-
this.model.rows = {}
|
|
475
|
-
this.$nextTick(function () {
|
|
476
|
-
this.$refs.paged.$refs.cri.model.f_userinfo_code = ''
|
|
477
|
-
}.bind(this))
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
</script>
|
|
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 === '用户退费' || row.type === '机表收费' ||
|
|
66
|
+
row.type === '卡表收费' || row.type === '超用收费' || row.type === '发卡售气' || row.type === '其他收费' ||
|
|
67
|
+
row.type === '换表' || row.state === 1 || row.type==='调价补费' || row.type==='卡表赠气' ||
|
|
68
|
+
row.type==='物联网赠气'|| row.type==='物联网赠费'|| row.type==='卡表赠费'|| row.type==='卡表赠气'||
|
|
69
|
+
row.type==='卡表收费撤销'||row.type==='物联网补费' || row.type==='物联网扣费'||row.type==='机表补费'||
|
|
70
|
+
row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气'||row.type==='气损收费') && row.type!=='新增户档案' && row.type!=='转气转出' && row.type!=='转气转入'">
|
|
71
|
+
<button data-toggle="dropdown" style="border: 0px;background: none;" type="button" v-if="row.f_user_state==='正常'||row.f_user_state==='预备'||row.type==='气损收费' ">
|
|
72
|
+
<span class="glyphicon glyphicon-th-list"></span>
|
|
73
|
+
</button>
|
|
74
|
+
<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==='气损收费' ">
|
|
75
|
+
<li
|
|
76
|
+
v-if="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==='气损收费' ">
|
|
77
|
+
<a @click.stop="$parent.$parent.$parent.operate('票据补打', row)" href="#">票据补打</a>
|
|
78
|
+
</li>
|
|
79
|
+
<li
|
|
80
|
+
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==='物联网赠气')">
|
|
81
|
+
<a @click.stop="$parent.$parent.$parent.operate('撤销', row)" href="#">撤销</a>
|
|
82
|
+
</li>
|
|
83
|
+
<li v-else>
|
|
84
|
+
<a href="#">暂无其他操作</a>
|
|
85
|
+
</li>
|
|
86
|
+
</ul>
|
|
87
|
+
</dropdown>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
</span>
|
|
91
|
+
<div class="panel-body" v-if="$parent.$parent.$parent.isSelected(row)">
|
|
92
|
+
<salecardgas-detail :data="row" v-if="row.type === '发卡售气'"></salecardgas-detail>
|
|
93
|
+
<movemeter-detail :data="row" v-if="row.type === '迁表'"></movemeter-detail>
|
|
94
|
+
<salecardgas-detail :data="row" v-if="row.type === '换表发卡'"></salecardgas-detail>
|
|
95
|
+
<cardmetercenter-detail :data="row" v-if="row.type === '卡表收费'||row.type === '数码表收费' "></cardmetercenter-detail>
|
|
96
|
+
<movegas-detail :data="row" v-if="row.type === '转气转出'"></movegas-detail>
|
|
97
|
+
<movegas-detail :data="row" v-if="row.type === '转气转入'"></movegas-detail>
|
|
98
|
+
<machinemetercenter-detail :data="row" v-if="row.type === '机表收费'"></machinemetercenter-detail>
|
|
99
|
+
<autoaccounts-detail :data="row" v-if="row.type === '自动下账'"></autoaccounts-detail>
|
|
100
|
+
<bankdk-detail :data="row" v-if="row.type === '银行代扣'"></bankdk-detail>
|
|
101
|
+
<bank-pay :data="row" v-if="row.type === '银行支付'"></bank-pay>
|
|
102
|
+
<wechat-pay :data="row" v-if="row.type === '微信支付'"></wechat-pay>
|
|
103
|
+
<disablemanage-detail :data="row" v-if="row.type === '停用'"></disablemanage-detail>
|
|
104
|
+
<enablemanage-detail :data="row" v-if="row.type === '启用'"></enablemanage-detail>
|
|
105
|
+
<replacecardmanage-detail :data="row" v-if="row.type === '补卡'"></replacecardmanage-detail>
|
|
106
|
+
<machinecard-detail :data="row" v-if="row.type === '机表补卡'"></machinecard-detail>
|
|
107
|
+
<transfermanage-detail :data="row" v-if="row.type === '过户'"></transfermanage-detail>
|
|
108
|
+
<othercharge-detail :data="row" v-if="row.type === '其他收费欠费登记'||row.type === '其他收费'||row.type === '维修收费'"></othercharge-detail>
|
|
109
|
+
<inputtorchange-detail :data="row" v-if="row.type === '抄表员变更'"></inputtorchange-detail>
|
|
110
|
+
<offgasaddgas-detail :data="row"
|
|
111
|
+
v-if=" row.type === '换表补气' ||row.type === '其他补气' || row.type === '清零补气' || row.type === '掉气补气'||row.type==='物联网补费'||row.type==='物联网扣费'||row.type==='机表补费'||row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气' " ></offgasaddgas-detail>
|
|
112
|
+
<iotopen-detail :data="row" v-if="row.type === '开通'"></iotopen-detail>
|
|
113
|
+
<iotmetercenter-detail :data="row" v-if="row.type === '物联网收费' || row.type === '物联网开户' || row.type === '调价退费' || row.type === '调价补费'||row.type === '退押金' "></iotmetercenter-detail>
|
|
114
|
+
<overuserchange-detail :data="row" v-if="row.type === '超用收费'"></overuserchange-detail>
|
|
115
|
+
<adduser-detail :data="row" v-if="row.type === '新增户档案'"></adduser-detail>
|
|
116
|
+
<gaspricechange-detail :data="row" v-if="row.type === '气价变更'"></gaspricechange-detail>
|
|
117
|
+
<userchange-detail :data="row" v-if="row.type === '档案变更'"></userchange-detail>
|
|
118
|
+
<changemeter-detail :data="row" v-if="row.type === '换新表' || row.type === '气表清零'"></changemeter-detail>
|
|
119
|
+
<changeflowmeter-detail :data="row" v-if="row.type === '换卡控流量计'"></changeflowmeter-detail>
|
|
120
|
+
<cardoveruser-detail :data="row" v-if="row.type === '卡表超用'||row.type === '超用'"></cardoveruser-detail>
|
|
121
|
+
<cancellation-detail :data="row" v-if="row.type === '销户'"></cancellation-detail>
|
|
122
|
+
<refund-detail :data="row" v-if="row.type === '退费'"></refund-detail>
|
|
123
|
+
|
|
124
|
+
<change-meter-cancel :data="row" v-if="row.type === '换表撤销'"></change-meter-cancel>
|
|
125
|
+
<autoaccounts-cancel-detail :data="row" v-if="row.type === '自动下账撤销'"></autoaccounts-cancel-detail>
|
|
126
|
+
<transfermanage-cancel-detail :data="row" v-if="row.type === '过户撤销'"></transfermanage-cancel-detail>
|
|
127
|
+
<cardmetercenter-cancel-detail :data="row" v-if="row.type === '卡表收费撤销'"></cardmetercenter-cancel-detail>
|
|
128
|
+
<machinemetercenter-cancel-detail :data="row"
|
|
129
|
+
v-if="row.type === '机表收费撤销'"></machinemetercenter-cancel-detail>
|
|
130
|
+
<machinemetercenter-cancel-detail :data="row"
|
|
131
|
+
v-if="row.type == '预存缴费撤销'"></machinemetercenter-cancel-detail>
|
|
132
|
+
<othercharge-cancel-detail :data="row" v-if="row.type === '其他收费撤销'"></othercharge-cancel-detail>
|
|
133
|
+
<replacecardmanage-cancel-detail :data="row" v-if="row.type === '补卡撤销'"></replacecardmanage-cancel-detail>
|
|
134
|
+
<iotmetercenter-cancel-detail :data="row" v-if="row.type === '物联网收费撤销'"></iotmetercenter-cancel-detail>
|
|
135
|
+
<feededuction-detail :data="row" v-if="row.type === '补费' ||row.type === '扣费' ||row.type === '补气' ||row.type === '扣气' "></feededuction-detail>
|
|
136
|
+
<with-gas :data="row" v-if="row.type==='物联网赠气' || row.type==='物联网赠费'||row.type==='卡表赠气'||row.type==='卡表赠费'"></with-gas>
|
|
137
|
+
<replace-card-manageDetail :data="row" v-if=" row.type==='物联网补费'||row.type==='物联网扣费'||row.type==='机表补费'||row.type==='机表扣费'||row.type==='物联网补气'||row.type==='物联网扣气' "></replace-card-manageDetail>
|
|
138
|
+
<blacklist-detail :data="row" v-if="row.type ==='拉黑' ||row.type === '取消拉黑' "></blacklist-detail>
|
|
139
|
+
<advance-delivery-detail :data="row" v-if="row.type ==='卡表预交' "></advance-delivery-detail>
|
|
140
|
+
<machinemetercenter-detail :data="row" v-if="row.type === '预存缴费'||row.type == '调价预存'"></machinemetercenter-detail>
|
|
141
|
+
<gasloss-detail :data="row" v-if="row.type === '气损收费'"></gasloss-detail>
|
|
142
|
+
</div>
|
|
143
|
+
<div style="margin-top: 8px;background: #FFF;" v-if="!$parent.$parent.$parent.isSelected(row)">
|
|
144
|
+
<span>{{row.f_describe}}</span>
|
|
145
|
+
</div>
|
|
146
|
+
</panel>
|
|
147
|
+
</accordion>
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
</criteria-paged>
|
|
151
|
+
</partial-view>
|
|
152
|
+
<record-cancel :data="cancel_data" :show.sync="cancel_show" @cancel="cancelOper()" @cancel-success="cancelSucc()" v-if="cancel_show"></record-cancel>
|
|
153
|
+
<reissue-bill :data="reissue_data" :show.sync="reissue_show" @cancel="reissueOper()" @reissue-success="reissueSucc()" v-if="reissue_show"></reissue-bill>
|
|
154
|
+
</div>
|
|
155
|
+
</template>
|
|
156
|
+
<script>
|
|
157
|
+
/**
|
|
158
|
+
*操作记录信息
|
|
159
|
+
*/
|
|
160
|
+
import {PagedList} from 'vue-client'
|
|
161
|
+
import co from 'co'
|
|
162
|
+
|
|
163
|
+
let cancelGen = function *(self, data) {
|
|
164
|
+
let msgRet = yield self.$showMessage('撤销后数据不可恢复,确认撤销录入吗?', ['confirm', 'cancel'])
|
|
165
|
+
if (msgRet === 'cancel') return
|
|
166
|
+
// 撤销操作完成,刷新界面
|
|
167
|
+
self.search()
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* 发票补打
|
|
172
|
+
*/
|
|
173
|
+
let reprintGen = function *(self, row) {
|
|
174
|
+
try {
|
|
175
|
+
row.f_bill_type = row.type
|
|
176
|
+
row.f_bill_style = '普通收据'
|
|
177
|
+
row.f_operator = self.$login.f.name
|
|
178
|
+
row.f_operatorid = self.$login.f.id
|
|
179
|
+
row.f_orgid = self.$login.f.orgid
|
|
180
|
+
row.f_orgname = self.$login.f.orgs
|
|
181
|
+
row.f_depid = self.$login.f.depids
|
|
182
|
+
row.f_depname = self.$login.f.deps
|
|
183
|
+
row.billUrl = self.getBillUrl(row.type)
|
|
184
|
+
self.reissue_data = row
|
|
185
|
+
self.reissue_show = true
|
|
186
|
+
} catch (error) {
|
|
187
|
+
if (error.status) {
|
|
188
|
+
self.$warn(`加载数据出错, ${JSON.stringify(error)}`, 'CardList')
|
|
189
|
+
}
|
|
190
|
+
throw error
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
let asyncCardList = async function (self) {
|
|
194
|
+
await self.$getConfig(self, 'CardList')
|
|
195
|
+
console.log('操作汇总config', self.config)
|
|
196
|
+
}
|
|
197
|
+
export default {
|
|
198
|
+
title: '操作汇总',
|
|
199
|
+
data () {
|
|
200
|
+
return {
|
|
201
|
+
config: {
|
|
202
|
+
cancleother: false, // 默认可以撤销别人的操作
|
|
203
|
+
cancletime: true // 默认可以冲正今天以前的操作
|
|
204
|
+
},
|
|
205
|
+
model: new PagedList(`${this.sqlurl}`, 9999,
|
|
206
|
+
{
|
|
207
|
+
items: '"' + this.items + '"',
|
|
208
|
+
tablename: '"' + this.tablename + '"',
|
|
209
|
+
orderitem: '"' + this.orderitem + '"'
|
|
210
|
+
}),
|
|
211
|
+
show: false,
|
|
212
|
+
asideTitle: '用户操作',
|
|
213
|
+
row: Object,
|
|
214
|
+
comp: null,
|
|
215
|
+
operationtypes: this.$appdata.getParam('操作类型') ? [{
|
|
216
|
+
label: '全部',
|
|
217
|
+
value: ''
|
|
218
|
+
}, ...this.$appdata.getParam('操作类型')] : [],
|
|
219
|
+
|
|
220
|
+
cancel_show: false,
|
|
221
|
+
cancel_data: null,
|
|
222
|
+
criteriaShow:false,
|
|
223
|
+
reissue_show: false,
|
|
224
|
+
reissue_data: null,
|
|
225
|
+
authArr: this.$login.r ? this.$login.r : []
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
props: {
|
|
229
|
+
sqlurl: {
|
|
230
|
+
type: String,
|
|
231
|
+
default: 'rs/sql/getRecord'
|
|
232
|
+
},
|
|
233
|
+
items: {
|
|
234
|
+
type: String,
|
|
235
|
+
default: '*'
|
|
236
|
+
},
|
|
237
|
+
tablename: {
|
|
238
|
+
type: String,
|
|
239
|
+
default: 't_record'
|
|
240
|
+
},
|
|
241
|
+
orderitem: {
|
|
242
|
+
type: String,
|
|
243
|
+
default: 'f_operate_date desc'
|
|
244
|
+
},
|
|
245
|
+
btns: {
|
|
246
|
+
type: Array
|
|
247
|
+
},
|
|
248
|
+
operationtype: {
|
|
249
|
+
type: String,
|
|
250
|
+
default: ''
|
|
251
|
+
},
|
|
252
|
+
userinfoid: {},
|
|
253
|
+
isOperate: {
|
|
254
|
+
type: Boolean,
|
|
255
|
+
default: true
|
|
256
|
+
},
|
|
257
|
+
f_orgid: ''
|
|
258
|
+
},
|
|
259
|
+
ready () {
|
|
260
|
+
this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
|
|
261
|
+
asyncCardList(this)
|
|
262
|
+
// this.search()
|
|
263
|
+
},
|
|
264
|
+
methods: {
|
|
265
|
+
dateDes (date) {
|
|
266
|
+
return this.$login.dateDescripte(date)
|
|
267
|
+
},
|
|
268
|
+
selected (row) {
|
|
269
|
+
if (this.row === row) {
|
|
270
|
+
this.row = null
|
|
271
|
+
} else {
|
|
272
|
+
this.row = row
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
isSelected (row) {
|
|
276
|
+
return this.row === row
|
|
277
|
+
},
|
|
278
|
+
search () {
|
|
279
|
+
let condition = '1=1'
|
|
280
|
+
if (this.f_orgid) {
|
|
281
|
+
condition += `and (u.f_filialeid in ${this.f_orgid} or g.f_orgid in ${this.f_orgid}) `
|
|
282
|
+
} else {
|
|
283
|
+
console.log('12143124')
|
|
284
|
+
condition += `and (u.f_filialeid = '${this.$login.f.orgid}' or g.f_orgid ='${this.$login.f.orgid}')`
|
|
285
|
+
}
|
|
286
|
+
this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
287
|
+
if (a.data.length === 0) {
|
|
288
|
+
this.model.rows = []
|
|
289
|
+
this.model.state = '错误'
|
|
290
|
+
this.model.error = '没有符合条件的记录'
|
|
291
|
+
return
|
|
292
|
+
}
|
|
293
|
+
this.model.state = '正确'
|
|
294
|
+
this.model.rows = a.data
|
|
295
|
+
})
|
|
296
|
+
},
|
|
297
|
+
disEvent (btn) {
|
|
298
|
+
this.$dispatch(`${btn.eventName}`)
|
|
299
|
+
},
|
|
300
|
+
async operate (title, row) {
|
|
301
|
+
|
|
302
|
+
console.log('撤销的这条数据的信息', row)
|
|
303
|
+
if (title === '撤销') {
|
|
304
|
+
if(row.type === '卡表收费'){
|
|
305
|
+
// let getiswrite = await this.$SqlService.singleTable('t_sellinggas', `id = '${row.id}'`)
|
|
306
|
+
// if(getiswrite.data[0].f_write_card ==='已写卡'){
|
|
307
|
+
// this.$showAlert('此笔卡表收费为需要写卡的记录,请先读卡再撤销', 'warning', 1500)
|
|
308
|
+
// return
|
|
309
|
+
// }
|
|
310
|
+
if(!this.authArr.includes('无卡收费撤销权限')){
|
|
311
|
+
this.$showAlert('当前用户没有【无卡收费撤销权限】,请联系管理员获取此权限后再进行该操作!', 'warning', 3000)
|
|
312
|
+
return
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
if (row.type === '物联网收费' || row.type === '卡表赠气' || row.type === '物联网赠费' || row.type === '卡表赠费' || row.type === '物联网赠气') {
|
|
316
|
+
let getWebHand = await this.$SqlService.singleTable('t_handplan', `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_userfiles_id = '${row.f_userfiles_id}'`)
|
|
317
|
+
console.log('长度', getWebHand)
|
|
318
|
+
if (getWebHand.data.length > 0) {
|
|
319
|
+
this.$showAlert('此次物联网收费之后有结算,不能撤销此纪录', 'warning', 1500)
|
|
320
|
+
return
|
|
321
|
+
}
|
|
322
|
+
} else if (row.type === '机表收费') {
|
|
323
|
+
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}'`)
|
|
324
|
+
|
|
325
|
+
console.log('长度', getWebHand)
|
|
326
|
+
if (getWebHand.data.length > 0) {
|
|
327
|
+
this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
|
|
328
|
+
return
|
|
329
|
+
}
|
|
330
|
+
let sql = `select th.*from t_handplan th
|
|
331
|
+
left join t_sellinghand tsh on th.id=tsh.f_hand_id
|
|
332
|
+
where th.f_hand_state = '有效' and th.f_input_date > '${row.f_operate_date}' and tsh.f_debt_money>0
|
|
333
|
+
and th.f_userfiles_id = '${row.f_userfiles_id}' and tsh.f_state='有效'`
|
|
334
|
+
let getwate = await this.$resetpost('rs/logic/sqlquery', {data: {sql: sql}})
|
|
335
|
+
if (getwate.data.length > 0) {
|
|
336
|
+
this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
|
|
337
|
+
return
|
|
338
|
+
}
|
|
339
|
+
} else {
|
|
340
|
+
if (this.authArr.includes('冲正权限')) {
|
|
341
|
+
if (this.config.cancleother) {
|
|
342
|
+
if (row.f_operator != this.$login.f.name) {
|
|
343
|
+
this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
|
|
344
|
+
return
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
if (this.config.cancletime) {
|
|
348
|
+
let a = this.$login.toStandardYearMonth()
|
|
349
|
+
console.log('当前时间', a < row.f_operate_date)
|
|
350
|
+
if (!this.authArr.includes('跨月撤销')) {
|
|
351
|
+
if (row.f_operate_date < a) {
|
|
352
|
+
this.$showAlert('不能撤销不是当月的操作', 'warning', 1500)
|
|
353
|
+
return
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
} else {
|
|
358
|
+
this.$showAlert('当前用户没有*冲正权限*', 'warning', 1500)
|
|
359
|
+
return
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
if (title === '撤销') {
|
|
365
|
+
this.cancel_show = true
|
|
366
|
+
this.cancel_data = row
|
|
367
|
+
} else {
|
|
368
|
+
let reprint = reprintGen(this, row)
|
|
369
|
+
return co(reprint)
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
cancelOper () {
|
|
373
|
+
this.cancel_data = null
|
|
374
|
+
this.cancel_show = false
|
|
375
|
+
},
|
|
376
|
+
cancelSucc () {
|
|
377
|
+
console.log("-----------------------------撤销成功了,隐藏掉")
|
|
378
|
+
this.cancel_show = false
|
|
379
|
+
this.$dispatch('refresh')
|
|
380
|
+
},
|
|
381
|
+
reissueOper () {
|
|
382
|
+
this.reissue_data = null
|
|
383
|
+
this.reissue_show = false
|
|
384
|
+
},
|
|
385
|
+
reissueSucc () {
|
|
386
|
+
this.reissue_show = false
|
|
387
|
+
this.$dispatch('refresh')
|
|
388
|
+
},
|
|
389
|
+
|
|
390
|
+
getBillUrl (type) {
|
|
391
|
+
let name = ''
|
|
392
|
+
// 根据type数据 选择调用的Logic
|
|
393
|
+
if (type === '过户') {
|
|
394
|
+
name = 'rs/report/transfer_bill'
|
|
395
|
+
} else if (type === '换表') {
|
|
396
|
+
console.log('看看row..', this.row)
|
|
397
|
+
name = 'rs/report/change_meter'
|
|
398
|
+
} else if (type === '机表收费') {
|
|
399
|
+
name = 'rs/report/machine_bill'
|
|
400
|
+
} else if (type === '物联网收费' || type === '物联网开户' || type === '物联网赠气') {
|
|
401
|
+
name = 'rs/report/iot_bill'
|
|
402
|
+
} else if (type === '物联网补费' || type === '物联网扣费' || type === '物联网补气' || type === '物联网扣气' || type === '机表补费' || type === '机表扣费') {
|
|
403
|
+
name = 'rs/report/MakeUp'
|
|
404
|
+
} else if (type === '超用收费') {
|
|
405
|
+
name = 'rs/report/overuse_bill'
|
|
406
|
+
} else if (type === '其他收费') {
|
|
407
|
+
name = 'rs/report/otherCharge_bill'
|
|
408
|
+
} else if (type === '补卡') {
|
|
409
|
+
name = 'rs/report/replace_sell'
|
|
410
|
+
} else if (type === '发卡售气') {
|
|
411
|
+
name = 'rs/report/sendCard_bill'
|
|
412
|
+
} else if (type === '卡表收费' || type === '卡表赠气' || type === '卡表收费撤销') {
|
|
413
|
+
name = 'rs/report/card_bill'
|
|
414
|
+
} else if (type === '预存缴费') {
|
|
415
|
+
name = 'rs/report/pre_sell'
|
|
416
|
+
} else if (type === '退费') {
|
|
417
|
+
name = 'rs/report/refund_sell'
|
|
418
|
+
} else if (type === '调价补费') {
|
|
419
|
+
name = 'rs/report/compensation_bill'
|
|
420
|
+
} else if (type === '数码表收费') {
|
|
421
|
+
name = 'rs/report/digtial_bill'
|
|
422
|
+
}
|
|
423
|
+
return name
|
|
424
|
+
},
|
|
425
|
+
// 撤销为统一操作,所以写到基础组件中
|
|
426
|
+
operateCancel (row) {
|
|
427
|
+
let cancel = cancelGen(this, row)
|
|
428
|
+
co(cancel)
|
|
429
|
+
},
|
|
430
|
+
selfSearch (args) {
|
|
431
|
+
// if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
|
|
432
|
+
// args.condition += `and f_filialeids = '${this.$login.f.f_orgids}'`
|
|
433
|
+
// }
|
|
434
|
+
if (this.f_orgid) {
|
|
435
|
+
args.condition += `and r.f_orgid in ${this.f_orgid}`
|
|
436
|
+
} else {
|
|
437
|
+
args.condition += `and r.f_orgid = '${this.$login.f.orgid}'`
|
|
438
|
+
}
|
|
439
|
+
this.model.search(args.condition, args.model)
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
watch: {
|
|
443
|
+
// 'userinfoid' (newVal) {
|
|
444
|
+
// this.model.rows={}
|
|
445
|
+
// if (newVal && newVal !== '') {
|
|
446
|
+
// this.$nextTick(function () {
|
|
447
|
+
// this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
|
|
448
|
+
// }.bind(this))
|
|
449
|
+
// }else{
|
|
450
|
+
// this.$nextTick(function () {
|
|
451
|
+
// this.$refs.paged.$refs.cri.model.f_userinfo_code = ""
|
|
452
|
+
// }.bind(this))
|
|
453
|
+
// }
|
|
454
|
+
// this.$refs.paged.$refs.cri.model.f_operat_type = ''
|
|
455
|
+
// }
|
|
456
|
+
'userinfoid' (newVal) {
|
|
457
|
+
if (newVal && newVal !== '') {
|
|
458
|
+
this.$nextTick(function () {
|
|
459
|
+
this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
|
|
460
|
+
}.bind(this))
|
|
461
|
+
this.$refs.paged.$refs.cri.model.f_operat_type = ''
|
|
462
|
+
let condition = `f_userinfo_code = '${newVal}' and u.f_filialeid = '${this.$login.f.orgid}'`
|
|
463
|
+
this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
|
|
464
|
+
if (a.data.length === 0) {
|
|
465
|
+
this.model.rows = []
|
|
466
|
+
this.model.state = '错误'
|
|
467
|
+
this.model.error = '没有符合条件的记录'
|
|
468
|
+
return
|
|
469
|
+
}
|
|
470
|
+
this.model.state = '正确'
|
|
471
|
+
this.model.rows = a.data
|
|
472
|
+
})
|
|
473
|
+
} else {
|
|
474
|
+
this.model.rows = {}
|
|
475
|
+
this.$nextTick(function () {
|
|
476
|
+
this.$refs.paged.$refs.cri.model.f_userinfo_code = ''
|
|
477
|
+
}.bind(this))
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
</script>
|