sale-client 3.6.194 → 3.6.196

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.
@@ -17,9 +17,6 @@ var devConfig = {
17
17
  children: false // 不输出子模块构建信息
18
18
  },
19
19
  proxy: {
20
- '/rs/handPlanAudit': {
21
- target: 'http://localhost:8080/'
22
- },
23
20
  '/rs/file': {
24
21
  target: serverRul
25
22
  },
@@ -76,13 +73,10 @@ var devConfig = {
76
73
  target: serverRul
77
74
  },
78
75
  '/rs/logic': {
79
- target: 'http://localhost:8080/'
76
+ target: localUrl
80
77
  },
81
78
  '/rs/sql': {
82
- target: 'http://localhost:8080/'
83
- },
84
- '/rs/entity': {
85
- target: serverRul
79
+ target: localUrl
86
80
  },
87
81
  '/webmeter': {
88
82
  target: serverRul
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.194",
3
+ "version": "3.6.196",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -362,7 +362,7 @@
362
362
  console.log(self.config, self.config.hasPrint && !self.$login.r.includes('不打印发票'))
363
363
  // 开始打票
364
364
  if (self.config.hasPrint && !self.$login.r.includes('不打印发票')) {
365
- if (self.model.f_print.indexOf('电子发票') == -1) {
365
+ if (self.printInvoiceType.indexOf(self.model.f_print) === -1) {
366
366
  if (self.$login.r.includes('非民用纸质票据拆分')) {
367
367
  if (self.row.f_user_type === '非民用') {
368
368
  self.billData.url = 'rs/report/fmy_card_bill'
@@ -384,9 +384,10 @@
384
384
  self.print = true
385
385
  }
386
386
  } else {
387
- if (self.model.f_print[0] === '电子发票') {
387
+ if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
388
388
  self.row.id = res
389
389
  self.eticket_show = true
390
+ self.row.f_print = self.model.f_print[0]
390
391
  // 应铜川需要卡表显示
391
392
  await self.$refs.eticketbill.openETicket(res, self.row, '卡表收费')
392
393
  // await self.$CommonService.openEticket(res, '售气收费')
@@ -567,6 +568,7 @@
567
568
  // 下拉框值
568
569
  paytype: [],
569
570
  printstyle: this.$appdata.getParam('打印格式'),
571
+ printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
570
572
  privilegeList: [{label: '无优惠', value: '0'}],
571
573
  BankTransfer: false,
572
574
  // 小数是否支持,导致划价产生的多余气量,金额
@@ -700,7 +702,7 @@
700
702
  // 收款回车时, 如果确认按钮是灰色不进行任何操作
701
703
  if (flag) return
702
704
  console.log(this.model.f_print[0])
703
- if (this.model.f_print[0] === '电子发票') {
705
+ if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
704
706
  if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
705
707
  this.row.f_taxpayer_id = this.row.f_idnumber
706
708
  }
@@ -338,11 +338,10 @@
338
338
  }
339
339
  await self.$resetpost('rs/logic/updatefiles', data)
340
340
  }
341
- console.log('物联网收费返回。。。', res.data.id)
342
341
  // 开始打票
343
342
  console.log('开始打票', self.config)
344
343
  if (self.config.hasPrint) {
345
- if (self.model.f_print.indexOf('电子发票') == -1) {
344
+ if (self.printInvoiceType.indexOf(self.model.f_print) === -1) {
346
345
  console.log('self.config.hasBillManage', self.config.hasBillManage)
347
346
  if (self.$login.r.includes('非民用纸质票据拆分')) {
348
347
  if (self.row.f_user_type === '非民用') {
@@ -361,8 +360,9 @@
361
360
  }
362
361
  } else if (self.config.printType === '国税发票') {
363
362
  // TODO
364
- } else if (self.model.f_print[0] === '电子发票') {
363
+ } else if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
365
364
  self.eticket_show = true
365
+ self.row.f_print = self.model.f_print[0]
366
366
  await self.$refs.eticketbill.openETicket(res.data.id, self.row, '物联网收费')
367
367
  // self.$CommonService.openEticket(res.data.id, '其他收费')
368
368
  // self.$dispatch('success')
@@ -529,6 +529,7 @@
529
529
  // 下拉框值
530
530
  paytype: this.$appdata.getParam('付款方式'),
531
531
  printstyle: this.$appdata.getParam('打印格式'),
532
+ printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
532
533
  privilegeList: [{label: '无优惠', value: '0'}],
533
534
  showfiles: false,
534
535
  serialShow: false,
@@ -668,8 +669,7 @@
668
669
  }
669
670
  this.model.f_sys_balance = curSysBalance
670
671
  }
671
-
672
- if (this.model.f_print[0] === '电子发票') {
672
+ if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
673
673
  if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
674
674
  this.row.f_taxpayer_id = this.row.f_idnumber
675
675
  }
@@ -258,7 +258,7 @@ let otherChargeGen = async function (self, parameter) {
258
258
  // })
259
259
  // }
260
260
  if (self.config.hasPrint && !self.$login.r.includes('不打印发票')) {
261
- if (self.model.f_print[0] != '电子发票') {
261
+ if (self.printInvoiceType.indexOf(self.model.f_print) === -1) {
262
262
  if (self.config.hasBillManage) {
263
263
  self.row.id = resid.data
264
264
  self.row.f_bill_type = '其他收费'
@@ -271,8 +271,9 @@ let otherChargeGen = async function (self, parameter) {
271
271
  } else if (self.model.f_print[0] === '国税发票') {
272
272
  // TODO
273
273
  self.$dispatch('success')
274
- } else if (self.model.f_print[0] === '电子发票') {
274
+ } else if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
275
275
  self.eticket_show = true
276
+ self.row.f_print = self.model.f_print[0]
276
277
  await self.$refs.eticketbill.openETicket(resid.data, self.row, '其他收费')
277
278
  // self.$CommonService.openEticket(resid.data, '其他收费')
278
279
  // self.$dispatch('success')
@@ -355,6 +356,7 @@ export default {
355
356
  typenumberList: [],
356
357
  brandspec: this.$appdata.getParam('品名及规格'),
357
358
  brandType: this.$appdata.getSingleValue('其他收费类型') ? this.$appdata.getSingleValue('其他收费类型') : '收费类型',
359
+ printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
358
360
  printstyle: this.$appdata.getParam('打印格式'),
359
361
  paytype: this.$appdata.getParam('付款方式'),
360
362
  feetype: this.$appdata.getParam('其他费用'),
@@ -475,7 +477,7 @@ export default {
475
477
  },
476
478
  // 校验发票信息
477
479
  checkInvoiceMsg () {
478
- if (this.model.f_print[0] === '电子发票') {
480
+ if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
479
481
  if (!this.row.f_taxpayer_id) {
480
482
  this.row.f_taxpayer_id = this.row.f_idnumber
481
483
  }
@@ -225,7 +225,7 @@ let asyncMachineMeterCenter = async function (self) {
225
225
 
226
226
  // 开始打票
227
227
  if (self.config.hasPrint) {
228
- if (self.data.f_print.indexOf('电子发票') == -1) {
228
+ if (self.printInvoiceType.indexOf(self.data.f_print) === -1) {
229
229
  if (self.$login.r.includes('非民用纸质票据拆分')) {
230
230
  if (self.row.f_user_type === '非民用') {
231
231
  self.billData.url = 'rs/report/fmy_machine_bill'
@@ -260,8 +260,9 @@ let asyncMachineMeterCenter = async function (self) {
260
260
  }
261
261
  } else if (self.data.f_print[0] === '国税发票') {
262
262
  // TODO
263
- } else if (self.data.f_print[0] === '电子发票') {
263
+ } else if (self.printInvoiceType.indexOf(self.data.f_print[0]) !== -1) {
264
264
  self.eticket_show = true
265
+ self.row.f_print = self.data.f_print[0]
265
266
  await self.$refs.eticketbill.openETicket(res.data, self.row, '机表收费')
266
267
  // await self.$CommonService.openEticket(res.data, '售气收费')
267
268
  // 如果不欠费就用下边的预存收据
@@ -339,6 +340,7 @@ let asyncMachineMeterCenter = async function (self) {
339
340
  editOverdue: this.$login.r.includes('违约金修改'),
340
341
  paytype: [],
341
342
  printstyle: this.$appdata.getParam('打印格式') ? this.$appdata.getParam('打印格式') : [],
343
+ printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
342
344
  privilegeList: [{label: '无优惠', value: '0'}],
343
345
  // 在向下取整时,保存所有的应交金额
344
346
  totalcost: 0,
@@ -387,7 +389,7 @@ let asyncMachineMeterCenter = async function (self) {
387
389
  },
388
390
  // 校验发票信息
389
391
  checkInvoiceMsg () {
390
- if (this.data.f_print[0] === '电子发票') {
392
+ if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
391
393
  if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
392
394
  this.row.f_taxpayer_id = this.row.f_idnumber
393
395
  }
@@ -73,6 +73,7 @@ export default {
73
73
  let result = await axios.post('/invoice/rs/logic/getInvoice', Object.assign({
74
74
  id,
75
75
  f_charge_type,
76
+ bill_type: model.f_print ? model.f_print : null,
76
77
  f_paper_name: model.f_paper_name,
77
78
  f_taxpayer_id: model.f_taxpayer_id,
78
79
  f_address_phone: model.f_address_phone,
@@ -131,6 +131,17 @@
131
131
  :options='is_pax' clear-button>
132
132
  </v-select>
133
133
  </div>
134
+ <div class="col-sm-6 form-group form-input-group">
135
+ <label for="f_print" class="font_normal_body">打印格式</label>
136
+ <v-select id="print"
137
+ v-model="f_print"
138
+ placeholder='请选择'
139
+ :multiple="false"
140
+ :value.sync="row.f_print"
141
+ :options='printstyle'
142
+ close-on-select clear-button v-ref:printstyle>
143
+ </v-select>
144
+ </div>
134
145
  <div class="col-sm-12 form-group form-input-group">
135
146
  <label class="control-label">开户行及账号:</label>
136
147
  <input class="form-control col-sm-2"
@@ -190,6 +201,7 @@
190
201
  show_gas: [{label: '是', value: '是'}, {label: '否', value: '否'}],
191
202
  row: {},
192
203
  disabled: false,
204
+ printstyle: this.$appdata.getParam('打印电子格式') ? this.$appdata.getParam('打印电子格式') : [{label: '电子发票', value: '电子发票'}],
193
205
  mid: [{label: '全部', value: ''}, {label: '是', value: ' > 0 '}, {label: '否', value: ' is null'}]
194
206
  }
195
207
  },
@@ -266,6 +278,7 @@
266
278
  this.eticket_msg = true
267
279
  },
268
280
  confirm () {
281
+ this.row.f_print = this.row.f_print[0]
269
282
  this.eticket_msg = false
270
283
  this.disabled = false
271
284
  this.eticket_show = true
@@ -178,7 +178,7 @@
178
178
  <th style="text-align:center">{{ row.f_collection }}</th>
179
179
  <th style="text-align:center">{{ row.f_total_money }}</th>
180
180
  <th style="text-align:center">{{ row.f_tax_money }}</th>
181
- <th style="text-align:center">{{ row.f_invoice_type }}</th>
181
+ <th style="text-align:center">{{ row.f_invoice_type === '0' ? '蓝票' : '红票'}}</th>
182
182
  <th style="text-align:center">{{ row.f_bill_code }}</th>
183
183
  <th style="text-align:center">{{ row.f_fpqqlsh }}</th>
184
184
  <th style="text-align:center">{{ row.f_bill_number }}</th>
@@ -196,7 +196,7 @@
196
196
  </th>
197
197
  <th style="text-align:center">
198
198
  <template v-if="row.f_invoice_source !== '外部录入'">
199
- <button class="btn btn-link" v-if="row.f_bill_state==='开票成功'"
199
+ <button class="btn btn-link" v-if="row.f_bill_state==='开票成功' && row.f_invoice_type === '0'"
200
200
  @click="$parent.$parent.$parent.fp_ch(row)">发票冲红
201
201
  </button>
202
202
  <button class="btn btn-link" v-if="row.f_bill_state==='待开票'"
@@ -125,11 +125,13 @@
125
125
  :payment.sync="model.f_payment" :payment-data="paytype"
126
126
  @confirm-payment="confirm()">
127
127
  </payment-code-button>
128
- <button class="button_search" @click="confirm()" :disabled='!$v.valid || validateOk'>确认</button>
128
+ <button class="button_search" @click="checkInvoiceMsg()" :disabled='!$v.valid || validateOk'>确认</button>
129
129
  <button class="button_clear" @click="clean()" >取消</button>
130
130
  </div>
131
131
  </validator>
132
132
  </div>
133
+ <eticket-modal :show="eticket_msg" @closemodalshow="eticket_msg = false" :row="row" @confirm="confirm"></eticket-modal>
134
+ <ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
133
135
  <payment-code v-ref:paymentcode :payment="model.f_payment" :row="row" :money="model.f_collection"></payment-code>
134
136
  <upload :blodid="blodid" v-if="config.showupload" :businessid="randomBusinessId" isremark="true" fusetype="超用收费"></upload>
135
137
  </template>
@@ -234,7 +236,7 @@ let overChargeGen = async function (self) {
234
236
  await self.$resetpost('rs/logic/updatefiles', data)
235
237
  }
236
238
  if (self.config.hasPrint && !self.$login.r.includes('不打印发票')) {
237
- if (self.model.f_print.indexOf('电子发票') == -1) {
239
+ if (self.printInvoiceType.indexOf(self.model.f_print) === -1) {
238
240
  if (self.config.hasBillManage) {
239
241
  // 启用发票管理,获取票据管理中的票号并存储记录
240
242
  self.row.id = res.data
@@ -246,9 +248,12 @@ let overChargeGen = async function (self) {
246
248
  self.print = true
247
249
  }
248
250
  } else {
249
- if (self.model.f_print[0] === '电子发票') {
250
- self.$CommonService.openEticket(res.data, '超用收费')
251
- self.$dispatch('success')
251
+ if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
252
+ // self.$CommonService.openEticket(res.data, '超用收费')
253
+ self.row.id = res.data
254
+ self.eticket_show = true
255
+ self.row.f_print = self.model.f_print[0]
256
+ await self.$refs.eticketbill.openETicket(res.data, self.row, '超用收费')
252
257
  }
253
258
  }
254
259
  } else {
@@ -316,9 +321,11 @@ export default {
316
321
  bill: ''
317
322
  },
318
323
  print: false,
319
-
324
+ eticket_msg: false,
325
+ eticket_show: false,
320
326
  mulPrint: false,
321
327
  paytype: this.$appdata.getParam('付款方式'),
328
+ printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
322
329
  printstyle: this.$appdata.getParam('打印格式'),
323
330
  mjshow: false
324
331
  }
@@ -365,6 +372,44 @@ export default {
365
372
  }
366
373
  })
367
374
  },
375
+ // 校验发票信息
376
+ checkInvoiceMsg (flag) {
377
+ // 校验是否超出最大透支余额
378
+ // if (this.model.f_payment == '系统余额透支') {
379
+ // const maxOverdraftBalance = -(this.$appdata.getSingleValue('最大透支余额') - 0)
380
+ // const curSysBalance = (this.row.f_sys_balance - 0) - (this.model.f_totalcost - 0)
381
+ // if (curSysBalance < maxOverdraftBalance) {
382
+ // this.$showAlert('您的系统余额将超出最大透支余额,请使用别的付款方式!', 'danger', 5000)
383
+ // return
384
+ // }
385
+ // this.model.f_sys_balance = curSysBalance
386
+ // }
387
+
388
+ // 收款回车时, 如果确认按钮是灰色不进行任何操作
389
+ if (flag) return
390
+ console.log(this.model.f_print[0])
391
+ if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
392
+ if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
393
+ this.row.f_taxpayer_id = this.row.f_idnumber
394
+ }
395
+ if (!this.row.f_paper_name) {
396
+ this.row.f_paper_name = this.row.f_user_name
397
+ }
398
+ if (!this.row.f_address_phone) {
399
+ this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
400
+ }
401
+ if (!this.row.f_email) {
402
+ this.row.f_email = this.row.f_email
403
+ }
404
+ this.eticket_msg = true
405
+ } else {
406
+ this.confirm()
407
+ }
408
+ },
409
+ eticket_toggle () {
410
+ this.eticket_show = false
411
+ this.$dispatch('success', '超用收费')
412
+ },
368
413
  clean () {
369
414
  this.$dispatch('refresh')
370
415
  },
@@ -340,7 +340,7 @@
340
340
  console.log(self.config, self.config.hasPrint && !self.$login.r.includes('不打印发票'))
341
341
  // 开始打票
342
342
  if (self.config.hasPrint && !self.$login.r.includes('不打印发票')) {
343
- if (self.model.f_print.indexOf('电子发票') == -1) {
343
+ if (self.printInvoiceType.indexOf(self.model.f_print) === -1) {
344
344
  if (self.$login.r.includes('非民用纸质票据拆分')) {
345
345
  if (self.row.f_user_type === '非民用') {
346
346
  self.billData.url = 'rs/report/fmy_card_bill'
@@ -357,11 +357,13 @@
357
357
  self.print = true
358
358
  }
359
359
  } else {
360
- if (self.model.f_print[0] === '电子发票') {
360
+ if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
361
361
  self.row.id = res
362
362
  self.eticket_show = true
363
+ self.row.f_print = self.model.f_print[0]
363
364
  // 应铜川需要卡表显示
364
- await self.$refs.eticketbill.openETicket([res], self.row, '是', self.invoice_is_pax, '卡表收费')
365
+ // await self.$refs.eticketbill.openETicket([res], self.row, '是', self.invoice_is_pax, '卡表收费')
366
+ await self.$refs.eticketbill.openETicket(res, self.row, '卡表收费')
365
367
  // await self.$CommonService.openEticket(res, '售气收费')
366
368
  // self.print = true
367
369
  }
@@ -537,6 +539,7 @@
537
539
  // 下拉框值
538
540
  paytype: [],
539
541
  printstyle: this.$appdata.getParam('打印格式'),
542
+ printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
540
543
  privilegeList: [{label: '无优惠', value: '0'}],
541
544
  BankTransfer: false,
542
545
  // 小数是否支持,导致划价产生的多余气量,金额
@@ -641,7 +644,7 @@
641
644
  // 收款回车时, 如果确认按钮是灰色不进行任何操作
642
645
  if (flag) return
643
646
  console.log(this.model.f_print[0])
644
- if (this.model.f_print[0] === '电子发票') {
647
+ if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
645
648
  if (!this.row.f_taxpayer_id) {
646
649
  this.row.f_taxpayer_id = this.row.f_idnumber
647
650
  }
@@ -0,0 +1,321 @@
1
+ <template>
2
+ <div>
3
+ <div style="flex: 1.5" class="flex">
4
+ <div class="flex">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
7
+ <div novalidate class="form-inline auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-3 form-group">
10
+ <label class="font_normal_body">组织机构</label>
11
+ <res-select
12
+ :initresid='$parent.$parent.curorgid'
13
+ @res-select="$parent.$parent.getorg"
14
+ is-mul="false"
15
+ restype='organization'
16
+ >
17
+ </res-select>
18
+ </div>
19
+ <div class="col-sm-3 form-group">
20
+ <label class="font_normal_body">客户编号</label>
21
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_userinfo_code"
22
+ condition="f_userinfo_code = '{}'" placeholder='客户编号'>
23
+ </div>
24
+ <div class="col-sm-3 form-group">
25
+ <label class="font_normal_body">客户电话</label>
26
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_user_phone"
27
+ condition="f_user_phone = '{}'" placeholder='客户电话'>
28
+ </div>
29
+ <div style="float: right">
30
+ <button class="button_search" @click="search()">查 询</button>
31
+ <button class="btn btn-default" @click="$parent.$parent.battchinsurance()" >批量保险收费</button>
32
+ <button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.downloadFiles()">模板下载
33
+ </button>
34
+ <div
35
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
36
+ @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
37
+ class="button_spacing"
38
+ style="float: right"></div>
39
+ </div>
40
+ </div>
41
+ <div class="row" v-show="$parent.$parent.criteriaShow">
42
+ <div class="col-sm-3 form-group">
43
+ <label class="font_normal_body">客户姓名</label>
44
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_user_name"
45
+ condition="f_user_name = '{}'" placeholder='客户姓名'>
46
+ </div>
47
+ <div class="col-sm-3 form-group">
48
+ <label for="f_ins_start_date" class="font_normal_body">开始日期</label>
49
+ <datepicker id="f_ins_start_date" placeholder="保费截止日期" style="width:60%"
50
+ v-model="model.f_ins_stop_date1"
51
+ :value.sync="model.f_ins_stop_date1"
52
+ :format="'yyyy-MM-dd'"
53
+ :show-reset-button="true"
54
+ condition="f_ins_stop_date >= '{} 00:00:00'">
55
+ </datepicker>
56
+ </div>
57
+ <div class="col-sm-3 form-group">
58
+ <label for="f_ins_stop_date" class="font_normal_body">截止日期</label>
59
+ <datepicker id="f_ins_stop_date" placeholder="保费截止日期" style="width:60%"
60
+ v-model="model.f_ins_stop_date"
61
+ :value.sync="model.f_ins_stop_date"
62
+ :format="'yyyy-MM-dd'"
63
+ :show-reset-button="true"
64
+ condition="f_ins_stop_date <= '{} 23:59:59'">
65
+ </datepicker>
66
+ </div>
67
+ <div class="col-sm-3 form-group">
68
+ <label class="font_normal_body">选择小区</label>
69
+ <v-select
70
+ v-model="model.f_residential_area"
71
+ placeholder='选择小区'
72
+ :value.sync="model.f_residential_area"
73
+ :options='$parent.$parent.residentialArea'
74
+ condition="f_residential_area = '{}'"
75
+ style="width: 60%"
76
+ close-on-select >
77
+ </v-select>
78
+ </div>
79
+ <div class="col-sm-3 form-group">
80
+ <label class="font_normal_body">客户地址</label>
81
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_address"
82
+ condition="f_address like '%{}%'" placeholder='客户地址'>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </criteria>
87
+ <data-grid :model="model" v-ref:grid class="list_area table_sy" partial='list'>
88
+ <template partial='head'>
89
+ <tr>
90
+ <th>
91
+ <nobr>序号</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>客户编号</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>客户电话</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>小区</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>客户姓名</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>客户地址</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>截止日期</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>累计保费充值金额</nobr>
113
+ </th>
114
+ </template>
115
+ <template partial='body'>
116
+ <td style="text-align: center;">
117
+ <nobr>{{$index + 1}}</nobr>
118
+ </td>
119
+ <td style="text-align: center;">
120
+ <nobr>
121
+ {{row.f_userinfo_code}}
122
+ </nobr>
123
+ </td>
124
+ <td style="text-align: center;">
125
+ <nobr>
126
+ {{row.f_user_phone}}
127
+ </nobr>
128
+ </td>
129
+ <td style="text-align: center;">
130
+ <nobr>
131
+ {{row.f_residential_area}}
132
+ </nobr>
133
+ </td>
134
+ <td style="text-align: center;">
135
+ <nobr>{{row.f_user_name}}</nobr>
136
+ </td>
137
+ <td style="text-align: center;">
138
+ <nobr>{{row.f_address}}</nobr>
139
+ </td>
140
+ <td style="text-align: center;">
141
+ <nobr>{{row.f_ins_stop_date}}</nobr>
142
+ </td>
143
+ <td style="text-align: center;">
144
+ <nobr>{{row.f_total_ins_charge}}</nobr>
145
+ </td>
146
+ </template>
147
+ </data-grid>
148
+ </criteria-paged>
149
+ </div>
150
+ </div>
151
+ </div>
152
+ <modal :show.sync="batchmoneyShow" width="500px" title="批量保险收费" v-ref:modal large backdrop="false">
153
+ <article slot="modal-body" class="modal-body">
154
+ <file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
155
+ </article>
156
+ <footer slot="modal-footer" class="modal-footer">
157
+ </footer>
158
+ </modal>
159
+ <modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;" >
160
+ <header slot="modal-header" class="modal-header">
161
+ 批量保险收费
162
+ </header>
163
+ <article slot="modal-body" class="modal-body">
164
+ <div class="progress" style="margin: 20px" >
165
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">
166
+ {{percent}}%
167
+ </div>
168
+ </div>
169
+ </article>
170
+ <footer slot="modal-footer" class="modal-footer">
171
+ <button type="button" class="btn btn-default" @click='progressclose'>关闭</button>
172
+ </footer>
173
+ </modal>
174
+ </template>
175
+
176
+ <script>
177
+ import {HttpResetClass, PagedList} from 'vue-client'
178
+
179
+ export default {
180
+ 'title': '',
181
+ data () {
182
+ return {
183
+ model: new PagedList('rs/sql/getInsuranceList', 20),
184
+ // 控制查询条件显示
185
+ criteriaShow: false,
186
+ batchmoneyShow:false,
187
+ progressShow:false,
188
+ residentialArea: [],
189
+ timer:'',
190
+ curorgid: [this.$login.f.orgid],
191
+ f_filialeid: this.$login.f.orgid,
192
+ uuida:'',
193
+ percent:0
194
+ }
195
+ },
196
+ ready () {
197
+ this.search()
198
+ },
199
+ methods: {
200
+ downloadFiles(){
201
+ let downurl='rs/downloadfile/file?filename=批量保险收费导入Excel模板';
202
+ this.$downFile(downurl,'批量保险收费导入Excel模板.xlsx')
203
+ },
204
+ search () {
205
+ this.$refs.paged.$refs.criteria.search()
206
+ },
207
+ getorg (val) {
208
+ this.f_filialeid = val[0]
209
+ },
210
+ selfSearch (args) {
211
+ args.condition = `${args.condition} and ui.f_orgid = '${this.f_filialeid}'`
212
+ this.model.search(args.condition, args.model)
213
+ this.getaddress()
214
+ },
215
+ battchinsurance(){
216
+ this.batchmoneyShow=true;
217
+ },
218
+ progressclose(){
219
+ this.progressShow = false;
220
+ if(this.timer != null){
221
+ clearInterval(this.timer);
222
+ }
223
+ },
224
+ getuuid(){
225
+ let uuidA = '';
226
+ var s = [];
227
+ var hexDigits = '0123456789abcdef';
228
+ for (var i = 0; i < 36; i++) {
229
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
230
+ }
231
+ s[14] = '4';
232
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
233
+ s[8] = s[13] = s[18] = s[23] = '-';
234
+ uuidA = s.join('');
235
+ this.uuida = uuidA;
236
+ },
237
+ async getaddress () {
238
+ console.log('开始获取小区')
239
+ let HttpReset = new HttpResetClass()
240
+ var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
241
+ data: {
242
+ condition: `1=1 and s.f_orgid = '${this.f_filialeid}'`
243
+ }
244
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
245
+ console.log('小区', data)
246
+ let house = []
247
+ house.push()
248
+ for (let row of data.data) {
249
+ console.log('开始保存小区')
250
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
251
+ }
252
+ this.residentialArea = house
253
+ }
254
+
255
+ },
256
+ computed: {},
257
+ events:{
258
+ 'onFileUpload': async function (file, res) {
259
+ if (this.batchmoneyShow) {
260
+ this.percent = 0;
261
+ this.getuuid();
262
+ let param = {
263
+ filepath: res.f_downloadpath,
264
+ uuid: this.uuida,
265
+ user:{
266
+ f_operator: this.$login.f.name,
267
+ f_operatorid: this.$login.f.id,
268
+ f_orgid: this.$login.f.orgid,
269
+ f_orgname: this.$login.f.orgs,
270
+ f_depid: this.$login.f.depids,
271
+ f_depname: this.$login.f.deps
272
+ }
273
+ };
274
+ this.batchmoneyShow=false;
275
+ try{
276
+ await this.$resetpost('rs/logic/batchInsuranceCharge',{data: param},{resolveMsg: null, rejectMsg: null},1000).then((res)=>{
277
+ if(res.data){
278
+ }
279
+ })
280
+ }catch(error){}
281
+ let getparam = {
282
+ uuid: this.uuida
283
+ }
284
+ let self = this;
285
+ this.progressShow=true;
286
+ this.timer = setInterval(function(){
287
+ self.$resetpost('/rs/logic/getBatchOperaPro',{data:getparam},{resolveMsg: null, rejectMsg: null}, 0).then((res)=>{
288
+ if(res.data ){
289
+ if(res.data.speed){
290
+ if(res.data.speed>= 100){
291
+ clearInterval(self.timer);
292
+ if(res.data.speed){
293
+ self.percent = 99;
294
+ }
295
+ setTimeout(()=>{
296
+ self.percent = 100;
297
+ self.progressclose();
298
+ self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum},失败数据请在稽查查询中错误查询进行查看!!`);
299
+ },600);
300
+ }else{
301
+ self.percent = res.data.speed
302
+ }
303
+ }else{
304
+ self.percent=0;
305
+ }
306
+ }
307
+ });
308
+ },3000);
309
+ }
310
+ }
311
+ }
312
+ }
313
+ </script>
314
+ <style>
315
+ .datapanel {
316
+ color: #333;
317
+ background-color: white;
318
+ padding: 10px 20px;
319
+ border-radius: 15px;
320
+ }
321
+ </style>
@@ -18,6 +18,8 @@ export default function () {
18
18
  Vue.component('file-user-device-info', (resolve) => {
19
19
  require(['./UserDeviceInfoTest'], resolve)
20
20
  })
21
+ // 保险收费查询用户列表
22
+ Vue.component('insurance-lists', (resolve) => { require(['./InsuranceList'], resolve) })
21
23
  // 单个表具信息
22
24
  // Vue.component('file-meter-info', (resolve) => { require(['./FilesManage/MeterinfoTest'], resolve) })
23
25
  // 单个表具信息test
package/src/main.js CHANGED
@@ -4,7 +4,7 @@ import App from './App'
4
4
  import system from 'system-clients/src/system'
5
5
  import sale from './sale'
6
6
  // import wenxi from './filiale/rizhao/sale'
7
- import FilialeSale from './filiale/liaoyuan/sale'
7
+ import FilialeSale from './filiale/lixianV3/sale'
8
8
  import address from 'address-client/src/address'
9
9
  import ldap from 'ldap-clients/src/ldap'
10
10
  import VueClipboard from 'vue-clipboard2'
@@ -24,7 +24,7 @@ all()
24
24
  system(false)
25
25
  sale()
26
26
  // wenxi()
27
- FilialeSale()
27
+ // FilialeSale()
28
28
  address()
29
29
  ldap()
30
30
  require('system-clients/src/styles/less/bootstrap.less')