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
@@ -178,7 +178,7 @@
178
178
  </div>
179
179
 
180
180
  <slot></slot>
181
- <apply-charge-management v-ref:apply_charge :data="data" v-if="data.defname == '报建缴费' || data.defname == '收费审核' || data.defname == '确认尾款'"></apply-charge-management>
181
+ <apply-charge-management v-ref:apply_charge :mark="mark" :data="data" v-if="data.defname == '报建缴费' || data.defname == '收费审核' || data.defname == '确认尾款'"></apply-charge-management>
182
182
  <!--公司等属性-->
183
183
  <div class="col-sm-12 form-group text-center" style="padding-top:8px">
184
184
  <div class="col-sm-3 form-group center-block">
@@ -335,6 +335,10 @@
335
335
  data: {
336
336
  type: Object
337
337
  },
338
+ mark: {
339
+ type: Number,
340
+ default: 0
341
+ },
338
342
  showprint: {
339
343
  type: Boolean,
340
344
  default: true
@@ -1,153 +1,169 @@
1
- <template>
2
- <div class="auto clearfix">
3
- <show-back-reason v-if="selectdata.f_back_reason && selectdata.f_back_reason!=''"
4
- :data="data"></show-back-reason>
5
- </div>
6
- <service-view v-ref:service_show :data="data" v-if="showview" :showprint="false"></service-view>
7
- </template>
8
- <script>
9
- import Vue from 'vue'
10
- import {HttpResetClass} from 'vue-client'
11
- // Date格式化
12
- Date.prototype.Format = function (fmt) {
13
- var o = {
14
- 'M+': this.getMonth() + 1, // 月份
15
- 'd+': this.getDate(), // 日
16
- 'H+': this.getHours(), // 小时
17
- 'm+': this.getMinutes(), // 分
18
- 's+': this.getSeconds(), // 秒
19
- 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
20
- 'S': this.getMilliseconds() // 毫秒
21
- }
22
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
23
- for (var k in o) {
24
- if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
25
- }
26
- return fmt
27
- }
28
- export default {
29
- title: '报建监控控制层',
30
- props: ['selectdata'],
31
- data() {
32
- return {
33
- data: null, // 展示的数据
34
- json_datas: null, // json配置数据结构
35
- showview: false // 控制显示层显示
36
- }
37
- },
38
- created () {
39
- this.initial()
40
- },
41
- methods: {
42
- // 初始化模块
43
- async initial() {
44
- this.json_datas = this.$workflow_vue
45
- let sum = 0
46
- let jsonData = {}
47
- this.json_datas.activitys.forEach(item => {
48
- if (this.selectdata.defname === item.title) {
49
- jsonData = item
50
- sum++
51
- }
52
- })
53
- if (sum === 0) {
54
- this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
55
- return
56
- }
57
- if (sum === 1) {
58
- this.data = jsonData
59
- this.data = Object.assign({}, this.data, this.selectdata)
60
- this.data.fields.forEach(item => {
61
- if (this.selectdata[item.field]) {
62
- item.value = this.selectdata[item.field]
63
- }
64
- })
65
- await this.initializtion()
66
- this.showview = true
67
- return
68
- }
69
- this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
70
- },
71
- // json配置数据处理
72
- async initializtion() {
73
- this.data.fields.forEach(item => {
74
- // 如果配置类型为select,获取options
75
- if(item.type==='select'){
76
- item.options=[]
77
- }
78
- if (typeof item.value === 'string' && item.value.startsWith("{") && item.value.endsWith("}")) {
79
- item.value = JSON.parse(item.value)
80
- }
81
-
82
- // 将所有field都不可修改,不可操作
83
- item.readonly = true
84
- item.disabled = true
85
- })
86
-
87
- // onetomany 数据获取
88
- if (this.data.onetomany) {
89
- for (let index = 0; index < this.data.onetomany.length; index++) {
90
- let http = new HttpResetClass()
91
- let data = {
92
- tablename: this.data.onetomany[index].tables[0],
93
- condition: `f_process_id='${this.selectdata.f_process_id}'`
94
- }
95
-
96
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
97
- resolveMsg: null,
98
- rejectMsg: 'onetomany查询失败'
99
- })
100
-
101
- // 初始化 onetomany
102
- this.data.onetomany[index].rows = res.data
103
-
104
- // 初始化onetomany中的fields
105
- for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
106
- // 如果配置类型为select,优先从参数列表获取options
107
- if (this.data.onetomany[index].fields[j].type === 'select') {
108
- let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
109
- if (temp && temp.length > 0) {
110
- this.data.onetomany[index].fields[j].options = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
111
- }
112
- }
113
- }
114
-
115
- }
116
- }
117
-
118
- // 去除button
119
- this.data.buttons = null
120
- // 完成时间和完成人,部门,分公司
121
- if (this.selectdata.state === '结束') {
122
- let user = await this.getUserById(this.selectdata.userid)
123
- this.data.f_filiale = user[0].orgname
124
- this.data.f_parentname = user[0].depname
125
- this.data.operate_date = new Date(this.selectdata.finishtime).Format('yyyy-MM-dd')
126
- this.data.operator = this.selectdata.person
127
- }
128
- },
129
- async getUserById (userid) {
130
- let http = new HttpResetClass()
131
- let data = {
132
- id: userid
133
- }
134
- let res = await http.load('POST', 'rs/sql/getUserById', {data}, {resolveMsg: null, rejectMsg: null})
135
- return res.data
136
- }
137
- },
138
- events:{
139
- },
140
- watch: {
141
- deep: true
142
- }
143
- }
144
- </script>
145
- <style scoped>
146
- /*清除model中的浮动*/
147
- .clearfix:after,.clearfix:before{
148
- display: table;
149
- }
150
- .clearfix:after{
151
- clear: both;
152
- }
153
- </style>
1
+ <template>
2
+ <div class="auto clearfix">
3
+ <show-back-reason v-if="selectdata.f_back_reason && selectdata.f_back_reason!=''"
4
+ :data="data"></show-back-reason>
5
+ </div>
6
+ <service-view v-ref:service_show :mark="mark" :data="data" v-if="showview" :showprint="false"></service-view>
7
+ </template>
8
+ <script>
9
+ import Vue from 'vue'
10
+ import {HttpResetClass} from 'vue-client'
11
+ // Date格式化
12
+ Date.prototype.Format = function (fmt) {
13
+ var o = {
14
+ 'M+': this.getMonth() + 1, // 月份
15
+ 'd+': this.getDate(), // 日
16
+ 'H+': this.getHours(), // 小时
17
+ 'm+': this.getMinutes(), // 分
18
+ 's+': this.getSeconds(), // 秒
19
+ 'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
20
+ 'S': this.getMilliseconds() // 毫秒
21
+ }
22
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
23
+ for (var k in o) {
24
+ if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
25
+ }
26
+ return fmt
27
+ }
28
+ export default {
29
+ title: '报建监控控制层',
30
+ props: {
31
+ selectdata: {
32
+ type: Object
33
+ },
34
+ mark: {
35
+ type: Number,
36
+ default: 1
37
+ }
38
+ },
39
+ data() {
40
+ return {
41
+ data: null, // 展示的数据
42
+ json_datas: null, // json配置数据结构
43
+ showview: false // 控制显示层显示
44
+ }
45
+ },
46
+ created () {
47
+ this.initial()
48
+ },
49
+ methods: {
50
+ // 初始化模块
51
+ async initial() {
52
+ this.json_datas = this.$workflow_vue
53
+ let sum = 0
54
+ let jsonData = {}
55
+ this.json_datas.activitys.forEach(item => {
56
+ if (this.selectdata.defname === item.title) {
57
+ jsonData = item
58
+ sum++
59
+ }
60
+ })
61
+ if (sum === 0) {
62
+ this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
63
+ return
64
+ }
65
+ if (sum === 1) {
66
+ this.data = jsonData
67
+ this.data = Object.assign({}, this.data, this.selectdata)
68
+ this.data.fields.forEach(item => {
69
+ if (this.selectdata[item.field]) {
70
+ item.value = this.selectdata[item.field]
71
+ }
72
+ })
73
+ await this.initializtion()
74
+ this.showview = true
75
+ return
76
+ }
77
+ this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
78
+ if (this.selectdata.components) {
79
+ this.selectdata.components.forEach(item => {
80
+ item.mark = 1
81
+ if (item.supervisory && this[item.supervisory]()) {
82
+ item.mark = 0
83
+ }
84
+ })
85
+ }
86
+ },
87
+ // json配置数据处理
88
+ async initializtion() {
89
+ this.data.fields.forEach(item => {
90
+ // 如果配置类型为select,获取options
91
+ if(item.type==='select'){
92
+ item.options=[]
93
+ }
94
+ if (typeof item.value === 'string' && item.value.startsWith("{") && item.value.endsWith("}")) {
95
+ item.value = JSON.parse(item.value)
96
+ }
97
+
98
+ // 将所有field都不可修改,不可操作
99
+ item.readonly = true
100
+ item.disabled = true
101
+ })
102
+
103
+ // onetomany 数据获取
104
+ if (this.data.onetomany) {
105
+ for (let index = 0; index < this.data.onetomany.length; index++) {
106
+ let http = new HttpResetClass()
107
+ let data = {
108
+ tablename: this.data.onetomany[index].tables[0],
109
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
110
+ }
111
+
112
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
113
+ resolveMsg: null,
114
+ rejectMsg: 'onetomany查询失败'
115
+ })
116
+
117
+ // 初始化 onetomany
118
+ this.data.onetomany[index].rows = res.data
119
+
120
+ // 初始化onetomany中的fields
121
+ for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
122
+ // 如果配置类型为select,优先从参数列表获取options
123
+ if (this.data.onetomany[index].fields[j].type === 'select') {
124
+ let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
125
+ if (temp && temp.length > 0) {
126
+ this.data.onetomany[index].fields[j].options = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
127
+ }
128
+ }
129
+ }
130
+
131
+ }
132
+ }
133
+
134
+ // 去除button
135
+ this.data.buttons = null
136
+ // 完成时间和完成人,部门,分公司
137
+ // if (this.selectdata.state === '结束') {
138
+ // let user = await this.getUserById(this.selectdata.userid)
139
+ // this.data.f_filiale = user[0].orgname
140
+ // this.data.f_parentname = user[0].depname
141
+ // this.data.operate_date = new Date(this.selectdata.finishtime).Format('yyyy-MM-dd')
142
+ // this.data.operator = this.selectdata.person
143
+ // }
144
+ },
145
+ async getUserById (userid) {
146
+ let http = new HttpResetClass()
147
+ let data = {
148
+ id: userid
149
+ }
150
+ let res = await http.load('POST', 'rs/sql/getUserById', {data}, {resolveMsg: null, rejectMsg: null})
151
+ return res.data
152
+ }
153
+ },
154
+ events:{
155
+ },
156
+ watch: {
157
+ deep: true
158
+ }
159
+ }
160
+ </script>
161
+ <style scoped>
162
+ /*清除model中的浮动*/
163
+ .clearfix:after,.clearfix:before{
164
+ display: table;
165
+ }
166
+ .clearfix:after{
167
+ clear: both;
168
+ }
169
+ </style>
@@ -1,132 +1,132 @@
1
- <template>
2
- <div class="basic-main" style="overflow:auto;">
3
- <div class="tops" v-bind:style="{ height: topheight }">
4
- <supervisory-list v-ref:queryuser></supervisory-list>
5
- </div>
6
- <div v-if="showtotal" v-bind:style="{ height: botheight }">
7
- <div class="col-sm-2" v-if="showbasic">
8
- <supervisory-chart :selectdata="selectdata" :defname = "header"></supervisory-chart>
9
- </div>
10
- <div class="col-sm-10">
11
- <tabset v-ref:tabs :close="false">
12
- <tab :header='header' style="background-color :#ffffff!important;overflow: auto;">
13
- <supervisory-service-control :selectdata="selectdata" ></supervisory-service-control>
14
- </tab>
15
- <tab header='附件' style="background-color :#ffffff!important;overflow: auto;">
16
- <upload v-ref:file :blodid = "selectdata.f_process_id" :isusetype = "false" :isremark ="false"
17
- :isupload = "true"
18
- :takeimg = "true"
19
- :edit = "false">
20
- </upload>
21
- </tab>
22
- </tabset>
23
- </div>
24
- </div>
25
- </div>
26
- </template>
27
- <script>
28
- import Vue from 'vue'
29
- import {HttpResetClass} from 'vue-client'
30
- export default {
31
- title: '流程监控',
32
- props: ['defname'],
33
- data () {
34
- return {
35
- flagl: false,
36
- flagg: false,
37
- showbasic: false, // 控制节点列表显示
38
- showtotal: false, // 控制详细信息显示
39
- header: null,
40
- selectdata: {},
41
- botheight: '0%', // 详细信息显示高度
42
- topheight: '100%', // 工程列表显示高度
43
- info: '流程监控',
44
- xmlname: '' // 配置文件名称
45
- }
46
- },
47
- created () {
48
- },
49
- methods: {
50
- // 获取页面配置json文件
51
- async loadName () {
52
- let http = new HttpResetClass()
53
- let xmldata = {
54
- data: this.$login.f,
55
- workname: this.xmlname
56
- }
57
- let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
58
-
59
- if (res.data.code && res.data.code === 200) {
60
- Vue.prototype.$workflow_vue = res.data.workflow_vue
61
- } else {
62
- this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
63
- return
64
- }
65
- }
66
- },
67
- events: {
68
- 'onMessage' (data) {
69
- console.log('接收消息')
70
- console.log(data)
71
- if (data.type === 'apply-task') {
72
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
73
- }
74
- },
75
- async 'apply' (val) {
76
- this.selectdata = val
77
- this.showtotal = false
78
-
79
- if (this.selectdata.f_apply_type === '集中报建') {
80
- this.xmlname = '集中报建流程'
81
- } else if (this.selectdata.f_apply_type === '散户报建') {
82
- this.xmlname = '散户报建流程'
83
- } else if (this.selectdata.f_apply_type === '非民用报建') {
84
- this.xmlname = '非民用报建流程'
85
- } else {
86
- this.$showMessage('暂无此类报装')
87
- return
88
- }
89
-
90
- // 获取配置文件
91
- await this.loadName()
92
-
93
- this.topheight = '10%'
94
- this.botheight = '90%'
95
- // this.$refs.queryuser.$refs.cp.$refs.grid.model.rows = [val]
96
- this.header = this.selectdata.defname
97
- this.$refs.queryuser.$refs.cp.pager = false
98
- this.showbasic = true
99
- this.showtotal = true
100
-
101
- },
102
- 'close'() {
103
- this.showbasic = false
104
- this.showtotal = false
105
- this.topheight = '100%'
106
- this.botheight = '0%'
107
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
108
- this.$refs.queryuser.$refs.cp.pager = true
109
- },
110
- 'hidden' (criteriaShow) {
111
- if (!this.showtotal && !criteriaShow) {
112
-
113
- }
114
- if (!this.showtotal && criteriaShow) {
115
-
116
- }
117
- if (this.showtotal && !criteriaShow) {
118
- this.topheight = '20%'
119
- this.botheight = '80%'
120
- }
121
- if (this.showtotal && criteriaShow) {
122
- this.topheight = '10%'
123
- this.botheight = '90%'
124
- }
125
-
126
- }
127
- },
128
-
129
- watch: {
130
- }
131
- }
132
- </script>
1
+ <template>
2
+ <div class="basic-main" style="overflow:auto;">
3
+ <div class="tops" v-bind:style="{ height: topheight }">
4
+ <supervisory-list v-ref:queryuser></supervisory-list>
5
+ </div>
6
+ <div v-if="showtotal" v-bind:style="{ height: botheight }">
7
+ <div class="col-sm-2" v-if="showbasic">
8
+ <supervisory-chart :selectdata="selectdata" :defname = "header"></supervisory-chart>
9
+ </div>
10
+ <div class="col-sm-10">
11
+ <tabset v-ref:tabs :close="false">
12
+ <tab :header='header' style="background-color :#ffffff!important;overflow: auto;">
13
+ <supervisory-service-control :selectdata="selectdata" ></supervisory-service-control>
14
+ </tab>
15
+ <tab header='附件' style="background-color :#ffffff!important;overflow: auto;">
16
+ <upload v-ref:file :blodid = "selectdata.f_process_id" :isusetype = "false" :isremark ="false"
17
+ :isupload = "true"
18
+ :takeimg = "true"
19
+ :edit = "false">
20
+ </upload>
21
+ </tab>
22
+ </tabset>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </template>
27
+ <script>
28
+ import Vue from 'vue'
29
+ import {HttpResetClass} from 'vue-client'
30
+ export default {
31
+ title: '流程监控',
32
+ props: ['defname'],
33
+ data () {
34
+ return {
35
+ flagl: false,
36
+ flagg: false,
37
+ showbasic: false, // 控制节点列表显示
38
+ showtotal: false, // 控制详细信息显示
39
+ header: null,
40
+ selectdata: {},
41
+ botheight: '0%', // 详细信息显示高度
42
+ topheight: '100%', // 工程列表显示高度
43
+ info: '流程监控',
44
+ xmlname: '' // 配置文件名称
45
+ }
46
+ },
47
+ created () {
48
+ },
49
+ methods: {
50
+ // 获取页面配置json文件
51
+ async loadName () {
52
+ let http = new HttpResetClass()
53
+ let xmldata = {
54
+ data: this.$login.f,
55
+ workname: this.xmlname
56
+ }
57
+ let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
58
+
59
+ if (res.data.code && res.data.code === 200) {
60
+ Vue.prototype.$workflow_vue = res.data.workflow_vue
61
+ } else {
62
+ this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
63
+ return
64
+ }
65
+ }
66
+ },
67
+ events: {
68
+ 'onMessage' (data) {
69
+ console.log('接收消息')
70
+ console.log(data)
71
+ if (data.type === 'apply-task') {
72
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
73
+ }
74
+ },
75
+ async 'apply' (val) {
76
+ this.selectdata = val
77
+ this.showtotal = false
78
+
79
+ if (this.selectdata.f_apply_type === '集中报建') {
80
+ this.xmlname = '集中报建流程'
81
+ } else if (this.selectdata.f_apply_type === '散户报建') {
82
+ this.xmlname = '散户报建流程'
83
+ } else if (this.selectdata.f_apply_type === '非民用报建') {
84
+ this.xmlname = '非民用报建流程'
85
+ } else {
86
+ this.$showMessage('暂无此类报装')
87
+ return
88
+ }
89
+
90
+ // 获取配置文件
91
+ await this.loadName()
92
+
93
+ this.topheight = '10%'
94
+ this.botheight = '90%'
95
+ // this.$refs.queryuser.$refs.cp.$refs.grid.model.rows = [val]
96
+ this.header = this.selectdata.defname
97
+ this.$refs.queryuser.$refs.cp.pager = false
98
+ this.showbasic = true
99
+ this.showtotal = true
100
+
101
+ },
102
+ 'close'() {
103
+ this.showbasic = false
104
+ this.showtotal = false
105
+ this.topheight = '100%'
106
+ this.botheight = '0%'
107
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
108
+ this.$refs.queryuser.$refs.cp.pager = true
109
+ },
110
+ 'hidden' (criteriaShow) {
111
+ if (!this.showtotal && !criteriaShow) {
112
+
113
+ }
114
+ if (!this.showtotal && criteriaShow) {
115
+
116
+ }
117
+ if (this.showtotal && !criteriaShow) {
118
+ this.topheight = '20%'
119
+ this.botheight = '80%'
120
+ }
121
+ if (this.showtotal && criteriaShow) {
122
+ this.topheight = '10%'
123
+ this.botheight = '90%'
124
+ }
125
+
126
+ }
127
+ },
128
+
129
+ watch: {
130
+ }
131
+ }
132
+ </script>