sale-client 3.6.60 → 3.6.62

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.
@@ -1,5 +1,5 @@
1
1
  var path = require('path')
2
- const [localUrl, serverRul] = ['https://qnjtkf.cn:8400/', 'https://qnjtkf.cn:8400/']
2
+ const [localUrl, serverRul] = [ 'http://127.0.0.1:8080/', 'http://140.249.18.101:8400/']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.60",
3
+ "version": "3.6.62",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -510,6 +510,7 @@
510
510
  showupload: true, // 显示上传
511
511
  hasPrint: true, // 默认打票
512
512
  hasBillManage: false, // 默认不启用发票管理
513
+ taxforidnumber: true, // 身份证号同步到纳税人识别号
513
514
  billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
514
515
  printType: '普通收据', // 收据/电子票/专用发票/国税发票
515
516
  payment: '',
@@ -687,7 +688,7 @@
687
688
  if (flag) return
688
689
  console.log(this.model.f_print[0])
689
690
  if (this.model.f_print[0] === '电子发票') {
690
- if (!this.row.f_taxpayer_id) {
691
+ if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
691
692
  this.row.f_taxpayer_id = this.row.f_idnumber
692
693
  }
693
694
  if (!this.row.f_paper_name) {
@@ -439,6 +439,7 @@
439
439
  priceCalculation: false, // 划气量控制
440
440
  showupload: true, // 默认显示附件上传组件
441
441
  hasPrint: false, // 默认打票
442
+ taxforidnumber: true, // 身份证号同步到纳税人识别号
442
443
  floor: true, // 是否取整收费
443
444
  hasBillManage: false, // 默认不启用发票管理
444
445
  billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
@@ -592,7 +593,7 @@
592
593
  }
593
594
 
594
595
  if (this.model.f_print[0] === '电子发票') {
595
- if (!this.row.f_taxpayer_id) {
596
+ if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
596
597
  this.row.f_taxpayer_id = this.row.f_idnumber
597
598
  }
598
599
  if (!this.row.f_paper_name) {
@@ -299,6 +299,7 @@ let asyncMachineMeterCenter = async function (self) {
299
299
  hasPrint: true, // 默认打票
300
300
  hasBillManage: false, // 默认不启用发票管理
301
301
  hasfindaReail: true, // 默认开启找零功能
302
+ taxforidnumber: true, // 身份证号同步到纳税人识别号
302
303
  billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
303
304
  printType: '普通收据', // 收据/电子票/专用发票/国税发票
304
305
  payment: '现金缴费'
@@ -376,7 +377,7 @@ let asyncMachineMeterCenter = async function (self) {
376
377
  // 校验发票信息
377
378
  checkInvoiceMsg () {
378
379
  if (this.data.f_print[0] === '电子发票') {
379
- if (!this.row.f_taxpayer_id) {
380
+ if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
380
381
  this.row.f_taxpayer_id = this.row.f_idnumber
381
382
  }
382
383
  if (!this.row.f_paper_name) {
@@ -216,9 +216,9 @@
216
216
  }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
217
217
  this.row = row.data[0]
218
218
  this.invoice_show_gas = this.row.f_collection_type = '按气量' ? '是' : '否'
219
- if (!this.row.f_taxpayer_id) {
220
- this.row.f_taxpayer_id = this.row.f_idnumber
221
- }
219
+ // if (!this.row.f_taxpayer_id) {
220
+ // this.row.f_taxpayer_id = this.row.f_idnumber
221
+ // }
222
222
  if (!this.row.f_paper_name) {
223
223
  this.row.f_paper_name = this.row.f_user_name
224
224
  }
@@ -160,6 +160,8 @@ let asyncReadyGen = async function (self) {
160
160
  self.$refs.paged.$refs.cri.model.f_start_date = Util.toStandardDateString().substr(0, 5) + '01-01'
161
161
  self.$refs.paged.$refs.cri.model.f_end_date = Util.toStandardDateString()
162
162
  await self.search()
163
+ await self.$getConfig(self, 'CardMeterCenter')
164
+
163
165
  }
164
166
  export default {
165
167
  title: '发票管理',
@@ -179,6 +181,9 @@ export default {
179
181
  dep: [],
180
182
  user: []
181
183
  },
184
+ config: {
185
+ taxforidnumber: true
186
+ },
182
187
  eticket_show: false,
183
188
  selectAll: false,
184
189
  selecteds: [],
@@ -225,7 +230,7 @@ export default {
225
230
  }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
226
231
  this.row = row.data[0]
227
232
  this.invoice_show_gas = this.row.f_collection_type == '按气量' ? '是' : '否'
228
- if (!this.row.f_taxpayer_id) {
233
+ if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
229
234
  this.row.f_taxpayer_id = this.row.f_idnumber
230
235
  }
231
236
  if (!this.row.f_paper_name) {
@@ -160,6 +160,7 @@ let asyncReadyGen = async function (self) {
160
160
  self.$refs.paged.$refs.cri.model.f_start_date = Util.toStandardDateString().substr(0, 5) + '01-01'
161
161
  self.$refs.paged.$refs.cri.model.f_end_date = Util.toStandardDateString()
162
162
  await self.search()
163
+ await self.$getConfig(self, 'MachineMeterCenter')
163
164
  }
164
165
  export default {
165
166
  title: '发票管理',
@@ -179,6 +180,9 @@ export default {
179
180
  dep: [],
180
181
  user: []
181
182
  },
183
+ config:{
184
+ taxforidnumber: true
185
+ },
182
186
  eticket_show: false,
183
187
  selectAll: false,
184
188
  selecteds: [],
@@ -226,7 +230,7 @@ export default {
226
230
  }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
227
231
  this.row = row.data[0]
228
232
  this.invoice_show_gas = this.row.f_collection_type == '按气量' ? '是' : '否'
229
- if (!this.row.f_taxpayer_id) {
233
+ if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
230
234
  this.row.f_taxpayer_id = this.row.f_idnumber
231
235
  }
232
236
  if (!this.row.f_paper_name) {
@@ -157,6 +157,7 @@
157
157
  import {HttpResetClass, PagedList} from 'vue-client'
158
158
  import * as Util from '../../../../../Util'
159
159
  let asyncReadyGen = async function (self) {
160
+ await self.$getConfig(self, 'IOTMeterCenter')
160
161
  self.$refs.paged.$refs.cri.model.f_start_date = Util.toStandardDateString().substr(0, 5) + '01-01'
161
162
  self.$refs.paged.$refs.cri.model.f_end_date = Util.toStandardDateString()
162
163
  await self.search()
@@ -174,6 +175,9 @@ export default {
174
175
  footer: [],
175
176
  invoice_is_pax: '征税',
176
177
  is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
178
+ config: {
179
+ taxforidnumber: true
180
+ },
177
181
  initres: {
178
182
  org: [this.$login.f.orgid],
179
183
  dep: [],
@@ -214,7 +218,7 @@ export default {
214
218
  //
215
219
  // }
216
220
  // })
217
- return this.$showAlert('已结算的记录不能再次结算开票','warning',3000)
221
+ return this.$showAlert('已结算的记录不能再次结算开票', 'warning', 3000)
218
222
  }
219
223
  let HttpReset = new HttpResetClass()
220
224
  let row = await HttpReset.load('POST', 'rs/sql/sale_getUser', {
@@ -225,7 +229,7 @@ export default {
225
229
  }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
226
230
  this.row = row.data[0]
227
231
  this.invoice_show_gas = this.row.f_collection_type == '按气量' ? '是' : '否'
228
- if (!this.row.f_taxpayer_id) {
232
+ if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
229
233
  this.row.f_taxpayer_id = this.row.f_idnumber
230
234
  }
231
235
  if (!this.row.f_paper_name) {
@@ -234,7 +238,7 @@ export default {
234
238
  if (!this.row.f_address_phone) {
235
239
  this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
236
240
  }
237
- if(!this.row.f_email){
241
+ if (!this.row.f_email) {
238
242
  this.row.f_email = this.row.f_email
239
243
  }
240
244
  this.eticket_msg = true
@@ -242,7 +246,7 @@ export default {
242
246
  confirm () {
243
247
  this.eticket_msg = false
244
248
  this.eticket_show = true
245
- this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, this.invoice_show_gas,this.invoice_is_pax, '结算收费')
249
+ this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, this.invoice_show_gas, this.invoice_is_pax, '结算收费')
246
250
  },
247
251
  selfSearch (args) {
248
252
  this.selecteds = []
@@ -14,8 +14,7 @@
14
14
  v-model="model.startDate"
15
15
  :value.sync="model.startDate"
16
16
  :format="'yyyy-MM-dd HH:mm:ss'"
17
- :show-reset-button="true"
18
- condition="f_input_date >= '{}'">
17
+ :show-reset-button="true">
19
18
  </datepicker>
20
19
  </div>
21
20
  <div class="col-sm-2 form-group">
@@ -24,8 +23,7 @@
24
23
  v-model="model.endDate"
25
24
  :value.sync="model.endDate"
26
25
  :format="'yyyy-MM-dd HH:mm:ss'"
27
- :show-reset-button="true"
28
- condition="f_input_date <= '{}'">
26
+ :show-reset-button="true">
29
27
  </datepicker>
30
28
  </div>
31
29
  <div class="col-sm-2 form-group">
@@ -71,13 +69,16 @@
71
69
  <nobr>小区名称</nobr>
72
70
  </th>
73
71
  <th>
74
- <nobr>抄表数</nobr>
72
+ <nobr>应抄户数</nobr>
75
73
  </th>
76
74
  <th>
77
- <nobr>实抄表数</nobr>
75
+ <nobr>未抄户数</nobr>
78
76
  </th>
79
77
  <th>
80
- <nobr>档案户数</nobr>
78
+ <nobr>已抄无用量</nobr>
79
+ </th>
80
+ <th>
81
+ <nobr>实抄户数</nobr>
81
82
  </th>
82
83
  <th>
83
84
  <nobr>用气量</nobr>
@@ -95,13 +96,19 @@
95
96
  <nobr>{{row.f_residential_area}}</nobr>
96
97
  </td>
97
98
  <td style="text-align: center;">
98
- <nobr>{{row.handplannum}}</nobr>
99
+ <nobr>{{row.f_user_number}}</nobr>
100
+ </td>
101
+ <td style="text-align: center;">
102
+ <nobr>{{row.f_no_hand}}</nobr>
99
103
  </td>
100
104
  <td style="text-align: center;">
101
- <nobr>{{row.ishandplan}}</nobr>
105
+ <nobr>{{row.f_no_hand}}</nobr>
102
106
  </td>
103
107
  <td style="text-align: center;">
104
- <nobr>{{row.peoplenum}}</nobr>
108
+ <nobr>{{row.f_out_hand}}</nobr>
109
+ </td>
110
+ <td style="text-align: center;">
111
+ <nobr>{{row.f_hand_num}}</nobr>
105
112
  </td>
106
113
  <td style="text-align: center;">
107
114
  <nobr>{{row.f_oughtamount}}</nobr>
@@ -158,9 +165,9 @@ export default {
158
165
  other: [],
159
166
  footer: [],
160
167
  data: {},
161
- model: new PagedList('rs/sql/salehandplanRate', 20, {}, {
162
- f_oughtamount: 0,
163
- f_oughtfee: 0,
168
+ model: new PagedList('rs/sql/salehandplanRate', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}, {
169
+ f_oughtamount: 0,
170
+ f_oughtfee: 0
164
171
  }),
165
172
  initres: {
166
173
  org: [this.$login.f.orgid],
@@ -181,13 +188,14 @@ export default {
181
188
  defaultPrint: [],
182
189
  excelHeaders: {
183
190
  'f_residential_area': '小区名称',
184
- 'handplannum': '抄表数',
185
- 'ishandplan': '实抄表数',
186
- 'peoplenum': '档案户数',
191
+ 'f_user_number': '应抄户数',
192
+ 'f_no_hand': '未抄户数',
193
+ 'f_out_hand': '已抄无用量',
194
+ 'f_hand_num': '实抄户数',
187
195
  'f_oughtamount': '用气量',
188
196
  'f_oughtfee': '用气金额',
189
- 'handplansate1':'抄表率'
190
- }
197
+ 'handplansate1': '抄表率'
198
+ }
191
199
  },
192
200
  inputtores: [{label: '全部', value: ''}], // 抄表员
193
201
  condition: ' 1 = 1'
@@ -543,9 +543,9 @@
543
543
  async checkingOrder () {
544
544
  console.log('看看业务单号', this.model.f_serial_number, this.row)
545
545
  let http = new HttpResetClass()
546
- let temp = await http.load('post', 'rs/sql/querySingleTable', {data: {items: 'f_serial_number', tablename: 't_sellinggas', condition: ` 1=1 and f_serial_number='${this.model.f_serial_number}'`}}, {resolveMsg: null, rejectMsg: null})
546
+ let temp = await http.load('post', 'rs/logic/serialnumberVerify', {data: {f_serial_number: this.model.f_serial_number}}, {resolveMsg: null, rejectMsg: null})
547
547
  console.log('看看返回值', temp)
548
- if (temp.data.length != 0) {
548
+ if (temp.data) {
549
549
  this.model.f_serial_number = ''
550
550
  this.prompts = '业务单号重复请重新输入'
551
551
  } else {
@@ -348,9 +348,9 @@ let asyncMachineMeterCenter = async function (self) {
348
348
  async checkingOrder () {
349
349
  console.log('看看业务单号', this.data.f_serial_number, this.data)
350
350
  let http = new HttpResetClass()
351
- let temp = await http.load('post', 'rs/sql/querySingleTable', {data: {items: 'f_serial_number', tablename: 't_sellinggas', condition: ` 1=1 and f_serial_number='${this.data.f_serial_number}'`}}, {resolveMsg: null, rejectMsg: null})
351
+ let temp = await http.load('post', 'rs/logic/serialnumberVerify', {data: {f_serial_number: this.data.f_serial_number}}, {resolveMsg: null, rejectMsg: null})
352
352
  console.log('看看返回值', temp)
353
- if (temp.data.length != 0) {
353
+ if (temp.data) {
354
354
  this.data.f_serial_number = ''
355
355
  this.prompts = '业务单号重复请重新输入'
356
356
  } else {
@@ -305,10 +305,9 @@
305
305
  if (this.model.f_serial_number) {
306
306
  console.log('看看业务单号', this.model.f_serial_number, this.row)
307
307
  let http = new HttpResetClass()
308
- let temp = await http.load('post', 'rs/sql/querySingleTable', {data: {items: 'f_serial_number', tablename: 't_othercharge', condition: ` 1=1 and f_serial_number='${this.model.f_serial_number}'`}}, {resolveMsg: null, rejectMsg: null})
308
+ let temp = await http.load('post', 'rs/logic/serialnumberVerify', {data: {f_serial_number: this.model.f_serial_number}}, {resolveMsg: null, rejectMsg: null})
309
309
  console.log('看看返回值', temp)
310
- debugger
311
- if (temp.data.length != 0) {
310
+ if (temp.data) {
312
311
  this.model.f_serial_number = ''
313
312
  this.prompts = '业务单号重复请重新输入'
314
313
  } else {
@@ -293,9 +293,9 @@ export default {
293
293
  async checkingOrder () {
294
294
  console.log('看看业务单号', this.model.f_serial_number, this.row)
295
295
  let http = new HttpResetClass()
296
- let temp = await http.load('post', 'rs/sql/querySingleTable', {data: {items: 'f_serial_number', tablename: 't_sellinggas', condition: ` 1=1 and f_serial_number='${this.model.f_serial_number}'`}}, {resolveMsg: null, rejectMsg: null})
296
+ let temp = await http.load('post', 'rs/logic/serialnumberVerify', {data: {f_serial_number: this.model.f_serial_number}}, {resolveMsg: null, rejectMsg: null})
297
297
  console.log('看看返回值', temp)
298
- if (temp.data.length != 0) {
298
+ if (temp.data) {
299
299
  this.model.f_serial_number = ''
300
300
  this.prompts = '业务单号重复请重新输入'
301
301
  } else {
@@ -239,9 +239,9 @@
239
239
  async checkingOrder () {
240
240
  console.log('看看业务单号', this.model.f_serial_number, this.row)
241
241
  let http = new HttpResetClass()
242
- let temp = await http.load('post', 'rs/sql/querySingleTable', {data: {items: 'f_serial_number', tablename: 't_transfer', condition: ` 1=1 and f_serial_number='${this.model.f_serial_number}'`}}, {resolveMsg: null, rejectMsg: null})
242
+ let temp = await http.load('post', 'rs/logic/serialnumberVerify', {data: {f_serial_number: this.model.f_serial_number}}, {resolveMsg: null, rejectMsg: null})
243
243
  console.log('看看返回值', temp)
244
- if (temp.data.length != 0) {
244
+ if (temp.data) {
245
245
  this.model.f_serial_number = ''
246
246
  this.prompts = '业务单号重复请重新输入'
247
247
  } else {
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/qianneng/sale'
6
+ import FilialeSale from './filiale/haile/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'