sale-client 4.2.27 → 4.2.28

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 (60) hide show
  1. package/.gradle/8.10/checksums/checksums.lock +0 -0
  2. package/.gradle/8.10/dependencies-accessors/gc.properties +0 -0
  3. package/.gradle/8.10/executionHistory/executionHistory.bin +0 -0
  4. package/.gradle/8.10/executionHistory/executionHistory.lock +0 -0
  5. package/.gradle/8.10/fileChanges/last-build.bin +0 -0
  6. package/.gradle/8.10/fileHashes/fileHashes.bin +0 -0
  7. package/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
  8. package/.gradle/8.10/gc.properties +0 -0
  9. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  10. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  11. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  12. package/.gradle/file-system.probe +0 -0
  13. package/.gradle/vcs-1/gc.properties +0 -0
  14. package/.npmignore +12 -0
  15. package/build/dev-server.js +32 -40
  16. package/package.json +1 -1
  17. package/src/.npmignore +1 -0
  18. package/src/App.vue +1 -1
  19. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  20. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  21. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  22. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  23. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
  24. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  25. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  26. package/src/filiale/bayan/StockListmain.vue +543 -543
  27. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  28. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  29. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  30. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  31. package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
  32. package/src/filiale/qingjian/FileUserFiles.vue +55 -2
  33. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  34. package/src/filiale/ronghao/CardService.js +2144 -2144
  35. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  36. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  37. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  38. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  39. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  40. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  41. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  42. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  43. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  44. package/src/filiale/ronghao/Upload.vue +654 -654
  45. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  46. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  47. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  48. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  49. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  50. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  51. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  52. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  53. package/src/filiale/ronghao/specificInformation.vue +537 -537
  54. package/src/filiale/yangchun/ChargeList.vue +954 -954
  55. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  56. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  57. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  58. package/src/main.js +1 -1
  59. package/src/plugins/CardService.js +2217 -2217
  60. package/yarn.lock +12208 -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">表编号&nbsp;&nbsp;&nbsp;</label>
8
- <input type="text" v-model="model.f_userinfo_id" 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_user_id" disabled=disabled style="width: 60%" class="input_search">
13
- </div>
14
- <div class="col-sm-4">
15
- <label class="font_normal_body">用户姓名</label>
16
- <input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
17
- </div>
18
- <!--<div class="col-sm-4">-->
19
- <!--<label class="font_normal_body">收据类型</label>-->
20
- <!--<input type="text" v-model="model.f_bill_style" style="width: 60%" class="input_search">-->
21
- <!--</div>-->
22
- </div>
23
- <div class="row">
24
- <div class="col-sm-4">
25
- <label class="font_normal_body">用户类型</label>
26
- <input type="text" v-model="model.f_user_type" disabled=disabled style="width: 60%" class="input_search">
27
- </div>
28
- <div class="col-sm-4">
29
- <label class="font_normal_body">用气性质</label>
30
- <input type="text" v-model="model.f_gasproperties" disabled=disabled style="width: 60%"
31
- class="input_search">
32
- </div>
33
- <div class="col-sm-4">
34
- <label class="font_normal_body">补卡类型</label>
35
- <input type="text" v-model="model.f_type" disabled=disabled style="width: 60%" class="input_search">
36
- </div>
37
-
38
- </div>
39
- <div class="row">
40
- <div class="col-sm-4">
41
- <label class="font_normal_body">卡&nbsp;&nbsp;&nbsp;号&nbsp;&nbsp;&nbsp;</label>
42
- <input type="text" v-model="model.f_card_id" disabled=disabled style="width: 60%" class="input_search">
43
- </div>
44
- <div class="col-sm-4">
45
- <label class="font_normal_body">卡&nbsp;&nbsp;&nbsp;费&nbsp;&nbsp;&nbsp;</label>
46
- <input type="text" v-model="model.f_cardfees" style="width: 60%" class="input_search">
47
- </div>
48
- <div class="col-sm-4">
49
- <!-- <label class="font_normal_body">付款方式</label>-->
50
- <!-- <input type="text" v-model="model.f_payment" style="width: 60%" class="input_search">-->
51
- <label class="font_normal_body" title="参数:付款方式">付款方式</label>
52
- <v-select id="f_payment"
53
- v-model="model.f_payment" :value-single="true"
54
- class="select_list select"
55
- :value.sync="model.f_payment"
56
- :options='paytype'
57
- close-on-select>
58
- </v-select>
59
- </div>
60
- </div>
61
- <div class="row">
62
- <div class="col-sm-4">
63
- <label class="font_normal_body" title="参数:票据类型">票据类型</label>
64
- <v-select :value.sync="model.f_bill_style" v-model="model.f_bill_style"
65
- :options='papertype' :value-single="true"
66
- class="select_list select"
67
- close-on-select></v-select>
68
- <!-- <label class="font_normal_body">票据类型</label>-->
69
- <!-- <input type="text" v-model="model.f_bill_style" style="width: 60%" class="input_search">-->
70
- </div>
71
- <div class="col-sm-4">
72
- <label class="font_normal_body">是否接表</label>
73
- <input type="text" v-model="model.f_ispick_table" disabled=disabled style="width: 60%" class="input_search">
74
- </div>
75
- <div class="col-sm-4">
76
- <label class="font_normal_body">补卡原因</label>
77
- <input type="text" v-model="model.f_comments" style="width: 60%" class="input_search">
78
- </div>
79
- </div>
80
- <div class="row">
81
- <div class="col-sm-4">
82
- <label class="font_normal_body">补卡日期</label>
83
- <datepicker id="f_fillcard_date" placeholder="补卡日期" style="width:60%"
84
- v-model="model.f_operate_date"
85
- :value.sync="model.f_operate_date"
86
- :format="'yyyy-MM-dd'"
87
- :show-reset-button="true">
88
- </datepicker>
89
- </div>
90
- <div class="col-sm-4">
91
- <label class="font_normal_body">补卡状态</label>
92
- <!-- <input type="text" v-model="model.f_fillcard_state" disabled=disabled style="width: 60%" class="input_search">-->
93
- <v-select :value.sync="model.f_state" v-model="model.f_state"
94
- :options='fillcard_state' :value-single="true"
95
- class="select_list select"
96
- close-on-select></v-select>
97
- </div>
98
- <div class="col-sm-4">
99
- <label class="font_normal_body">组&nbsp;&nbsp;&nbsp;织&nbsp;&nbsp;&nbsp;</label>
100
- <input type="text" v-model="model.f_orgname" disabled=disabled style="width: 60%" class="input_search">
101
- </div>
102
-
103
- </div>
104
- <div class="row">
105
- <div class="col-sm-4">
106
- <label class="font_normal_body">部&nbsp;&nbsp;&nbsp;门&nbsp;&nbsp;&nbsp;</label>
107
- <input type="text" v-model="model.f_depname" disabled=disabled style="width: 60%" class="input_search">
108
- </div>
109
- <div class="col-sm-4 ">
110
- <label class="font_normal_body" title="参数:操作人员查询">操作人员</label>
111
- <v-select :value.sync="model.f_operatorid"
112
- v-model="model.f_operatorid"
113
- :value-single="true" @change="selectoperator()"
114
- :options='foperator'
115
- close-on-select></v-select>
116
- </div>
117
- <div class="col-sm-4">
118
- <label class="font_normal_body">流水号&nbsp;&nbsp;&nbsp;</label>
119
- <input type="text" v-model="model.f_serial_id" disabled=disabled style="width: 60%" class="input_search">
120
- </div>
121
- </div>
122
- </form>
123
- <div style="float: right">
124
- <button class="button_search" @click="save">保存</button>
125
- <button class="button_clear" @click="cancel">取消</button>
126
- </div>
127
- </validator>
128
- <!--<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">-->
129
- <!--<article slot="modal-body">-->
130
- <!--<upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="收费" isremark="true" style="width:auto" ></upload>-->
131
- <!--</article>-->
132
- <!--<footer slot="modal-footer" class="modal-footer">-->
133
- <!--</footer>-->
134
- <!--</modal>-->
135
- <!--&lt;!&ndash;文件上传按钮&ndash;&gt;-->
136
- <!--<button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>-->
137
- </div>
138
- </template>
139
-
140
- <script>
141
-
142
- import {HttpResetClass} from 'vue-client'
143
- import * as Util from '../../Util'
144
-
145
- let readyGen = async function (self) {
146
- await self.$LoadParams.loadParam(self.f_filialeid)
147
- await self.$GetSaleParam.initinputtor()
148
- await self.initoperator()
149
- }
150
- export default {
151
- title: '基本信息',
152
- data () {
153
- return {
154
- equipmentType: this.$appdata.getParam('打印格式') ? [{
155
- label: '',
156
- value: ''
157
- }, ...this.$appdata.getParam('打印格式')] : [],
158
- // 构建数组来存储对象
159
- editbank: true,
160
- uploadText: '收费',
161
- papertype: this.$appdata.getParam('票据类型') ? [{
162
- label: '',
163
- value: ''
164
- }, ...this.$appdata.getParam('票据类型')] : [],
165
- paytype: this.$appdata.getParam('付款方式') ? [{
166
- label: '',
167
- value: ''
168
- }, ...this.$appdata.getParam('付款方式')] : [],
169
- showfiles: false,
170
- recordList: [],
171
- foperator: [],
172
- fileNameSet: {
173
- // 要更改字段的中文名
174
- 'f_cardfees': '卡费',
175
- 'f_payment': '付款方式',
176
- 'f_bill_style': '票据类型',
177
- 'f_reason': '补卡原因',
178
- 'f_fillcard_date': '补卡日期',
179
- 'f_state': '补卡状态',
180
- 'f_operator': '操作人'
181
- }
182
- }
183
- },
184
- props: {
185
- oldmodel: Object,
186
- model: Object
187
- },
188
-
189
- ready () {
190
- if (this.$login.r.includes('维护补卡信息')) {
191
- this.editbank = true
192
- }
193
- this.oldmodel = JSON.parse(JSON.stringify(this.model))
194
- this.model.f_bill_state = [this.oldmodel]
195
- readyGen(this)
196
- },
197
- created () {
198
- },
199
- methods: {
200
- initoperator () {
201
- this.foperator = []
202
- console.log('this.$login-------------------------', this.$login, this.oldmodel, this.model)
203
- let arr = this.$GetSaleParam.inputtors.filter((res) => {
204
- if (res.rolestr != null && res.rolestr != '') {
205
- return (res.rolestr.indexOf('收费员') > -1 || res.rolestr.indexOf('话务员') > -1) && res.f_orgid == this.$login.f.orgid
206
- }
207
- })
208
- arr.forEach((res) => {
209
- this.foperator.push({label: res.name, value: res.id})
210
- })
211
- },
212
- selectoperator () {
213
- let id = this.model.f_operatorid
214
- if (!this.model.f_operatorid) {
215
- return
216
- }
217
- let http = new HttpResetClass()
218
- http.load('POST', 'api/af-revenue/sql/saleSingleTable',
219
- {
220
- data: {
221
- tablename: 't_user',
222
- condition: `id = '${id}'`
223
- }
224
- },
225
- {resolveMsg: null, rejectMsg: null}).then((res) => {
226
- console.log('kanak,res', res)
227
- if (res.data.length > 0) {
228
- this.model.f_operator = res.data[0].name
229
- } else {
230
- this.model.f_operatorid = ''
231
- this.$showAlert('操作员信息未找到', 'warning', 2000)
232
- }
233
- console.log('this.f_operatorid', this.model.f_operator)
234
- })
235
- },
236
- cancel () {
237
- this.$dispatch('close')
238
- },
239
- uploadFiles () {
240
- this.showfiles = !this.showfiles
241
- },
242
- addressValid (val) {
243
- },
244
- save () {
245
- // console.log(this.model.key)
246
- this.recordList = [] // 清空,防止重复提交
247
- console.log('newdate' + new Date())
248
- console.log('MODEL BEFORE:', this.model)
249
- for (var item in this.model) {
250
- if (this.model[item] instanceof Array) {
251
- this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
252
- }
253
- if (this.model[item] != this.oldmodel[item] && this.model[item] != 's_timestamp') {
254
- var car = { // 需要更改的字段
255
- // t_fillcard
256
- id: this.model.id,
257
- f_user_id: this.model.f_user_id,
258
- chinesename: this.fileNameSet[item],
259
- fieldname: item,
260
- tablename: 't_fillcard',
261
- oldvalue: this.oldmodel[item],
262
- newvalue: this.model[item],
263
- state: '有效',
264
- modifitime: Util.toStandardTimeString(),
265
- operator: this.$login.f.name,
266
- changemeter_id: this.model.id,
267
- f_operate_date: this.model.f_operate_date,
268
- f_cardfees: this.model.f_cardfees ? this.model.f_cardfees : null,
269
- f_payment: this.model.f_payment,
270
- f_bill_style: this.model.f_bill_style,
271
- f_reason: this.model.f_comments ? this.model.f_comments : '',
272
- f_fillcard_date: this.model.f_operate_date,
273
- f_operator: this.$login.f.name,
274
- f_operatorid: this.$login.f.id,
275
- f_orgid: this.$login.f.orgid,
276
- f_orgname: this.$login.f.orgs,
277
- f_depid: this.$login.f.depids,
278
- f_depname: this.$login.f.deps
279
- }
280
- this.recordList.push(car)
281
- // 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
282
- console.log('看看car的值', car)
283
- }
284
- }
285
-
286
- this.model.f_reason = this.model.f_comments ? this.model.f_comments : ''
287
- this.model.f_fillcard_date = this.model.f_operate_date
288
- console.log('model--------abc-', this.model)
289
- this.$resetpost('api/af-revenue/logic/replacementCardSaving', {
290
- data: {
291
- recordlist: this.recordList,
292
- newData: this.model
293
- }
294
- }).then((res) => {
295
- console.log('this.model', this.model)
296
- })
297
- this.$dispatch('close')
298
- }
299
- },
300
- computed: {
301
- fillcard_state () {
302
- return [...this.$appdata.getParam('补卡状态')]
303
- }
304
- },
305
- watch: {
306
- 'model' () {
307
- this.initoperator()
308
- }
309
- }
310
- }
311
- </script>
312
-
313
- <style scoped>
314
-
315
- </style>
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='a' @valid="addressValid(true)" @invalid="addressValid(false)">
4
+ <form class="form-horizontal">
5
+ <div class="row">
6
+ <div class="col-sm-4">
7
+ <label class="font_normal_body">表编号&nbsp;&nbsp;&nbsp;</label>
8
+ <input type="text" v-model="model.f_userinfo_id" 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_user_id" disabled=disabled style="width: 60%" class="input_search">
13
+ </div>
14
+ <div class="col-sm-4">
15
+ <label class="font_normal_body">用户姓名</label>
16
+ <input type="text" v-model="model.f_user_name" disabled=disabled style="width: 60%" class="input_search">
17
+ </div>
18
+ <!--<div class="col-sm-4">-->
19
+ <!--<label class="font_normal_body">收据类型</label>-->
20
+ <!--<input type="text" v-model="model.f_bill_style" style="width: 60%" class="input_search">-->
21
+ <!--</div>-->
22
+ </div>
23
+ <div class="row">
24
+ <div class="col-sm-4">
25
+ <label class="font_normal_body">用户类型</label>
26
+ <input type="text" v-model="model.f_user_type" disabled=disabled style="width: 60%" class="input_search">
27
+ </div>
28
+ <div class="col-sm-4">
29
+ <label class="font_normal_body">用气性质</label>
30
+ <input type="text" v-model="model.f_gasproperties" disabled=disabled style="width: 60%"
31
+ class="input_search">
32
+ </div>
33
+ <div class="col-sm-4">
34
+ <label class="font_normal_body">补卡类型</label>
35
+ <input type="text" v-model="model.f_type" disabled=disabled style="width: 60%" class="input_search">
36
+ </div>
37
+
38
+ </div>
39
+ <div class="row">
40
+ <div class="col-sm-4">
41
+ <label class="font_normal_body">卡&nbsp;&nbsp;&nbsp;号&nbsp;&nbsp;&nbsp;</label>
42
+ <input type="text" v-model="model.f_card_id" disabled=disabled style="width: 60%" class="input_search">
43
+ </div>
44
+ <div class="col-sm-4">
45
+ <label class="font_normal_body">卡&nbsp;&nbsp;&nbsp;费&nbsp;&nbsp;&nbsp;</label>
46
+ <input type="text" v-model="model.f_cardfees" style="width: 60%" class="input_search">
47
+ </div>
48
+ <div class="col-sm-4">
49
+ <!-- <label class="font_normal_body">付款方式</label>-->
50
+ <!-- <input type="text" v-model="model.f_payment" style="width: 60%" class="input_search">-->
51
+ <label class="font_normal_body" title="参数:付款方式">付款方式</label>
52
+ <v-select id="f_payment"
53
+ v-model="model.f_payment" :value-single="true"
54
+ class="select_list select"
55
+ :value.sync="model.f_payment"
56
+ :options='paytype'
57
+ close-on-select>
58
+ </v-select>
59
+ </div>
60
+ </div>
61
+ <div class="row">
62
+ <div class="col-sm-4">
63
+ <label class="font_normal_body" title="参数:票据类型">票据类型</label>
64
+ <v-select :value.sync="model.f_bill_style" v-model="model.f_bill_style"
65
+ :options='papertype' :value-single="true"
66
+ class="select_list select"
67
+ close-on-select></v-select>
68
+ <!-- <label class="font_normal_body">票据类型</label>-->
69
+ <!-- <input type="text" v-model="model.f_bill_style" style="width: 60%" class="input_search">-->
70
+ </div>
71
+ <div class="col-sm-4">
72
+ <label class="font_normal_body">是否接表</label>
73
+ <input type="text" v-model="model.f_ispick_table" disabled=disabled style="width: 60%" class="input_search">
74
+ </div>
75
+ <div class="col-sm-4">
76
+ <label class="font_normal_body">补卡原因</label>
77
+ <input type="text" v-model="model.f_comments" style="width: 60%" class="input_search">
78
+ </div>
79
+ </div>
80
+ <div class="row">
81
+ <div class="col-sm-4">
82
+ <label class="font_normal_body">补卡日期</label>
83
+ <datepicker id="f_fillcard_date" placeholder="补卡日期" style="width:60%"
84
+ v-model="model.f_operate_date"
85
+ :value.sync="model.f_operate_date"
86
+ :format="'yyyy-MM-dd'"
87
+ :show-reset-button="true">
88
+ </datepicker>
89
+ </div>
90
+ <div class="col-sm-4">
91
+ <label class="font_normal_body">补卡状态</label>
92
+ <!-- <input type="text" v-model="model.f_fillcard_state" disabled=disabled style="width: 60%" class="input_search">-->
93
+ <v-select :value.sync="model.f_state" v-model="model.f_state"
94
+ :options='fillcard_state' :value-single="true"
95
+ class="select_list select"
96
+ close-on-select></v-select>
97
+ </div>
98
+ <div class="col-sm-4">
99
+ <label class="font_normal_body">组&nbsp;&nbsp;&nbsp;织&nbsp;&nbsp;&nbsp;</label>
100
+ <input type="text" v-model="model.f_orgname" disabled=disabled style="width: 60%" class="input_search">
101
+ </div>
102
+
103
+ </div>
104
+ <div class="row">
105
+ <div class="col-sm-4">
106
+ <label class="font_normal_body">部&nbsp;&nbsp;&nbsp;门&nbsp;&nbsp;&nbsp;</label>
107
+ <input type="text" v-model="model.f_depname" disabled=disabled style="width: 60%" class="input_search">
108
+ </div>
109
+ <div class="col-sm-4 ">
110
+ <label class="font_normal_body" title="参数:操作人员查询">操作人员</label>
111
+ <v-select :value.sync="model.f_operatorid"
112
+ v-model="model.f_operatorid"
113
+ :value-single="true" @change="selectoperator()"
114
+ :options='foperator'
115
+ close-on-select></v-select>
116
+ </div>
117
+ <div class="col-sm-4">
118
+ <label class="font_normal_body">流水号&nbsp;&nbsp;&nbsp;</label>
119
+ <input type="text" v-model="model.f_serial_id" disabled=disabled style="width: 60%" class="input_search">
120
+ </div>
121
+ </div>
122
+ </form>
123
+ <div style="float: right">
124
+ <button class="button_search" @click="save">保存</button>
125
+ <button class="button_clear" @click="cancel">取消</button>
126
+ </div>
127
+ </validator>
128
+ <!--<modal :show.sync="showfiles" width="80%" style="width:auto;" v-ref:modal middle backdrop="false">-->
129
+ <!--<article slot="modal-body">-->
130
+ <!--<upload :blodid="model.f_userinfo_id" :businessid="model.id" v-ref:upload fusetype="收费" isremark="true" style="width:auto" ></upload>-->
131
+ <!--</article>-->
132
+ <!--<footer slot="modal-footer" class="modal-footer">-->
133
+ <!--</footer>-->
134
+ <!--</modal>-->
135
+ <!--&lt;!&ndash;文件上传按钮&ndash;&gt;-->
136
+ <!--<button class="button_search" style="width: max-content" @click="uploadFiles()">上传附件</button>-->
137
+ </div>
138
+ </template>
139
+
140
+ <script>
141
+
142
+ import {HttpResetClass} from 'vue-client'
143
+ import * as Util from '../../Util'
144
+
145
+ let readyGen = async function (self) {
146
+ await self.$LoadParams.loadParam(self.f_filialeid)
147
+ await self.$GetSaleParam.initinputtor()
148
+ await self.initoperator()
149
+ }
150
+ export default {
151
+ title: '基本信息',
152
+ data () {
153
+ return {
154
+ equipmentType: this.$appdata.getParam('打印格式') ? [{
155
+ label: '',
156
+ value: ''
157
+ }, ...this.$appdata.getParam('打印格式')] : [],
158
+ // 构建数组来存储对象
159
+ editbank: true,
160
+ uploadText: '收费',
161
+ papertype: this.$appdata.getParam('票据类型') ? [{
162
+ label: '',
163
+ value: ''
164
+ }, ...this.$appdata.getParam('票据类型')] : [],
165
+ paytype: this.$appdata.getParam('付款方式') ? [{
166
+ label: '',
167
+ value: ''
168
+ }, ...this.$appdata.getParam('付款方式')] : [],
169
+ showfiles: false,
170
+ recordList: [],
171
+ foperator: [],
172
+ fileNameSet: {
173
+ // 要更改字段的中文名
174
+ 'f_cardfees': '卡费',
175
+ 'f_payment': '付款方式',
176
+ 'f_bill_style': '票据类型',
177
+ 'f_reason': '补卡原因',
178
+ 'f_fillcard_date': '补卡日期',
179
+ 'f_state': '补卡状态',
180
+ 'f_operator': '操作人'
181
+ }
182
+ }
183
+ },
184
+ props: {
185
+ oldmodel: Object,
186
+ model: Object
187
+ },
188
+
189
+ ready () {
190
+ if (this.$login.r.includes('维护补卡信息')) {
191
+ this.editbank = true
192
+ }
193
+ this.oldmodel = JSON.parse(JSON.stringify(this.model))
194
+ this.model.f_bill_state = [this.oldmodel]
195
+ readyGen(this)
196
+ },
197
+ created () {
198
+ },
199
+ methods: {
200
+ initoperator () {
201
+ this.foperator = []
202
+ console.log('this.$login-------------------------', this.$login, this.oldmodel, this.model)
203
+ let arr = this.$GetSaleParam.inputtors.filter((res) => {
204
+ if (res.rolestr != null && res.rolestr != '') {
205
+ return (res.rolestr.indexOf('收费员') > -1 || res.rolestr.indexOf('话务员') > -1) && res.f_orgid == this.$login.f.orgid
206
+ }
207
+ })
208
+ arr.forEach((res) => {
209
+ this.foperator.push({label: res.name, value: res.id})
210
+ })
211
+ },
212
+ selectoperator () {
213
+ let id = this.model.f_operatorid
214
+ if (!this.model.f_operatorid) {
215
+ return
216
+ }
217
+ let http = new HttpResetClass()
218
+ http.load('POST', 'api/af-revenue/sql/saleSingleTable',
219
+ {
220
+ data: {
221
+ tablename: 't_user',
222
+ condition: `id = '${id}'`
223
+ }
224
+ },
225
+ {resolveMsg: null, rejectMsg: null}).then((res) => {
226
+ console.log('kanak,res', res)
227
+ if (res.data.length > 0) {
228
+ this.model.f_operator = res.data[0].name
229
+ } else {
230
+ this.model.f_operatorid = ''
231
+ this.$showAlert('操作员信息未找到', 'warning', 2000)
232
+ }
233
+ console.log('this.f_operatorid', this.model.f_operator)
234
+ })
235
+ },
236
+ cancel () {
237
+ this.$dispatch('close')
238
+ },
239
+ uploadFiles () {
240
+ this.showfiles = !this.showfiles
241
+ },
242
+ addressValid (val) {
243
+ },
244
+ save () {
245
+ // console.log(this.model.key)
246
+ this.recordList = [] // 清空,防止重复提交
247
+ console.log('newdate' + new Date())
248
+ console.log('MODEL BEFORE:', this.model)
249
+ for (var item in this.model) {
250
+ if (this.model[item] instanceof Array) {
251
+ this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
252
+ }
253
+ if (this.model[item] != this.oldmodel[item] && this.model[item] != 's_timestamp') {
254
+ var car = { // 需要更改的字段
255
+ // t_fillcard
256
+ id: this.model.id,
257
+ f_user_id: this.model.f_user_id,
258
+ chinesename: this.fileNameSet[item],
259
+ fieldname: item,
260
+ tablename: 't_fillcard',
261
+ oldvalue: this.oldmodel[item],
262
+ newvalue: this.model[item],
263
+ state: '有效',
264
+ modifitime: Util.toStandardTimeString(),
265
+ operator: this.$login.f.name,
266
+ changemeter_id: this.model.id,
267
+ f_operate_date: this.model.f_operate_date,
268
+ f_cardfees: this.model.f_cardfees ? this.model.f_cardfees : null,
269
+ f_payment: this.model.f_payment,
270
+ f_bill_style: this.model.f_bill_style,
271
+ f_reason: this.model.f_comments ? this.model.f_comments : '',
272
+ f_fillcard_date: this.model.f_operate_date,
273
+ f_operator: this.$login.f.name,
274
+ f_operatorid: this.$login.f.id,
275
+ f_orgid: this.$login.f.orgid,
276
+ f_orgname: this.$login.f.orgs,
277
+ f_depid: this.$login.f.depids,
278
+ f_depname: this.$login.f.deps
279
+ }
280
+ this.recordList.push(car)
281
+ // 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
282
+ console.log('看看car的值', car)
283
+ }
284
+ }
285
+
286
+ this.model.f_reason = this.model.f_comments ? this.model.f_comments : ''
287
+ this.model.f_fillcard_date = this.model.f_operate_date
288
+ console.log('model--------abc-', this.model)
289
+ this.$resetpost('api/af-revenue/logic/replacementCardSaving', {
290
+ data: {
291
+ recordlist: this.recordList,
292
+ newData: this.model
293
+ }
294
+ }).then((res) => {
295
+ console.log('this.model', this.model)
296
+ })
297
+ this.$dispatch('close')
298
+ }
299
+ },
300
+ computed: {
301
+ fillcard_state () {
302
+ return [...this.$appdata.getParam('补卡状态')]
303
+ }
304
+ },
305
+ watch: {
306
+ 'model' () {
307
+ this.initoperator()
308
+ }
309
+ }
310
+ }
311
+ </script>
312
+
313
+ <style scoped>
314
+
315
+ </style>