apply-clients 7.1.36-yuchuan-2 → 7.1.36-yuchuan-3

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.
Files changed (61) hide show
  1. package/build/dev-server.js +7 -3
  2. package/package.json +3 -3
  3. package/src/AndroidApp.vue +35 -35
  4. package/src/apply.js +12 -1
  5. package/src/applyAndroid.js +87 -83
  6. package/src/components/android/AppUpload.vue +15 -0
  7. package/src/components/android/Ignition/VentilationIgnition.vue +1 -1
  8. package/src/components/android/Process/AppExplorationUser.vue +2 -2
  9. package/src/components/android/Process/AppServiceControl.vue +1410 -1397
  10. package/src/components/android/Supervisory/AppProcessSupervisory.vue +334 -334
  11. package/src/components/android/Task/Build/BuildTsak.vue +7 -4
  12. package/src/components/android/Task/GuanXianJianShe/AppExplorationGuanXian.vue +317 -432
  13. package/src/components/android/Task/GuanXianJianShe/AppGuanXianCaiLiao.vue +237 -0
  14. package/src/components/android/Task/ShenHe/BuZhangShenHe.vue +64 -64
  15. package/src/components/android/Task/ShenHe/JingLiShenHe.vue +64 -64
  16. package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +11 -7
  17. package/src/components/android/Task/UpBuild/UpBuildDui.vue +5 -2
  18. package/src/components/android/Task/UpBuild/UpBuildTsak.vue +5 -2
  19. package/src/components/android/Task/UpBuild/UpJianLi.vue +98 -98
  20. package/src/components/product/ApplyCharge/ApplyChargeList.vue +943 -606
  21. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +8 -7
  22. package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +236 -235
  23. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +324 -323
  24. package/src/components/product/ChongZheng/ApplyChongZhengList.vue +10 -9
  25. package/src/components/product/Function/InstallInfoSelect.vue +371 -370
  26. package/src/components/product/Function/Service/FunctionServiceControl.vue +475 -475
  27. package/src/components/product/Ignition/IgnitionList.vue +236 -236
  28. package/src/components/product/Ignition/IgnitionListManage.vue +403 -204
  29. package/src/components/product/Ignition/IgnitionRecord.vue +14 -13
  30. package/src/components/product/List/ShowAllActivity.vue +455 -0
  31. package/src/components/product/List/ShowDevices.vue +279 -279
  32. package/src/components/product/Print/BuildOrder/buildOrderList.vue +9 -8
  33. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +6 -0
  34. package/src/components/product/Process/ExplorationSelect.vue +591 -581
  35. package/src/components/product/Process/ExplorationUser.vue +158 -158
  36. package/src/components/product/Process/New1ExplorationUser.vue +201 -0
  37. package/src/components/product/Process/New2ExplorationUser.vue +163 -0
  38. package/src/components/product/Process/NewExplorationSelect.vue +586 -0
  39. package/src/components/product/Process/NewExplorationUser.vue +219 -184
  40. package/src/components/product/Process/Processes/ApplyChaiChuInfo.vue +587 -587
  41. package/src/components/product/Process/Processes/InstallationDetails.vue +80 -7
  42. package/src/components/product/Process/Processes/Print/printPaymentApproval.vue +224 -224
  43. package/src/components/product/Process/Processes/newDevicesManagement.vue +26 -1
  44. package/src/components/product/Process/Processes/newInstallationDetails.vue +1 -36
  45. package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -241
  46. package/src/components/product/Process/Service/ServiceControl.vue +2166 -2162
  47. package/src/components/product/Report/ReportItems.vue +85 -79
  48. package/src/components/product/Report/apply-stair-kaifa.vue +0 -1
  49. package/src/components/product/Report/gongchengbu.vue +199 -0
  50. package/src/components/product/ServiceView.vue +644 -644
  51. package/src/components/product/Stop/StopApplyList.vue +8 -8
  52. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +594 -594
  53. package/src/components/product/Supervisory/SupervisoryList.vue +539 -537
  54. package/src/components/product/Supervisory/YiBanSupervisoryControl.vue +114 -0
  55. package/src/components/product/Supervisory/YiBanSupervisoryList.vue +541 -0
  56. package/src/main.js +27 -27
  57. package/dist-android.7z +0 -0
  58. package/dist.7z +0 -0
  59. package/rebel.xml +0 -16
  60. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +0 -207
  61. package/yarn-error.log +0 -9976
@@ -1,432 +1,317 @@
1
- <template>
2
- <div class="p-10">
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
5
- <div partial class="auto">
6
- <div class="row form-group app-input">
7
- <label class="">客户名称:</label>
8
- <div class="col-xs-8" >
9
- <input class="" v-model=model.f_user_name condition="u.f_user_name like '%{}%'" />
10
- </div>
11
- </div>
12
- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
13
- <label class="">联系电话:</label>
14
- <div class="col-xs-8" >
15
- <input class="" v-model=model.f_phone condition="u.f_phone like '%{}%'" />
16
- </div>
17
- </div>
18
- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
19
- <label class="">工程编号:</label>
20
- <div class="col-xs-8" >
21
- <input class="" v-model=model.f_apply_num condition="u.f_apply_num like '%{}%'" />
22
- </div>
23
- </div>
24
- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
25
- <label class="">合同编号:</label>
26
- <div class="col-xs-8" >
27
- <input class="" v-model=model.f_contract_number condition="u.f_contract_number like '%{}%'" />
28
- </div>
29
- </div>
30
- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
31
- <label class="">报建类型:</label>
32
- <div class="col-xs-8" >
33
- <v-select
34
- width="100%"
35
- v-model="model.f_apply_type"
36
- placeholder='报建类型'
37
- condition="u.f_apply_type like '%{}%'"
38
- :value.sync="model.f_apply_type"
39
- :options='$parent.$parent.applytype'
40
- class="select select_list"
41
- :value-single="true"
42
- @change="$parent.$parent.applyTypeChange()"
43
- close-on-select ></v-select>
44
- </div>
45
- </div>
46
- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
47
- <label class="">办理环节:</label>
48
- <div class="col-xs-8" >
49
- <v-select
50
- width="100%"
51
- v-model="model.defname"
52
- placeholder='办理环节'
53
- condition="act.defname = '{}'"
54
- :value.sync="model.defname"
55
- :options='$parent.$parent.defnames'
56
- class="select select_list"
57
- :value-single="true"
58
- close-on-select ></v-select>
59
- </div>
60
- </div>
61
- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
62
- <label class="">报建性质:</label>
63
- <div class="col-xs-8" >
64
- <v-select
65
- width="100%"
66
- v-model="model.f_apply_nature"
67
- placeholder='报建性质'
68
- condition="f_apply_nature = '{}'"
69
- :value.sync="model.f_apply_nature"
70
- :options='$parent.$parent.applyNatures'
71
- class="select select_list"
72
- :value-single="true"
73
- close-on-select ></v-select>
74
- </div>
75
- </div>
76
- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
77
- <label class="">用户地址:</label>
78
- <div class="col-xs-8" >
79
- <input class="" v-model=model.f_address condition="u.f_address like '%{}%'" />
80
- </div>
81
- </div>
82
- <div class="row form-group app-input" v-if="$parent.$parent.defname === '工程施工' && $parent.$parent.criteriaShow">
83
- <label class="">小&emsp;&emsp;区:</label>
84
- <div class="col-xs-8" >
85
- <v-select
86
- width="100%"
87
- v-model="model.f_residential_area"
88
- placeholder='小区'
89
- condition="u.f_residential_area = '{}'"
90
- :value.sync="model.f_residential_area"
91
- :options='$parent.$parent.areaList'
92
- class="select select_list"
93
- :value-single="true"
94
- close-on-select ></v-select>
95
- </div>
96
- </div>
97
- <div class="row form-group app-input" v-if="$parent.$parent.defname === '工程施工' && $parent.$parent.criteriaShow">
98
- <label class="">楼&emsp;&emsp;号:</label>
99
- <div class="col-xs-8" >
100
- <input class="" v-model=model.f_building condition="u.f_building like '%{}%'" />
101
- </div>
102
- </div>
103
- <div class="row form-group app-input" v-if="$parent.$parent.defname === '工程施工' && $parent.$parent.criteriaShow">
104
- <label class="">单&emsp;&emsp;元:</label>
105
- <div class="col-xs-8" >
106
- <input class="" v-model=model.f_unit condition="u.f_unit like '%{}%'" />
107
- </div>
108
- </div>
109
- <div class="row form-group app-input" v-if="$parent.$parent.defname === '工程施工' && $parent.$parent.criteriaShow">
110
- <label class="">门&ensp;牌&ensp;号:</label>
111
- <div class="col-xs-8" >
112
- <input class="" v-model=model.f_room condition="u.f_room like '%{}%'" />
113
- </div>
114
- </div>
115
- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
116
- <label class="">开始时间:</label>
117
- <div class="col-xs-8" >
118
- <datepicker id="startDate" placeholder="开始日期"
119
- style="width: 100%!important;"
120
- v-model="model.startDate"
121
- :value.sync="model.startDate"
122
- :format="'yyyy-MM-dd 00:00:00'"
123
- :show-reset-button="true"
124
- condition="u.f_apply_date >= '{}'">
125
- </datepicker>
126
- </div>
127
- </div>
128
- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
129
- <label class="">结束时间:</label>
130
- <div class="col-xs-8" >
131
- <datepicker id="endDate" placeholder="结束日期"
132
- style="width: 100%!important;"
133
- v-model="model.endDate"
134
- :value.sync="model.endDate"
135
- :format="'yyyy-MM-dd 23:59:59'"
136
- :show-reset-button="true"
137
- condition="f_apply_date <= '{}'">
138
- </datepicker>
139
- </div>
140
- </div>
141
- <!-- <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">-->
142
- <!-- <label class="">稍后处理:</label>-->
143
- <!-- <div class="col-xs-8" >-->
144
- <!-- <v-select-->
145
- <!-- width="100%"-->
146
- <!-- v-model="model.f_is_later"-->
147
- <!-- placeholder='稍后处理'-->
148
- <!-- condition="f_is_later = '{}'"-->
149
- <!-- :value.sync="model.f_is_later"-->
150
- <!-- :options='$parent.$parent.laterList'-->
151
- <!-- class="select select_list"-->
152
- <!-- :value-single="true"-->
153
- <!-- close-on-select ></v-select>-->
154
- <!-- </div>-->
155
- <!-- </div>-->
156
- <div class="row form-group text-right" style="">
157
- <button class="btn btn-primary" @click="$parent.$parent.search()">查询</button>
158
- <button class="btn btn-info" @click="$parent.$parent.clear()">清空</button>
159
- <button class="btn" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"></button>
160
- </div>
161
- </div>
162
- </criteria>
163
-
164
- <list :model="model" partial='list'>
165
- <div partial class="auto app-text panel">
166
- <div class="panel-body panel-self">
167
- <div class="col-xs-12">
168
- <p class="col-xs-3 text-left font"><b>客户名称:</b></p>
169
- <p class="col-xs-9 text-left input-font">{{ row.f_user_name }}</p>
170
- </div>
171
- <div class="col-xs-12">
172
- <p class="col-xs-3 text-left font"><b>电&emsp;&emsp;话:</b></p>
173
- <p class="col-xs-9 text-left input-font">
174
- {{ row.f_phone }}&ensp;
175
- <svg @click.prevent="$parent.$parent.$parent.dialNumber(row.f_phone)" style="width: 25px;height: 25px;position: absolute;" t="1628575136009" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2374" width="200" height="200"><path d="M682.25 465.262c0 16.695 11.115 27.811 27.81 27.811s27.812-11.116 27.812-27.811A167.395 167.395 0 0 0 570.96 298.35c-16.695 0-27.811 11.116-27.811 27.811s11.16 27.812 27.811 27.812a111.597 111.597 0 0 1 111.29 111.289z m111.289 0c0 16.695 11.115 27.811 27.81 27.811s27.812-11.116 27.812-27.811c0-152.984-125.217-278.201-278.2-278.201-16.696 0-27.812 11.16-27.812 27.855s11.16 27.811 27.811 27.811c122.405 0 222.579 100.174 222.579 222.535zM417.976 367.9c30.623-30.579 33.391-77.898 5.58-111.289L337.31 148.134c-27.811-36.16-80.666-41.74-116.869-13.928-2.768 2.812-5.536 2.812-5.536 5.58l-75.13 75.13c-72.318 72.318 30.623 267.041 217.042 453.417C543.15 854.708 735.06 954.88 807.378 885.33l75.13-75.13c33.392-33.391 33.392-86.246 0-116.825l-5.536-5.58-108.52-86.246c-33.348-27.81-80.623-25.043-111.246 5.58l-47.275 47.319c-50.087-30.623-94.593-64.014-133.564-102.941-38.927-38.971-72.275-83.478-102.898-133.565l44.507-50.043z m-38.927-75.13c8.348 11.16 8.348 27.855-2.812 36.203l-61.202 63.97a29.569 29.569 0 0 0-5.536 33.392 721.425 721.425 0 0 0 122.405 164.1 721.512 721.512 0 0 0 164.1 122.405 29.569 29.569 0 0 0 33.39-5.58l63.971-63.97c11.16-11.116 25.043-11.116 36.203-2.769l108.477 89.014s2.768 0 2.768 2.768a26.889 26.889 0 0 1 0 38.971l-75.13 75.13c-36.115 36.115-208.606-55.666-372.75-217.042-164.1-161.332-253.114-336.548-216.955-372.75l77.854-77.899c11.16-8.348 30.623-8.348 38.971 5.58l86.246 108.521z" fill="#8A8A8A" p-id="2375"></path></svg>
176
- </p>
177
- </div>
178
- <div class="col-xs-12">
179
- <p class="col-xs-3 text-left font"><b>工程编号:</b></p>
180
- <p class="col-xs-9 text-left input-font">{{ row.f_apply_num }}</p>
181
- </div>
182
- <div class="col-xs-12">
183
- <p class="col-xs-3 text-left font"><b>客户编号:</b></p>
184
- <p class="col-xs-9 text-left input-font">{{ row.f_userinfo_code }}</p>
185
- </div>
186
- <div class="col-xs-12">
187
- <p class="col-xs-3 text-left font"><b>报建类型:</b></p>
188
- <p class="col-xs-9 text-left input-font">{{ row.f_apply_type }}</p>
189
- </div>
190
- <div class="col-xs-12">
191
- <p class="col-xs-3 text-left font"><b>办理环节:</b></p>
192
- <p class="col-xs-9 text-left input-font">{{ row.defname }}</p>
193
- </div>
194
- <div class="col-xs-12">
195
- <p class="col-xs-3 text-left font"><b>定位地址:</b></p>
196
- <p class="col-xs-9 text-left input-font">
197
- {{ row.f_order_address }}
198
- <svg @click.prevent="$parent.$parent.$parent.openAmap(row)" style="width: 25px;height: 25px;position: absolute;" t="1628575336648" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3201" width="200" height="200"><path d="M512 956h-1.1c-10.9 0-20.5-6.9-24.7-17L369.9 654.1 85 537.8c-10.1-4.1-16.8-13.7-17.2-24.6-0.4-10.9 5.6-21 15.3-25.9l833-416.5c10.7-5.3 23.6-3.2 32.1 5.2s10.5 21.4 5.2 32.1L536.8 940.9c-4.7 9.4-14.3 15.1-24.8 15.1zM162.7 509.6l239 97.6c6.9 2.8 12.4 8.3 15.2 15.2l97.6 239 351.9-703.8-703.7 352z" fill="#666666" p-id="3202"></path></svg>
199
- </p>
200
- </div>
201
- <div class="col-xs-12">
202
- <p class="col-xs-3 text-left font"><b>地&emsp;&emsp;址:</b></p>
203
- <p class="col-xs-9 text-left input-font">{{ row.f_address }}</p>
204
- </div>
205
- <div class="col-xs-12">
206
- <p class="col-xs-3 text-left font"><b>报建日期:</b></p>
207
- <p class="col-xs-9 text-left input-font">{{ row.f_apply_date }}</p>
208
- </div>
209
- <div class="col-xs-12" style="color: red">
210
- <p class="col-xs-3 text-left font"><b>施工备注:</b></p>
211
- <p class="col-xs-9 text-left input-font">{{ row.f_construction_remarks }}</p>
212
- </div>
213
-
214
- <div class="col-xs-12 text-right">
215
- <button class="btn btn-info" @click="$parent.$parent.$parent.click(row)">处理</button>
216
- </div>
217
- </div>
218
- </div>
219
- </list>
220
- </criteria-paged>
221
- </div>
222
- </template>
223
- <script>
224
- import Vue from 'vue'
225
- import { PagedList, HttpResetClass } from 'vue-client'
226
- import {isEmpty} from '../../../Util'
227
- export default {
228
- title: '管线建设流程',
229
- props: ['defname', 'f_lat', 'f_lng', 'usertype'],
230
- data () {
231
- return {
232
- model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/getGuanXianApply`, 20, {
233
- data: {
234
- userid: Vue.user.id,
235
- f_filiale: Vue.user.f_fengongsi
236
- }
237
- }),
238
- criteriaShow: false,
239
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')], // 所有报建类型
240
- defnames: [{label: '全部', value: ''}, ...this.$appdata.getParam('办理环节')],
241
- applyNatures: [{label: '全部', value: ''}], // 报建性质
242
- areaList: [],
243
- showSupervisory: true
244
- }
245
- },
246
- ready () {
247
- this.getArea()
248
- this.search()
249
- },
250
- methods: {
251
- refresh () {
252
- this.search()
253
- this.$dispatch('refreshDot')
254
- },
255
- openAmap (selectdata) {
256
- HostApp.openThirdPartyMap({
257
- lon: selectdata.f_lng,
258
- lat: selectdata.f_lat,
259
- address: selectdata.f_order_address
260
- })
261
- },
262
- dialNumber (phone) {
263
- this.$showMessage(`是否拨打电话:${phone}`, ['confirm']).then((res) => {
264
- if (res === 'confirm') {
265
- this.$androidUtil.makeAPhoneCall(phone)
266
- }
267
- })
268
- },
269
- clear () {
270
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
271
- this.$refs.cp.$refs.cri.model[key] = null
272
- })
273
- },
274
- // 查询
275
- search () {
276
- this.$refs.cp.$refs.cri.search()
277
- this.criteriaShow = false
278
- },
279
- searchCondition (args) {
280
- if (this.defname === '施工信息'){
281
- args.condition = args.condition + ` and act.defname = '管线建设施工' and (f_construction_unit = '${Vue.user.id}'
282
- or f_check_operator_id = '${Vue.user.id}' or f_engineering_operator_id = '${Vue.user.id}'
283
- or f_supervisor_operator_id = '${Vue.user.id}' or f_supervisor_operator = '${Vue.user.id}'
284
- or f_construct_operator_id = '${Vue.user.id}')`
285
- } else {
286
- args.condition += `and act.defname = '${this.defname}'`
287
- }
288
- if (this.usertype){
289
- args.condition += `and u.f_apply_type = '${this.usertype}'`
290
- }
291
-
292
- console.log("args.condition",args.condition)
293
- this.model.search(args.condition, args.model)
294
- },
295
- click (row) {
296
- if (this.defname === '施工信息'){
297
- row.defname = '施工信息'
298
- }
299
- let _this = this
300
- this.$dispatch('gotoson', {
301
- _this: _this,
302
- title: row.defname,
303
- safe: true
304
- })
305
- this.$goto('app-service-control', {selectdata: row}, 'self', _this.refresh)
306
- },
307
- applyTypeChange () {
308
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
309
- let http = new HttpResetClass()
310
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getDefnameByType`, {
311
- // http.load('POST', 'rs/logic/getDefnameByType', {
312
- f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type
313
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
314
- this.defnames = [{label: '全部', value: ''}, ...res.data]
315
-
316
- this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
317
- })
318
- } else {
319
- this.defnames = [{label: '全部', value: ''}]
320
-
321
- this.applyNatures = [{label: '全部', value: ''}]
322
- }
323
- },
324
- // 获取小区
325
- async getArea () {
326
- let data = {
327
- tablename: 't_area_address',
328
- condition: `f_filiale = '${Vue.user.f_fengongsi}' and f_area_status = '启用'`
329
- }
330
- let http = new HttpResetClass()
331
- let res = await http.load(
332
- 'POST',
333
- `${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
334
- {data: data},
335
- {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
336
- )
337
- this.areaList = res.data.map(item => {
338
- return {
339
- label: item.f_residential_area,
340
- value: item.f_residential_area
341
- }
342
- })
343
- },
344
- changeSearch(){
345
- this.showSupervisory = !this.showSupervisory
346
- this.search()
347
- },
348
- },
349
- events: {
350
- 'loadPage' () {
351
- this.selectdata = {}
352
- // 关闭详细
353
- this.showtotal = false
354
- // 显示列表数据
355
- this.showData = true
356
- // 显示分页
357
- this.$refs.query.$refs.cp.pager = true
358
- // 调用查询
359
- this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
360
- }
361
- },
362
- watch: {
363
- // 通过计算属性同时监听多个值
364
- 'changeData' () {
365
- if (!isEmpty(this.f_lat) && !isEmpty(this.f_lng)) {
366
- this.search()
367
- }
368
- }
369
- },
370
- computed: {
371
- changeData () {
372
- const {f_lat, f_lng} = this
373
- return {
374
- f_lat,
375
- f_lng
376
- }
377
- }
378
- }
379
- }
380
- </script>
381
- <style scoped>
382
- .panel-self{
383
- border-radius: 10px;
384
- border:1px solid #499EDF;
385
- background-color: #F8F8F8;
386
- }
387
- .font{
388
- font: 15px PingFang-SC-Medium;
389
- color: #666666;
390
- }
391
-
392
- .button_shrink_top {
393
- width: 34px;
394
- height: 34px;
395
- border: solid 1px #6aa6e2;
396
- background-size: 100%;
397
- background-image: url("../../../../../static/newStyle/stretch_top.png")
398
- }
399
-
400
- .button_shrink_bottom {
401
- width: 34px;
402
- height: 34px;
403
- border: solid 1px #6aa6e2;
404
- background-size: 100%;
405
- background-image: url("../../../../../static/newStyle/stretch_bottom.png")
406
- }
407
- </style>
408
- <style lang="less">
409
- .app-input {
410
- label {
411
- float: left;
412
- }
413
- .select {
414
- button {
415
- border: none;
416
- outline: none;
417
- text-align: left;
418
- .btn-placeholder {
419
- color: #ACA899
420
- }
421
- }
422
- }
423
- .datepicker {
424
- .form-control:focus {
425
- border: none!important;
426
- outline: none!important;
427
- -webkit-box-shadow: none;
428
- box-shadow: none;
429
- }
430
- }
431
- }
432
- </style>
1
+ <template>
2
+ <div class="p-10">
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
5
+ <div partial class="auto">
6
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
7
+ <label class="">管线编号:</label>
8
+ <div class="col-xs-8" >
9
+ <input class="" v-model=model.f_apply_num condition="u.f_apply_num like '%{}%'" />
10
+ </div>
11
+ </div>
12
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
13
+ <label class="">工程名称:</label>
14
+ <div class="col-xs-8" >
15
+ <input class="" v-model=model.f_address condition="u.f_address_name like '%{}%'" />
16
+ </div>
17
+ </div>
18
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
19
+ <label class="">办理环节:</label>
20
+ <div class="col-xs-8" >
21
+ <v-select
22
+ width="100%"
23
+ v-model="model.defname"
24
+ placeholder='办理环节'
25
+ condition="act.defname = '{}'"
26
+ :value.sync="model.defname"
27
+ :options='$parent.$parent.defnames'
28
+ class="select select_list"
29
+ :value-single="true"
30
+ close-on-select ></v-select>
31
+ </div>
32
+ </div>
33
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
34
+ <label class="">开始时间:</label>
35
+ <div class="col-xs-8" >
36
+ <datepicker id="startDate" placeholder="开始日期"
37
+ style="width: 100%!important;"
38
+ v-model="model.startDate"
39
+ :value.sync="model.startDate"
40
+ :format="'yyyy-MM-dd 00:00:00'"
41
+ :show-reset-button="true"
42
+ condition="u.f_apply_date >= '{}'">
43
+ </datepicker>
44
+ </div>
45
+ </div>
46
+ <div class="row form-group app-input" v-if="$parent.$parent.criteriaShow">
47
+ <label class="">结束时间:</label>
48
+ <div class="col-xs-8" >
49
+ <datepicker id="endDate" placeholder="结束日期"
50
+ style="width: 100%!important;"
51
+ v-model="model.endDate"
52
+ :value.sync="model.endDate"
53
+ :format="'yyyy-MM-dd 23:59:59'"
54
+ :show-reset-button="true"
55
+ condition="u.f_apply_date <= '{}'">
56
+ </datepicker>
57
+ </div>
58
+ </div>
59
+ <div class="row form-group text-right" style="">
60
+ <button class="btn btn-primary" @click="$parent.$parent.search()">查询</button>
61
+ <button class="btn btn-info" @click="$parent.$parent.clear()">清空</button>
62
+ <button class="btn" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"></button>
63
+ </div>
64
+ </div>
65
+ </criteria>
66
+
67
+ <list :model="model" partial='list'>
68
+ <div partial class="auto app-text panel">
69
+ <div class="panel-body panel-self">
70
+ <div class="col-xs-12">
71
+ <p class="col-xs-3 text-left font"><b>工程名称:</b></p>
72
+ <p class="col-xs-9 text-left input-font">{{ row.f_address_name }}</p>
73
+ </div>
74
+ <div class="col-xs-12">
75
+ <p class="col-xs-3 text-left font"><b>片区:</b></p>
76
+ <p class="col-xs-9 text-left input-font">{{ row.f_area }}</p>
77
+ </div>
78
+ <div class="col-xs-12">
79
+ <p class="col-xs-3 text-left font"><b>管线建设编号:</b></p>
80
+ <p class="col-xs-9 text-left input-font">{{ row.f_apply_num }}</p>
81
+ </div>
82
+ <div class="col-xs-12">
83
+ <p class="col-xs-3 text-left font"><b>报建类型:</b></p>
84
+ <p class="col-xs-9 text-left input-font">{{ row.f_apply_type }}</p>
85
+ </div>
86
+ <div class="col-xs-12">
87
+ <p class="col-xs-3 text-left font"><b>办理环节:</b></p>
88
+ <p class="col-xs-9 text-left input-font">{{ row.defname }}</p>
89
+ </div>
90
+ <div class="col-xs-12">
91
+ <p class="col-xs-3 text-left font"><b>报建日期:</b></p>
92
+ <p class="col-xs-9 text-left input-font">{{ row.f_apply_date }}</p>
93
+ </div>
94
+ <div class="col-xs-12" style="color: red">
95
+ <p class="col-xs-3 text-left font"><b>施工备注:</b></p>
96
+ <p class="col-xs-9 text-left input-font">{{ row.f_construction_remarks }}</p>
97
+ </div>
98
+
99
+ <div class="col-xs-12 text-right">
100
+ <button class="btn btn-info" @click="$parent.$parent.$parent.click(row)">处理</button>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </list>
105
+ </criteria-paged>
106
+ </div>
107
+ </template>
108
+ <script>
109
+ import Vue from 'vue'
110
+ import { PagedList, HttpResetClass } from 'vue-client'
111
+ import {isEmpty} from '../../../Util'
112
+ export default {
113
+ title: '管线建设流程',
114
+ props: ['defname', 'f_lat', 'f_lng', 'usertype'],
115
+ data () {
116
+ return {
117
+ model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/getGuanXianApply`, 20, {
118
+ data: {
119
+ userid: Vue.user.id,
120
+ f_filiale: Vue.user.f_fengongsi
121
+ }
122
+ }),
123
+ criteriaShow: false,
124
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')], // 所有报建类型
125
+ defnames: isEmpty(this.$appdata.getParam('管线建设环节')) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam('管线建设环节')], // 流程节点
126
+ applyNatures: [{label: '全部', value: ''}], // 报建性质
127
+ areaList: [],
128
+ showSupervisory: true
129
+ }
130
+ },
131
+ ready () {
132
+ this.getArea()
133
+ this.search()
134
+ },
135
+ methods: {
136
+ refresh () {
137
+ this.search()
138
+ this.$dispatch('refreshDot')
139
+ },
140
+ openAmap (selectdata) {
141
+ HostApp.openThirdPartyMap({
142
+ lon: selectdata.f_lng,
143
+ lat: selectdata.f_lat,
144
+ address: selectdata.f_order_address
145
+ })
146
+ },
147
+ dialNumber (phone) {
148
+ this.$showMessage(`是否拨打电话:${phone}`, ['confirm']).then((res) => {
149
+ if (res === 'confirm') {
150
+ this.$androidUtil.makeAPhoneCall(phone)
151
+ }
152
+ })
153
+ },
154
+ clear () {
155
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
156
+ this.$refs.cp.$refs.cri.model[key] = null
157
+ })
158
+ },
159
+ // 查询
160
+ search () {
161
+ this.$refs.cp.$refs.cri.search()
162
+ this.criteriaShow = false
163
+ },
164
+ searchCondition (args) {
165
+ if (this.defname === '施工信息'){
166
+ args.condition = args.condition + ` and act.defname = '管线建设施工' and (f_construction_unit = '${Vue.user.id}'
167
+ or f_check_operator_id = '${Vue.user.id}' or f_engineering_operator_id = '${Vue.user.id}'
168
+ or f_supervisor_operator_id = '${Vue.user.id}' or f_supervisor_operator = '${Vue.user.id}'
169
+ or f_construct_operator_id = '${Vue.user.id}')`
170
+ } else {
171
+ args.condition += `and act.defname = '${this.defname}'`
172
+ }
173
+ if (this.usertype){
174
+ args.condition += `and u.f_apply_type = '${this.usertype}'`
175
+ }
176
+
177
+ console.log("args.condition",args.condition)
178
+ this.model.search(args.condition, args.model)
179
+ },
180
+ click (row) {
181
+ if (this.defname === '施工信息'){
182
+ row.defname = '施工信息'
183
+ }
184
+ let _this = this
185
+ this.$dispatch('gotoson', {
186
+ _this: _this,
187
+ title: row.defname,
188
+ safe: true
189
+ })
190
+ this.$goto('app-service-control', {selectdata: row}, 'self', _this.refresh)
191
+ },
192
+ applyTypeChange () {
193
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
194
+ let http = new HttpResetClass()
195
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getDefnameByType`, {
196
+ // http.load('POST', 'rs/logic/getDefnameByType', {
197
+ f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type
198
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
199
+ this.defnames = [{label: '全部', value: ''}, ...res.data]
200
+
201
+ this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
202
+ })
203
+ } else {
204
+ this.defnames = [{label: '全部', value: ''}]
205
+
206
+ this.applyNatures = [{label: '全部', value: ''}]
207
+ }
208
+ },
209
+ // 获取小区
210
+ async getArea () {
211
+ let data = {
212
+ tablename: 't_area_address',
213
+ condition: `f_filiale = '${Vue.user.f_fengongsi}' and f_area_status = '启用'`
214
+ }
215
+ let http = new HttpResetClass()
216
+ let res = await http.load(
217
+ 'POST',
218
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/applySingleTable`,
219
+ {data: data},
220
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
221
+ )
222
+ this.areaList = res.data.map(item => {
223
+ return {
224
+ label: item.f_residential_area,
225
+ value: item.f_residential_area
226
+ }
227
+ })
228
+ },
229
+ changeSearch(){
230
+ this.showSupervisory = !this.showSupervisory
231
+ this.search()
232
+ },
233
+ },
234
+ events: {
235
+ 'loadPage' () {
236
+ this.selectdata = {}
237
+ // 关闭详细
238
+ this.showtotal = false
239
+ // 显示列表数据
240
+ this.showData = true
241
+ // 显示分页
242
+ this.$refs.query.$refs.cp.pager = true
243
+ // 调用查询
244
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
245
+ }
246
+ },
247
+ watch: {
248
+ // 通过计算属性同时监听多个值
249
+ 'changeData' () {
250
+ if (!isEmpty(this.f_lat) && !isEmpty(this.f_lng)) {
251
+ this.search()
252
+ }
253
+ }
254
+ },
255
+ computed: {
256
+ changeData () {
257
+ const {f_lat, f_lng} = this
258
+ return {
259
+ f_lat,
260
+ f_lng
261
+ }
262
+ }
263
+ }
264
+ }
265
+ </script>
266
+ <style scoped>
267
+ .panel-self{
268
+ border-radius: 10px;
269
+ border:1px solid #499EDF;
270
+ background-color: #F8F8F8;
271
+ }
272
+ .font{
273
+ font: 15px PingFang-SC-Medium;
274
+ color: #666666;
275
+ }
276
+
277
+ .button_shrink_top {
278
+ width: 34px;
279
+ height: 34px;
280
+ border: solid 1px #6aa6e2;
281
+ background-size: 100%;
282
+ background-image: url("../../../../../static/newStyle/stretch_top.png")
283
+ }
284
+
285
+ .button_shrink_bottom {
286
+ width: 34px;
287
+ height: 34px;
288
+ border: solid 1px #6aa6e2;
289
+ background-size: 100%;
290
+ background-image: url("../../../../../static/newStyle/stretch_bottom.png")
291
+ }
292
+ </style>
293
+ <style lang="less">
294
+ .app-input {
295
+ label {
296
+ float: left;
297
+ }
298
+ .select {
299
+ button {
300
+ border: none;
301
+ outline: none;
302
+ text-align: left;
303
+ .btn-placeholder {
304
+ color: #ACA899
305
+ }
306
+ }
307
+ }
308
+ .datepicker {
309
+ .form-control:focus {
310
+ border: none!important;
311
+ outline: none!important;
312
+ -webkit-box-shadow: none;
313
+ box-shadow: none;
314
+ }
315
+ }
316
+ }
317
+ </style>