apply-clients 3.3.56 → 3.3.60

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.
@@ -660,9 +660,60 @@ export default {
660
660
  return
661
661
  }
662
662
  throw '用户信息确认!!!'
663
+ },
664
+ async getDesignerPeople () {
665
+ let data = {
666
+ source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
667
+ userid: this.$login.f.id
668
+ }
669
+
670
+ let http = new HttpResetClass()
671
+ let res = await http.load(
672
+ 'POST',
673
+ `rs/search`,
674
+ {data: data},
675
+ {resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
676
+ )
677
+
678
+ return res.data.map(item => {
679
+ return {
680
+ label: item.name,
681
+ value: item.id
682
+ }
683
+ })
684
+ },
685
+ async surveyStopApply () {
686
+ console.log('终止报建!!!!!')
687
+
688
+ this.show_data.f_stop_reason = '现场勘察不符合报装条件'
689
+
690
+ let data = {
691
+ data: this.show_data,
692
+ user: this.$login.f
693
+ }
694
+
695
+ let res = await this.$resetpost(
696
+ `rs/logic/surveyStopApply`,
697
+ {data: data},
698
+ {resolveMsg: null, rejectMsg: '终止报建失败!!!'}
699
+ )
700
+
701
+ this.$dispatch('loadPage')
702
+
703
+ throw '终止报建!!!'
663
704
  }
664
705
  },
665
706
  events: {
707
+ 'complyInstallation' (index) {
708
+ if (this.show_data.f_is_have === '否') {
709
+ this.hideButtons('提交', '出图', '缴费')
710
+ this.showButtons('终止')
711
+ }
712
+ if (this.show_data.f_is_have === '是') {
713
+ this.hideButtons('终止')
714
+ this.showButtons('提交', '出图', '缴费')
715
+ }
716
+ },
666
717
  async 'igniteDispatchReadyEvent' () {
667
718
  let data = {
668
719
  tablename: 'activityins',