sale-client 4.2.71 → 4.2.72
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/build/dev-server.js +58 -36
- package/index.html +7 -2
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/components/revenue/Common/EticketPrint.vue +2 -2
- package/src/components/revenue/HandManager/CardHand.vue +6 -6
- package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
- package/src/components/revenue/cardHandManage/cardDown.vue +6 -6
- package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
- package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
- package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +1 -1
- package/src/components/webMeter/paramSave/ParamSetForm.vue +1 -1
- package/src/filiale/alashan/FileUserFiles.vue +1 -1
- package/src/filiale/alashan/eticket/EticketPrint.vue +2 -2
- package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
- package/src/filiale/ancheng/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/bayan/ChargeList.vue +1010 -1010
- package/src/filiale/bayan/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/bayan/StockListmain.vue +543 -543
- package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
- package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
- package/src/filiale/bazhong/sale.js +8 -8
- package/src/filiale/beifangshiye/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
- package/src/filiale/chengtou/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/dexin/FileUserFiles.vue +1 -1
- package/src/filiale/dongguan/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/dongguan/components/common/userinfo_detail/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/fugou/FileUserFiles.vue +1 -1
- package/src/filiale/ganquan/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/gaomi/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/gehua/FileManageNew/FileUserFiles.vue +1 -1
- package/src/filiale/gehua/FileUserFiles.vue +1 -1
- package/src/filiale/guangxi/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/haile/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/hantou/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/huaran/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/huayin/FileUserFiles.vue +1 -1
- package/src/filiale/jingwei/FileUserFiles.vue +1 -1
- package/src/filiale/jingyang/EticketPrint.vue +2 -2
- package/src/filiale/jingyang/GovernmentSell.vue +1 -1
- package/src/filiale/jinhuang/WebHand.vue +1026 -1026
- package/src/filiale/jinhuang/cardsHand.vue +8 -8
- package/src/filiale/kelai/FileUserFilesKeLai.vue +1 -1
- package/src/filiale/konggang/FileUserFiles.vue +1 -1
- package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
- package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
- package/src/filiale/macheng/EstimateManager.vue +1 -1
- package/src/filiale/macheng/FileUserFiles.vue +1 -1
- package/src/filiale/meihekou/FileUserFiles.vue +1 -1
- package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
- package/src/filiale/ningjin/FileUserFiles.vue +1 -1
- package/src/filiale/qianneng/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +1 -1
- package/src/filiale/qingjian/FileUserFiles.vue +1 -1
- package/src/filiale/rizhao/FileUserFiles.vue +1 -1
- package/src/filiale/rongcheng/FileUserFiles.vue +1 -1
- package/src/filiale/rongchuang/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
- package/src/filiale/ronghao/CardService.js +2144 -2144
- package/src/filiale/ronghao/InsuranceManage.vue +58 -58
- package/src/filiale/ronghao/MachineChargeService.js +149 -149
- package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
- package/src/filiale/ronghao/PaymentCode.vue +174 -174
- package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
- package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
- package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
- package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
- package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
- package/src/filiale/ronghao/Upload.vue +654 -654
- package/src/filiale/ronghao/cardDown.vue +1141 -1141
- package/src/filiale/ronghao/changemeterOperate.vue +315 -315
- package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
- package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
- package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
- package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
- package/src/filiale/ronghao/machineDown.vue +1176 -1176
- package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
- package/src/filiale/ronghao/specificInformation.vue +537 -537
- package/src/filiale/shanggao/FileUserFiles.vue +1 -1
- package/src/filiale/shanxian/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/shanxian/components/webMeter/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/shaoguan/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/shaoguan/Message/MessageList.vue +1 -1
- package/src/filiale/shexian/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/wenxi/FileUserFiles.vue +1 -1
- package/src/filiale/wuan/FileUserFiles.vue +1 -1
- package/src/filiale/xinkang/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/yangchun/ChargeList.vue +954 -954
- package/src/filiale/yangchun/EticketPrint.vue +2 -2
- package/src/filiale/yangchun/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/yuncheng/FileManageService.js +469 -469
- package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
- package/src/filiale/zhongsheng/BlackListList.vue +293 -293
- package/src/filiale/zhongsheng/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/zhongyi/FileUserFiles.vue +1 -1
- package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/vcs-1/gc.properties +0 -0
- package/src/components/FilesManage/addressts/FileUserFilests.vue +0 -671
- package/src/components/FilesManage/ncUserinfoList.vue +0 -315
- package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +0 -107
- package/src/components/SendCard/SendCardData.vue +0 -208
- package/src/components/accounts/accountAdd.vue +0 -276
- package/src/components/accounts/accountsList.vue +0 -183
- package/src/components/accounts/accountsManage.vue +0 -87
- package/src/components/common/chargeinfo/chargeinfo.vue +0 -55
- package/src/components/common/userinfo_detail/config/exportConfig.js +0 -85
- package/src/components/ncarchives/ncArchivesAdd.vue +0 -468
- package/src/components/ncarchives/ncArchivesList.vue +0 -159
- package/src/components/ncarchives/ncUserfilesList.vue +0 -373
- package/src/components/ncarchives/ncarchivesmanage.vue +0 -80
- package/src/components/revenue/IOTArrears/arrears.vue +0 -323
- package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +0 -369
- package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +0 -59
- package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +0 -59
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +0 -73
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +0 -73
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +0 -199
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +0 -24
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +0 -24
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +0 -185
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +0 -185
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +0 -356
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +0 -148
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +0 -136
- package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +0 -65
- package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +0 -483
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +0 -279
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +0 -265
- package/src/components/thirdapply/thirdAdd.vue +0 -289
- package/src/components/thirdapply/thirdList.vue +0 -162
- package/src/components/thirdapply/thirdManage.vue +0 -74
- package/src/components/webMeter/InstructQuery.vue +0 -414
- package/src/components/webMeter/ParamSet/ParamSet.vue +0 -556
- package/src/components/webMeter/ParamSet/ParamSetForm.vue +0 -296
- package/src/components/webMeter/WebUserHand.vue +0 -483
- package/src/components/webMeter/instructionView/NewQueryInstruct.vue +0 -509
- package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +0 -48
- package/src/components/webMeter/webManage/NewMeterList.vue +0 -461
- package/src/plugins/FileManageServicets.js +0 -214
- package/src/plugins/GetImg.js +0 -53
|
@@ -1,315 +1,315 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<validator name='a' @valid="addressValid(true)" @invalid="addressValid(false)">
|
|
4
|
-
<form class="form-horizontal">
|
|
5
|
-
<div class="row">
|
|
6
|
-
<div class="col-sm-4">
|
|
7
|
-
<label class="font_normal_body">用户姓名</label>
|
|
8
|
-
<input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
|
|
9
|
-
</div>
|
|
10
|
-
<div class="col-sm-4">
|
|
11
|
-
<label class="font_normal_body">换表类型</label>
|
|
12
|
-
<input type="text" v-model="model.f_type" disabled=disabled style="width: 60%" class="input_search">
|
|
13
|
-
</div>
|
|
14
|
-
<div class="col-sm-4">
|
|
15
|
-
<label class="font_normal_body">换表费 </label>
|
|
16
|
-
<input type="text" v-model="model.f_changemeter_fee" disabled=disabled style="width: 60%"
|
|
17
|
-
class="input_search">
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<div class="row">
|
|
22
|
-
<div class="col-sm-4">
|
|
23
|
-
<label class="font_normal_body">旧表号 </label>
|
|
24
|
-
<input type="text" v-model="model.f_meternumber_old" disabled=disabled style="width: 60%"
|
|
25
|
-
class="input_search">
|
|
26
|
-
</div>
|
|
27
|
-
<div class="col-sm-4">
|
|
28
|
-
<label class="font_normal_body">新表号 </label>
|
|
29
|
-
<input type="text" v-model="model.f_meternumber" disabled=disabled style="width: 60%" class="input_search">
|
|
30
|
-
</div>
|
|
31
|
-
<div class="col-sm-4">
|
|
32
|
-
<label class="font_normal_body">旧表品牌</label>
|
|
33
|
-
<input type="text" v-model="model.f_meter_brand_old" disabled=disabled style="width: 60%"
|
|
34
|
-
class="input_search">
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<div class="row">
|
|
39
|
-
<div class="col-sm-4">
|
|
40
|
-
<label class="font_normal_body">新表品牌</label>
|
|
41
|
-
<input type="text" v-model="model.f_meter_brand" disabled=disabled style="width: 60%" class="input_search">
|
|
42
|
-
</div>
|
|
43
|
-
<div class="col-sm-4">
|
|
44
|
-
<label class="font_normal_body">补气量 </label>
|
|
45
|
-
<input type="text" v-model="model.f_remanent_gas" disabled=disabled style="width: 60%" class="input_search">
|
|
46
|
-
</div>
|
|
47
|
-
<div class="col-sm-4">
|
|
48
|
-
<label class="font_normal_body">补气金额</label>
|
|
49
|
-
<input type="text" v-model="model.f_remanent_money" disabled=disabled style="width: 60%"
|
|
50
|
-
class="input_search">
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="row">
|
|
54
|
-
<div class="col-sm-4">
|
|
55
|
-
<label class="font_normal_body">换表状态</label>
|
|
56
|
-
<input type="text" v-model="model.f_state" disabled=disabled style="width: 60%" class="input_search">
|
|
57
|
-
<!-- <v-select :value.sync="model.f_changemeter_state" v-model="model.f_changemeter_state"-->
|
|
58
|
-
<!-- :options='changestate' placeholder='换表状态'-->
|
|
59
|
-
<!-- :value-single="true"-->
|
|
60
|
-
<!-- :search="false"-->
|
|
61
|
-
<!-- close-on-select></v-select>-->
|
|
62
|
-
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
</div>
|
|
66
|
-
<div class="row">
|
|
67
|
-
<div class="col-sm-4">
|
|
68
|
-
<label class="font_normal_body">换表人 </label>
|
|
69
|
-
<input type="text" v-model="model.f_change_operator" style="width: 60%" class="input_search">
|
|
70
|
-
</div>
|
|
71
|
-
<div class="col-sm-4 form-group">
|
|
72
|
-
<label class="font_normal_body" title="参数:操作人员查询">操作人员</label>
|
|
73
|
-
<v-select :value.sync="model.f_operatorid"
|
|
74
|
-
v-model="model.f_operatorid"
|
|
75
|
-
:value-single="true" @change="selectoperator()"
|
|
76
|
-
:options='foperator'
|
|
77
|
-
close-on-select></v-select>
|
|
78
|
-
<!-- @click="selectoperator"-->
|
|
79
|
-
</div>
|
|
80
|
-
<div class="col-sm-4">
|
|
81
|
-
<label class="font_normal_body">换表日期</label>
|
|
82
|
-
<datepicker placeholder="换表日期" style="width: 60%"
|
|
83
|
-
v-model="model.f_operate_date"
|
|
84
|
-
:value.sync="model.f_operate_date"
|
|
85
|
-
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
86
|
-
</datepicker>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
<div class="row">
|
|
90
|
-
<div class="col-sm-8">
|
|
91
|
-
<label class="font_normal_body">地  址</label>
|
|
92
|
-
<input type="text" v-model="model.f_address" disabled=disabled style="width: 80%" class="input_search">
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
<!-- <div class="row">-->
|
|
96
|
-
<!-- <div class="col-sm-4">-->
|
|
97
|
-
<!-- <label class="font_normal_body">下发日期</label>-->
|
|
98
|
-
<!-- <datepicker id="f_hand_date"-->
|
|
99
|
-
<!-- placeholder="下发日期"-->
|
|
100
|
-
<!-- style="width:60%"-->
|
|
101
|
-
<!-- v-model="model.f_hand_date"-->
|
|
102
|
-
<!-- :value.sync="model.f_hand_date"-->
|
|
103
|
-
<!-- :format="'yyyy-MM-dd HH:mm:ss'"-->
|
|
104
|
-
<!-- >-->
|
|
105
|
-
<!-- </datepicker>-->
|
|
106
|
-
<!-- </div>-->
|
|
107
|
-
<!-- -->
|
|
108
|
-
|
|
109
|
-
<!-- </div>-->
|
|
110
|
-
|
|
111
|
-
<div class="row">
|
|
112
|
-
<div class="col-sm-8">
|
|
113
|
-
<label class="font_normal_body">换表原因</label>
|
|
114
|
-
<input type="text" v-model="model.f_comments" style="width: 80%" class="input_search">
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
<div class="row">
|
|
118
|
-
<div class="col-sm-8">
|
|
119
|
-
<label class="font_normal_body">其他备注</label>
|
|
120
|
-
<input type="text" v-model="model.f_othereason" style="width: 80%" class="input_search">
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
</form>
|
|
124
|
-
<div style="float: right">
|
|
125
|
-
<button class="button_search" @click="save">保存</button>
|
|
126
|
-
<button class="button_clear" @click="cancel">取消</button>
|
|
127
|
-
</div>
|
|
128
|
-
</validator>
|
|
129
|
-
<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
|
|
130
|
-
<article slot="modal-body">
|
|
131
|
-
<upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="换表" isremark="true"
|
|
132
|
-
style="width:auto"></upload>
|
|
133
|
-
</article>
|
|
134
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
135
|
-
</footer>
|
|
136
|
-
</modal>
|
|
137
|
-
<!--文件上传按钮-->
|
|
138
|
-
<button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
|
|
139
|
-
</div>
|
|
140
|
-
</template>
|
|
141
|
-
<script>
|
|
142
|
-
|
|
143
|
-
import {HttpResetClass} from 'vue-client'
|
|
144
|
-
import * as Util from '../../Util'
|
|
145
|
-
|
|
146
|
-
let readyGen = async function (self) {
|
|
147
|
-
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
148
|
-
await self.$GetSaleParam.initinputtor()
|
|
149
|
-
await self.initoperator()
|
|
150
|
-
}
|
|
151
|
-
export default {
|
|
152
|
-
title: '基本信息',
|
|
153
|
-
|
|
154
|
-
data () {
|
|
155
|
-
return {
|
|
156
|
-
uploadText: '换表',
|
|
157
|
-
// 构建数组来存储对象
|
|
158
|
-
editbank: true,
|
|
159
|
-
recordList: [],
|
|
160
|
-
foperator: [],
|
|
161
|
-
changestate: [{label: '有效', value: '有效'}, {label: '无效', value: '无效'}],
|
|
162
|
-
showfiles: false,
|
|
163
|
-
// meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
|
|
164
|
-
// handstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
|
|
165
|
-
fileNameSet: {
|
|
166
|
-
'f_change_operator': '换表人',
|
|
167
|
-
'f_operate_date': '换表日期',
|
|
168
|
-
'f_comments': '换表原因',
|
|
169
|
-
'f_othereason': '其他备注'
|
|
170
|
-
// 'f_newtable_state':'新表状态'
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
props: {
|
|
175
|
-
oldmodel: Object,
|
|
176
|
-
model: Object
|
|
177
|
-
},
|
|
178
|
-
|
|
179
|
-
ready () {
|
|
180
|
-
this.oldmodel = JSON.parse(JSON.stringify(this.model))
|
|
181
|
-
readyGen(this)
|
|
182
|
-
},
|
|
183
|
-
created () {
|
|
184
|
-
},
|
|
185
|
-
methods: {
|
|
186
|
-
initoperator () {
|
|
187
|
-
this.foperator = []
|
|
188
|
-
const roles = this.$appdata.getSingleValue('换表记录维护操作角色') ? this.$appdata.getSingleValue('换表记录维护操作角色') : '营业员'
|
|
189
|
-
console.log('roles', roles, this.$GetSaleParam.inputtors)
|
|
190
|
-
console.log('this.$login', this.$login, this.oldmodel, this.model)
|
|
191
|
-
let arr = this.$GetSaleParam.inputtors.filter((res) => {
|
|
192
|
-
if (res.rolestr != null && res.rolestr != '') {
|
|
193
|
-
return (res.rolestr.indexOf('收费员') > -1 || res.rolestr.indexOf('话务员') > -1) && res.f_orgid == this.$login.f.orgid
|
|
194
|
-
}
|
|
195
|
-
})
|
|
196
|
-
console.log(arr)
|
|
197
|
-
arr.forEach((res) => {
|
|
198
|
-
this.foperator.push({label: res.name, value: res.id})
|
|
199
|
-
})
|
|
200
|
-
},
|
|
201
|
-
selectoperator () {
|
|
202
|
-
let id = this.model.f_operatorid
|
|
203
|
-
if (!this.model.f_operatorid) {
|
|
204
|
-
return
|
|
205
|
-
}
|
|
206
|
-
let http = new HttpResetClass()
|
|
207
|
-
http.load('POST', 'api/af-revenue/sql/saleSingleTable',
|
|
208
|
-
{
|
|
209
|
-
data: {
|
|
210
|
-
tablename: 't_user',
|
|
211
|
-
condition: `id = '${id}'`
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
215
|
-
console.log('kanak,res', res)
|
|
216
|
-
if (res.data.length > 0) {
|
|
217
|
-
this.model.f_operator = res.data[0].name
|
|
218
|
-
} else {
|
|
219
|
-
this.model.f_operatorid = ''
|
|
220
|
-
this.$showAlert('操作员信息未找到', 'warning', 2000)
|
|
221
|
-
}
|
|
222
|
-
console.log('this.f_operatorid', this.model.f_operator)
|
|
223
|
-
})
|
|
224
|
-
},
|
|
225
|
-
cancel () {
|
|
226
|
-
this.$dispatch('close')
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
uploadFiles () {
|
|
230
|
-
this.showfiles = !this.showfiles
|
|
231
|
-
},
|
|
232
|
-
async save () {
|
|
233
|
-
for (var item in this.model) {
|
|
234
|
-
if (this.model[item] instanceof Array) {
|
|
235
|
-
this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
|
|
236
|
-
}
|
|
237
|
-
if (this.model[item] != this.oldmodel[item]) {
|
|
238
|
-
var car = {
|
|
239
|
-
chinesename: this.fileNameSet[item],
|
|
240
|
-
fieldname: item,
|
|
241
|
-
tablename: 't_changetables',
|
|
242
|
-
oldvalue: this.oldmodel[item],
|
|
243
|
-
newvalue: this.model[item],
|
|
244
|
-
state: '有效',
|
|
245
|
-
modifitime: Util.toStandardTimeString(),
|
|
246
|
-
operator: this.$login.f.name,
|
|
247
|
-
changemeter_id: this.model.id,
|
|
248
|
-
f_operator: this.$login.f.name,
|
|
249
|
-
f_operatorid: this.$login.f.id,
|
|
250
|
-
f_orgid: this.$login.f.orgid,
|
|
251
|
-
f_orgname: this.$login.f.orgs,
|
|
252
|
-
f_depid: this.$login.f.depids,
|
|
253
|
-
f_depname: this.$login.f.deps
|
|
254
|
-
}
|
|
255
|
-
this.recordList.push(car)
|
|
256
|
-
// 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
|
|
257
|
-
console.log(car)
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
await this.$resetpost('api/af-revenue/logic/saveChangeMeterRecord', {
|
|
261
|
-
data: {
|
|
262
|
-
recordlist: this.recordList,
|
|
263
|
-
newData: this.model
|
|
264
|
-
}
|
|
265
|
-
})
|
|
266
|
-
// let changetablesData = {
|
|
267
|
-
// id: this.model.id,
|
|
268
|
-
// f_change_operator: this.model.f_change_operator,
|
|
269
|
-
// f_comments: this.model.f_comments,
|
|
270
|
-
// f_othereason: this.model.f_othereason,
|
|
271
|
-
// f_operate_date: this.model.f_operate_date
|
|
272
|
-
// }
|
|
273
|
-
let sqldata = `update t_changetables set
|
|
274
|
-
f_change_operator ='${this.model.f_change_operator}',
|
|
275
|
-
f_comments ='${this.model.f_comments}',
|
|
276
|
-
f_othereason ='${this.model.f_othereason}',
|
|
277
|
-
f_operate_date='${this.model.f_operate_date}'
|
|
278
|
-
where id ='${this.model.id}'`
|
|
279
|
-
console.log('换表记录修正保存', sqldata)
|
|
280
|
-
await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sqldata}}, {resolveMsg: null, rejectMsg: null})
|
|
281
|
-
// await this.$resetpost('api/af-revenue/entity/save/t_changetables', changetablesData, {resolveMsg: '修改成功', rejectMsg: '未通过,修改出错!!!'})
|
|
282
|
-
// console.log('this.model', this.model)
|
|
283
|
-
this.$dispatch('close')
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
computed: {
|
|
287
|
-
meterstate () {
|
|
288
|
-
return this.$appdata.getParam('抄表状态')
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
inputtores () {
|
|
292
|
-
// 获取抄表员
|
|
293
|
-
console.log('获取抄表员', this.$login.f)
|
|
294
|
-
let rs = new Array()
|
|
295
|
-
if (this.$login.f.f_gasman.length > 0) {
|
|
296
|
-
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
297
|
-
let temp = {
|
|
298
|
-
label: this.$login.f.f_gasman[i].name,
|
|
299
|
-
value: this.$login.f.f_gasman[i].name
|
|
300
|
-
}
|
|
301
|
-
rs.push(temp)
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
// let rs = this.$appdata.getParam('抄表员')
|
|
305
|
-
return rs
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
},
|
|
309
|
-
watch: {
|
|
310
|
-
'model' () {
|
|
311
|
-
this.initoperator()
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<validator name='a' @valid="addressValid(true)" @invalid="addressValid(false)">
|
|
4
|
+
<form class="form-horizontal">
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-sm-4">
|
|
7
|
+
<label class="font_normal_body">用户姓名</label>
|
|
8
|
+
<input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
|
|
9
|
+
</div>
|
|
10
|
+
<div class="col-sm-4">
|
|
11
|
+
<label class="font_normal_body">换表类型</label>
|
|
12
|
+
<input type="text" v-model="model.f_type" disabled=disabled style="width: 60%" class="input_search">
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-sm-4">
|
|
15
|
+
<label class="font_normal_body">换表费 </label>
|
|
16
|
+
<input type="text" v-model="model.f_changemeter_fee" disabled=disabled style="width: 60%"
|
|
17
|
+
class="input_search">
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="row">
|
|
22
|
+
<div class="col-sm-4">
|
|
23
|
+
<label class="font_normal_body">旧表号 </label>
|
|
24
|
+
<input type="text" v-model="model.f_meternumber_old" disabled=disabled style="width: 60%"
|
|
25
|
+
class="input_search">
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-sm-4">
|
|
28
|
+
<label class="font_normal_body">新表号 </label>
|
|
29
|
+
<input type="text" v-model="model.f_meternumber" disabled=disabled style="width: 60%" class="input_search">
|
|
30
|
+
</div>
|
|
31
|
+
<div class="col-sm-4">
|
|
32
|
+
<label class="font_normal_body">旧表品牌</label>
|
|
33
|
+
<input type="text" v-model="model.f_meter_brand_old" disabled=disabled style="width: 60%"
|
|
34
|
+
class="input_search">
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="row">
|
|
39
|
+
<div class="col-sm-4">
|
|
40
|
+
<label class="font_normal_body">新表品牌</label>
|
|
41
|
+
<input type="text" v-model="model.f_meter_brand" disabled=disabled style="width: 60%" class="input_search">
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-sm-4">
|
|
44
|
+
<label class="font_normal_body">补气量 </label>
|
|
45
|
+
<input type="text" v-model="model.f_remanent_gas" disabled=disabled style="width: 60%" class="input_search">
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-4">
|
|
48
|
+
<label class="font_normal_body">补气金额</label>
|
|
49
|
+
<input type="text" v-model="model.f_remanent_money" disabled=disabled style="width: 60%"
|
|
50
|
+
class="input_search">
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="row">
|
|
54
|
+
<div class="col-sm-4">
|
|
55
|
+
<label class="font_normal_body">换表状态</label>
|
|
56
|
+
<input type="text" v-model="model.f_state" disabled=disabled style="width: 60%" class="input_search">
|
|
57
|
+
<!-- <v-select :value.sync="model.f_changemeter_state" v-model="model.f_changemeter_state"-->
|
|
58
|
+
<!-- :options='changestate' placeholder='换表状态'-->
|
|
59
|
+
<!-- :value-single="true"-->
|
|
60
|
+
<!-- :search="false"-->
|
|
61
|
+
<!-- close-on-select></v-select>-->
|
|
62
|
+
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
</div>
|
|
66
|
+
<div class="row">
|
|
67
|
+
<div class="col-sm-4">
|
|
68
|
+
<label class="font_normal_body">换表人 </label>
|
|
69
|
+
<input type="text" v-model="model.f_change_operator" style="width: 60%" class="input_search">
|
|
70
|
+
</div>
|
|
71
|
+
<div class="col-sm-4 form-group">
|
|
72
|
+
<label class="font_normal_body" title="参数:操作人员查询">操作人员</label>
|
|
73
|
+
<v-select :value.sync="model.f_operatorid"
|
|
74
|
+
v-model="model.f_operatorid"
|
|
75
|
+
:value-single="true" @change="selectoperator()"
|
|
76
|
+
:options='foperator'
|
|
77
|
+
close-on-select></v-select>
|
|
78
|
+
<!-- @click="selectoperator"-->
|
|
79
|
+
</div>
|
|
80
|
+
<div class="col-sm-4">
|
|
81
|
+
<label class="font_normal_body">换表日期</label>
|
|
82
|
+
<datepicker placeholder="换表日期" style="width: 60%"
|
|
83
|
+
v-model="model.f_operate_date"
|
|
84
|
+
:value.sync="model.f_operate_date"
|
|
85
|
+
:format="'yyyy-MM-dd HH:mm:ss'">
|
|
86
|
+
</datepicker>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="row">
|
|
90
|
+
<div class="col-sm-8">
|
|
91
|
+
<label class="font_normal_body">地  址</label>
|
|
92
|
+
<input type="text" v-model="model.f_address" disabled=disabled style="width: 80%" class="input_search">
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<!-- <div class="row">-->
|
|
96
|
+
<!-- <div class="col-sm-4">-->
|
|
97
|
+
<!-- <label class="font_normal_body">下发日期</label>-->
|
|
98
|
+
<!-- <datepicker id="f_hand_date"-->
|
|
99
|
+
<!-- placeholder="下发日期"-->
|
|
100
|
+
<!-- style="width:60%"-->
|
|
101
|
+
<!-- v-model="model.f_hand_date"-->
|
|
102
|
+
<!-- :value.sync="model.f_hand_date"-->
|
|
103
|
+
<!-- :format="'yyyy-MM-dd HH:mm:ss'"-->
|
|
104
|
+
<!-- >-->
|
|
105
|
+
<!-- </datepicker>-->
|
|
106
|
+
<!-- </div>-->
|
|
107
|
+
<!-- -->
|
|
108
|
+
|
|
109
|
+
<!-- </div>-->
|
|
110
|
+
|
|
111
|
+
<div class="row">
|
|
112
|
+
<div class="col-sm-8">
|
|
113
|
+
<label class="font_normal_body">换表原因</label>
|
|
114
|
+
<input type="text" v-model="model.f_comments" style="width: 80%" class="input_search">
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="row">
|
|
118
|
+
<div class="col-sm-8">
|
|
119
|
+
<label class="font_normal_body">其他备注</label>
|
|
120
|
+
<input type="text" v-model="model.f_othereason" style="width: 80%" class="input_search">
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</form>
|
|
124
|
+
<div style="float: right">
|
|
125
|
+
<button class="button_search" @click="save">保存</button>
|
|
126
|
+
<button class="button_clear" @click="cancel">取消</button>
|
|
127
|
+
</div>
|
|
128
|
+
</validator>
|
|
129
|
+
<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
|
|
130
|
+
<article slot="modal-body">
|
|
131
|
+
<upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="换表" isremark="true"
|
|
132
|
+
style="width:auto"></upload>
|
|
133
|
+
</article>
|
|
134
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
135
|
+
</footer>
|
|
136
|
+
</modal>
|
|
137
|
+
<!--文件上传按钮-->
|
|
138
|
+
<button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
|
|
139
|
+
</div>
|
|
140
|
+
</template>
|
|
141
|
+
<script>
|
|
142
|
+
|
|
143
|
+
import {HttpResetClass} from 'vue-client'
|
|
144
|
+
import * as Util from '../../Util'
|
|
145
|
+
|
|
146
|
+
let readyGen = async function (self) {
|
|
147
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
148
|
+
await self.$GetSaleParam.initinputtor()
|
|
149
|
+
await self.initoperator()
|
|
150
|
+
}
|
|
151
|
+
export default {
|
|
152
|
+
title: '基本信息',
|
|
153
|
+
|
|
154
|
+
data () {
|
|
155
|
+
return {
|
|
156
|
+
uploadText: '换表',
|
|
157
|
+
// 构建数组来存储对象
|
|
158
|
+
editbank: true,
|
|
159
|
+
recordList: [],
|
|
160
|
+
foperator: [],
|
|
161
|
+
changestate: [{label: '有效', value: '有效'}, {label: '无效', value: '无效'}],
|
|
162
|
+
showfiles: false,
|
|
163
|
+
// meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
|
|
164
|
+
// handstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
|
|
165
|
+
fileNameSet: {
|
|
166
|
+
'f_change_operator': '换表人',
|
|
167
|
+
'f_operate_date': '换表日期',
|
|
168
|
+
'f_comments': '换表原因',
|
|
169
|
+
'f_othereason': '其他备注'
|
|
170
|
+
// 'f_newtable_state':'新表状态'
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
props: {
|
|
175
|
+
oldmodel: Object,
|
|
176
|
+
model: Object
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
ready () {
|
|
180
|
+
this.oldmodel = JSON.parse(JSON.stringify(this.model))
|
|
181
|
+
readyGen(this)
|
|
182
|
+
},
|
|
183
|
+
created () {
|
|
184
|
+
},
|
|
185
|
+
methods: {
|
|
186
|
+
initoperator () {
|
|
187
|
+
this.foperator = []
|
|
188
|
+
const roles = this.$appdata.getSingleValue('换表记录维护操作角色') ? this.$appdata.getSingleValue('换表记录维护操作角色') : '营业员'
|
|
189
|
+
console.log('roles', roles, this.$GetSaleParam.inputtors)
|
|
190
|
+
console.log('this.$login', this.$login, this.oldmodel, this.model)
|
|
191
|
+
let arr = this.$GetSaleParam.inputtors.filter((res) => {
|
|
192
|
+
if (res.rolestr != null && res.rolestr != '') {
|
|
193
|
+
return (res.rolestr.indexOf('收费员') > -1 || res.rolestr.indexOf('话务员') > -1) && res.f_orgid == this.$login.f.orgid
|
|
194
|
+
}
|
|
195
|
+
})
|
|
196
|
+
console.log(arr)
|
|
197
|
+
arr.forEach((res) => {
|
|
198
|
+
this.foperator.push({label: res.name, value: res.id})
|
|
199
|
+
})
|
|
200
|
+
},
|
|
201
|
+
selectoperator () {
|
|
202
|
+
let id = this.model.f_operatorid
|
|
203
|
+
if (!this.model.f_operatorid) {
|
|
204
|
+
return
|
|
205
|
+
}
|
|
206
|
+
let http = new HttpResetClass()
|
|
207
|
+
http.load('POST', 'api/af-revenue/sql/saleSingleTable',
|
|
208
|
+
{
|
|
209
|
+
data: {
|
|
210
|
+
tablename: 't_user',
|
|
211
|
+
condition: `id = '${id}'`
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
215
|
+
console.log('kanak,res', res)
|
|
216
|
+
if (res.data.length > 0) {
|
|
217
|
+
this.model.f_operator = res.data[0].name
|
|
218
|
+
} else {
|
|
219
|
+
this.model.f_operatorid = ''
|
|
220
|
+
this.$showAlert('操作员信息未找到', 'warning', 2000)
|
|
221
|
+
}
|
|
222
|
+
console.log('this.f_operatorid', this.model.f_operator)
|
|
223
|
+
})
|
|
224
|
+
},
|
|
225
|
+
cancel () {
|
|
226
|
+
this.$dispatch('close')
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
uploadFiles () {
|
|
230
|
+
this.showfiles = !this.showfiles
|
|
231
|
+
},
|
|
232
|
+
async save () {
|
|
233
|
+
for (var item in this.model) {
|
|
234
|
+
if (this.model[item] instanceof Array) {
|
|
235
|
+
this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
|
|
236
|
+
}
|
|
237
|
+
if (this.model[item] != this.oldmodel[item]) {
|
|
238
|
+
var car = {
|
|
239
|
+
chinesename: this.fileNameSet[item],
|
|
240
|
+
fieldname: item,
|
|
241
|
+
tablename: 't_changetables',
|
|
242
|
+
oldvalue: this.oldmodel[item],
|
|
243
|
+
newvalue: this.model[item],
|
|
244
|
+
state: '有效',
|
|
245
|
+
modifitime: Util.toStandardTimeString(),
|
|
246
|
+
operator: this.$login.f.name,
|
|
247
|
+
changemeter_id: this.model.id,
|
|
248
|
+
f_operator: this.$login.f.name,
|
|
249
|
+
f_operatorid: this.$login.f.id,
|
|
250
|
+
f_orgid: this.$login.f.orgid,
|
|
251
|
+
f_orgname: this.$login.f.orgs,
|
|
252
|
+
f_depid: this.$login.f.depids,
|
|
253
|
+
f_depname: this.$login.f.deps
|
|
254
|
+
}
|
|
255
|
+
this.recordList.push(car)
|
|
256
|
+
// 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
|
|
257
|
+
console.log(car)
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
await this.$resetpost('api/af-revenue/logic/saveChangeMeterRecord', {
|
|
261
|
+
data: {
|
|
262
|
+
recordlist: this.recordList,
|
|
263
|
+
newData: this.model
|
|
264
|
+
}
|
|
265
|
+
})
|
|
266
|
+
// let changetablesData = {
|
|
267
|
+
// id: this.model.id,
|
|
268
|
+
// f_change_operator: this.model.f_change_operator,
|
|
269
|
+
// f_comments: this.model.f_comments,
|
|
270
|
+
// f_othereason: this.model.f_othereason,
|
|
271
|
+
// f_operate_date: this.model.f_operate_date
|
|
272
|
+
// }
|
|
273
|
+
let sqldata = `update t_changetables set
|
|
274
|
+
f_change_operator ='${this.model.f_change_operator}',
|
|
275
|
+
f_comments ='${this.model.f_comments}',
|
|
276
|
+
f_othereason ='${this.model.f_othereason}',
|
|
277
|
+
f_operate_date='${this.model.f_operate_date}'
|
|
278
|
+
where id ='${this.model.id}'`
|
|
279
|
+
console.log('换表记录修正保存', sqldata)
|
|
280
|
+
await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sqldata}}, {resolveMsg: null, rejectMsg: null})
|
|
281
|
+
// await this.$resetpost('api/af-revenue/entity/save/t_changetables', changetablesData, {resolveMsg: '修改成功', rejectMsg: '未通过,修改出错!!!'})
|
|
282
|
+
// console.log('this.model', this.model)
|
|
283
|
+
this.$dispatch('close')
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
computed: {
|
|
287
|
+
meterstate () {
|
|
288
|
+
return this.$appdata.getParam('抄表状态')
|
|
289
|
+
},
|
|
290
|
+
|
|
291
|
+
inputtores () {
|
|
292
|
+
// 获取抄表员
|
|
293
|
+
console.log('获取抄表员', this.$login.f)
|
|
294
|
+
let rs = new Array()
|
|
295
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
296
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
297
|
+
let temp = {
|
|
298
|
+
label: this.$login.f.f_gasman[i].name,
|
|
299
|
+
value: this.$login.f.f_gasman[i].name
|
|
300
|
+
}
|
|
301
|
+
rs.push(temp)
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
// let rs = this.$appdata.getParam('抄表员')
|
|
305
|
+
return rs
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
},
|
|
309
|
+
watch: {
|
|
310
|
+
'model' () {
|
|
311
|
+
this.initoperator()
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
</script>
|