apply-clients 3.5.4-74 → 3.5.4-76

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 (36) hide show
  1. package/build/dev-server.js +10 -7
  2. package/package.json +1 -1
  3. package/src/apply.js +137 -137
  4. package/src/components/android/AppCheckTakePic.vue +168 -168
  5. package/src/components/android/Process/AppServiceControl.vue +1755 -1755
  6. package/src/components/product/PcZhihuanManagement.vue +160 -160
  7. package/src/components/product/Supervisory/SupervisoryControl.vue +141 -141
  8. package/src/components/product/Supervisory/SupervisoryList.vue +452 -452
  9. package/src/filiale/fugou/android/AppAddMaterialScience.vue +448 -442
  10. package/src/filiale/fugou/android/AppAddReplacement.vue +341 -0
  11. package/src/filiale/fugou/android/AppServiceControl.vue +1843 -1827
  12. package/src/filiale/fugou/android/AppZhihuanManagement.vue +191 -191
  13. package/src/filiale/fugou/android.js +15 -14
  14. package/src/filiale/fugou/pc/AddReplacement.vue +340 -0
  15. package/src/filiale/fugou/pc/InstallationDetails.vue +646 -647
  16. package/src/filiale/fugou/pc/ServiceControl.vue +1704 -1702
  17. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -482
  18. package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -0
  19. package/src/filiale/fugou/pc.js +12 -10
  20. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +518 -518
  21. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1087 -1087
  22. package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1524 -1524
  23. package/src/filiale/yangchunboneng/android/AppUpload.vue +205 -205
  24. package/src/filiale/yangchunboneng/android/MaterIialOne.vue +156 -156
  25. package/src/filiale/yangchunboneng/android.js +20 -20
  26. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -392
  27. package/src/filiale/yangchunboneng/pc/ExplorationUser.vue +191 -191
  28. package/src/filiale/yangchunboneng/pc/InstallInfoSelect.vue +365 -365
  29. package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +142 -142
  30. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +590 -590
  31. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +628 -628
  32. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -902
  33. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -901
  34. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1117 -1117
  35. package/src/filiale/yangchunboneng/pc.js +24 -24
  36. package/src/main.js +1 -2
@@ -1,205 +1,205 @@
1
- <template>
2
- <div class="panel">
3
- <div class="panel-body panel-self" style="background-color: #F8F8F8;">
4
- <div class="row text-right form-group" >
5
- <v-select
6
- class="fileType"
7
- placeholder="请选择使用类型"
8
- :search="false"
9
- close-on-select
10
- value-single
11
- :options="typeList"
12
- v-model="type"
13
- :value.sync="type"
14
- ></v-select>
15
- <v-select
16
- class="fileType"
17
- placeholder="请选择上传节点"
18
- :search="false"
19
- close-on-select
20
- value-single
21
- :options="defnames"
22
- v-model="defname"
23
- :value.sync="defname"
24
- ></v-select>
25
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="getFiles">搜索</button>
26
- </div>
27
- <div style="overflow: scroll;display: flex;flex-wrap: wrap;">
28
- <div class=" showData" v-for="(index,file) in fileList" >
29
- <img-self
30
- v-if="file.f_filetype=='jpg'|| file.f_filetype =='png' || file.f_filetype == 'gif' || file.f_filetype == 'bmp'"
31
- :src="file.f_downloadURL" :width="120" :height="170"></img-self>
32
- <img style="width: -webkit-fill-available" v-if="file.f_filetype === 'pdf'" src="../../../components/image/pdf.jpg" alt="" :width="120" :height="170"/>
33
- <img style="width: -webkit-fill-available" v-if="file.f_filetype === 'xls'||file.f_filetype === 'xlsx'" src="../../../components/image/excel.jpg" alt="" :width="120" :height="170"/>
34
- <img style="width: -webkit-fill-available" v-if="file.f_filetype === 'doc'||file.f_filetype === 'docx'" src="../../../components/image/doc.jpg" alt="" :width="120" :height="170"/>
35
- <img style="width: -webkit-fill-available" v-if="file.f_filetype === 'dwg'" src="../../../components/image/dwg.jpg" alt="" :width="120" :height="170"/>
36
- <img style="width: -webkit-fill-available" v-if="file.f_filetype === 'dxf'" src="../../../components/image/dxf.png" alt="" :width="120" :height="170"/>
37
- <img v-if="isdelete" src="../../../../src/assets/删除.png" style="width: 15px;" @click.prevent="delfile(file, index)">
38
- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
39
- <img v-if="isdelete" src="../../../../src/assets/下载.png" style="width: 15px;" @click.prevent="dowloadfile(file, index)">
40
- <p :title="row.f_uploaddate" class="clears"><strong>上传时间:</strong><span>{{ file.f_uploaddate }}</span></p>
41
- <p :title="row.fusetype" class="clears"><strong>使用类型:</strong><span>{{ file.fusetype }}</span></p>
42
- <p :title="row.defname" class="clears"><strong>上传节点:</strong><span>{{ file.defname }}</span></p>
43
- </div>
44
- </div>
45
- </div>
46
- <modal v-if="showModal" :show.sync="showModal" v-ref:modal :large="true"
47
- :backdrop="false">
48
- <header slot="modal-header" class="modal-header">
49
- <button type="button" class="close" @click="closeM"><span>&times;</span></button>
50
- <h4 class="modal-title" style="color: red">请复制链接到浏览器下载</h4>
51
- </header>
52
- <article slot="modal-body" class="modal-body clearfix">
53
- <span>{{linke}}</span>
54
- </article>
55
- <footer slot="modal-footer" class="modal-footer">
56
- <template >
57
- <button type="button" class="btn btn-primary" @click="closeM">关闭</button>
58
- </template>
59
- </footer>
60
- </modal>
61
- </div>
62
- </template>
63
-
64
- <script>
65
- import {HttpResetClass} from 'vue-client'
66
- import {guid, toStandardTimeString} from '../../../components/Util'
67
- import Vue from 'vue'
68
- export default {
69
- title: '附件',
70
- props: ['blobid', 'isdelete','pblobid', 'defname'],
71
- data () {
72
- return {
73
- fileList: [],
74
- type:'',
75
- defname:'',
76
- linke:'',
77
- showModal: false,
78
- }
79
- },
80
- ready () {
81
- this.getFiles()
82
- },
83
- methods: {
84
- closeM(){
85
- this. showModal=false
86
- this.linke =''
87
- },
88
- dowloadfile(file, index){
89
- this.showModal = true
90
- this.linke = file.f_downloadURL
91
- },
92
- //查询父工程附件
93
- async pgetFiles () {
94
- if(this.pblobid==''||this.pblobid==null){
95
- return
96
- }
97
- let http = new HttpResetClass()
98
- let data = {
99
- tablename: 't_files',
100
- condition: `f_blobid = '${this.pblobid}' `
101
- }
102
- if (this.type){
103
- data.condition += `and fusetype = '${this.type}'`
104
- }
105
- if (this.defname){
106
- data.condition += `and defname = '${this.defname}'`
107
- }
108
- data.condition += ` order by f_uploaddate desc `
109
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
110
- // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
111
- warnMsg: null,
112
- resolveMsg: null
113
- })
114
-
115
- for (var i = 0; i < res.data.length; i++) {
116
- console.log('-----------地址----------------')
117
- console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
118
- res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
119
- this.fileList.push(res.data[i])
120
- }
121
- },
122
- async getFiles () {
123
- console.log('----------------开始查询图片----------------')
124
- this.fileList = []
125
-
126
- let http = new HttpResetClass()
127
-
128
- let data = {
129
- tablename: 't_files',
130
- condition: `f_blobid = '${this.blobid}'`
131
- }
132
- if (this.type){
133
- data.condition += `and fusetype = '${this.type}'`
134
- }
135
- if (this.defname){
136
- data.condition += `and defname = '${this.defname}'`
137
- }
138
- data.condition += ` order by f_uploaddate desc `
139
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
140
- // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
141
- warnMsg: null,
142
- resolveMsg: null
143
- })
144
-
145
- for (var i = 0; i < res.data.length; i++) {
146
- console.log('-----------地址----------------')
147
- console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
148
- res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
149
- }
150
-
151
- this.fileList = res.data
152
- this.pgetFiles()
153
- },
154
- delfile (file, index) {
155
- if (this.defname !== file.defname) {
156
- this.$showMessage('当前环节和附件上传节点不一致,无法删除')
157
- return
158
- }
159
- this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
160
- this.$dispatch("delResid", file.id)
161
- this.getFiles()
162
- })
163
- }
164
- },
165
- computed: {
166
- typeList () {
167
- if (this.typelabel) {
168
- return this.$appdata.getParam(this.typelabel)
169
- }
170
- return this.$appdata.getParam('报建-使用类型')
171
- },
172
- defnames () {
173
- return this.$appdata.getParam('报建节点')
174
- }
175
- },
176
- events: {
177
- }
178
- }
179
- </script>
180
-
181
- <style lang="less">
182
- .clears {
183
- margin: 0;
184
- font-size: 10px;
185
- text-overflow: ellipsis;
186
- white-space: nowrap;
187
- }
188
- .showData {
189
- padding: 15px 10px 0px 10px;
190
- box-sizing: border-box;
191
- width: 50%;
192
- font-family: "微软雅黑";
193
- }
194
- .fileType {
195
- float: left;
196
- .select-style {
197
- background: #f8f8f8;
198
- border: 0px;
199
- }
200
- input {
201
- border-left: none;
202
- width: 100%;
203
- }
204
- }
205
- </style>
1
+ <template>
2
+ <div class="panel">
3
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;">
4
+ <div class="row text-right form-group" >
5
+ <v-select
6
+ class="fileType"
7
+ placeholder="请选择使用类型"
8
+ :search="false"
9
+ close-on-select
10
+ value-single
11
+ :options="typeList"
12
+ v-model="type"
13
+ :value.sync="type"
14
+ ></v-select>
15
+ <v-select
16
+ class="fileType"
17
+ placeholder="请选择上传节点"
18
+ :search="false"
19
+ close-on-select
20
+ value-single
21
+ :options="defnames"
22
+ v-model="defname"
23
+ :value.sync="defname"
24
+ ></v-select>
25
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="getFiles">搜索</button>
26
+ </div>
27
+ <div style="overflow: scroll;display: flex;flex-wrap: wrap;">
28
+ <div class=" showData" v-for="(index,file) in fileList" >
29
+ <img-self
30
+ v-if="file.f_filetype=='jpg'|| file.f_filetype =='png' || file.f_filetype == 'gif' || file.f_filetype == 'bmp'"
31
+ :src="file.f_downloadURL" :width="120" :height="170"></img-self>
32
+ <img style="width: -webkit-fill-available" v-if="file.f_filetype === 'pdf'" src="../../../components/image/pdf.jpg" alt="" :width="120" :height="170"/>
33
+ <img style="width: -webkit-fill-available" v-if="file.f_filetype === 'xls'||file.f_filetype === 'xlsx'" src="../../../components/image/excel.jpg" alt="" :width="120" :height="170"/>
34
+ <img style="width: -webkit-fill-available" v-if="file.f_filetype === 'doc'||file.f_filetype === 'docx'" src="../../../components/image/doc.jpg" alt="" :width="120" :height="170"/>
35
+ <img style="width: -webkit-fill-available" v-if="file.f_filetype === 'dwg'" src="../../../components/image/dwg.jpg" alt="" :width="120" :height="170"/>
36
+ <img style="width: -webkit-fill-available" v-if="file.f_filetype === 'dxf'" src="../../../components/image/dxf.png" alt="" :width="120" :height="170"/>
37
+ <img v-if="isdelete" src="../../../../src/assets/删除.png" style="width: 15px;" @click.prevent="delfile(file, index)">
38
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
39
+ <img v-if="isdelete" src="../../../../src/assets/下载.png" style="width: 15px;" @click.prevent="dowloadfile(file, index)">
40
+ <p :title="row.f_uploaddate" class="clears"><strong>上传时间:</strong><span>{{ file.f_uploaddate }}</span></p>
41
+ <p :title="row.fusetype" class="clears"><strong>使用类型:</strong><span>{{ file.fusetype }}</span></p>
42
+ <p :title="row.defname" class="clears"><strong>上传节点:</strong><span>{{ file.defname }}</span></p>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ <modal v-if="showModal" :show.sync="showModal" v-ref:modal :large="true"
47
+ :backdrop="false">
48
+ <header slot="modal-header" class="modal-header">
49
+ <button type="button" class="close" @click="closeM"><span>&times;</span></button>
50
+ <h4 class="modal-title" style="color: red">请复制链接到浏览器下载</h4>
51
+ </header>
52
+ <article slot="modal-body" class="modal-body clearfix">
53
+ <span>{{linke}}</span>
54
+ </article>
55
+ <footer slot="modal-footer" class="modal-footer">
56
+ <template >
57
+ <button type="button" class="btn btn-primary" @click="closeM">关闭</button>
58
+ </template>
59
+ </footer>
60
+ </modal>
61
+ </div>
62
+ </template>
63
+
64
+ <script>
65
+ import {HttpResetClass} from 'vue-client'
66
+ import {guid, toStandardTimeString} from '../../../components/Util'
67
+ import Vue from 'vue'
68
+ export default {
69
+ title: '附件',
70
+ props: ['blobid', 'isdelete','pblobid', 'defname'],
71
+ data () {
72
+ return {
73
+ fileList: [],
74
+ type:'',
75
+ defname:'',
76
+ linke:'',
77
+ showModal: false,
78
+ }
79
+ },
80
+ ready () {
81
+ this.getFiles()
82
+ },
83
+ methods: {
84
+ closeM(){
85
+ this. showModal=false
86
+ this.linke =''
87
+ },
88
+ dowloadfile(file, index){
89
+ this.showModal = true
90
+ this.linke = file.f_downloadURL
91
+ },
92
+ //查询父工程附件
93
+ async pgetFiles () {
94
+ if(this.pblobid==''||this.pblobid==null){
95
+ return
96
+ }
97
+ let http = new HttpResetClass()
98
+ let data = {
99
+ tablename: 't_files',
100
+ condition: `f_blobid = '${this.pblobid}' `
101
+ }
102
+ if (this.type){
103
+ data.condition += `and fusetype = '${this.type}'`
104
+ }
105
+ if (this.defname){
106
+ data.condition += `and defname = '${this.defname}'`
107
+ }
108
+ data.condition += ` order by f_uploaddate desc `
109
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
110
+ // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
111
+ warnMsg: null,
112
+ resolveMsg: null
113
+ })
114
+
115
+ for (var i = 0; i < res.data.length; i++) {
116
+ console.log('-----------地址----------------')
117
+ console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
118
+ res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
119
+ this.fileList.push(res.data[i])
120
+ }
121
+ },
122
+ async getFiles () {
123
+ console.log('----------------开始查询图片----------------')
124
+ this.fileList = []
125
+
126
+ let http = new HttpResetClass()
127
+
128
+ let data = {
129
+ tablename: 't_files',
130
+ condition: `f_blobid = '${this.blobid}'`
131
+ }
132
+ if (this.type){
133
+ data.condition += `and fusetype = '${this.type}'`
134
+ }
135
+ if (this.defname){
136
+ data.condition += `and defname = '${this.defname}'`
137
+ }
138
+ data.condition += ` order by f_uploaddate desc `
139
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data: data}, {
140
+ // let res = await http.load('POST', `rs/sql/apply_singleTable`, {data: data}, {
141
+ warnMsg: null,
142
+ resolveMsg: null
143
+ })
144
+
145
+ for (var i = 0; i < res.data.length; i++) {
146
+ console.log('-----------地址----------------')
147
+ console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
148
+ res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
149
+ }
150
+
151
+ this.fileList = res.data
152
+ this.pgetFiles()
153
+ },
154
+ delfile (file, index) {
155
+ if (this.defname !== file.defname) {
156
+ this.$showMessage('当前环节和附件上传节点不一致,无法删除')
157
+ return
158
+ }
159
+ this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
160
+ this.$dispatch("delResid", file.id)
161
+ this.getFiles()
162
+ })
163
+ }
164
+ },
165
+ computed: {
166
+ typeList () {
167
+ if (this.typelabel) {
168
+ return this.$appdata.getParam(this.typelabel)
169
+ }
170
+ return this.$appdata.getParam('报建-使用类型')
171
+ },
172
+ defnames () {
173
+ return this.$appdata.getParam('报建节点')
174
+ }
175
+ },
176
+ events: {
177
+ }
178
+ }
179
+ </script>
180
+
181
+ <style lang="less">
182
+ .clears {
183
+ margin: 0;
184
+ font-size: 10px;
185
+ text-overflow: ellipsis;
186
+ white-space: nowrap;
187
+ }
188
+ .showData {
189
+ padding: 15px 10px 0px 10px;
190
+ box-sizing: border-box;
191
+ width: 50%;
192
+ font-family: "微软雅黑";
193
+ }
194
+ .fileType {
195
+ float: left;
196
+ .select-style {
197
+ background: #f8f8f8;
198
+ border: 0px;
199
+ }
200
+ input {
201
+ border-left: none;
202
+ width: 100%;
203
+ }
204
+ }
205
+ </style>