sale-client 4.4.6 → 4.4.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.4.6",
3
+ "version": "4.4.7",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -163,224 +163,239 @@
163
163
  </div>
164
164
  </template>
165
165
  <script>
166
- /**
167
- *操作记录信息
168
- */
169
- import {PagedList} from 'vue-client'
170
- import co from 'co'
166
+ /**
167
+ *操作记录信息
168
+ */
169
+ import {PagedList} from 'vue-client'
170
+ import co from 'co'
171
171
 
172
- let cancelGen = function *(self, data) {
173
- let msgRet = yield self.$showMessage('撤销后数据不可恢复,确认撤销录入吗?', ['confirm', 'cancel'])
174
- if (msgRet === 'cancel') return
175
- // 撤销操作完成,刷新界面
176
- self.search()
177
- }
172
+ let cancelGen = function* (self, data) {
173
+ let msgRet = yield self.$showMessage('撤销后数据不可恢复,确认撤销录入吗?', ['confirm', 'cancel'])
174
+ if (msgRet === 'cancel') return
175
+ // 撤销操作完成,刷新界面
176
+ self.search()
177
+ }
178
178
 
179
- /**
180
- * 发票补打
181
- */
182
- let reprintGen = async function (self, row) {
183
- try {
184
- row.billUrl = self.getBillUrl(row)
185
- if (!row.billUrl) {
186
- self.$showMessage('当前操作类型暂时没有票据')
187
- return
188
- }
189
- row.f_bill_type = row.type
190
- row.f_bill_style = '普通收据'
191
- row.f_operator = self.$login.f.name
192
- row.f_operatorid = self.$login.f.id
193
- row.f_orgid = self.$login.f.orgid
194
- row.f_orgname = self.$login.f.orgs
195
- row.f_depid = self.$login.f.depids
196
- row.f_depname = self.$login.f.deps
197
- self.reissue_data = JSON.parse(JSON.stringify(row))
198
- if (row.type === '调价预存') {
199
- let id = await self.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {
200
- data: {
201
- items: 'f_surplus_id',
202
- tablename: 't_sellinggas',
203
- condition: `id = '${row.id}'`,
204
- orderitem: 'id'
205
- }
206
- }, {resolveMsg: null, rejectMsg: '查询优惠信息失败'})
207
- self.reissue_data.id = id.data[0].f_surplus_id
208
- }
209
- self.reissue_show = true
210
- } catch (error) {
211
- if (error.status) {
212
- self.$warn(`加载数据出错, ${JSON.stringify(error)}`, 'CardList')
213
- }
214
- throw error
179
+ /**
180
+ * 发票补打
181
+ */
182
+ let reprintGen = async function (self, row) {
183
+ try {
184
+ row.billUrl = self.getBillUrl(row)
185
+ if (!row.billUrl) {
186
+ self.$showMessage('当前操作类型暂时没有票据')
187
+ return
215
188
  }
189
+ row.f_bill_type = row.type
190
+ row.f_bill_style = '普通收据'
191
+ row.f_operator = self.$login.f.name
192
+ row.f_operatorid = self.$login.f.id
193
+ row.f_orgid = self.$login.f.orgid
194
+ row.f_orgname = self.$login.f.orgs
195
+ row.f_depid = self.$login.f.depids
196
+ row.f_depname = self.$login.f.deps
197
+ self.reissue_data = JSON.parse(JSON.stringify(row))
198
+ if (row.type === '调价预存') {
199
+ let id = await self.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {
200
+ data: {
201
+ items: 'f_surplus_id',
202
+ tablename: 't_sellinggas',
203
+ condition: `id = '${row.id}'`,
204
+ orderitem: 'id'
205
+ }
206
+ }, {resolveMsg: null, rejectMsg: '查询优惠信息失败'})
207
+ self.reissue_data.id = id.data[0].f_surplus_id
208
+ }
209
+ self.reissue_show = true
210
+ } catch (error) {
211
+ if (error.status) {
212
+ self.$warn(`加载数据出错, ${JSON.stringify(error)}`, 'CardList')
213
+ }
214
+ throw error
216
215
  }
217
- let asyncCardList = async function (self) {
218
- await self.$getConfig(self, 'CardList')
219
- console.log('操作汇总config', self.config)
220
- }
221
- export default {
222
- title: '操作汇总',
223
- data () {
224
- return {
225
- config: {
226
- cancleother: true, // 默认可以撤销别人的操作
227
- cancletime: true // 默认可以冲正今天以前的操作
228
- },
229
- model: new PagedList(`${this.sqlurl}`, 9999,
230
- {
231
- items: '"' + this.items + '"',
232
- tablename: '"' + this.tablename + '"',
233
- orderitem: '"' + this.orderitem + '"'
234
- }),
235
- show: false,
236
- asideTitle: '用户操作',
237
- row: Object,
238
- comp: null,
239
- operationtypes: this.$appdata.getParam('操作类型') ? [{
240
- label: '全部',
241
- value: ''
242
- }, ...this.$appdata.getParam('操作类型')] : [],
216
+ }
217
+ let asyncCardList = async function (self) {
218
+ await self.$getConfig(self, 'CardList')
219
+ console.log('操作汇总config', self.config)
220
+ }
221
+ export default {
222
+ title: '操作汇总',
223
+ data() {
224
+ return {
225
+ config: {
226
+ cancleother: true, // 默认可以撤销别人的操作
227
+ cancletime: true // 默认可以冲正今天以前的操作
228
+ },
229
+ model: new PagedList(`${this.sqlurl}`, 9999,
230
+ {
231
+ items: '"' + this.items + '"',
232
+ tablename: '"' + this.tablename + '"',
233
+ orderitem: '"' + this.orderitem + '"'
234
+ }),
235
+ show: false,
236
+ asideTitle: '用户操作',
237
+ row: Object,
238
+ comp: null,
239
+ operationtypes: this.$appdata.getParam('操作类型') ? [{
240
+ label: '全部',
241
+ value: ''
242
+ }, ...this.$appdata.getParam('操作类型')] : [],
243
243
 
244
- cancel_show: false,
245
- cancel_data: null,
246
- criteriaShow: false,
247
- reissue_show: false,
248
- reissue_data: null,
249
- authArr: this.$login.r ? this.$login.r : []
244
+ cancel_show: false,
245
+ cancel_data: null,
246
+ criteriaShow: false,
247
+ reissue_show: false,
248
+ reissue_data: null,
249
+ authArr: this.$login.r ? this.$login.r : []
250
+ }
251
+ },
252
+ props: {
253
+ sqlurl: {
254
+ type: String,
255
+ default: 'api/af-revenue/sql/getRecord'
256
+ },
257
+ items: {
258
+ type: String,
259
+ default: '*'
260
+ },
261
+ tablename: {
262
+ type: String,
263
+ default: 't_record'
264
+ },
265
+ orderitem: {
266
+ type: String,
267
+ default: 'f_operate_date desc'
268
+ },
269
+ btns: {
270
+ type: Array
271
+ },
272
+ operationtype: {
273
+ type: String,
274
+ default: ''
275
+ },
276
+ userinfoid: {},
277
+ isOperate: {
278
+ type: Boolean,
279
+ default: true
280
+ },
281
+ f_orgid: ''
282
+ },
283
+ ready() {
284
+ this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
285
+ asyncCardList(this)
286
+ // this.search()
287
+ },
288
+ methods: {
289
+ dateDes(date) {
290
+ return this.$login.dateDescripte(date)
291
+ },
292
+ isToday(dateStr) {
293
+ const today = this.$login.toStandardDateString()
294
+ return dateStr && dateStr.startsWith(today)
295
+ },
296
+ selected(row) {
297
+ if (this.row === row) {
298
+ this.row = null
299
+ } else {
300
+ this.row = row
250
301
  }
251
302
  },
252
- props: {
253
- sqlurl: {
254
- type: String,
255
- default: 'api/af-revenue/sql/getRecord'
256
- },
257
- items: {
258
- type: String,
259
- default: '*'
260
- },
261
- tablename: {
262
- type: String,
263
- default: 't_record'
264
- },
265
- orderitem: {
266
- type: String,
267
- default: 'f_operate_date desc'
268
- },
269
- btns: {
270
- type: Array
271
- },
272
- operationtype: {
273
- type: String,
274
- default: ''
275
- },
276
- userinfoid: {},
277
- isOperate: {
278
- type: Boolean,
279
- default: true
280
- },
281
- f_orgid: ''
303
+ isSelected(row) {
304
+ return this.row === row
305
+ },
306
+ search() {
307
+ let condition = '1=1'
308
+ if (this.f_orgid) {
309
+ condition += `and (u.f_filialeid in ${this.f_orgid} or g.f_orgid in ${this.f_orgid}) `
310
+ } else {
311
+ condition += `and (u.f_filialeid = '${this.$login.f.orgid}' or g.f_orgid ='${this.$login.f.orgid}')`
312
+ }
313
+ this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
314
+ if (a.data.length === 0) {
315
+ this.model.rows = []
316
+ this.model.state = '错误'
317
+ this.model.error = '没有符合条件的记录'
318
+ return
319
+ }
320
+ this.model.state = '正确'
321
+ this.model.rows = a.data
322
+ })
282
323
  },
283
- ready () {
284
- this.$refs.paged.$refs.cri.model.f_operat_type = [this.operationtype]
285
- asyncCardList(this)
286
- // this.search()
324
+ disEvent(btn) {
325
+ this.$dispatch(`${btn.eventName}`)
287
326
  },
288
- methods:{
289
- dateDes (date) {
290
- return this.$login.dateDescripte(date)
291
- },
292
- selected (row) {
293
- if (this.row === row) {
294
- this.row = null
295
- } else {
296
- this.row = row
327
+ async operate(title, row) {
328
+ console.log('撤销的这条数据的信息11111', row)
329
+ if (title === '撤销') {
330
+ // 验证是否能撤销
331
+ let res = await this.$resetpost('api/af-revenue/logic/recordRepealJudge', {data: row}, {
332
+ resolveMsg: null,
333
+ rejectMsg: '验证权限错误!!'
334
+ })
335
+ if (!res.data.pass) {
336
+ this.$showMessage(res.data.msg)
337
+ return
297
338
  }
298
- },
299
- isSelected (row) {
300
- return this.row === row
301
- },
302
- search () {
303
- let condition = '1=1'
304
- if (this.f_orgid) {
305
- condition += `and (u.f_filialeid in ${this.f_orgid} or g.f_orgid in ${this.f_orgid}) `
306
- } else {
307
- condition += `and (u.f_filialeid = '${this.$login.f.orgid}' or g.f_orgid ='${this.$login.f.orgid}')`
339
+ if (row.type === '卡表收费') {
340
+ if (!this.authArr.includes('无卡收费撤销权限')) {
341
+ this.$showAlert('当前用户没有【无卡收费撤销权限】,请联系管理员获取此权限后再进行该操作!', 'warning', 3000)
342
+ return
343
+ }
308
344
  }
309
- this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
310
- if (a.data.length === 0) {
311
- this.model.rows = []
312
- this.model.state = '错误'
313
- this.model.error = '没有符合条件的记录'
345
+ if (row.type === '物联网收费' || row.type === '卡表赠气' || row.type === '物联网赠费' || row.type === '卡表赠费' || row.type === '物联网赠气') {
346
+ let table_name = this.$appdata.getSingleValue('新抄表') ? 't_web_handplan' : 't_handplan'
347
+ let getWebHand = await this.$SqlService.singleTable(table_name, `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_userfiles_id = '${row.f_userfiles_id}'`)
348
+ console.log('长度', getWebHand)
349
+ if (getWebHand.data.length > 0) {
350
+ this.$showAlert('此次物联网收费之后有结算,不能撤销此纪录', 'warning', 1500)
314
351
  return
315
352
  }
316
- this.model.state = '正确'
317
- this.model.rows = a.data
318
- })
319
- },
320
- disEvent (btn) {
321
- this.$dispatch(`${btn.eventName}`)
322
- },
323
- async operate (title, row) {
324
- console.log('撤销的这条数据的信息11111', row)
325
- if (title === '撤销') {
326
- // 验证是否能撤销
327
- let res = await this.$resetpost('api/af-revenue/logic/recordRepealJudge', {data: row}, {
353
+ } else if (row.type === '机表收费') {
354
+ let getWebHand = await this.$SqlService.singleTable('t_handplan', `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_whether_pay = '是' and f_userfiles_id = '${row.f_userfiles_id}'`)
355
+
356
+ console.log('长度', getWebHand)
357
+ if (getWebHand.data.length > 0) {
358
+ this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
359
+ return
360
+ }
361
+ let sql = `select th.*
362
+ from t_handplan th
363
+ left join t_sellinghand tsh on th.id = tsh.f_hand_id
364
+ where th.f_hand_state = '有效'
365
+ and th.f_input_date > '${row.f_operate_date}'
366
+ and tsh.f_debt_money > 0
367
+ and th.f_userfiles_id = '${row.f_userfiles_id}'
368
+ and tsh.f_state = '有效'`
369
+ let getwate = await this.$resetpost('api/af-revenue/logic/sqlquery', {data: {sql: sql}}, {
328
370
  resolveMsg: null,
329
- rejectMsg: '验证权限错误!!'
371
+ rejectMsg: '获取记录详情出错!!'
330
372
  })
331
- if (!res.data.pass) {
332
- this.$showMessage(res.data.msg)
373
+ if (getwate.data.length > 0) {
374
+ this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
333
375
  return
334
376
  }
335
- if (row.type === '卡表收费') {
336
- if (!this.authArr.includes('无卡收费撤销权限')) {
337
- this.$showAlert('当前用户没有【无卡收费撤销权限】,请联系管理员获取此权限后再进行该操作!', 'warning', 3000)
338
- return
339
- }
340
- }
341
- if (row.type === '物联网收费' || row.type === '卡表赠气' || row.type === '物联网赠费' || row.type === '卡表赠费' || row.type === '物联网赠气') {
342
- let table_name = this.$appdata.getSingleValue('新抄表') ? 't_web_handplan' : 't_handplan'
343
- let getWebHand = await this.$SqlService.singleTable(table_name, `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_userfiles_id = '${row.f_userfiles_id}'`)
344
- console.log('长度', getWebHand)
345
- if (getWebHand.data.length > 0) {
346
- this.$showAlert('此次物联网收费之后有结算,不能撤销此纪录', 'warning', 1500)
347
- return
348
- }
349
- } else if (row.type === '机表收费') {
350
- let getWebHand = await this.$SqlService.singleTable('t_handplan', `f_hand_state = '有效' and f_input_date > '${row.f_operate_date}' and f_whether_pay = '是' and f_userfiles_id = '${row.f_userfiles_id}'`)
377
+ }
378
+ if (this.authArr.includes('冲正权限')) {
379
+ const isFinance = this.$login.f.rolesnames.includes('财务退款')
380
+ const isTodayRecord = this.isToday(row.f_operate_date)
381
+ const isOwnRecord = row.f_operator === this.$login.f.name
351
382
 
352
- console.log('长度', getWebHand)
353
- if (getWebHand.data.length > 0) {
354
- this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
355
- return
356
- }
357
- let sql = `select th.*from t_handplan th
358
- left join t_sellinghand tsh on th.id=tsh.f_hand_id
359
- where th.f_hand_state = '有效' and th.f_input_date > '${row.f_operate_date}' and tsh.f_debt_money>0
360
- and th.f_userfiles_id = '${row.f_userfiles_id}' and tsh.f_state='有效'`
361
- let getwate = await this.$resetpost('api/af-revenue/logic/sqlquery', {data: {sql: sql}}, {
362
- resolveMsg: null,
363
- rejectMsg: '获取记录详情出错!!'
364
- })
365
- if (getwate.data.length > 0) {
366
- this.$showAlert('此次机表收费之后有自动下账,不能撤销此纪录', 'warning', 1500)
367
- return
368
- }
369
- }
370
- if (this.authArr.includes('冲正权限')) {
371
- const canCancelOther = this.config.cancleother || this.authArr.includes('撤销他人记录') || this.$login.f.rolesnames.includes('财务退款')
372
- if (canCancelOther && row.f_operator !== this.$login.f.name) {
383
+ // 财务角色:可以撤销任何人的任何记录
384
+ if (isFinance) {
385
+ // 财务可以做任何撤销操作,无需额外检查
386
+ } else {
387
+ // 非财务角色
388
+ if (isOwnRecord) {
389
+ // 本人记录:只有当天可以撤销,跨天不允许
390
+ if (!isTodayRecord) {
391
+ this.$showAlert('跨天的本人记录只能由财务人员撤销', 'warning', 1500)
392
+ return
393
+ }
394
+ } else {
395
+ // 他人记录:不允许撤销
373
396
  this.$showAlert('不能撤销不是自己进行的操作', 'warning', 1500)
374
397
  return
375
398
  }
376
- const canCancelNonToday = this.config.cancletime || this.$login.f.rolesnames.includes('财务退款')
377
- if (!canCancelNonToday) {
378
- const todayStart = this.$login.toStandardDateString() + ' 00:00:00'
379
- if (row.f_operate_date < todayStart) {
380
- this.$showAlert('不能撤销不是当天的操作', 'warning', 1500)
381
- return
382
- }
383
- // }
384
399
  }
385
400
  } else {
386
401
  this.$showAlert('当前用户没有【冲正权限】', 'warning', 1500)
@@ -388,169 +403,169 @@
388
403
  }
389
404
  }
390
405
 
391
- if (title === '撤销') {
392
- this.cancel_show = true
393
- this.cancel_data = row
406
+ if (title === '撤销') {
407
+ this.cancel_show = true
408
+ this.cancel_data = row
409
+ } else {
410
+ let reprint = reprintGen(this, row)
411
+ return co(reprint)
412
+ }
413
+ },
414
+ cancelOper() {
415
+ this.cancel_data = null
416
+ this.cancel_show = false
417
+ },
418
+ cancelSucc() {
419
+ console.log('-----------------------------撤销成功了,隐藏掉')
420
+ this.cancel_show = false
421
+ this.$dispatch('refresh')
422
+ },
423
+ reissueOper() {
424
+ this.reissue_data = null
425
+ this.reissue_show = false
426
+ },
427
+ reissueSucc() {
428
+ this.reissue_show = false
429
+ this.$dispatch('refresh')
430
+ },
431
+
432
+ getBillUrl(row) {
433
+ let type = row.type
434
+ let name = ''
435
+ // 根据type数据 选择调用的Logic
436
+ if (type === '过户') {
437
+ name = 'api/af-revenue/report/transfer_bill'
438
+ } else if (type === '换新表' || type === '气表清零') {
439
+ name = 'api/af-revenue/report/change_meter'
440
+ } else if (type === '机表收费' || type === '机表收费撤销') {
441
+ if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
442
+ name = 'api/af-revenue/report/fmy_machine_bill'
394
443
  } else {
395
- let reprint = reprintGen(this, row)
396
- return co(reprint)
444
+ name = 'api/af-revenue/report/machine_bill'
397
445
  }
398
- },
399
- cancelOper () {
400
- this.cancel_data = null
401
- this.cancel_show = false
402
- },
403
- cancelSucc () {
404
- console.log('-----------------------------撤销成功了,隐藏掉')
405
- this.cancel_show = false
406
- this.$dispatch('refresh')
407
- },
408
- reissueOper () {
409
- this.reissue_data = null
410
- this.reissue_show = false
411
- },
412
- reissueSucc () {
413
- this.reissue_show = false
414
- this.$dispatch('refresh')
415
- },
416
-
417
- getBillUrl (row) {
418
- let type = row.type
419
- let name = ''
420
- // 根据type数据 选择调用的Logic
421
- if (type === '过户') {
422
- name = 'api/af-revenue/report/transfer_bill'
423
- } else if (type === '换新表' || type === '气表清零') {
424
- name = 'api/af-revenue/report/change_meter'
425
- } else if (type === '机表收费' || type === '机表收费撤销') {
426
- if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
427
- name = 'api/af-revenue/report/fmy_machine_bill'
428
- } else {
429
- name = 'api/af-revenue/report/machine_bill'
430
- }
431
- } else if (type === '物联网收费' || type === '物联网收费撤销' || type === '物联网开户' || type === '物联网赠气') {
432
- if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
433
- name = 'api/af-revenue/report/fmy_iot_bill'
434
- } else {
435
- name = 'api/af-revenue/report/iot_bill'
436
- }
437
- } else if (type === '物联网补费' || type === '物联网扣费' || type === '物联网补气' || type === '物联网扣气' || type === '机表补费' || type === '机表扣费') {
438
- name = 'api/af-revenue/report/MakeUp'
439
- } else if (type === '超用收费') {
440
- name = 'api/af-revenue/report/overuse_bill'
441
- } else if (type === '超用收费') {
442
- name = 'api/af-revenue/report/gascharge_bill'
443
- } else if (type === '其他收费' || type === '其他收费撤销' || type === '维修收费') {
444
- name = 'api/af-revenue/report/otherCharge_bill'
445
- } else if (type === '补卡') {
446
- name = 'api/af-revenue/report/replace_sell'
447
- } else if (type === '发卡售气') {
448
- if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
449
- name = 'api/af-revenue/report/fmy_sendCard_bill'
450
- } else {
451
- if (row.f_meter_classify === '金额卡表' && this.$appdata.getSingleValue('金额气量区分卡表票据')) {
452
- name = 'api/af-revenue/report/fee_sendCard_bill'
453
- } else {
454
- name = 'api/af-revenue/report/sendCard_bill'
455
- }
456
- }
457
- } else if (type === '卡表收费' || type === '卡表收费撤销' || type === '卡表赠气' || type === '卡表收费撤销') {
458
- if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
459
- name = 'api/af-revenue/report/fmy_card_bill'
446
+ } else if (type === '物联网收费' || type === '物联网收费撤销' || type === '物联网开户' || type === '物联网赠气') {
447
+ if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
448
+ name = 'api/af-revenue/report/fmy_iot_bill'
449
+ } else {
450
+ name = 'api/af-revenue/report/iot_bill'
451
+ }
452
+ } else if (type === '物联网补费' || type === '物联网扣费' || type === '物联网补气' || type === '物联网扣气' || type === '机表补费' || type === '机表扣费') {
453
+ name = 'api/af-revenue/report/MakeUp'
454
+ } else if (type === '超用收费') {
455
+ name = 'api/af-revenue/report/overuse_bill'
456
+ } else if (type === '超用收费') {
457
+ name = 'api/af-revenue/report/gascharge_bill'
458
+ } else if (type === '其他收费' || type === '其他收费撤销' || type === '维修收费') {
459
+ name = 'api/af-revenue/report/otherCharge_bill'
460
+ } else if (type === '补卡') {
461
+ name = 'api/af-revenue/report/replace_sell'
462
+ } else if (type === '发卡售气') {
463
+ if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
464
+ name = 'api/af-revenue/report/fmy_sendCard_bill'
465
+ } else {
466
+ if (row.f_meter_classify === '金额卡表' && this.$appdata.getSingleValue('金额气量区分卡表票据')) {
467
+ name = 'api/af-revenue/report/fee_sendCard_bill'
460
468
  } else {
461
- if (row.f_meter_classify === '金额卡表' && this.$appdata.getSingleValue('金额气量区分卡表票据')) {
462
- name = 'api/af-revenue/report/fee_card_bill'
463
- } else {
464
- name = 'api/af-revenue/report/card_bill'
465
- }
469
+ name = 'api/af-revenue/report/sendCard_bill'
466
470
  }
467
- } else if (type === '预存缴费') {
468
- name = 'api/af-revenue/report/pre_sell'
469
- } else if (type === '加成气费收费') {
470
- name = 'api/af-revenue/report/gascharge_bill'
471
- } else if (type === '调价预存') {
472
- name = 'api/af-revenue/report/refund_sell'
473
- } else if (type === '退费') {
474
- name = 'api/af-revenue/report/refund_sell'
475
- } else if (type === '调价补费') {
476
- name = 'api/af-revenue/report/compensation_bill'
477
- } else if (type === '数码表收费') {
478
- name = 'api/af-revenue/report/digtial_bill'
479
- } else if (type === '气损收费' || type === '气损收费撤销') {
480
- name = 'api/af-revenue/report/gasloss_bill'
481
- } else if (type === '掉气补气') {
482
- name = 'api/af-revenue/report/acceptOffGasAddGas_bill'
483
- } else if (type === '其他补气') {
484
- name = 'api/af-revenue/report/acceptOtherGas_bill'
485
- } else if (type === '清零补气' || type === '换表补气') {
486
- if (row.f_meter_classify.indexOf('卡表') > -1) {
487
- name = 'api/af-revenue/report/card_gas_bill'
471
+ }
472
+ } else if (type === '卡表收费' || type === '卡表收费撤销' || type === '卡表赠气' || type === '卡表收费撤销') {
473
+ if (row.f_user_type === '非民用' && this.$login.r.includes('非民用纸质票据拆分')) {
474
+ name = 'api/af-revenue/report/fmy_card_bill'
475
+ } else {
476
+ if (row.f_meter_classify === '金额卡表' && this.$appdata.getSingleValue('金额气量区分卡表票据')) {
477
+ name = 'api/af-revenue/report/fee_card_bill'
488
478
  } else {
489
- name = 'api/af-revenue/report/iot_sell'
479
+ name = 'api/af-revenue/report/card_bill'
490
480
  }
491
- } else if (type === '垃圾费收费') {
492
- name = 'api/af-revenue/report/garbageChargeReport'
493
481
  }
494
- return name
495
- },
496
- // 撤销为统一操作,所以写到基础组件中
497
- operateCancel (row) {
498
- let cancel = cancelGen(this, row)
499
- co(cancel)
500
- },
501
- selfSearch (args) {
502
- // if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
503
- // args.condition += `and f_filialeids = '${this.$login.f.f_orgids}'`
504
- // }
505
- if (this.f_orgid) {
506
- args.condition += `and r.f_orgid in ${this.f_orgid}`
482
+ } else if (type === '预存缴费') {
483
+ name = 'api/af-revenue/report/pre_sell'
484
+ } else if (type === '加成气费收费') {
485
+ name = 'api/af-revenue/report/gascharge_bill'
486
+ } else if (type === '调价预存') {
487
+ name = 'api/af-revenue/report/refund_sell'
488
+ } else if (type === '退费') {
489
+ name = 'api/af-revenue/report/refund_sell'
490
+ } else if (type === '调价补费') {
491
+ name = 'api/af-revenue/report/compensation_bill'
492
+ } else if (type === '数码表收费') {
493
+ name = 'api/af-revenue/report/digtial_bill'
494
+ } else if (type === '气损收费' || type === '气损收费撤销') {
495
+ name = 'api/af-revenue/report/gasloss_bill'
496
+ } else if (type === '掉气补气') {
497
+ name = 'api/af-revenue/report/acceptOffGasAddGas_bill'
498
+ } else if (type === '其他补气') {
499
+ name = 'api/af-revenue/report/acceptOtherGas_bill'
500
+ } else if (type === '清零补气' || type === '换表补气') {
501
+ if (row.f_meter_classify.indexOf('卡表') > -1) {
502
+ name = 'api/af-revenue/report/card_gas_bill'
507
503
  } else {
508
- args.condition += `and r.f_orgid = '${this.$login.f.orgid}'`
504
+ name = 'api/af-revenue/report/iot_sell'
509
505
  }
510
- if (this.authArr.includes('操作记录查询限定')) {
511
- args.condition += ` and r.f_operatorid = '${this.$login.f.id}'`
512
- }
513
- this.model.search(args.condition, args.model)
506
+ } else if (type === '垃圾费收费') {
507
+ name = 'api/af-revenue/report/garbageChargeReport'
514
508
  }
509
+ return name
510
+ },
511
+ // 撤销为统一操作,所以写到基础组件中
512
+ operateCancel(row) {
513
+ let cancel = cancelGen(this, row)
514
+ co(cancel)
515
515
  },
516
- watch: {
517
- // 'userinfoid' (newVal) {
518
- // this.model.rows={}
519
- // if (newVal && newVal !== '') {
520
- // this.$nextTick(function () {
521
- // this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
522
- // }.bind(this))
523
- // }else{
524
- // this.$nextTick(function () {
525
- // this.$refs.paged.$refs.cri.model.f_userinfo_code = ""
526
- // }.bind(this))
527
- // }
528
- // this.$refs.paged.$refs.cri.model.f_operat_type = ''
516
+ selfSearch(args) {
517
+ // if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
518
+ // args.condition += `and f_filialeids = '${this.$login.f.f_orgids}'`
529
519
  // }
530
- 'userinfoid' (newVal) {
531
- if (newVal && newVal !== '') {
532
- this.$nextTick(function () {
533
- this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
534
- }.bind(this))
535
- this.$refs.paged.$refs.cri.model.f_operat_type = ''
536
- let condition = `f_userinfo_code = '${newVal}' and u.f_filialeid = '${this.$login.f.orgid}'`
537
- this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
538
- if (a.data.length === 0) {
539
- this.model.rows = []
540
- this.model.state = '错误'
541
- this.model.error = '没有符合条件的记录'
542
- return
543
- }
544
- this.model.state = '正确'
545
- this.model.rows = a.data
546
- })
547
- } else {
548
- this.model.rows = {}
549
- this.$nextTick(function () {
550
- this.$refs.paged.$refs.cri.model.f_userinfo_code = ''
551
- }.bind(this))
552
- }
520
+ if (this.f_orgid) {
521
+ args.condition += `and r.f_orgid in ${this.f_orgid}`
522
+ } else {
523
+ args.condition += `and r.f_orgid = '${this.$login.f.orgid}'`
524
+ }
525
+ if (this.authArr.includes('操作记录查询限定')) {
526
+ args.condition += ` and r.f_operatorid = '${this.$login.f.id}'`
527
+ }
528
+ this.model.search(args.condition, args.model)
529
+ }
530
+ },
531
+ watch: {
532
+ // 'userinfoid' (newVal) {
533
+ // this.model.rows={}
534
+ // if (newVal && newVal !== '') {
535
+ // this.$nextTick(function () {
536
+ // this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
537
+ // }.bind(this))
538
+ // }else{
539
+ // this.$nextTick(function () {
540
+ // this.$refs.paged.$refs.cri.model.f_userinfo_code = ""
541
+ // }.bind(this))
542
+ // }
543
+ // this.$refs.paged.$refs.cri.model.f_operat_type = ''
544
+ // }
545
+ 'userinfoid'(newVal) {
546
+ if (newVal && newVal !== '') {
547
+ this.$nextTick(function () {
548
+ this.$refs.paged.$refs.cri.model.f_userinfo_code = newVal
549
+ }.bind(this))
550
+ this.$refs.paged.$refs.cri.model.f_operat_type = ''
551
+ let condition = `f_userinfo_code = '${newVal}' and u.f_filialeid = '${this.$login.f.orgid}'`
552
+ this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
553
+ if (a.data.length === 0) {
554
+ this.model.rows = []
555
+ this.model.state = '错误'
556
+ this.model.error = '没有符合条件的记录'
557
+ return
558
+ }
559
+ this.model.state = '正确'
560
+ this.model.rows = a.data
561
+ })
562
+ } else {
563
+ this.model.rows = {}
564
+ this.$nextTick(function () {
565
+ this.$refs.paged.$refs.cri.model.f_userinfo_code = ''
566
+ }.bind(this))
553
567
  }
554
568
  }
555
569
  }
570
+ }
556
571
  </script>
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- #Thu Jul 02 11:05:57 CST 2026
2
- gradle.version=5.2.1
File without changes