sale-client 4.2.32 → 4.2.34

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 (97) 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/package.json +1 -1
  9. package/src/App.vue +1 -1
  10. package/src/components/FilesManage/addressts/FileUserFilests.vue +671 -0
  11. package/src/components/FilesManage/ncUserinfoList.vue +315 -0
  12. package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +107 -0
  13. package/src/components/SendCard/SendCardData.vue +208 -0
  14. package/src/components/accounts/accountAdd.vue +276 -0
  15. package/src/components/accounts/accountsList.vue +183 -0
  16. package/src/components/accounts/accountsManage.vue +87 -0
  17. package/src/components/common/chargeinfo/chargeinfo.vue +55 -0
  18. package/src/components/common/userinfo_detail/config/exportConfig.js +85 -0
  19. package/src/components/ncarchives/ncArchivesAdd.vue +468 -0
  20. package/src/components/ncarchives/ncArchivesList.vue +159 -0
  21. package/src/components/ncarchives/ncUserfilesList.vue +373 -0
  22. package/src/components/ncarchives/ncarchivesmanage.vue +80 -0
  23. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  24. package/src/components/revenue/IOTArrears/arrears.vue +323 -0
  25. package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +369 -0
  26. package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +59 -0
  27. package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +59 -0
  28. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +73 -0
  29. package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +73 -0
  30. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +199 -0
  31. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +24 -0
  32. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +24 -0
  33. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +185 -0
  34. package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +185 -0
  35. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  36. package/src/components/revenue/comprehen/ComprehenOperation/UserVisit/UserVisit.vue +217 -0
  37. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +356 -0
  38. package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +148 -0
  39. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  40. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +136 -0
  41. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  42. package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +65 -0
  43. package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +483 -0
  44. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +279 -0
  45. package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +265 -0
  46. package/src/components/thirdapply/thirdAdd.vue +289 -0
  47. package/src/components/thirdapply/thirdList.vue +162 -0
  48. package/src/components/thirdapply/thirdManage.vue +74 -0
  49. package/src/components/webMeter/InstructQuery.vue +414 -0
  50. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
  51. package/src/components/webMeter/ParamSet/ParamSet.vue +556 -0
  52. package/src/components/webMeter/ParamSet/ParamSetForm.vue +296 -0
  53. package/src/components/webMeter/WebUserHand.vue +483 -0
  54. package/src/components/webMeter/instructionView/NewQueryInstruct.vue +509 -0
  55. package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +48 -0
  56. package/src/components/webMeter/webManage/NewMeterList.vue +461 -0
  57. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  58. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  59. package/src/filiale/bayan/StockListmain.vue +543 -543
  60. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  61. package/src/filiale/jinhuang/WebHand.vue +1026 -1026
  62. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  63. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  64. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  65. package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
  66. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  67. package/src/filiale/ronghao/CardService.js +2144 -2144
  68. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  69. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  70. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  71. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  72. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  73. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  74. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  75. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  76. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  77. package/src/filiale/ronghao/Upload.vue +654 -654
  78. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  79. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  80. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  81. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  82. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  83. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  84. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  85. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  86. package/src/filiale/ronghao/specificInformation.vue +537 -537
  87. package/src/filiale/yangchun/ChargeList.vue +954 -954
  88. package/src/filiale/yuncheng/FilesManageNew/UserEssentialInfoTest.vue +77 -28
  89. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  90. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  91. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  92. package/src/main.js +1 -1
  93. package/src/plugins/CardService.js +2217 -2217
  94. package/src/plugins/FileManageServicets.js +214 -0
  95. package/src/plugins/GetImg.js +53 -0
  96. package/src/plugins/LogicService.js +48 -0
  97. package/src/sale.js +2 -0
@@ -1,315 +1,315 @@
1
- <template>
2
- <div class="auto">
3
- <validator name='a' @valid="addressValid(true)" @invalid="addressValid(false)">
4
- <form class="form-horizontal">
5
- <div class="row">
6
- <div class="col-sm-4">
7
- <label class="font_normal_body">用户姓名</label>
8
- <input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
9
- </div>
10
- <div class="col-sm-4">
11
- <label class="font_normal_body">换表类型</label>
12
- <input type="text" v-model="model.f_type" disabled=disabled style="width: 60%" class="input_search">
13
- </div>
14
- <div class="col-sm-4">
15
- <label class="font_normal_body">换表费&emsp;</label>
16
- <input type="text" v-model="model.f_changemeter_fee" disabled=disabled style="width: 60%"
17
- class="input_search">
18
- </div>
19
- </div>
20
-
21
- <div class="row">
22
- <div class="col-sm-4">
23
- <label class="font_normal_body">旧表号&emsp;</label>
24
- <input type="text" v-model="model.f_meternumber_old" disabled=disabled style="width: 60%"
25
- class="input_search">
26
- </div>
27
- <div class="col-sm-4">
28
- <label class="font_normal_body">新表号&emsp;</label>
29
- <input type="text" v-model="model.f_meternumber" disabled=disabled style="width: 60%" class="input_search">
30
- </div>
31
- <div class="col-sm-4">
32
- <label class="font_normal_body">旧表品牌</label>
33
- <input type="text" v-model="model.f_meter_brand_old" disabled=disabled style="width: 60%"
34
- class="input_search">
35
- </div>
36
- </div>
37
-
38
- <div class="row">
39
- <div class="col-sm-4">
40
- <label class="font_normal_body">新表品牌</label>
41
- <input type="text" v-model="model.f_meter_brand" disabled=disabled style="width: 60%" class="input_search">
42
- </div>
43
- <div class="col-sm-4">
44
- <label class="font_normal_body">补气量&emsp;</label>
45
- <input type="text" v-model="model.f_remanent_gas" disabled=disabled style="width: 60%" class="input_search">
46
- </div>
47
- <div class="col-sm-4">
48
- <label class="font_normal_body">补气金额</label>
49
- <input type="text" v-model="model.f_remanent_money" disabled=disabled style="width: 60%"
50
- class="input_search">
51
- </div>
52
- </div>
53
- <div class="row">
54
- <div class="col-sm-4">
55
- <label class="font_normal_body">换表状态</label>
56
- <input type="text" v-model="model.f_state" disabled=disabled style="width: 60%" class="input_search">
57
- <!-- <v-select :value.sync="model.f_changemeter_state" v-model="model.f_changemeter_state"-->
58
- <!-- :options='changestate' placeholder='换表状态'-->
59
- <!-- :value-single="true"-->
60
- <!-- :search="false"-->
61
- <!-- close-on-select></v-select>-->
62
-
63
- </div>
64
-
65
- </div>
66
- <div class="row">
67
- <div class="col-sm-4">
68
- <label class="font_normal_body">换表人&emsp;</label>
69
- <input type="text" v-model="model.f_change_operator" style="width: 60%" class="input_search">
70
- </div>
71
- <div class="col-sm-4 form-group">
72
- <label class="font_normal_body" title="参数:操作人员查询">操作人员</label>
73
- <v-select :value.sync="model.f_operatorid"
74
- v-model="model.f_operatorid"
75
- :value-single="true" @change="selectoperator()"
76
- :options='foperator'
77
- close-on-select></v-select>
78
- <!-- @click="selectoperator"-->
79
- </div>
80
- <div class="col-sm-4">
81
- <label class="font_normal_body">换表日期</label>
82
- <datepicker placeholder="换表日期" style="width: 60%"
83
- v-model="model.f_operate_date"
84
- :value.sync="model.f_operate_date"
85
- :format="'yyyy-MM-dd HH:mm:ss'">
86
- </datepicker>
87
- </div>
88
- </div>
89
- <div class="row">
90
- <div class="col-sm-8">
91
- <label class="font_normal_body">地&emsp;&emsp;址</label>
92
- <input type="text" v-model="model.f_address" disabled=disabled style="width: 80%" class="input_search">
93
- </div>
94
- </div>
95
- <!-- <div class="row">-->
96
- <!-- <div class="col-sm-4">-->
97
- <!-- <label class="font_normal_body">下发日期</label>-->
98
- <!-- <datepicker id="f_hand_date"-->
99
- <!-- placeholder="下发日期"-->
100
- <!-- style="width:60%"-->
101
- <!-- v-model="model.f_hand_date"-->
102
- <!-- :value.sync="model.f_hand_date"-->
103
- <!-- :format="'yyyy-MM-dd HH:mm:ss'"-->
104
- <!-- >-->
105
- <!-- </datepicker>-->
106
- <!-- </div>-->
107
- <!-- -->
108
-
109
- <!-- </div>-->
110
-
111
- <div class="row">
112
- <div class="col-sm-8">
113
- <label class="font_normal_body">换表原因</label>
114
- <input type="text" v-model="model.f_comments" style="width: 80%" class="input_search">
115
- </div>
116
- </div>
117
- <div class="row">
118
- <div class="col-sm-8">
119
- <label class="font_normal_body">其他备注</label>
120
- <input type="text" v-model="model.f_othereason" style="width: 80%" class="input_search">
121
- </div>
122
- </div>
123
- </form>
124
- <div style="float: right">
125
- <button class="button_search" @click="save">保存</button>
126
- <button class="button_clear" @click="cancel">取消</button>
127
- </div>
128
- </validator>
129
- <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
130
- <article slot="modal-body">
131
- <upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="换表" isremark="true"
132
- style="width:auto"></upload>
133
- </article>
134
- <footer slot="modal-footer" class="modal-footer">
135
- </footer>
136
- </modal>
137
- <!--文件上传按钮-->
138
- <button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
139
- </div>
140
- </template>
141
- <script>
142
-
143
- import {HttpResetClass} from 'vue-client'
144
- import * as Util from '../../Util'
145
-
146
- let readyGen = async function (self) {
147
- await self.$LoadParams.loadParam(self.f_filialeid)
148
- await self.$GetSaleParam.initinputtor()
149
- await self.initoperator()
150
- }
151
- export default {
152
- title: '基本信息',
153
-
154
- data () {
155
- return {
156
- uploadText: '换表',
157
- // 构建数组来存储对象
158
- editbank: true,
159
- recordList: [],
160
- foperator: [],
161
- changestate: [{label: '有效', value: '有效'}, {label: '无效', value: '无效'}],
162
- showfiles: false,
163
- // meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
164
- // handstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
165
- fileNameSet: {
166
- 'f_change_operator': '换表人',
167
- 'f_operate_date': '换表日期',
168
- 'f_comments': '换表原因',
169
- 'f_othereason': '其他备注'
170
- // 'f_newtable_state':'新表状态'
171
- }
172
- }
173
- },
174
- props: {
175
- oldmodel: Object,
176
- model: Object
177
- },
178
-
179
- ready () {
180
- this.oldmodel = JSON.parse(JSON.stringify(this.model))
181
- readyGen(this)
182
- },
183
- created () {
184
- },
185
- methods: {
186
- initoperator () {
187
- this.foperator = []
188
- const roles = this.$appdata.getSingleValue('换表记录维护操作角色') ? this.$appdata.getSingleValue('换表记录维护操作角色') : '营业员'
189
- console.log('roles', roles, this.$GetSaleParam.inputtors)
190
- console.log('this.$login', this.$login, this.oldmodel, this.model)
191
- let arr = this.$GetSaleParam.inputtors.filter((res) => {
192
- if (res.rolestr != null && res.rolestr != '') {
193
- return (res.rolestr.indexOf('收费员') > -1 || res.rolestr.indexOf('话务员') > -1) && res.f_orgid == this.$login.f.orgid
194
- }
195
- })
196
- console.log(arr)
197
- arr.forEach((res) => {
198
- this.foperator.push({label: res.name, value: res.id})
199
- })
200
- },
201
- selectoperator () {
202
- let id = this.model.f_operatorid
203
- if (!this.model.f_operatorid) {
204
- return
205
- }
206
- let http = new HttpResetClass()
207
- http.load('POST', 'api/af-revenue/sql/saleSingleTable',
208
- {
209
- data: {
210
- tablename: 't_user',
211
- condition: `id = '${id}'`
212
- }
213
- },
214
- {resolveMsg: null, rejectMsg: null}).then((res) => {
215
- console.log('kanak,res', res)
216
- if (res.data.length > 0) {
217
- this.model.f_operator = res.data[0].name
218
- } else {
219
- this.model.f_operatorid = ''
220
- this.$showAlert('操作员信息未找到', 'warning', 2000)
221
- }
222
- console.log('this.f_operatorid', this.model.f_operator)
223
- })
224
- },
225
- cancel () {
226
- this.$dispatch('close')
227
- },
228
-
229
- uploadFiles () {
230
- this.showfiles = !this.showfiles
231
- },
232
- async save () {
233
- for (var item in this.model) {
234
- if (this.model[item] instanceof Array) {
235
- this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
236
- }
237
- if (this.model[item] != this.oldmodel[item]) {
238
- var car = {
239
- chinesename: this.fileNameSet[item],
240
- fieldname: item,
241
- tablename: 't_changetables',
242
- oldvalue: this.oldmodel[item],
243
- newvalue: this.model[item],
244
- state: '有效',
245
- modifitime: Util.toStandardTimeString(),
246
- operator: this.$login.f.name,
247
- changemeter_id: this.model.id,
248
- f_operator: this.$login.f.name,
249
- f_operatorid: this.$login.f.id,
250
- f_orgid: this.$login.f.orgid,
251
- f_orgname: this.$login.f.orgs,
252
- f_depid: this.$login.f.depids,
253
- f_depname: this.$login.f.deps
254
- }
255
- this.recordList.push(car)
256
- // 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
257
- console.log(car)
258
- }
259
- }
260
- await this.$resetpost('api/af-revenue/logic/saveChangeMeterRecord', {
261
- data: {
262
- recordlist: this.recordList,
263
- newData: this.model
264
- }
265
- })
266
- // let changetablesData = {
267
- // id: this.model.id,
268
- // f_change_operator: this.model.f_change_operator,
269
- // f_comments: this.model.f_comments,
270
- // f_othereason: this.model.f_othereason,
271
- // f_operate_date: this.model.f_operate_date
272
- // }
273
- let sqldata = `update t_changetables set
274
- f_change_operator ='${this.model.f_change_operator}',
275
- f_comments ='${this.model.f_comments}',
276
- f_othereason ='${this.model.f_othereason}',
277
- f_operate_date='${this.model.f_operate_date}'
278
- where id ='${this.model.id}'`
279
- console.log('换表记录修正保存', sqldata)
280
- await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sqldata}}, {resolveMsg: null, rejectMsg: null})
281
- // await this.$resetpost('api/af-revenue/entity/save/t_changetables', changetablesData, {resolveMsg: '修改成功', rejectMsg: '未通过,修改出错!!!'})
282
- // console.log('this.model', this.model)
283
- this.$dispatch('close')
284
- }
285
- },
286
- computed: {
287
- meterstate () {
288
- return this.$appdata.getParam('抄表状态')
289
- },
290
-
291
- inputtores () {
292
- // 获取抄表员
293
- console.log('获取抄表员', this.$login.f)
294
- let rs = new Array()
295
- if (this.$login.f.f_gasman.length > 0) {
296
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
297
- let temp = {
298
- label: this.$login.f.f_gasman[i].name,
299
- value: this.$login.f.f_gasman[i].name
300
- }
301
- rs.push(temp)
302
- }
303
- }
304
- // let rs = this.$appdata.getParam('抄表员')
305
- return rs
306
- }
307
-
308
- },
309
- watch: {
310
- 'model' () {
311
- this.initoperator()
312
- }
313
- }
314
- }
315
- </script>
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='a' @valid="addressValid(true)" @invalid="addressValid(false)">
4
+ <form class="form-horizontal">
5
+ <div class="row">
6
+ <div class="col-sm-4">
7
+ <label class="font_normal_body">用户姓名</label>
8
+ <input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
9
+ </div>
10
+ <div class="col-sm-4">
11
+ <label class="font_normal_body">换表类型</label>
12
+ <input type="text" v-model="model.f_type" disabled=disabled style="width: 60%" class="input_search">
13
+ </div>
14
+ <div class="col-sm-4">
15
+ <label class="font_normal_body">换表费&emsp;</label>
16
+ <input type="text" v-model="model.f_changemeter_fee" disabled=disabled style="width: 60%"
17
+ class="input_search">
18
+ </div>
19
+ </div>
20
+
21
+ <div class="row">
22
+ <div class="col-sm-4">
23
+ <label class="font_normal_body">旧表号&emsp;</label>
24
+ <input type="text" v-model="model.f_meternumber_old" disabled=disabled style="width: 60%"
25
+ class="input_search">
26
+ </div>
27
+ <div class="col-sm-4">
28
+ <label class="font_normal_body">新表号&emsp;</label>
29
+ <input type="text" v-model="model.f_meternumber" disabled=disabled style="width: 60%" class="input_search">
30
+ </div>
31
+ <div class="col-sm-4">
32
+ <label class="font_normal_body">旧表品牌</label>
33
+ <input type="text" v-model="model.f_meter_brand_old" disabled=disabled style="width: 60%"
34
+ class="input_search">
35
+ </div>
36
+ </div>
37
+
38
+ <div class="row">
39
+ <div class="col-sm-4">
40
+ <label class="font_normal_body">新表品牌</label>
41
+ <input type="text" v-model="model.f_meter_brand" disabled=disabled style="width: 60%" class="input_search">
42
+ </div>
43
+ <div class="col-sm-4">
44
+ <label class="font_normal_body">补气量&emsp;</label>
45
+ <input type="text" v-model="model.f_remanent_gas" disabled=disabled style="width: 60%" class="input_search">
46
+ </div>
47
+ <div class="col-sm-4">
48
+ <label class="font_normal_body">补气金额</label>
49
+ <input type="text" v-model="model.f_remanent_money" disabled=disabled style="width: 60%"
50
+ class="input_search">
51
+ </div>
52
+ </div>
53
+ <div class="row">
54
+ <div class="col-sm-4">
55
+ <label class="font_normal_body">换表状态</label>
56
+ <input type="text" v-model="model.f_state" disabled=disabled style="width: 60%" class="input_search">
57
+ <!-- <v-select :value.sync="model.f_changemeter_state" v-model="model.f_changemeter_state"-->
58
+ <!-- :options='changestate' placeholder='换表状态'-->
59
+ <!-- :value-single="true"-->
60
+ <!-- :search="false"-->
61
+ <!-- close-on-select></v-select>-->
62
+
63
+ </div>
64
+
65
+ </div>
66
+ <div class="row">
67
+ <div class="col-sm-4">
68
+ <label class="font_normal_body">换表人&emsp;</label>
69
+ <input type="text" v-model="model.f_change_operator" style="width: 60%" class="input_search">
70
+ </div>
71
+ <div class="col-sm-4 form-group">
72
+ <label class="font_normal_body" title="参数:操作人员查询">操作人员</label>
73
+ <v-select :value.sync="model.f_operatorid"
74
+ v-model="model.f_operatorid"
75
+ :value-single="true" @change="selectoperator()"
76
+ :options='foperator'
77
+ close-on-select></v-select>
78
+ <!-- @click="selectoperator"-->
79
+ </div>
80
+ <div class="col-sm-4">
81
+ <label class="font_normal_body">换表日期</label>
82
+ <datepicker placeholder="换表日期" style="width: 60%"
83
+ v-model="model.f_operate_date"
84
+ :value.sync="model.f_operate_date"
85
+ :format="'yyyy-MM-dd HH:mm:ss'">
86
+ </datepicker>
87
+ </div>
88
+ </div>
89
+ <div class="row">
90
+ <div class="col-sm-8">
91
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
92
+ <input type="text" v-model="model.f_address" disabled=disabled style="width: 80%" class="input_search">
93
+ </div>
94
+ </div>
95
+ <!-- <div class="row">-->
96
+ <!-- <div class="col-sm-4">-->
97
+ <!-- <label class="font_normal_body">下发日期</label>-->
98
+ <!-- <datepicker id="f_hand_date"-->
99
+ <!-- placeholder="下发日期"-->
100
+ <!-- style="width:60%"-->
101
+ <!-- v-model="model.f_hand_date"-->
102
+ <!-- :value.sync="model.f_hand_date"-->
103
+ <!-- :format="'yyyy-MM-dd HH:mm:ss'"-->
104
+ <!-- >-->
105
+ <!-- </datepicker>-->
106
+ <!-- </div>-->
107
+ <!-- -->
108
+
109
+ <!-- </div>-->
110
+
111
+ <div class="row">
112
+ <div class="col-sm-8">
113
+ <label class="font_normal_body">换表原因</label>
114
+ <input type="text" v-model="model.f_comments" style="width: 80%" class="input_search">
115
+ </div>
116
+ </div>
117
+ <div class="row">
118
+ <div class="col-sm-8">
119
+ <label class="font_normal_body">其他备注</label>
120
+ <input type="text" v-model="model.f_othereason" style="width: 80%" class="input_search">
121
+ </div>
122
+ </div>
123
+ </form>
124
+ <div style="float: right">
125
+ <button class="button_search" @click="save">保存</button>
126
+ <button class="button_clear" @click="cancel">取消</button>
127
+ </div>
128
+ </validator>
129
+ <modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">
130
+ <article slot="modal-body">
131
+ <upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="换表" isremark="true"
132
+ style="width:auto"></upload>
133
+ </article>
134
+ <footer slot="modal-footer" class="modal-footer">
135
+ </footer>
136
+ </modal>
137
+ <!--文件上传按钮-->
138
+ <button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>
139
+ </div>
140
+ </template>
141
+ <script>
142
+
143
+ import {HttpResetClass} from 'vue-client'
144
+ import * as Util from '../../Util'
145
+
146
+ let readyGen = async function (self) {
147
+ await self.$LoadParams.loadParam(self.f_filialeid)
148
+ await self.$GetSaleParam.initinputtor()
149
+ await self.initoperator()
150
+ }
151
+ export default {
152
+ title: '基本信息',
153
+
154
+ data () {
155
+ return {
156
+ uploadText: '换表',
157
+ // 构建数组来存储对象
158
+ editbank: true,
159
+ recordList: [],
160
+ foperator: [],
161
+ changestate: [{label: '有效', value: '有效'}, {label: '无效', value: '无效'}],
162
+ showfiles: false,
163
+ // meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
164
+ // handstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
165
+ fileNameSet: {
166
+ 'f_change_operator': '换表人',
167
+ 'f_operate_date': '换表日期',
168
+ 'f_comments': '换表原因',
169
+ 'f_othereason': '其他备注'
170
+ // 'f_newtable_state':'新表状态'
171
+ }
172
+ }
173
+ },
174
+ props: {
175
+ oldmodel: Object,
176
+ model: Object
177
+ },
178
+
179
+ ready () {
180
+ this.oldmodel = JSON.parse(JSON.stringify(this.model))
181
+ readyGen(this)
182
+ },
183
+ created () {
184
+ },
185
+ methods: {
186
+ initoperator () {
187
+ this.foperator = []
188
+ const roles = this.$appdata.getSingleValue('换表记录维护操作角色') ? this.$appdata.getSingleValue('换表记录维护操作角色') : '营业员'
189
+ console.log('roles', roles, this.$GetSaleParam.inputtors)
190
+ console.log('this.$login', this.$login, this.oldmodel, this.model)
191
+ let arr = this.$GetSaleParam.inputtors.filter((res) => {
192
+ if (res.rolestr != null && res.rolestr != '') {
193
+ return (res.rolestr.indexOf('收费员') > -1 || res.rolestr.indexOf('话务员') > -1) && res.f_orgid == this.$login.f.orgid
194
+ }
195
+ })
196
+ console.log(arr)
197
+ arr.forEach((res) => {
198
+ this.foperator.push({label: res.name, value: res.id})
199
+ })
200
+ },
201
+ selectoperator () {
202
+ let id = this.model.f_operatorid
203
+ if (!this.model.f_operatorid) {
204
+ return
205
+ }
206
+ let http = new HttpResetClass()
207
+ http.load('POST', 'api/af-revenue/sql/saleSingleTable',
208
+ {
209
+ data: {
210
+ tablename: 't_user',
211
+ condition: `id = '${id}'`
212
+ }
213
+ },
214
+ {resolveMsg: null, rejectMsg: null}).then((res) => {
215
+ console.log('kanak,res', res)
216
+ if (res.data.length > 0) {
217
+ this.model.f_operator = res.data[0].name
218
+ } else {
219
+ this.model.f_operatorid = ''
220
+ this.$showAlert('操作员信息未找到', 'warning', 2000)
221
+ }
222
+ console.log('this.f_operatorid', this.model.f_operator)
223
+ })
224
+ },
225
+ cancel () {
226
+ this.$dispatch('close')
227
+ },
228
+
229
+ uploadFiles () {
230
+ this.showfiles = !this.showfiles
231
+ },
232
+ async save () {
233
+ for (var item in this.model) {
234
+ if (this.model[item] instanceof Array) {
235
+ this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
236
+ }
237
+ if (this.model[item] != this.oldmodel[item]) {
238
+ var car = {
239
+ chinesename: this.fileNameSet[item],
240
+ fieldname: item,
241
+ tablename: 't_changetables',
242
+ oldvalue: this.oldmodel[item],
243
+ newvalue: this.model[item],
244
+ state: '有效',
245
+ modifitime: Util.toStandardTimeString(),
246
+ operator: this.$login.f.name,
247
+ changemeter_id: this.model.id,
248
+ f_operator: this.$login.f.name,
249
+ f_operatorid: this.$login.f.id,
250
+ f_orgid: this.$login.f.orgid,
251
+ f_orgname: this.$login.f.orgs,
252
+ f_depid: this.$login.f.depids,
253
+ f_depname: this.$login.f.deps
254
+ }
255
+ this.recordList.push(car)
256
+ // 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
257
+ console.log(car)
258
+ }
259
+ }
260
+ await this.$resetpost('api/af-revenue/logic/saveChangeMeterRecord', {
261
+ data: {
262
+ recordlist: this.recordList,
263
+ newData: this.model
264
+ }
265
+ })
266
+ // let changetablesData = {
267
+ // id: this.model.id,
268
+ // f_change_operator: this.model.f_change_operator,
269
+ // f_comments: this.model.f_comments,
270
+ // f_othereason: this.model.f_othereason,
271
+ // f_operate_date: this.model.f_operate_date
272
+ // }
273
+ let sqldata = `update t_changetables set
274
+ f_change_operator ='${this.model.f_change_operator}',
275
+ f_comments ='${this.model.f_comments}',
276
+ f_othereason ='${this.model.f_othereason}',
277
+ f_operate_date='${this.model.f_operate_date}'
278
+ where id ='${this.model.id}'`
279
+ console.log('换表记录修正保存', sqldata)
280
+ await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sqldata}}, {resolveMsg: null, rejectMsg: null})
281
+ // await this.$resetpost('api/af-revenue/entity/save/t_changetables', changetablesData, {resolveMsg: '修改成功', rejectMsg: '未通过,修改出错!!!'})
282
+ // console.log('this.model', this.model)
283
+ this.$dispatch('close')
284
+ }
285
+ },
286
+ computed: {
287
+ meterstate () {
288
+ return this.$appdata.getParam('抄表状态')
289
+ },
290
+
291
+ inputtores () {
292
+ // 获取抄表员
293
+ console.log('获取抄表员', this.$login.f)
294
+ let rs = new Array()
295
+ if (this.$login.f.f_gasman.length > 0) {
296
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
297
+ let temp = {
298
+ label: this.$login.f.f_gasman[i].name,
299
+ value: this.$login.f.f_gasman[i].name
300
+ }
301
+ rs.push(temp)
302
+ }
303
+ }
304
+ // let rs = this.$appdata.getParam('抄表员')
305
+ return rs
306
+ }
307
+
308
+ },
309
+ watch: {
310
+ 'model' () {
311
+ this.initoperator()
312
+ }
313
+ }
314
+ }
315
+ </script>