apply-clients 3.3.222 → 3.4.2-FuGu-4

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 (114) hide show
  1. package/build/css-loaders.js +34 -0
  2. package/build/dev-android.js +101 -0
  3. package/build/dev-client.js +8 -0
  4. package/build/dev-server-app.js +76 -0
  5. package/build/dev-server.js +119 -0
  6. package/build/example-server.js +80 -0
  7. package/build/release.sh +28 -0
  8. package/build/utils.js +80 -0
  9. package/build/webpack.base.conf.js +85 -0
  10. package/build/webpack.baseandroid.conf.js +84 -0
  11. package/build/webpack.dev.conf.js +51 -0
  12. package/build/webpack.devandroid.conf.js +34 -0
  13. package/build/webpack.example.conf.js +49 -0
  14. package/build/webpack.prod.conf.js +60 -0
  15. package/build/webpack.prodandroid.conf.js +60 -0
  16. package/build/webpack.test.conf.js +31 -0
  17. package/dingding.html +23 -0
  18. package/index.html +1 -1
  19. package/package.json +4 -3
  20. package/src/AndroidApp.vue +18 -13
  21. package/src/App.vue +20 -20
  22. package/src/DingDingApp.vue +51 -0
  23. package/src/android.js +1 -1
  24. package/src/apply.js +75 -91
  25. package/src/applyAndroid.js +25 -54
  26. package/src/applyDingDing.js +12 -0
  27. package/src/components/android/AppOnetomany.vue +37 -21
  28. package/src/components/android/AppServiceView.vue +3 -7
  29. package/src/components/android/AppSign.vue +3 -3
  30. package/src/components/android/AppTakePic.vue +12 -13
  31. package/src/components/android/Process/AppExplorationUser.vue +88 -38
  32. package/src/components/android/Process/AppServiceControl.vue +87 -16
  33. package/src/components/android/Process/Processes/AppInstallationDetails.vue +90 -100
  34. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -0
  35. package/src/components/android/ProgressReport/ProgressReportList.vue +209 -0
  36. package/src/components/android/Supervisory/AppProcessSupervisory.vue +73 -152
  37. package/src/components/android/Supervisory/AppSupervisoryCart.vue +29 -23
  38. package/src/components/android/TaskGraph.vue +125 -0
  39. package/src/components/build/Install/ExplorationUser.vue +304 -0
  40. package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -0
  41. package/src/components/product/ApplyCharge/ApplyChargeList.vue +36 -50
  42. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  43. package/src/components/product/ApplyCharge/printCharge.vue +142 -0
  44. package/src/components/product/Function/InstallFunction.vue +11 -2
  45. package/src/components/product/Function/InstallInfoSelect.vue +29 -47
  46. package/src/components/product/Function/Service/FunctionServiceControl.vue +172 -6
  47. package/src/components/product/Onetomany.vue +105 -24
  48. package/src/components/product/Order/OrderApply.vue +30 -30
  49. package/src/components/product/Order/OrderApplyList.vue +78 -67
  50. package/src/components/product/Order/OrderMessage.vue +11 -88
  51. package/src/components/product/Process/ExplorationSelect.vue +176 -149
  52. package/src/components/product/Process/ExplorationUser.vue +95 -85
  53. package/src/components/product/Process/Processes/InstallationDetails.vue +440 -352
  54. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +35 -9
  55. package/src/components/product/Process/Processes/chargeManagement.vue +634 -638
  56. package/src/components/product/Process/Processes/devicesManagement.vue +22 -2
  57. package/src/components/product/Process/Processes/selectApply.vue +1 -1
  58. package/src/components/product/Process/Service/ServiceControl.vue +1241 -883
  59. package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
  60. package/src/components/product/ServiceView.vue +313 -423
  61. package/src/components/product/Stop/StopApply.vue +27 -25
  62. package/src/components/product/Stop/StopApplyList.vue +26 -11
  63. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +18 -349
  64. package/src/components/product/Supervisory/SupervisoryControl.vue +0 -8
  65. package/src/components/product/Supervisory/SupervisoryList.vue +27 -47
  66. package/src/components/product/Supervisory/SupervisoryhCart.vue +32 -54
  67. package/src/components/product/VueUtils/ApplyUpload.vue +273 -264
  68. package/src/components/product/VueUtils/HighMeter.vue +208 -0
  69. package/src/dingding.js +20 -0
  70. package/src/expandcssAndroid.less +879 -362
  71. package/src/main.js +1 -1
  72. package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
  73. package/src/components/android/Function/AppInstallFunction.vue +0 -330
  74. package/src/components/android/Order/ApplyOrder.vue +0 -141
  75. package/src/components/android/Process/Processes/AppBuildSign.vue +0 -47
  76. package/src/components/android/Process/Processes/AppChargeManagement.vue +0 -468
  77. package/src/components/android/Process/Processes/AppDevicesManagement.vue +0 -490
  78. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +0 -297
  79. package/src/components/android/Process/Processes/AppjiaSign.vue +0 -47
  80. package/src/components/android/Process/Processes/AppjiafangSign.vue +0 -47
  81. package/src/components/android/Process/Processes/ApptechnologySign.vue +0 -47
  82. package/src/components/image/danwei.png +0 -0
  83. package/src/components/image/dizhi.png +0 -0
  84. package/src/components/image/dwg.jpg +0 -0
  85. package/src/components/image/name.png +0 -0
  86. package/src/components/image/phone.png +0 -0
  87. package/src/components/image/type.png +0 -0
  88. package/src/components/image/yasuobao.jpg +0 -0
  89. package/src/components/image/zaixiantousu1.png +0 -0
  90. package/src/components/image/zizhukaitong.png +0 -0
  91. package/src/components/image//346/210/221/347/232/204.png +0 -0
  92. package/src/components/product/Function/Inform.vue +0 -73
  93. package/src/components/product/Function/MarketSurvey.vue +0 -81
  94. package/src/components/product/Process/Processes/printCharge.vue +0 -121
  95. package/src/components/product/Process/ShowBackReason.vue +0 -33
  96. package/src/components/product/Supervisory/Service/printChargeNode.vue +0 -873
  97. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +0 -1090
  98. package/src/components/product/VueUtils/ToolsPage.vue +0 -51
  99. package/src/components/product/VueUtils/Tree.vue +0 -330
  100. package/src/filiale/wuan/android.js +0 -0
  101. package/src/filiale/wuan/pc.js +0 -4
  102. package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
  103. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +0 -414
  104. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +0 -456
  105. package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
  106. package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
  107. package/src/filiale/yuchuan/android.js +0 -8
  108. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +0 -517
  109. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +0 -343
  110. package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +0 -356
  111. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +0 -131
  112. package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
  113. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +0 -517
  114. package/src/filiale/yuchuan/pc.js +0 -13
@@ -1,356 +0,0 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria partial='criteria' @condition-changed='search' 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-3">
8
- <label class="font_normal_body">组织机构:</label>
9
- <res-select
10
- restype='organization'
11
- :initresid='$parent.$parent.curorgid'
12
- @res-select="$parent.$parent.getorg"
13
- is-mul="false"
14
- ></res-select>
15
- </div>
16
- <div class="form-group col-sm-3">
17
- <label class="font_normal_body">报建编号:</label>
18
- <input type="text" style="width:60%" class="input_search" placeholder='报建编号' v-model="model.f_apply_num"
19
- v-on:keyup.enter="$parent.$parent.search()"
20
- condition="f_apply_num = '{}'">
21
- </div>
22
- <div class="form-group col-sm-3">
23
- <label class="font_normal_body">项目名称:</label>
24
- <input type="text" style="width:60%" class="input_search" v-model="model.f_entry_name"
25
- v-on:keyup.enter="$parent.$parent.search()" condition="f_entry_name like '%{}%'" placeholder='项目名称'>
26
- </div>
27
- <div class="form-group col-sm-3 button-range">
28
- <button class="button_new button_spacing" style="width: max-content"
29
- @click="$parent.$parent.showModal = !$parent.$parent.showModal">工程发起</button>
30
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
31
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
32
- <div
33
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
34
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
35
- class="button_spacing"
36
- style="float: right">
37
- </div>
38
- </div>
39
- </div>
40
- <div class="row" v-show="$parent.$parent.criteriaShow">
41
- <div class="form-group col-sm-3">
42
- <label class="font_normal_body">客户名称:</label>
43
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
44
- v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
45
- </div>
46
- <div class="form-group col-sm-3">
47
- <label class="font_normal_body">联&ensp;系&ensp;人:</label>
48
- <input type="text" style="width:60%" class="input_search" v-model="model.f_contact"
49
- v-on:keyup.enter="$parent.$parent.search()" condition="f_contact like '%{}%'" placeholder='联系人'>
50
- </div>
51
- <div class="form-group col-sm-3">
52
- <label class="font_normal_body">合同编号:</label>
53
- <input type="text" style="width:60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
54
- v-on:keyup.enter="$parent.$parent.search()"
55
- condition="f_contract_number = '{}'">
56
- </div>
57
- <div class="form-group col-sm-3">
58
- <label class="font_normal_body">报建类型:</label>
59
- <v-select
60
- v-model="model.f_apply_type"
61
- placeholder='报建类型'
62
- condition="f_apply_type like '%{}%'"
63
- :value.sync="model.f_apply_type"
64
- :options='$parent.$parent.applytype'
65
- class="select select_list"
66
- :value-single="true"
67
- @change="$parent.$parent.applyTypeChange()"
68
- close-on-select ></v-select>
69
- </div>
70
- <div class="form-group col-sm-3">
71
- <label class="font_normal_body">办理环节:</label>
72
- <v-select
73
- v-model="model.defname"
74
- placeholder='办理环节'
75
- condition="defname = '{}'"
76
- :value.sync="model.defname"
77
- :options='$parent.$parent.defnames'
78
- class="select select_list"
79
- :value-single="true"
80
- close-on-select ></v-select>
81
- </div>
82
- <div class="form-group col-sm-3">
83
- <label class="font_normal_body">联系电话:</label>
84
- <input type="text" style="width:60%" class="input_search" placeholder='联系电话' v-model="model.f_phone"
85
- v-on:keyup.enter="$parent.$parent.search()"
86
- condition="f_phone like '%{}%'">
87
- </div>
88
- <div class="form-group col-sm-3">
89
- <label class="font_normal_body">用户地址:</label>
90
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
91
- v-on:keyup.enter="$parent.$parent.search()"
92
- condition="f_address like '%{}%'">
93
- </div>
94
- <div class="form-group col-sm-3">
95
- <label for="startDate" class="font_normal_body">开始时间:</label>
96
- <datepicker id="startDate" placeholder="开始日期"
97
- style="width: 60%!important;"
98
- v-model="model.startDate"
99
- :value.sync="model.startDate"
100
- :format="'yyyy-MM-dd HH:mm:ss'"
101
- :show-reset-button="true"
102
- condition="f_apply_date >= '{}'">
103
- </datepicker>
104
- </div>
105
- <div class="form-group col-sm-3">
106
- <label for="endDate" class="font_normal_body">结束时间:</label>
107
- <datepicker id="endDate" placeholder="结束日期"
108
- style="width: 60%!important;"
109
- v-model="model.endDate"
110
- :value.sync="model.endDate"
111
- :format="'yyyy-MM-dd HH:mm:ss'"
112
- :show-reset-button="true"
113
- condition="f_apply_date <= '{}'">
114
- </datepicker>
115
- </div>
116
- </div>
117
- </div>
118
- </criteria>
119
- <data-grid v-if="$parent.showData" :model="model" partial='list' v-ref:grid class="list_area table_sy" style="height: 100%">
120
- <template partial='head'>
121
- <tr>
122
- <th style="white-space: nowrap;">序号</th>
123
- <th style="white-space: nowrap;">报建编号</th>
124
- <th style="white-space: nowrap;">项目名称/客户名称/联系人</th>
125
- <th style="white-space: nowrap;">合同编号</th>
126
- <th style="white-space: nowrap;">电话</th>
127
- <th style="white-space: nowrap;">地址</th>
128
- <th style="white-space: nowrap;">报建类型</th>
129
- <th style="white-space: nowrap;">办理环节</th>
130
- <th style="white-space: nowrap;">流程状态</th>
131
- <th style="white-space: nowrap;">报建日期</th>
132
- <th style="white-space: nowrap;">操作</th>
133
- </tr>
134
- </template>
135
- <template partial='body'>
136
- <tr >
137
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
138
- <nobr><font>{{$index+1}}</font></nobr>
139
- </td>
140
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
141
- <nobr><font>{{row.f_apply_num}}</font></nobr>
142
- </td>
143
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
144
- <nobr><font>{{row.f_entry_name}}/{{row.f_user_name}}/{{row.f_contact}}</font></nobr>
145
- </td>
146
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
147
- <nobr><font>{{row.f_contract_number}}</font></nobr>
148
- </td>
149
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
150
- <nobr><font>{{row.f_phone}}</font></nobr>
151
- </td>
152
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
153
- <nobr><font>{{row.f_address}}</font></nobr>
154
- </td>
155
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
156
- <nobr><font>{{row.f_apply_type}}</font></nobr>
157
- </td>
158
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
159
- <nobr><font>{{row.defname}}</font></nobr>
160
- </td>
161
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
162
- <nobr><font>{{row.f_sub_state}}</font></nobr>
163
- </td>
164
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
165
- <nobr><font>{{row.f_apply_date}}</font></nobr>
166
- </td>
167
- <td :class="[ row.isover ==='过期' ? 'p1' : row.isbeforeover === '预期提醒'? 'p':'' ]" style="text-align: center;">
168
- <dropdown>
169
- <button type="button" data-toggle="dropdown" style="border: 0px;background: none;">
170
- <span class="glyphicon glyphicon-th-list" style="position: inherit;"></span>
171
- </button>
172
- <ul slot="dropdown-menu" class="dropdown-menu dropdown-menu-right">
173
- <li>
174
- <a href="#" @click="$parent.$parent.$parent.click(row)">{{row.defname}}</a>
175
- </li>
176
- </ul>
177
- </dropdown>
178
- </td>
179
- </tr>
180
- </template>
181
- </data-grid>
182
- </criteria-paged>
183
-
184
- <modal
185
- v-if="showModal"
186
- :show.sync="showModal"
187
- backdrop="false"
188
- title="工程类型"
189
- cancel-text="取消"
190
- ok-text="确认"
191
- :callback="apply"
192
- >
193
- <div class="form-horizontal" slot="modal-body">
194
- <div class="form-group" style="margin: 10px auto">
195
- <label class="col-sm-3 control-label">报建类型:</label>
196
- <div class="col-sm-9">
197
- <v-select
198
- v-model="applyType"
199
- placeholder='请选择需要发起的工程类型'
200
- :value.sync="applyType"
201
- :options='$appdata.getParam("报建类型")'
202
- :value-single="true"
203
- class="select select_list"
204
- :search="false"
205
- close-on-select ></v-select>
206
- </div>
207
- </div>
208
- </div>
209
- </modal>
210
- </div>
211
- </template>
212
- <script>
213
- import {PagedList} from 'vue-client'
214
- import {isEmpty} from '../../../../components/Util'
215
-
216
- export default {
217
- title: '工程列表',
218
- props: ['showData'],
219
- data () {
220
- return {
221
- model: new PagedList('rs/sql/checkuser', 20, {
222
- data: {
223
- id: this.$login.f.id,
224
- orgid: this.$login.f.orgid
225
- }
226
- }),
227
- showModal: false, // 控制发起类型选择
228
- applyType: '', // 报建类型
229
- curorgid: [this.$login.f.orgid],
230
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
231
- defnames: [{label: '全部', value: ''}], // 流程节点
232
- criteriaShow: false
233
- }
234
- },
235
- ready () {
236
- // 调用查询
237
- this.search()
238
- },
239
- methods: {
240
- // 点击操作
241
- click (val) {
242
- this.$dispatch('apply', val)
243
- },
244
- // 获取流程id
245
- async getProcessId(processname) {
246
- let data = {
247
- workname: processname
248
- }
249
- let res = await this.$resetpost(
250
- 'rs/logic/getProcessId',
251
- {data: data},
252
- {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
253
- )
254
-
255
- return res.data
256
- },
257
- // 报装申请
258
- async apply () {
259
- if (this.applyType === '' || this.applyType === null) {
260
- this.$showAlert('请选择需要发起的类型', 'warning', 3000)
261
- return
262
- }
263
- let data = {
264
- f_apply_type: this.applyType
265
- }
266
- if (this.applyType === '民用') {
267
- data.defname = '报建申请'
268
- data.processname = '民用报建流程'
269
- } else {
270
- this.$showMessage('暂无此类报装')
271
- return
272
- }
273
-
274
- data.f_sub_state = "新增"
275
- data.f_process_id = await this.getProcessId(data.processname)
276
-
277
- // 调用ExplorationUser事件
278
- this.$dispatch('apply', data)
279
-
280
- this.applyType = null
281
- this.showModal = false
282
- },
283
- search () {
284
- this.$dispatch('search')
285
- },
286
- async applyTypeChange () {
287
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
288
- let res = await this.$resetpost('rs/logic/getDefnameByType',
289
- { f_apply_type: this.$refs.cp.$refs.cri.model.f_apply_type },
290
- {resolveMsg: null, rejectMsg: '节点信息获取失败!!!'}
291
- )
292
-
293
- this.defnames = [{label: '全部', value: ''}, ...res.data]
294
- } else {
295
- this.defnames = [{label: '全部', value: ''}]
296
- }
297
- },
298
- clear () {
299
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
300
- this.$refs.cp.$refs.cri.model[key] = null
301
- })
302
- },
303
- getorg (val) {
304
- if (val.length <= 0) {
305
- return
306
- }
307
- this.model.params.data.orgid = val[0]
308
- }
309
- },
310
- computed: {
311
- },
312
- watch: {
313
- 'model.rows': {
314
- handler: function () {
315
- let isover = [] // 过期(超时)数据
316
- let isbeforeover = [] // 未过期 提前提醒
317
- for (let i = 0; i < this.model.rows.length; i++) {
318
- let item = this.model.rows[i]
319
- if (item.isover === '过期') {
320
- isover.push(i + 1)
321
- }
322
- if (item.isbeforeover === '预期提醒') {
323
- isbeforeover.push(i + 1)
324
- }
325
- }
326
- let msg = null
327
- if (isover.length > 0) {
328
- msg = `第${isover.toString()}条数据已过期`
329
- this.$showAlert(msg, 'warning', 3000)
330
- }
331
-
332
- if (isbeforeover.length > 0) {
333
- msg = `第${isbeforeover.toString()}条数据即将过期`
334
- if (isover.length > 0) {
335
- setTimeout(() => {
336
- this.$showAlert(msg, 'warning', 3000)
337
- }, 4000)
338
- } else {
339
- this.$showAlert(msg, 'warning', 3000)
340
- }
341
- }
342
- }
343
- }
344
- }
345
- }
346
- </script>
347
- <style scoped>
348
-
349
- .p1 {
350
- color: #dc0b12;
351
- font-weight:bold
352
- }
353
- .p {
354
- color: #ffaf4f;
355
- }
356
- </style>
@@ -1,131 +0,0 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData ? 'top' : 'auto'" v-show="showQuery">
5
- <exploration-select v-ref:query :show-data="showData"></exploration-select>
6
- </div>
7
- <div v-if="showtotal" style="height: 89%">
8
- <tabset v-ref:tabs :close="false">
9
- <tab :header='selectdata.defname'>
10
- <service-control v-ref:service :selectdata="selectdata"></service-control>
11
- </tab>
12
- <tab header='地图定位'>
13
- <apply-map-com v-ref:applymap :selectdata="selectdata"></apply-map-com>
14
- </tab>
15
- <tab header='附件'>
16
- <apply-upload :blodid="selectdata.f_process_id"
17
- :isupload = "true"
18
- :isdelete="true"
19
- :isusetype="true"
20
- :isremark = "true"
21
- :takeimg="false"
22
- :issearch="true"
23
- :defname="selectdata.defname">
24
- </apply-upload>
25
- </tab>
26
- </tabset>
27
- </div>
28
- </div>
29
- </div>
30
- </template>
31
- <script>
32
- import Vue from 'vue'
33
- import {HttpResetClass} from 'vue-client'
34
- import MapCom from './Processes/MapCom'
35
- export default {
36
- components: {MapCom},
37
- title: '报建流程',
38
- data () {
39
- return {
40
- showQuery: true, // 控制查询页
41
- showData: true, // 控制列表数据
42
- showtotal: false, // 详情显示
43
- selectdata: {},
44
- xmlname: '' // 配置文件名
45
- }
46
- },
47
- ready () {
48
- },
49
- methods: {
50
- // 获取页面配置json文件
51
- async loadName () {
52
-
53
- let data = {
54
- workname: this.selectdata.processname
55
- }
56
- let res = await this.$resetpost(
57
- 'rs/logic/ApplyGetConfigs',
58
- {data: data},
59
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
60
- )
61
-
62
- Vue.prototype.$workflow_vue = res.data
63
- }
64
- },
65
- events: {
66
- 'onMessage' (data) {
67
- console.log('接收消息')
68
- console.log(data)
69
- if (data.type === 'apply-task') {
70
- this.$refs.query.$refs.cp.$refs.cri.search()
71
- }
72
- },
73
- // 刷新控制层
74
- async 'breakControl' (servicedata) {
75
-
76
- if (servicedata.id) {
77
- let data = {
78
- condition: `u.id = ${servicedata.id}`,
79
- data: {
80
- id: this.$login.f.id,
81
- orgid: this.$login.f.orgid
82
- }
83
- }
84
- let res = await this.$resetpost(
85
- 'rs/sql/checkuser',
86
- {data: data},
87
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
88
- )
89
-
90
- this.selectdata = res.data[0]
91
- } else {
92
- this.selectdata = servicedata
93
- }
94
-
95
- this.showtotal = false
96
- this.$nextTick(() => {
97
- this.showtotal = true
98
- })
99
-
100
- },
101
- // 初始化
102
- async 'apply' (val) {
103
- this.showtotal = false
104
- this.selectdata = JSON.parse(JSON.stringify(val))
105
-
106
- // 次方法必须同步执行,否则后续会出问题
107
- // 获取页面json配置文件
108
- await this.loadName()
109
-
110
- // 显示详细
111
- this.showtotal = true
112
- // 关闭列表数据
113
- this.showData = false
114
- // 关闭分页
115
- this.$refs.query.$refs.cp.pager = false
116
- },
117
- 'search' () {
118
- // 关闭详细
119
- this.showtotal = false
120
- // 显示列表数据
121
- this.showData = true
122
- // 显示分页
123
- this.$refs.query.$refs.cp.pager = true
124
- // 调用查询
125
- this.$refs.query.$refs.cp.$refs.cri.search()
126
- }
127
- },
128
- watch: {
129
- }
130
- }
131
- </script>
@@ -1,51 +0,0 @@
1
- <template>
2
- <div>
3
- <AMap-location v-ref:amap :isshowsearch="false"
4
- :mylocationinfo="false"
5
- :isshowmapmodel="false"
6
- mapmodel="dragMarker"></AMap-location>
7
- </div>
8
- </template>
9
- <script>
10
- import Vue from 'vue'
11
- export default {
12
- title: '地图',
13
- props: {
14
- selectdata: {
15
- type: Object
16
- }
17
- },
18
- data () {
19
- return {
20
- }
21
- },
22
- ready () {
23
- let data = {
24
- data: this.selectdata,
25
- label: `<div style="background: #fff;border-radius: 5px;padding: 5px">
26
- <h5>${this.selectdata.f_order_address}</h5>
27
- </div>`,
28
- content: `<div style="background: #fff;">
29
- <h5>${this.selectdata.f_contact}</h5>
30
- <h5>${this.selectdata.f_phone}</h5>
31
- <h5>${this.selectdata.f_order_address}</h5>
32
- </div>`
33
- }
34
-
35
- let position = [this.selectdata.f_longitude, this.selectdata.f_dimension]
36
- setTimeout(() => {
37
- this.$refs.amap.showWindowInfoAndSpot(data, position)
38
- },1000)
39
- },
40
- methods: {
41
- },
42
- events: {
43
- },
44
- computed: {
45
- },
46
- watch: {
47
- }
48
- }
49
- </script>
50
- <style scoped>
51
- </style>