apply-clients 7.1.36-1 → 7.1.36-yuchuan-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/build/dev-server.js +8 -2
- package/dist-android.7z +0 -0
- package/dist.7z +0 -0
- package/package.json +1 -1
- package/rebel.xml +16 -0
- package/src/AndroidApp.vue +35 -35
- package/src/apply.js +31 -4
- package/src/applyAndroid.js +83 -76
- package/src/components/android/AppSign.vue +13 -10
- package/src/components/android/Process/AppExplorationUser.vue +454 -454
- package/src/components/android/Process/AppServiceControl.vue +3 -3
- package/src/components/android/Process/Processes/AppChaiChuInfo.vue +546 -0
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +2 -1
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +69 -20
- package/src/components/android/Process/Processes/newAppDevicesManagement.vue +2 -1
- package/src/components/android/Process/Processes/newAppInstallationDetails.vue +5 -5
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +334 -298
- package/src/components/android/Task/GuanXianJianShe/AppExplorationGuanXian.vue +432 -0
- package/src/components/android/Task/ShenHe/BuZhangShenHe.vue +64 -0
- package/src/components/android/Task/ShenHe/JingLiShenHe.vue +64 -0
- package/src/components/android/Task/UpBuild/UpJianLi.vue +98 -95
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +27 -0
- package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +198 -0
- package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeSearch.vue +30 -0
- package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +235 -0
- package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +323 -0
- package/src/components/product/ApplyGuanXian/GuanXianExplorationUser.vue +144 -0
- package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +119 -0
- package/src/components/product/ApplyGuanXian/TabButton.vue +157 -0
- package/src/components/product/ApplyGuanXian/Tabs.vue +67 -0
- package/src/components/product/Function/InstallInfoSelect.vue +370 -370
- package/src/components/product/Function/Service/FunctionServiceControl.vue +475 -475
- package/src/components/product/Ignition/IgnitionList.vue +236 -232
- package/src/components/product/Ignition/IgnitionListManage.vue +69 -28
- package/src/components/product/Ignition/IgnitionRecord.vue +56 -17
- package/src/components/product/List/ShowDevices.vue +279 -277
- package/src/components/product/Print/OrderPrint/printChaiChuOrder.vue +260 -0
- package/src/components/product/Process/ExplorationSelect.vue +581 -566
- package/src/components/product/Process/ExplorationUser.vue +158 -155
- package/src/components/product/Process/NewExplorationUser.vue +184 -0
- package/src/components/product/Process/Processes/ApplyChaiChuInfo.vue +587 -0
- package/src/components/product/Process/Processes/InstallationDetails.vue +86 -33
- package/src/components/product/Process/Processes/Print/printCharge.vue +5 -1
- package/src/components/product/Process/Processes/Print/printPaymentApproval.vue +224 -221
- package/src/components/product/Process/Processes/Print/printPaymentSubject.vue +170 -0
- package/src/components/product/Process/Processes/chargeManagement.vue +24 -6
- package/src/components/product/Process/Processes/devicesManagement.vue +2 -1
- package/src/components/product/Process/Processes/newInstallationDetails.vue +3 -3
- package/src/components/product/Process/Processes/selectChaiChuUserinfo.vue +230 -0
- package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -241
- package/src/components/product/Process/Service/ServiceControl.vue +178 -16
- package/src/components/product/Report/ReportItems.vue +79 -0
- package/src/components/product/Report/apply-stair-anzhuang.vue +361 -0
- package/src/components/product/Report/apply-stair-kaifa.vue +138 -0
- package/src/components/product/Report/apply-stair-tongqi.vue +137 -0
- package/src/components/product/Report/apply-stair-wtongqi.vue +138 -0
- package/src/components/product/ServiceView.vue +644 -632
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +594 -551
- package/src/components/product/Supervisory/SupervisoryList.vue +78 -26
- package/src/main.js +27 -27
- package/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="col-sm-12" style="margin: 20px 0px;">
|
|
3
|
+
<data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
|
|
4
|
+
<template partial='head'>
|
|
5
|
+
<tr>
|
|
6
|
+
<th class="textNoLineBreak">序号</th>
|
|
7
|
+
<th class="textNoLineBreak">支干线</th>
|
|
8
|
+
<th class="textNoLineBreak">管径</th>
|
|
9
|
+
<th class="textNoLineBreak">管材</th>
|
|
10
|
+
<th class="textNoLineBreak">起点</th>
|
|
11
|
+
<th class="textNoLineBreak">终点</th>
|
|
12
|
+
<th class="textNoLineBreak">长度</th>
|
|
13
|
+
<th class="textNoLineBreak">
|
|
14
|
+
<button
|
|
15
|
+
type="button"
|
|
16
|
+
class="btn btn-info head-but"
|
|
17
|
+
@click="$parent.$parent.showGuanXianModal()"
|
|
18
|
+
:disabled="$parent.$parent.mark===1"
|
|
19
|
+
>新增线路</button>
|
|
20
|
+
</th>
|
|
21
|
+
</tr>
|
|
22
|
+
</template>
|
|
23
|
+
<template partial='body'>
|
|
24
|
+
<tr>
|
|
25
|
+
<td style="text-align: center;">
|
|
26
|
+
<nobr>{{$index+1}}</nobr>
|
|
27
|
+
</td>
|
|
28
|
+
<td style="text-align: center;">
|
|
29
|
+
<nobr>{{row.f_branch_trunk}}</nobr>
|
|
30
|
+
</td>
|
|
31
|
+
<td style="text-align: center;">
|
|
32
|
+
<nobr>{{row.f_pipe_diameter}}</nobr>
|
|
33
|
+
</td>
|
|
34
|
+
<td style="text-align: center;">
|
|
35
|
+
<nobr>{{row.f_pipe_material}}</nobr>
|
|
36
|
+
</td>
|
|
37
|
+
<td style="text-align: center;">
|
|
38
|
+
<nobr>{{row.f_starting_point}}</nobr>
|
|
39
|
+
</td>
|
|
40
|
+
<td style="text-align: center;">
|
|
41
|
+
<nobr>{{row.f_end_point}}</nobr>
|
|
42
|
+
</td>
|
|
43
|
+
<td style="text-align: center;">
|
|
44
|
+
<nobr>{{row.f_pipe_length}}</nobr>
|
|
45
|
+
</td>
|
|
46
|
+
<td style="text-align: center;">
|
|
47
|
+
<nobr>
|
|
48
|
+
<button
|
|
49
|
+
type="button"
|
|
50
|
+
name="button"
|
|
51
|
+
class="btn btn-link"
|
|
52
|
+
@click="$parent.$parent.showGuanXianModal(row)"
|
|
53
|
+
:disabled="$parent.$parent.mark===1"
|
|
54
|
+
>修改</button>
|
|
55
|
+
|
|
56
|
+
<button
|
|
57
|
+
type="button" name="button" class="btn btn-link"
|
|
58
|
+
@click="$parent.$parent.deleteXianLu(row)"
|
|
59
|
+
:disabled="$parent.$parent.mark===1"
|
|
60
|
+
>删除</button>
|
|
61
|
+
|
|
62
|
+
</nobr>
|
|
63
|
+
</td>
|
|
64
|
+
</tr>
|
|
65
|
+
</template>
|
|
66
|
+
</data-grid>
|
|
67
|
+
|
|
68
|
+
<validator name="v">
|
|
69
|
+
<modal v-if="showGuanXian" :show.sync="showGuanXian" v-ref:modal :large="true" :backdrop="false" title="管线明细">
|
|
70
|
+
<header slot="modal-header" class="modal-header">
|
|
71
|
+
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
72
|
+
<h4 class="modal-title">管线明细</h4>
|
|
73
|
+
</header>
|
|
74
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
75
|
+
<div class="form-group col-sm-6" :class="[$v.f_branch_trunk.required ? 'has-error' : '']">
|
|
76
|
+
<label class="col-sm-4 control-label">支干线:</label>
|
|
77
|
+
<div class="col-sm-8">
|
|
78
|
+
<input type="text" v-show="false" v-model="guanXian.f_branch_trunk" v-validate:f_payment_method = "['required']" >
|
|
79
|
+
<input-select
|
|
80
|
+
placeholder='请选择' width="100%"
|
|
81
|
+
v-model="guanXian.f_branch_trunk"
|
|
82
|
+
:value.sync="guanXian.f_branch_trunk"
|
|
83
|
+
:options='branchTrunks'
|
|
84
|
+
class="select select_list"
|
|
85
|
+
:value-single="true"
|
|
86
|
+
close-on-select ></input-select>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="form-group col-sm-6" :class="[$v.f_pipe_diameter.required ? 'has-error' : '']">
|
|
90
|
+
<label class="col-sm-4 control-label">管径:</label>
|
|
91
|
+
<div class="col-sm-8">
|
|
92
|
+
<input type="text" v-show="false" v-model="guanXian.f_pipe_diameter" v-validate:f_payment_method = "['required']" >
|
|
93
|
+
<input-select
|
|
94
|
+
placeholder='请选择' width="100%"
|
|
95
|
+
v-model="guanXian.f_pipe_diameter"
|
|
96
|
+
:value.sync="guanXian.f_pipe_diameter"
|
|
97
|
+
:options='pipeDiameters'
|
|
98
|
+
class="select select_list"
|
|
99
|
+
:value-single="true"
|
|
100
|
+
close-on-select ></input-select>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="form-group col-sm-6" :class="[$v.f_pipe_material.required ? 'has-error' : '']">
|
|
104
|
+
<label class="col-sm-4 control-label">管材:</label>
|
|
105
|
+
<div class="col-sm-8">
|
|
106
|
+
<input type="text" v-show="false" v-model="guanXian.f_pipe_material" v-validate:f_payment_method = "['required']" >
|
|
107
|
+
<input-select
|
|
108
|
+
placeholder='请选择' width="100%"
|
|
109
|
+
v-model="guanXian.f_pipe_material"
|
|
110
|
+
:value.sync="guanXian.f_pipe_material"
|
|
111
|
+
:options='pipeMaterial'
|
|
112
|
+
class="select select_list"
|
|
113
|
+
:value-single="true"
|
|
114
|
+
close-on-select ></input-select>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="form-group col-sm-6">
|
|
118
|
+
<label class="col-sm-4 control-label">长度:</label>
|
|
119
|
+
<div class="col-sm-8">
|
|
120
|
+
<input type="text" class="form-control input_view" style="width: 100%; height: 90%"
|
|
121
|
+
v-model="guanXian.f_pipe_length" />
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="form-group col-sm-6">
|
|
125
|
+
<label class="col-sm-4 control-label">起点:</label>
|
|
126
|
+
<div class="col-sm-8">
|
|
127
|
+
<input type="text" class="form-control input_view" style="width: 100%"
|
|
128
|
+
v-model="guanXian.f_starting_point" />
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="form-group col-sm-6">
|
|
132
|
+
<label class="col-sm-4 control-label">终点:</label>
|
|
133
|
+
<div class="col-sm-8">
|
|
134
|
+
<input type="text" class="form-control input_view" style="width: 100%"
|
|
135
|
+
v-model="guanXian.f_end_point" />
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</article>
|
|
139
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
140
|
+
<button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="saveXianLu()">保存线路</button>
|
|
141
|
+
</footer>
|
|
142
|
+
</modal>
|
|
143
|
+
</validator>
|
|
144
|
+
|
|
145
|
+
</div>
|
|
146
|
+
</template>
|
|
147
|
+
|
|
148
|
+
<script>
|
|
149
|
+
import {HttpResetClass} from "vue-client";
|
|
150
|
+
|
|
151
|
+
export default {
|
|
152
|
+
title: '线路明细',
|
|
153
|
+
props: {
|
|
154
|
+
selectdata: {
|
|
155
|
+
type: Object
|
|
156
|
+
},
|
|
157
|
+
mark: {
|
|
158
|
+
type: Number,
|
|
159
|
+
default: 0
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
data () {
|
|
163
|
+
return {
|
|
164
|
+
showGuanXian: false, // 展示支线明细
|
|
165
|
+
model: {
|
|
166
|
+
data: null
|
|
167
|
+
}, // 记录
|
|
168
|
+
branchTrunks: [{label: '支线', value: '支线'}, {label: '干线', value: '干线'}],
|
|
169
|
+
pipeDiameters: [...this.$appdata.getParam('管径')],
|
|
170
|
+
pipeMaterial: [...this.$appdata.getParam('管材')],
|
|
171
|
+
guanXian: {
|
|
172
|
+
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
ready () {
|
|
177
|
+
this.search()
|
|
178
|
+
},
|
|
179
|
+
methods: {
|
|
180
|
+
// 新增线路明细
|
|
181
|
+
async saveXianLu () {
|
|
182
|
+
let http = new HttpResetClass()
|
|
183
|
+
let data = {
|
|
184
|
+
f_process_id: this.selectdata.f_process_id,
|
|
185
|
+
user: this.$login.f,
|
|
186
|
+
guanXian: this.guanXian
|
|
187
|
+
}
|
|
188
|
+
let res = await http.load('POST', 'rs/logic/addApplyXianLu', {data:data}, {
|
|
189
|
+
resolveMsg: null,
|
|
190
|
+
rejectMsg: '新增线路失败!'
|
|
191
|
+
}).then((res) => {
|
|
192
|
+
this.guanXian = {}
|
|
193
|
+
|
|
194
|
+
this.showGuanXian = false
|
|
195
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
196
|
+
})
|
|
197
|
+
},
|
|
198
|
+
async deleteXianLu(row){
|
|
199
|
+
this.$resetdelete(`rs/entity/t_pipeline_material_apply`, {id: row.id}, {
|
|
200
|
+
resolveMsg: '删除成功',
|
|
201
|
+
rejectMsg: '删除失败'
|
|
202
|
+
}).then((res) => {
|
|
203
|
+
this.$dispatch("delResid", row.id)
|
|
204
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
205
|
+
})
|
|
206
|
+
},
|
|
207
|
+
async search () {
|
|
208
|
+
let http = new HttpResetClass()
|
|
209
|
+
let data = {
|
|
210
|
+
f_process_id: this.selectdata.f_process_id
|
|
211
|
+
}
|
|
212
|
+
let res = await http.load('POST', 'rs/sql/getZhiXianMingXi', {data:data}, {
|
|
213
|
+
resolveMsg: null,
|
|
214
|
+
rejectMsg: '线路明细查询失败!!!'
|
|
215
|
+
})
|
|
216
|
+
this.model.data = res.data
|
|
217
|
+
},
|
|
218
|
+
showGuanXianModal(row){
|
|
219
|
+
this.guanXian = row
|
|
220
|
+
this.showGuanXian = !this.showGuanXian
|
|
221
|
+
},
|
|
222
|
+
closeModal() {
|
|
223
|
+
this.showGuanXian = false
|
|
224
|
+
this.guanXian = {}
|
|
225
|
+
this.search()
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
</script>
|
|
230
|
+
|
|
231
|
+
<style scoped>
|
|
232
|
+
.form-control{
|
|
233
|
+
padding: 8px 12px;
|
|
234
|
+
}
|
|
235
|
+
</style>
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<criteria-paged :model="model" v-ref:cp>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="form-group col-sm-2">
|
|
8
|
+
<label class="font_normal_body">管线编号:</label>
|
|
9
|
+
<input type="text" style="width:60%" class="input_search" placeholder='管线编号' v-model="model.f_apply_num"
|
|
10
|
+
v-on:keyup.enter="$parent.$parent.search()"
|
|
11
|
+
condition="f_apply_num like '%{}%'">
|
|
12
|
+
</div>
|
|
13
|
+
<div class="form-group col-sm-2">
|
|
14
|
+
<label class="font_normal_body">工程名称:</label>
|
|
15
|
+
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
16
|
+
v-on:keyup.enter="$parent.$parent.search()" condition="f_address_name like '%{}%'" placeholder='道路名'>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="form-group col-sm-2">
|
|
19
|
+
<label class="font_normal_body">办理环节:</label>
|
|
20
|
+
<v-select
|
|
21
|
+
v-model="model.defname"
|
|
22
|
+
placeholder='办理环节'
|
|
23
|
+
condition="defname = '{}'"
|
|
24
|
+
:value.sync="model.defname"
|
|
25
|
+
:options='$parent.$parent.defnames'
|
|
26
|
+
class="select select_list"
|
|
27
|
+
:value-single="true"
|
|
28
|
+
close-on-select ></v-select>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="form-group col-sm-3 button-range">
|
|
31
|
+
<button class="button_new button_spacing" style="width: max-content"
|
|
32
|
+
v-if="$parent.$parent.projectStart"
|
|
33
|
+
@click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
|
|
34
|
+
<button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
|
|
35
|
+
<button class="button_search button_spacing" @click="$parent.$parent.loadPage()">返回</button>
|
|
36
|
+
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</criteria>
|
|
41
|
+
<data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
|
|
42
|
+
<template partial='head'>
|
|
43
|
+
<tr>
|
|
44
|
+
<th style="white-space: nowrap;">序号</th>
|
|
45
|
+
<th style="white-space: nowrap;">完成状态</th>
|
|
46
|
+
<th style="white-space: nowrap;">管线编号</th>
|
|
47
|
+
<th style="white-space: nowrap;">工程名称</th>
|
|
48
|
+
<th style="white-space: nowrap;">办理环节</th>
|
|
49
|
+
<th style="white-space: nowrap;">流程状态</th>
|
|
50
|
+
<th style="white-space: nowrap;">流程开始时间</th>
|
|
51
|
+
</tr>
|
|
52
|
+
</template>
|
|
53
|
+
<template partial='body'>
|
|
54
|
+
<tr >
|
|
55
|
+
<td @click="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
56
|
+
<nobr><font>{{$index+1}}</font></nobr>
|
|
57
|
+
</td>
|
|
58
|
+
<td @click="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
59
|
+
<nobr><font>{{row.f_sub_save_state}}</font></nobr>
|
|
60
|
+
</td>
|
|
61
|
+
<td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
62
|
+
<nobr><font>{{row.f_apply_num}}</font></nobr>
|
|
63
|
+
</td>
|
|
64
|
+
<td @click="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
65
|
+
<nobr><font>{{row.f_address_name}}</font></nobr>
|
|
66
|
+
</td>
|
|
67
|
+
<td @click="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
68
|
+
<nobr><font>{{row.defname}}</font></nobr>
|
|
69
|
+
</td>
|
|
70
|
+
<td @click="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
71
|
+
<nobr><font>{{row.f_sub_state}}</font></nobr>
|
|
72
|
+
</td>
|
|
73
|
+
<td @click="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
|
|
74
|
+
<nobr><font>{{row.sendtime}}</font></nobr>
|
|
75
|
+
</td>
|
|
76
|
+
<!-- <td @click="$parent.$parent.$parent.click(row)" :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">-->
|
|
77
|
+
<!-- <dropdown>-->
|
|
78
|
+
<!-- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">-->
|
|
79
|
+
<!-- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>-->
|
|
80
|
+
<!-- </button>-->
|
|
81
|
+
<!-- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">-->
|
|
82
|
+
<!-- <li>-->
|
|
83
|
+
<!-- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>-->
|
|
84
|
+
<!-- </li>-->
|
|
85
|
+
<!-- </ul>-->
|
|
86
|
+
<!-- </dropdown>-->
|
|
87
|
+
<!-- </td>-->
|
|
88
|
+
</tr>
|
|
89
|
+
</template>
|
|
90
|
+
</data-grid>
|
|
91
|
+
</criteria-paged>
|
|
92
|
+
|
|
93
|
+
<modal
|
|
94
|
+
v-if="showModal"
|
|
95
|
+
:show.sync="showModal"
|
|
96
|
+
backdrop="false"
|
|
97
|
+
title="工程类型"
|
|
98
|
+
cancel-text="取消"
|
|
99
|
+
ok-text="确认"
|
|
100
|
+
:callback="apply"
|
|
101
|
+
>
|
|
102
|
+
<div class="form-horizontal" slot="modal-body">
|
|
103
|
+
<div class="form-group" style="margin: 10px auto">
|
|
104
|
+
<label class="col-sm-3 control-label">报建类型:</label>
|
|
105
|
+
<div class="col-sm-9">
|
|
106
|
+
<v-select
|
|
107
|
+
v-model="applyType"
|
|
108
|
+
placeholder='请选择需要发起的工程类型'
|
|
109
|
+
:value.sync="applyType"
|
|
110
|
+
:options='apply_types'
|
|
111
|
+
:value-single="true"
|
|
112
|
+
class="select select_list"
|
|
113
|
+
:search="false"
|
|
114
|
+
close-on-select ></v-select>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</modal>
|
|
119
|
+
</div>
|
|
120
|
+
</template>
|
|
121
|
+
<script>
|
|
122
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
123
|
+
import {isEmpty} from '../../Util'
|
|
124
|
+
|
|
125
|
+
export default {
|
|
126
|
+
title: '工程列表',
|
|
127
|
+
props: ['showData'],
|
|
128
|
+
data () {
|
|
129
|
+
return {
|
|
130
|
+
model: new PagedList('rs/sql/getGuanXianApply', 20, {
|
|
131
|
+
data: {
|
|
132
|
+
userid: this.$login.f.id,
|
|
133
|
+
f_filiale: this.$login.f.f_fengongsi
|
|
134
|
+
}
|
|
135
|
+
}),
|
|
136
|
+
showModal: false, // 控制发起类型选择
|
|
137
|
+
defnames: isEmpty(this.$appdata.getParam('管线建设环节')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('管线建设环节')], // 流程节点
|
|
138
|
+
save_states: [{label: '全部', value: ''},{label: '已完成', value: '已完成'},{label: '已退回', value: '已退回'}], // 报建性质
|
|
139
|
+
apply_types: [{label: '管线建设', value: '管线建设'}],
|
|
140
|
+
designerPeoples: this.getDesigner(),
|
|
141
|
+
criteriaShow: false,
|
|
142
|
+
getfield: {
|
|
143
|
+
'f_apply_num': ' 工 程 编 号 ',
|
|
144
|
+
'f_user_name': ' 客 户 名 称 ',
|
|
145
|
+
'f_contact': ' 联 系 人 ',
|
|
146
|
+
'f_phone': ' 电 话 ',
|
|
147
|
+
'f_user_type': ' 用户类型 ',
|
|
148
|
+
'f_user_classification': ' 用户分类 ',
|
|
149
|
+
'f_address': ' 地 址 ',
|
|
150
|
+
'f_apply_type': ' 报 建 类 型 ',
|
|
151
|
+
'f_apply_nature': ' 报 建 性 质 ',
|
|
152
|
+
'defname': ' 办 理 环 节 ',
|
|
153
|
+
'f_install_count': ' 安装户数 ',
|
|
154
|
+
'f_designer_people':' 设计人员 '
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
ready () {
|
|
159
|
+
// 调用查询
|
|
160
|
+
this.search()
|
|
161
|
+
},
|
|
162
|
+
methods: {
|
|
163
|
+
// 点击操作
|
|
164
|
+
click (val) {
|
|
165
|
+
this.$dispatch('apply', val)
|
|
166
|
+
},
|
|
167
|
+
// 获取流程id
|
|
168
|
+
async getProcessId(processname) {
|
|
169
|
+
let data = {
|
|
170
|
+
workname: processname
|
|
171
|
+
}
|
|
172
|
+
let http = new HttpResetClass()
|
|
173
|
+
let res = await http.load(
|
|
174
|
+
'POST',
|
|
175
|
+
'rs/logic/getProcessId',
|
|
176
|
+
{data: data},
|
|
177
|
+
{resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
return res.data
|
|
181
|
+
},
|
|
182
|
+
// 报装申请
|
|
183
|
+
async apply () {
|
|
184
|
+
if (this.applyType === '' || this.applyType === null) {
|
|
185
|
+
this.$showAlert('请选择需要发起的类型', 'warning', 3000)
|
|
186
|
+
return
|
|
187
|
+
}
|
|
188
|
+
let data = {
|
|
189
|
+
f_apply_type: this.applyType
|
|
190
|
+
}
|
|
191
|
+
if (this.applyType === '管线建设') {
|
|
192
|
+
data.processname = '管线建设流程'
|
|
193
|
+
data.defname = '管线建设登记'
|
|
194
|
+
}
|
|
195
|
+
// if (this.$login.f.rolesnames.includes('工程部派工')){
|
|
196
|
+
// if (this.applyType === '管线建设') {
|
|
197
|
+
// data.processname = '管线建设流程'
|
|
198
|
+
// data.defname = '管线建设登记'
|
|
199
|
+
// } else {
|
|
200
|
+
// this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
|
|
201
|
+
// return
|
|
202
|
+
// }
|
|
203
|
+
// } else {
|
|
204
|
+
// this.$showMessage('您没有权限办理此业务,或者暂无此类报装')
|
|
205
|
+
// return
|
|
206
|
+
// }
|
|
207
|
+
|
|
208
|
+
data.f_sub_state = "新增"
|
|
209
|
+
data.f_apply_source = "线下发起"
|
|
210
|
+
data.f_process_id = await this.getProcessId(data.processname)
|
|
211
|
+
|
|
212
|
+
// 调用ExplorationUser事件
|
|
213
|
+
this.$dispatch('apply', data)
|
|
214
|
+
|
|
215
|
+
this.applyType = null
|
|
216
|
+
this.showModal = false
|
|
217
|
+
},
|
|
218
|
+
loadPage () {
|
|
219
|
+
this.$dispatch('loadPage')
|
|
220
|
+
},
|
|
221
|
+
searchCondition (args) {
|
|
222
|
+
|
|
223
|
+
this.model.search(args.condition, args.model)
|
|
224
|
+
|
|
225
|
+
console.log("当前数据",this.model)
|
|
226
|
+
},
|
|
227
|
+
search () {
|
|
228
|
+
this.$dispatch('search')
|
|
229
|
+
},
|
|
230
|
+
async getDesigner() {
|
|
231
|
+
let data = {
|
|
232
|
+
source: 'this.getParentByType($organization$).getChildByName($设计人员$).getChildren()',
|
|
233
|
+
userid: this.$login.f.id
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
let res = await this.$resetpost(
|
|
237
|
+
'rs/search',
|
|
238
|
+
{data: data},
|
|
239
|
+
{resolveMsg: null, rejectMsg: '设计人员人员查询失败!!!'}
|
|
240
|
+
)
|
|
241
|
+
console.log("ces",res.data.map(item => {
|
|
242
|
+
return {
|
|
243
|
+
label: item.name,
|
|
244
|
+
value: item.name
|
|
245
|
+
}
|
|
246
|
+
}))
|
|
247
|
+
this.designerPeoples = res.data.map(item => {
|
|
248
|
+
return {
|
|
249
|
+
label: item.name,
|
|
250
|
+
value: item.name
|
|
251
|
+
}
|
|
252
|
+
})
|
|
253
|
+
},
|
|
254
|
+
clear () {
|
|
255
|
+
Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
|
|
256
|
+
this.$refs.cp.$refs.cri.model[key] = null
|
|
257
|
+
})
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
computed: {
|
|
261
|
+
projectStart () {
|
|
262
|
+
return this.$login.r.includes('报建发起')
|
|
263
|
+
},
|
|
264
|
+
getLoginDepartment(){
|
|
265
|
+
return this.$login.f.rolesnames.includes('市场部报装')
|
|
266
|
+
},
|
|
267
|
+
getCondition () {
|
|
268
|
+
return {
|
|
269
|
+
condition: this.$refs.cp.$refs.cri.condition,
|
|
270
|
+
data: {
|
|
271
|
+
userid: this.$login.f.id,
|
|
272
|
+
f_filiale: this.$login.f.f_fengongsi
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
watch: {
|
|
278
|
+
'model.rows': {
|
|
279
|
+
handler: function () {
|
|
280
|
+
let isover = [] // 过期(超时)数据
|
|
281
|
+
let isbeforeover = [] // 未过期 提前提醒
|
|
282
|
+
for (let i = 0; i < this.model.rows.length; i++) {
|
|
283
|
+
let item = this.model.rows[i]
|
|
284
|
+
if (item.isover === '过期') {
|
|
285
|
+
isover.push(i + 1)
|
|
286
|
+
}
|
|
287
|
+
if (item.isbeforeover === '预期提醒') {
|
|
288
|
+
isbeforeover.push(i + 1)
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
let msg = null
|
|
292
|
+
if (isover.length > 0) {
|
|
293
|
+
msg = `第${isover.toString()}条数据已过期`
|
|
294
|
+
this.$showAlert(msg, 'warning', 3000)
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
if (isbeforeover.length > 0) {
|
|
298
|
+
msg = `第${isbeforeover.toString()}条数据即将过期`
|
|
299
|
+
if (isover.length > 0) {
|
|
300
|
+
setTimeout(() => {
|
|
301
|
+
this.$showAlert(msg, 'warning', 3000)
|
|
302
|
+
}, 4000)
|
|
303
|
+
} else {
|
|
304
|
+
this.$showAlert(msg, 'warning', 3000)
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
events: {
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
</script>
|
|
314
|
+
<style scoped>
|
|
315
|
+
|
|
316
|
+
.p1 {
|
|
317
|
+
color: #dc0b12;
|
|
318
|
+
font-weight:bold
|
|
319
|
+
}
|
|
320
|
+
.p {
|
|
321
|
+
color: #ffaf4f;
|
|
322
|
+
}
|
|
323
|
+
</style>
|