apply-clients 3.3.45 → 3.3.46

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.45",
3
+ "version": "3.3.46",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -17,6 +17,7 @@ export default function () {
17
17
  Vue.component('app-istall-function', (resolve) => { require(['./components/android/Function/AppInstallFunction'], resolve) })
18
18
  Vue.component('app-function-service-control', (resolve) => { require(['./components/android/Function/AppFunctionServiceControl'], resolve) })
19
19
 
20
+ Vue.component('app-sign', (resolve) => { require(['./components/android/AppSign'], resolve) })
20
21
  Vue.component('app-take-pic', (resolve) => { require(['./components/android/AppTakePic'], resolve) })
21
22
  Vue.component('app-service-view', (resolve) => { require(['./components/android/AppServiceView'], resolve) })
22
23
  Vue.component('app-onetomany', (resolve) => { require(['./components/android/AppOnetomany'], resolve) })
@@ -25,4 +26,6 @@ export default function () {
25
26
  Vue.component('app-apply-devices-management', (resolve) => { require(['./components/android/Process/Processes/AppDevicesManagement'], resolve) })
26
27
  Vue.component('app-charge-management', (resolve) => { require(['./components/android/Process/Processes/AppChargeManagement'], resolve) })
27
28
  Vue.component('app-supplemental-agreement', (resolve) => { require(['./components/android/Process/Processes/AppSupplementalAgreement'], resolve) })
29
+
30
+ Vue.component('app-build-sign', (resolve) => { require(['./components/android/Process/Processes/AppBuildSign'], resolve) })
28
31
  }
@@ -0,0 +1,97 @@
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: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign">签名</button>
9
+ </div>
10
+ </div>
11
+ </div>
12
+ </template>
13
+ <script>
14
+ import {getNowDate, guid, isEmpty} from '../Util'
15
+ import {PagedList} from 'vue-client'
16
+ import {HttpResetClass} from 'vue-client'
17
+ import QRCode from 'qrcodejs2'
18
+ import Vue from "vue";
19
+
20
+ export default {
21
+ title: '签字',
22
+ props: {
23
+ f_file_path: {
24
+ type: Object,
25
+ default: null
26
+ }
27
+ },
28
+ data () {
29
+ return {
30
+ f_sign_path: null
31
+ }
32
+ },
33
+ ready () {
34
+ console.log('============进入签字==============')
35
+ this.f_sign_path = this.f_file_path
36
+ },
37
+ methods: {
38
+ sign () {
39
+ this.delAudioFile(this.f_sign_path)
40
+ let fileName = guid() + '.jpg'
41
+ console.log('===================生成文件名=======================')
42
+ console.log(fileName)
43
+ HostApp.__callback__ = this.signCallback
44
+ HostApp.__this__ = this
45
+ HostApp.getSignature({
46
+ file: fileName,
47
+ requestCode: 111,
48
+ callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
49
+ })
50
+ },
51
+ // 签名回调
52
+ signCallback (prop, filePath) {
53
+ console.log('==============签字回调========================')
54
+ console.log(filePath)
55
+ HostApp.__this__.$set(prop, filePath)
56
+ HostApp.__callback__ = null
57
+ HostApp.__this__ = null
58
+ },
59
+ delAudioFile (filePath) {
60
+ if (!filePath) {
61
+ return
62
+ }
63
+ HostApp.delfile(filePath)
64
+ this.f_sign_path = null
65
+ }
66
+ },
67
+ events: {
68
+ },
69
+ computed: {
70
+ },
71
+ watch: {
72
+ }
73
+ }
74
+ </script>
75
+ <style scoped lang="less">
76
+ .qrcode {
77
+ display: inline-block !important;
78
+ margin: 10px 0px;
79
+ }
80
+ .panel-self{
81
+ border-radius: 10px;
82
+ border:1px solid #499EDF;
83
+ background-color: #F8F8F8;
84
+ }
85
+ .vertical-center {
86
+ display: flex;
87
+ align-items: center;
88
+ text-align: center;
89
+ }
90
+ /*清除model中的浮动*/
91
+ .clearfix:after,.clearfix:before{
92
+ display: table;
93
+ }
94
+ .clearfix:after{
95
+ clear: both;
96
+ }
97
+ </style>
@@ -0,0 +1,38 @@
1
+ <template>
2
+ <app-sign></app-sign>
3
+ </template>
4
+ <script>
5
+ import {getNowDate,isEmpty} from '../../../Util'
6
+ import {HttpResetClass} from 'vue-client'
7
+ import Vue from "vue";
8
+
9
+ export default {
10
+ title: '施工签字',
11
+ props: {
12
+ selectdata: {
13
+ type: Object
14
+ },
15
+ mark: {
16
+ type: Number,
17
+ default: 0
18
+ }
19
+ },
20
+ data () {
21
+ return {
22
+ }
23
+ },
24
+ ready () {
25
+ console.log('===========施工签字================')
26
+ },
27
+ methods: {
28
+ },
29
+ events: {
30
+ },
31
+ computed: {
32
+ },
33
+ watch: {
34
+ }
35
+ }
36
+ </script>
37
+ <style scoped lang="less">
38
+ </style>