apply-clients 3.3.203 → 3.3.207
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/App.vue +20 -20
- package/src/apply.js +90 -89
- package/src/components/android/AppTakePic.vue +143 -143
- package/src/components/android/Function/AppInstallFunction.vue +5 -2
- package/src/components/android/Process/AppExplorationUser.vue +5 -3
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +262 -261
- package/src/components/product/Function/InstallFunction.vue +122 -122
- package/src/components/product/Order/OrderApplyList.vue +8 -2
- package/src/components/product/Order/OrderMessage.vue +2 -2
- package/src/components/product/Process/ExplorationUser.vue +128 -128
- package/src/components/product/Process/Service/ServiceControl.vue +883 -883
- package/src/components/product/ServiceView.vue +741 -741
- package/src/components/product/Supervisory/Service/printChargeNode.vue +873 -0
- package/src/components/product/Supervisory/SupervisoryControl.vue +108 -100
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<app-base class="bg">
|
|
4
|
-
<div class='flex'>
|
|
5
|
-
<article>
|
|
6
|
-
<route :comp="{name: 'login'}"></route>
|
|
7
|
-
</article>
|
|
8
|
-
</div>
|
|
9
|
-
</app-base>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<app-base class="bg">
|
|
4
|
+
<div class='flex'>
|
|
5
|
+
<article>
|
|
6
|
+
<route :comp="{name: 'login'}"></route>
|
|
7
|
+
</article>
|
|
8
|
+
</div>
|
|
9
|
+
</app-base>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
</script>
|
package/src/apply.js
CHANGED
|
@@ -1,89 +1,90 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
Vue.config.silent = true
|
|
3
|
-
import ApplyGetSaleParam from './stores/ApplyGetSaleParams'
|
|
4
|
-
import ApplyLoadParams from './stores/ApplyLoadParams'
|
|
5
|
-
/** ****************服务插件*********************/
|
|
6
|
-
|
|
7
|
-
export default function (filiale) {
|
|
8
|
-
Vue.use(ApplyGetSaleParam)
|
|
9
|
-
Vue.use(ApplyLoadParams)
|
|
10
|
-
/** ***************************报建模块*********************************/
|
|
11
|
-
/** 报建流程业务 **/
|
|
12
|
-
// 报建流程业务总入口
|
|
13
|
-
Vue.component('exploration-user', (resolve) => { require(['./components/product/Process/ExplorationUser'], resolve) })
|
|
14
|
-
// 报建流程业务总入口页面list布局
|
|
15
|
-
Vue.component('exploration-select', (resolve) => { require(['./components/product/Process/ExplorationSelect'], resolve) })
|
|
16
|
-
// 业务tab(control层)页
|
|
17
|
-
Vue.component('service-control', (resolve) => { require(['./components/product/Process/Service/ServiceControl'], resolve) })
|
|
18
|
-
// 公共业务显示(view层)页
|
|
19
|
-
Vue.component('service-view', (resolve) => { require(['./components/product/ServiceView'], resolve) })
|
|
20
|
-
Vue.component('onetomany', (resolve) => { require(['./components/product/Onetomany'], resolve) })
|
|
21
|
-
// 显示退回理由tab页
|
|
22
|
-
Vue.component('show-back-reason', (resolve) => { require(['./components/product/Process/ShowBackReason'], resolve) })
|
|
23
|
-
|
|
24
|
-
/** 报建监控业务 **/
|
|
25
|
-
// 流程监控入口页
|
|
26
|
-
Vue.component('supervisory-control', (resolve) => { require(['./components/product/Supervisory/SupervisoryControl'], resolve) })
|
|
27
|
-
// 流程监控列表页
|
|
28
|
-
Vue.component('supervisory-list', (resolve) => { require(['./components/product/Supervisory/SupervisoryList'], resolve) })
|
|
29
|
-
// 业务tab(control层)页
|
|
30
|
-
Vue.component('supervisory-service-control', (resolve) => { require(['./components/product/Supervisory/Service/SupervisoryServiceControl'], resolve) })
|
|
31
|
-
// 流程列表页
|
|
32
|
-
Vue.component('supervisory-chart', (resolve) => { require(['./components/product/Supervisory/SupervisoryhCart'], resolve) })
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Vue.component('order-apply
|
|
50
|
-
Vue.component('order-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
Vue.component('stop-apply
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Vue.component('apply-charge-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
Vue.component('apply-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Vue.component('
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
Vue.component('
|
|
80
|
-
Vue.component('
|
|
81
|
-
Vue.component('apply-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
Vue.config.silent = true
|
|
3
|
+
import ApplyGetSaleParam from './stores/ApplyGetSaleParams'
|
|
4
|
+
import ApplyLoadParams from './stores/ApplyLoadParams'
|
|
5
|
+
/** ****************服务插件*********************/
|
|
6
|
+
|
|
7
|
+
export default function (filiale) {
|
|
8
|
+
Vue.use(ApplyGetSaleParam)
|
|
9
|
+
Vue.use(ApplyLoadParams)
|
|
10
|
+
/** ***************************报建模块*********************************/
|
|
11
|
+
/** 报建流程业务 **/
|
|
12
|
+
// 报建流程业务总入口
|
|
13
|
+
Vue.component('exploration-user', (resolve) => { require(['./components/product/Process/ExplorationUser'], resolve) })
|
|
14
|
+
// 报建流程业务总入口页面list布局
|
|
15
|
+
Vue.component('exploration-select', (resolve) => { require(['./components/product/Process/ExplorationSelect'], resolve) })
|
|
16
|
+
// 业务tab(control层)页
|
|
17
|
+
Vue.component('service-control', (resolve) => { require(['./components/product/Process/Service/ServiceControl'], resolve) })
|
|
18
|
+
// 公共业务显示(view层)页
|
|
19
|
+
Vue.component('service-view', (resolve) => { require(['./components/product/ServiceView'], resolve) })
|
|
20
|
+
Vue.component('onetomany', (resolve) => { require(['./components/product/Onetomany'], resolve) })
|
|
21
|
+
// 显示退回理由tab页
|
|
22
|
+
Vue.component('show-back-reason', (resolve) => { require(['./components/product/Process/ShowBackReason'], resolve) })
|
|
23
|
+
|
|
24
|
+
/** 报建监控业务 **/
|
|
25
|
+
// 流程监控入口页
|
|
26
|
+
Vue.component('supervisory-control', (resolve) => { require(['./components/product/Supervisory/SupervisoryControl'], resolve) })
|
|
27
|
+
// 流程监控列表页
|
|
28
|
+
Vue.component('supervisory-list', (resolve) => { require(['./components/product/Supervisory/SupervisoryList'], resolve) })
|
|
29
|
+
// 业务tab(control层)页
|
|
30
|
+
Vue.component('supervisory-service-control', (resolve) => { require(['./components/product/Supervisory/Service/SupervisoryServiceControl'], resolve) })
|
|
31
|
+
// 流程列表页
|
|
32
|
+
Vue.component('supervisory-chart', (resolve) => { require(['./components/product/Supervisory/SupervisoryhCart'], resolve) })
|
|
33
|
+
// 流程列表打印
|
|
34
|
+
Vue.component('apply-print-charge-node', (resolve) => { require(['./components/product/Supervisory/Service/printChargeNode'], resolve) })
|
|
35
|
+
/** 报建功能业务 **/
|
|
36
|
+
// 报建功能业务总入口
|
|
37
|
+
Vue.component('install-function', (resolve) => { require(['./components/product/Function/InstallFunction'], resolve) })
|
|
38
|
+
// 报建功能工程列表
|
|
39
|
+
Vue.component('installinfoselect', (resolve) => { require(['./components/product/Function/InstallInfoSelect'], resolve) })
|
|
40
|
+
// 报建菜单页面控制层
|
|
41
|
+
Vue.component('function-service-control', (resolve) => { require(['./components/product/Function/Service/FunctionServiceControl'], resolve) })
|
|
42
|
+
// 调研表打印单
|
|
43
|
+
Vue.component('market_survey', (resolve) => { require(['./components/product/Function/MarketSurvey'], resolve) })
|
|
44
|
+
// 安装标准告知单
|
|
45
|
+
Vue.component('inform', (resolve) => { require(['./components/product/Function/Inform'], resolve) })
|
|
46
|
+
|
|
47
|
+
/** 预约报建 **/
|
|
48
|
+
// 报建功能业务总入口
|
|
49
|
+
Vue.component('order-apply', (resolve) => { require(['./components/product/Order/OrderApply'], resolve) })
|
|
50
|
+
Vue.component('order-apply-list', (resolve) => { require(['./components/product/Order/OrderApplyList'], resolve) })
|
|
51
|
+
Vue.component('order-message', (resolve) => { require(['./components/product/Order/OrderMessage'], resolve) })
|
|
52
|
+
|
|
53
|
+
// 终止报建页面入口
|
|
54
|
+
Vue.component('stop-apply', (resolve) => { require(['./components/product/Stop/StopApply'], resolve) })
|
|
55
|
+
Vue.component('stop-apply-list', (resolve) => { require(['./components/product/Stop/StopApplyList'], resolve) })
|
|
56
|
+
|
|
57
|
+
/** 报建收费记录 **/
|
|
58
|
+
Vue.component('apply-charge-search', (resolve) => { require(['./components/product/ApplyCharge/ApplyChargeSearch'], resolve) })
|
|
59
|
+
Vue.component('apply-charge-list', (resolve) => { require(['./components/product/ApplyCharge/ApplyChargeList'], resolve) })
|
|
60
|
+
|
|
61
|
+
// 地址管理
|
|
62
|
+
Vue.component('apply-address-userinfo-management', (resolve) => { require(['./components/product/Process/Processes/addressAndUserinfoManagement'], resolve) })
|
|
63
|
+
// 施工安装明细
|
|
64
|
+
Vue.component('installation-details', (resolve) => { require(['./components/product/Process/Processes/InstallationDetails'], resolve) })
|
|
65
|
+
// 收费管理
|
|
66
|
+
Vue.component('apply-charge-management', (resolve) => { require(['./components/product/Process/Processes/chargeManagement'], resolve) })
|
|
67
|
+
Vue.component('apply-print-charge', (resolve) => { require(['./components/product/Process/Processes/printCharge'], resolve) })
|
|
68
|
+
// 补充协议
|
|
69
|
+
Vue.component('supplemental-agreement', (resolve) => { require(['./components/product/Process/Processes/supplementalAgreement'], resolve) })
|
|
70
|
+
// 选择用户信息
|
|
71
|
+
Vue.component('select-userinfo', (resolve) => { require(['./components/product/Process/Processes/selectUserinfo'], resolve) })
|
|
72
|
+
// 选择报建项目
|
|
73
|
+
Vue.component('select-apply', (resolve) => { require(['./components/product/Process/Processes/selectApply'], resolve) })
|
|
74
|
+
// 设备管理
|
|
75
|
+
Vue.component('apply-devices-management', (resolve) => { require(['./components/product/Process/Processes/devicesManagement'], resolve) })
|
|
76
|
+
Vue.component('test', (resolve) => { require(['./components/product/Test'], resolve) })
|
|
77
|
+
|
|
78
|
+
/** VueUtils **/
|
|
79
|
+
Vue.component('back-page', (resolve) => { require(['./components/product/VueUtils/ToolsPage'], resolve) })
|
|
80
|
+
Vue.component('tree2', (resolve) => { require(['./components/product/VueUtils/Tree'], resolve) })
|
|
81
|
+
Vue.component('apply-upload', (resolve) => { require(['./components/product/VueUtils/ApplyUpload'], resolve) })
|
|
82
|
+
Vue.component('apply-high-meter', (resolve) => { require(['./components/product/VueUtils/GaoPaiYi/HighMeter'], resolve) })
|
|
83
|
+
|
|
84
|
+
if (filiale) {
|
|
85
|
+
let filialeComp = require(`./filiale/${filiale}/pc`).specialComp
|
|
86
|
+
for (let key in filialeComp) {
|
|
87
|
+
Vue.component(key, filialeComp[key])
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -1,143 +1,143 @@
|
|
|
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-if="istype"
|
|
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: `
|
|
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(":\\") + 2)}`)
|
|
63
|
-
res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
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
|
-
HostApp.__callback__ = this.cameraCallBack
|
|
77
|
-
HostApp.__this__ = this
|
|
78
|
-
let fileName = guid() + '.jpg'
|
|
79
|
-
// 打开相机
|
|
80
|
-
HostApp._open_a_page({
|
|
81
|
-
type: 'boomerang',
|
|
82
|
-
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
83
|
-
param: {
|
|
84
|
-
file: fileName,
|
|
85
|
-
requestCode: 200,
|
|
86
|
-
callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
|
|
87
|
-
watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
|
|
88
|
-
}
|
|
89
|
-
})
|
|
90
|
-
},
|
|
91
|
-
cameraCallBack (fileName, fileUrl) {
|
|
92
|
-
console.log('-----------cameraCallBack-----------------')
|
|
93
|
-
|
|
94
|
-
let data = {
|
|
95
|
-
blodid: HostApp.__this__.blobid,
|
|
96
|
-
type: HostApp.__this__.type,
|
|
97
|
-
defname: HostApp.__this__.defname,
|
|
98
|
-
username: Vue.user.name,
|
|
99
|
-
fremarks: '手机拍照',
|
|
100
|
-
fileName: fileName,
|
|
101
|
-
fileUrl: fileUrl
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
console.log('-----------bzLogic-----------------')
|
|
105
|
-
HostApp.bzLogic({
|
|
106
|
-
'logic': 'appFileUpload',
|
|
107
|
-
'data': data
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
console.log('----------------开始回调查询-------------------')
|
|
111
|
-
HostApp.__this__.getFiles()
|
|
112
|
-
console.log('----------------查询回调结束-------------------')
|
|
113
|
-
|
|
114
|
-
HostApp.__callback__ = null
|
|
115
|
-
HostApp.__this__ = null
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
computed: {
|
|
119
|
-
typeList () {
|
|
120
|
-
if (this.typelabel) {
|
|
121
|
-
return this.$appdata.getParam(this.typelabel)
|
|
122
|
-
}
|
|
123
|
-
return this.$appdata.getParam('使用类型')
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
events: {
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
</script>
|
|
130
|
-
|
|
131
|
-
<style lang="less">
|
|
132
|
-
.fileType {
|
|
133
|
-
float: left;
|
|
134
|
-
.select-style {
|
|
135
|
-
background: #f8f8f8;
|
|
136
|
-
border: 0px;
|
|
137
|
-
}
|
|
138
|
-
input {
|
|
139
|
-
border-left: none;
|
|
140
|
-
width: 100%;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
</style>
|
|
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-if="istype"
|
|
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: `id = '${this.id}' 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(":\\") + 2)}`)
|
|
63
|
+
res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
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
|
+
HostApp.__callback__ = this.cameraCallBack
|
|
77
|
+
HostApp.__this__ = this
|
|
78
|
+
let fileName = guid() + '.jpg'
|
|
79
|
+
// 打开相机
|
|
80
|
+
HostApp._open_a_page({
|
|
81
|
+
type: 'boomerang',
|
|
82
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
83
|
+
param: {
|
|
84
|
+
file: fileName,
|
|
85
|
+
requestCode: 200,
|
|
86
|
+
callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
|
|
87
|
+
watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
},
|
|
91
|
+
cameraCallBack (fileName, fileUrl) {
|
|
92
|
+
console.log('-----------cameraCallBack-----------------')
|
|
93
|
+
|
|
94
|
+
let data = {
|
|
95
|
+
blodid: HostApp.__this__.blobid,
|
|
96
|
+
type: HostApp.__this__.type,
|
|
97
|
+
defname: HostApp.__this__.defname,
|
|
98
|
+
username: Vue.user.name,
|
|
99
|
+
fremarks: '手机拍照',
|
|
100
|
+
fileName: fileName,
|
|
101
|
+
fileUrl: fileUrl
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
console.log('-----------bzLogic-----------------')
|
|
105
|
+
HostApp.bzLogic({
|
|
106
|
+
'logic': 'appFileUpload',
|
|
107
|
+
'data': data
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
console.log('----------------开始回调查询-------------------')
|
|
111
|
+
HostApp.__this__.getFiles()
|
|
112
|
+
console.log('----------------查询回调结束-------------------')
|
|
113
|
+
|
|
114
|
+
HostApp.__callback__ = null
|
|
115
|
+
HostApp.__this__ = null
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
computed: {
|
|
119
|
+
typeList () {
|
|
120
|
+
if (this.typelabel) {
|
|
121
|
+
return this.$appdata.getParam(this.typelabel)
|
|
122
|
+
}
|
|
123
|
+
return this.$appdata.getParam('使用类型')
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
events: {
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
</script>
|
|
130
|
+
|
|
131
|
+
<style lang="less">
|
|
132
|
+
.fileType {
|
|
133
|
+
float: left;
|
|
134
|
+
.select-style {
|
|
135
|
+
background: #f8f8f8;
|
|
136
|
+
border: 0px;
|
|
137
|
+
}
|
|
138
|
+
input {
|
|
139
|
+
border-left: none;
|
|
140
|
+
width: 100%;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
</style>
|
|
@@ -155,12 +155,15 @@
|
|
|
155
155
|
model: new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/checkuserfunction`, 20, {
|
|
156
156
|
// model: new PagedList('rs/sql/checkuserfunction', 20, {
|
|
157
157
|
data: {
|
|
158
|
-
orgid: Vue.user.orgid
|
|
159
|
-
|
|
158
|
+
orgid: Vue.user.orgid,
|
|
159
|
+
id: Vue.user.id
|
|
160
|
+
// id: '1626081',
|
|
161
|
+
// orgid: '1123'
|
|
160
162
|
}
|
|
161
163
|
}),
|
|
162
164
|
criteriaShow: false,
|
|
163
165
|
applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')], // 所有报建类型
|
|
166
|
+
// applytype: [{label: '全部', value: ''},{label: '散户报建', value: '散户报建'}], // 所有报建类型
|
|
164
167
|
defnames: [{label: '全部', value: ''}],
|
|
165
168
|
function_vue: null
|
|
166
169
|
}
|
|
@@ -152,12 +152,14 @@ export default {
|
|
|
152
152
|
data: {
|
|
153
153
|
id: Vue.user.id,
|
|
154
154
|
orgid: Vue.user.orgid
|
|
155
|
-
// id: '
|
|
156
|
-
// orgid: '
|
|
155
|
+
// id: '1626081',
|
|
156
|
+
// orgid: '1123'
|
|
157
157
|
}
|
|
158
158
|
}),
|
|
159
159
|
criteriaShow: false,
|
|
160
160
|
applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')], // 所有报建类型
|
|
161
|
+
// applytype: [{label: '全部', value: ''},{label: '散户报建', value: '散户报建'}], // 所有报建类型
|
|
162
|
+
|
|
161
163
|
defnames: [{label: '全部', value: ''}]
|
|
162
164
|
}
|
|
163
165
|
},
|
|
@@ -175,7 +177,7 @@ export default {
|
|
|
175
177
|
this.$refs.cp.$refs.cri.search()
|
|
176
178
|
},
|
|
177
179
|
searchCondition (args) {
|
|
178
|
-
args.condition
|
|
180
|
+
args.condition
|
|
179
181
|
this.model.search(args.condition, args.model)
|
|
180
182
|
},
|
|
181
183
|
click (row) {
|