apply-clients 3.5.5-15 → 3.5.5-17

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 (29) hide show
  1. package/build/dev-server.js +7 -10
  2. package/package.json +1 -1
  3. package/src/components/android/AppCheckTakePic.vue +168 -168
  4. package/src/components/android/Process/AppServiceControl.vue +1755 -1755
  5. package/src/components/product/PcZhihuanManagement.vue +160 -160
  6. package/src/components/product/Print/BuildOrder/buildOrderList.vue +339 -339
  7. package/src/components/product/Process/Processes/selectApply.vue +251 -251
  8. package/src/components/product/Process/Processes/selectBcakApply.vue +250 -250
  9. package/src/filiale/fugou/android/AppAddMaterialScience.vue +444 -444
  10. package/src/filiale/fugou/android/AppAddReplacement.vue +341 -341
  11. package/src/filiale/fugou/android/AppChargeManagement.vue +739 -739
  12. package/src/filiale/fugou/android/AppDevicesManagement.vue +521 -521
  13. package/src/filiale/fugou/android/AppInstallationDetails.vue +542 -542
  14. package/src/filiale/fugou/pc/AddReplacement.vue +340 -340
  15. package/src/filiale/fugou/pc/ApplyChargeList.vue +480 -480
  16. package/src/filiale/fugou/pc/StopApplyList.vue +291 -291
  17. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -481
  18. package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -216
  19. package/src/filiale/fugou/pc/chargeReport.vue +143 -143
  20. package/src/filiale/fugou/pc.js +18 -18
  21. package/src/filiale/qianneng/pc/Applydetail.vue +417 -417
  22. package/src/filiale/yangchunboneng/pc/ApplyChargeList.vue +644 -617
  23. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +577 -547
  24. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +2112 -2112
  25. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +684 -683
  26. package/src/main.js +4 -3
  27. package/src/test/SessionTestServlet.java +0 -69
  28. package/webapp/WEB-INF/web.xml +0 -52
  29. package/webapp/session-test.jsp +0 -59
@@ -6,15 +6,12 @@ var proxyMiddleware = require('http-proxy-middleware')
6
6
  var app = express()
7
7
  var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
- // 测试
10
- var ldap = 'http://61.163.123.47:31785'
11
- var applyinstall = 'http://61.163.123.47:31785'
9
+ // var ldap = 'http://121.36.79.201:8400'
10
+ // var applyinstall = 'http://121.36.79.201:8400'
11
+ var ldap = 'http://192.168.50.93:31986/'
12
+ var applyinstall = 'http://192.168.50.93:31986/'
12
13
 
13
14
  var proxyTable = {
14
- '/api': {
15
- target: ldap,
16
- changeOrigin: true
17
- },
18
15
  '/rs/logic/getSaleInitData': {
19
16
  target: ldap,
20
17
  changeOrigin: true
@@ -53,7 +50,7 @@ var proxyTable = {
53
50
  changeOrigin: true
54
51
  },
55
52
  '/rs/logic/getInitData': {
56
- target: ldap ? ldap :applyinstall,
53
+ target: ldap?ldap:applyinstall,
57
54
  changeOrigin: true
58
55
  },
59
56
  '/rs/logic/getLogin': {
@@ -127,10 +124,10 @@ app.use(hotMiddleware)
127
124
  // serve pure static assets
128
125
  app.use('/static', express.static('./static'))
129
126
 
130
- module.exports = app.listen(31785, function (err) {
127
+ module.exports = app.listen(8300, function (err) {
131
128
  if (err) {
132
129
  console.log(err)
133
130
  return
134
131
  }
135
- console.log('Listening at http://localhost:31785')
132
+ console.log('Listening at http://localhost:8300')
136
133
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.5.5-15",
3
+ "version": "3.5.5-17",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,168 +1,168 @@
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="$androidUtil.getProxyUrl()+'/rs/image/file/'+file.f_filename" :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
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
11
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic1(type)">相册</button>
12
- </div>
13
- </div>
14
- </template>
15
-
16
- <script>
17
- import {HttpResetClass} from 'vue-client'
18
- import {guid, toStandardTimeString} from '../Util'
19
- import Vue from 'vue'
20
- export default {
21
- title: '附件',
22
- props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic','flag'],
23
- data () {
24
- return {
25
- fileList: []
26
- }
27
- },
28
- ready () {
29
- this.getFiles()
30
- },
31
- methods: {
32
- async getFiles () {
33
- console.log('----------------开始查询图片----------------')
34
- this.fileList = []
35
-
36
- let http = new HttpResetClass()
37
-
38
- let data = {
39
- tablename: 't_files',
40
- condition: `f_blobid = '${this.blobid}' and fremarks='${this.flag}' order by f_uploaddate desc `
41
- }
42
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
43
- // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
44
- warnMsg: null,
45
- resolveMsg: null
46
- })
47
-
48
- for (var i = 0; i < res.data.length; i++) {
49
- console.log('-----------地址----------------')
50
- console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
51
- res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
52
- }
53
-
54
- this.fileList = res.data
55
- },
56
- delfile (file, index) {
57
- this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
58
- this.$dispatch("delResid", file.id)
59
- this.getFiles()
60
- })
61
- },
62
- cameraCallBack (fileName, fileUrl) {
63
- console.log('-----------cameraCallBack-----------------')
64
- let data = {
65
- blodid: HostApp.__this__.blobid,
66
- type: HostApp.__this__.type,
67
- defname: HostApp.__this__.defname,
68
- username: Vue.user.name,
69
- fremarks: this.flag,
70
- fileName: fileName,
71
- fileUrl: fileUrl
72
- }
73
- console.log('-----------bzLogic-----------------')
74
- let res=HostApp.bzLogic({
75
- 'logic': 'appFileUpload',
76
- 'data': data
77
- })
78
- console.log('----------------开始回调查询-------------------')
79
- HostApp.__this__.getFiles()
80
- console.log('----------------查询回调结束-------------------')
81
- HostApp.__callback__ = null
82
- HostApp.__this__ = null
83
- },
84
- takePic (title) {
85
- // 拍照成功回调
86
- HostApp.__callback__ = this.cameraCallBack
87
- HostApp.__this__ = this
88
- let fileName = guid() + '.jpg'
89
- // 打开相机
90
- HostApp._open_a_page({
91
- type: 'boomerang',
92
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
93
- param: {
94
- file: fileName,
95
- requestCode: 200,
96
- callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
97
- watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
98
- }
99
- })
100
- },
101
- cameraCallBack1 (fileName, fileUrl) {
102
- if(fileUrl instanceof Array){
103
- fileUrl.forEach((row)=>{
104
- console.log('照片名字',row.match(/[^\/]+$/)[0])
105
- let data = {
106
- blodid: HostApp.__this__.blobid,
107
- type: HostApp.__this__.type,
108
- defname: HostApp.__this__.defname,
109
- username: Vue.user.name,
110
- fremarks: this.flag,
111
- fileName: row.match(/[^\/]+$/)[0],
112
- fileUrl: row
113
- }
114
- console.log('-----------bzLogic-----------------')
115
- let res=HostApp.bzLogic({
116
- 'logic': 'appFileUpload',
117
- 'data': data
118
- })
119
- })
120
- HostApp.__this__.getFiles()
121
- HostApp.__callback__ = null
122
- HostApp.__this__ = null
123
- }
124
- },
125
- takePic1(title) {
126
- HostApp.__callback__ = this.cameraCallBack1
127
- HostApp.__this__ = this
128
- let idx = 'aofeng'
129
- let fileName = guid() + '.jpg'
130
- HostApp._open_a_page({
131
- type: 'boomerang',
132
- page: 'com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity',
133
- param: {
134
- file: fileName,
135
- requestCode: 200,
136
- callback: 'javascript:HostApp.__callback__("' + fileName + '", %s);',
137
- watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
138
- }
139
- })
140
- },
141
-
142
- },
143
- computed: {
144
- typeList () {
145
- if (this.typelabel) {
146
- return this.$appdata.getParam(this.typelabel)
147
- }
148
- return this.$appdata.getParam('使用类型')
149
- }
150
- },
151
- events: {
152
- }
153
- }
154
- </script>
155
-
156
- <style lang="less">
157
- .fileType {
158
- float: left;
159
- .select-style {
160
- background: #f8f8f8;
161
- border: 0px;
162
- }
163
- input {
164
- border-left: none;
165
- width: 100%;
166
- }
167
- }
168
- </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="$androidUtil.getProxyUrl()+'/rs/image/file/'+file.f_filename" :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
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
11
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic1(type)">相册</button>
12
+ </div>
13
+ </div>
14
+ </template>
15
+
16
+ <script>
17
+ import {HttpResetClass} from 'vue-client'
18
+ import {guid, toStandardTimeString} from '../Util'
19
+ import Vue from 'vue'
20
+ export default {
21
+ title: '附件',
22
+ props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic','flag'],
23
+ data () {
24
+ return {
25
+ fileList: []
26
+ }
27
+ },
28
+ ready () {
29
+ this.getFiles()
30
+ },
31
+ methods: {
32
+ async getFiles () {
33
+ console.log('----------------开始查询图片----------------')
34
+ this.fileList = []
35
+
36
+ let http = new HttpResetClass()
37
+
38
+ let data = {
39
+ tablename: 't_files',
40
+ condition: `f_blobid = '${this.blobid}' and fremarks='${this.flag}' order by f_uploaddate desc `
41
+ }
42
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
43
+ // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
44
+ warnMsg: null,
45
+ resolveMsg: null
46
+ })
47
+
48
+ for (var i = 0; i < res.data.length; i++) {
49
+ console.log('-----------地址----------------')
50
+ console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
51
+ res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
52
+ }
53
+
54
+ this.fileList = res.data
55
+ },
56
+ delfile (file, index) {
57
+ this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
58
+ this.$dispatch("delResid", file.id)
59
+ this.getFiles()
60
+ })
61
+ },
62
+ cameraCallBack (fileName, fileUrl) {
63
+ console.log('-----------cameraCallBack-----------------')
64
+ let data = {
65
+ blodid: HostApp.__this__.blobid,
66
+ type: HostApp.__this__.type,
67
+ defname: HostApp.__this__.defname,
68
+ username: Vue.user.name,
69
+ fremarks: this.flag,
70
+ fileName: fileName,
71
+ fileUrl: fileUrl
72
+ }
73
+ console.log('-----------bzLogic-----------------')
74
+ let res=HostApp.bzLogic({
75
+ 'logic': 'appFileUpload',
76
+ 'data': data
77
+ })
78
+ console.log('----------------开始回调查询-------------------')
79
+ HostApp.__this__.getFiles()
80
+ console.log('----------------查询回调结束-------------------')
81
+ HostApp.__callback__ = null
82
+ HostApp.__this__ = null
83
+ },
84
+ takePic (title) {
85
+ // 拍照成功回调
86
+ HostApp.__callback__ = this.cameraCallBack
87
+ HostApp.__this__ = this
88
+ let fileName = guid() + '.jpg'
89
+ // 打开相机
90
+ HostApp._open_a_page({
91
+ type: 'boomerang',
92
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
93
+ param: {
94
+ file: fileName,
95
+ requestCode: 200,
96
+ callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
97
+ watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
98
+ }
99
+ })
100
+ },
101
+ cameraCallBack1 (fileName, fileUrl) {
102
+ if(fileUrl instanceof Array){
103
+ fileUrl.forEach((row)=>{
104
+ console.log('照片名字',row.match(/[^\/]+$/)[0])
105
+ let data = {
106
+ blodid: HostApp.__this__.blobid,
107
+ type: HostApp.__this__.type,
108
+ defname: HostApp.__this__.defname,
109
+ username: Vue.user.name,
110
+ fremarks: this.flag,
111
+ fileName: row.match(/[^\/]+$/)[0],
112
+ fileUrl: row
113
+ }
114
+ console.log('-----------bzLogic-----------------')
115
+ let res=HostApp.bzLogic({
116
+ 'logic': 'appFileUpload',
117
+ 'data': data
118
+ })
119
+ })
120
+ HostApp.__this__.getFiles()
121
+ HostApp.__callback__ = null
122
+ HostApp.__this__ = null
123
+ }
124
+ },
125
+ takePic1(title) {
126
+ HostApp.__callback__ = this.cameraCallBack1
127
+ HostApp.__this__ = this
128
+ let idx = 'aofeng'
129
+ let fileName = guid() + '.jpg'
130
+ HostApp._open_a_page({
131
+ type: 'boomerang',
132
+ page: 'com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity',
133
+ param: {
134
+ file: fileName,
135
+ requestCode: 200,
136
+ callback: 'javascript:HostApp.__callback__("' + fileName + '", %s);',
137
+ watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
138
+ }
139
+ })
140
+ },
141
+
142
+ },
143
+ computed: {
144
+ typeList () {
145
+ if (this.typelabel) {
146
+ return this.$appdata.getParam(this.typelabel)
147
+ }
148
+ return this.$appdata.getParam('使用类型')
149
+ }
150
+ },
151
+ events: {
152
+ }
153
+ }
154
+ </script>
155
+
156
+ <style lang="less">
157
+ .fileType {
158
+ float: left;
159
+ .select-style {
160
+ background: #f8f8f8;
161
+ border: 0px;
162
+ }
163
+ input {
164
+ border-left: none;
165
+ width: 100%;
166
+ }
167
+ }
168
+ </style>