apply-clients 3.0.2 → 3.0.5-2
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/dist.zip +0 -0
- package/index.html +1 -1
- package/package.json +4 -3
- package/src/App.vue +126 -15
- package/src/apply.js +18 -0
- package/src/bootstrap/fonts/PingFangSC-Regular.ttf +0 -0
- package/src/bootstrap/less/bootstrap.less +1 -2
- package/src/bootstrap/less/standard.less +208 -0
- package/src/components/Util.js +4 -0
- package/src/components/app_apply/FieldExploration.vue +2 -2
- package/src/components/app_apply/Ventilation.vue +2 -2
- package/src/components/image/doc.jpg +0 -0
- package/src/components/image/excel.jpg +0 -0
- package/src/components/image/pdf.jpg +0 -0
- package/src/components/image//345/233/276/345/261/20212.png +0 -0
- package/src/components/image//345/233/276/345/261/20213.png +0 -0
- package/src/components/image//345/233/276/345/261/20216.png +0 -0
- package/src/components/image//345/244/232/350/276/271/345/275/2422.png +0 -0
- package/src/components/image//345/244/232/350/276/271/345/275/2422/346/213/267/350/264/235.png +0 -0
- package/src/components/image//346/244/255/345/234/2062.png +0 -0
- package/src/components/image//346/244/255/345/234/2065.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2352.png +0 -0
- package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2353.png +0 -0
- package/src/components/image//347/273/2044.png +0 -0
- package/src/components/image//347/273/2045.png +0 -0
- package/src/components/image//347/273/2046.png +0 -0
- package/src/components/image//350/257/235/345/212/241/347/273/237/350/256/241/346/225/260/346/215/256/345/261/225/347/244/272.png +0 -0
- package/src/components/product/Function/InstallFunction.vue +9 -8
- package/src/components/product/Function/InstallInfoSelect.vue +98 -69
- package/src/components/product/Function/Service/FunctionServiceControl.vue +81 -3
- package/src/components/product/Function/functions/AddContract.vue +161 -139
- package/src/components/product/Function/functions/BuyerMessage.vue +522 -0
- package/src/components/product/Function/functions/InstallFee.vue +1117 -891
- package/src/components/product/MaterialBatchList.vue +109 -0
- package/src/components/product/MaterialBatchManage.vue +34 -0
- package/src/components/product/Procedures/ProceduresDataGrid.vue +1022 -0
- package/src/components/product/Process/ExplorationSelect.vue +208 -73
- package/src/components/product/Process/ExplorationUser.vue +94 -42
- package/src/components/product/Process/MaterialUseList.vue +159 -0
- package/src/components/product/Process/ModifyUserFiles.vue +15 -5
- package/src/components/product/Process/ProcessInfo/history_control.vue +139 -110
- package/src/components/product/Process/Processes/ApplyUpload.vue +279 -0
- package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +501 -212
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +949 -753
- package/src/components/product/Process/Processes/ProjectSettlement.vue +549 -35
- package/src/components/product/Process/Processes/ReceiveBatch.vue +314 -168
- package/src/components/product/Process/Processes/Service/ApplyChangeHistory.vue +105 -0
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +44 -16
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +2495 -1008
- package/src/components/product/Process/Processes/Upload.vue +532 -0
- package/src/components/product/Process/ShowBackReason.vue +1 -1
- package/src/components/product/ServiceView.vue +364 -124
- package/src/components/product/Statistics/ApplyStatisticsROOT.vue +27 -0
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +212 -23
- package/src/components/product/Supervisory/SupervisoryControl.vue +79 -29
- package/src/components/product/Supervisory/SupervisoryList.vue +182 -41
- package/src/components/product/Supervisory/SupervisoryhCart.vue +4 -2
- package/src/components/product/VueUtils/Tree.vue +330 -0
- package/src/components/product/VueUtils/rightview/InstallCardList2.vue +29 -38
- package/src/main.js +2 -0
- package/src/stores/ApplyLoadParams.js +1 -1
- package/src/stores/PagedListLogic.js +173 -0
- package/.npmignore +0 -12
- package/node_modules.7z +0 -0
- package/yarn.lock +0 -9008
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id='app'class="flex bg-white p-10 datapanel" >
|
|
3
|
+
<criteria-paged :model="model" :pager='false'>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='search'>
|
|
5
|
+
<div novalidate class="form-inline auto" partial>
|
|
6
|
+
<div class="form-group">
|
|
7
|
+
<div class="form-group">
|
|
8
|
+
<label class="control-label">分公司:</label>
|
|
9
|
+
<!--<right-tree :userid.sync='$parent.$parent.userid' :source.sync='$parent.$parent.source' @re-res="$parent.$parent.getRes" ></right-tree>
|
|
10
|
+
--> <v-select :value.sync="model.f_filiale" v-model="model.f_filiale"
|
|
11
|
+
:options='$parent.$parent.filiale' placeholder='请选择'
|
|
12
|
+
close-on-select>
|
|
13
|
+
</v-select>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="form-group">
|
|
16
|
+
<label class="control-label">报建编号:</label>
|
|
17
|
+
<!--<right-tree :userid.sync='$parent.$parent.userid' :source.sync='$parent.$parent.source' @re-res="$parent.$parent.getRes" ></right-tree>
|
|
18
|
+
--> <v-select :value.sync="model.f_apply_num" v-model="model.f_apply_num"
|
|
19
|
+
:options='$parent.$parent.appnum' placeholder='请选择'
|
|
20
|
+
close-on-select search="">
|
|
21
|
+
</v-select>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="form-group">
|
|
24
|
+
<label for="startDate" class="control-label">开始日期:</label>
|
|
25
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
26
|
+
v-model="model.startDate"
|
|
27
|
+
:value.sync="model.startDate"
|
|
28
|
+
:disabled-days-of-Week="[]"
|
|
29
|
+
:format="'yyyy-MM-dd'"
|
|
30
|
+
:show-reset-button="reset">
|
|
31
|
+
</datepicker></div>
|
|
32
|
+
<div class="form-group" class="control-label">
|
|
33
|
+
<label for="endDate">结束日期:</label>
|
|
34
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
35
|
+
v-model="model.endDate"
|
|
36
|
+
:value.sync="model.endDate"
|
|
37
|
+
:disabled-days-of-Week="[]"
|
|
38
|
+
:format="'yyyy-MM-dd'"
|
|
39
|
+
:show-reset-button="reset">
|
|
40
|
+
</datepicker></div>
|
|
41
|
+
<div class="form-group">
|
|
42
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
43
|
+
<report-print class="button_new button_spacing" id='shexian' top='1cm' left='1cm' width='100%' height='100%'></report-print>
|
|
44
|
+
<report-excel class="button_export button_spacing" id='shexian'></report-excel></div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</criteria>
|
|
48
|
+
<div partial='list' id='shexian'>
|
|
49
|
+
<table class='tableprint' style="margin: 0px auto">
|
|
50
|
+
<thead>
|
|
51
|
+
<tr>
|
|
52
|
+
<th colspan='5' style="font-weight: normal; text-align: left;">
|
|
53
|
+
<h3 style="text-align: center">报建实用材料报表</h3>
|
|
54
|
+
</th>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr>
|
|
57
|
+
<th colspan='5' style="font-weight: normal; text-align: center;">
|
|
58
|
+
开始时间:{{model.model.startDate}}
|
|
59
|
+
结束时间:{{ model.model.endDate }}
|
|
60
|
+
报建编号:{{ model.applynum }}
|
|
61
|
+
</th>
|
|
62
|
+
</tr>
|
|
63
|
+
</thead>
|
|
64
|
+
<tr>
|
|
65
|
+
<th colspan='5' style="font-weight: normal;">
|
|
66
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
67
|
+
</th>
|
|
68
|
+
</tr>
|
|
69
|
+
</table>
|
|
70
|
+
</div>
|
|
71
|
+
</criteria-paged>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
</template>
|
|
75
|
+
|
|
76
|
+
<script>
|
|
77
|
+
import { DataModel } from 'vue-client'
|
|
78
|
+
|
|
79
|
+
export default {
|
|
80
|
+
title: '报表',
|
|
81
|
+
data () {
|
|
82
|
+
|
|
83
|
+
let model = new DataModel('rs/report/materialReport',{startDate: 'this.model.startDate', endDate: 'this.model.endDate',f_filiale: 'this.fengongsi',f_apply_num:'this.applynum'})
|
|
84
|
+
model.f_subcompany = '',
|
|
85
|
+
model.fengongsi = '',
|
|
86
|
+
model.applynum = ''
|
|
87
|
+
return {
|
|
88
|
+
filialeNameStr:'',
|
|
89
|
+
filialeCodeStr:'',
|
|
90
|
+
userid: this.$login.f.id,
|
|
91
|
+
source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
|
|
92
|
+
model:model,
|
|
93
|
+
filiale:[],
|
|
94
|
+
appnum:[]
|
|
95
|
+
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
methods: {
|
|
99
|
+
// 获取组织结构
|
|
100
|
+
getRes(obj) {
|
|
101
|
+
console.log(obj,'se')
|
|
102
|
+
let fengongsi=obj.res.toString().split('.')
|
|
103
|
+
console.log(fengongsi,'se')
|
|
104
|
+
console.log(fengongsi[fengongsi.length-1],'se')
|
|
105
|
+
this.model.f_subcompany = obj.res
|
|
106
|
+
console.log(this.model,'se')
|
|
107
|
+
// this.model.filialeCodeStr = obj.resids
|
|
108
|
+
// this.model.filialeCodeStr = this.model.filialeCodeStr.replace(/\./g, '')
|
|
109
|
+
},
|
|
110
|
+
gethuman(){
|
|
111
|
+
console.log('获取人员')
|
|
112
|
+
this.$resetpost('rs/logic/getMaterialItem', {data: {condition: `1=1`}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
113
|
+
// this.params.rows.splice(index, 1)
|
|
114
|
+
console.log('获取成功',res)
|
|
115
|
+
|
|
116
|
+
let house2 = []
|
|
117
|
+
for (let row of res.data.f){
|
|
118
|
+
house2.push({label: row.f_filiale,value: row.f_filiale})
|
|
119
|
+
}
|
|
120
|
+
this.filiale = house2
|
|
121
|
+
let house3 = [
|
|
122
|
+
{label:'全部',value:''}
|
|
123
|
+
]
|
|
124
|
+
for (let row of res.data.appnum){
|
|
125
|
+
house3.push({label: row.f_apply_num,value: row.f_apply_num})
|
|
126
|
+
}
|
|
127
|
+
this.appnum = house3
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
ready(){
|
|
133
|
+
this.gethuman()
|
|
134
|
+
},
|
|
135
|
+
computed: {
|
|
136
|
+
selected() {
|
|
137
|
+
return this.$refs.grid.selected
|
|
138
|
+
},
|
|
139
|
+
// outlets () {
|
|
140
|
+
// return [{label: '全部', value: ''}, ...AppData.getParam('营业网点')]
|
|
141
|
+
// },
|
|
142
|
+
// operator () {
|
|
143
|
+
// return [{label: '全部', value: ''}, ...AppData.getParam('操作员')]
|
|
144
|
+
// }
|
|
145
|
+
},
|
|
146
|
+
watch :{
|
|
147
|
+
'model.model.f_filiale[0]'(val){
|
|
148
|
+
|
|
149
|
+
this.model.fengongsi = val
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
},
|
|
153
|
+
'model.model.f_apply_num[0]'(val){
|
|
154
|
+
this.model.applynum = val
|
|
155
|
+
|
|
156
|
+
},
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
</script>
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
<td style="text-align: center;">
|
|
96
96
|
<!-- <td style="text-align: center;" v-show= "$parent.$parent.$parent.jurisdiction.includes('档案修正权限')"> -->
|
|
97
97
|
<button type="button" name="button" class="btn btn-link" v-if="row.f_user_state === '正常'"
|
|
98
|
-
@click.stop="$parent.$parent.$parent.modifyinfo(row)"
|
|
98
|
+
@click.stop="$parent.$parent.$parent.modifyinfo(row)">登记</button>
|
|
99
99
|
</td>
|
|
100
100
|
</template>
|
|
101
101
|
</data-grid>
|
|
@@ -137,8 +137,9 @@
|
|
|
137
137
|
|
|
138
138
|
<script>
|
|
139
139
|
|
|
140
|
-
import { PagedList
|
|
140
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
141
141
|
import Vue from 'vue'
|
|
142
|
+
import * as Util from "../../Util";
|
|
142
143
|
|
|
143
144
|
let loadParamGem = async function (self) {
|
|
144
145
|
console.log('获取登录信息,', self.$login, self.$appdata, self.$appdata.getParam('用户类型'), Vue.$login.f.name)
|
|
@@ -153,7 +154,7 @@
|
|
|
153
154
|
'title': '用户档案',
|
|
154
155
|
data () {
|
|
155
156
|
return {
|
|
156
|
-
model: new PagedList('rs/sql/singleTable_OrderBy', 30, {items: '"*"', tablename: '"t_userinfo"', orderitem: '"
|
|
157
|
+
model: new PagedList('rs/sql/singleTable_OrderBy', 30, {items: '"*"', tablename: '"t_userinfo"', orderitem: '"f_userinfo_id desc"'}),
|
|
157
158
|
row: null, // 选择一条用户信息,对其进行修改
|
|
158
159
|
arearow: null, // 新建修改小区使用的数据小区使用
|
|
159
160
|
areainfo: null, // 小区批量建档使用的数据
|
|
@@ -194,7 +195,15 @@
|
|
|
194
195
|
search () {
|
|
195
196
|
this.$refs.paged.$refs.criteria.search()
|
|
196
197
|
},
|
|
197
|
-
modifyinfo (row) {
|
|
198
|
+
async modifyinfo (row) {
|
|
199
|
+
console.log('row:',row)
|
|
200
|
+
let http = new HttpResetClass()
|
|
201
|
+
let res = await http.load('POST','rs/logic/ApplyGetProcessID',{data:{filename:this.$workflow_vue.workflow_xmlfilename,start_activity:this.$workflow_vue.start_activity}}, {resolveMsg: null, rejectMsg: '获取流程ID失败,请联系开发人员'})
|
|
202
|
+
row.f_process_id = res.data.f_process_id
|
|
203
|
+
row.defname= this.$workflow_vue.start_activity
|
|
204
|
+
row.f_apply_date=Util.toStandardTimeString()
|
|
205
|
+
// row.f_apply_num= this.generateUUID()
|
|
206
|
+
row.f_apply_operator_telephone= this.$login.f.f_fgsdianhua
|
|
198
207
|
this.$parent.show = true
|
|
199
208
|
this.$parent.$refs.queryuser.addactive(row)
|
|
200
209
|
},
|
|
@@ -280,7 +289,8 @@
|
|
|
280
289
|
this.model.rows.unshift(data)
|
|
281
290
|
},
|
|
282
291
|
selfSearch (args) {
|
|
283
|
-
args.condition = `${args.condition} and f_filialeids = '${this.$login.f.f_orgids}'`
|
|
292
|
+
// args.condition = `${args.condition} and f_filialeids = '${this.$login.f.f_orgids}'`
|
|
293
|
+
args.condition = `${args.condition}`
|
|
284
294
|
this.model.search(args.condition, args.model)
|
|
285
295
|
},
|
|
286
296
|
bulkOperations (name, type) {
|
|
@@ -1,110 +1,139 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto" style="padding-right:5px; padding-top: 10px;">
|
|
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}}
|
|
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-
|
|
13
|
-
<span v-else class="col-sm-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
tempArray[i].fields[j].
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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>
|