apply-clients 3.3.92 → 3.3.94-2

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.
@@ -8,28 +8,22 @@ var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
9
  // var ldap = 'http://121.36.79.201:8400'
10
10
  // var applyinstall = 'http://121.36.79.201:8400'
11
+ // var ldap = 'http://192.168.20.27:8555'
12
+ // var applyinstall = 'http://192.168.20.27:8555'
11
13
  var ldap = 'http://192.168.20.28:8400'
12
- var applyinstall = 'http://127.0.0.1:8080'
13
- // var ldap = 'http://192.168.20.28:8556'
14
- // var applyinstall = 'http://192.168.20.28:8556'
14
+ var applyinstall = 'http://192.168.20.28:8400'
15
15
  var proxyTable = {
16
16
  '/wx': {
17
17
  target: ldap
18
18
  },
19
- '/ncc': {
20
- target: 'http://192.168.20.27:7890'
21
- },
22
19
  '/rs/sql/filemanage_getUserfies/n': {
23
20
  target: ldap
24
21
  },
25
22
  '/rs/sql/filemanage_getUserfies': {
26
23
  target: ldap
27
24
  },
28
- '/rs/entity/t_apply': {
29
- target: 'http://127.0.0.1:8080'
30
- },
31
- '/rs/logic/ApplyProductService': {
32
- target: 'http://127.0.0.1:8080'
25
+ '/rs/logic/saveInsInfo': {
26
+ target: ldap
33
27
  },
34
28
  '/rs/logic/exportfile': {
35
29
  target: ldap
@@ -37,36 +31,9 @@ var proxyTable = {
37
31
  '/rs/logic/getBatchOperaPro': {
38
32
  target: ldap
39
33
  },
40
- '/rs/sql/getApplyCharge': {
41
- target: 'http://127.0.0.1:8080'
42
- },
43
- '/rs/sql/getChargeAll': {
44
- target: 'http://127.0.0.1:8080'
45
- },
46
- '/rs/sql/supervisory': {
47
- target: 'http://127.0.0.1:8080'
48
- },
49
34
  '/rs/logic/updateApplyOrder': {
50
35
  target: ldap
51
36
  },
52
- // '/rs/sql/getAddresAndUserinfoAndUserfilesAmount': {
53
- // target: 'http://127.0.0.1:8080'
54
- // },
55
- // '/rs/sql/singleTable': {
56
- // target: 'http://127.0.0.1:8080'
57
- // },
58
- // '/rs/sql/countApplyUserinfo': {
59
- // target: 'http://127.0.0.1:8080'
60
- // },
61
- // '/rs/sql/getStockMaterial': {
62
- // target: 'http://127.0.0.1:8080'
63
- // },
64
- '/rs/logic/resAreaSelect': {
65
- target: 'http://127.0.0.1:8080'
66
- },
67
- // '/rs/logic/bjqCheck': {
68
- // target: 'http://127.0.0.1:8080'
69
- // },
70
37
  '/rs/logic/getSaleInitData': {
71
38
  target: ldap
72
39
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.92",
3
+ "version": "3.3.94-2",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -1,22 +1,20 @@
1
- <template>
2
- <div>
3
- <app-base class="bg">
4
- <div class='flex'>
5
- <article>
6
- <route :comp="{name: 'login'}"></route>
7
- <!-- <route :comp="{name: 'login-app'}"></route>-->
8
-
9
- </article>
10
- </div>
11
- </app-base>
12
- </div>
13
- </template>
14
-
15
- <script>
16
-
17
-
18
- export default {
19
-
20
-
21
- }
22
- </script>
1
+ <template>
2
+ <div>
3
+ <app-base class="bg">
4
+ <div class='flex'>
5
+ <article>
6
+ <route :comp="{name: 'login'}"></route>
7
+ </article>
8
+ </div>
9
+ </app-base>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+
15
+
16
+ export default {
17
+
18
+
19
+ }
20
+ </script>
@@ -180,16 +180,16 @@
180
180
  </div>
181
181
  </div>
182
182
  <!--区域地址联动-->
183
- <div>
184
- <app-res-area-select-group
185
- v-if="data.f_apply_type === '报警器报建' && data.defname === '工程施工' && data.title === '工程施工' && data.f_sub_state !='完工'"
186
- labelstyle = "control-label"
187
- @shiji-select = "getSelectShijiValue"
188
- @xian-select = "getSelectXianValue"
189
- @shequ-select = "getSelectShequValue"
190
- >
191
- </app-res-area-select-group>
192
- </div>
183
+ <!--<div>-->
184
+ <!-- <app-res-area-select-group-->
185
+ <!-- v-if="data.f_apply_type === '报警器报建' && data.defname === '工程施工' && data.title === '工程施工' && data.f_sub_state !='完工'"-->
186
+ <!-- labelstyle = "control-label"-->
187
+ <!-- @shiji-select = "getSelectShijiValue"-->
188
+ <!-- @xian-select = "getSelectXianValue"-->
189
+ <!-- @shequ-select = "getSelectShequValue"-->
190
+ <!-- >-->
191
+ <!-- </app-res-area-select-group>-->
192
+ <!--</div>-->
193
193
  <div class="col-sm-12 col-xs-12" id="test11">
194
194
  <accordion one-at-a-time="true">
195
195
  <panel v-for="(i,item) in data.onetomany" :header="item.title" :is-open="false" type="primary">
@@ -203,6 +203,16 @@
203
203
 
204
204
  <!--自定义组件-->
205
205
  <slot>
206
+ <div>
207
+ <app-res-area-select-group
208
+ v-if="data.f_apply_type === '报警器报建' && data.defname === '工程施工' && data.title === '工程施工' && data.f_sub_state !='完工'"
209
+ labelstyle = "control-label"
210
+ @shiji-select = "getSelectShijiValue"
211
+ @xian-select = "getSelectXianValue"
212
+ @shequ-select = "getSelectShequValue"
213
+ >
214
+ </app-res-area-select-group>
215
+ </div>
206
216
  </slot>
207
217
 
208
218
  <!-- 按钮组 -->
@@ -1,151 +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
- <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'],
24
- data () {
25
- return {
26
- f_sign_path: null,
27
- fileName: null
28
- }
29
- },
30
- ready () {
31
- this.f_sign_path = this.filePath
32
- },
33
- methods: {
34
- clean () {
35
- this.f_sign_path = null
36
- this.fileName = null
37
- this.$emit('sign-clean')
38
- },
39
- sign () {
40
- console.log('==============签字开始============')
41
- console.log(this.f_sign_path)
42
- console.log(guid() )
43
- this.delAudioFile(this.f_sign_path)
44
- console.log(this.signCallback)
45
- this.fileName = guid() + '.jpg'
46
- console.log(this.fileName)
47
- HostApp.__callback__ = this.signCallback
48
- HostApp.__this__ = this
49
-
50
-
51
- HostApp.getSignature({
52
- file: this.fileName,
53
- requestCode: 111,
54
- callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
55
- })
56
- },
57
- // 签名回调
58
- signCallback (prop, signPath) {
59
- console.log('==============签字回调============')
60
- console.log(signPath)
61
- HostApp.__this__.$set(prop, signPath)
62
- console.log(HostApp.__this__.f_sign_path)
63
-
64
- HostApp.__this__.uploadFile()
65
-
66
- HostApp.__callback__ = null
67
- HostApp.__this__ = null
68
- },
69
- uploadFile () {
70
- console.log('===================签字文件上传==============')
71
- let data = {
72
- username: Vue.user.name,
73
- fremarks: '报装手机签字文件',
74
- fileName: HostApp.__this__.fileName,
75
- fileUrl: HostApp.__this__.f_sign_path
76
- }
77
-
78
- console.log('-----------bzLogic-----------------')
79
- console.log(JSON.stringify(data))
80
- let res = HostApp.bzLogic({
81
- 'logic': 'appFileUpload',
82
- 'data': data
83
- })
84
- console.log('===============上传回调=================')
85
- console.log(JSON.stringify(res))
86
- HostApp.__this__.getFiles(res.id)
87
- },
88
- async getFiles (fileid) {
89
- let http = new HttpResetClass()
90
-
91
- let data = {
92
- tablename: 't_files',
93
- condition: `id = '${fileid}'`
94
- }
95
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
96
- // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
97
- warnMsg: null,
98
- resolveMsg: null
99
- })
100
-
101
- console.log('=========查询回调===============')
102
- let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
103
- console.log(fileUrl)
104
- // HostApp.__this__.$set('f_sign_path', fileUrl)
105
- // HostApp.__this__.f_sign_path = fileUrl
106
- this.f_sign_path = fileUrl
107
-
108
- this.$emit('sign-success', fileUrl)
109
- },
110
- delAudioFile (signPath) {
111
- console.log('=========回调===============')
112
- console.log(signPath)
113
- if (!signPath) {
114
- return
115
- }
116
- HostApp.delfile(signPath)
117
- this.f_sign_path = null
118
- this.fileName = null
119
- }
120
- },
121
- events: {
122
- },
123
- computed: {
124
- },
125
- watch: {
126
- }
127
- }
128
- </script>
129
- <style scoped lang="less">
130
- .qrcode {
131
- display: inline-block !important;
132
- margin: 10px 0px;
133
- }
134
- .panel-self{
135
- border-radius: 10px;
136
- border:1px solid #499EDF;
137
- background-color: #F8F8F8;
138
- }
139
- .vertical-center {
140
- display: flex;
141
- align-items: center;
142
- text-align: center;
143
- }
144
- /*清除model中的浮动*/
145
- .clearfix:after,.clearfix:before{
146
- display: table;
147
- }
148
- .clearfix:after{
149
- clear: both;
150
- }
151
- </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'],
24
+ data () {
25
+ return {
26
+ f_sign_path: null,
27
+ fileName: null
28
+ }
29
+ },
30
+ ready () {
31
+ this.f_sign_path = this.filePath
32
+ },
33
+ methods: {
34
+ clean () {
35
+ this.f_sign_path = null
36
+ this.fileName = null
37
+ this.$emit('sign-clean')
38
+ },
39
+ sign () {
40
+ this.delAudioFile(this.f_sign_path)
41
+ this.fileName = guid() + '.jpg'
42
+ HostApp.__callback__ = this.signCallback
43
+ HostApp.__this__ = this
44
+ HostApp.getSignature({
45
+ file: this.fileName,
46
+ requestCode: 111,
47
+ callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
48
+ })
49
+ },
50
+ // 签名回调
51
+ signCallback (prop, signPath) {
52
+ console.log('==============签字回调============')
53
+ console.log(signPath)
54
+ HostApp.__this__.$set(prop, signPath)
55
+ console.log(HostApp.__this__.f_sign_path)
56
+
57
+ HostApp.__this__.uploadFile()
58
+
59
+ HostApp.__callback__ = null
60
+ HostApp.__this__ = null
61
+ },
62
+ uploadFile () {
63
+ console.log('===================签字文件上传==============')
64
+ let data = {
65
+ blodid: HostApp.__this__.blobid,
66
+ username: Vue.user.name,
67
+ fremarks: '报装手机签字文件',
68
+ fileName: HostApp.__this__.fileName,
69
+ fileUrl: HostApp.__this__.f_sign_path
70
+ }
71
+
72
+ console.log('-----------bzLogic-----------------')
73
+ console.log(JSON.stringify(data))
74
+ let res = HostApp.bzLogic({
75
+ 'logic': 'appFileUpload',
76
+ 'data': data
77
+ })
78
+ console.log('===============上传回调=================')
79
+ console.log(JSON.stringify(res))
80
+ HostApp.__this__.getFiles(res.id)
81
+ },
82
+ async getFiles (fileid) {
83
+ let http = new HttpResetClass()
84
+
85
+ let data = {
86
+ tablename: 't_files',
87
+ condition: `id = '${fileid}'`
88
+ }
89
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
90
+ // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
91
+ warnMsg: null,
92
+ resolveMsg: null
93
+ })
94
+
95
+ console.log('=========查询回调===============')
96
+ let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
97
+ console.log(fileUrl)
98
+ // HostApp.__this__.$set('f_sign_path', fileUrl)
99
+ // HostApp.__this__.f_sign_path = fileUrl
100
+ this.f_sign_path = fileUrl
101
+
102
+ this.$emit('sign-success', fileUrl)
103
+ },
104
+ delAudioFile (signPath) {
105
+ if (!signPath) {
106
+ return
107
+ }
108
+ HostApp.delfile(signPath)
109
+ this.f_sign_path = null
110
+ this.fileName = null
111
+ }
112
+ },
113
+ events: {
114
+ },
115
+ computed: {
116
+ },
117
+ watch: {
118
+ }
119
+ }
120
+ </script>
121
+ <style scoped lang="less">
122
+ .qrcode {
123
+ display: inline-block !important;
124
+ margin: 10px 0px;
125
+ }
126
+ .panel-self{
127
+ border-radius: 10px;
128
+ border:1px solid #499EDF;
129
+ background-color: #F8F8F8;
130
+ }
131
+ .vertical-center {
132
+ display: flex;
133
+ align-items: center;
134
+ text-align: center;
135
+ }
136
+ /*清除model中的浮动*/
137
+ .clearfix:after,.clearfix:before{
138
+ display: table;
139
+ }
140
+ .clearfix:after{
141
+ clear: both;
142
+ }
143
+ </style>