sale-client 3.6.200 → 3.6.201

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/.eslintrc.js CHANGED
@@ -16,6 +16,7 @@ module.exports = {
16
16
  'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
17
17
  // 必须使用全等
18
18
  'eqeqeq': 0,
19
- "import/no-unresolved": ["error", { "caseSensitive": true }]
19
+ "import/no-unresolved": ["error", { "caseSensitive": true }],
20
+ "camelcase": "off"
20
21
  }
21
22
  }
@@ -1,5 +1,5 @@
1
1
  var path = require('path')
2
- const [ serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://127.0.0.1:8080/']
2
+ const [ serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://192.168.50.4:8400/']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
@@ -17,6 +17,10 @@ var devConfig = {
17
17
  children: false // 不输出子模块构建信息
18
18
  },
19
19
  proxy: {
20
+ '/invoice/rs/logic/getInvoice': {
21
+ pathRewrite: {'/invoice/rs/logic/getInvoice': '/m2/925029-0-default/90887834'},
22
+ target: 'http://127.0.0.1:4523'
23
+ },
20
24
  '/rs/file': {
21
25
  target: serverRul
22
26
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.200",
3
+ "version": "3.6.201",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -274,7 +274,7 @@ let otherChargeGen = async function (self, parameter) {
274
274
  } else if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
275
275
  self.eticket_show = true
276
276
  self.row.f_print = self.model.f_print[0]
277
- await self.$refs.eticketbill.openETicket(resid.data, self.row, '其他收费')
277
+ await self.$refs.eticketbill.openETicket(resid.data, self.row, '其他收费', '其他收费', '其他收费', self.model.f_print[0])
278
278
  // self.$CommonService.openEticket(resid.data, '其他收费')
279
279
  // self.$dispatch('success')
280
280
  }
@@ -1,14 +1,14 @@
1
1
  <template>
2
2
  <tab-button v-ref:list>
3
- <!-- <tabs header="计划下发">-->
4
- <!-- <card-down></card-down>-->
5
- <!-- </tabs>-->
3
+ <tabs header="计划下发">
4
+ <card-down></card-down>
5
+ </tabs>
6
6
  <tabs header="卡表抄表">
7
7
  <cards-hand></cards-hand>
8
8
  </tabs>
9
- <!-- <tabs header="抄表审核">-->
10
- <!-- <card-hand-audit></card-hand-audit>-->
11
- <!-- </tabs>-->
9
+ <tabs header="抄表审核">
10
+ <card-hand-audit></card-hand-audit>
11
+ </tabs>
12
12
  </tab-button>
13
13
  </template>
14
14
 
@@ -16,7 +16,8 @@
16
16
  <script>
17
17
  import TabButton from './../comprehen/common/TabButton'
18
18
  import Tabs from './../comprehen/common/Tabs'
19
- export default {
19
+ import CardHandAudit from './cardHandAudit.vue'
20
+ export default {
20
21
  name: 'cardHandManager',
21
22
  title: '卡表抄表管理',
22
23
  data () {
@@ -34,7 +35,7 @@
34
35
  show: [true]
35
36
  }
36
37
  },
37
- components: {Tabs, TabButton},
38
+ components: {CardHandAudit, Tabs, TabButton},
38
39
  ready () {
39
40
  console.log(this.$refs.list)
40
41
  },
@@ -90,41 +90,38 @@
90
90
  <v-select id="f_is_mgq" :value.sync="baseinfo.base.f_is_mgq" v-model="baseinfo.base.f_is_mgq"
91
91
  :options='mgq' placeholder='是否煤改气' style="width: 65%" close-on-select></v-select>
92
92
  </div>
93
- <div class="col-sm-4 form-group">
94
- <label for="f_contract" class="font_normal_body">&ensp;燃气本号</label>
95
- <input type="text" v-model="baseinfo.base.f_book_no" class="input_search" style="width:60%" placeholder="用户证号">
96
- </div>
97
- </div>
98
- <div class="row">
99
93
  <div style="" class="col-sm-4 form-group">
100
94
  <label for="f_rent_name" class="font_normal_body">&ensp;租户姓名</label>
101
95
  <input type="text" v-model="baseinfo.base.f_rent_name" class="input_search" style="width:60%"
102
96
  placeholder="租户姓名">
103
97
  </div>
98
+ </div>
99
+ <div class="row">
104
100
  <div style="" class="col-sm-4 form-group">
105
101
  <label for="f_zuhu_phone" class="font_normal_body">&ensp;租户电话</label>
106
102
  <input type="text" v-model="baseinfo.base.f_zuhu_phone" class="input_search" style="width:60%"
107
103
  placeholder="租户电话">
108
104
  </div>
109
- </div>
110
- <div class="row">
111
105
  <div style="" class="col-sm-8 form-group">
112
106
  <label for="f_zuhu_idnumber" class="font_normal_body">租户身份证</label>
113
107
  <input type="text" v-model="baseinfo.base.f_zuhu_idnumber" class="input_search" style="width:80%"
114
108
  placeholder="租户身份证">
115
109
  </div>
110
+ </div>
111
+ <div class="row">
116
112
  <div style="" class="col-sm-4 form-group">
117
113
  <label for="f_is_mgq" class="font_normal_body ">&ensp;付款类型</label>
118
114
  <v-select id="f_is_mgq" :value.sync="baseinfo.base.f_cost_type" v-model="baseinfo.base.f_cost_type"
119
115
  :options='costtype' placeholder='付款类型' style="width: 65%" close-on-select></v-select>
120
116
  </div>
121
- </div>
122
- <div class="row">
123
117
  <div class="col-sm-8 form-group">
124
118
  <label for="f_contract" class="font_normal_body">&ensp;合同编号</label>
125
119
  <input type="text" v-model="baseinfo.base.f_contract_id" class="input_search" style="width:80%"
126
120
  placeholder="合同编号">
127
121
  </div>
122
+ </div>
123
+ <div class="row">
124
+
128
125
  <!-- <div class="col-sm-4 form-group">-->
129
126
  <!-- <label for="f_user_state" class="font_normal_body">&ensp;房屋类型</label>-->
130
127
  <!-- <input type="text" v-show="false" v-model="baseinfo.base.f_house_type">-->
@@ -375,11 +375,11 @@ let sellgasGen = async function (self) {
375
375
  self.print = true
376
376
  }
377
377
  } else {
378
- if (self.model.f_print[0] === '电子发票') {
378
+ if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
379
379
  self.row.id = res
380
380
  self.eticket_show = true
381
381
  // 应铜川需要卡表显示
382
- await self.$refs.eticketbill.openETicket([res], self.row, '是', self.invoice_is_pax, '卡表收费')
382
+ await self.$refs.eticketbill.openETicket([res], self.row, '是', self.invoice_is_pax, '卡表收费', self.model.f_print[0])
383
383
  // await self.$CommonService.openEticket(res, '售气收费')
384
384
  // self.print = true
385
385
  }
@@ -515,6 +515,7 @@ export default {
515
515
  eticket_msg: false,
516
516
  eticket_show: false,
517
517
  invoice_is_pax: '不征税',
518
+ printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
518
519
  is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
519
520
  model: {
520
521
  f_purchase: 0,
@@ -663,7 +664,7 @@ export default {
663
664
  // 收款回车时, 如果确认按钮是灰色不进行任何操作
664
665
  if (flag) return
665
666
  console.log(this.model.f_print[0])
666
- if (this.model.f_print[0] === '电子发票') {
667
+ if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
667
668
  if (!this.row.f_taxpayer_id) {
668
669
  this.row.f_taxpayer_id = this.row.f_idnumber
669
670
  }
@@ -93,18 +93,18 @@ export default {
93
93
  console.log('查看传进来的参数:', obj)
94
94
  this.warningInfo = await this.$resetpost('rs/logic/getWarningMsg',
95
95
  {data: {
96
- f_userfiles_id: obj.f_userfiles_id,
97
- f_userinfo_code: obj.f_userinfo_code,
98
- f_userinfo_id: obj.f_userinfo_id,
99
- f_meternumber: obj.f_meternumber,
100
- f_meter_type: obj.f_meter_type,
101
- f_hascard: obj.f_hascard
102
- }
96
+ f_userfiles_id: obj.f_userfiles_id,
97
+ f_userinfo_code: obj.f_userinfo_code,
98
+ f_userinfo_id: obj.f_userinfo_id,
99
+ f_meternumber: obj.f_meternumber,
100
+ f_meter_type: obj.f_meter_type,
101
+ f_hascard: obj.f_hascard
102
+ }
103
103
  }
104
104
  , {resolveMsg: '', rejectMsg: '获取提示失败'})
105
- console.log("获取到提示了!!!!",this.warningInfo)
106
- if ((!this.warningInfo.data.state.info || !this.warningInfo.data.state.dibao || !this.warningInfo.data.state.taxpayerId ||
107
- !this.warningInfo.data.state.ins|| !this.warningInfo.data.state.blacklist ||
105
+ if (this.warningInfo.data.warningNum > 0 && (!this.warningInfo.data.state.info ||
106
+ !this.warningInfo.data.state.dibao || !this.warningInfo.data.state.taxpayerId ||
107
+ !this.warningInfo.data.state.ins || !this.warningInfo.data.state.blacklist ||
108
108
  !this.warningInfo.data.state.invoice || !this.warningInfo.data.state.isExtendMeterInfo || !this.warningInfo.data.state.ruhu) && obj.f_user_state !== '预备') {
109
109
  this.modalrow = obj
110
110
  this.showModal = true
@@ -8,7 +8,7 @@
8
8
  <label class=" font_normal_body" title="参数名称:付款方式">收款方式</label>
9
9
  <input type="text" v-show="false" v-model="$refs.payment.selectedItems" v-validate:payment='{required: true }'>
10
10
  <v-select v-model="f_payment"
11
- placeholder='请选择1'
11
+ placeholder='请选择'
12
12
  :value.sync="model.f_payment"
13
13
  :options='paytype' clear-button v-ref:payment></v-select>
14
14
  </div>
@@ -386,9 +386,9 @@
386
386
  }
387
387
  } else if (self.config.printType === '国税发票') {
388
388
  // TODO
389
- } else if (self.model.f_print[0] === '电子发票') {
389
+ } else if (self.printInvoiceType.indexOf(self.model.f_print[0]) !== -1) {
390
390
  self.eticket_show = true
391
- await self.$refs.eticketbill.openETicket([res.data.id], self.row, self.invoice_show_gas, self.invoice_is_pax, '物联网收费')
391
+ await self.$refs.eticketbill.openETicket([res.data.id], self.row, self.invoice_show_gas, self.invoice_is_pax, '物联网收费', self.model.f_print[0])
392
392
  // self.$CommonService.openEticket(res.data.id, '其他收费')
393
393
  // self.$dispatch('success')
394
394
  }
@@ -487,6 +487,7 @@
487
487
  eticket_msg: false,
488
488
  eticket_show: false,
489
489
  invoice_is_pax: '不征税',
490
+ printInvoiceType: this.$appdata.getSingleValue('电子票打印类型') ? this.$appdata.getSingleValue('电子票打印类型') : '电子发票',
490
491
  is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
491
492
  model: {
492
493
  f_purchase: 0,
@@ -626,7 +627,7 @@
626
627
  this.model.f_sys_balance = curSysBalance
627
628
  }
628
629
 
629
- if (this.model.f_print[0] === '电子发票') {
630
+ if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
630
631
  if (!this.row.f_taxpayer_id) {
631
632
  this.row.f_taxpayer_id = this.row.f_idnumber
632
633
  }
@@ -54,14 +54,17 @@ export default {
54
54
  }
55
55
  await this.$resetpost('rs/entity/t_eticket', model, {resolveMsg: null, rejectMsg: '保存发票记录失败'})
56
56
  },
57
- async openETicket (sellId, row, show_gas, is_pax, type) {
57
+ async openETicket (sellId, row, show_gas, is_pax, type, invoice_kind = '电子发票') {
58
58
  try {
59
59
  let model = {
60
- id: sellId,
61
- f_charge_type: type,
60
+ id: sellId[0],
61
+ charge_item: type,
62
+ invoice_type: 0,
63
+ invoice_kind,
62
64
  f_dept_id: this.$login.f.depids,
63
65
  f_operator: this.$login.f.name,
64
66
  f_orgid: this.$login.f.orgid,
67
+ org_id: this.$login.f.orgid,
65
68
  f_orgname: this.$login.f.orgs,
66
69
  f_depname: this.$login.f.deps,
67
70
  f_operatorid: this.$login.f.id,
@@ -72,12 +75,50 @@ export default {
72
75
  f_mail_push: row.f_email,
73
76
  f_buy_openbank: row.f_paper_account,
74
77
  invoice_show_gas: show_gas === '是',
75
- is_pax: is_pax === '征税'
78
+ is_pax: is_pax === '征税',
79
+ isTax: is_pax === '征税' ? 1 : 0
76
80
  }
77
- console.log('组织开票数据并保存', model)
78
81
  // TODO 组织开票数据并保存
79
- let ticket_id = await this.$resetpost('rs/logic/TCcombineData', model, {resolveMsg: null, rejectMsg: '保存开票信息失败'})
80
- return this.openEticketGen(ticket_id.data)
82
+ const res = await this.$resetpost('/invoice/rs/logic/getInvoice', model, {resolveMsg: null, rejectMsg: '开票请求失败'})
83
+ if (res.data.code == '0000') {
84
+ this.return_msg = '发票开具成功,请稍后到发票管理页面查看或打印'
85
+ } else {
86
+ this.return_msg = '发票开具失败,请稍后到发票管理页面补打或重开'
87
+ }
88
+ } catch (error) {
89
+ this.$showAlert(`电子发票开票失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
90
+ }
91
+ },
92
+ async rushRedInvoice (sellId, eticket_id, row, type, invoice_kind = '电子发票') {
93
+ try {
94
+ let model = {
95
+ id: sellId[0],
96
+ eticket_id,
97
+ charge_item: type,
98
+ invoice_type: 1,
99
+ invoice_kind,
100
+ f_dept_id: this.$login.f.depids,
101
+ f_operator: this.$login.f.name,
102
+ f_orgid: this.$login.f.orgid,
103
+ org_id: this.$login.f.orgid,
104
+ f_orgname: this.$login.f.orgs,
105
+ f_depname: this.$login.f.deps,
106
+ f_operatorid: this.$login.f.id,
107
+ f_filialeids: this.$login.f.f_orgids,
108
+ f_buy_name: row.f_paper_name,
109
+ f_pay_id: row.f_taxpayer_id,
110
+ f_buy_address: row.f_address_phone,
111
+ f_mail_push: row.f_email,
112
+ f_buy_openbank: row.f_paper_account,
113
+ isTax: 1
114
+ }
115
+ // TODO 组织开票数据并保存
116
+ const res = await this.$resetpost('/invoice/rs/logic/getInvoice', model, {resolveMsg: null, rejectMsg: '开票请求失败'})
117
+ if (res.data.code == '0000') {
118
+ this.return_msg = '发票开具成功,请稍后到发票管理页面查看或打印'
119
+ } else {
120
+ this.return_msg = '发票开具失败,请稍后到发票管理页面补打或重开'
121
+ }
81
122
  } catch (error) {
82
123
  this.$showAlert(`电子发票开票失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
83
124
  }
@@ -177,7 +218,7 @@ export default {
177
218
  },
178
219
  /** 冲红
179
220
  * */
180
- async rushRedInvoice (ticket_id) {
221
+ async rushRedInvoice_1 (ticket_id) {
181
222
  try {
182
223
  // 否则正常打票
183
224
  let time = 0
@@ -144,9 +144,9 @@
144
144
  <button class="btn btn-link" v-if="row.f_bill_state==='开票失败'"
145
145
  @click="$parent.$parent.$parent.kp(row)">重新开票
146
146
  </button>
147
- <button class="btn btn-link" v-if="['查询失败','等待查询'].includes(row.f_bill_state)"
148
- @click="$parent.$parent.$parent.fp_search(row)">电票查询
149
- </button>
147
+ <!-- <button class="btn btn-link" v-if="['查询失败','等待查询'].includes(row.f_bill_state)"-->
148
+ <!-- @click="$parent.$parent.$parent.fp_search(row)">电票查询-->
149
+ <!-- </button>-->
150
150
  </template>
151
151
  </th>
152
152
  </tr>
@@ -215,13 +215,9 @@ export default {
215
215
  this.model.search(args.condition, args.model)
216
216
  },
217
217
  async confirm () {
218
- // 修改发票状态
219
- let res = await this.$resetpost('rs/logic/correctEticket', {id: this.row.id, bz: this.bz}, {
220
- resolveMsg: null,
221
- rejectMsg: '保存开票信息失败'
222
- })
218
+ // row
223
219
  this.eticket_show = true
224
- await this.$refs.eticketbill.rushRedInvoice(res.data)
220
+ await this.$refs.eticketbill.rushRedInvoice(this.row.sell_id, this.row.id, this.row, this.row.f_charge_type, this.row.f_invoice_type)
225
221
  },
226
222
  async fp_search (row) {
227
223
  this.eticket_show = true
@@ -242,7 +238,7 @@ export default {
242
238
  },
243
239
  kp (row) {
244
240
  this.eticket_show = true
245
- this.$refs.eticketbill.openEticketGen(row.id)
241
+ this.$refs.eticketbill.openETicket(row.sell_id, row, '否', '征税', row.f_charge_type, row.f_invoice_type)
246
242
  },
247
243
  eticket_toggle () {
248
244
  this.eticket_show = false
package/src/main.js CHANGED
@@ -3,7 +3,7 @@ import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
5
  import sale from './sale'
6
- import FilialeSale from './filiale/wenxi/sale'
6
+ import FilialeSale from './filiale/tongchuan/sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
9
9
  import VueClipboard from 'vue-clipboard2'