sale-client 4.2.75 → 4.2.76

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.
Files changed (73) hide show
  1. package/build/dev-server.js +52 -30
  2. package/index.html +7 -2
  3. package/package.json +1 -1
  4. package/src/App.vue +1 -1
  5. package/src/components/charge/business/IOTMeterCenter.vue +3 -2
  6. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  7. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  8. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  9. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  10. package/src/filiale/alashan/business/IOTMeterCenter.vue +1 -1
  11. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  12. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  13. package/src/filiale/bayan/StockListmain.vue +543 -543
  14. package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
  15. package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
  16. package/src/filiale/bazhong/sale.js +8 -8
  17. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  18. package/src/filiale/fugou/IOTMeterCenter.vue +904 -0
  19. package/src/filiale/fugou/sale.js +2 -0
  20. package/src/filiale/jiaxian/IOTMeterCenter.vue +1 -1
  21. package/src/filiale/jingyang/charge/IOTMeterCenter.vue +1 -1
  22. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  23. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  24. package/src/filiale/lixianV3/components/charge/IOTMeterCenter.vue +1 -1
  25. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  26. package/src/filiale/qianneng/machine/IOTMeterCenter.vue +1 -1
  27. package/src/filiale/qingtongxia/IOTMeterCenter.vue +1 -1
  28. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  29. package/src/filiale/ronghao/CardService.js +2144 -2144
  30. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  31. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  32. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  33. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  34. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  35. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  36. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  37. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  38. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  39. package/src/filiale/ronghao/Upload.vue +654 -654
  40. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  41. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  42. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  43. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  44. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  45. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  46. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  47. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  48. package/src/filiale/ronghao/specificInformation.vue +537 -537
  49. package/src/filiale/ruihua/IOTMeterCenter.vue +1 -1
  50. package/src/filiale/shimen/IOTMeterCenter.vue +1 -1
  51. package/src/filiale/shiquan/charge/IOTMeterCenter.vue +1 -1
  52. package/src/filiale/xihu/IOTMeterCenter.vue +1 -1
  53. package/src/filiale/yangchun/ChargeList.vue +954 -954
  54. package/src/filiale/yangchun/IOTMeterCenter.vue +1 -1
  55. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  56. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  57. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  58. package/src/main.js +3 -3
  59. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  60. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  61. package/.gradle/5.2.1/gc.properties +0 -0
  62. package/.gradle/8.10/checksums/checksums.lock +0 -0
  63. package/.gradle/8.10/dependencies-accessors/gc.properties +0 -0
  64. package/.gradle/8.10/executionHistory/executionHistory.bin +0 -0
  65. package/.gradle/8.10/executionHistory/executionHistory.lock +0 -0
  66. package/.gradle/8.10/fileChanges/last-build.bin +0 -0
  67. package/.gradle/8.10/fileHashes/fileHashes.bin +0 -0
  68. package/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
  69. package/.gradle/8.10/gc.properties +0 -0
  70. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  71. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  72. package/.gradle/file-system.probe +0 -0
  73. package/.gradle/vcs-1/gc.properties +0 -0
@@ -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">客户姓名&nbsp;</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">&nbsp;客户编号</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">&nbsp;卡号&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;&nbsp;补气量&nbsp;</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">&nbsp;&nbsp;&nbsp;&nbsp;次数&nbsp&nbsp</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">&nbsp&nbsp补气员&nbsp</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">客户姓名&nbsp;</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">&nbsp;客户编号</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">&nbsp;卡号&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;&nbsp;补气量&nbsp;</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">&nbsp;&nbsp;&nbsp;&nbsp;次数&nbsp&nbsp</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">&nbsp&nbsp补气员&nbsp</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>