apply-clients 3.4.13 → 3.4.15

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 (24) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/AndroidApp.vue +18 -18
  4. package/src/android.js +21 -21
  5. package/src/applyAndroid.js +53 -46
  6. package/src/components/android/AppSign.vue +1 -1
  7. package/src/components/product/Process/Service/ServiceControl.vue +1 -0
  8. package/src/filiale/guangxi/android/Process/AppExplorationUser.vue +503 -0
  9. package/src/filiale/guangxi/android/Process/AppServiceControl.vue +1708 -0
  10. package/src/filiale/guangxi/android/Process/Processes/AppAddMaterialScience.vue +457 -0
  11. package/src/filiale/guangxi/android/Process/Processes/AppBuildSign.vue +46 -0
  12. package/src/filiale/guangxi/android/Process/Processes/AppChargeManagement.vue +637 -0
  13. package/src/filiale/guangxi/android/Process/Processes/AppDevicesManagement.vue +519 -0
  14. package/src/filiale/guangxi/android/Process/Processes/AppInstallationDetails.vue +482 -0
  15. package/src/filiale/guangxi/android/Process/Processes/AppServiceView.vue +766 -0
  16. package/src/filiale/guangxi/android/Process/Processes/AppSupplementalAgreement.vue +298 -0
  17. package/src/filiale/guangxi/android/Process/Processes/selectApply.vue +250 -0
  18. package/src/filiale/guangxi/android/Process/Processes/selectUserinfo.vue +182 -0
  19. package/src/filiale/guangxi/android.js +6 -14
  20. package/src/filiale/guangxi/pc/Process/Service/ServiceControl.vue +23 -1
  21. package/src/filiale/guangxi/pc/Process/Service/SupervisoryServiceControl.vue +7 -0
  22. package/src/filiale/guangxi/pc/Process/Service/addMaterialScience.vue +434 -0
  23. package/src/filiale/guangxi/pc.js +3 -1
  24. package/src/main.js +4 -4
@@ -0,0 +1,457 @@
1
+ <template>
2
+ <div>
3
+ <data-grid :model="onetomany" class="list_area table_sy">
4
+ <template partial='head'>
5
+ <tr>
6
+ <th class="textNoLineBreak">序号</th>
7
+ <th class="textNoLineBreak">材料名称</th>
8
+ <th class="textNoLineBreak">材料型号</th>
9
+ <th class="textNoLineBreak">材料单位</th>
10
+ <th class="textNoLineBreak">材料数量</th>
11
+ <th class="textNoLineBreak">材料编号</th>
12
+ <th class="textNoLineBreak">材料标识</th>
13
+ <th class="textNoLineBreak">
14
+ <button class="button_new button_spacing" type="button" @click="$parent.$parent.openMaterialModal()">添加
15
+ </button>
16
+ </th>
17
+ </tr>
18
+ </template>
19
+ <template partial='body'>
20
+ <tr>
21
+ <td style="text-align: center;">
22
+ <nobr>{{$index+1}}</nobr>
23
+ </td>
24
+ <td style="text-align: center;">
25
+ <nobr>{{row.f_material_name}}</nobr>
26
+ </td>
27
+ <td style="text-align: center;">
28
+ <nobr>{{row.f_material_style}}</nobr>
29
+ </td>
30
+ <td style="text-align: center;">
31
+ <nobr>{{row.f_material_unit}}</nobr>
32
+ </td>
33
+ <td style="text-align: center;">
34
+ <nobr>{{row.f_material_number}}</nobr>
35
+ </td>
36
+ <td style="text-align: center;">
37
+ <nobr>{{row.f_bjq_sid}}</nobr>
38
+ </td>
39
+ <td style="text-align: center;">
40
+ <nobr>{{row.f_material_code}}</nobr>
41
+ </td>
42
+ <td style="text-align: center;">
43
+ <button type="button" class="button_search button_spacing"
44
+ @click="$parent.$parent.updateMaterial($index,row)">修改
45
+ </button>
46
+ <button type="button" class="button_delete button_spacing" @click="$parent.$parent.deleteMaterial(row)">删除
47
+ </button>
48
+ </td>
49
+ </tr>
50
+ </template>
51
+ </data-grid>
52
+ <modal v-if="showMaterialModal" :show.sync="showMaterialModal" v-ref:modal :large="true"
53
+ :backdrop="false" :title="title">
54
+ <header slot="modal-header" class="modal-header">
55
+ <button type="button" class="close" @click="closeMaterials"><span>&times;</span></button>
56
+ <h4 class="modal-title">{{title}}</h4>
57
+ </header>
58
+ <article slot="modal-body" class="modal-body clearfix">
59
+ <div v-for="(i,item) in materials" class="form-group col-sm-12 panel panel-info">
60
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
61
+ <div class="col-sm-6 text-left">材料{{$index+1}}信息</div>
62
+ <div class="col-sm-6 text-right">
63
+ <button
64
+ class="button_delete button_spacing"
65
+ @click.prevent="deleteDevicesinfo(i)"
66
+ v-if="title === '新增'"
67
+ >删除
68
+ </button>
69
+ </div>
70
+ </div>
71
+ <div class="form-group col-sm-6">
72
+ <label class="col-sm-4 control-label">选择材料:</label>
73
+ <div class="col-sm-8">
74
+ <input-select
75
+ class="select select_list"
76
+ :value.sync="item.material"
77
+ v-model="item.material"
78
+ :options="meterialOptions"
79
+ :disable="mark === 1"
80
+ @change="modifyOtherValue(i)"
81
+ :valueSingle="true"></input-select>
82
+ </div>
83
+ </div>
84
+ <div class="form-group col-sm-6" :class="[item.f_material_name ? '' : 'has-error']">
85
+ <label class="col-sm-4 control-label">材料名称:</label>
86
+ <div class="col-sm-8">
87
+ <input class="form-control input_view" style="" type="text"
88
+ placeholder="材料名称"
89
+ v-model="item.f_material_name"
90
+ :value="item.f_material_name"
91
+ />
92
+ </div>
93
+ </div>
94
+ <div class="form-group col-sm-6" :class="[item.f_material_style ? '' : 'has-error']">
95
+ <label class="col-sm-4 control-label">材料型号:</label>
96
+ <div class="col-sm-8">
97
+ <input class="form-control input_view" style="" type="text"
98
+ placeholder="材料型号"
99
+ v-model="item.f_material_style"
100
+ :value="item.f_material_style"
101
+ />
102
+ </div>
103
+ </div>
104
+ <div class="form-group col-sm-6" :class="[item.f_material_unit ? '' : 'has-error']">
105
+ <label class="col-sm-4 control-label">材料单位:</label>
106
+ <div class="col-sm-8">
107
+ <input class="form-control input_view" style="" type="text"
108
+ placeholder="材料单位"
109
+ v-model="item.f_material_unit"
110
+ :value="item.f_material_unit"
111
+ />
112
+ </div>
113
+ </div>
114
+ <div class="form-group col-sm-6" :class="[item.f_material_number ? '' : 'has-error']">
115
+ <label class="col-sm-4 control-label">材料数量:</label>
116
+ <div class="col-sm-8">
117
+ <input class="form-control input_view" style="" type="number"
118
+ placeholder="设备数量"
119
+ v-model="item.f_material_number"
120
+ :value="item.f_material_number"
121
+ />
122
+ </div>
123
+ </div>
124
+ <div class="form-group col-sm-6">
125
+ <label class="col-sm-4 control-label">材料编号:</label>
126
+ <div class="col-sm-8">
127
+ <input class="form-control input_view" style="" type="text"
128
+ placeholder="材料编号"
129
+ v-model="item.f_bjq_sid"
130
+ :value="item.f_bjq_sid"
131
+ />
132
+ </div>
133
+ </div>
134
+ <div class="form-group col-sm-6">
135
+ <label class="col-sm-4 control-label">材料标识:</label>
136
+ <div class="col-sm-8">
137
+ <input class="form-control input_view" style=""
138
+ placeholder="材料标识"
139
+ v-model="item.f_material_code"
140
+ :value.sync="item.f_material_code"
141
+ />
142
+ </div>
143
+ </div>
144
+ <div class="form-group col-sm-6">
145
+ <label class="col-sm-4 control-label"></label>
146
+ <div class="col-sm-8">
147
+
148
+ </div>
149
+ </div>
150
+ <div class="form-group col-sm-6">
151
+ <label class="col-sm-4 control-label"></label>
152
+ <div class="col-sm-8">
153
+
154
+ </div>
155
+ </div>
156
+ <div class="form-group col-sm-6">
157
+ <label class="col-sm-4 control-label"></label>
158
+ <div class="col-sm-8">
159
+
160
+ </div>
161
+ </div>
162
+ <div class="form-group col-sm-6">
163
+ <label class="col-sm-4 control-label"></label>
164
+ <div class="col-sm-8">
165
+
166
+ </div>
167
+ </div>
168
+ <div class="form-group col-sm-6">
169
+ <label class="col-sm-4 control-label"></label>
170
+ <div class="col-sm-8">
171
+
172
+ </div>
173
+ </div>
174
+ <div class="form-group col-sm-6">
175
+ <label class="col-sm-4 control-label"></label>
176
+ <div class="col-sm-8">
177
+
178
+ </div>
179
+ </div>
180
+ <div class="form-group col-sm-6">
181
+ <label class="col-sm-4 control-label"></label>
182
+ <div class="col-sm-8">
183
+
184
+ </div>
185
+ </div>
186
+ <div v-if=" (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建')">
187
+ <app-qrcode-reader :istype = fmaterialname :index = i v-show="isShow[i]"></app-qrcode-reader>
188
+ </div>
189
+ </div>
190
+ </article>
191
+ <footer slot="modal-footer" class="modal-footer">
192
+ <template v-if="mark !== 1">
193
+ <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="pushMaterial()">添加材料</button>
194
+ <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="addMaterial()"
195
+ :disabled="!$v.valid">确认添加
196
+ </button>
197
+ <button type="button" class="btn btn-primary" v-if="title==='修改'" @click="updateConfirm()"
198
+ :disabled="!$v.valid">确认修改
199
+ </button>
200
+ </template>
201
+ </footer>
202
+ </modal>
203
+ </div>
204
+ </template>
205
+
206
+ <script>
207
+ import Vue from 'vue'
208
+ import {HttpResetClass} from 'vue-client'
209
+
210
+ export default {
211
+ name: 'addMaterialScience',
212
+ props: {
213
+ selectdata: {
214
+ type: Object
215
+ }
216
+ },
217
+ data() {
218
+ return {
219
+ onetomany: {
220
+ rows: []
221
+ },
222
+ title: '新增',
223
+ showMaterialModal: false,
224
+ materials: [
225
+ {
226
+ material: '',
227
+ f_material_name: '',
228
+ f_material_style: '',
229
+ f_material_unit: '',
230
+ f_material_number: '',
231
+ f_bjq_sid: '',
232
+ f_material_code: ''
233
+ }
234
+ ],
235
+ meterialOptions: [],
236
+ row: {},
237
+ bjqChecklag:[],
238
+ fmaterialname:{},
239
+ isShow:[false]
240
+ }
241
+ },
242
+ ready() {
243
+ this.getOnetoManyData()
244
+ },
245
+ methods: {
246
+ async getOnetoManyData () {
247
+ let http = new HttpResetClass()
248
+ let data = {
249
+ tablename: `t_material_apply`,
250
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
251
+ }
252
+ let res = await http.load(
253
+ 'POST',
254
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable?aaa=123`,
255
+ {data: data},
256
+ {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
257
+ )
258
+ this.onetomany.rows = res.data
259
+ },
260
+ async openMaterialModal() {
261
+ this.getMateralNames()
262
+ this.title = '新增'
263
+ this.materials = [
264
+ {
265
+ material: '',
266
+ f_material_name: '',
267
+ f_material_style: '',
268
+ f_material_unit: '',
269
+ f_material_number: '',
270
+ f_bjq_sid: '',
271
+ f_material_code: ''
272
+ }
273
+ ],
274
+ this.showMaterialModal = true
275
+ this.isShow = [false]
276
+ },
277
+ deleteDevicesinfo(index) {
278
+ this.materials.splice(index, 1)
279
+ this.isShow.splice(index, 1)
280
+ },
281
+ pushMaterial() {
282
+ this.materials.push({
283
+ material: '',
284
+ f_material_name: '',
285
+ f_material_style: '',
286
+ f_material_unit: '',
287
+ f_material_number: '',
288
+ f_bjq_sid: '',
289
+ f_material_code: ''
290
+ })
291
+ this.isShow.push(false)
292
+ },
293
+ // 获取模态框材料
294
+ async getMateralNames() {
295
+ let data = {
296
+ condition: `1=1`
297
+ }
298
+ let http = new HttpResetClass()
299
+ let res = await http.load(
300
+ 'POST',
301
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/getStockMaterial`,
302
+ {data: data},
303
+ {resolveMsg: null, rejectMsg: '材料查询失败!!!'}
304
+ )
305
+
306
+ this.meterialOptions = res.data.map(item => {
307
+ return {
308
+ 'label': `${item.f_material_name}--${item.f_material_style}`,
309
+ 'value': item
310
+ }
311
+ })
312
+ },
313
+ modifyOtherValue(index) {
314
+ console.log("进来了", index)
315
+ console.log("dddd", this.materials[index].material)
316
+ let material = this.materials[index].material
317
+ this.materials[index].f_material_name = material.f_material_name
318
+ this.materials[index].f_material_style = material.f_material_style
319
+ this.materials[index].f_material_unit = material.f_material_unit
320
+ this.materials[index].f_material_number = material.f_material_number
321
+ this.materials[index].f_material_code = material.f_material_code
322
+ if (material.f_material_name === "报警器-汉威") {
323
+ this.isShow[index] = true
324
+ } else {
325
+ this.isShow[index] = false
326
+ }
327
+ this.isShow.splice(0, 1, this.isShow[0])
328
+ },
329
+ // 新增材料
330
+ async addMaterial() {
331
+ this.title = '新增'
332
+ let data = {
333
+ f_process_id: this.selectdata.f_process_id,
334
+ f_operator_id: Vue.user.id,
335
+ f_operator: Vue.user.name,
336
+ f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
337
+ f_orgid: Vue.user.orgid,
338
+ f_orgname: Vue.user.orgs,
339
+ materials: this.materials
340
+ }
341
+
342
+ //报警器流程 设备编号检验
343
+ await this.bjqCheck()
344
+ if (this.bjqChecklag.length > 0) {
345
+ return
346
+ }
347
+
348
+ let http = new HttpResetClass()
349
+ let res = await http.load(
350
+ 'POST',
351
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/saveMaterials`,
352
+ data
353
+ )
354
+ this.closeMaterials()
355
+ },
356
+ async deleteMaterial(row) {
357
+ debugger
358
+ var show1 = window.confirm('您确定要删除这条记录吗?')
359
+ if(show1 != true){
360
+ this.closeMaterials()
361
+ }else{
362
+ let http = new HttpResetClass()
363
+ let res = await http.load(
364
+ 'POST',
365
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/deleteMaterial`,
366
+ {data: row},
367
+ {resolveMsg: null, rejectMsg: '材料删除失败!!!'}
368
+ )
369
+ this.closeMaterials()
370
+ }
371
+ }
372
+ ,
373
+ async updateMaterial(index, row) {
374
+ this.title = '修改'
375
+ this.row = row
376
+ this.getMateralNames()
377
+ this.materials = [
378
+ {
379
+ material: '',
380
+ f_material_name: row.f_material_name,
381
+ f_material_style: row.f_material_style,
382
+ f_material_unit: row.f_material_unit,
383
+ f_material_number: row.f_material_number,
384
+ f_material_code: row.f_material_code,
385
+ f_bjq_sid: row.f_bjq_sid
386
+ }
387
+ ]
388
+ this.showMaterialModal = true
389
+ },
390
+ async updateConfirm() {
391
+ let data = this.row
392
+ data.f_material_name = this.materials[0].f_material_name
393
+ data.f_material_style = this.materials[0].f_material_style
394
+ data.f_material_unit = this.materials[0].f_material_unit
395
+ data.f_material_number = this.materials[0].f_material_number
396
+ data.f_material_code = this.materials[0].f_material_code
397
+ data.f_bjq_sid = this.materials[0].f_bjq_sid
398
+
399
+ //报警器流程 设备编号检验
400
+ await this.bjqCheck()
401
+ if (this.bjqChecklag.length > 0){
402
+ return
403
+ }
404
+
405
+ let http = new HttpResetClass()
406
+ let res = await http.load(
407
+ 'POST',
408
+ `${this.$androidUtil.getProxyUrl()}/rs/entity/t_material_apply`,
409
+ data
410
+ )
411
+ this.closeMaterials()
412
+ },
413
+ sycronizedCode(index,val){
414
+ console.log("看看:",index,val)
415
+ this.materials[index].f_material_code = val
416
+ },
417
+ closeMaterials() {
418
+ this.getOnetoManyData()
419
+ this.showMaterialModal = false
420
+ },
421
+ async bjqCheck(){
422
+ //报警器设备型号校验
423
+ this.bjqChecklag = [] //初始化
424
+ if (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建'){
425
+ let bjqinfo = {
426
+ f_material_name : "",
427
+ f_bjq_sid: ""
428
+ }
429
+ for (const bjqinfoElement of this.materials) {
430
+ bjqinfo.f_bjq_sid = bjqinfoElement.f_bjq_sid
431
+ bjqinfo.f_material_name = bjqinfoElement.f_material_name
432
+ if (bjqinfo.f_material_name.substr(0,3) === '报警器'){
433
+ let http = new HttpResetClass()
434
+ let res = await http.load(
435
+ 'POST',
436
+ // `/rs/logic/bjqcheck`,
437
+ `${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqcheck`,
438
+ bjqinfo
439
+ )
440
+ if (res.data.code != 200){
441
+ this.bjqChecklag.push(res.data.code)
442
+ //this.$showMessage(res.data.msg)
443
+ Vue.showAlert(res.data.msg, 'danger', 6000)
444
+ return
445
+ }
446
+ }
447
+ }
448
+ }
449
+ }
450
+ }
451
+ }
452
+
453
+ </script>
454
+
455
+ <style scoped>
456
+
457
+ </style>
@@ -0,0 +1,46 @@
1
+ <template>
2
+ <app-sign @sign-success="signSuccess" :file-path="selectdata.f_construction_sign" @sign-clean="signClean"></app-sign>
3
+ </template>
4
+ <script>
5
+ import {getNowDate,isEmpty} from '../../../Util'
6
+ import {HttpResetClass} from 'vue-client'
7
+ import Vue from "vue";
8
+
9
+ export default {
10
+ title: '施工签字',
11
+ props: {
12
+ selectdata: {
13
+ type: Object
14
+ },
15
+ mark: {
16
+ type: Number,
17
+ default: 0
18
+ }
19
+ },
20
+ data () {
21
+ return {
22
+ }
23
+ },
24
+ ready () {
25
+ console.log('===========施工签字================')
26
+ },
27
+ methods: {
28
+ signClean () {
29
+ this.selectdata.f_construction_sign = null
30
+ },
31
+ signSuccess (fileUrl) {
32
+ console.log('==============签字回调==================')
33
+ console.log(fileUrl)
34
+ this.selectdata.f_construction_sign = fileUrl
35
+ }
36
+ },
37
+ events: {
38
+ },
39
+ computed: {
40
+ },
41
+ watch: {
42
+ }
43
+ }
44
+ </script>
45
+ <style scoped lang="less">
46
+ </style>