apply-clients 3.4.2-FuGu-25 → 3.4.2-FuGu-28

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.
Files changed (72) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +2 -2
  3. package/src/apply.js +77 -77
  4. package/src/components/android/AppTakePic.vue +143 -143
  5. package/src/components/android/Process/AppExplorationUser.vue +301 -301
  6. package/src/components/android/Process/AppServiceControl.vue +46 -28
  7. package/src/components/android/Process/Processes/AppInstallationDetails.vue +10 -8
  8. package/src/components/product/Function/InstallInfoSelect.vue +300 -300
  9. package/src/components/product/Function/Service/FunctionServiceControl.vue +443 -443
  10. package/src/components/product/Process/ExplorationSelect.vue +386 -386
  11. package/src/components/product/Process/Print/dispatchlist.vue +139 -139
  12. package/src/components/product/Process/Print/printCharge.vue +142 -142
  13. package/src/components/product/Process/Processes/dispatchdetails.vue +123 -123
  14. package/src/components/product/Process/Service/ServiceControl.vue +15 -4
  15. package/src/components/product/Stop/StopApplyList.vue +269 -269
  16. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +193 -193
  17. package/src/components/product/Supervisory/SupervisoryControl.vue +110 -110
  18. package/src/components/product/Supervisory/SupervisoryList.vue +237 -237
  19. package/src/components/product/VueUtils/ApplyUpload.vue +273 -273
  20. package/src/dingding.js +20 -20
  21. package/dist-android/static/doc.jpg +0 -0
  22. package/dist-android/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  23. package/dist-android/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  24. package/dist-android/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  25. package/dist-android/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  26. package/dist-android/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
  27. package/dist-android/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  28. package/dist-android/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  29. package/dist-android/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  30. package/dist-android/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  31. package/dist-android/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  32. package/dist-android/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  33. package/dist-android/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  34. package/dist-android/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  35. package/dist-android/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  36. package/dist-android/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  37. package/dist-android/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  38. package/dist-android/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  39. package/dist-android/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  40. package/dist-android/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  41. package/dist-android/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  42. package/dist-android/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  43. package/dist-android/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  44. package/dist-android/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  45. package/dist-android/static/imgerror.jpg +0 -0
  46. package/dist-android/static/newStyle/clear.png +0 -0
  47. package/dist-android/static/newStyle/fife.png +0 -0
  48. package/dist-android/static/newStyle/hidden.png +0 -0
  49. package/dist-android/static/newStyle/label-clear.png +0 -0
  50. package/dist-android/static/newStyle/left-img.png +0 -0
  51. package/dist-android/static/newStyle/list_ok.png +0 -0
  52. package/dist-android/static/newStyle/login-check.png +0 -0
  53. package/dist-android/static/newStyle/login-con.png +0 -0
  54. package/dist-android/static/newStyle/login-do.gif +0 -0
  55. package/dist-android/static/newStyle/login-f.png +0 -0
  56. package/dist-android/static/newStyle/login-info.png +0 -0
  57. package/dist-android/static/newStyle/login-left.png +0 -0
  58. package/dist-android/static/newStyle/login-org.png +0 -0
  59. package/dist-android/static/newStyle/login-pwd.png +0 -0
  60. package/dist-android/static/newStyle/login-user.png +0 -0
  61. package/dist-android/static/newStyle/loginbg.gif +0 -0
  62. package/dist-android/static/newStyle/loginbg1280.gif +0 -0
  63. package/dist-android/static/newStyle/loginbg1366.gif +0 -0
  64. package/dist-android/static/newStyle/setting.png +0 -0
  65. package/dist-android/static/newStyle/setting1.png +0 -0
  66. package/dist-android/static/newStyle/shirk.png +0 -0
  67. package/dist-android/static/newStyle/stretch_bottom.png +0 -0
  68. package/dist-android/static/newStyle/stretch_left.png +0 -0
  69. package/dist-android/static/newStyle/stretch_right.png +0 -0
  70. package/dist-android/static/newStyle/stretch_top.png +0 -0
  71. package/dist-android/static/newStyle/system-off.png +0 -0
  72. package/dist-android/static/pdf.jpg +0 -0
@@ -6,8 +6,8 @@ var proxyMiddleware = require('http-proxy-middleware')
6
6
  var app = express()
7
7
  var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
- // var ldap = 'http://124.70.12.19:8400'
10
- // var applyinstall = 'http://124.70.12.19:8400'
9
+ // var ldap = 'http://121.36.79.201:8400'
10
+ // var applyinstall = 'http://121.36.79.201:8400'
11
11
  var ldap = 'http://192.168.50.4:8400'
12
12
  var applyinstall = 'http://127.0.0.1:8082'
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.2-FuGu-25",
3
+ "version": "3.4.2-FuGu-28",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -96,7 +96,7 @@
96
96
  "system-clients": "3.1.87",
97
97
  "system-phone": "1.2.80-49",
98
98
  "url-loader": "^0.5.7",
99
- "vue-client": "1.24.33",
99
+ "vue-client": "1.24.50-1",
100
100
  "vue-hot-reload-api": "^1.2.0",
101
101
  "vue-html-loader": "^1.0.0",
102
102
  "vue-loader": "^8.2.1",
package/src/apply.js CHANGED
@@ -1,77 +1,77 @@
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 () {
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/Service/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
- Vue.component('install-function', (resolve) => { require(['./components/product/Function/InstallFunction'], resolve) })
37
- // 报建功能工程列表
38
- Vue.component('installinfoselect', (resolve) => { require(['./components/product/Function/InstallInfoSelect'], resolve) })
39
- // 报建菜单页面控制层
40
- Vue.component('function-service-control', (resolve) => { require(['./components/product/Function/Service/FunctionServiceControl'], resolve) })
41
-
42
- /** 预约报建 **/
43
- // Vue.component('order-apply', (resolve) => { require(['./components/product/Order/OrderApply'], resolve) })
44
- // Vue.component('order-apply-list', (resolve) => { require(['./components/product/Order/OrderApplyList'], resolve) })
45
- // Vue.component('order-message', (resolve) => { require(['./components/product/Order/OrderMessage'], resolve) })
46
-
47
- // 终止报建页面入口
48
- Vue.component('stop-apply', (resolve) => { require(['./components/product/Stop/StopApply'], resolve) })
49
- Vue.component('stop-apply-list', (resolve) => { require(['./components/product/Stop/StopApplyList'], resolve) })
50
-
51
- /** 报建收费记录 **/
52
- Vue.component('apply-charge-search', (resolve) => { require(['./components/product/ApplyCharge/ApplyChargeSearch'], resolve) })
53
- Vue.component('apply-charge-list', (resolve) => { require(['./components/product/ApplyCharge/ApplyChargeList'], resolve) })
54
- Vue.component('apply-print-charge', (resolve) => { require(['./components/product/Process/Print/printCharge'], resolve) })
55
-
56
- // 地址管理
57
- Vue.component('apply-address-userinfo-management', (resolve) => { require(['./components/product/Process/Processes/addressAndUserinfoManagement'], resolve) })
58
- // 施工安装明细
59
- Vue.component('installation-details', (resolve) => { require(['./components/product/Process/Processes/InstallationDetails'], resolve) })
60
- // 收费管理
61
- Vue.component('apply-charge-management', (resolve) => { require(['./components/product/Process/Processes/chargeManagement'], resolve) })
62
-
63
- // 补充协议
64
- Vue.component('supplemental-agreement', (resolve) => { require(['./components/product/Process/Processes/supplementalAgreement'], resolve) })
65
- // 选择用户信息
66
- Vue.component('select-userinfo', (resolve) => { require(['./components/product/Process/Processes/selectUserinfo'], resolve) })
67
- // 选择报建项目
68
- Vue.component('select-apply', (resolve) => { require(['./components/product/Process/Processes/selectApply'], resolve) })
69
- // 设备管理
70
- Vue.component('apply-devices-management', (resolve) => { require(['./components/product/Process/Processes/devicesManagement'], resolve) })
71
- // 派工信息
72
- Vue.component('apply-dispatchdetails', (resolve) => { require(['./components/product/Process/Processes/dispatchdetails'], resolve) })
73
- Vue.component('apply-dispatch-list', (resolve) => { require(['./components/product/Process/Print/dispatchlist'], resolve) })
74
- /** VueUtils **/
75
- Vue.component('apply-upload', (resolve) => { require(['./components/product/VueUtils/ApplyUpload'], resolve) })
76
- Vue.component('apply-high-meter', (resolve) => { require(['./components/product/VueUtils/HighMeter'], resolve) })
77
- }
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 () {
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/Service/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
+ Vue.component('install-function', (resolve) => { require(['./components/product/Function/InstallFunction'], resolve) })
37
+ // 报建功能工程列表
38
+ Vue.component('installinfoselect', (resolve) => { require(['./components/product/Function/InstallInfoSelect'], resolve) })
39
+ // 报建菜单页面控制层
40
+ Vue.component('function-service-control', (resolve) => { require(['./components/product/Function/Service/FunctionServiceControl'], resolve) })
41
+
42
+ /** 预约报建 **/
43
+ // Vue.component('order-apply', (resolve) => { require(['./components/product/Order/OrderApply'], resolve) })
44
+ // Vue.component('order-apply-list', (resolve) => { require(['./components/product/Order/OrderApplyList'], resolve) })
45
+ // Vue.component('order-message', (resolve) => { require(['./components/product/Order/OrderMessage'], resolve) })
46
+
47
+ // 终止报建页面入口
48
+ Vue.component('stop-apply', (resolve) => { require(['./components/product/Stop/StopApply'], resolve) })
49
+ Vue.component('stop-apply-list', (resolve) => { require(['./components/product/Stop/StopApplyList'], resolve) })
50
+
51
+ /** 报建收费记录 **/
52
+ Vue.component('apply-charge-search', (resolve) => { require(['./components/product/ApplyCharge/ApplyChargeSearch'], resolve) })
53
+ Vue.component('apply-charge-list', (resolve) => { require(['./components/product/ApplyCharge/ApplyChargeList'], resolve) })
54
+ Vue.component('apply-print-charge', (resolve) => { require(['./components/product/Process/Print/printCharge'], resolve) })
55
+
56
+ // 地址管理
57
+ Vue.component('apply-address-userinfo-management', (resolve) => { require(['./components/product/Process/Processes/addressAndUserinfoManagement'], resolve) })
58
+ // 施工安装明细
59
+ Vue.component('installation-details', (resolve) => { require(['./components/product/Process/Processes/InstallationDetails'], resolve) })
60
+ // 收费管理
61
+ Vue.component('apply-charge-management', (resolve) => { require(['./components/product/Process/Processes/chargeManagement'], resolve) })
62
+
63
+ // 补充协议
64
+ Vue.component('supplemental-agreement', (resolve) => { require(['./components/product/Process/Processes/supplementalAgreement'], resolve) })
65
+ // 选择用户信息
66
+ Vue.component('select-userinfo', (resolve) => { require(['./components/product/Process/Processes/selectUserinfo'], resolve) })
67
+ // 选择报建项目
68
+ Vue.component('select-apply', (resolve) => { require(['./components/product/Process/Processes/selectApply'], resolve) })
69
+ // 设备管理
70
+ Vue.component('apply-devices-management', (resolve) => { require(['./components/product/Process/Processes/devicesManagement'], resolve) })
71
+ // 派工信息
72
+ Vue.component('apply-dispatchdetails', (resolve) => { require(['./components/product/Process/Processes/dispatchdetails'], resolve) })
73
+ Vue.component('apply-dispatch-list', (resolve) => { require(['./components/product/Process/Print/dispatchlist'], resolve) })
74
+ /** VueUtils **/
75
+ Vue.component('apply-upload', (resolve) => { require(['./components/product/VueUtils/ApplyUpload'], resolve) })
76
+ Vue.component('apply-high-meter', (resolve) => { require(['./components/product/VueUtils/HighMeter'], resolve) })
77
+ }
@@ -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: `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(":\\") + 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: `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(":\\") + 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>