apply-clients 3.1.36 → 3.1.39

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.
Files changed (26) hide show
  1. package/package.json +112 -112
  2. package/src/App.vue +20 -20
  3. package/src/apply.js +3 -0
  4. package/src/components/product/ApplyCharge/ApplyChargeList.vue +266 -247
  5. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -232
  6. package/src/components/product/Function/InstallFunction.vue +2 -2
  7. package/src/components/product/Function/InstallInfoSelect.vue +44 -5
  8. package/src/components/product/Function/Service/FunctionServiceControl.vue +61 -2
  9. package/src/components/product/Function/functions/ChargeManagement.vue +397 -30
  10. package/src/components/product/Function/functions/ContractNo.vue +354 -354
  11. package/src/components/product/Function/functions/DispatchList.vue +490 -490
  12. package/src/components/product/Function/functions/InstallFeeInfo.vue +43 -43
  13. package/src/components/product/Order/OrderApply.vue +467 -467
  14. package/src/components/product/Order/OrderApplyList.vue +301 -301
  15. package/src/components/product/Process/ExplorationSelect.vue +326 -287
  16. package/src/components/product/Process/ExplorationUser.vue +168 -140
  17. package/src/components/product/Process/Service/ServiceControl.vue +15 -14
  18. package/src/components/product/ReportForm/ApplyUpload.vue +261 -261
  19. package/src/components/product/ReportForm/CustomerRecordMessage.vue +1587 -1409
  20. package/src/components/product/ServiceView.vue +5 -1
  21. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +169 -153
  22. package/src/components/product/Supervisory/SupervisoryControl.vue +132 -132
  23. package/src/components/product/Supervisory/SupervisoryControl2.vue +132 -0
  24. package/src/components/product/Supervisory/SupervisoryList.vue +76 -10
  25. package/src/components/product/Supervisory/SupervisoryList2.vue +285 -0
  26. package/src/components/product/Supervisory/SupervisoryhCart.vue +105 -104
@@ -1,140 +1,168 @@
1
- <template>
2
- <div class="basic-main">
3
- <div class="tops" v-bind:style="{ height: topheight }">
4
- <exploration-select v-ref:queryuser v-show="show"></exploration-select>
5
- </div>
6
- <div v-if="showtotal" v-bind:style="{ height: botheight, 'margin-top' : '20px'}">
7
- <tabset v-ref:tabs :close="false">
8
- <tab header='集中报装' v-if="selectdata.f_apply_type == '集中报建'" style="background-color :#f6f6f6">
9
- <record-message v-ref:record :selectdata="selectdata" :key="tittle1"
10
- :edit = "true">
11
- </record-message>
12
- </tab>
13
- <tab :header='header' style="background-color :#ffffff!important;overflow: auto;">
14
- <service-control v-ref:service :selectdata="selectdata"></service-control>
15
- </tab>
16
- <tab header='附件' style="background-color :#ffffff!important;overflow: auto;">
17
- <apply-upload v-ref:file :blodid = "selectdata.f_process_id" :isusetype = "true" :isremark = "true" :isupload = "true" :defname="selectdata.defname"></apply-upload>
18
- </tab>
19
- </tabset>
20
- </div>
21
- </div>
22
- </template>
23
- <script>
24
- import Vue from 'vue'
25
- import {HttpResetClass} from 'vue-client'
26
- export default {
27
- title: '报建流程',
28
- data () {
29
- return {
30
- show: true, // 控制列表列表
31
- showtotal: false, // 详情显示
32
- header: null, // tag 标题
33
- selectdata: {},
34
- botheight: '0%', // 详情信息显示高度
35
- topheight: '100%', // 列表显示高度
36
- xmlname: '' // 配置文件名
37
- }
38
- },
39
- created () {
40
- },
41
- methods: {
42
- // 获取页面配置json文件
43
- async loadName () {
44
- let http = new HttpResetClass()
45
- let xmldata = {
46
- data: this.$login.f,
47
- workname: this.xmlname
48
- }
49
- let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
50
-
51
- if (res.data.code && res.data.code === 200) {
52
- Vue.prototype.$workflow_vue = res.data.workflow_vue
53
- } else {
54
- this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
55
- return
56
- }
57
- },
58
- async getProcessId() {
59
- let http = new HttpResetClass()
60
- let data = {
61
- workname: this.xmlname
62
- }
63
- let res = await http.load('POST', 'rs/logic/getProcessId', {data: data}, {resolveMsg: null, rejectMsg: null})
64
-
65
- this.selectdata.f_process_id = res.data
66
- }
67
- },
68
- events: {
69
- 'onMessage' (data) {
70
- console.log('接收消息')
71
- console.log(data)
72
- if (data.type === 'apply-task') {
73
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
74
- }
75
- },
76
- // 初始化
77
- async 'apply' (val) {
78
- this.selectdata = val
79
-
80
- if (this.selectdata.f_apply_type === '集中报建') {
81
- this.xmlname = '集中报建流程'
82
- } else if (this.selectdata.f_apply_type === '散户报建') {
83
- this.xmlname = '散户报建流程'
84
- } else if (this.selectdata.f_apply_type === '非民用报建') {
85
- this.xmlname = '非民用报建流程'
86
- } else {
87
- this.$showMessage('暂无此类报装')
88
- return
89
- }
90
-
91
- // 获取页面json配置文件
92
- // 次方法必须同步执行,否则后续会出问题
93
- await this.loadName()
94
-
95
- if(this.selectdata.defname === this.$workflow_vue.start_activity) {
96
- // 获取流程id
97
- await this.getProcessId()
98
- }
99
- // 显示详细
100
- this.showtotal = true
101
- this.topheight = '10%'
102
- this.botheight = '90%'
103
- // 列表显示当前数据
104
- this.$refs.queryuser.$refs.cp.$refs.grid.model.rows = [this.selectdata]
105
- // 关闭分页
106
- this.$refs.queryuser.$refs.cp.pager = false
107
-
108
- // tab标题
109
- this.header = this.selectdata.defname
110
- },
111
- // 关闭详情页等
112
- 'close' () {
113
- this.showtotal = false
114
- this.topheight = '100%'
115
- this.botheight = '0%'
116
- this.$refs.queryuser.$refs.cp.pager = true
117
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
118
- },
119
- 'hidden' (criteriaShow) {
120
- if (!this.showtotal && !criteriaShow) {
121
-
122
- }
123
- if (!this.showtotal && criteriaShow) {
124
-
125
- }
126
- if (this.showtotal && !criteriaShow) {
127
- this.topheight = '20%'
128
- this.botheight = '80%'
129
- }
130
- if (this.showtotal && criteriaShow) {
131
- this.topheight = '10%'
132
- this.botheight = '90%'
133
- }
134
-
135
- }
136
- },
137
- watch: {
138
- }
139
- }
140
- </script>
1
+ <template>
2
+ <div class="basic-main">
3
+ <div class="tops" v-bind:style="{ height: topheight }">
4
+ <exploration-select v-ref:queryuser v-show="show"></exploration-select>
5
+ </div>
6
+ <div v-if="showtotal" v-bind:style="{ height: botheight, 'margin-top' : '20px'}">
7
+ <tabset v-ref:tabs :close="false">
8
+ <tab header='集中报装' v-if="selectdata.f_apply_type == '集中报建'" style="background-color :#f6f6f6">
9
+ <record-message v-ref:record :selectdata="selectdata" :key="tittle1"
10
+ :edit = "true">
11
+ </record-message>
12
+ </tab>
13
+ <tab :header='header' style="background-color :#ffffff!important;overflow: auto;">
14
+ <service-control v-ref:service :selectdata="selectdata"></service-control>
15
+ </tab>
16
+ <tab header='附件' style="background-color :#ffffff!important;overflow: auto;">
17
+ <apply-upload v-ref:file :blodid = "selectdata.f_process_id" :isusetype = "true" :isremark = "true" :isupload = "true" :defname="selectdata.defname"></apply-upload>
18
+ </tab>
19
+ </tabset>
20
+ </div>
21
+ </div>
22
+ </template>
23
+ <script>
24
+ import Vue from 'vue'
25
+ import {HttpResetClass} from 'vue-client'
26
+ export default {
27
+ title: '报建流程',
28
+ data () {
29
+ return {
30
+ show: true, // 控制列表列表
31
+ showtotal: false, // 详情显示
32
+ header: null, // tag 标题
33
+ selectdata: {},
34
+ botheight: '0%', // 详情信息显示高度
35
+ topheight: '100%', // 列表显示高度
36
+ xmlname: '' // 配置文件名
37
+ }
38
+ },
39
+ created () {
40
+ },
41
+ methods: {
42
+ // 获取页面配置json文件
43
+ async loadName () {
44
+ let http = new HttpResetClass()
45
+ let xmldata = {
46
+ data: this.$login.f,
47
+ workname: this.xmlname
48
+ }
49
+ let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
50
+
51
+ if (res.data.code && res.data.code === 200) {
52
+ Vue.prototype.$workflow_vue = res.data.workflow_vue
53
+ } else {
54
+ this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
55
+ return
56
+ }
57
+ },
58
+ async getProcessId() {
59
+ let http = new HttpResetClass()
60
+ let data = {
61
+ workname: this.xmlname
62
+ }
63
+ let res = await http.load('POST', 'rs/logic/getProcessId', {data: data}, {resolveMsg: null, rejectMsg: null})
64
+
65
+ this.selectdata.f_process_id = res.data
66
+ }
67
+ },
68
+ events: {
69
+ 'onMessage' (data) {
70
+ console.log('接收消息')
71
+ console.log(data)
72
+ if (data.type === 'apply-task') {
73
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
74
+ }
75
+ },
76
+ // 刷新控制层
77
+ async 'breakControl' (servicedata) {
78
+
79
+ if (servicedata.id) {
80
+ let data = {
81
+ condition: `u.id = ${servicedata.id}`,
82
+ data: {
83
+ id: this.$login.f.id,
84
+ org: this.$login.f.orgs
85
+ }
86
+ }
87
+ let res = await this.$resetpost(
88
+ 'rs/sql/checkuser',
89
+ {data: data},
90
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
91
+ )
92
+
93
+ this.selectdata = res.data[0]
94
+ } else {
95
+ this.selectdata = servicedata
96
+ }
97
+
98
+ this.showtotal = false
99
+ this.$nextTick(() => {
100
+ this.showtotal = true
101
+ })
102
+
103
+ },
104
+ // 初始化
105
+ async 'apply' (val) {
106
+ this.selectdata = val
107
+
108
+ if (this.selectdata.f_apply_type === '集中报建') {
109
+ this.xmlname = '集中报建流程'
110
+ } else if (this.selectdata.f_apply_type === '散户报建') {
111
+ this.xmlname = '散户报建流程'
112
+ } else if (this.selectdata.f_apply_type === '非民用报建') {
113
+ this.xmlname = '非民用报建流程'
114
+ } else {
115
+ this.$showMessage('暂无此类报装')
116
+ return
117
+ }
118
+
119
+ // 获取页面json配置文件
120
+ // 次方法必须同步执行,否则后续会出问题
121
+ await this.loadName()
122
+
123
+ if(this.selectdata.defname === this.$workflow_vue.start_activity) {
124
+ // 获取流程id
125
+ await this.getProcessId()
126
+ }
127
+ // 显示详细
128
+ this.showtotal = true
129
+ this.topheight = '10%'
130
+ this.botheight = '90%'
131
+ // 列表显示当前数据
132
+ this.$refs.queryuser.$refs.cp.$refs.grid.model.rows = [this.selectdata]
133
+ // 关闭分页
134
+ this.$refs.queryuser.$refs.cp.pager = false
135
+
136
+ // tab标题
137
+ this.header = this.selectdata.defname
138
+ },
139
+ // 关闭详情页等
140
+ 'close' () {
141
+ this.showtotal = false
142
+ this.topheight = '100%'
143
+ this.botheight = '0%'
144
+ this.$refs.queryuser.$refs.cp.pager = true
145
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
146
+ },
147
+ 'hidden' (criteriaShow) {
148
+ if (!this.showtotal && !criteriaShow) {
149
+
150
+ }
151
+ if (!this.showtotal && criteriaShow) {
152
+
153
+ }
154
+ if (this.showtotal && !criteriaShow) {
155
+ this.topheight = '20%'
156
+ this.botheight = '80%'
157
+ }
158
+ if (this.showtotal && criteriaShow) {
159
+ this.topheight = '10%'
160
+ this.botheight = '90%'
161
+ }
162
+
163
+ }
164
+ },
165
+ watch: {
166
+ }
167
+ }
168
+ </script>
@@ -203,7 +203,7 @@
203
203
  this.sure_last()
204
204
  this.arrearsMoney()
205
205
  this.meterOrPrice()
206
- if (this.selectdata.f_apply_type != '散户报建') {
206
+ if (this.selectdata.f_apply_type !== '散户报建') {
207
207
  this.moneyDue()
208
208
  this.moneySumArrears()
209
209
  }
@@ -657,7 +657,7 @@
657
657
  rejectMsg: '查询合同编号失败'
658
658
  })
659
659
  for (let j = 0; j < this.show_data.fields.length; j++) {
660
- if (this.show_data.fields[j].label == '合同编号') {
660
+ if (this.show_data.fields[j].label === '合同编号') {
661
661
  this.show_data.fields[j].value = res.data[0].f_contract_number
662
662
  }
663
663
  }
@@ -670,16 +670,17 @@
670
670
  // 应交金额计算
671
671
  async moneyDue() {
672
672
  // 应交金额 = 合同价格
673
- if (this.selectdata.defname == '报建缴费') {
673
+ if (this.selectdata.defname === '报建缴费' && this.selectdata.f_apply_type !== '集中报建') {
674
+ console.log("进来没有-------")
674
675
  let result = 0.00
675
676
  for (let i = 0; i < this.show_data.fields.length; i++) {
676
677
 
677
- if (this.show_data.fields[i].label == '合同价格') {
678
+ if (this.show_data.fields[i].label === '合同价格') {
678
679
  // console.log("计算金额1")
679
680
  result = this.show_data.fields[i].value
680
681
  }
681
682
  // console.log("计算金额:" + result)
682
- if (this.show_data.fields[i].label == '应交金额') {
683
+ if (this.show_data.fields[i].label === '应交金额') {
683
684
  // console.log("计算金额2")
684
685
  this.show_data.fields[i].value = result
685
686
  }
@@ -691,7 +692,7 @@
691
692
  },
692
693
  // 累计缴费金额和欠费金额
693
694
  async moneySumArrears() {
694
- if (this.selectdata.defname == '报建缴费') {
695
+ if (this.selectdata.defname === '报建缴费') {
695
696
  // 查询是否有缴费记录
696
697
  let http = new HttpResetClass()
697
698
  // 组织数据
@@ -705,23 +706,23 @@
705
706
  })
706
707
  if (res.data.length > 0) {
707
708
  for (let i = 0; i < this.show_data.fields.length; i++) {
708
- if (this.show_data.fields[i].label == '累计缴费金额') {
709
+ if (this.show_data.fields[i].label === '累计缴费金额') {
709
710
  this.show_data.fields[i].value
710
711
  }
711
- if (this.show_data.fields[i].label == '欠费金额') {
712
+ if (this.show_data.fields[i].label === '欠费金额') {
712
713
  this.show_data.fields[i].value
713
714
  }
714
715
  }
715
716
  }else {
716
717
  let result = 0.00
717
718
  for (let i = 0; i < this.show_data.fields.length; i++) {
718
- if (this.show_data.fields[i].label == '应交金额') {
719
+ if (this.show_data.fields[i].label === '应交金额') {
719
720
  result = this.show_data.fields[i].value
720
721
  }
721
- if (this.show_data.fields[i].label == '累计缴费金额') {
722
+ if (this.show_data.fields[i].label === '累计缴费金额') {
722
723
  this.show_data.fields[i].value = 0
723
724
  }
724
- if (this.show_data.fields[i].label == '欠费金额') {
725
+ if (this.show_data.fields[i].label === '欠费金额') {
725
726
  this.show_data.fields[i].value = result
726
727
  }
727
728
  }
@@ -732,11 +733,11 @@
732
733
  // 欠费金额为0时的不显示解决
733
734
  async arrearsMoney() {
734
735
  // 应交金额 = 合同价格
735
- if (this.selectdata.defname == '收费审核') {
736
+ if (this.selectdata.defname === '收费审核' || this.selectdata.defname === '报建缴费') {
736
737
  for (let i = 0; i < this.show_data.fields.length; i++) {
737
738
 
738
- if (this.show_data.fields[i].label == '欠费金额') {
739
- if (this.show_data.fields[i].value == 0.00 || this.show_data.fields[i].value == undefined || this.show_data.fields[i].value == null || this.show_data.fields[i].value == '') {
739
+ if (this.show_data.fields[i].label === '欠费金额') {
740
+ if (this.show_data.fields[i].value === 0.00 || this.show_data.fields[i].value === undefined || this.show_data.fields[i].value == null || this.show_data.fields[i].value == '') {
740
741
  this.show_data.fields[i].value = 0
741
742
  }
742
743
  }