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,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>
|