sale-client 4.1.230 → 4.2.1-ronghao
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 +29 -46
- package/package.json +2 -2
- package/src/App.vue +3 -3
- package/src/components/FilesManage/UserGeneralInfoTest.vue +4 -4
- package/src/components/FilesManageNew/FileUserFiles.vue +2 -4
- package/src/components/FilesManageNew/MeterinfoTest.vue +9 -9
- package/src/components/FilesManageNew/UserEssentialInfoTest.vue +201 -227
- package/src/components/FilesManageNew/UserGeneralInfoTest.vue +0 -2
- package/src/components/charge/business/CardMeterCenter.vue +1 -1
- package/src/components/charge/business/FilesComplete.vue +3 -3
- package/src/components/charge/business/IOTMeterCenter.vue +1 -1
- package/src/components/charge/business/OtherChargeNew.vue +68 -48
- package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +10 -1
- package/src/components/common/userinfo_detail/ic_detail/CardHandRecord.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/GarbageRecordList.vue +69 -0
- package/src/components/common/userinfo_detail/ic_detail/InsuranceChargesRecord.vue +384 -0
- package/src/components/common/userinfo_detail/ic_detail/WebHandQueryUser.vue +1 -1
- package/src/components/revenue/Common/MeterMessage.vue +1 -1
- package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
- package/src/components/revenue/HandManager/WebHand.vue +7 -4
- package/src/components/revenue/base/leftview/SafeCheck.vue +41 -3
- package/src/components/revenue/base/leftview/UserFeeInfo.vue +76 -0
- package/src/components/revenue/base/leftview/otherinfo.vue +1 -0
- package/src/components/revenue/base/rightview/CardList.vue +7 -3
- package/src/components/revenue/batchDeduction/batchDeductionList.vue +1 -1
- package/src/components/revenue/cardHandManage/cardDown.vue +18 -0
- package/src/components/revenue/changeInsurance/InsuranceAdd.vue +1 -0
- package/src/components/revenue/changeInsurance/InsuranceRecord.vue +2 -1
- package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPayment.vue +1 -1
- package/src/components/revenue/comprehen/ComprehenOperation/GiftFee/icTable.vue +4 -2
- 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/comprehen/Maintenance/revenue/MeterOperatemain.vue +2 -2
- package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
- package/src/components/revenue/machineHandManage/HandplanQuery.vue +1 -1
- package/src/components/revenue/machineHandManage/machineHand.vue +3 -2
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
- package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
- package/src/filiale/bayan/ChargeList.vue +1010 -1010
- package/src/filiale/bayan/StockListmain.vue +543 -543
- package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
- package/src/filiale/dexin/MeterinfoTest.vue +1239 -0
- package/src/filiale/dexin/UserEssentialInfoTest.vue +602 -0
- package/src/filiale/dexin/sale.js +5 -0
- package/src/filiale/fugou/MeterinfoTest.vue +1 -1
- package/src/filiale/jiaxian/AutomaticPurse.vue +349 -0
- package/src/filiale/jiaxian/ChangeMeterQueryUser.vue +303 -0
- package/src/filiale/jiaxian/ChangeRecord.vue +44 -2
- package/src/filiale/jiaxian/FillCardQueryUser.vue +250 -0
- package/src/filiale/jiaxian/FillGasQueryUser.vue +270 -0
- package/src/filiale/jiaxian/OtherChargeQueryUser.vue +305 -0
- package/src/filiale/jiaxian/PriceAdjustmentQueryUser.vue +368 -0
- package/src/filiale/jiaxian/PriceChangeQueryUser.vue +243 -0
- package/src/filiale/jiaxian/QueryInstruct.vue +436 -0
- package/src/filiale/jiaxian/RecordQueryUser.vue +321 -0
- package/src/filiale/jiaxian/Repurchase.vue +181 -0
- package/src/filiale/jiaxian/TransferQueryUser.vue +274 -0
- package/src/filiale/jiaxian/UserInfoDetailManageNew.vue +11 -11
- package/src/filiale/jiaxian/Userinfo.vue +426 -0
- package/src/filiale/jiaxian/WatchCollection.vue +54 -1
- package/src/filiale/jiaxian/WebAutomaticPurse.vue +348 -0
- package/src/filiale/jiaxian/contractSigningList.vue +149 -0
- package/src/filiale/jiaxian/sale.js +5 -0
- package/src/filiale/jinhong/AutoAccountsDetail.vue +63 -0
- package/src/filiale/jinhong/CardList.vue +572 -0
- package/src/filiale/jinhong/CardMeterCenter.vue +1 -1
- package/src/filiale/jinhong/CardMeterCenterInner.vue +61 -22
- package/src/filiale/jinhong/GarbageCharge.vue +1 -1
- package/src/filiale/jinhong/HandplanQuery.vue +1430 -0
- package/src/filiale/jinhong/IOTMeterCenterInner.vue +42 -14
- package/src/filiale/jinhong/InsuranceAdd.vue +27 -5
- package/src/filiale/jinhong/InsuranceChargesDetails.vue +11 -5
- package/src/filiale/jinhong/InsuranceRecord.vue +4 -5
- package/src/filiale/jinhong/InsuranceTemp.vue +33 -5
- package/src/filiale/jinhong/MachineChargeService.js +8 -0
- package/src/filiale/jinhong/MachineMeterCenter.vue +38 -11
- package/src/filiale/jinhong/ShowCardSellGasInner.vue +46 -14
- package/src/filiale/jinhong/Userinfo.vue +75 -1
- package/src/filiale/jinhong/insuranceGuanL.vue +349 -0
- package/src/filiale/jinhong/machineDown.vue +1205 -0
- package/src/filiale/jinhong/sale.js +9 -0
- package/src/filiale/jinhuang/UserInfoDetailManageNew.vue +259 -0
- package/src/filiale/jinhuang/WebHand.vue +1026 -0
- package/src/filiale/jinhuang/WebHandQueryUser.vue +413 -0
- package/src/filiale/jinhuang/cardsHand.vue +911 -0
- package/src/filiale/jinhuang/sale.js +8 -0
- package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
- package/src/filiale/lixianV3/InsuranceAdd.vue +1 -0
- package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
- package/src/filiale/meihekou/CardMeterCenter.vue +991 -0
- package/src/filiale/meihekou/ChargeManage.vue +3 -2
- package/src/filiale/meihekou/ChargeOper.vue +279 -169
- package/src/filiale/meihekou/HandManager.vue +57 -2
- package/src/filiale/meihekou/NoCardMeterCenter.vue +542 -0
- package/src/filiale/meihekou/OverUseCharge.vue +1 -1
- package/src/filiale/meihekou/PrintBill.vue +48 -41
- package/src/filiale/meihekou/ReissueBill.vue +4 -1
- package/src/filiale/meihekou/ShowCardSellGas.vue +935 -0
- package/src/filiale/meihekou/TransferManage.vue +704 -0
- package/src/filiale/meihekou/Userinfo.vue +233 -5
- package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
- package/src/filiale/meihekou/icTable.vue +233 -0
- package/src/filiale/meihekou/machineHand.vue +2158 -0
- package/src/filiale/meihekou/manualChargeCenter.vue +394 -0
- package/src/filiale/meihekou/meterTable.vue +220 -0
- package/src/filiale/meihekou/sale.js +15 -0
- package/src/filiale/qianneng/MeterMessage.vue +1 -1
- package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
- package/src/filiale/rizhao/InsuranceAdd.vue +1 -0
- package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
- package/src/filiale/ronghao/CardList.vue +19 -17
- package/src/filiale/ronghao/CardMeterChargeCancel.vue +5 -0
- package/src/filiale/ronghao/CardService.js +2144 -2144
- package/src/filiale/ronghao/ChangeMeterService.js +1 -1
- package/src/filiale/ronghao/ChargeList.vue +17 -17
- package/src/filiale/ronghao/ChargeManage.vue +325 -0
- package/src/filiale/ronghao/ChargeOper.vue +330 -0
- package/src/filiale/ronghao/FilesManageNew/UserEssentialInfoTest.vue +457 -0
- package/src/filiale/ronghao/FilesManageNew/UserGeneralInfoTest.vue +690 -0
- package/src/filiale/ronghao/HandplanQuery.vue +13 -14
- package/src/filiale/ronghao/IOTMeterCenter.vue +15 -6
- package/src/filiale/ronghao/InsuranceAdd.vue +1 -0
- 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/Userinfo.vue +18 -18
- 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/machineRefund.vue +3 -1
- package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
- package/src/filiale/ronghao/sale.js +11 -0
- package/src/filiale/ronghao/specificInformation.vue +537 -537
- package/src/filiale/ronghao/uploadFilesHistory.vue +214 -0
- package/src/filiale/ruihua/FilesManage/MeterinfoTest.vue +10 -0
- package/src/filiale/shanxian/components/revenue/InsuranceAdd.vue +1 -0
- package/src/filiale/wuan/MeterMessage.vue +1 -1
- package/src/filiale/yangchun/BasicLivingList.vue +281 -0
- package/src/filiale/yangchun/BlackList/BlackRecordQuery.vue +1 -0
- package/src/filiale/yangchun/CardChangeFill.vue +1 -1
- package/src/filiale/yangchun/ChargeList.vue +954 -954
- package/src/filiale/yangchun/FilesManage/UserPaperInfoTest.vue +3 -3
- package/src/filiale/yangchun/NewMeterList.vue +742 -0
- package/src/filiale/yangchun/sale.js +3 -0
- package/src/filiale/yuncheng/CardList.vue +1 -1
- package/src/filiale/yuncheng/IndustryCommerceHand.vue +1145 -0
- package/src/filiale/yuncheng/IndustryCommerceHandAudit.vue +794 -0
- package/src/filiale/yuncheng/IndustryCommerceHandManager.vue +64 -0
- package/src/filiale/yuncheng/InsuranceAdd.vue +1 -0
- package/src/filiale/yuncheng/MeterBookUser.vue +781 -0
- package/src/filiale/yuncheng/UserDeviceInfoTest.vue +2 -2
- package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
- package/src/filiale/yuncheng/industryDown.vue +1118 -0
- package/src/filiale/yuncheng/sale.js +11 -0
- package/src/filiale/yuncheng/uploadFilesHistory.vue +185 -0
- package/src/filiale/zhongsheng/BlackListList.vue +293 -293
- package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
- package/src/plugins/CardService.js +2217 -2217
- package/src/sale.js +3 -1
|
@@ -1,313 +1,313 @@
|
|
|
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_userinfo_code" disabled=disabled style="width: 60%"
|
|
13
|
-
class="input_search">
|
|
14
|
-
</div>
|
|
15
|
-
<div class="col-sm-4">
|
|
16
|
-
<label class="font_normal_body"> 卡号 </label>
|
|
17
|
-
<input type="text" v-model="model.f_card_id" disabled=disabled style="width: 60%" class="input_search">
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="row">
|
|
21
|
-
<div class="col-sm-8">
|
|
22
|
-
<label class="font_normal_body">补气日期</label>
|
|
23
|
-
<datepicker id="f_operate_date"
|
|
24
|
-
placeholder="补气日期"
|
|
25
|
-
style="width:80%"
|
|
26
|
-
v-model="model.f_operate_date"
|
|
27
|
-
:value.sync="model.f_operate_date"
|
|
28
|
-
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
29
|
-
>
|
|
30
|
-
</datepicker>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="row">
|
|
34
|
-
<div class="col-sm-4">
|
|
35
|
-
<label class="font_normal_body">累购气量</label>
|
|
36
|
-
<input type="text" v-model="model.f_total_gas" disabled=disabled style="width: 60%" class="input_search">
|
|
37
|
-
</div>
|
|
38
|
-
<div class="col-sm-4">
|
|
39
|
-
<label class="font_normal_body"> 补气量 </label>
|
|
40
|
-
<input type="text" v-model="model.f_pregas" style="width: 60%" class="input_search">
|
|
41
|
-
</div>
|
|
42
|
-
<div class="col-sm-4">
|
|
43
|
-
<label class="font_normal_body">气表品牌</label>
|
|
44
|
-
<input type="text" v-model="model.f_meter_brand" style="width: 60%" class="input_search">
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="row">
|
|
48
|
-
<div class="col-sm-4">
|
|
49
|
-
<label class="font_normal_body">补气金额</label>
|
|
50
|
-
<input type="text" v-model="model.f_preamount" disabled=disabled style="width: 60%" class="input_search">
|
|
51
|
-
</div>
|
|
52
|
-
<div class="col-sm-4">
|
|
53
|
-
<label class="font_normal_body"> 次数  </label>
|
|
54
|
-
<input type="text" v-model="model.f_times" disabled=disabled style="width: 60%" class="input_search">
|
|
55
|
-
</div>
|
|
56
|
-
<div class="col-sm-4">
|
|
57
|
-
<label class="font_normal_body">写卡状态</label>
|
|
58
|
-
<input type="text" v-model="model.f_write_card" disabled=disabled style="width: 60%" class="input_search">
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="row">
|
|
62
|
-
<div class="col-sm-4">
|
|
63
|
-
<label class="font_normal_body">补气状态</label>
|
|
64
|
-
<input type="text" v-model="model.f_state" disabled=disabled style="width: 60%" class="input_search">
|
|
65
|
-
</div>
|
|
66
|
-
<div class="col-sm-4">
|
|
67
|
-
<label class="font_normal_body">补气类型</label>
|
|
68
|
-
<input type="text" v-model="model.f_type" disabled=disabled style="width: 60%" class="input_search">
|
|
69
|
-
</div>
|
|
70
|
-
|
|
71
|
-
</div>
|
|
72
|
-
<div class="row">
|
|
73
|
-
<div class="col-sm-4">
|
|
74
|
-
<label class="font_normal_body">  补气员 </label>
|
|
75
|
-
<v-select :value.sync="model.f_write_operator" v-model="model.f_write_operator" :value-single="true"
|
|
76
|
-
:options='inputtores' placeholder='补气员' close-on-select></v-select>
|
|
77
|
-
</div>
|
|
78
|
-
<div class="col-sm-4 form-group">
|
|
79
|
-
<label class="font_normal_body" title="参数:操作人员">操作人员</label>
|
|
80
|
-
<v-select :value.sync="model.f_operatorid"
|
|
81
|
-
v-model="model.f_operatorid"
|
|
82
|
-
:value-single="true" @change="selectoperator()"
|
|
83
|
-
:options='foperator'
|
|
84
|
-
close-on-select></v-select>
|
|
85
|
-
</div>
|
|
86
|
-
<div class="col-sm-4">
|
|
87
|
-
<label class="font_normal_body">所属部门</label>
|
|
88
|
-
<input type="text" v-model="model.f_depname" disabled=disabled style="width: 60%" class="input_search">
|
|
89
|
-
</div>
|
|
90
|
-
<div class="col-sm-12">
|
|
91
|
-
<label class="font_normal_body">补气原因</label>
|
|
92
|
-
<textarea class="form-control" v-model="model.f_comments" rows="3"></textarea>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
</form>
|
|
96
|
-
<div style="float: right">
|
|
97
|
-
<button class="button_search" @click="save">保存</button>
|
|
98
|
-
<button class="button_clear" @click="cancel">取消</button>
|
|
99
|
-
</div>
|
|
100
|
-
<split-price :showdata="model" :pricesplit="priceSplit" v-if="priceSplit"></split-price>
|
|
101
|
-
</validator>
|
|
102
|
-
<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
|
|
103
|
-
<article slot="modal-body">
|
|
104
|
-
<upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="补气" isremark="true"
|
|
105
|
-
style="width:auto"></upload>
|
|
106
|
-
</article>
|
|
107
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
108
|
-
</footer>
|
|
109
|
-
</modal>
|
|
110
|
-
<!--文件上传按钮-->
|
|
111
|
-
<button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
|
|
112
|
-
</div>
|
|
113
|
-
</template>
|
|
114
|
-
<script>
|
|
115
|
-
import {HttpResetClass} from 'vue-client'
|
|
116
|
-
import * as Util from '../../Util'
|
|
117
|
-
|
|
118
|
-
let readyGen = async function (self) {
|
|
119
|
-
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
120
|
-
await self.$GetSaleParam.initinputtor()
|
|
121
|
-
await self.initoperator()
|
|
122
|
-
}
|
|
123
|
-
export default {
|
|
124
|
-
title: '基本信息',
|
|
125
|
-
|
|
126
|
-
data () {
|
|
127
|
-
return {
|
|
128
|
-
// 构建数组来存储对象
|
|
129
|
-
editbank: true,
|
|
130
|
-
showfiles: false,
|
|
131
|
-
priceSplit: false,
|
|
132
|
-
recordList: [],
|
|
133
|
-
foperator: [],
|
|
134
|
-
// fstate:[{label:'有效',value:'有效'},{label:'无效',value:'无效'},{label:'冲正',value:'冲正'},{label:'撤销',value:'撤销'}],
|
|
135
|
-
// ftype:[{label:'其他补气',value:'其他补气'},{label:'换表补气',value:'换表补气'},{label:'机表补费',value:'机表补费'},{label:'补费',value:'补费'},{label:'清零补气',value:'清零补气'},{label:'扣费',value:'扣费'},{label:'扣气',value:'扣气'},{label:'物联网补气',value:'物联网补气'},{label:'物联网扣气',value:'物联网扣气'},{label:'机表扣费',value:'机表扣费'}],
|
|
136
|
-
|
|
137
|
-
// meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
|
|
138
|
-
// fstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
|
|
139
|
-
fileNameSet: {
|
|
140
|
-
'f_userinfo_code': '客户编号',
|
|
141
|
-
'f_card_id': '卡号',
|
|
142
|
-
'f_operate_date': '补气日期',
|
|
143
|
-
'f_total_gas': '表累购气量',
|
|
144
|
-
'f_pregas': '补气量',
|
|
145
|
-
'f_preamount': '补气金额',
|
|
146
|
-
'f_times': '次数',
|
|
147
|
-
'f_type': '补气类型',
|
|
148
|
-
'f_state': '补气状态',
|
|
149
|
-
'f_write_operator': '补气执行人',
|
|
150
|
-
'f_operator': '操作人员',
|
|
151
|
-
'f_meter_brand': '气表品牌',
|
|
152
|
-
'f_write_card': '写卡状态',
|
|
153
|
-
'f_comments': '补气原因',
|
|
154
|
-
'f_depname': '所属部门'
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
props: {
|
|
159
|
-
oldmodel: Object,
|
|
160
|
-
model: Object
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
ready () {
|
|
164
|
-
/* console.log('logininfo',this.$login.r) */
|
|
165
|
-
if (this.$login.r.includes('维护银行转账信息')) {
|
|
166
|
-
this.editbank = true
|
|
167
|
-
}
|
|
168
|
-
// console.log(this.props.model)
|
|
169
|
-
this.oldmodel = JSON.parse(JSON.stringify(this.model))
|
|
170
|
-
readyGen(this)
|
|
171
|
-
},
|
|
172
|
-
created () {
|
|
173
|
-
},
|
|
174
|
-
methods: {
|
|
175
|
-
initoperator () {
|
|
176
|
-
this.foperator = []
|
|
177
|
-
console.log('this.$login', this.$login, this.oldmodel, this.model)
|
|
178
|
-
let arr = this.$GetSaleParam.inputtors.filter((res) => {
|
|
179
|
-
if (res.rolestr != null && res.rolestr != '') {
|
|
180
|
-
return (res.rolestr.indexOf('收费员') > -1 || res.rolestr.indexOf('话务员') > -1) && res.f_orgid == this.$login.f.orgid
|
|
181
|
-
}
|
|
182
|
-
})
|
|
183
|
-
arr.forEach((res) => {
|
|
184
|
-
this.foperator.push({label: res.name, value: res.id})
|
|
185
|
-
})
|
|
186
|
-
},
|
|
187
|
-
selectoperator () {
|
|
188
|
-
let id = this.model.f_operatorid
|
|
189
|
-
if (!this.model.f_operatorid) {
|
|
190
|
-
return
|
|
191
|
-
}
|
|
192
|
-
let http = new HttpResetClass()
|
|
193
|
-
http.load('POST', 'api/af-revenue/sql/saleSingleTable',
|
|
194
|
-
{
|
|
195
|
-
data: {
|
|
196
|
-
tablename: 't_user',
|
|
197
|
-
condition: `id = '${id}'`
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
201
|
-
console.log('kanak,res', res)
|
|
202
|
-
if (res.data.length > 0) {
|
|
203
|
-
this.model.f_operator = res.data[0].name
|
|
204
|
-
} else {
|
|
205
|
-
this.model.f_operatorid = ''
|
|
206
|
-
this.$showAlert('操作员信息未找到', 'warning', 2000)
|
|
207
|
-
}
|
|
208
|
-
console.log('this.f_operatorid', this.model.f_operator)
|
|
209
|
-
})
|
|
210
|
-
},
|
|
211
|
-
// 自定义划价
|
|
212
|
-
fileterprice (row) {
|
|
213
|
-
this.priceSplit = true
|
|
214
|
-
console.log('row==>', row)
|
|
215
|
-
},
|
|
216
|
-
cancel () {
|
|
217
|
-
this.$dispatch('close')
|
|
218
|
-
},
|
|
219
|
-
uploadFiles () {
|
|
220
|
-
this.showfiles = !this.showfiles
|
|
221
|
-
},
|
|
222
|
-
async getenddate () {
|
|
223
|
-
var end_date = await this.$resetpost('api/af-revenue/logic/getEndDate', {
|
|
224
|
-
data: {
|
|
225
|
-
f_userinfo_id: this.model.f_userinfo_id,
|
|
226
|
-
f_input_date: this.model.f_input_date
|
|
227
|
-
}
|
|
228
|
-
})
|
|
229
|
-
this.model.f_end_date = end_date.data
|
|
230
|
-
},
|
|
231
|
-
addressValid (val) {
|
|
232
|
-
},
|
|
233
|
-
async save () {
|
|
234
|
-
for (var item in this.model) {
|
|
235
|
-
if (this.model[item] instanceof Array) {
|
|
236
|
-
this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
|
|
237
|
-
}
|
|
238
|
-
if (this.model[item] != this.oldmodel[item]) {
|
|
239
|
-
var car = {
|
|
240
|
-
chinesename: this.fileNameSet[item],
|
|
241
|
-
fieldname: item,
|
|
242
|
-
tablename: 't_fillgas',
|
|
243
|
-
oldvalue: this.oldmodel[item],
|
|
244
|
-
newvalue: this.model[item],
|
|
245
|
-
state: '有效',
|
|
246
|
-
modifitime: Util.toStandardTimeString(),
|
|
247
|
-
operator: this.$login.f.name,
|
|
248
|
-
fillgas_id: this.model.id,
|
|
249
|
-
f_operator: this.$login.f.name,
|
|
250
|
-
f_operatorid: this.$login.f.id,
|
|
251
|
-
f_orgid: this.$login.f.orgid,
|
|
252
|
-
f_orgname: this.$login.f.orgs,
|
|
253
|
-
f_depid: this.$login.f.depids,
|
|
254
|
-
f_depname: this.$login.f.deps
|
|
255
|
-
}
|
|
256
|
-
this.recordList.push(car)
|
|
257
|
-
// 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
|
|
258
|
-
console.log(car)
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
await this.$resetpost('api/af-revenue/logic/saveFillgasRecord', {
|
|
263
|
-
data: {
|
|
264
|
-
recordlist: this.recordList,
|
|
265
|
-
newData: this.model
|
|
266
|
-
}
|
|
267
|
-
})
|
|
268
|
-
await this.$resetpost('api/af-revenue/entity/save/t_fillgas', this.model, {
|
|
269
|
-
resolveMsg: '修改成功',
|
|
270
|
-
rejectMsg: '未通过,修改出错!!!'
|
|
271
|
-
})
|
|
272
|
-
console.log('this.model', this.model)
|
|
273
|
-
this.$dispatch('close')
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
computed: {
|
|
277
|
-
fstate () {
|
|
278
|
-
return this.$appdata.getParam('补气状态')
|
|
279
|
-
},
|
|
280
|
-
ftype () {
|
|
281
|
-
return this.$appdata.getParam('补气类型')
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
inputtores () {
|
|
285
|
-
// 获取补气操作员
|
|
286
|
-
console.log('获取补气员', this.$login.f)
|
|
287
|
-
let rs = []
|
|
288
|
-
if (this.$login.f.f_gasman.length > 0) {
|
|
289
|
-
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
290
|
-
let temp = {
|
|
291
|
-
label: this.$login.f.f_gasman[i].name,
|
|
292
|
-
value: this.$login.f.f_gasman[i].name
|
|
293
|
-
}
|
|
294
|
-
rs.push(temp)
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
// let rs = this.$appdata.getParam('补气员')
|
|
298
|
-
return rs
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
},
|
|
302
|
-
watch: {
|
|
303
|
-
'model.f_input_date' (val) {
|
|
304
|
-
if (val) {
|
|
305
|
-
this.getenddate()
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
'model' () {
|
|
309
|
-
this.initoperator()
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
</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_userinfo_code" disabled=disabled style="width: 60%"
|
|
13
|
+
class="input_search">
|
|
14
|
+
</div>
|
|
15
|
+
<div class="col-sm-4">
|
|
16
|
+
<label class="font_normal_body"> 卡号 </label>
|
|
17
|
+
<input type="text" v-model="model.f_card_id" disabled=disabled style="width: 60%" class="input_search">
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="row">
|
|
21
|
+
<div class="col-sm-8">
|
|
22
|
+
<label class="font_normal_body">补气日期</label>
|
|
23
|
+
<datepicker id="f_operate_date"
|
|
24
|
+
placeholder="补气日期"
|
|
25
|
+
style="width:80%"
|
|
26
|
+
v-model="model.f_operate_date"
|
|
27
|
+
:value.sync="model.f_operate_date"
|
|
28
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
29
|
+
>
|
|
30
|
+
</datepicker>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-sm-4">
|
|
35
|
+
<label class="font_normal_body">累购气量</label>
|
|
36
|
+
<input type="text" v-model="model.f_total_gas" disabled=disabled style="width: 60%" class="input_search">
|
|
37
|
+
</div>
|
|
38
|
+
<div class="col-sm-4">
|
|
39
|
+
<label class="font_normal_body"> 补气量 </label>
|
|
40
|
+
<input type="text" v-model="model.f_pregas" style="width: 60%" class="input_search">
|
|
41
|
+
</div>
|
|
42
|
+
<div class="col-sm-4">
|
|
43
|
+
<label class="font_normal_body">气表品牌</label>
|
|
44
|
+
<input type="text" v-model="model.f_meter_brand" style="width: 60%" class="input_search">
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="row">
|
|
48
|
+
<div class="col-sm-4">
|
|
49
|
+
<label class="font_normal_body">补气金额</label>
|
|
50
|
+
<input type="text" v-model="model.f_preamount" disabled=disabled style="width: 60%" class="input_search">
|
|
51
|
+
</div>
|
|
52
|
+
<div class="col-sm-4">
|
|
53
|
+
<label class="font_normal_body"> 次数  </label>
|
|
54
|
+
<input type="text" v-model="model.f_times" disabled=disabled style="width: 60%" class="input_search">
|
|
55
|
+
</div>
|
|
56
|
+
<div class="col-sm-4">
|
|
57
|
+
<label class="font_normal_body">写卡状态</label>
|
|
58
|
+
<input type="text" v-model="model.f_write_card" disabled=disabled style="width: 60%" class="input_search">
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="row">
|
|
62
|
+
<div class="col-sm-4">
|
|
63
|
+
<label class="font_normal_body">补气状态</label>
|
|
64
|
+
<input type="text" v-model="model.f_state" disabled=disabled style="width: 60%" class="input_search">
|
|
65
|
+
</div>
|
|
66
|
+
<div class="col-sm-4">
|
|
67
|
+
<label class="font_normal_body">补气类型</label>
|
|
68
|
+
<input type="text" v-model="model.f_type" disabled=disabled style="width: 60%" class="input_search">
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
</div>
|
|
72
|
+
<div class="row">
|
|
73
|
+
<div class="col-sm-4">
|
|
74
|
+
<label class="font_normal_body">  补气员 </label>
|
|
75
|
+
<v-select :value.sync="model.f_write_operator" v-model="model.f_write_operator" :value-single="true"
|
|
76
|
+
:options='inputtores' placeholder='补气员' close-on-select></v-select>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="col-sm-4 form-group">
|
|
79
|
+
<label class="font_normal_body" title="参数:操作人员">操作人员</label>
|
|
80
|
+
<v-select :value.sync="model.f_operatorid"
|
|
81
|
+
v-model="model.f_operatorid"
|
|
82
|
+
:value-single="true" @change="selectoperator()"
|
|
83
|
+
:options='foperator'
|
|
84
|
+
close-on-select></v-select>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="col-sm-4">
|
|
87
|
+
<label class="font_normal_body">所属部门</label>
|
|
88
|
+
<input type="text" v-model="model.f_depname" disabled=disabled style="width: 60%" class="input_search">
|
|
89
|
+
</div>
|
|
90
|
+
<div class="col-sm-12">
|
|
91
|
+
<label class="font_normal_body">补气原因</label>
|
|
92
|
+
<textarea class="form-control" v-model="model.f_comments" rows="3"></textarea>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</form>
|
|
96
|
+
<div style="float: right">
|
|
97
|
+
<button class="button_search" @click="save">保存</button>
|
|
98
|
+
<button class="button_clear" @click="cancel">取消</button>
|
|
99
|
+
</div>
|
|
100
|
+
<split-price :showdata="model" :pricesplit="priceSplit" v-if="priceSplit"></split-price>
|
|
101
|
+
</validator>
|
|
102
|
+
<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
|
|
103
|
+
<article slot="modal-body">
|
|
104
|
+
<upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="补气" isremark="true"
|
|
105
|
+
style="width:auto"></upload>
|
|
106
|
+
</article>
|
|
107
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
108
|
+
</footer>
|
|
109
|
+
</modal>
|
|
110
|
+
<!--文件上传按钮-->
|
|
111
|
+
<button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
|
|
112
|
+
</div>
|
|
113
|
+
</template>
|
|
114
|
+
<script>
|
|
115
|
+
import {HttpResetClass} from 'vue-client'
|
|
116
|
+
import * as Util from '../../Util'
|
|
117
|
+
|
|
118
|
+
let readyGen = async function (self) {
|
|
119
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
120
|
+
await self.$GetSaleParam.initinputtor()
|
|
121
|
+
await self.initoperator()
|
|
122
|
+
}
|
|
123
|
+
export default {
|
|
124
|
+
title: '基本信息',
|
|
125
|
+
|
|
126
|
+
data () {
|
|
127
|
+
return {
|
|
128
|
+
// 构建数组来存储对象
|
|
129
|
+
editbank: true,
|
|
130
|
+
showfiles: false,
|
|
131
|
+
priceSplit: false,
|
|
132
|
+
recordList: [],
|
|
133
|
+
foperator: [],
|
|
134
|
+
// fstate:[{label:'有效',value:'有效'},{label:'无效',value:'无效'},{label:'冲正',value:'冲正'},{label:'撤销',value:'撤销'}],
|
|
135
|
+
// ftype:[{label:'其他补气',value:'其他补气'},{label:'换表补气',value:'换表补气'},{label:'机表补费',value:'机表补费'},{label:'补费',value:'补费'},{label:'清零补气',value:'清零补气'},{label:'扣费',value:'扣费'},{label:'扣气',value:'扣气'},{label:'物联网补气',value:'物联网补气'},{label:'物联网扣气',value:'物联网扣气'},{label:'机表扣费',value:'机表扣费'}],
|
|
136
|
+
|
|
137
|
+
// meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
|
|
138
|
+
// fstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
|
|
139
|
+
fileNameSet: {
|
|
140
|
+
'f_userinfo_code': '客户编号',
|
|
141
|
+
'f_card_id': '卡号',
|
|
142
|
+
'f_operate_date': '补气日期',
|
|
143
|
+
'f_total_gas': '表累购气量',
|
|
144
|
+
'f_pregas': '补气量',
|
|
145
|
+
'f_preamount': '补气金额',
|
|
146
|
+
'f_times': '次数',
|
|
147
|
+
'f_type': '补气类型',
|
|
148
|
+
'f_state': '补气状态',
|
|
149
|
+
'f_write_operator': '补气执行人',
|
|
150
|
+
'f_operator': '操作人员',
|
|
151
|
+
'f_meter_brand': '气表品牌',
|
|
152
|
+
'f_write_card': '写卡状态',
|
|
153
|
+
'f_comments': '补气原因',
|
|
154
|
+
'f_depname': '所属部门'
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
props: {
|
|
159
|
+
oldmodel: Object,
|
|
160
|
+
model: Object
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
ready () {
|
|
164
|
+
/* console.log('logininfo',this.$login.r) */
|
|
165
|
+
if (this.$login.r.includes('维护银行转账信息')) {
|
|
166
|
+
this.editbank = true
|
|
167
|
+
}
|
|
168
|
+
// console.log(this.props.model)
|
|
169
|
+
this.oldmodel = JSON.parse(JSON.stringify(this.model))
|
|
170
|
+
readyGen(this)
|
|
171
|
+
},
|
|
172
|
+
created () {
|
|
173
|
+
},
|
|
174
|
+
methods: {
|
|
175
|
+
initoperator () {
|
|
176
|
+
this.foperator = []
|
|
177
|
+
console.log('this.$login', this.$login, this.oldmodel, this.model)
|
|
178
|
+
let arr = this.$GetSaleParam.inputtors.filter((res) => {
|
|
179
|
+
if (res.rolestr != null && res.rolestr != '') {
|
|
180
|
+
return (res.rolestr.indexOf('收费员') > -1 || res.rolestr.indexOf('话务员') > -1) && res.f_orgid == this.$login.f.orgid
|
|
181
|
+
}
|
|
182
|
+
})
|
|
183
|
+
arr.forEach((res) => {
|
|
184
|
+
this.foperator.push({label: res.name, value: res.id})
|
|
185
|
+
})
|
|
186
|
+
},
|
|
187
|
+
selectoperator () {
|
|
188
|
+
let id = this.model.f_operatorid
|
|
189
|
+
if (!this.model.f_operatorid) {
|
|
190
|
+
return
|
|
191
|
+
}
|
|
192
|
+
let http = new HttpResetClass()
|
|
193
|
+
http.load('POST', 'api/af-revenue/sql/saleSingleTable',
|
|
194
|
+
{
|
|
195
|
+
data: {
|
|
196
|
+
tablename: 't_user',
|
|
197
|
+
condition: `id = '${id}'`
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
201
|
+
console.log('kanak,res', res)
|
|
202
|
+
if (res.data.length > 0) {
|
|
203
|
+
this.model.f_operator = res.data[0].name
|
|
204
|
+
} else {
|
|
205
|
+
this.model.f_operatorid = ''
|
|
206
|
+
this.$showAlert('操作员信息未找到', 'warning', 2000)
|
|
207
|
+
}
|
|
208
|
+
console.log('this.f_operatorid', this.model.f_operator)
|
|
209
|
+
})
|
|
210
|
+
},
|
|
211
|
+
// 自定义划价
|
|
212
|
+
fileterprice (row) {
|
|
213
|
+
this.priceSplit = true
|
|
214
|
+
console.log('row==>', row)
|
|
215
|
+
},
|
|
216
|
+
cancel () {
|
|
217
|
+
this.$dispatch('close')
|
|
218
|
+
},
|
|
219
|
+
uploadFiles () {
|
|
220
|
+
this.showfiles = !this.showfiles
|
|
221
|
+
},
|
|
222
|
+
async getenddate () {
|
|
223
|
+
var end_date = await this.$resetpost('api/af-revenue/logic/getEndDate', {
|
|
224
|
+
data: {
|
|
225
|
+
f_userinfo_id: this.model.f_userinfo_id,
|
|
226
|
+
f_input_date: this.model.f_input_date
|
|
227
|
+
}
|
|
228
|
+
})
|
|
229
|
+
this.model.f_end_date = end_date.data
|
|
230
|
+
},
|
|
231
|
+
addressValid (val) {
|
|
232
|
+
},
|
|
233
|
+
async save () {
|
|
234
|
+
for (var item in this.model) {
|
|
235
|
+
if (this.model[item] instanceof Array) {
|
|
236
|
+
this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
|
|
237
|
+
}
|
|
238
|
+
if (this.model[item] != this.oldmodel[item]) {
|
|
239
|
+
var car = {
|
|
240
|
+
chinesename: this.fileNameSet[item],
|
|
241
|
+
fieldname: item,
|
|
242
|
+
tablename: 't_fillgas',
|
|
243
|
+
oldvalue: this.oldmodel[item],
|
|
244
|
+
newvalue: this.model[item],
|
|
245
|
+
state: '有效',
|
|
246
|
+
modifitime: Util.toStandardTimeString(),
|
|
247
|
+
operator: this.$login.f.name,
|
|
248
|
+
fillgas_id: this.model.id,
|
|
249
|
+
f_operator: this.$login.f.name,
|
|
250
|
+
f_operatorid: this.$login.f.id,
|
|
251
|
+
f_orgid: this.$login.f.orgid,
|
|
252
|
+
f_orgname: this.$login.f.orgs,
|
|
253
|
+
f_depid: this.$login.f.depids,
|
|
254
|
+
f_depname: this.$login.f.deps
|
|
255
|
+
}
|
|
256
|
+
this.recordList.push(car)
|
|
257
|
+
// 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
|
|
258
|
+
console.log(car)
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
await this.$resetpost('api/af-revenue/logic/saveFillgasRecord', {
|
|
263
|
+
data: {
|
|
264
|
+
recordlist: this.recordList,
|
|
265
|
+
newData: this.model
|
|
266
|
+
}
|
|
267
|
+
})
|
|
268
|
+
await this.$resetpost('api/af-revenue/entity/save/t_fillgas', this.model, {
|
|
269
|
+
resolveMsg: '修改成功',
|
|
270
|
+
rejectMsg: '未通过,修改出错!!!'
|
|
271
|
+
})
|
|
272
|
+
console.log('this.model', this.model)
|
|
273
|
+
this.$dispatch('close')
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
computed: {
|
|
277
|
+
fstate () {
|
|
278
|
+
return this.$appdata.getParam('补气状态')
|
|
279
|
+
},
|
|
280
|
+
ftype () {
|
|
281
|
+
return this.$appdata.getParam('补气类型')
|
|
282
|
+
},
|
|
283
|
+
|
|
284
|
+
inputtores () {
|
|
285
|
+
// 获取补气操作员
|
|
286
|
+
console.log('获取补气员', this.$login.f)
|
|
287
|
+
let rs = []
|
|
288
|
+
if (this.$login.f.f_gasman.length > 0) {
|
|
289
|
+
for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
|
|
290
|
+
let temp = {
|
|
291
|
+
label: this.$login.f.f_gasman[i].name,
|
|
292
|
+
value: this.$login.f.f_gasman[i].name
|
|
293
|
+
}
|
|
294
|
+
rs.push(temp)
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
// let rs = this.$appdata.getParam('补气员')
|
|
298
|
+
return rs
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
},
|
|
302
|
+
watch: {
|
|
303
|
+
'model.f_input_date' (val) {
|
|
304
|
+
if (val) {
|
|
305
|
+
this.getenddate()
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
'model' () {
|
|
309
|
+
this.initoperator()
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
</script>
|