sale-client 4.2.34 → 4.2.36

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 (98) hide show
  1. package/build/dev-server.js +42 -28
  2. package/package.json +1 -1
  3. package/src/App.vue +1 -1
  4. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  5. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  6. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  7. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  8. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
  9. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  10. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  11. package/src/filiale/bayan/StockListmain.vue +543 -543
  12. package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -0
  13. package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -0
  14. package/src/filiale/bazhong/sale.js +8 -0
  15. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  16. package/src/filiale/fugou/FileManageService.js +1 -1
  17. package/src/filiale/jinhuang/WebHand.vue +1026 -1026
  18. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  19. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  20. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  21. package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
  22. package/src/filiale/rongcheng/business/CardMeterCenter.vue +455 -455
  23. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  24. package/src/filiale/ronghao/CardService.js +2144 -2144
  25. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  26. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  27. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  28. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  29. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  30. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  31. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  32. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  33. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  34. package/src/filiale/ronghao/Upload.vue +654 -654
  35. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  36. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  37. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  38. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  39. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  40. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  41. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  42. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  43. package/src/filiale/ronghao/specificInformation.vue +537 -537
  44. package/src/filiale/yangchun/ChargeList.vue +954 -954
  45. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  46. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  47. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  48. package/src/main.js +1 -1
  49. package/src/plugins/CardService.js +2217 -2217
  50. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  51. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  52. package/.gradle/5.2.1/gc.properties +0 -0
  53. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  54. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  55. package/.gradle/vcs-1/gc.properties +0 -0
  56. package/src/components/FilesManage/addressts/FileUserFilests.vue +0 -671
  57. package/src/components/FilesManage/ncUserinfoList.vue +0 -315
  58. package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +0 -107
  59. package/src/components/SendCard/SendCardData.vue +0 -208
  60. package/src/components/accounts/accountAdd.vue +0 -276
  61. package/src/components/accounts/accountsList.vue +0 -183
  62. package/src/components/accounts/accountsManage.vue +0 -87
  63. package/src/components/common/chargeinfo/chargeinfo.vue +0 -55
  64. package/src/components/common/userinfo_detail/config/exportConfig.js +0 -85
  65. package/src/components/ncarchives/ncArchivesAdd.vue +0 -468
  66. package/src/components/ncarchives/ncArchivesList.vue +0 -159
  67. package/src/components/ncarchives/ncUserfilesList.vue +0 -373
  68. package/src/components/ncarchives/ncarchivesmanage.vue +0 -80
  69. package/src/components/revenue/IOTArrears/arrears.vue +0 -323
  70. package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +0 -369
  71. package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +0 -59
  72. package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +0 -59
  73. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +0 -73
  74. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +0 -73
  75. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +0 -199
  76. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +0 -24
  77. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +0 -24
  78. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +0 -185
  79. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +0 -185
  80. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +0 -356
  81. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +0 -148
  82. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +0 -136
  83. package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +0 -65
  84. package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +0 -483
  85. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +0 -279
  86. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +0 -265
  87. package/src/components/thirdapply/thirdAdd.vue +0 -289
  88. package/src/components/thirdapply/thirdList.vue +0 -162
  89. package/src/components/thirdapply/thirdManage.vue +0 -74
  90. package/src/components/webMeter/InstructQuery.vue +0 -414
  91. package/src/components/webMeter/ParamSet/ParamSet.vue +0 -556
  92. package/src/components/webMeter/ParamSet/ParamSetForm.vue +0 -296
  93. package/src/components/webMeter/WebUserHand.vue +0 -483
  94. package/src/components/webMeter/instructionView/NewQueryInstruct.vue +0 -509
  95. package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +0 -48
  96. package/src/components/webMeter/webManage/NewMeterList.vue +0 -461
  97. package/src/plugins/FileManageServicets.js +0 -214
  98. package/src/plugins/GetImg.js +0 -53
@@ -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>