sale-client 4.2.36 → 4.2.37

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 (61) hide show
  1. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  2. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  3. package/.gradle/5.2.1/gc.properties +0 -0
  4. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  5. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  6. package/.gradle/vcs-1/gc.properties +0 -0
  7. package/build/dev-server.js +28 -42
  8. package/hs_err_pid32452.log +625 -0
  9. package/hs_err_pid36896.log +249 -0
  10. package/package.json +1 -1
  11. package/src/App.vue +1 -1
  12. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  13. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  14. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  15. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  16. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
  17. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  18. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  19. package/src/filiale/bayan/StockListmain.vue +543 -543
  20. package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
  21. package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
  22. package/src/filiale/bazhong/sale.js +8 -8
  23. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  24. package/src/filiale/jinhong/machineHand.vue +2099 -2099
  25. package/src/filiale/jinhong/plugins/GetSaleParams.js +302 -302
  26. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  27. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  28. package/src/filiale/meihekou/batch/batchEditFiles.vue +12 -0
  29. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  30. package/src/filiale/meihekou/handOperate.vue +5 -4
  31. package/src/filiale/meihekou/replacementSingleInfoOperation.vue +318 -0
  32. package/src/filiale/meihekou/sale.js +4 -0
  33. package/src/filiale/meihekou/specificInformation.vue +552 -0
  34. package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
  35. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  36. package/src/filiale/ronghao/CardService.js +2144 -2144
  37. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  38. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  39. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  40. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  41. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  42. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  43. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  44. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  45. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  46. package/src/filiale/ronghao/Upload.vue +654 -654
  47. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  48. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  49. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  50. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  51. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  52. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  53. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  54. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  55. package/src/filiale/ronghao/specificInformation.vue +537 -537
  56. package/src/filiale/yangchun/ChargeList.vue +954 -954
  57. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  58. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  59. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  60. package/src/main.js +1 -1
  61. package/src/plugins/CardService.js +2217 -2217
@@ -1,469 +1,469 @@
1
- <template>
2
- <div class="auto" style="overflow-y: scroll" id="meterInfoTest">
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 form-group">
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 form-group">
11
- <label class="font_normal_body" title="参数:抄表状态">抄表状态</label>
12
- <v-select :value.sync="model.f_meter_state" v-model="model.f_meter_state" :value-single="true"
13
- :options='meterstate' placeholder='抄表状态' close-on-select ></v-select>
14
- </div>
15
- <div class="col-sm-4 form-group">
16
- <label class="font_normal_body" title="参数:抄表单状态">表单状态</label>
17
- <v-select :value.sync="model.f_hand_state" v-model="model.f_hand_state" :value-single="true"
18
- :options='handstate' placeholder='抄表单状态' close-on-select ></v-select>
19
- </div>
20
- </div>
21
- <div class="row">
22
- <div class="col-sm-4 form-group">
23
- <label class="font_normal_body">下发日期</label>
24
- <datepicker id="f_hand_date"
25
- placeholder="下发日期"
26
- style="width:60%"
27
- v-model="model.f_hand_date"
28
- :value.sync="model.f_hand_date"
29
- :format="'yyyy-MM-dd HH:mm:ss'"
30
- >
31
- </datepicker>
32
- </div>
33
- <div class="col-sm-4 form-group">
34
- <label class="font_normal_body">录入日期</label>
35
- <datepicker id="f_input_date"
36
- placeholder="录入日期"
37
- style="width:60%"
38
- v-model="model.f_input_date"
39
- :value.sync="model.f_input_date"
40
- :format="'yyyy-MM-dd HH:mm:ss'"
41
- >
42
- </datepicker>
43
- </div>
44
- <div class="col-sm-4 form-group">
45
- <label class="font_normal_body">截止日期</label>
46
- <input type="text" v-model="model.f_end_date" disabled=disabled style="width: 60%" class="input_search">
47
- </div>
48
-
49
- </div>
50
- <div class="row">
51
- <div class="col-sm-4 form-group">
52
- <label class="font_normal_body">抄表来源</label>
53
- <input type="text" v-model="model.f_meter_source" style="width: 60%" class="input_search">
54
- </div>
55
- <div class="col-sm-8 form-group">
56
- <label class="font_normal_body">地&emsp;&emsp;址</label>
57
- <input type="text" v-model="model.f_address" disabled=disabled style="width: 80%" class="input_search">
58
- </div>
59
- </div>
60
-
61
- <!--<div class="col-sm-4 form-group">
62
- <label class="font_normal_body">用户编号</label>
63
- <input type="text" v-model="model.f_userinfo_code" disabled=disabled style="width: 60%" class="input_search">
64
- </div>-->
65
- <div class="row">
66
- <div class="col-sm-4 form-group">
67
- <label class="font_normal_body">上期结余</label>
68
- <input type="text" v-model="model.f_balance" disabled=disabled style="width: 60%" class="input_search">
69
- </div>
70
- <div class="col-sm-4 form-group">
71
- <label class="font_normal_body">上期底数</label>
72
- <input type="text" v-model="model.f_last_tablebase" disabled=disabled style="width: 60%" class="input_search">
73
- </div>
74
- <div class="col-sm-4 form-group">
75
- <label class="font_normal_body">本期底数</label>
76
- <input type="text" v-model="model.f_tablebase" disabled=disabled style="width: 60%" class="input_search">
77
- </div>
78
- </div>
79
- <div class="row">
80
- <div class="col-sm-4 form-group">
81
- <label class="font_normal_body">应交气量</label>
82
- <input type="text" v-model="model.f_oughtamount" disabled=disabled style="width: 60%" class="input_search">
83
- </div>
84
-
85
- <div class="col-sm-4 form-group">
86
- <label class="font_normal_body">应交金额</label>
87
- <input type="text" v-model="model.f_oughtfee" disabled=disabled style="width: 60%" class="input_search">
88
- </div>
89
- <div class="col-sm-4 form-group">
90
- <label class="font_normal_body" title="参数:是否">是否缴费</label>
91
- <!-- <input type="text" v-model="model.f_whether_pay" style="width: 60%" class="input_search">-->
92
- <v-select :value.sync="model.f_whether_pay" v-model="model.f_whether_pay"
93
- :options='writePays' placeholder='是否缴费'
94
- :value-single="true"
95
- :search="false"
96
- close-on-select></v-select>
97
- </div>
98
-
99
- </div>
100
- <div class="row">
101
- <div class="col-sm-4 form-group">
102
- <label class="font_normal_body">财务核算日期</label>
103
- <datepicker id="f_accounting_date"
104
- placeholder="财务核算日期"
105
- style="width:60%"
106
- v-model="model.f_accounting_date"
107
- :value.sync="model.f_accounting_date"
108
- :format="'yyyy-MM-dd HH:mm:ss'"
109
- >
110
- </datepicker>
111
- </div>
112
- <div class="col-sm-4 form-group">
113
- <label class="font_normal_body">抄&ensp;表&ensp;员</label>
114
- <v-select :value.sync="model.f_inputtor" v-model="model.f_inputtor" :value-single="true"
115
- :options='inputtores' placeholder=' 抄表员' close-on-select ></v-select>
116
- </div>
117
- <div class="col-sm-4 form-group">
118
- <!--<label class="font_normal_body" title="参数:操作人员">操作人员</label>-->
119
- <!--<v-select :value.sync="model.f_operatorid"-->
120
- <!--v-model="model.f_operatorid"-->
121
- <!--:value-single="true" @change="selectoperator()"-->
122
- <!--:options='foperator'-->
123
- <!--close-on-select></v-select>-->
124
- <label class="font_normal_body" title="参数:录入人员">录入人员</label>
125
- <v-select :value.sync="model.f_input_person"
126
- v-model="model.f_input_person"
127
- :value-single="true"
128
- :options='person'
129
- close-on-select></v-select>
130
- </div>
131
- <div class="row">
132
- <div class="col-sm-4 form-group">
133
- <label class="font_normal_body" title="开票标识">开票标识</label>
134
- <v-select :value.sync="model.f_isbill" v-model="model.f_isbill"
135
- :options='isbills' placeholder='开票标识'
136
- :value-single="true"
137
- :search="false"
138
- close-on-select>
139
- </v-select>
140
- </div>
141
- <div class="col-sm-4 form-group">
142
- <label class="font_normal_body">审核人</label>
143
- <input type="text" v-model="model.f_audit_person" style="width: 60%" class="input_search">
144
- </div>
145
- <div class="col-sm-4 form-group">
146
- <label class="font_normal_body">审核时间</label>
147
- <datepicker id="f_audit_date"
148
- placeholder="审核时间"
149
- style="width:60%"
150
- v-model="model.f_audit_date"
151
- :value.sync="model.f_audit_date"
152
- :format="'yyyy-MM-dd HH:mm:ss'"
153
- >
154
- </datepicker>
155
- </div>
156
- </div>
157
- </div>
158
- <div class="row">
159
- <div class="col-sm-4 form-group">
160
- <label class="font_normal_body">所属部门</label>
161
- <input type="text" v-model="model.f_depname" disabled=disabled style="width: 60%" class="input_search">
162
- </div>
163
- <div class="col-sm-4 form-group">
164
- <label class="font_normal_body">所属公司</label>
165
- <input type="text" v-model="model.f_orgname" disabled=disabled style="width: 60%" class="input_search">
166
- </div>
167
- <div class="col-sm-4 form-group">
168
- <label class="font_normal_body" title="参数:抄表结果状态">结果状态</label>
169
- <!-- <input type="text" v-model="model.f_whether_pay" style="width: 60%" class="input_search">-->
170
- <v-select :value.sync="model.f_result_state" v-model="model.f_result_state"
171
- :options='resultstate' placeholder='抄表结果状态'
172
- :value-single="true"
173
- :search="false"
174
- close-on-select></v-select>
175
- </div>
176
- </div>
177
- <div class="row">
178
- <div class="col-sm-12">
179
- <label for="f_user_type" class="font_normal_body">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
180
-
181
- <div class="col-sm-10" id="f_comments" style="margin-left: 8px;margin-bottom: 5px;width: 86.333333%;">
182
- <textarea class="col-sm-3 form-control" type="text" v-model="model.f_comments"></textarea>
183
- </div>
184
- </div>
185
- </div>
186
- </form>
187
- <div style="float: right">
188
- <button type="button" name="button" class="button_search"
189
- v-if="model.f_meter_state === '已抄表' && model.f_whether_pay === '否'"
190
- @click.stop="fileterprice(row)">自定义划价
191
- </button>
192
- <button class="button_search" @click="save">保存</button>
193
- <button class="button_clear" @click="cancel">取消</button>
194
- </div>
195
- <split-price :showdata="model" :pricesplit="priceSplit" v-if="priceSplit" ></split-price>
196
- </validator>
197
- <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
198
- <article slot="modal-body" style="height: 400px">
199
- <upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="抄表" isremark="true" style="width:auto" ></upload>
200
- </article>
201
- <footer slot="modal-footer" class="modal-footer">
202
- </footer>
203
- </modal>
204
- <!--文件上传按钮-->
205
- <button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
206
- </div>
207
- </template>
208
- <script>
209
- import Vue from 'vue'
210
- import {HttpResetClass} from 'vue-client'
211
- import * as Util from '../../../../../Util'
212
- var data
213
- let readyGen = async function (self) {
214
- await self.$LoadParams.loadParam(self.f_filialeid)
215
- await self.$GetSaleParam.initinputtor()
216
- await self.initperson()
217
- }
218
- export default {
219
- title: '基本信息',
220
-
221
- data () {
222
- return {
223
- // 构建数组来存储对象
224
- editbank: true,
225
- showfiles: false,
226
- priceSplit: false,
227
- recordList: [],
228
- // foperator:[],
229
- person: [],
230
- // meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
231
- // handstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
232
- fileNameSet: {
233
- 'f_meter_state': '抄表状态',
234
- 'f_hand_state': '抄表单状态',
235
- 'f_meter_source': '抄表数据来源',
236
- 'f_accounting_date': '财务核算日期',
237
- 'f_inputtor': '抄表员',
238
- 'f_end_date': '截止日期',
239
- 'f_input_date': '录入时间',
240
- 'f_hand_date': '下发时间',
241
- 'f_user_name': '客户姓名',
242
- 'f_userinfo_code': '客户编号',
243
- 'f_user_address': '客户地址',
244
- 'f_isbill': '开票标识',
245
- 'f_audit_person': '审核人',
246
- 'f_audit_date': '审核时间',
247
- 'f_orgname': '所属公司',
248
- 'f_depname': '所属部门',
249
- 'f_operator': '操作人',
250
- 'f_operatorid': '操作人ID'
251
- }
252
- }
253
- },
254
- props: {
255
- oldmodel: Object,
256
- model: Object
257
- },
258
-
259
- ready () {
260
- /* console.log('logininfo',this.$login.r) */
261
- if (this.$login.r.includes('维护银行转账信息')) {
262
- this.editbank = true
263
- }
264
- // console.log(this.props.model)
265
- this.oldmodel = JSON.parse(JSON.stringify(this.model))
266
- readyGen(this)
267
- },
268
- created () {
269
- },
270
- methods: {
271
- initperson () {
272
- this.person = []
273
- console.log('this.$login000', this.$login, this.oldmodel, this.model)
274
- let arr = this.$GetSaleParam.inputtors.filter((res) => {
275
- if (res.rolestr != null && res.rolestr != '') {
276
- return res.f_department_name == this.model.f_depname
277
- }
278
- })
279
- arr.forEach((res) => {
280
- this.person.push({label: res.name, value: res.name})
281
- })
282
- },
283
- // initoperator(){
284
- // this.foperator=[]
285
- // console.log("this.$login",this.$login,this.oldmodel,this.model)
286
- // let arr = this.$GetSaleParam.inputtors.filter((res) => {
287
- // if (res.rolestr != null && res.rolestr != '') {
288
- // return res.rolestr.indexOf('营业员') > -1 && res.f_department_name == this.model.f_depname
289
- // }
290
- // })
291
- // arr.forEach((res) => {
292
- // this.foperator.push({label: res.name, value: res.id})
293
- // })
294
- // },
295
- // selectoperator () {
296
- // let id = this.model.f_operatorid
297
- // if(!this.model.f_operatorid){
298
- // return
299
- // }
300
- // let http = new HttpResetClass()
301
- // http.load('POST', 'api/af-revenue/sql/saleSingleTable',
302
- // {data:{tablename: 't_user',
303
- // condition: `id = '${id}'`}},
304
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
305
- // console.log('kanak,res', res)
306
- // if(res.data.length>0){
307
- // this.model.f_input_person = res.data[0].name
308
- // }else{
309
- // this.model.f_input_person=''
310
- // this.$showAlert('人员信息未找到','warning',2000)
311
- // }
312
- // console.log('this.f_input_person', this.model.f_input_person)
313
- // })
314
- // },
315
- fileterprice (row) {
316
- this.priceSplit = true
317
- console.log('row==>', row)
318
- },
319
- cancel () {
320
- this.$dispatch('close')
321
- },
322
- uploadFiles () {
323
- this.showfiles = !this.showfiles
324
- },
325
- async getenddate () {
326
- var end_date = await this.$resetpost('api/af-revenue/logic/getEndDate', {data: {f_userinfo_id: this.model.f_userinfo_id, f_input_date: this.model.f_input_date}}, {rejectMsg: null, resolveMsg: null})
327
- this.model.f_end_date = end_date.data
328
- },
329
- addressValid (val) {
330
- },
331
- async save () {
332
- for (var item in this.model) {
333
- if (this.model[item] instanceof Array) {
334
- this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
335
- }
336
- if (this.model[item] != this.oldmodel[item] && this.model[item] != 's_timestamp') {
337
- var car = {
338
- chinesename: this.fileNameSet[item],
339
- fieldname: item,
340
- tablename: 't_handplan',
341
- oldvalue: this.oldmodel[item],
342
- newvalue: this.model[item],
343
- state: '有效',
344
- modifitime: Util.toStandardTimeString(),
345
- operator: this.$login.f.name,
346
- hand_id: this.model.id,
347
- f_operator: this.$login.f.name,
348
- f_operatorid: this.$login.f.id,
349
- f_orgid: this.$login.f.orgid,
350
- f_orgname: this.$login.f.orgs,
351
- f_depid: this.$login.f.depids,
352
- f_depname: this.$login.f.deps,
353
- f_audit_person: this.model.f_audit_person,
354
- f_audit_date: this.model.f_audit_date
355
- }
356
- this.recordList.push(car)
357
- // 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
358
- console.log(car)
359
- }
360
- }
361
-
362
- await this.$resetpost('api/af-revenue/logic/saveHandRecord', {data: {recordlist: this.recordList, newData: this.model}})
363
- if (this.model.f_meter_classify.indexOf('卡表') >= 0) {
364
- this.model.f_result_state = this.model.f_hand_state
365
- this.model.f_hand_date = this.model.f_input_date
366
- await this.$resetpost('api/af-revenue/entity/save/t_cardhand', this.model, {
367
- resolveMsg: '修改成功',
368
- rejectMsg: '未通过,修改出错!!!'
369
- })
370
- } else {
371
- await this.$resetpost('api/af-revenue/entity/save/t_handplan', this.model, {
372
- resolveMsg: '修改成功',
373
- rejectMsg: '未通过,修改出错!!!'
374
- })
375
- }
376
- console.log('this.model', this.model)
377
- this.$dispatch('close')
378
- }
379
- },
380
- computed: {
381
- meterstate () {
382
- return this.$appdata.getParam('抄表状态')
383
- },
384
- handstate () {
385
- return this.$appdata.getParam('抄表单状态')
386
- },
387
- isbills () {
388
- return this.$appdata.getParam('开票标识')
389
- },
390
- writePays () {
391
- return this.$appdata.getParam('是否')
392
- },
393
- resultstate () {
394
- return this.$appdata.getParam('抄表结果状态')
395
- },
396
-
397
- inputtores () {
398
- // 获取抄表员
399
- console.log('获取抄表员', this.$login.f)
400
- let rs = new Array()
401
- if (this.$login.f.f_gasman.length > 0) {
402
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
403
- let temp = {
404
- label: this.$login.f.f_gasman[i].name,
405
- value: this.$login.f.f_gasman[i].name
406
- }
407
- rs.push(temp)
408
- }
409
- }
410
- // let rs = this.$appdata.getParam('抄表员')
411
- return rs
412
- }
413
-
414
- },
415
- watch: {
416
- 'model.f_input_date' (val) {
417
- if (val) {
418
- this.getenddate()
419
- }
420
- },
421
- 'model' () {
422
- this.initperson()
423
- }
424
- }
425
- }
426
- </script>
427
- <style lang="less" scoped>
428
- #meterInfoTest{
429
- #addboxmap {
430
- height: 300px;
431
- }
432
- .glyphicon-map-marker:hover {
433
- color: red;
434
- }
435
- .glyphicon-map-marker {
436
- color: blue;
437
- cursor: pointer;
438
- }
439
- .col-sm-4 {
440
- .font_normal_body {
441
- width: 73px;
442
- overflow: auto;
443
- white-space: nowrap;
444
- // 指滚动条两边的按钮
445
- &::-webkit-scrollbar-button {
446
- display: none;
447
- }
448
- // 滚动条的宽度
449
- &::-webkit-scrollbar {
450
- width: 5px !important;
451
- height: 5px !important;
452
- }
453
- // 滚动条的设置
454
- &::-webkit-scrollbar-thumb {
455
- background-color: #ddd;
456
- background-clip: padding-box;
457
- }
458
- &::-webkit-scrollbar-thumb:hover {
459
- background-color: #bbb;
460
- }
461
- &::-webkit-scrollbar-track {
462
- /*滚动条里面轨道*/
463
- box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
464
- background: #ededed;
465
- }
466
- }
467
- }
468
- }
469
- </style>
1
+ <template>
2
+ <div class="auto" style="overflow-y: scroll" id="meterInfoTest">
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 form-group">
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 form-group">
11
+ <label class="font_normal_body" title="参数:抄表状态">抄表状态</label>
12
+ <v-select :value.sync="model.f_meter_state" v-model="model.f_meter_state" :value-single="true"
13
+ :options='meterstate' placeholder='抄表状态' close-on-select ></v-select>
14
+ </div>
15
+ <div class="col-sm-4 form-group">
16
+ <label class="font_normal_body" title="参数:抄表单状态">表单状态</label>
17
+ <v-select :value.sync="model.f_hand_state" v-model="model.f_hand_state" :value-single="true"
18
+ :options='handstate' placeholder='抄表单状态' close-on-select ></v-select>
19
+ </div>
20
+ </div>
21
+ <div class="row">
22
+ <div class="col-sm-4 form-group">
23
+ <label class="font_normal_body">下发日期</label>
24
+ <datepicker id="f_hand_date"
25
+ placeholder="下发日期"
26
+ style="width:60%"
27
+ v-model="model.f_hand_date"
28
+ :value.sync="model.f_hand_date"
29
+ :format="'yyyy-MM-dd HH:mm:ss'"
30
+ >
31
+ </datepicker>
32
+ </div>
33
+ <div class="col-sm-4 form-group">
34
+ <label class="font_normal_body">录入日期</label>
35
+ <datepicker id="f_input_date"
36
+ placeholder="录入日期"
37
+ style="width:60%"
38
+ v-model="model.f_input_date"
39
+ :value.sync="model.f_input_date"
40
+ :format="'yyyy-MM-dd HH:mm:ss'"
41
+ >
42
+ </datepicker>
43
+ </div>
44
+ <div class="col-sm-4 form-group">
45
+ <label class="font_normal_body">截止日期</label>
46
+ <input type="text" v-model="model.f_end_date" disabled=disabled style="width: 60%" class="input_search">
47
+ </div>
48
+
49
+ </div>
50
+ <div class="row">
51
+ <div class="col-sm-4 form-group">
52
+ <label class="font_normal_body">抄表来源</label>
53
+ <input type="text" v-model="model.f_meter_source" style="width: 60%" class="input_search">
54
+ </div>
55
+ <div class="col-sm-8 form-group">
56
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
57
+ <input type="text" v-model="model.f_address" disabled=disabled style="width: 80%" class="input_search">
58
+ </div>
59
+ </div>
60
+
61
+ <!--<div class="col-sm-4 form-group">
62
+ <label class="font_normal_body">用户编号</label>
63
+ <input type="text" v-model="model.f_userinfo_code" disabled=disabled style="width: 60%" class="input_search">
64
+ </div>-->
65
+ <div class="row">
66
+ <div class="col-sm-4 form-group">
67
+ <label class="font_normal_body">上期结余</label>
68
+ <input type="text" v-model="model.f_balance" disabled=disabled style="width: 60%" class="input_search">
69
+ </div>
70
+ <div class="col-sm-4 form-group">
71
+ <label class="font_normal_body">上期底数</label>
72
+ <input type="text" v-model="model.f_last_tablebase" disabled=disabled style="width: 60%" class="input_search">
73
+ </div>
74
+ <div class="col-sm-4 form-group">
75
+ <label class="font_normal_body">本期底数</label>
76
+ <input type="text" v-model="model.f_tablebase" disabled=disabled style="width: 60%" class="input_search">
77
+ </div>
78
+ </div>
79
+ <div class="row">
80
+ <div class="col-sm-4 form-group">
81
+ <label class="font_normal_body">应交气量</label>
82
+ <input type="text" v-model="model.f_oughtamount" disabled=disabled style="width: 60%" class="input_search">
83
+ </div>
84
+
85
+ <div class="col-sm-4 form-group">
86
+ <label class="font_normal_body">应交金额</label>
87
+ <input type="text" v-model="model.f_oughtfee" disabled=disabled style="width: 60%" class="input_search">
88
+ </div>
89
+ <div class="col-sm-4 form-group">
90
+ <label class="font_normal_body" title="参数:是否">是否缴费</label>
91
+ <!-- <input type="text" v-model="model.f_whether_pay" style="width: 60%" class="input_search">-->
92
+ <v-select :value.sync="model.f_whether_pay" v-model="model.f_whether_pay"
93
+ :options='writePays' placeholder='是否缴费'
94
+ :value-single="true"
95
+ :search="false"
96
+ close-on-select></v-select>
97
+ </div>
98
+
99
+ </div>
100
+ <div class="row">
101
+ <div class="col-sm-4 form-group">
102
+ <label class="font_normal_body">财务核算日期</label>
103
+ <datepicker id="f_accounting_date"
104
+ placeholder="财务核算日期"
105
+ style="width:60%"
106
+ v-model="model.f_accounting_date"
107
+ :value.sync="model.f_accounting_date"
108
+ :format="'yyyy-MM-dd HH:mm:ss'"
109
+ >
110
+ </datepicker>
111
+ </div>
112
+ <div class="col-sm-4 form-group">
113
+ <label class="font_normal_body">抄&ensp;表&ensp;员</label>
114
+ <v-select :value.sync="model.f_inputtor" v-model="model.f_inputtor" :value-single="true"
115
+ :options='inputtores' placeholder=' 抄表员' close-on-select ></v-select>
116
+ </div>
117
+ <div class="col-sm-4 form-group">
118
+ <!--<label class="font_normal_body" title="参数:操作人员">操作人员</label>-->
119
+ <!--<v-select :value.sync="model.f_operatorid"-->
120
+ <!--v-model="model.f_operatorid"-->
121
+ <!--:value-single="true" @change="selectoperator()"-->
122
+ <!--:options='foperator'-->
123
+ <!--close-on-select></v-select>-->
124
+ <label class="font_normal_body" title="参数:录入人员">录入人员</label>
125
+ <v-select :value.sync="model.f_input_person"
126
+ v-model="model.f_input_person"
127
+ :value-single="true"
128
+ :options='person'
129
+ close-on-select></v-select>
130
+ </div>
131
+ <div class="row">
132
+ <div class="col-sm-4 form-group">
133
+ <label class="font_normal_body" title="开票标识">开票标识</label>
134
+ <v-select :value.sync="model.f_isbill" v-model="model.f_isbill"
135
+ :options='isbills' placeholder='开票标识'
136
+ :value-single="true"
137
+ :search="false"
138
+ close-on-select>
139
+ </v-select>
140
+ </div>
141
+ <div class="col-sm-4 form-group">
142
+ <label class="font_normal_body">审核人</label>
143
+ <input type="text" v-model="model.f_audit_person" style="width: 60%" class="input_search">
144
+ </div>
145
+ <div class="col-sm-4 form-group">
146
+ <label class="font_normal_body">审核时间</label>
147
+ <datepicker id="f_audit_date"
148
+ placeholder="审核时间"
149
+ style="width:60%"
150
+ v-model="model.f_audit_date"
151
+ :value.sync="model.f_audit_date"
152
+ :format="'yyyy-MM-dd HH:mm:ss'"
153
+ >
154
+ </datepicker>
155
+ </div>
156
+ </div>
157
+ </div>
158
+ <div class="row">
159
+ <div class="col-sm-4 form-group">
160
+ <label class="font_normal_body">所属部门</label>
161
+ <input type="text" v-model="model.f_depname" disabled=disabled style="width: 60%" class="input_search">
162
+ </div>
163
+ <div class="col-sm-4 form-group">
164
+ <label class="font_normal_body">所属公司</label>
165
+ <input type="text" v-model="model.f_orgname" disabled=disabled style="width: 60%" class="input_search">
166
+ </div>
167
+ <div class="col-sm-4 form-group">
168
+ <label class="font_normal_body" title="参数:抄表结果状态">结果状态</label>
169
+ <!-- <input type="text" v-model="model.f_whether_pay" style="width: 60%" class="input_search">-->
170
+ <v-select :value.sync="model.f_result_state" v-model="model.f_result_state"
171
+ :options='resultstate' placeholder='抄表结果状态'
172
+ :value-single="true"
173
+ :search="false"
174
+ close-on-select></v-select>
175
+ </div>
176
+ </div>
177
+ <div class="row">
178
+ <div class="col-sm-12">
179
+ <label for="f_user_type" class="font_normal_body">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
180
+
181
+ <div class="col-sm-10" id="f_comments" style="margin-left: 8px;margin-bottom: 5px;width: 86.333333%;">
182
+ <textarea class="col-sm-3 form-control" type="text" v-model="model.f_comments"></textarea>
183
+ </div>
184
+ </div>
185
+ </div>
186
+ </form>
187
+ <div style="float: right">
188
+ <button type="button" name="button" class="button_search"
189
+ v-if="model.f_meter_state === '已抄表' && model.f_whether_pay === '否'"
190
+ @click.stop="fileterprice(row)">自定义划价
191
+ </button>
192
+ <button class="button_search" @click="save">保存</button>
193
+ <button class="button_clear" @click="cancel">取消</button>
194
+ </div>
195
+ <split-price :showdata="model" :pricesplit="priceSplit" v-if="priceSplit" ></split-price>
196
+ </validator>
197
+ <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
198
+ <article slot="modal-body" style="height: 400px">
199
+ <upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="抄表" isremark="true" style="width:auto" ></upload>
200
+ </article>
201
+ <footer slot="modal-footer" class="modal-footer">
202
+ </footer>
203
+ </modal>
204
+ <!--文件上传按钮-->
205
+ <button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
206
+ </div>
207
+ </template>
208
+ <script>
209
+ import Vue from 'vue'
210
+ import {HttpResetClass} from 'vue-client'
211
+ import * as Util from '../../../../../Util'
212
+ var data
213
+ let readyGen = async function (self) {
214
+ await self.$LoadParams.loadParam(self.f_filialeid)
215
+ await self.$GetSaleParam.initinputtor()
216
+ await self.initperson()
217
+ }
218
+ export default {
219
+ title: '基本信息',
220
+
221
+ data () {
222
+ return {
223
+ // 构建数组来存储对象
224
+ editbank: true,
225
+ showfiles: false,
226
+ priceSplit: false,
227
+ recordList: [],
228
+ // foperator:[],
229
+ person: [],
230
+ // meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
231
+ // handstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
232
+ fileNameSet: {
233
+ 'f_meter_state': '抄表状态',
234
+ 'f_hand_state': '抄表单状态',
235
+ 'f_meter_source': '抄表数据来源',
236
+ 'f_accounting_date': '财务核算日期',
237
+ 'f_inputtor': '抄表员',
238
+ 'f_end_date': '截止日期',
239
+ 'f_input_date': '录入时间',
240
+ 'f_hand_date': '下发时间',
241
+ 'f_user_name': '客户姓名',
242
+ 'f_userinfo_code': '客户编号',
243
+ 'f_user_address': '客户地址',
244
+ 'f_isbill': '开票标识',
245
+ 'f_audit_person': '审核人',
246
+ 'f_audit_date': '审核时间',
247
+ 'f_orgname': '所属公司',
248
+ 'f_depname': '所属部门',
249
+ 'f_operator': '操作人',
250
+ 'f_operatorid': '操作人ID'
251
+ }
252
+ }
253
+ },
254
+ props: {
255
+ oldmodel: Object,
256
+ model: Object
257
+ },
258
+
259
+ ready () {
260
+ /* console.log('logininfo',this.$login.r) */
261
+ if (this.$login.r.includes('维护银行转账信息')) {
262
+ this.editbank = true
263
+ }
264
+ // console.log(this.props.model)
265
+ this.oldmodel = JSON.parse(JSON.stringify(this.model))
266
+ readyGen(this)
267
+ },
268
+ created () {
269
+ },
270
+ methods: {
271
+ initperson () {
272
+ this.person = []
273
+ console.log('this.$login000', this.$login, this.oldmodel, this.model)
274
+ let arr = this.$GetSaleParam.inputtors.filter((res) => {
275
+ if (res.rolestr != null && res.rolestr != '') {
276
+ return res.f_department_name == this.model.f_depname
277
+ }
278
+ })
279
+ arr.forEach((res) => {
280
+ this.person.push({label: res.name, value: res.name})
281
+ })
282
+ },
283
+ // initoperator(){
284
+ // this.foperator=[]
285
+ // console.log("this.$login",this.$login,this.oldmodel,this.model)
286
+ // let arr = this.$GetSaleParam.inputtors.filter((res) => {
287
+ // if (res.rolestr != null && res.rolestr != '') {
288
+ // return res.rolestr.indexOf('营业员') > -1 && res.f_department_name == this.model.f_depname
289
+ // }
290
+ // })
291
+ // arr.forEach((res) => {
292
+ // this.foperator.push({label: res.name, value: res.id})
293
+ // })
294
+ // },
295
+ // selectoperator () {
296
+ // let id = this.model.f_operatorid
297
+ // if(!this.model.f_operatorid){
298
+ // return
299
+ // }
300
+ // let http = new HttpResetClass()
301
+ // http.load('POST', 'api/af-revenue/sql/saleSingleTable',
302
+ // {data:{tablename: 't_user',
303
+ // condition: `id = '${id}'`}},
304
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
305
+ // console.log('kanak,res', res)
306
+ // if(res.data.length>0){
307
+ // this.model.f_input_person = res.data[0].name
308
+ // }else{
309
+ // this.model.f_input_person=''
310
+ // this.$showAlert('人员信息未找到','warning',2000)
311
+ // }
312
+ // console.log('this.f_input_person', this.model.f_input_person)
313
+ // })
314
+ // },
315
+ fileterprice (row) {
316
+ this.priceSplit = true
317
+ console.log('row==>', row)
318
+ },
319
+ cancel () {
320
+ this.$dispatch('close')
321
+ },
322
+ uploadFiles () {
323
+ this.showfiles = !this.showfiles
324
+ },
325
+ async getenddate () {
326
+ var end_date = await this.$resetpost('api/af-revenue/logic/getEndDate', {data: {f_userinfo_id: this.model.f_userinfo_id, f_input_date: this.model.f_input_date}}, {rejectMsg: null, resolveMsg: null})
327
+ this.model.f_end_date = end_date.data
328
+ },
329
+ addressValid (val) {
330
+ },
331
+ async save () {
332
+ for (var item in this.model) {
333
+ if (this.model[item] instanceof Array) {
334
+ this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
335
+ }
336
+ if (this.model[item] != this.oldmodel[item] && this.model[item] != 's_timestamp') {
337
+ var car = {
338
+ chinesename: this.fileNameSet[item],
339
+ fieldname: item,
340
+ tablename: 't_handplan',
341
+ oldvalue: this.oldmodel[item],
342
+ newvalue: this.model[item],
343
+ state: '有效',
344
+ modifitime: Util.toStandardTimeString(),
345
+ operator: this.$login.f.name,
346
+ hand_id: this.model.id,
347
+ f_operator: this.$login.f.name,
348
+ f_operatorid: this.$login.f.id,
349
+ f_orgid: this.$login.f.orgid,
350
+ f_orgname: this.$login.f.orgs,
351
+ f_depid: this.$login.f.depids,
352
+ f_depname: this.$login.f.deps,
353
+ f_audit_person: this.model.f_audit_person,
354
+ f_audit_date: this.model.f_audit_date
355
+ }
356
+ this.recordList.push(car)
357
+ // 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
358
+ console.log(car)
359
+ }
360
+ }
361
+
362
+ await this.$resetpost('api/af-revenue/logic/saveHandRecord', {data: {recordlist: this.recordList, newData: this.model}})
363
+ if (this.model.f_meter_classify.indexOf('卡表') >= 0) {
364
+ this.model.f_result_state = this.model.f_hand_state
365
+ this.model.f_hand_date = this.model.f_input_date
366
+ await this.$resetpost('api/af-revenue/entity/save/t_cardhand', this.model, {
367
+ resolveMsg: '修改成功',
368
+ rejectMsg: '未通过,修改出错!!!'
369
+ })
370
+ } else {
371
+ await this.$resetpost('api/af-revenue/entity/save/t_handplan', this.model, {
372
+ resolveMsg: '修改成功',
373
+ rejectMsg: '未通过,修改出错!!!'
374
+ })
375
+ }
376
+ console.log('this.model', this.model)
377
+ this.$dispatch('close')
378
+ }
379
+ },
380
+ computed: {
381
+ meterstate () {
382
+ return this.$appdata.getParam('抄表状态')
383
+ },
384
+ handstate () {
385
+ return this.$appdata.getParam('抄表单状态')
386
+ },
387
+ isbills () {
388
+ return this.$appdata.getParam('开票标识')
389
+ },
390
+ writePays () {
391
+ return this.$appdata.getParam('是否')
392
+ },
393
+ resultstate () {
394
+ return this.$appdata.getParam('抄表结果状态')
395
+ },
396
+
397
+ inputtores () {
398
+ // 获取抄表员
399
+ console.log('获取抄表员', this.$login.f)
400
+ let rs = new Array()
401
+ if (this.$login.f.f_gasman.length > 0) {
402
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
403
+ let temp = {
404
+ label: this.$login.f.f_gasman[i].name,
405
+ value: this.$login.f.f_gasman[i].name
406
+ }
407
+ rs.push(temp)
408
+ }
409
+ }
410
+ // let rs = this.$appdata.getParam('抄表员')
411
+ return rs
412
+ }
413
+
414
+ },
415
+ watch: {
416
+ 'model.f_input_date' (val) {
417
+ if (val) {
418
+ this.getenddate()
419
+ }
420
+ },
421
+ 'model' () {
422
+ this.initperson()
423
+ }
424
+ }
425
+ }
426
+ </script>
427
+ <style lang="less" scoped>
428
+ #meterInfoTest{
429
+ #addboxmap {
430
+ height: 300px;
431
+ }
432
+ .glyphicon-map-marker:hover {
433
+ color: red;
434
+ }
435
+ .glyphicon-map-marker {
436
+ color: blue;
437
+ cursor: pointer;
438
+ }
439
+ .col-sm-4 {
440
+ .font_normal_body {
441
+ width: 73px;
442
+ overflow: auto;
443
+ white-space: nowrap;
444
+ // 指滚动条两边的按钮
445
+ &::-webkit-scrollbar-button {
446
+ display: none;
447
+ }
448
+ // 滚动条的宽度
449
+ &::-webkit-scrollbar {
450
+ width: 5px !important;
451
+ height: 5px !important;
452
+ }
453
+ // 滚动条的设置
454
+ &::-webkit-scrollbar-thumb {
455
+ background-color: #ddd;
456
+ background-clip: padding-box;
457
+ }
458
+ &::-webkit-scrollbar-thumb:hover {
459
+ background-color: #bbb;
460
+ }
461
+ &::-webkit-scrollbar-track {
462
+ /*滚动条里面轨道*/
463
+ box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
464
+ background: #ededed;
465
+ }
466
+ }
467
+ }
468
+ }
469
+ </style>