sale-client 4.2.72 → 4.2.73

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 (54) 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 +36 -58
  8. package/businessNew.json +201 -0
  9. package/index.html +2 -7
  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/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  17. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  18. package/src/filiale/bayan/StockListmain.vue +543 -543
  19. package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
  20. package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
  21. package/src/filiale/bazhong/sale.js +8 -8
  22. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  23. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  24. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  25. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  26. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  27. package/src/filiale/ronghao/CardService.js +2144 -2144
  28. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  29. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  30. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  31. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  32. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  33. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  34. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  35. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  36. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  37. package/src/filiale/ronghao/Upload.vue +654 -654
  38. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  39. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  40. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  41. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  42. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  43. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  44. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  45. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  46. package/src/filiale/ronghao/specificInformation.vue +537 -537
  47. package/src/filiale/yangchun/ChargeList.vue +954 -954
  48. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  49. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  50. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  51. package/static/syrh.png +0 -0
  52. package/static/syyj.png +0 -0
  53. package/static/xyrh.png +0 -0
  54. package/static/xyyj.png +0 -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>