apply-clients 3.3.2 → 3.3.6

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 (28) hide show
  1. package/package.json +2 -1
  2. package/src/AndroidApp.vue +2 -2
  3. package/src/apply.js +1 -0
  4. package/src/applyAndroid.js +1 -0
  5. package/src/components/android/AppTakePic.vue +143 -139
  6. package/src/components/android/Process/AppExplorationUser.vue +2 -2
  7. package/src/components/android/Process/AppServiceControl.vue +153 -35
  8. package/src/components/android/Process/Processes/AppChargeManagement.vue +468 -0
  9. package/src/components/android/Process/Processes/AppInstallationDetails.vue +5 -2
  10. package/src/components/product/ApplyCharge/ApplyChargeList.vue +32 -14
  11. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -30
  12. package/src/components/product/Function/InstallFunction.vue +1 -1
  13. package/src/components/product/Function/Service/FunctionServiceControl.vue +15 -9
  14. package/src/components/product/Order/OrderApplyList.vue +48 -37
  15. package/src/components/product/Order/OrderMessage.vue +20 -5
  16. package/src/components/product/Process/ExplorationSelect.vue +4 -0
  17. package/src/components/product/Process/ExplorationUser.vue +126 -126
  18. package/src/components/product/Process/Processes/InstallationDetails.vue +100 -83
  19. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +24 -23
  20. package/src/components/product/Process/Processes/chargeManagement.vue +65 -7
  21. package/src/components/product/Process/Processes/printCharge.vue +130 -126
  22. package/src/components/product/Process/Processes/selectApply.vue +5 -1
  23. package/src/components/product/Process/Service/ServiceControl.vue +211 -47
  24. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +127 -23
  25. package/src/components/product/Supervisory/SupervisoryControl.vue +100 -100
  26. package/src/components/product/Supervisory/SupervisoryhCart.vue +121 -107
  27. package/src/components/product/VueUtils/ApplyUpload.vue +262 -261
  28. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.2",
3
+ "version": "3.3.6",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -34,6 +34,7 @@
34
34
  "less-loader": "^2.2.3",
35
35
  "lib-flexible": "^0.3.2",
36
36
  "px2rem-loader": "^0.1.9",
37
+ "qrcodejs2": "0.0.2",
37
38
  "vue": "^1.0.17",
38
39
  "vue-bubble": "^1.0.3"
39
40
  },
@@ -2,8 +2,8 @@
2
2
  <!-- <app-base> -->
3
3
  <div id="android-app">
4
4
  <article>
5
- <!-- <route :comp="{name: 'app-exploration-user'}" name="root"></route>-->
6
- <route :comp="{name: 'app-process-supervisory'}" name="root"></route>
5
+ <route :comp="{name: 'app-exploration-user'}" name="root"></route>
6
+ <!-- <route :comp="{name: 'app-process-supervisory'}" name="root"></route>-->
7
7
  <!-- <route :comp="{name: 'apply-reserve'}" name="root"></route>-->
8
8
  <!-- <route :comp="{name: 'task-graph'}" name="root"></route>-->
9
9
  </article>
package/src/apply.js CHANGED
@@ -74,6 +74,7 @@ export default function (filiale) {
74
74
  Vue.component('back-page', (resolve) => { require(['./components/product/VueUtils/ToolsPage'], resolve) })
75
75
  Vue.component('tree2', (resolve) => { require(['./components/product/VueUtils/Tree'], resolve) })
76
76
  Vue.component('apply-upload', (resolve) => { require(['./components/product/VueUtils/ApplyUpload'], resolve) })
77
+ Vue.component('apply-high-meter', (resolve) => { require(['./components/product/VueUtils/GaoPaiYi/HighMeter'], resolve) })
77
78
 
78
79
  if (filiale) {
79
80
  let filialeComp = require(`./filiale/${filiale}/pc`).specialComp
@@ -21,6 +21,7 @@ export default function (filiale) {
21
21
 
22
22
  Vue.component('app-installation-details', (resolve) => { require(['./components/android/Process/Processes/AppInstallationDetails'], resolve) })
23
23
  Vue.component('app-apply-devices-management', (resolve) => { require(['./components/android/Process/Processes/AppDevicesManagement'], resolve) })
24
+ Vue.component('app-charge-management', (resolve) => { require(['./components/android/Process/Processes/AppChargeManagement'], resolve) })
24
25
 
25
26
  if (filiale) {
26
27
  let filialeComp = require(`./filiale/${filiale}/android`).specialComp
@@ -1,139 +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
- this.fileList = []
46
-
47
- let http = new HttpResetClass()
48
-
49
- let data = {
50
- tablename: 't_files',
51
- condition: `f_blobid = '${this.blobid}' and fusetype = '${this.type}' order by f_uploaddate desc `
52
- }
53
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
54
- // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
55
- warnMsg: null,
56
- resolveMsg: null
57
- })
58
-
59
- for (var i = 0; i < res.data.length; i++) {
60
- console.log('-----------地址----------------')
61
- console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
62
- res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
63
- }
64
-
65
- this.fileList = res.data
66
- },
67
- delfile (file, index) {
68
- this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
69
- this.$dispatch("delResid", file.id)
70
- this.getFiles()
71
- })
72
- },
73
- takePic (title) {
74
- // 拍照成功回调
75
- HostApp.__callback__ = this.cameraCallBack
76
- HostApp.__this__ = this
77
- let fileName = guid() + '.jpg'
78
- // 打开相机
79
- HostApp._open_a_page({
80
- type: 'boomerang',
81
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
82
- param: {
83
- file: fileName,
84
- requestCode: 200,
85
- callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
86
- watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
87
- }
88
- })
89
- },
90
- cameraCallBack (fileName, fileUrl) {
91
- console.log('-----------cameraCallBack-----------------')
92
-
93
- let data = {
94
- blodid: HostApp.__this__.blobid,
95
- type: HostApp.__this__.type,
96
- defname: HostApp.__this__.defname,
97
- username: Vue.user.name,
98
- fileName: fileName,
99
- fileUrl: fileUrl
100
- }
101
-
102
- console.log('-----------bzLogic-----------------')
103
- HostApp.bzLogic({
104
- 'logic': 'appFileUpload',
105
- 'data': data
106
- })
107
-
108
- HostApp.__this__.getFiles()
109
-
110
- HostApp.__callback__ = null
111
- HostApp.__this__ = null
112
- }
113
- },
114
- computed: {
115
- typeList () {
116
- if (this.typelabel) {
117
- return this.$appdata.getParam(this.typelabel)
118
- }
119
- return this.$appdata.getParam('使用类型')
120
- }
121
- },
122
- events: {
123
- }
124
- }
125
- </script>
126
-
127
- <style lang="less">
128
- .fileType {
129
- float: left;
130
- .select-style {
131
- background: #f8f8f8;
132
- border: 0px;
133
- }
134
- input {
135
- border-left: none;
136
- width: 100%;
137
- }
138
- }
139
- </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/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
+ 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>
@@ -162,7 +162,7 @@ export default {
162
162
  data: {
163
163
  id: Vue.user.id,
164
164
  orgid: Vue.user.orgid
165
- // id: '35814',
165
+ // id: '51953',
166
166
  // orgid: '10101'
167
167
  }
168
168
  }),
@@ -218,7 +218,7 @@ export default {
218
218
  },
219
219
  computed: {
220
220
  appDefnames () {
221
- // let list = [{label: '工程施工', value: '工程施工'}, {label: '通气点火', value: '通气点火'}]
221
+ // let list = [{label: '报装缴费', value: '报装缴费'}, {label: '通气点火', value: '通气点火'}]
222
222
  let list = this.$appdata.getParam('手机节点')
223
223
  return `(${list.map(item => `'${item.value}'`).toString()})`
224
224
  }