apply-clients 4.1.63-weinan → 4.1.64-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/index.html +30 -30
- package/package.json +1 -1
- package/src/apply.js +81 -81
- package/src/applyAndroid.js +52 -52
- package/src/components/app_apply/AppChargeManagement.vue +753 -749
- package/src/components/app_apply/AppInstallationDetails.vue +529 -529
- package/src/components/app_apply/AppProcessSupervisory.vue +214 -214
- package/src/components/app_apply/AppSupervisoryCart.vue +68 -68
- package/src/components/app_apply/AppTakePic.vue +146 -146
- package/src/components/app_apply/AppdevicesDetails.vue +867 -867
- package/src/components/app_apply/ApplyInfo.vue +56 -56
- package/src/components/app_apply/ApplyToDoList.vue +292 -292
- package/src/components/app_apply/PlaceControler.vue +274 -274
- package/src/components/app_apply/ServiceControl.vue +440 -440
- package/src/components/app_apply/ServiceView.vue +394 -394
- package/src/components/app_apply/materialshoufei.vue +248 -248
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +252 -252
- package/src/components/product/Process/ExplorationSelect.vue +377 -377
- package/src/components/product/Process/ExplorationUser.vue +134 -134
- package/src/components/product/Process/Processes/InstallationDetails.vue +515 -515
- package/src/components/product/Process/Processes/chargeManagement.vue +545 -545
- package/src/components/product/Process/Processes/devicesDetails.vue +843 -843
- package/src/components/product/Process/Processes/materialshoufei.vue +187 -187
- package/src/components/product/Process/Service/ServiceControl.vue +1490 -1490
- package/src/components/product/Stop/StopApply.vue +101 -101
- package/src/components/product/Stop/StopApplyList.vue +266 -266
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +200 -200
- package/src/components/product/Supervisory/SupervisoryControl.vue +124 -124
- package/src/components/product/Supervisory/SupervisoryList.vue +221 -221
- package/src/components/product/VueUtils/ApplyUpload.vue +276 -276
- package/src/main.js +25 -25
|
@@ -1,146 +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
|
-
|
|
63
|
-
console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
|
|
64
|
-
res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
this.fileList = res.data
|
|
68
|
-
},
|
|
69
|
-
delfile (file, index) {
|
|
70
|
-
this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
71
|
-
this.$dispatch("delResid", file.id)
|
|
72
|
-
this.getFiles()
|
|
73
|
-
})
|
|
74
|
-
},
|
|
75
|
-
takePic (title) {
|
|
76
|
-
// 拍照成功回调
|
|
77
|
-
console.log('-----------拍照成功回调-----------------')
|
|
78
|
-
HostApp.__callback__ = this.cameraCallBack
|
|
79
|
-
HostApp.__this__ = this
|
|
80
|
-
let fileName = guid() + '.jpg'
|
|
81
|
-
// 打开相机
|
|
82
|
-
console.log('-----------打开相机-----------------')
|
|
83
|
-
HostApp._open_a_page({
|
|
84
|
-
type: 'boomerang',
|
|
85
|
-
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
86
|
-
param: {
|
|
87
|
-
file: fileName,
|
|
88
|
-
requestCode: 200,
|
|
89
|
-
callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
|
|
90
|
-
watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
|
|
91
|
-
}
|
|
92
|
-
})
|
|
93
|
-
},
|
|
94
|
-
cameraCallBack (fileName, fileUrl) {
|
|
95
|
-
console.log('-----------cameraCallBack-----------------')
|
|
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>
|
|
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
|
+
|
|
63
|
+
console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
|
|
64
|
+
res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
this.fileList = res.data
|
|
68
|
+
},
|
|
69
|
+
delfile (file, index) {
|
|
70
|
+
this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
71
|
+
this.$dispatch("delResid", file.id)
|
|
72
|
+
this.getFiles()
|
|
73
|
+
})
|
|
74
|
+
},
|
|
75
|
+
takePic (title) {
|
|
76
|
+
// 拍照成功回调
|
|
77
|
+
console.log('-----------拍照成功回调-----------------')
|
|
78
|
+
HostApp.__callback__ = this.cameraCallBack
|
|
79
|
+
HostApp.__this__ = this
|
|
80
|
+
let fileName = guid() + '.jpg'
|
|
81
|
+
// 打开相机
|
|
82
|
+
console.log('-----------打开相机-----------------')
|
|
83
|
+
HostApp._open_a_page({
|
|
84
|
+
type: 'boomerang',
|
|
85
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
|
86
|
+
param: {
|
|
87
|
+
file: fileName,
|
|
88
|
+
requestCode: 200,
|
|
89
|
+
callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
|
|
90
|
+
watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
|
|
91
|
+
}
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
cameraCallBack (fileName, fileUrl) {
|
|
95
|
+
console.log('-----------cameraCallBack-----------------')
|
|
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>
|