apply-clients 3.4.2-FuGu-6 → 3.4.2-FuGu-7
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/build/dev-server.js +119 -119
- package/package.json +115 -115
- package/src/components/product/Function/InstallInfoSelect.vue +300 -300
- package/src/components/product/Process/Service/ServiceControl.vue +1249 -1241
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +193 -186
- package/src/components/product/Supervisory/SupervisoryList.vue +2 -2
|
@@ -1,186 +1,193 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto clearfix">
|
|
3
|
-
<show-back-reason :selectdata="show_data"></show-back-reason>
|
|
4
|
-
</div>
|
|
5
|
-
<service-view v-ref:service_show :data="show_data" v-if="showview"></service-view>
|
|
6
|
-
</template>
|
|
7
|
-
<script>
|
|
8
|
-
import Vue from 'vue'
|
|
9
|
-
import {HttpResetClass} from 'vue-client'
|
|
10
|
-
// Date格式化
|
|
11
|
-
Date.prototype.Format = function (fmt) {
|
|
12
|
-
var o = {
|
|
13
|
-
'M+': this.getMonth() + 1, // 月份
|
|
14
|
-
'd+': this.getDate(), // 日
|
|
15
|
-
'H+': this.getHours(), // 小时
|
|
16
|
-
'm+': this.getMinutes(), // 分
|
|
17
|
-
's+': this.getSeconds(), // 秒
|
|
18
|
-
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
19
|
-
'S': this.getMilliseconds() // 毫秒
|
|
20
|
-
}
|
|
21
|
-
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
22
|
-
for (var k in o) {
|
|
23
|
-
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
24
|
-
}
|
|
25
|
-
return fmt
|
|
26
|
-
}
|
|
27
|
-
export default {
|
|
28
|
-
title: '报建监控控制层',
|
|
29
|
-
props: {
|
|
30
|
-
selectdata: {
|
|
31
|
-
type: Object
|
|
32
|
-
},
|
|
33
|
-
nodeSnapshot: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: false
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
data() {
|
|
39
|
-
return {
|
|
40
|
-
data: null, // 展示的数据
|
|
41
|
-
json_datas: null, // json配置数据结构
|
|
42
|
-
showview: false, // 控制显示层显示
|
|
43
|
-
show_data: null
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
created () {
|
|
47
|
-
this.refurbish()
|
|
48
|
-
},
|
|
49
|
-
methods: {
|
|
50
|
-
// 初始化模块
|
|
51
|
-
async refurbish() {
|
|
52
|
-
this.json_datas = this.$workflow_vue
|
|
53
|
-
let sum = 0
|
|
54
|
-
let jsonData = {}
|
|
55
|
-
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
|
|
56
|
-
this.$showMessage("网络故障,请刷新页面")
|
|
57
|
-
return
|
|
58
|
-
}
|
|
59
|
-
this.json_datas.activitys.forEach(item => {
|
|
60
|
-
if (this.selectdata.defname === item.title) {
|
|
61
|
-
jsonData = item // 拿到当前节点的json配置信息
|
|
62
|
-
sum++ // 节点名一样的个数
|
|
63
|
-
}
|
|
64
|
-
return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
|
|
65
|
-
})
|
|
66
|
-
if (sum === 0) {
|
|
67
|
-
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
68
|
-
return
|
|
69
|
-
}
|
|
70
|
-
if (sum > 1) {
|
|
71
|
-
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
72
|
-
return
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
this.data = null
|
|
76
|
-
this.data = jsonData
|
|
77
|
-
this.data = Object.assign({}, this.data, this.selectdata)
|
|
78
|
-
|
|
79
|
-
// fields 字段填充值
|
|
80
|
-
this.data.fields.forEach(item => {
|
|
81
|
-
if (this.selectdata[item.field]) {
|
|
82
|
-
item.value = this.selectdata[item.field]
|
|
83
|
-
}
|
|
84
|
-
if (this.selectdata[item.field] === 0) {
|
|
85
|
-
item.value = 0
|
|
86
|
-
}
|
|
87
|
-
item.readonly = true
|
|
88
|
-
item.disabled = true
|
|
89
|
-
})
|
|
90
|
-
|
|
91
|
-
// 控制组件
|
|
92
|
-
if (this.data.components) {
|
|
93
|
-
this.data.components.forEach(item => {
|
|
94
|
-
item.mark = 1
|
|
95
|
-
})
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// onetomany 数据获取
|
|
99
|
-
if (this.data.onetomany) {
|
|
100
|
-
for (const item of this.data.onetomany) {
|
|
101
|
-
let res = null
|
|
102
|
-
if (item.queryEvent) {
|
|
103
|
-
res = this[item.queryEvent]()
|
|
104
|
-
} else {
|
|
105
|
-
let data = {
|
|
106
|
-
tablename: item.tables[0],
|
|
107
|
-
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
108
|
-
}
|
|
109
|
-
res = await this.$resetpost(
|
|
110
|
-
'rs/sql/singleTable',
|
|
111
|
-
{data: data},
|
|
112
|
-
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
113
|
-
)
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
item.rows = res.data
|
|
117
|
-
|
|
118
|
-
// 隐藏所有操作
|
|
119
|
-
item.hiddenOperate = true
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// 去除button
|
|
124
|
-
this.data.buttons = null
|
|
125
|
-
|
|
126
|
-
// 完成时间和完成人,部门,分公司
|
|
127
|
-
if (this.selectdata.state === '结束') {
|
|
128
|
-
let http = new HttpResetClass()
|
|
129
|
-
let res = await http.load('POST', 'rs/search', {
|
|
130
|
-
source: 'this.getInfo()',
|
|
131
|
-
userid: this.selectdata.userid
|
|
132
|
-
}, {resolveMsg: null, rejectMsg: null})
|
|
133
|
-
let user = res.data
|
|
134
|
-
this.data.operate_date = new Date(this.selectdata.finishtime).Format('yyyy-MM-dd')
|
|
135
|
-
this.data.operator = this.selectdata.person
|
|
136
|
-
this.data.orgs = user.orgs
|
|
137
|
-
this.data.parentname = user.deps
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto clearfix">
|
|
3
|
+
<show-back-reason :selectdata="show_data"></show-back-reason>
|
|
4
|
+
</div>
|
|
5
|
+
<service-view v-ref:service_show :data="show_data" v-if="showview"></service-view>
|
|
6
|
+
</template>
|
|
7
|
+
<script>
|
|
8
|
+
import Vue from 'vue'
|
|
9
|
+
import {HttpResetClass} from 'vue-client'
|
|
10
|
+
// Date格式化
|
|
11
|
+
Date.prototype.Format = function (fmt) {
|
|
12
|
+
var o = {
|
|
13
|
+
'M+': this.getMonth() + 1, // 月份
|
|
14
|
+
'd+': this.getDate(), // 日
|
|
15
|
+
'H+': this.getHours(), // 小时
|
|
16
|
+
'm+': this.getMinutes(), // 分
|
|
17
|
+
's+': this.getSeconds(), // 秒
|
|
18
|
+
'q+': Math.floor((this.getMonth() + 3) / 3), // 季度
|
|
19
|
+
'S': this.getMilliseconds() // 毫秒
|
|
20
|
+
}
|
|
21
|
+
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
22
|
+
for (var k in o) {
|
|
23
|
+
if (new RegExp('(' + k + ')').test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
24
|
+
}
|
|
25
|
+
return fmt
|
|
26
|
+
}
|
|
27
|
+
export default {
|
|
28
|
+
title: '报建监控控制层',
|
|
29
|
+
props: {
|
|
30
|
+
selectdata: {
|
|
31
|
+
type: Object
|
|
32
|
+
},
|
|
33
|
+
nodeSnapshot: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
data() {
|
|
39
|
+
return {
|
|
40
|
+
data: null, // 展示的数据
|
|
41
|
+
json_datas: null, // json配置数据结构
|
|
42
|
+
showview: false, // 控制显示层显示
|
|
43
|
+
show_data: null
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
created () {
|
|
47
|
+
this.refurbish()
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
// 初始化模块
|
|
51
|
+
async refurbish() {
|
|
52
|
+
this.json_datas = this.$workflow_vue
|
|
53
|
+
let sum = 0
|
|
54
|
+
let jsonData = {}
|
|
55
|
+
if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
|
|
56
|
+
this.$showMessage("网络故障,请刷新页面")
|
|
57
|
+
return
|
|
58
|
+
}
|
|
59
|
+
this.json_datas.activitys.forEach(item => {
|
|
60
|
+
if (this.selectdata.defname === item.title) {
|
|
61
|
+
jsonData = item // 拿到当前节点的json配置信息
|
|
62
|
+
sum++ // 节点名一样的个数
|
|
63
|
+
}
|
|
64
|
+
return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
|
|
65
|
+
})
|
|
66
|
+
if (sum === 0) {
|
|
67
|
+
this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
|
|
68
|
+
return
|
|
69
|
+
}
|
|
70
|
+
if (sum > 1) {
|
|
71
|
+
this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
|
|
72
|
+
return
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
this.data = null
|
|
76
|
+
this.data = jsonData
|
|
77
|
+
this.data = Object.assign({}, this.data, this.selectdata)
|
|
78
|
+
|
|
79
|
+
// fields 字段填充值
|
|
80
|
+
this.data.fields.forEach(item => {
|
|
81
|
+
if (this.selectdata[item.field]) {
|
|
82
|
+
item.value = this.selectdata[item.field]
|
|
83
|
+
}
|
|
84
|
+
if (this.selectdata[item.field] === 0) {
|
|
85
|
+
item.value = 0
|
|
86
|
+
}
|
|
87
|
+
item.readonly = true
|
|
88
|
+
item.disabled = true
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
// 控制组件
|
|
92
|
+
if (this.data.components) {
|
|
93
|
+
this.data.components.forEach(item => {
|
|
94
|
+
item.mark = 1
|
|
95
|
+
})
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// onetomany 数据获取
|
|
99
|
+
if (this.data.onetomany) {
|
|
100
|
+
for (const item of this.data.onetomany) {
|
|
101
|
+
let res = null
|
|
102
|
+
if (item.queryEvent) {
|
|
103
|
+
res = this[item.queryEvent]()
|
|
104
|
+
} else {
|
|
105
|
+
let data = {
|
|
106
|
+
tablename: item.tables[0],
|
|
107
|
+
condition: `f_process_id='${this.selectdata.f_process_id}'`
|
|
108
|
+
}
|
|
109
|
+
res = await this.$resetpost(
|
|
110
|
+
'rs/sql/singleTable',
|
|
111
|
+
{data: data},
|
|
112
|
+
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
item.rows = res.data
|
|
117
|
+
|
|
118
|
+
// 隐藏所有操作
|
|
119
|
+
item.hiddenOperate = true
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// 去除button
|
|
124
|
+
this.data.buttons = null
|
|
125
|
+
|
|
126
|
+
// 完成时间和完成人,部门,分公司
|
|
127
|
+
if (this.selectdata.state === '结束') {
|
|
128
|
+
let http = new HttpResetClass()
|
|
129
|
+
let res = await http.load('POST', 'rs/search', {
|
|
130
|
+
source: 'this.getInfo()',
|
|
131
|
+
userid: this.selectdata.userid
|
|
132
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
133
|
+
let user = res.data
|
|
134
|
+
this.data.operate_date = new Date(this.selectdata.finishtime).Format('yyyy-MM-dd')
|
|
135
|
+
this.data.operator = this.selectdata.person
|
|
136
|
+
this.data.orgs = user.orgs
|
|
137
|
+
this.data.parentname = user.deps
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (this.data.f_apply_source === '微信公众号' && this.data.defname === '现场勘察') {
|
|
141
|
+
for (const item of this.data.fields) {
|
|
142
|
+
if (item.label==='预约地址' || item.label==='地址类型' || item.label==='片区' || item.label==='区/县' || item.label==='街道' || item.label==='小区') {
|
|
143
|
+
item.hidden = false
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
148
|
+
let temp = JSON.parse(JSON.stringify(this.data))
|
|
149
|
+
|
|
150
|
+
this.show_data = temp
|
|
151
|
+
this.$nextTick(() => {
|
|
152
|
+
this.showview = true
|
|
153
|
+
})
|
|
154
|
+
},
|
|
155
|
+
// json配置数据处理
|
|
156
|
+
async initializtion() {
|
|
157
|
+
// 查询是否有当前节点快照信息,如果有使用快照数据,没有则展示最新数据
|
|
158
|
+
if (this.nodeSnapshot && this.data.nodeSnapshot) {
|
|
159
|
+
let http = new HttpResetClass()
|
|
160
|
+
let data = {
|
|
161
|
+
tablename: 't_node_snapshot',
|
|
162
|
+
condition: `actid = '${this.selectdata.actid}' and f_process_id='${this.selectdata.f_process_id}'`
|
|
163
|
+
}
|
|
164
|
+
let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
|
|
165
|
+
resolveMsg: null,
|
|
166
|
+
rejectMsg: null
|
|
167
|
+
})
|
|
168
|
+
if (res.data.length > 0) {
|
|
169
|
+
data = JSON.parse(res.data[0].f_node_data)
|
|
170
|
+
|
|
171
|
+
this.data.fields = data.fields
|
|
172
|
+
this.data.onetomany = data.onetomany
|
|
173
|
+
this.data.title = data.title
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
events:{
|
|
179
|
+
},
|
|
180
|
+
watch: {
|
|
181
|
+
deep: true
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
</script>
|
|
185
|
+
<style scoped>
|
|
186
|
+
/*清除model中的浮动*/
|
|
187
|
+
.clearfix:after,.clearfix:before{
|
|
188
|
+
display: table;
|
|
189
|
+
}
|
|
190
|
+
.clearfix:after{
|
|
191
|
+
clear: both;
|
|
192
|
+
}
|
|
193
|
+
</style>
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
<tr>
|
|
122
122
|
<th style="white-space: nowrap;">序号</th>
|
|
123
123
|
<th style="white-space: nowrap;">报建编号</th>
|
|
124
|
-
<th style="white-space: nowrap;"
|
|
124
|
+
<th style="white-space: nowrap;">客户名称/联系人</th>
|
|
125
125
|
<th style="white-space: nowrap;">合同编号</th>
|
|
126
126
|
<th style="white-space: nowrap;">电话</th>
|
|
127
127
|
<th style="white-space: nowrap;">地址</th>
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
<nobr>{{row.f_apply_num}}</nobr>
|
|
141
141
|
</td>
|
|
142
142
|
<td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
|
|
143
|
-
<nobr>{{row.
|
|
143
|
+
<nobr>{{row.f_user_name}}/{{row.f_contact}}</nobr>
|
|
144
144
|
</td>
|
|
145
145
|
<td @click="$parent.$parent.$parent.check(row)" style="text-align: center;">
|
|
146
146
|
<nobr>{{row.f_contract_number}}</nobr>
|