apply-clients 4.1.15-weinan → 4.1.16-weinan
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/package.json +1 -1
- package/src/applyAndroid.js +2 -1
- package/src/assets//345/210/240/351/231/244.png +0 -0
- package/src/components/app_apply/AppTakePic.vue +146 -0
- package/src/components/app_apply/ApplyToDoList.vue +1 -1
- package/src/components/app_apply/PlaceControler.vue +29 -24
- package/src/components/app_apply/ServiceControl.vue +20 -3
- package/src/components/product/Process/ExplorationUser.vue +134 -134
- package/src/components/product/Process/Service/ServiceControl.vue +2 -2
- package/src/components/product/ServiceView.vue +812 -802
- package/src/components/product/Supervisory/SupervisoryControl.vue +2 -2
- package/src/components/product/VueUtils/ApplyUpload.vue +276 -261
package/package.json
CHANGED
package/src/applyAndroid.js
CHANGED
|
@@ -35,7 +35,8 @@ export default function () {
|
|
|
35
35
|
Vue.component('app-charge-management', (resolve) => { require(['./components/app_apply/AppChargeManagement'], resolve) })
|
|
36
36
|
// 材料收费信息
|
|
37
37
|
Vue.component('app-materialshoufei', (resolve) => { require(['./components/app_apply/materialshoufei'], resolve) })
|
|
38
|
-
|
|
38
|
+
// 拍照
|
|
39
|
+
Vue.component('app-take-pic', (resolve) => { require(['./components/app_apply/AppTakePic'], resolve) })
|
|
39
40
|
// 业务tab(control层)页
|
|
40
41
|
Vue.component('service-control-app', (resolve) => { require(['./components/app_apply/ServiceControl'], resolve) })
|
|
41
42
|
// 公共业务显示(view层)页
|
|
Binary file
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="panel">
|
|
3
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;">
|
|
4
|
+
<div class="row form-group" style="height: 240px;overflow: scroll;">
|
|
5
|
+
<div class="col-xs-4 col-sm-3 col-md-2 col-xs-offset-1 col-sm-offset-1 col-md-offset-1" v-for="(index,file) in fileList">
|
|
6
|
+
<img-self :src="file.f_downloadURL" :width="120" :height="170"></img-self>
|
|
7
|
+
<img v-if="isdelete" src="../../../src/assets/删除.png" style="width: 15px;margin-top: -80px" @click.prevent="delfile(file, index)">
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="row text-right form-group" v-if="istakepic">
|
|
11
|
+
<v-select
|
|
12
|
+
class="fileType"
|
|
13
|
+
placeholder="请选择文件类型"
|
|
14
|
+
v-show="false"
|
|
15
|
+
:search="false"
|
|
16
|
+
close-on-select
|
|
17
|
+
value-single
|
|
18
|
+
:options="typeList"
|
|
19
|
+
v-model="type"
|
|
20
|
+
:value.sync="type"
|
|
21
|
+
></v-select>
|
|
22
|
+
<button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import {HttpResetClass} from 'vue-client'
|
|
30
|
+
import {guid, toStandardTimeString} from '../Util'
|
|
31
|
+
import Vue from 'vue'
|
|
32
|
+
export default {
|
|
33
|
+
title: '附件',
|
|
34
|
+
props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic'],
|
|
35
|
+
data () {
|
|
36
|
+
return {
|
|
37
|
+
fileList: []
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
ready () {
|
|
41
|
+
this.getFiles()
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
async getFiles () {
|
|
45
|
+
console.log('----------------开始查询图片----------------')
|
|
46
|
+
this.fileList = []
|
|
47
|
+
|
|
48
|
+
let http = new HttpResetClass()
|
|
49
|
+
|
|
50
|
+
let data = {
|
|
51
|
+
tablename: 't_files',
|
|
52
|
+
condition: `f_blobid = '${this.blobid}' and fremarks = '手机拍照' order by f_uploaddate desc `
|
|
53
|
+
}
|
|
54
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
55
|
+
// let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
|
|
56
|
+
warnMsg: null,
|
|
57
|
+
resolveMsg: null
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
for (var i = 0; i < res.data.length; i++) {
|
|
61
|
+
console.log('-----------地址----------------')
|
|
62
|
+
console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 3)}`)
|
|
63
|
+
res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 3)}`
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
this.fileList = res.data
|
|
67
|
+
},
|
|
68
|
+
delfile (file, index) {
|
|
69
|
+
this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
70
|
+
this.$dispatch("delResid", file.id)
|
|
71
|
+
this.getFiles()
|
|
72
|
+
})
|
|
73
|
+
},
|
|
74
|
+
takePic (title) {
|
|
75
|
+
// 拍照成功回调
|
|
76
|
+
console.log('-----------拍照成功回调-----------------')
|
|
77
|
+
HostApp.__callback__ = this.cameraCallBack
|
|
78
|
+
HostApp.__this__ = this
|
|
79
|
+
let fileName = guid() + '.jpg'
|
|
80
|
+
// 打开相机
|
|
81
|
+
console.log('-----------打开相机-----------------')
|
|
82
|
+
HostApp._open_a_page({
|
|
83
|
+
type: 'boomerang',
|
|
84
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
85
|
+
param: {
|
|
86
|
+
file: fileName,
|
|
87
|
+
requestCode: 200,
|
|
88
|
+
callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
|
|
89
|
+
watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
|
|
90
|
+
}
|
|
91
|
+
})
|
|
92
|
+
},
|
|
93
|
+
cameraCallBack (fileName, fileUrl) {
|
|
94
|
+
console.log('-----------cameraCallBack-----------------')
|
|
95
|
+
|
|
96
|
+
let data = {
|
|
97
|
+
blodid: HostApp.__this__.blobid,
|
|
98
|
+
type: HostApp.__this__.type,
|
|
99
|
+
defname: HostApp.__this__.defname,
|
|
100
|
+
username: Vue.user.name,
|
|
101
|
+
fremarks: '手机拍照',
|
|
102
|
+
fileName: fileName,
|
|
103
|
+
fileUrl: fileUrl
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
console.log('-----------bzLogic-----------------')
|
|
107
|
+
HostApp.bzLogic({
|
|
108
|
+
'logic': 'appFileUpload',
|
|
109
|
+
'data': data
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
console.log('----------------开始回调查询-------------------')
|
|
113
|
+
HostApp.__this__.getFiles()
|
|
114
|
+
console.log('----------------查询回调结束-------------------')
|
|
115
|
+
|
|
116
|
+
HostApp.__callback__ = null
|
|
117
|
+
HostApp.__this__ = null
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
computed: {
|
|
121
|
+
typeList () {
|
|
122
|
+
if (this.typelabel) {
|
|
123
|
+
return this.$appdata.getParam(this.typelabel)
|
|
124
|
+
}
|
|
125
|
+
return this.$appdata.getParam('文件类型')
|
|
126
|
+
// return [{label:"jpg",value:"jpg"}]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
events: {
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
</script>
|
|
133
|
+
|
|
134
|
+
<style lang="less">
|
|
135
|
+
.fileType {
|
|
136
|
+
float: left;
|
|
137
|
+
.select-style {
|
|
138
|
+
background: #f8f8f8;
|
|
139
|
+
border: 0px;
|
|
140
|
+
}
|
|
141
|
+
input {
|
|
142
|
+
border-left: none;
|
|
143
|
+
width: 100%;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
</style>
|
|
@@ -104,7 +104,7 @@ export default{
|
|
|
104
104
|
_this.$back()
|
|
105
105
|
},
|
|
106
106
|
search () {
|
|
107
|
-
var condition = "1=1 and (f_apply_type! = '居民报建' or (f_apply_type = '居民报建' and defname = '现场勘察'))"
|
|
107
|
+
var condition = "1=1 and (f_apply_type! = '居民报建' and f_apply_type! = '工商户报建' or (f_apply_type = '居民报建' and defname = '现场勘察') or (f_apply_type = '工商户报建' and (defname = '现场勘察' or defname = '施工'))))"
|
|
108
108
|
var param = {condition: condition,condValue:[],data:{"id": Vue.user.id,orgid: Vue.user.orgid}}
|
|
109
109
|
let http = new HttpResetClass()
|
|
110
110
|
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,{data:param}).then(res=>{
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
</template>
|
|
34
34
|
|
|
35
35
|
<script>
|
|
36
|
-
import ApplyUserInfo from
|
|
37
|
-
import ApplyInfo from
|
|
36
|
+
import ApplyUserInfo from './ApplyUserInfo'
|
|
37
|
+
import ApplyInfo from './ApplyInfo'
|
|
38
38
|
// import FieldExploration from "./FieldExploration";
|
|
39
39
|
// import Ventilation from "./Ventilation";
|
|
40
40
|
// import Acceptance from "./Acceptance";
|
|
41
|
-
import ServiceControl from
|
|
42
|
-
|
|
41
|
+
import ServiceControl from './ServiceControl'
|
|
42
|
+
import AppTakePic from './AppTakePic'
|
|
43
43
|
export default {
|
|
44
44
|
title: '报建代办详情',
|
|
45
45
|
props: {
|
|
46
|
-
|
|
46
|
+
// 分辨平板还是pc
|
|
47
47
|
system: '',
|
|
48
48
|
// 要处理的工单
|
|
49
49
|
row: {
|
|
@@ -60,11 +60,10 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
data() {
|
|
63
|
+
data () {
|
|
65
64
|
return {
|
|
66
|
-
routeShow:true,
|
|
67
|
-
number:0,
|
|
65
|
+
routeShow: true,
|
|
66
|
+
number: 0,
|
|
68
67
|
// shupingshow:false,
|
|
69
68
|
pipeline: {},
|
|
70
69
|
componentName: 'apply-user-info',
|
|
@@ -75,6 +74,9 @@
|
|
|
75
74
|
},
|
|
76
75
|
'apply-defame-work': {
|
|
77
76
|
header: null, class: 'apply-info-class', props: null
|
|
77
|
+
},
|
|
78
|
+
'app-take-pic': {
|
|
79
|
+
header: '拍照', class: 'apply-info-class', props: null
|
|
78
80
|
}
|
|
79
81
|
},
|
|
80
82
|
// actName: this.$appdata.getParam('用气类型'), // 报建app需提取的流程名称
|
|
@@ -83,10 +85,10 @@
|
|
|
83
85
|
},
|
|
84
86
|
|
|
85
87
|
methods: {
|
|
86
|
-
imgback(val){
|
|
87
|
-
if(val && this.routeShow){
|
|
88
|
+
imgback (val) {
|
|
89
|
+
if (val && this.routeShow) {
|
|
88
90
|
return require('../../assets/xiangxia1.png')
|
|
89
|
-
}else{
|
|
91
|
+
} else {
|
|
90
92
|
return require('../../assets/xiangyou1.png')
|
|
91
93
|
}
|
|
92
94
|
},
|
|
@@ -99,22 +101,24 @@
|
|
|
99
101
|
})
|
|
100
102
|
},
|
|
101
103
|
// 选择tab
|
|
102
|
-
tabSelect (name,number) {
|
|
104
|
+
tabSelect (name, number) {
|
|
103
105
|
this.number = number
|
|
104
106
|
this.tabs[name].props = null
|
|
105
107
|
// 处理关闭/显示 内容
|
|
106
|
-
if(this.componentName
|
|
108
|
+
if (this.componentName === name && !this.routeShow) {
|
|
107
109
|
this.routeShow = true
|
|
108
|
-
}else if(this.componentName
|
|
110
|
+
} else if (this.componentName === name && this.routeShow) {
|
|
109
111
|
this.routeShow = false
|
|
110
|
-
}else if(this.componentName
|
|
112
|
+
} else if (this.componentName !== name) {
|
|
111
113
|
this.routeShow = true
|
|
112
114
|
}
|
|
113
115
|
this.componentName = name
|
|
114
116
|
console.log('name=>' + name)
|
|
115
|
-
if(
|
|
117
|
+
if (name === 'apply-info') {
|
|
116
118
|
this.tabs[name].props = {service: this.row, shutype: 'shu'}
|
|
117
|
-
}else{
|
|
119
|
+
} else if (name === 'app-take-pic') {
|
|
120
|
+
this.tabs[name].props = {blobid: this.row.f_process_id, defname: this.row.defname, isdelete: 'true', istakepic: 'true', istype: 'true'}
|
|
121
|
+
} else {
|
|
118
122
|
this.row.defname = this.row.defname
|
|
119
123
|
// this.row.fields = new Array()
|
|
120
124
|
// this.row.buttons = new Array()
|
|
@@ -124,25 +128,25 @@
|
|
|
124
128
|
this.$goto(name, this.tabs[name].props, 'apply')
|
|
125
129
|
// this.shupingshow = true
|
|
126
130
|
},
|
|
127
|
-
setProps() {
|
|
131
|
+
setProps () {
|
|
128
132
|
// 给各自组件添加参数
|
|
129
133
|
// this.tabs['apply-user-info'].props = {service: this.row, shutype: 'shu'}
|
|
130
134
|
// this.tabs['apply-info'].props = {service: this.row, shutype: 'shu'}
|
|
131
135
|
// this.tabs['apply-defame-work'].props = {model: this.row, shutype: 'shu'}
|
|
132
136
|
|
|
133
137
|
// this.$goto('apply-user-info', this.tabs[this.componentName].props, 'apply')
|
|
134
|
-
}
|
|
138
|
+
}
|
|
135
139
|
},
|
|
136
140
|
ready () {
|
|
137
141
|
var keyName = 'apply-defame-work'
|
|
138
142
|
var valueHeader = this.row.defname
|
|
139
143
|
var value = {
|
|
140
|
-
header:valueHeader,
|
|
144
|
+
header: valueHeader,
|
|
141
145
|
class: 'apply-info-class',
|
|
142
146
|
props: null
|
|
143
147
|
}
|
|
144
148
|
this.tabs[keyName] = value
|
|
145
|
-
console.log(
|
|
149
|
+
console.log('this.number=>' + this.number)
|
|
146
150
|
// this.$set('tabs.' + keyName ,value)
|
|
147
151
|
this.setProps()
|
|
148
152
|
},
|
|
@@ -152,10 +156,11 @@
|
|
|
152
156
|
// 'fieldexploration': FieldExploration,
|
|
153
157
|
// 'acceptance': Acceptance,
|
|
154
158
|
// 'ventilation':Ventilation
|
|
155
|
-
'apply-defame-work': ServiceControl
|
|
159
|
+
'apply-defame-work': ServiceControl,
|
|
160
|
+
'app-take-pic': AppTakePic
|
|
156
161
|
},
|
|
157
162
|
events: {
|
|
158
|
-
'close'() {
|
|
163
|
+
'close' () {
|
|
159
164
|
this.$back()
|
|
160
165
|
}
|
|
161
166
|
}
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
this.show_data = temp
|
|
177
177
|
console.log('initializtion()方法结束,showview')
|
|
178
178
|
this.showview = true
|
|
179
|
-
if (this.selectdata.defname === '现场勘察') {
|
|
179
|
+
if (this.selectdata.defname === '现场勘察' || this.selectdata.defname ==='入户安装') {
|
|
180
180
|
for (const item of this.show_data.fields) {
|
|
181
181
|
if (item.label === '现场勘察人员' && !item.value) {
|
|
182
182
|
return item.value = Vue.user.name
|
|
@@ -256,20 +256,37 @@
|
|
|
256
256
|
model=Object.assign({},this.selectdata,model)
|
|
257
257
|
console.log('合并selectdata与model后的model=>' + JSON.stringify(model))
|
|
258
258
|
let http = new HttpResetClass()
|
|
259
|
-
if(this.selectdata.defname =='现场勘察' && model.f_is_have == '否'){
|
|
259
|
+
if((this.selectdata.defname =='现场勘察' || this.selectdata.defname ==='入户安装') && model.f_is_have == '否'&& model. model.button.button_name == '提交'){
|
|
260
260
|
let model1 ={
|
|
261
261
|
f_stop_remarks : '不具备安装条件'
|
|
262
262
|
}
|
|
263
263
|
this.stopapply(model1,model)
|
|
264
264
|
return
|
|
265
265
|
}
|
|
266
|
-
if(this.selectdata.defname =='现场勘察' && model.f_is_aerate == '否'){
|
|
266
|
+
if((this.selectdata.defname =='现场勘察' || this.selectdata.defname ==='入户安装') && model.f_is_aerate == '否' && model. model.button.button_name == '提交'){
|
|
267
267
|
let model1 ={
|
|
268
268
|
f_stop_remarks : '未通气'
|
|
269
269
|
}
|
|
270
270
|
this.stopapply(model1,model)
|
|
271
271
|
return
|
|
272
272
|
}
|
|
273
|
+
if(this.selectdata.defname =='现场勘察' && this.selectdata.f_apply_type == '工商户报建'&& model. model.button.button_name == '提交'){
|
|
274
|
+
let http = new HttpResetClass()
|
|
275
|
+
let data = {
|
|
276
|
+
tablename: 't_files',
|
|
277
|
+
condition: `defname = '现场勘察' and f_blobid = '${this.selectdata.f_process_id}'`
|
|
278
|
+
}
|
|
279
|
+
let res = await http.load('POST', this.$androidUtil.getProxyUrl() + '/rs/sql/singleTable', {data: data}, {
|
|
280
|
+
resolveMsg: null,
|
|
281
|
+
rejectMsg: '查询失败'
|
|
282
|
+
})
|
|
283
|
+
console.log("数据长度:" + res.data.length)
|
|
284
|
+
if (res.data.length < 0) {
|
|
285
|
+
this.$showMessage("请上传照片!!!")
|
|
286
|
+
return
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
}
|
|
273
290
|
var url = this.$androidUtil.getProxyUrl() + '/rs/logic/ApplyProductService'
|
|
274
291
|
// let res = await http.load('POST',url,{data:{tables:this.data.tables,start_activity:this.$workflow_vue.start_activity,model:model,loginUser:Vue.user}}, {resolveMsg: null, rejectMsg: null})
|
|
275
292
|
// // 先判断是否包含code,如果服务端异常,可能不存在code
|
|
@@ -1,134 +1,134 @@
|
|
|
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-upload :blodid="selectdata.f_process_id"
|
|
14
|
-
:isupload = "true"
|
|
15
|
-
:isdelete="true"
|
|
16
|
-
:isusetype="true"
|
|
17
|
-
:isremark = "true"
|
|
18
|
-
:takeimg="false"
|
|
19
|
-
:issearch="true"
|
|
20
|
-
:defname="selectdata.defname">
|
|
21
|
-
</apply-upload>
|
|
22
|
-
</tab
|
|
23
|
-
</tabset>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
<script>
|
|
29
|
-
import Vue from 'vue'
|
|
30
|
-
import {HttpResetClass} from 'vue-client'
|
|
31
|
-
export default {
|
|
32
|
-
title: '报建流程',
|
|
33
|
-
data () {
|
|
34
|
-
return {
|
|
35
|
-
showQuery: true, // 控制查询页
|
|
36
|
-
showData: true, // 控制列表数据
|
|
37
|
-
showtotal: false, // 详情显示
|
|
38
|
-
selectdata: {},
|
|
39
|
-
xmlname: '' // 配置文件名
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
created () {
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
// 获取页面配置json文件
|
|
46
|
-
async loadName () {
|
|
47
|
-
let http = new HttpResetClass()
|
|
48
|
-
let xmldata = {
|
|
49
|
-
data: this.$login.f,
|
|
50
|
-
workname: this.selectdata.processname
|
|
51
|
-
}
|
|
52
|
-
let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
|
|
53
|
-
|
|
54
|
-
if (res.data.code && res.data.code === 200) {
|
|
55
|
-
Vue.prototype.$workflow_vue = res.data.workflow_vue
|
|
56
|
-
} else {
|
|
57
|
-
this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
|
|
58
|
-
return
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
events: {
|
|
63
|
-
'onMessage' (data) {
|
|
64
|
-
console.log('接收消息')
|
|
65
|
-
console.log(data)
|
|
66
|
-
if (data.type === 'apply-task') {
|
|
67
|
-
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
// 刷新控制层
|
|
71
|
-
async 'breakControl' (servicedata) {
|
|
72
|
-
|
|
73
|
-
if (servicedata.id) {
|
|
74
|
-
let http = new HttpResetClass()
|
|
75
|
-
let data = {
|
|
76
|
-
condition: `u.id = ${servicedata.id}`,
|
|
77
|
-
data: {
|
|
78
|
-
id: this.$login.f.id,
|
|
79
|
-
orgid: this.$login.f.orgid
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
let res = await http.load('POST', 'rs/sql/checkuser', {data: data}, {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'})
|
|
83
|
-
|
|
84
|
-
this.selectdata = res.data[0]
|
|
85
|
-
} else {
|
|
86
|
-
this.selectdata = servicedata
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
this.showtotal = false
|
|
90
|
-
this.$nextTick(() => {
|
|
91
|
-
this.showtotal = true
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
// 初始化
|
|
96
|
-
async 'apply' (val) {
|
|
97
|
-
this.showtotal = false
|
|
98
|
-
this.selectdata = val
|
|
99
|
-
|
|
100
|
-
// if (this.selectdata.f_apply_type === '集体报建') {
|
|
101
|
-
// this.xmlname = '集体报建流程'
|
|
102
|
-
// } else if (this.selectdata.f_apply_type === '散户报建') {
|
|
103
|
-
// this.xmlname = '散户报建流程'
|
|
104
|
-
// } else {
|
|
105
|
-
// this.$showMessage('暂无此类报装')
|
|
106
|
-
// return
|
|
107
|
-
// }
|
|
108
|
-
|
|
109
|
-
// 次方法必须同步执行,否则后续会出问题
|
|
110
|
-
// 获取页面json配置文件
|
|
111
|
-
await this.loadName()
|
|
112
|
-
|
|
113
|
-
// 显示详细
|
|
114
|
-
this.showtotal = true
|
|
115
|
-
// 关闭列表数据
|
|
116
|
-
this.showData = false
|
|
117
|
-
// 关闭分页
|
|
118
|
-
this.$refs.query.$refs.cp.pager = false
|
|
119
|
-
},
|
|
120
|
-
'search' () {
|
|
121
|
-
// 关闭详细
|
|
122
|
-
this.showtotal = false
|
|
123
|
-
// 显示列表数据
|
|
124
|
-
this.showData = true
|
|
125
|
-
// 显示分页
|
|
126
|
-
this.$refs.query.$refs.cp.pager = true
|
|
127
|
-
// 调用查询
|
|
128
|
-
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
watch: {
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
</script>
|
|
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-upload :blodid="selectdata.f_process_id"
|
|
14
|
+
:isupload = "true"
|
|
15
|
+
:isdelete="true"
|
|
16
|
+
:isusetype="true"
|
|
17
|
+
:isremark = "true"
|
|
18
|
+
:takeimg="false"
|
|
19
|
+
:issearch="true"
|
|
20
|
+
:defname="selectdata.defname">
|
|
21
|
+
</apply-upload>
|
|
22
|
+
</tab>-->
|
|
23
|
+
</tabset>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
<script>
|
|
29
|
+
import Vue from 'vue'
|
|
30
|
+
import {HttpResetClass} from 'vue-client'
|
|
31
|
+
export default {
|
|
32
|
+
title: '报建流程',
|
|
33
|
+
data () {
|
|
34
|
+
return {
|
|
35
|
+
showQuery: true, // 控制查询页
|
|
36
|
+
showData: true, // 控制列表数据
|
|
37
|
+
showtotal: false, // 详情显示
|
|
38
|
+
selectdata: {},
|
|
39
|
+
xmlname: '' // 配置文件名
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
created () {
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
// 获取页面配置json文件
|
|
46
|
+
async loadName () {
|
|
47
|
+
let http = new HttpResetClass()
|
|
48
|
+
let xmldata = {
|
|
49
|
+
data: this.$login.f,
|
|
50
|
+
workname: this.selectdata.processname
|
|
51
|
+
}
|
|
52
|
+
let res = await http.load('POST', 'rs/logic/ApplyGetConfigs', {data: xmldata}, {resolveMsg: null, rejectMsg: null})
|
|
53
|
+
|
|
54
|
+
if (res.data.code && res.data.code === 200) {
|
|
55
|
+
Vue.prototype.$workflow_vue = res.data.workflow_vue
|
|
56
|
+
} else {
|
|
57
|
+
this.$showMessage('获取报建配置失败,原因:' + res.data.msg)
|
|
58
|
+
return
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
events: {
|
|
63
|
+
'onMessage' (data) {
|
|
64
|
+
console.log('接收消息')
|
|
65
|
+
console.log(data)
|
|
66
|
+
if (data.type === 'apply-task') {
|
|
67
|
+
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
// 刷新控制层
|
|
71
|
+
async 'breakControl' (servicedata) {
|
|
72
|
+
|
|
73
|
+
if (servicedata.id) {
|
|
74
|
+
let http = new HttpResetClass()
|
|
75
|
+
let data = {
|
|
76
|
+
condition: `u.id = ${servicedata.id}`,
|
|
77
|
+
data: {
|
|
78
|
+
id: this.$login.f.id,
|
|
79
|
+
orgid: this.$login.f.orgid
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
let res = await http.load('POST', 'rs/sql/checkuser', {data: data}, {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'})
|
|
83
|
+
|
|
84
|
+
this.selectdata = res.data[0]
|
|
85
|
+
} else {
|
|
86
|
+
this.selectdata = servicedata
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
this.showtotal = false
|
|
90
|
+
this.$nextTick(() => {
|
|
91
|
+
this.showtotal = true
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
},
|
|
95
|
+
// 初始化
|
|
96
|
+
async 'apply' (val) {
|
|
97
|
+
this.showtotal = false
|
|
98
|
+
this.selectdata = val
|
|
99
|
+
|
|
100
|
+
// if (this.selectdata.f_apply_type === '集体报建') {
|
|
101
|
+
// this.xmlname = '集体报建流程'
|
|
102
|
+
// } else if (this.selectdata.f_apply_type === '散户报建') {
|
|
103
|
+
// this.xmlname = '散户报建流程'
|
|
104
|
+
// } else {
|
|
105
|
+
// this.$showMessage('暂无此类报装')
|
|
106
|
+
// return
|
|
107
|
+
// }
|
|
108
|
+
|
|
109
|
+
// 次方法必须同步执行,否则后续会出问题
|
|
110
|
+
// 获取页面json配置文件
|
|
111
|
+
await this.loadName()
|
|
112
|
+
|
|
113
|
+
// 显示详细
|
|
114
|
+
this.showtotal = true
|
|
115
|
+
// 关闭列表数据
|
|
116
|
+
this.showData = false
|
|
117
|
+
// 关闭分页
|
|
118
|
+
this.$refs.query.$refs.cp.pager = false
|
|
119
|
+
},
|
|
120
|
+
'search' () {
|
|
121
|
+
// 关闭详细
|
|
122
|
+
this.showtotal = false
|
|
123
|
+
// 显示列表数据
|
|
124
|
+
this.showData = true
|
|
125
|
+
// 显示分页
|
|
126
|
+
this.$refs.query.$refs.cp.pager = true
|
|
127
|
+
// 调用查询
|
|
128
|
+
this.$refs.query.$refs.cp.$refs.cri.search()
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
watch: {
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
</script>
|
|
@@ -312,7 +312,7 @@ export default {
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
if (this.selectdata.defname === '现场勘察') {
|
|
315
|
+
if (this.selectdata.defname === '现场勘察'|| this.selectdata.defname ==='入户安装') {
|
|
316
316
|
for (const item of this.show_data.fields) {
|
|
317
317
|
if (item.label === '现场勘察人员' && !item.value) {
|
|
318
318
|
return item.value = this.$login.f.name
|
|
@@ -893,7 +893,7 @@ export default {
|
|
|
893
893
|
// }
|
|
894
894
|
// }
|
|
895
895
|
// }
|
|
896
|
-
if(this.show_data.defname === '现场勘察') {
|
|
896
|
+
if(this.show_data.defname === '现场勘察' || this.selectdata.defname ==='入户安装') {
|
|
897
897
|
console.log("this.shdata",this.show_data)
|
|
898
898
|
if (this.show_data.fields[index].label === '是否具备安装条件') {
|
|
899
899
|
for (const button of this.show_data.buttons) {
|