apply-clients 3.0.5-2 → 3.0.5-21
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 +5 -4
- package/src/App.vue +3 -2
- package/src/apply.js +2 -0
- package/src/components/product/Function/InstallFunction.vue +1 -1
- package/src/components/product/Function/InstallInfoSelect.vue +243 -221
- package/src/components/product/Process/ExplorationSelect.vue +62 -21
- package/src/components/product/Process/ExplorationUser.vue +200 -193
- package/src/components/product/Process/ProcessInfo/history_control.vue +139 -139
- package/src/components/product/Process/Processes/ApplyUpload.vue +287 -279
- package/src/components/product/Process/Processes/CustomerCostPlan.vue +214 -0
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +73 -7
- package/src/components/product/ServiceView.vue +12 -1
- package/src/components/product/Supervisory/SupervisoryControl.vue +196 -190
- package/src/components/product/Supervisory/SupervisoryList.vue +361 -331
- package/dist.zip +0 -0
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto" style="padding-right:5px; padding-top: 10px;" v-if="refreshed">
|
|
3
|
-
<validator name="v">
|
|
4
|
-
|
|
5
|
-
<div v-for="(index,item) in data" class="panel" v-bind:class="{'panel-default': showpanl[index].showdef, ' panel-info ' : showpanl[index].showinfo}">
|
|
6
|
-
<div :class="{'panel-heading background-default':showpanl[index].show,'panel-heading':!showpanl[index].show}" @click ="hello(index)">
|
|
7
|
-
<h3 class="panel-title">{{item.title}}信息<span class="pull-right glyphicon" v-bind:class="{'glyphicon-chevron-right': showpanl[index].show, 'glyphicon-chevron-down' : showpanl[index].hasError}"></span></h3>
|
|
8
|
-
</div>
|
|
9
|
-
<div class="panel-body" v-if="showpanl[index].hasError">
|
|
10
|
-
<div class="col-sm-12">
|
|
11
|
-
<div v-for="(index2,row) in item.fields">
|
|
12
|
-
<span v-if="row.hasOwnProperty('field')" class="col-sm-12">{{item.fields[index2].label}}:{{item.fields[index2].value}}</span>
|
|
13
|
-
<span v-else class="col-sm-12" v-for="(index3,arr) in row.items">{{arr.label}}:{{arr.value?'是':'否'}}</span>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
</validator>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
<script>
|
|
23
|
-
import {HttpResetClass} from 'vue-client'
|
|
24
|
-
export default {
|
|
25
|
-
title: '通气点火信息',
|
|
26
|
-
data () {
|
|
27
|
-
return {
|
|
28
|
-
data:null,
|
|
29
|
-
defnames:null,
|
|
30
|
-
refreshed:true,
|
|
31
|
-
showpanl:[]
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
props: ['selectdata'],
|
|
35
|
-
methods: {
|
|
36
|
-
// 初始化 [{label:xx,value:vvv,filed}]
|
|
37
|
-
initializtion(){
|
|
38
|
-
let tempArray =[]
|
|
39
|
-
// 按照数据库defname的顺序排序
|
|
40
|
-
for(let i = 0;i<this.defnames.length;i++){
|
|
41
|
-
// 配置文件title循环
|
|
42
|
-
for(let j = 0;j<this.$workflow_vue.activitys.length;j++){
|
|
43
|
-
if(this.defnames[i].defname===this.$workflow_vue.activitys[j].title){
|
|
44
|
-
let temp = JSON.parse(JSON.stringify(this.$workflow_vue.activitys[j]))
|
|
45
|
-
if(this.defnames[i].hasOwnProperty('person')){
|
|
46
|
-
temp.person = this.defnames[i].person
|
|
47
|
-
}
|
|
48
|
-
this.showpanl.push({hasError:false,show:true,showdef:true,showinfo:false})
|
|
49
|
-
tempArray.push(temp)
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
// 给排序后的数组填充数据
|
|
54
|
-
for(let i=0;i<tempArray.length;i++){
|
|
55
|
-
for(let j = 0;j<tempArray[i].fields.length;j++){
|
|
56
|
-
if(tempArray[i].fields[j].hasOwnProperty('field')){
|
|
57
|
-
if((tempArray[i].fields[j].label=='项目预算金额' ||
|
|
58
|
-
tempArray[i].fields[j].label=='设计费成本' ||
|
|
59
|
-
tempArray[i].fields[j].label=='材料预算成本' ||
|
|
60
|
-
tempArray[i].fields[j].label=='施工预算成本' ||
|
|
61
|
-
tempArray[i].fields[j].label=='探伤预算成本' ||
|
|
62
|
-
tempArray[i].fields[j].label=='检测预算成本' ||
|
|
63
|
-
tempArray[i].fields[j].label=='其他预算成本' ||
|
|
64
|
-
tempArray[i].fields[j].label=='首付'||
|
|
65
|
-
tempArray[i].fields[j].label=='进度款'||
|
|
66
|
-
tempArray[i].fields[j].label=='尾款' ) && this.$login.f.f_parentname !== '市场部'){
|
|
67
|
-
tempArray[i].fields[j].value = '隐藏数据'
|
|
68
|
-
}else{
|
|
69
|
-
tempArray[i].fields[j].value = this.selectdata[tempArray[i].fields[j].field]
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
}else if(tempArray[i].fields[j].hasOwnProperty('items')){
|
|
73
|
-
for(let k = 0;k<tempArray[i].fields[j].items.length;k++){
|
|
74
|
-
tempArray[i].fields[j].items[k].value = this.selectdata[tempArray[i].fields[j].items[k].field]
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if(tempArray[i].fields[j].value&&typeof tempArray[i].fields[j].value =='string'&&tempArray[i].fields[j].value.startsWith('{')&&tempArray[i].fields[j].value.endsWith('}')){
|
|
78
|
-
let temp = JSON.parse(tempArray[i].fields[j].value)
|
|
79
|
-
tempArray[i].fields[j].value = temp.name
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
this.data = tempArray
|
|
84
|
-
this.refreshed =false
|
|
85
|
-
this.$nextTick(()=>{
|
|
86
|
-
this.refreshed =true
|
|
87
|
-
this.hello(9999999)
|
|
88
|
-
})
|
|
89
|
-
},
|
|
90
|
-
hello (index) {
|
|
91
|
-
if (!this.selectdata.defname) {
|
|
92
|
-
return
|
|
93
|
-
}
|
|
94
|
-
if(index==9999999){
|
|
95
|
-
console.log("this.showpanl:"+this.showpanl)
|
|
96
|
-
this.showpanl[0].hasError = true
|
|
97
|
-
return
|
|
98
|
-
}
|
|
99
|
-
if (this.showpanl[index].show) {
|
|
100
|
-
this.showpanl[index].show = false
|
|
101
|
-
this.showpanl[index].hasError = true
|
|
102
|
-
} else {
|
|
103
|
-
this.showpanl[index].show = true
|
|
104
|
-
this.showpanl[index].hasError= false
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
watch:{
|
|
109
|
-
async 'selectdata'(){
|
|
110
|
-
let http = new HttpResetClass()
|
|
111
|
-
var temp = []
|
|
112
|
-
if(this.selectdata){
|
|
113
|
-
let res = await http.load('POST','rs/sql/getdefname',{data:{processid:this.selectdata.f_process_id}},{resolveMsg:null, rejectMsg:null})
|
|
114
|
-
//循环去除回退导致重复的节点
|
|
115
|
-
for (var i = 0; i < res.data.length; i++) {
|
|
116
|
-
var flag = true
|
|
117
|
-
for (var j = 0; j< temp.length; j++){
|
|
118
|
-
if(res.data[i].defname == temp[j].defname){
|
|
119
|
-
flag = false
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
if(flag){
|
|
123
|
-
temp.push(res.data[i])
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
this.defnames = temp
|
|
127
|
-
}
|
|
128
|
-
// 初始化开始
|
|
129
|
-
this.initializtion()
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
</script>
|
|
134
|
-
<style scoped>
|
|
135
|
-
.background-default{
|
|
136
|
-
background-color: #F2F6FA;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto" style="padding-right:5px; padding-top: 10px;" v-if="refreshed">
|
|
3
|
+
<validator name="v">
|
|
4
|
+
|
|
5
|
+
<div v-for="(index,item) in data" class="panel" v-bind:class="{'panel-default': showpanl[index].showdef, ' panel-info ' : showpanl[index].showinfo}">
|
|
6
|
+
<div :class="{'panel-heading background-default':showpanl[index].show,'panel-heading':!showpanl[index].show}" @click ="hello(index)">
|
|
7
|
+
<h3 class="panel-title">{{item.title}}信息<span class="pull-right glyphicon" v-bind:class="{'glyphicon-chevron-right': showpanl[index].show, 'glyphicon-chevron-down' : showpanl[index].hasError}"></span></h3>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="panel-body" v-if="showpanl[index].hasError">
|
|
10
|
+
<div class="col-sm-12">
|
|
11
|
+
<div v-for="(index2,row) in item.fields">
|
|
12
|
+
<span v-if="row.hasOwnProperty('field')" class="col-sm-12">{{item.fields[index2].label}}:{{item.fields[index2].value}}</span>
|
|
13
|
+
<span v-else class="col-sm-12" v-for="(index3,arr) in row.items">{{arr.label}}:{{arr.value?'是':'否'}}</span>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
</validator>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
<script>
|
|
23
|
+
import {HttpResetClass} from 'vue-client'
|
|
24
|
+
export default {
|
|
25
|
+
title: '通气点火信息',
|
|
26
|
+
data () {
|
|
27
|
+
return {
|
|
28
|
+
data:null,
|
|
29
|
+
defnames:null,
|
|
30
|
+
refreshed:true,
|
|
31
|
+
showpanl:[]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
props: ['selectdata'],
|
|
35
|
+
methods: {
|
|
36
|
+
// 初始化 [{label:xx,value:vvv,filed}]
|
|
37
|
+
initializtion(){
|
|
38
|
+
let tempArray =[]
|
|
39
|
+
// 按照数据库defname的顺序排序
|
|
40
|
+
for(let i = 0;i<this.defnames.length;i++){
|
|
41
|
+
// 配置文件title循环
|
|
42
|
+
for(let j = 0;j<this.$workflow_vue.activitys.length;j++){
|
|
43
|
+
if(this.defnames[i].defname===this.$workflow_vue.activitys[j].title){
|
|
44
|
+
let temp = JSON.parse(JSON.stringify(this.$workflow_vue.activitys[j]))
|
|
45
|
+
if(this.defnames[i].hasOwnProperty('person')){
|
|
46
|
+
temp.person = this.defnames[i].person
|
|
47
|
+
}
|
|
48
|
+
this.showpanl.push({hasError:false,show:true,showdef:true,showinfo:false})
|
|
49
|
+
tempArray.push(temp)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// 给排序后的数组填充数据
|
|
54
|
+
for(let i=0;i<tempArray.length;i++){
|
|
55
|
+
for(let j = 0;j<tempArray[i].fields.length;j++){
|
|
56
|
+
if(tempArray[i].fields[j].hasOwnProperty('field')){
|
|
57
|
+
if((tempArray[i].fields[j].label=='项目预算金额' ||
|
|
58
|
+
tempArray[i].fields[j].label=='设计费成本' ||
|
|
59
|
+
tempArray[i].fields[j].label=='材料预算成本' ||
|
|
60
|
+
tempArray[i].fields[j].label=='施工预算成本' ||
|
|
61
|
+
tempArray[i].fields[j].label=='探伤预算成本' ||
|
|
62
|
+
tempArray[i].fields[j].label=='检测预算成本' ||
|
|
63
|
+
tempArray[i].fields[j].label=='其他预算成本' ||
|
|
64
|
+
tempArray[i].fields[j].label=='首付'||
|
|
65
|
+
tempArray[i].fields[j].label=='进度款'||
|
|
66
|
+
tempArray[i].fields[j].label=='尾款' ) && this.$login.f.f_parentname !== '市场部'){
|
|
67
|
+
tempArray[i].fields[j].value = '隐藏数据'
|
|
68
|
+
}else{
|
|
69
|
+
tempArray[i].fields[j].value = this.selectdata[tempArray[i].fields[j].field]
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
}else if(tempArray[i].fields[j].hasOwnProperty('items')){
|
|
73
|
+
for(let k = 0;k<tempArray[i].fields[j].items.length;k++){
|
|
74
|
+
tempArray[i].fields[j].items[k].value = this.selectdata[tempArray[i].fields[j].items[k].field]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if(tempArray[i].fields[j].value&&typeof tempArray[i].fields[j].value =='string'&&tempArray[i].fields[j].value.startsWith('{')&&tempArray[i].fields[j].value.endsWith('}')){
|
|
78
|
+
let temp = JSON.parse(tempArray[i].fields[j].value)
|
|
79
|
+
tempArray[i].fields[j].value = temp.name
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
this.data = tempArray
|
|
84
|
+
this.refreshed =false
|
|
85
|
+
this.$nextTick(()=>{
|
|
86
|
+
this.refreshed =true
|
|
87
|
+
this.hello(9999999)
|
|
88
|
+
})
|
|
89
|
+
},
|
|
90
|
+
hello (index) {
|
|
91
|
+
if (!this.selectdata.defname) {
|
|
92
|
+
return
|
|
93
|
+
}
|
|
94
|
+
if(index==9999999){
|
|
95
|
+
console.log("this.showpanl:"+this.showpanl)
|
|
96
|
+
this.showpanl[0].hasError = true
|
|
97
|
+
return
|
|
98
|
+
}
|
|
99
|
+
if (this.showpanl[index].show) {
|
|
100
|
+
this.showpanl[index].show = false
|
|
101
|
+
this.showpanl[index].hasError = true
|
|
102
|
+
} else {
|
|
103
|
+
this.showpanl[index].show = true
|
|
104
|
+
this.showpanl[index].hasError= false
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
watch:{
|
|
109
|
+
async 'selectdata'(){
|
|
110
|
+
let http = new HttpResetClass()
|
|
111
|
+
var temp = []
|
|
112
|
+
if(this.selectdata){
|
|
113
|
+
let res = await http.load('POST','rs/sql/getdefname',{data:{processid:this.selectdata.f_process_id}},{resolveMsg:null, rejectMsg:null})
|
|
114
|
+
//循环去除回退导致重复的节点
|
|
115
|
+
for (var i = 0; i < res.data.length; i++) {
|
|
116
|
+
var flag = true
|
|
117
|
+
for (var j = 0; j< temp.length; j++){
|
|
118
|
+
if(res.data[i].defname == temp[j].defname){
|
|
119
|
+
flag = false
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if(flag){
|
|
123
|
+
temp.push(res.data[i])
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
this.defnames = temp
|
|
127
|
+
}
|
|
128
|
+
// 初始化开始
|
|
129
|
+
this.initializtion()
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
</script>
|
|
134
|
+
<style scoped>
|
|
135
|
+
.background-default{
|
|
136
|
+
background-color: #F2F6FA;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
</style>
|