apply-clients 3.5.3-15 → 3.5.3-16-cs

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": "apply-clients",
3
- "version": "3.5.3-15",
3
+ "version": "3.5.3-16-cs",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -644,11 +644,29 @@ export default {
644
644
  throw '用户信息确认!!!'
645
645
  },
646
646
  // 缴费前置
647
- chargeBefore () {
647
+ async chargeBefore () {
648
648
  if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
649
649
  this.$showAlert('费用未结清!!!', 'warning', 3000)
650
650
  throw null
651
651
  }
652
+ if (this.show_data.defname === '通气施工' && this.show_data.f_apply_type === '启封通气'){
653
+ let http = new HttpResetClass()
654
+ let data = {
655
+ condition: `ui.f_userinfo_id = '${this.show_data.f_userinfo_id}' and uf.f_meter_classify is null and f_meternumber is null`
656
+ }
657
+ let res = await http.load(
658
+ 'POST',
659
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/countApplyUserinfo`,
660
+ {data: data},
661
+ {
662
+ resolveMsg: null,
663
+ rejectMsg: '安装明细查询失败!!!'
664
+ })
665
+ if (res.data[0].num > 0) {
666
+ this.$showAlert(`还有${res.data[0].num}户未安装,无法提交`, 'warning', 3000)
667
+ throw `还有${res.data[0].num}户未安装,无法提交`
668
+ }
669
+ }
652
670
  },
653
671
  // 施工前置
654
672
  async constructionBefore () {
@@ -529,11 +529,29 @@
529
529
  })
530
530
  },
531
531
  // 缴费前置
532
- chargeBefore () {
532
+ async chargeBefore () {
533
533
  if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
534
534
  this.$showAlert('费用未结清!!!', 'warning', 3000)
535
535
  throw null
536
536
  }
537
+ if (this.show_data.defname === '通气施工' && this.show_data.f_apply_type === '启封通气'){
538
+ let http = new HttpResetClass()
539
+ let data = {
540
+ condition: `ui.f_userinfo_id = '${this.show_data.f_userinfo_id}' and uf.f_meter_classify is null and f_meternumber is null`
541
+ }
542
+ let res = await http.load(
543
+ 'POST',
544
+ 'rs/sql/countApplyUserinfo',
545
+ {data: data},
546
+ {
547
+ resolveMsg: null,
548
+ rejectMsg: '安装明细查询失败!!!'
549
+ })
550
+ if (res.data[0].num > 0) {
551
+ this.$showAlert(`还有${res.data[0].num}户未安装,无法提交`, 'warning', 3000)
552
+ throw `还有${res.data[0].num}户未安装,无法提交`
553
+ }
554
+ }
537
555
  },
538
556
  //收费时添加 预算的 流程节点,如果 当前节点费用未 缴清, 不能进行下一步流程
539
557
  async confirmBefore() {
@@ -1601,7 +1619,7 @@
1601
1619
  if (((this.show_data.defname === '工程审批' && this.show_data.f_apply_type === '民用散户报建流程')|| (this.show_data.defname === '工程决算')) && this.show_data.button.button_name === '提交' && this.show_data.f_payment_ratio == "100%"){
1602
1620
  this.show_data.button.button_name = '跳过'
1603
1621
  }
1604
- if (this.show_data.defname === '通气申请' && this.show_data.f_apply_type === '启封通气'&& this.show_data.button.button_name === '提交' && this.show_data.f_apply_source !== '线下发起' ){
1622
+ if (this.show_data.defname === '通气申请' && this.show_data.f_apply_type === '启封通气'&& this.show_data.button.button_name === '提交' && this.show_data.f_apply_source == '自动发起' ){
1605
1623
  let data = {
1606
1624
  tablename: 't_apply',
1607
1625
  condition: `f_process_id = '${this.show_data.f_parent_process_id}'`