apply-clients 3.3.210 → 3.3.215

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.
@@ -1,144 +1,144 @@
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}' 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
-
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
- HostApp.__callback__ = this.cameraCallBack
78
- HostApp.__this__ = this
79
- let fileName = guid() + '.jpg'
80
- // 打开相机
81
- HostApp._open_a_page({
82
- type: 'boomerang',
83
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
84
- param: {
85
- file: fileName,
86
- requestCode: 200,
87
- callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
88
- watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
89
- }
90
- })
91
- },
92
- cameraCallBack (fileName, fileUrl) {
93
- console.log('-----------cameraCallBack-----------------')
94
-
95
- let data = {
96
- blodid: HostApp.__this__.blobid,
97
- type: HostApp.__this__.type,
98
- defname: HostApp.__this__.defname,
99
- username: Vue.user.name,
100
- fremarks: '手机拍照',
101
- fileName: fileName,
102
- fileUrl: fileUrl
103
- }
104
-
105
- console.log('-----------bzLogic-----------------')
106
- HostApp.bzLogic({
107
- 'logic': 'appFileUpload',
108
- 'data': data
109
- })
110
-
111
- console.log('----------------开始回调查询-------------------')
112
- HostApp.__this__.getFiles()
113
- console.log('----------------查询回调结束-------------------')
114
-
115
- HostApp.__callback__ = null
116
- HostApp.__this__ = null
117
- }
118
- },
119
- computed: {
120
- typeList () {
121
- if (this.typelabel) {
122
- return this.$appdata.getParam(this.typelabel)
123
- }
124
- return this.$appdata.getParam('使用类型')
125
- }
126
- },
127
- events: {
128
- }
129
- }
130
- </script>
131
-
132
- <style lang="less">
133
- .fileType {
134
- float: left;
135
- .select-style {
136
- background: #f8f8f8;
137
- border: 0px;
138
- }
139
- input {
140
- border-left: none;
141
- width: 100%;
142
- }
143
- }
144
- </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}' 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
+
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
+ HostApp.__callback__ = this.cameraCallBack
78
+ HostApp.__this__ = this
79
+ let fileName = guid() + '.jpg'
80
+ // 打开相机
81
+ HostApp._open_a_page({
82
+ type: 'boomerang',
83
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
84
+ param: {
85
+ file: fileName,
86
+ requestCode: 200,
87
+ callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
88
+ watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
89
+ }
90
+ })
91
+ },
92
+ cameraCallBack (fileName, fileUrl) {
93
+ console.log('-----------cameraCallBack-----------------')
94
+
95
+ let data = {
96
+ blodid: HostApp.__this__.blobid,
97
+ type: HostApp.__this__.type,
98
+ defname: HostApp.__this__.defname,
99
+ username: Vue.user.name,
100
+ fremarks: '手机拍照',
101
+ fileName: fileName,
102
+ fileUrl: fileUrl
103
+ }
104
+
105
+ console.log('-----------bzLogic-----------------')
106
+ HostApp.bzLogic({
107
+ 'logic': 'appFileUpload',
108
+ 'data': data
109
+ })
110
+
111
+ console.log('----------------开始回调查询-------------------')
112
+ HostApp.__this__.getFiles()
113
+ console.log('----------------查询回调结束-------------------')
114
+
115
+ HostApp.__callback__ = null
116
+ HostApp.__this__ = null
117
+ }
118
+ },
119
+ computed: {
120
+ typeList () {
121
+ if (this.typelabel) {
122
+ return this.$appdata.getParam(this.typelabel)
123
+ }
124
+ return this.$appdata.getParam('使用类型')
125
+ }
126
+ },
127
+ events: {
128
+ }
129
+ }
130
+ </script>
131
+
132
+ <style lang="less">
133
+ .fileType {
134
+ float: left;
135
+ .select-style {
136
+ background: #f8f8f8;
137
+ border: 0px;
138
+ }
139
+ input {
140
+ border-left: none;
141
+ width: 100%;
142
+ }
143
+ }
144
+ </style>
@@ -0,0 +1,47 @@
1
+ <template>
2
+ <h3>市场部负责人签字:</h3>
3
+ <app-sign @sign-success="signSuccess" :file-path="selectdata.f_build_sign" @sign-clean="signClean"></app-sign>
4
+ </template>
5
+ <script>
6
+ import {getNowDate,isEmpty} from '../../../Util'
7
+ import {HttpResetClass} from 'vue-client'
8
+ import Vue from "vue";
9
+
10
+ export default {
11
+ title: '告知单和调研表签字',
12
+ props: {
13
+ selectdata: {
14
+ type: Object
15
+ },
16
+ mark: {
17
+ type: Number,
18
+ default: 0
19
+ }
20
+ },
21
+ data () {
22
+ return {
23
+ }
24
+ },
25
+ ready () {
26
+ console.log('===========市场部负责人签字================')
27
+ },
28
+ methods: {
29
+ signClean () {
30
+ this.selectdata.f_build_sign = null
31
+ },
32
+ signSuccess (fileUrl) {
33
+ console.log('==============告知单和调研表回调==================')
34
+ console.log(fileUrl)
35
+ this.selectdata.f_build_sign = fileUrl
36
+ }
37
+ },
38
+ events: {
39
+ },
40
+ computed: {
41
+ },
42
+ watch: {
43
+ }
44
+ }
45
+ </script>
46
+ <style scoped lang="less">
47
+ </style>
@@ -0,0 +1,47 @@
1
+ <template>
2
+ <h3>调研表甲方负责人签字:</h3>
3
+ <app-sign @sign-success="signSuccess" :file-path="selectdata.f_jiaA_sign" @sign-clean="signClean"></app-sign>
4
+ </template>
5
+ <script>
6
+ import {getNowDate,isEmpty} from '../../../Util'
7
+ import {HttpResetClass} from 'vue-client'
8
+ import Vue from "vue";
9
+
10
+ export default {
11
+ title: '调研表甲方负责人签字',
12
+ props: {
13
+ selectdata: {
14
+ type: Object
15
+ },
16
+ mark: {
17
+ type: Number,
18
+ default: 0
19
+ }
20
+ },
21
+ data () {
22
+ return {
23
+ }
24
+ },
25
+ ready () {
26
+ console.log('===========调研表甲方负责人签字================')
27
+ },
28
+ methods: {
29
+ signClean () {
30
+ this.selectdata.f_jiaA_sign = null
31
+ },
32
+ signSuccess (fileUrl) {
33
+ console.log('==============告知单和调研表回调==================')
34
+ console.log(fileUrl)
35
+ this.selectdata.f_jiaA_sign = fileUrl
36
+ }
37
+ },
38
+ events: {
39
+ },
40
+ computed: {
41
+ },
42
+ watch: {
43
+ }
44
+ }
45
+ </script>
46
+ <style scoped lang="less">
47
+ </style>
@@ -0,0 +1,47 @@
1
+ <template>
2
+ <h3>告知单甲方负责人签字:</h3>
3
+ <app-sign @sign-success="signSuccess" :file-path="selectdata.f_jia_sign" @sign-clean="signClean"></app-sign>
4
+ </template>
5
+ <script>
6
+ import {getNowDate,isEmpty} from '../../../Util'
7
+ import {HttpResetClass} from 'vue-client'
8
+ import Vue from "vue";
9
+
10
+ export default {
11
+ title: '告知单甲方负责人签字',
12
+ props: {
13
+ selectdata: {
14
+ type: Object
15
+ },
16
+ mark: {
17
+ type: Number,
18
+ default: 0
19
+ }
20
+ },
21
+ data () {
22
+ return {
23
+ }
24
+ },
25
+ ready () {
26
+ console.log('===========告知单甲方负责人签字================')
27
+ },
28
+ methods: {
29
+ signClean () {
30
+ this.selectdata.f_jia_sign = null
31
+ },
32
+ signSuccess (fileUrl) {
33
+ console.log('==============告知单和调研表回调==================')
34
+ console.log(fileUrl)
35
+ this.selectdata.f_jia_sign = fileUrl
36
+ }
37
+ },
38
+ events: {
39
+ },
40
+ computed: {
41
+ },
42
+ watch: {
43
+ }
44
+ }
45
+ </script>
46
+ <style scoped lang="less">
47
+ </style>
@@ -0,0 +1,47 @@
1
+ <template>
2
+ <h3>技术部负责人签字:</h3>
3
+ <app-sign @sign-success="signSuccess" :file-path="selectdata.f_technology_sign" @sign-clean="signClean"></app-sign>
4
+ </template>
5
+ <script>
6
+ import {getNowDate,isEmpty} from '../../../Util'
7
+ import {HttpResetClass} from 'vue-client'
8
+ import Vue from "vue";
9
+
10
+ export default {
11
+ title: '技术部负责人签字',
12
+ props: {
13
+ selectdata: {
14
+ type: Object
15
+ },
16
+ mark: {
17
+ type: Number,
18
+ default: 0
19
+ }
20
+ },
21
+ data () {
22
+ return {
23
+ }
24
+ },
25
+ ready () {
26
+ console.log('===========技术部负责人签字================')
27
+ },
28
+ methods: {
29
+ signClean () {
30
+ this.selectdata.f_technology_sign = null
31
+ },
32
+ signSuccess (fileUrl) {
33
+ console.log('==============回调==================')
34
+ console.log(fileUrl)
35
+ this.selectdata.f_technology_sign = fileUrl
36
+ }
37
+ },
38
+ events: {
39
+ },
40
+ computed: {
41
+ },
42
+ watch: {
43
+ }
44
+ }
45
+ </script>
46
+ <style scoped lang="less">
47
+ </style>