apply-clients 5.0.35-53 → 5.0.35-56

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.
@@ -9,12 +9,15 @@
9
9
  <div class=" row">
10
10
  待办工程<span v-if="rows">({{ rows.length }}单)</span>
11
11
  <span v-if="!rows">(暂无待处理工程单)</span>
12
+ <button class="btn btn-primary btn-sm" type="button" style="float:right"
13
+ @click="addactive('踏勘、建立工程编号')">
14
+ <span class="glyphicon glyphicon-plus" ></span>新增流程
15
+ </button>
12
16
  <img @click="search" src="../../assets/shuaxindaiban1.png" style="width: 40px;padding: 5px; float:right">
13
17
  <div style="margin-right: 3%;float:right;height: 30px " class="button_spacing"
14
18
  :class="{'button_shrink_top':criteriaShow,'button_shrink_bottom':!criteriaShow}" @click="hidden()"></div>
15
19
 
16
20
  </div>
17
-
18
21
  </blockquote>
19
22
 
20
23
  </div>
@@ -98,6 +101,7 @@
98
101
  <script>
99
102
  import Vue from 'vue'
100
103
  import {HttpResetClass} from 'vue-client'
104
+ import * as Util from "../Util";
101
105
 
102
106
  export default {
103
107
  title: '待办报建列表',
@@ -182,6 +186,26 @@ export default {
182
186
  },
183
187
  upload() {
184
188
  this.$goto('up-load')
189
+ },
190
+ addactive(modify) {
191
+ let http = new HttpResetClass()
192
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyGetProcessID`, {
193
+ data: {
194
+ filename: '鄂州报建流程',
195
+ start_activity: modify
196
+ }
197
+ }).then(res => {
198
+ let data = {
199
+ f_process_id: res.data.f_process_id,
200
+ f_product_id: res.data.f_product_id,
201
+ start_activity: modify,
202
+ user: Vue.user,
203
+ defname: modify
204
+ }
205
+ setTimeout(() => {
206
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/newaddApplyproduct`, {data: data})
207
+ }, 400)
208
+ })
185
209
  }
186
210
  },
187
211
  ready() {
@@ -189,23 +213,18 @@ export default {
189
213
  var _this = this;
190
214
  this.timeoutHandle = window.setInterval(function () {
191
215
  _this.search()
192
- }, 6000000)//60000
216
+ }, 6000000)// 60000
193
217
  },
194
218
  created() {
195
- // var result = HostApp.readLocalFile('workflow_apply.json')
196
- // if (result.code == 500) {
197
- // this.$showMessage('获取流程配置文件失败,请联系系统管理员')
198
- // return
199
- // }
200
- //
201
- // var data = JSON.parse(result)
202
- // console.log(data)
203
-
204
-
205
-
206
-
219
+ var result = HostApp.readLocalFile('workflow_apply.json')
220
+ if (result.code == 500) {
221
+ this.$showMessage('获取流程配置文件失败,请联系系统管理员')
222
+ return
223
+ }
207
224
 
208
- var data={
225
+ var data = JSON.parse(result)
226
+ console.log(data)
227
+ /* var data={
209
228
  "start_activitys": [
210
229
  "集体报装申请",
211
230
  "报装申请",
@@ -3502,13 +3521,11 @@ export default {
3502
3521
  ]
3503
3522
  }
3504
3523
  ]
3505
- }
3524
+ }*/
3506
3525
 
3507
3526
  console.log('前台存入缓存中的data=>' + JSON.stringify(data))
3508
3527
  Vue.workflow_vue = Vue.prototype.$workflow_vue = data
3509
3528
  }
3510
-
3511
-
3512
3529
  }
3513
3530
  </script>
3514
3531
 
@@ -33,7 +33,7 @@
33
33
  import Vue from 'vue'
34
34
  import {HttpResetClass} from 'vue-client'
35
35
  export default {
36
- title: '流程监控',
36
+ title: '工程流程监控',
37
37
  props: [ 'defname'],
38
38
  data() {
39
39
  return {