sale-client 3.6.221 → 3.6.223

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": "3.6.221",
3
+ "version": "3.6.223",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -306,9 +306,7 @@ export default {
306
306
  console.log('表具信息', this.devicesinfo)
307
307
  },
308
308
  expireDate (index) {
309
- if (this.devicesinfo[index].f_make_date === '' || this.devicesinfo[index].f_make_date === undefined || this.devicesinfo[index].f_service_life === 0 || this.devicesinfo[index].f_service_life === undefined) {
310
-
311
- } else {
309
+ if (this.devicesinfo[index].f_make_date && this.devicesinfo[index].f_service_life) {
312
310
  var b = new Date(this.devicesinfo[index].f_make_date)
313
311
  var year = (b.getFullYear() - 0) + (this.devicesinfo[index].f_service_life - 0)
314
312
  var month = (b.getMonth() - 0) + 1
@@ -322,9 +320,7 @@ export default {
322
320
  }
323
321
  },
324
322
  ljgexpireDate (index) {
325
- if (this.devicesinfo[index].f_pipeinstall_date === '' || this.devicesinfo[index].f_pipeinstall_date === undefined || this.devicesinfo[index].f_service_liferg === 0 || this.devicesinfo[index].f_service_liferg === undefined) {
326
-
327
- } else {
323
+ if (this.devicesinfo[index].f_pipeinstall_date && this.devicesinfo[index].f_service_liferg) {
328
324
  var b = new Date(this.devicesinfo[index].f_pipeinstall_date)
329
325
  var year = (b.getFullYear() - 0) + (this.devicesinfo[index].f_service_liferg - 0)
330
326
  var month = (b.getMonth() - 0) + 1
@@ -33,6 +33,11 @@
33
33
  <input class="input_search" placeholder="银行名称" style="width:70%" type="text" v-el:paperaccount
34
34
  v-model="baseinfo.base.f_paper_account">
35
35
  </div>
36
+ <div class="col-sm-4 form-group">
37
+ <label class="font_normal_body" for="f_contact_user">联系人名</label>
38
+ <input class="input_search" placeholder="联系人姓名" style="width:60%" type="text" v-el:contactuser
39
+ v-model="baseinfo.base.f_contact_user" >
40
+ </div>
36
41
  </div>
37
42
  <div class="row">
38
43
  <div class="col-sm-8 form-group">
@@ -163,12 +163,7 @@
163
163
  <input class="input_search" style="width:60%" type="text" v-validate:f_serial_number='{required: true }'
164
164
  v-model="model.f_serial_number" placeholder="业务单号">
165
165
  </div>
166
- <div class="col-sm-4" v-if="!mjshow && model.f_payment == '银行转账'" >
167
- <label for="f_serial_number" class=" font_normal_body">银行流水</label>
168
- <input class="input_search" style="width:60%" type="text"
169
- v-model="model.f_serial_number" placeholder="银行流水">
170
- </div>
171
- <div class="col-sm-4" v-if="mjshow && model.f_payment == '银行转账'" :class="[$v.f_serial_number.required || $v.f_serial_number.dctest ? 'has-error' : 'has-success']">
166
+ <div class="col-sm-4" v-if="model.f_payment == '银行转账'" :class="[$v.f_serial_number.required || $v.f_serial_number.dctest ? 'has-error' : 'has-success']">
172
167
  <label for="f_serial_number" class=" font_normal_body">银行流水</label>
173
168
  <input class="input_search" style="width:60%" type="text" v-validate:f_serial_number='{required: true }'
174
169
  v-model="model.f_serial_number" placeholder="银行流水">
@@ -92,7 +92,11 @@ export default {
92
92
  resolveMsg: null,
93
93
  rejectMsg: '发票打印失败!!'
94
94
  })
95
- this.return_msg = '开票成功,请前往发票管理页面查看'
95
+ if (result.data.code === '9999') {
96
+ this.return_msg = result.data.msg
97
+ } else {
98
+ this.return_msg = '开票成功,请前往发票管理页面查看'
99
+ }
96
100
  } catch (error) {
97
101
  this.return_msg = '开票失败请前往发票管理页面重试'
98
102
  this.$showAlert('电子发票打印出现异常,请联系管理员!!!', 'warning', 5000)
@@ -460,7 +460,10 @@ import {HttpResetClass, PagedList} from 'vue-client'
460
460
  cardCentalData: '',
461
461
  getfield: {
462
462
  'f_userinfo_code': '户编号',
463
- 'f_user_name': '基本信息',
463
+ 'f_user_name': '用户名称',
464
+ 'f_gasproperties': '用气性质',
465
+ 'f_user_phone': '用户电话',
466
+ 'f_address': '用户地址',
464
467
  'f_meternumber': '表号',
465
468
  'f_inputtor': '抄表员',
466
469
  'f_total_fee': '总购金额',
@@ -487,6 +490,11 @@ import {HttpResetClass, PagedList} from 'vue-client'
487
490
  this.$refs.paged.$refs.criteria.model.startDate = Util.toStartAndEndDateString()[0]
488
491
  this.$refs.paged.$refs.criteria.model.endDate = Util.toStartAndEndDateString()[1]
489
492
  loadParamGem(this)
493
+ this.$nextTick(() => {
494
+ if (this.shengyu == 'false') {
495
+ this.getfield.f_shengyu_gas = '剩余气量'
496
+ }
497
+ })
490
498
  },
491
499
  methods: {
492
500
  hidden () {
@@ -149,6 +149,9 @@
149
149
  <th>
150
150
  <nobr>发票类型</nobr>
151
151
  </th>
152
+ <th>
153
+ <nobr>开票描述</nobr>
154
+ </th>
152
155
  <th>
153
156
  <nobr>收费时间</nobr>
154
157
  </th>
@@ -184,6 +187,7 @@
184
187
  <th style="text-align:center">{{ row.f_bill_number }}</th>
185
188
  <th style="text-align:center">{{ row.f_bill_state }}</th>
186
189
  <th style="text-align:center">{{ row.f_charge_type }}</th>
190
+ <th style="text-align:center">{{ row.f_sign_result }}</th>
187
191
  <th style="text-align:center">{{ row.sell_operate_date }}</th>
188
192
  <th style="text-align:center">{{ row.f_operate_date }}</th>
189
193
  <th style="text-align:center">{{ row.f_operator }}</th>
@@ -277,7 +277,7 @@
277
277
  <th style="text-align: center;">{{row.f_stair_price2}}</th>
278
278
  <th style="text-align: center;">{{row.f_stair_price3}}</th>
279
279
  <th style="text-align: center;">
280
- <div v-if="!row.f_change_price1">
280
+ <div v-if="!row.f_surplus_fee">
281
281
  <button type="button" name="button" class="btn btn-link"
282
282
  @click.stop="$parent.$parent.$parent.calculation(row) && row.states === 1">调价补差
283
283
  </button>
@@ -313,7 +313,7 @@
313
313
  <th style="text-align: center;">{{row.f_stair_gas3}}</th>
314
314
  <th style="text-align: center;">{{row.f_operate_date}}</th>
315
315
  <th style="text-align: center;">
316
- <button type="button" name="button" class="btn btn-link" v-if="row.f_change_price1"
316
+ <button type="button" name="button" class="btn btn-link" v-if="row.f_surplus_fee"
317
317
  @click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
318
318
  </button>
319
319
  <!-- <button type="button" name="button" class="btn btn-link" v-if="!row.f_new_price"-->
@@ -199,7 +199,7 @@
199
199
  <th style="text-align: center;">{{row.f_stair_price2}}</th>
200
200
  <th style="text-align: center;">{{row.f_stair_price3}}</th>
201
201
  <th style="text-align: center;">
202
- <div v-if="!row.f_change_price1">
202
+ <div v-if="!row.f_surplus_fee">
203
203
  <button type="button" name="button" class="btn btn-link"
204
204
  @click.stop="$parent.$parent.$parent.calculation(row) && row.states === 1">调价补差
205
205
  </button>
@@ -244,7 +244,7 @@
244
244
  <th style="text-align: center;">{{row.f_surplus_fee}}</th>
245
245
  <th style="text-align: center;">{{row.f_source}}</th>
246
246
  <th style="text-align: center;">
247
- <button type="button" name="button" class="btn btn-link" v-if="row.f_change_price1"
247
+ <button type="button" name="button" class="btn btn-link" v-if="row.f_surplus_fee"
248
248
  @click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
249
249
  </button>
250
250
  </th>
@@ -201,7 +201,7 @@
201
201
  <th style="text-align: center;">{{row.f_stair_price2}}</th>
202
202
  <th style="text-align: center;">{{row.f_stair_price3}}</th>
203
203
  <th style="text-align: center;">
204
- <div v-if="!row.f_change_price1">
204
+ <div v-if="!row.f_surplus_fee">
205
205
  <button type="button" name="button" class="btn btn-link"
206
206
  @click.stop="$parent.$parent.$parent.calculation(row) && row.states === 1">调价补差
207
207
  </button>
@@ -248,7 +248,7 @@
248
248
  <th style="text-align: center;">{{row.f_surplus_fee}}</th>
249
249
  <th style="text-align: center;">{{row.f_source}}</th>
250
250
  <th style="text-align: center;">
251
- <button type="button" name="button" class="btn btn-link" v-if="row.f_change_price1"
251
+ <button type="button" name="button" class="btn btn-link" v-if="row.f_surplus_fee"
252
252
  @click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
253
253
  </button>
254
254
  </th>
@@ -495,7 +495,15 @@
495
495
  // if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
496
496
  // args.condition += `and f_filialeids = '${this.$login.f.f_orgids}'`
497
497
  // }
498
- args.condition += `and r.f_orgid = '${this.$login.f.orgid}'`
498
+ if (this.f_orgid) {
499
+ args.condition += `and u.f_orgid in ${this.f_orgid}`
500
+ } else {
501
+ args.condition += `and r.f_orgid = '${this.$login.f.orgid}'`
502
+ }
503
+ // args.condition += `and r.f_orgid = '${this.$login.f.orgid}'`
504
+ if (this.authArr.includes('操作记录查询公司限定')) {
505
+ args.condition += `and r.f_orgid = '${this.$login.f.orgid}'`
506
+ }
499
507
  if (this.authArr.includes('操作记录查询限定')) {
500
508
  args.condition += ` and r.f_operatorid = '${this.$login.f.id}'`
501
509
  }
@@ -277,7 +277,7 @@
277
277
  <th style="text-align: center;">{{row.f_stair_price2}}</th>
278
278
  <th style="text-align: center;">{{row.f_stair_price3}}</th>
279
279
  <th style="text-align: center;">
280
- <div v-if="!row.f_change_price1">
280
+ <div v-if="!row.f_surplus_fee">
281
281
  <button type="button" name="button" class="btn btn-link"
282
282
  @click.stop="$parent.$parent.$parent.calculation(row) && row.states === 1">调价补差
283
283
  </button>
@@ -313,7 +313,7 @@
313
313
  <th style="text-align: center;">{{row.f_stair_gas3}}</th>
314
314
  <th style="text-align: center;">{{row.f_operate_date}}</th>
315
315
  <th style="text-align: center;">
316
- <button type="button" name="button" class="btn btn-link" v-if="row.f_change_price1"
316
+ <button type="button" name="button" class="btn btn-link" v-if="row.f_surplus_fee"
317
317
  @click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
318
318
  </button>
319
319
  <!-- <button type="button" name="button" class="btn btn-link" v-if="!row.f_new_price"-->
@@ -199,7 +199,7 @@
199
199
  <th style="text-align: center;">{{row.f_stair_price2}}</th>
200
200
  <th style="text-align: center;">{{row.f_stair_price3}}</th>
201
201
  <th style="text-align: center;">
202
- <div v-if="!row.f_change_price1">
202
+ <div v-if="!row.f_surplus_fee">
203
203
  <button type="button" name="button" class="btn btn-link"
204
204
  @click.stop="$parent.$parent.$parent.calculation(row) && row.states === 1">调价补差
205
205
  </button>
@@ -244,7 +244,7 @@
244
244
  <th style="text-align: center;">{{row.f_surplus_fee}}</th>
245
245
  <th style="text-align: center;">{{row.f_source}}</th>
246
246
  <th style="text-align: center;">
247
- <button type="button" name="button" class="btn btn-link" v-if="row.f_change_price1"
247
+ <button type="button" name="button" class="btn btn-link" v-if="row.f_surplus_fee"
248
248
  @click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
249
249
  </button>
250
250
  </th>
@@ -201,7 +201,7 @@
201
201
  <th style="text-align: center;">{{row.f_stair_price2}}</th>
202
202
  <th style="text-align: center;">{{row.f_stair_price3}}</th>
203
203
  <th style="text-align: center;">
204
- <div v-if="!row.f_change_price1">
204
+ <div v-if="!row.f_surplus_fee">
205
205
  <button type="button" name="button" class="btn btn-link"
206
206
  @click.stop="$parent.$parent.$parent.calculation(row) && row.states === 1">调价补差
207
207
  </button>
@@ -248,7 +248,7 @@
248
248
  <th style="text-align: center;">{{row.f_surplus_fee}}</th>
249
249
  <th style="text-align: center;">{{row.f_source}}</th>
250
250
  <th style="text-align: center;">
251
- <button type="button" name="button" class="btn btn-link" v-if="row.f_change_price1"
251
+ <button type="button" name="button" class="btn btn-link" v-if="row.f_surplus_fee"
252
252
  @click.stop="$parent.$parent.$parent.delectHand(row) && row.states === 1">冲正
253
253
  </button>
254
254
  </th>
@@ -346,7 +346,16 @@
346
346
  }
347
347
  }
348
348
  },
349
- openUser () {
349
+ async openUser () {
350
+ let param = {
351
+ tablename: 't_instruct',
352
+ condition: `f_userfiles_id = '${this.row.f_userfiles_id}' and f_instruct_type = '远程开户' and f_instruct_state = '执行成功'`
353
+ }
354
+ let result = await this.$resetpost('rs/sql/saleSingleTable', {data: param},{resolveMsg: '', rejectMsg: ''})
355
+ if (result.data.length > 0) {
356
+ this.$showMessage(`该用户已开户,请勿重复发送指令!!!`, ['confirm'])
357
+ return
358
+ }
350
359
  this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
351
360
  if (res === 'confirm') {
352
361
  let data = {
@@ -184,12 +184,7 @@
184
184
  <input class="input_search" style="width:60%" type="text" v-validate:f_serial_number='{required: true }'
185
185
  v-model="model.f_serial_number" placeholder="业务单号">
186
186
  </div>
187
- <div class="col-sm-4" v-if="!mjshow && model.f_payment == '银行转账'" >
188
- <label for="f_serial_number" class=" font_normal_body">银行流水</label>
189
- <input class="input_search" style="width:60%" type="text"
190
- v-model="model.f_serial_number" placeholder="银行流水">
191
- </div>
192
- <div class="col-sm-4" v-if="mjshow && model.f_payment == '银行转账'" :class="[$v.f_serial_number.required || $v.f_serial_number.dctest ? 'has-error' : 'has-success']">
187
+ <div class="col-sm-4" v-if="model.f_payment == '银行转账'" :class="[$v.f_serial_number.required || $v.f_serial_number.dctest ? 'has-error' : 'has-success']">
193
188
  <label for="f_serial_number" class=" font_normal_body">银行流水</label>
194
189
  <input class="input_search" style="width:60%" type="text" v-validate:f_serial_number='{required: true }'
195
190
  v-model="model.f_serial_number" placeholder="银行流水">
@@ -151,12 +151,7 @@
151
151
  <input class="input_search" style="width:60%" type="text" v-validate:f_serial_number='{required: true }'
152
152
  v-model="model.f_serial_number" placeholder="业务单号">
153
153
  </div>
154
- <div class="col-sm-4" v-if="!mjshow && model.f_payment == '银行转账'" >
155
- <label for="f_serial_number" class=" font_normal_body">银行流水</label>
156
- <input class="input_search" style="width:60%" type="text"
157
- v-model="model.f_serial_number" placeholder="银行流水">
158
- </div>
159
- <div class="col-sm-4" v-if="mjshow && model.f_payment == '银行转账'" :class="[$v.f_serial_number.required || $v.f_serial_number.dctest ? 'has-error' : 'has-success']">
154
+ <div class="col-sm-4" v-if="model.f_payment == '银行转账'" :class="[$v.f_serial_number.required || $v.f_serial_number.dctest ? 'has-error' : 'has-success']">
160
155
  <label for="f_serial_number" class=" font_normal_body">银行流水</label>
161
156
  <input class="input_search" style="width:60%" type="text" v-validate:f_serial_number='{required: true }'
162
157
  v-model="model.f_serial_number" placeholder="银行流水">
@@ -19,7 +19,7 @@
19
19
  </template>
20
20
  <script>
21
21
  import {HttpResetClass} from 'vue-client'
22
- import Vue from "vue";
22
+ import Vue from 'vue'
23
23
 
24
24
  export default {
25
25
  title: '电子发票',
@@ -90,7 +90,12 @@ export default {
90
90
  }
91
91
  }
92
92
  // TODO 组织开票数据并保存
93
- const res = await this.$resetpost('/invoice/rs/logic/getInvoice', model, {resolveMsg: null, rejectMsg: '开票请求失败'})
93
+ const res = await this.$resetpost('/invoice/rs/logic/getInvoice', model, {
94
+ resolveMsg: null,
95
+ rejectMsg: '开票请求失败',
96
+ aoteEncrypt: '无',
97
+ encryKey: '无'
98
+ })
94
99
  if (res.data.code === 200 && res.data.data.code == '0000') {
95
100
  this.return_msg = '发票开具成功,请稍后到发票管理页面查看或打印'
96
101
  } else {
@@ -123,7 +128,12 @@ export default {
123
128
  isTax: 1
124
129
  }
125
130
  // TODO 组织开票数据并保存
126
- const res = await this.$resetpost('/invoice/rs/logic/getInvoice', model, {resolveMsg: null, rejectMsg: '开票请求失败'})
131
+ const res = await this.$resetpost('/invoice/rs/logic/getInvoice', model, {
132
+ resolveMsg: null,
133
+ rejectMsg: '开票请求失败',
134
+ aoteEncrypt: '无',
135
+ encryKey: '无'
136
+ })
127
137
  if (res.data.code === 200 && res.data.data.code == '0000') {
128
138
  this.return_msg = '发票开具成功,请稍后到发票管理页面查看或打印'
129
139
  } else {
@@ -151,14 +161,25 @@ export default {
151
161
  f_buy_openbank: custModel.f_paper_account,
152
162
  f_userinfo_id: custModel.f_userinfo_id,
153
163
  invoice_show_gas: !!(custModel.amount && custModel.price),
154
- detail_price: {amount: custModel.amount, price: custModel.price, name: custModel.name, money: custModel.money},
164
+ detail_price: {
165
+ amount: custModel.amount,
166
+ price: custModel.price,
167
+ name: custModel.name,
168
+ money: custModel.money
169
+ },
155
170
  is_pax: invoice_is_pax === '征税',
156
171
  isTax: invoice_is_pax === '征税' ? 1 : 0,
157
172
  invoice_type: 0,
158
173
  retry: true
159
174
  }, custModel)
160
175
  // TODO 组织开票数据并保存
161
- const res = await this.$resetpost('/invoice/rs/logic/customInvoice', model, {resolveMsg: null, rejectMsg: '开票请求失败'})
176
+ const res = await this.$resetpost('/invoice/rs/logic/customInvoice', model, {
177
+ resolveMsg: null,
178
+ rejectMsg: '开票请求失败',
179
+ aoteEncrypt: '无',
180
+ encryKey: '无'
181
+ }
182
+ )
162
183
  if (res.data.code === 200 && res.data.data.code == '0000') {
163
184
  this.return_msg = '发票开具成功,请稍后到发票管理页面查看或打印'
164
185
  } else {
@@ -239,7 +260,7 @@ export default {
239
260
  * */
240
261
  async rushRedInvoice_1 (ticket_id) {
241
262
  try {
242
- // 否则正常打票
263
+ // 否则正常打票
243
264
  let time = 0
244
265
  let result = await this.$resetpost('/invoice/rs/tongchuan/rushRed', {eticket_id: ticket_id}, {
245
266
  resolveMsg: null,
@@ -247,14 +268,14 @@ export default {
247
268
  })
248
269
  result = result.data.RESPONSE_FPXX
249
270
  if (result && result.RETURN_CODE === '0000') {
250
- // TODO 开票成功 保存发票详情
271
+ // TODO 开票成功 保存发票详情
251
272
  await this.save_msg({
252
273
  f_eticket_id: ticket_id,
253
274
  f_bill_state: '等待查询'
254
275
  })
255
- // TODO 开票成功 进行查询
276
+ // TODO 开票成功 进行查询
256
277
  let interval = await setInterval(() => {
257
- // 2秒一轮回
278
+ // 2秒一轮回
258
279
  let http = new HttpResetClass()
259
280
  http.load('POST', '/invoice/rs/tongchuan/queryInvoice', {eticket_id: ticket_id}, {
260
281
  resolveMsg: null,
@@ -273,9 +294,9 @@ export default {
273
294
  req = req.data.RESPONSE_FPXXXZ
274
295
  console.log(req, '查出什么玩意了', time, req.DDBH + '')
275
296
  if (req && req.RETURN_CODE === '0000') {
276
- // 组织数据
297
+ // 组织数据
277
298
  clearInterval(interval)
278
- // TODO 成功后保存发票详情
299
+ // TODO 成功后保存发票详情
279
300
  this.save_msg({
280
301
  f_eticket_id: ticket_id,
281
302
  f_bill_code: req.FPDM,
@@ -289,7 +310,7 @@ export default {
289
310
  this.eticket_src = req.PDF_RED_URL
290
311
  } else if (req && req.RETURN_CODE !== '0011') {
291
312
  clearInterval(interval)
292
- // TODO 失败后保存发票详情
313
+ // TODO 失败后保存发票详情
293
314
  this.save_msg({
294
315
  f_eticket_id: ticket_id,
295
316
  f_sign_result: req.RETURN_MESSAGE,
@@ -298,8 +319,8 @@ export default {
298
319
  this.return_msg = '电子票查询出错,错误【' + req.RETURN_MESSAGE + '】,错误代码【' + req.RETURN_CODE + '】,请前往发票管理重新尝试'
299
320
  } else {
300
321
  if (time == 80) {
301
- // 三十秒后无效
302
- // TODO 查询失败后保存发票详情
322
+ // 三十秒后无效
323
+ // TODO 查询失败后保存发票详情
303
324
  this.save_msg({
304
325
  f_eticket_id: ticket_id,
305
326
  f_sign_result: '查询超时请再次尝试。',
@@ -313,7 +334,7 @@ export default {
313
334
  })
314
335
  }, 1 * 2000)
315
336
  } else if (result) {
316
- // TODO 查询失败后保存发票详情
337
+ // TODO 查询失败后保存发票详情
317
338
  await this.save_msg({
318
339
  f_eticket_id: ticket_id,
319
340
  f_sign_result: result.RETURN_MESSAGE,