apply-clients 7.1.36-yuchuan-5 → 7.1.36-yuchuan-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 +187 -172
- package/index.html +39 -39
- package/package.json +2 -1
- package/src/apply.js +7 -0
- package/src/components/android/AppSign.vue +234 -234
- package/src/components/android/AppUpload.vue +275 -275
- package/src/components/android/Ignition/VentilationIgnitionHandle.vue +462 -462
- package/src/components/android/Process/AppServiceControl.vue +1437 -1437
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +344 -344
- package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +431 -431
- package/src/components/android/Task/yiban/ShowDone.vue +95 -95
- package/src/components/android/Task/yiban/satisfactionShow.vue +166 -166
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +2 -2
- package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianViewList.vue +272 -272
- package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +236 -236
- package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +324 -324
- package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +119 -119
- package/src/components/product/ApplyMap/ApplyDragaboutList.vue +223 -223
- package/src/components/product/ApplyMap/ApplyMapLocation.vue +862 -862
- package/src/components/product/ChongZheng/ApplyChongZhengList.vue +2 -2
- package/src/components/product/Function/InstallInfoSelect.vue +2 -2
- package/src/components/product/Function/Service/FunctionServiceControl.vue +586 -586
- package/src/components/product/GongJianPush/ApplyPushDispose.vue +206 -0
- package/src/components/product/GongJianPush/ApplyPushList.vue +196 -0
- package/src/components/product/GongJianPush/ApplyPushManage.vue +90 -0
- package/src/components/product/Ignition/IgnitionListManage.vue +602 -602
- package/src/components/product/Ignition/IgnitionRecord.vue +380 -380
- package/src/components/product/List/OldShowDevices.vue +2 -2
- package/src/components/product/List/ShowAllActivity.vue +2 -2
- package/src/components/product/List/ShowDevices.vue +2 -2
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +1 -1
- package/src/components/product/Process/ExplorationSelect.vue +4 -4
- package/src/components/product/Process/NewExplorationSelect.vue +586 -586
- package/src/components/product/Process/Processes/Print/printCharge.vue +250 -250
- package/src/components/product/Process/Processes/Print/printGaiXianCharge.vue +244 -244
- package/src/components/product/Process/Processes/devicesManagement.vue +393 -393
- package/src/components/product/Process/Processes/newDevicesManagement.vue +413 -413
- package/src/components/product/Stop/StopApplyList.vue +1 -1
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +592 -592
- package/src/components/product/Supervisory/SupervisoryControl.vue +116 -116
- package/src/components/product/Supervisory/SupervisoryList.vue +3 -3
- package/src/components/product/Supervisory/YiBanSupervisoryList.vue +3 -3
- package/src/components/product/VueUtils/ApplyUpload.vue +285 -285
- package/src/components/product/records/AdjustmentRecordList.vue +162 -162
|
@@ -1,236 +1,236 @@
|
|
|
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
|
-
|
|
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
|
-
selectdata: this.selectdata
|
|
188
|
-
}
|
|
189
|
-
await http.load('POST', 'rs/logic/addApplyXianLu', {data:data}, {
|
|
190
|
-
resolveMsg: null,
|
|
191
|
-
rejectMsg: '新增线路失败!'
|
|
192
|
-
}).then((res) => {
|
|
193
|
-
this.guanXian = {}
|
|
194
|
-
|
|
195
|
-
this.showGuanXian = false
|
|
196
|
-
this.$dispatch('breakControl', res.data)
|
|
197
|
-
})
|
|
198
|
-
},
|
|
199
|
-
async deleteXianLu(row){
|
|
200
|
-
this.$resetdelete(`rs/entity/t_pipeline_material_apply`, {id: row.id}, {
|
|
201
|
-
resolveMsg: '删除成功',
|
|
202
|
-
rejectMsg: '删除失败'
|
|
203
|
-
}).then((res) => {
|
|
204
|
-
this.$dispatch("delResid", row.id)
|
|
205
|
-
this.$dispatch('breakControl', this.selectdata)
|
|
206
|
-
})
|
|
207
|
-
},
|
|
208
|
-
async search () {
|
|
209
|
-
let http = new HttpResetClass()
|
|
210
|
-
let data = {
|
|
211
|
-
f_process_id: this.selectdata.f_process_id
|
|
212
|
-
}
|
|
213
|
-
let res = await http.load('POST', 'rs/sql/getZhiXianMingXi', {data:data}, {
|
|
214
|
-
resolveMsg: null,
|
|
215
|
-
rejectMsg: '线路明细查询失败!!!'
|
|
216
|
-
})
|
|
217
|
-
this.model.data = res.data
|
|
218
|
-
},
|
|
219
|
-
showGuanXianModal(row){
|
|
220
|
-
this.guanXian = row
|
|
221
|
-
this.showGuanXian = !this.showGuanXian
|
|
222
|
-
},
|
|
223
|
-
closeModal() {
|
|
224
|
-
this.showGuanXian = false
|
|
225
|
-
this.guanXian = {}
|
|
226
|
-
this.search()
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
</script>
|
|
231
|
-
|
|
232
|
-
<style scoped>
|
|
233
|
-
.form-control{
|
|
234
|
-
padding: 8px 12px;
|
|
235
|
-
}
|
|
236
|
-
</style>
|
|
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
|
+
|
|
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
|
+
selectdata: this.selectdata
|
|
188
|
+
}
|
|
189
|
+
await http.load('POST', 'rs/logic/addApplyXianLu', {data:data}, {
|
|
190
|
+
resolveMsg: null,
|
|
191
|
+
rejectMsg: '新增线路失败!'
|
|
192
|
+
}).then((res) => {
|
|
193
|
+
this.guanXian = {}
|
|
194
|
+
|
|
195
|
+
this.showGuanXian = false
|
|
196
|
+
this.$dispatch('breakControl', res.data)
|
|
197
|
+
})
|
|
198
|
+
},
|
|
199
|
+
async deleteXianLu(row){
|
|
200
|
+
this.$resetdelete(`rs/entity/t_pipeline_material_apply`, {id: row.id}, {
|
|
201
|
+
resolveMsg: '删除成功',
|
|
202
|
+
rejectMsg: '删除失败'
|
|
203
|
+
}).then((res) => {
|
|
204
|
+
this.$dispatch("delResid", row.id)
|
|
205
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
206
|
+
})
|
|
207
|
+
},
|
|
208
|
+
async search () {
|
|
209
|
+
let http = new HttpResetClass()
|
|
210
|
+
let data = {
|
|
211
|
+
f_process_id: this.selectdata.f_process_id
|
|
212
|
+
}
|
|
213
|
+
let res = await http.load('POST', 'rs/sql/getZhiXianMingXi', {data:data}, {
|
|
214
|
+
resolveMsg: null,
|
|
215
|
+
rejectMsg: '线路明细查询失败!!!'
|
|
216
|
+
})
|
|
217
|
+
this.model.data = res.data
|
|
218
|
+
},
|
|
219
|
+
showGuanXianModal(row){
|
|
220
|
+
this.guanXian = row
|
|
221
|
+
this.showGuanXian = !this.showGuanXian
|
|
222
|
+
},
|
|
223
|
+
closeModal() {
|
|
224
|
+
this.showGuanXian = false
|
|
225
|
+
this.guanXian = {}
|
|
226
|
+
this.search()
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
</script>
|
|
231
|
+
|
|
232
|
+
<style scoped>
|
|
233
|
+
.form-control{
|
|
234
|
+
padding: 8px 12px;
|
|
235
|
+
}
|
|
236
|
+
</style>
|