apply-clients 3.4.64 → 3.4.66

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 (105) hide show
  1. package/build/dev-server.js +2 -2
  2. package/dist-android/static/18.js +2 -2
  3. package/dist-android/static/18.js.map +1 -1
  4. package/dist-android/static/19.js +2 -2
  5. package/dist-android/static/19.js.map +1 -1
  6. package/dist-android/static/24.js +2 -2
  7. package/dist-android/static/24.js.map +1 -1
  8. package/dist-android/static/25.js +2 -2
  9. package/dist-android/static/25.js.map +1 -1
  10. package/dist-android/static/26.js +2 -2
  11. package/dist-android/static/26.js.map +1 -1
  12. package/dist-android/static/28.js +2 -2
  13. package/dist-android/static/28.js.map +1 -1
  14. package/dist-android/static/30.js +2 -2
  15. package/dist-android/static/30.js.map +1 -1
  16. package/dist-android/static/34.js +2 -2
  17. package/dist-android/static/34.js.map +1 -1
  18. package/dist-android/static/43.js +2 -2
  19. package/dist-android/static/43.js.map +1 -1
  20. package/dist-android/static/47.js +2 -2
  21. package/dist-android/static/47.js.map +1 -1
  22. package/dist-android/static/50.js +2 -2
  23. package/dist-android/static/50.js.map +1 -1
  24. package/dist-android/static/52.js +2 -2
  25. package/dist-android/static/52.js.map +1 -1
  26. package/dist-android/static/53.js +2 -2
  27. package/dist-android/static/53.js.map +1 -1
  28. package/dist-android/static/54.js +2 -2
  29. package/dist-android/static/54.js.map +1 -1
  30. package/dist-android/static/60.js +2 -2
  31. package/dist-android/static/60.js.map +1 -1
  32. package/dist-android/static/63.js +2 -2
  33. package/dist-android/static/63.js.map +1 -1
  34. package/dist-android/static/64.js +2 -2
  35. package/dist-android/static/64.js.map +1 -1
  36. package/dist-android/static/78.js +2 -2
  37. package/dist-android/static/78.js.map +1 -1
  38. package/dist-android/static/83.js +2 -2
  39. package/dist-android/static/83.js.map +1 -1
  40. package/dist-android/static/84.js +2 -2
  41. package/dist-android/static/84.js.map +1 -1
  42. package/dist-android/static/86.js +2 -2
  43. package/dist-android/static/86.js.map +1 -1
  44. package/dist-android/static/87.js +2 -2
  45. package/dist-android/static/87.js.map +1 -1
  46. package/dist-android/static/89.js +2 -2
  47. package/dist-android/static/89.js.map +1 -1
  48. package/dist-android/static/97.js +2 -2
  49. package/dist-android/static/97.js.map +1 -1
  50. package/dist-android/static/app.js +80 -80
  51. package/dist-android/static/app.js.map +1 -1
  52. package/package.json +4 -3
  53. package/src/apply.js +5 -0
  54. package/src/applyAndroid.js +2 -0
  55. package/src/components/android/AppSign.vue +154 -154
  56. package/src/components/android/AppTakePic.vue +143 -143
  57. package/src/components/android/Function/AppFunctionServiceControl.vue +344 -344
  58. package/src/components/android/Ignition/VentilationIgnition.vue +408 -0
  59. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +455 -0
  60. package/src/components/android/Process/AppServiceControl.vue +1708 -1708
  61. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -477
  62. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -519
  63. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -298
  64. package/src/components/android/Supervisory/AppSupervisoryCart.vue +156 -156
  65. package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -537
  66. package/src/components/product/ApplyCharge/ApplyChargeList.vue +470 -470
  67. package/src/components/product/Function/Service/FunctionServiceControl.vue +445 -445
  68. package/src/components/product/Ignition/IgnitionDispatch.vue +92 -0
  69. package/src/components/product/Ignition/IgnitionList.vue +236 -0
  70. package/src/components/product/Ignition/IgnitionListManage.vue +413 -0
  71. package/src/components/product/Ignition/IgnitionRecord.vue +357 -0
  72. package/src/components/product/Process/ExplorationSelect.vue +0 -13
  73. package/src/components/product/Process/Processes/addMaterialScience.vue +454 -454
  74. package/src/components/product/Process/Processes/chargeManagement.vue +656 -656
  75. package/src/components/product/Process/Processes/devicesManagement.vue +484 -484
  76. package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
  77. package/src/components/product/Process/Service/ServiceControl.vue +56 -1
  78. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  79. package/src/components/product/Process/ShowBackReason.vue +33 -33
  80. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +882 -882
  81. package/src/components/product/VueUtils/ApplyUpload.vue +287 -287
  82. package/src/filiale/gehua/pc/ServiceControl.vue +1938 -1938
  83. package/src/filiale/gehua/pc/SupervisoryServiceControl.vue +890 -890
  84. package/src/filiale/guangxi/android/Process/Processes/AppAddMaterialScience.vue +520 -520
  85. package/src/filiale/guangxi/android/Process/Processes/AppDevicesManagement.vue +519 -519
  86. package/src/filiale/guangxi/android/Process/Processes/AppServiceControl.vue +1708 -1708
  87. package/src/filiale/guangxi/android/Process/Processes/AppSupplementalAgreement.vue +298 -298
  88. package/src/filiale/guangxi/pc/ApplyCharge/ApplyChargeList.vue +470 -470
  89. package/src/filiale/guangxi/pc/ApplyCharge/chargeManagement.vue +724 -724
  90. package/src/filiale/guangxi/pc/Process/Service/ServiceControl.vue +1922 -1922
  91. package/src/filiale/guangxi/pc/Process/Service/ShowBackReason.vue +33 -33
  92. package/src/filiale/guangxi/pc/Process/Service/SupervisoryServiceControl.vue +891 -891
  93. package/src/filiale/guangxi/pc/Process/Service/addMaterialScience.vue +517 -517
  94. package/src/filiale/guangxi/pc/Process/ShowBackReason.vue +33 -33
  95. package/src/filiale/shexian/pc/ExplorationSelect.vue +474 -0
  96. package/src/filiale/shexian/pc.js +6 -0
  97. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +735 -735
  98. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +824 -824
  99. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetailsCivil.vue +650 -650
  100. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -528
  101. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +809 -809
  102. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetailsCivil.vue +595 -595
  103. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +621 -621
  104. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +1108 -1108
  105. package/dist.7z +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.64",
3
+ "version": "3.4.66",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -40,6 +40,7 @@
40
40
  "vue-bubble": "^1.0.3"
41
41
  },
42
42
  "devDependencies": {
43
+ "crypto-js": "^4.1.1",
43
44
  "babel-core": "^6.0.0",
44
45
  "babel-loader": "^6.0.0",
45
46
  "babel-plugin-transform-runtime": "^6.0.0",
@@ -93,10 +94,10 @@
93
94
  "sinon-chai": "^2.8.0",
94
95
  "style": "0.0.3",
95
96
  "style-loader": "^0.20.3",
96
- "system-clients": "3.1.87",
97
+ "system-clients": "3.2.61",
97
98
  "system-phone": "1.2.80-49",
98
99
  "url-loader": "^0.5.7",
99
- "vue-client": "1.24.74",
100
+ "vue-client": "1.24.80",
100
101
  "vue-hot-reload-api": "^1.2.0",
101
102
  "vue-html-loader": "^1.0.0",
102
103
  "vue-loader": "^8.2.1",
package/src/apply.js CHANGED
@@ -94,6 +94,11 @@ export default function (filiale) {
94
94
 
95
95
  Vue.component('print-gnition-bill', (resolve) => { require(['./components/product/Print/IgnitionBill/printIgnitionBill'], resolve) })
96
96
  Vue.component('ignition-bill-list', (resolve) => { require(['./components/product/Print/IgnitionBill/IgnitionBill'], resolve) })
97
+ // 点火界面
98
+ Vue.component('ignition-dispatch', (resolve) => { require(['./components/product/ignition/IgnitionDispatch.vue'], resolve) })
99
+ Vue.component('ignition-list', (resolve) => { require(['./components/product/ignition/IgnitionList.vue'], resolve) })
100
+ Vue.component('ignition-list-manage', (resolve) => { require(['./components/product/ignition/IgnitionListManage.vue'], resolve) })
101
+ Vue.component('ignition-record', (resolve) => { require(['./components/product/ignition/IgnitionRecord.vue'], resolve) })
97
102
 
98
103
  Vue.component('business-apply', (resolve) => { require(['./components/product/Business/BusinessApply'], resolve) })
99
104
  Vue.component('civil-apply', (resolve) => { require(['./components/product/Business/CivilApply'], resolve) })
@@ -43,6 +43,8 @@ export default function (filiale) {
43
43
  Vue.component('app-res-area-map-group', (resolve) => { require(['./components/android/AreaSelect/AppResAreaMapGroup'], resolve) })
44
44
  // 扫描二维码
45
45
  Vue.component('app-qrcode-reader', (resolve) => { require(['./components/android/AreaSelect/AppQrcodeReader'], resolve) })
46
+ Vue.component('app-ignition-ventilation', (resolve) => { require(['./components/android/ignition/VentilationIgnition'], resolve) })
47
+ Vue.component('app-ignition-handle', (resolve) => { require(['./components/android/ignition/VentilationIgnitionHandle'], resolve) })
46
48
  // 特殊目录给这里加
47
49
  if (filiale) {
48
50
  let filialeComp = require(`./filiale/${filiale}/android`).specialComp
@@ -1,154 +1,154 @@
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
- <img :src="f_sign_path" width="100%" height="100%" />
6
- </div>
7
- <div class="row text-right form-group">
8
- <button class="btn" style="background-color: #f1e404;border-radius: 5px;margin-right: 10px" @click="clean">清除</button>
9
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign">签名</button>
10
- </div>
11
- </div>
12
- </div>
13
- </template>
14
- <script>
15
- import {getNowDate, guid, isEmpty} from '../Util'
16
- import {PagedList} from 'vue-client'
17
- import {HttpResetClass} from 'vue-client'
18
- import QRCode from 'qrcodejs2'
19
- import Vue from "vue";
20
-
21
- export default {
22
- title: '签字',
23
- props: ['filePath','blobid','type', 'defname'],
24
- data () {
25
- return {
26
- f_sign_path: null,
27
- fileName: null
28
- }
29
- },
30
- ready () {
31
- console.log('在ready里打印一下this.filePath',this.filePath)
32
- this.f_sign_path = this.filePath
33
- console.log('在ready里打印一下this.f_sign_path',this.f_sign_path)
34
- this.getFiles()
35
- },
36
- methods: {
37
- clean () {
38
- this.f_sign_path = null
39
- this.fileName = null
40
- this.$emit('sign-clean')
41
- },
42
- sign () {
43
- debugger
44
- this.type='手机签字'
45
- console.log('==============签字打印this============',this)
46
- this.delAudioFile(this.f_sign_path)
47
- this.fileName = guid() + '.jpg'
48
- HostApp.__callback__ = this.signCallback
49
- HostApp.__this__ = this
50
- HostApp.getSignature({
51
- file: this.fileName,
52
- requestCode: 111,
53
- callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
54
- })
55
- },
56
- // 签名回调
57
- signCallback (prop, signPath) {
58
- console.log('==============签字回调============')
59
- console.log(signPath)
60
- HostApp.__this__.$set(prop, signPath)
61
- console.log(HostApp.__this__.f_sign_path)
62
-
63
- HostApp.__this__.uploadFile()
64
-
65
- HostApp.__callback__ = null
66
- HostApp.__this__ = null
67
- },
68
- uploadFile () {
69
- console.log('===================签字文件上传==============')
70
- console.log('===================打印id==============',HostApp.__this__.blobid)
71
- let data = {
72
- defname:HostApp.__this__.defname,
73
- type:HostApp.__this__.type,
74
- blodid: HostApp.__this__.blobid,
75
- username: Vue.user.name,
76
- fremarks: '报装手机签字文件',
77
- fileName: HostApp.__this__.fileName,
78
- fileUrl: HostApp.__this__.f_sign_path
79
- }
80
-
81
- console.log('-----------bzLogic-----------------')
82
- console.log(JSON.stringify(data))
83
- let res = HostApp.bzLogic({
84
- 'logic': 'appFileUpload',
85
- 'data': data
86
- })
87
- console.log('===============上传回调=================')
88
- console.log(JSON.stringify(res))
89
- HostApp.__this__.getFiles(res.id)
90
- },
91
- async getFiles (fileid) {
92
- debugger
93
- console.log('=========进来===============')
94
- let http = new HttpResetClass()
95
- console.log('=========进来===============')
96
- let data = {
97
- tablename: 't_files',
98
- condition: `f_blobid = '${this.blobid}' and fremarks='报装手机签字文件' `
99
- }
100
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
101
- // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
102
- warnMsg: null,
103
- resolveMsg: null
104
- })
105
-
106
- console.log('=========查询回调===============')
107
- let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
108
- console.log(fileUrl)
109
- // HostApp.__this__.$set('f_sign_path', fileUrl)
110
- // HostApp.__this__.f_sign_path = fileUrl
111
- this.f_sign_path = fileUrl
112
-
113
- this.$emit('sign-success', fileUrl)
114
- },
115
- delAudioFile (signPath) {
116
- if (!signPath) {
117
- return
118
- }
119
- HostApp.delfile(signPath)
120
- this.f_sign_path = null
121
- this.fileName = null
122
- }
123
- },
124
- events: {
125
- },
126
- computed: {
127
- },
128
- watch: {
129
- }
130
- }
131
- </script>
132
- <style scoped lang="less">
133
- .qrcode {
134
- display: inline-block !important;
135
- margin: 10px 0px;
136
- }
137
- .panel-self{
138
- border-radius: 10px;
139
- border:1px solid #499EDF;
140
- background-color: #F8F8F8;
141
- }
142
- .vertical-center {
143
- display: flex;
144
- align-items: center;
145
- text-align: center;
146
- }
147
- /*清除model中的浮动*/
148
- .clearfix:after,.clearfix:before{
149
- display: table;
150
- }
151
- .clearfix:after{
152
- clear: both;
153
- }
154
- </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
+ <img :src="f_sign_path" width="100%" height="100%" />
6
+ </div>
7
+ <div class="row text-right form-group">
8
+ <button class="btn" style="background-color: #f1e404;border-radius: 5px;margin-right: 10px" @click="clean">清除</button>
9
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign">签名</button>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+ <script>
15
+ import {getNowDate, guid, isEmpty} from '../Util'
16
+ import {PagedList} from 'vue-client'
17
+ import {HttpResetClass} from 'vue-client'
18
+ import QRCode from 'qrcodejs2'
19
+ import Vue from "vue";
20
+
21
+ export default {
22
+ title: '签字',
23
+ props: ['filePath','blobid','type', 'defname'],
24
+ data () {
25
+ return {
26
+ f_sign_path: null,
27
+ fileName: null
28
+ }
29
+ },
30
+ ready () {
31
+ console.log('在ready里打印一下this.filePath',this.filePath)
32
+ this.f_sign_path = this.filePath
33
+ console.log('在ready里打印一下this.f_sign_path',this.f_sign_path)
34
+ this.getFiles()
35
+ },
36
+ methods: {
37
+ clean () {
38
+ this.f_sign_path = null
39
+ this.fileName = null
40
+ this.$emit('sign-clean')
41
+ },
42
+ sign () {
43
+ debugger
44
+ this.type='手机签字'
45
+ console.log('==============签字打印this============',this)
46
+ this.delAudioFile(this.f_sign_path)
47
+ this.fileName = guid() + '.jpg'
48
+ HostApp.__callback__ = this.signCallback
49
+ HostApp.__this__ = this
50
+ HostApp.getSignature({
51
+ file: this.fileName,
52
+ requestCode: 111,
53
+ callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
54
+ })
55
+ },
56
+ // 签名回调
57
+ signCallback (prop, signPath) {
58
+ console.log('==============签字回调============')
59
+ console.log(signPath)
60
+ HostApp.__this__.$set(prop, signPath)
61
+ console.log(HostApp.__this__.f_sign_path)
62
+
63
+ HostApp.__this__.uploadFile()
64
+
65
+ HostApp.__callback__ = null
66
+ HostApp.__this__ = null
67
+ },
68
+ uploadFile () {
69
+ console.log('===================签字文件上传==============')
70
+ console.log('===================打印id==============',HostApp.__this__.blobid)
71
+ let data = {
72
+ defname:HostApp.__this__.defname,
73
+ type:HostApp.__this__.type,
74
+ blodid: HostApp.__this__.blobid,
75
+ username: Vue.user.name,
76
+ fremarks: '报装手机签字文件',
77
+ fileName: HostApp.__this__.fileName,
78
+ fileUrl: HostApp.__this__.f_sign_path
79
+ }
80
+
81
+ console.log('-----------bzLogic-----------------')
82
+ console.log(JSON.stringify(data))
83
+ let res = HostApp.bzLogic({
84
+ 'logic': 'appFileUpload',
85
+ 'data': data
86
+ })
87
+ console.log('===============上传回调=================')
88
+ console.log(JSON.stringify(res))
89
+ HostApp.__this__.getFiles(res.id)
90
+ },
91
+ async getFiles (fileid) {
92
+ debugger
93
+ console.log('=========进来===============')
94
+ let http = new HttpResetClass()
95
+ console.log('=========进来===============')
96
+ let data = {
97
+ tablename: 't_files',
98
+ condition: `f_blobid = '${this.blobid}' and fremarks='报装手机签字文件' `
99
+ }
100
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
101
+ // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
102
+ warnMsg: null,
103
+ resolveMsg: null
104
+ })
105
+
106
+ console.log('=========查询回调===============')
107
+ let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
108
+ console.log(fileUrl)
109
+ // HostApp.__this__.$set('f_sign_path', fileUrl)
110
+ // HostApp.__this__.f_sign_path = fileUrl
111
+ this.f_sign_path = fileUrl
112
+
113
+ this.$emit('sign-success', fileUrl)
114
+ },
115
+ delAudioFile (signPath) {
116
+ if (!signPath) {
117
+ return
118
+ }
119
+ HostApp.delfile(signPath)
120
+ this.f_sign_path = null
121
+ this.fileName = null
122
+ }
123
+ },
124
+ events: {
125
+ },
126
+ computed: {
127
+ },
128
+ watch: {
129
+ }
130
+ }
131
+ </script>
132
+ <style scoped lang="less">
133
+ .qrcode {
134
+ display: inline-block !important;
135
+ margin: 10px 0px;
136
+ }
137
+ .panel-self{
138
+ border-radius: 10px;
139
+ border:1px solid #499EDF;
140
+ background-color: #F8F8F8;
141
+ }
142
+ .vertical-center {
143
+ display: flex;
144
+ align-items: center;
145
+ text-align: center;
146
+ }
147
+ /*清除model中的浮动*/
148
+ .clearfix:after,.clearfix:before{
149
+ display: table;
150
+ }
151
+ .clearfix:after{
152
+ clear: both;
153
+ }
154
+ </style>
@@ -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/apply_singleTable`, {data: data}, {
55
- // let res = await http.load('POST', `rs/sql/apply_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/apply_singleTable`, {data: data}, {
55
+ // let res = await http.load('POST', `rs/sql/apply_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>