apply-clients 3.4.70 → 3.4.72
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/filiale/shexian/android/AppExplorationUser.vue +2 -22
- package/src/filiale/shexian/android/AppServiceControl.vue +1734 -0
- package/src/filiale/shexian/android/AppTakePic.vue +145 -0
- package/src/filiale/shexian/android.js +3 -1
- package/src/filiale/shexian/pc/ExplorationSelect.vue +6 -3
- package/src/filiale/shexian/pc/ServiceControl.vue +8 -7
- package/src/filiale/shexian/pc.js +7 -7
- package/src/main.js +23 -23
|
@@ -0,0 +1,145 @@
|
|
|
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="../../../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 '../../../components/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 (fileid) {
|
|
45
|
+
debugger
|
|
46
|
+
console.log('----------------开始查询图片----------------')
|
|
47
|
+
this.fileList = []
|
|
48
|
+
|
|
49
|
+
let http = new HttpResetClass()
|
|
50
|
+
|
|
51
|
+
let data = {
|
|
52
|
+
tablename: 't_files',
|
|
53
|
+
condition: `f_blobid = '${this.blobid}' and fremarks = '手机拍照' order by f_uploaddate desc `
|
|
54
|
+
}
|
|
55
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
|
|
56
|
+
// let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
|
|
57
|
+
warnMsg: null,
|
|
58
|
+
resolveMsg: null
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
for (var i = 0; i < res.data.length; i++) {
|
|
62
|
+
console.log('-----------地址----------------')
|
|
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
|
+
this.type='手机拍照'
|
|
78
|
+
HostApp.__callback__ = this.cameraCallBack
|
|
79
|
+
HostApp.__this__ = this
|
|
80
|
+
let fileName = guid() + '.jpg'
|
|
81
|
+
// 打开相机
|
|
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
|
+
debugger
|
|
106
|
+
console.log('-----------bzLogic-----------------')
|
|
107
|
+
let res = HostApp.bzLogic({
|
|
108
|
+
'logic': 'appFileUpload',
|
|
109
|
+
'data': data
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
console.log('----------------开始回调查询-------------------')
|
|
113
|
+
HostApp.__this__.getFiles(res.id)
|
|
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
|
+
}
|
|
127
|
+
},
|
|
128
|
+
events: {
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
</script>
|
|
132
|
+
|
|
133
|
+
<style lang="less">
|
|
134
|
+
.fileType {
|
|
135
|
+
float: left;
|
|
136
|
+
.select-style {
|
|
137
|
+
background: #f8f8f8;
|
|
138
|
+
border: 0px;
|
|
139
|
+
}
|
|
140
|
+
input {
|
|
141
|
+
border-left: none;
|
|
142
|
+
width: 100%;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
</style>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
2
|
|
|
3
3
|
let specialComp = {
|
|
4
|
-
'app-exploration-user':(resolve) => { require(['./android/AppExplorationUser'], resolve) }
|
|
4
|
+
'app-exploration-user': (resolve) => { require(['./android/AppExplorationUser'], resolve) },
|
|
5
|
+
'app-service-control': (resolve) => { require(['./android/AppServiceControl'], resolve) },
|
|
6
|
+
'app-take-pic': (resolve) => { require(['./android/AppTakePic'], resolve) }
|
|
5
7
|
}
|
|
6
8
|
exports.specialComp = specialComp
|
|
@@ -357,10 +357,13 @@
|
|
|
357
357
|
if (this.applyType === '散户报建') {
|
|
358
358
|
data.processname = '散户报建流程'
|
|
359
359
|
data.defname = '报装申请'
|
|
360
|
-
} else if (this.applyType === '
|
|
361
|
-
data.processname = '
|
|
360
|
+
} else if (this.applyType === '团购报建') {
|
|
361
|
+
data.processname = '团购报建流程'
|
|
362
362
|
data.defname = '报装申请'
|
|
363
|
-
}
|
|
363
|
+
}else if (this.applyType === '团购转散户') {
|
|
364
|
+
data.processname = '团购转散户报建流程'
|
|
365
|
+
data.defname = '信息确认'
|
|
366
|
+
}else {
|
|
364
367
|
this.$showMessage('暂无此类报装')
|
|
365
368
|
return
|
|
366
369
|
}
|
|
@@ -577,12 +577,12 @@
|
|
|
577
577
|
// condition: `f_orgid = '${this.$login.f.orgid}'`
|
|
578
578
|
// }
|
|
579
579
|
// let http = new HttpResetClass()
|
|
580
|
-
// let res = await http.load(
|
|
581
|
-
//
|
|
582
|
-
//
|
|
583
|
-
//
|
|
584
|
-
//
|
|
585
|
-
// )
|
|
580
|
+
// // let res = await http.load(
|
|
581
|
+
// // 'POST',
|
|
582
|
+
// // `rs/sql/apply_singleTable`,
|
|
583
|
+
// // {data: data},
|
|
584
|
+
// // {resolveMsg: null, rejectMsg: '公司查询失败!!!'}
|
|
585
|
+
// // )
|
|
586
586
|
//
|
|
587
587
|
// return res.data.map(item => {
|
|
588
588
|
// return {
|
|
@@ -590,6 +590,7 @@
|
|
|
590
590
|
// value: item.f_dev_name
|
|
591
591
|
// }
|
|
592
592
|
// })
|
|
593
|
+
// return
|
|
593
594
|
// },
|
|
594
595
|
async getPrice (f_price_id) {
|
|
595
596
|
console.log('=======================')
|
|
@@ -764,7 +765,7 @@
|
|
|
764
765
|
},
|
|
765
766
|
async getDesignerPeople () {
|
|
766
767
|
let data = {
|
|
767
|
-
source: 'this.getParentByType($organization$).getChildByName(
|
|
768
|
+
source: 'this.getParentByType($organization$).getChildByName($发展员$).getChildren()',
|
|
768
769
|
userid: this.$login.f.id
|
|
769
770
|
}
|
|
770
771
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
|
|
3
|
-
let specialComp = {
|
|
4
|
-
'exploration-select': (resolve) => { require(['./pc/ExplorationSelect'], resolve) },
|
|
5
|
-
'service-control': (resolve) => { require(['./pc/ServiceControl'], resolve) }
|
|
6
|
-
}
|
|
7
|
-
exports.specialComp = specialComp
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
|
|
3
|
+
let specialComp = {
|
|
4
|
+
'exploration-select': (resolve) => { require(['./pc/ExplorationSelect'], resolve) },
|
|
5
|
+
'service-control': (resolve) => { require(['./pc/ServiceControl'], resolve) }
|
|
6
|
+
}
|
|
7
|
+
exports.specialComp = specialComp
|
package/src/main.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import App from './App'
|
|
3
|
-
import { all } from 'vue-client'
|
|
4
|
-
import {ldap} from 'ldap-clients'
|
|
5
|
-
import {system} from 'system-clients'
|
|
6
|
-
import {sale} from 'sale-client'
|
|
7
|
-
import {material} from 'material-client'
|
|
8
|
-
|
|
9
|
-
import apply from './apply'
|
|
10
|
-
|
|
11
|
-
all()
|
|
12
|
-
apply()
|
|
13
|
-
ldap()
|
|
14
|
-
sale()
|
|
15
|
-
material()
|
|
16
|
-
system(false)
|
|
17
|
-
|
|
18
|
-
require('system-clients/src/styles/less/bootstrap.less')
|
|
19
|
-
require('./expandcss.less')
|
|
20
|
-
new Vue({
|
|
21
|
-
el: 'body',
|
|
22
|
-
components: { App }
|
|
23
|
-
})
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
import App from './App'
|
|
3
|
+
import { all } from 'vue-client'
|
|
4
|
+
import {ldap} from 'ldap-clients'
|
|
5
|
+
import {system} from 'system-clients'
|
|
6
|
+
import {sale} from 'sale-client'
|
|
7
|
+
import {material} from 'material-client'
|
|
8
|
+
|
|
9
|
+
import apply from './apply'
|
|
10
|
+
|
|
11
|
+
all()
|
|
12
|
+
apply()
|
|
13
|
+
ldap()
|
|
14
|
+
sale()
|
|
15
|
+
material()
|
|
16
|
+
system(false)
|
|
17
|
+
|
|
18
|
+
require('system-clients/src/styles/less/bootstrap.less')
|
|
19
|
+
require('./expandcss.less')
|
|
20
|
+
new Vue({
|
|
21
|
+
el: 'body',
|
|
22
|
+
components: { App }
|
|
23
|
+
})
|