apply-clients 3.3.110-230 → 3.3.110-233
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.
- package/package.json +1 -1
- package/src/components/android/AppSign.vue +1 -1
- package/src/components/android/AreaSelect/AppQrcodeReader.vue +18 -15
- package/src/components/android/Process/AppServiceControl.vue +4 -4
- package/src/components/android/Process/Processes/AppAddMaterialScience.vue +59 -2
- package/src/components/product/Process/Processes/addMaterialScience.vue +43 -1
- package/src/components/product/Process/Service/ServiceControl.vue +4 -4
package/package.json
CHANGED
|
@@ -95,7 +95,7 @@ export default {
|
|
|
95
95
|
console.log('=========进来===============')
|
|
96
96
|
let data = {
|
|
97
97
|
tablename: 't_files',
|
|
98
|
-
condition: `f_blobid = '${this.blobid}' `
|
|
98
|
+
condition: `f_blobid = '${this.blobid}' and fremarks='报装手机签字文件' `
|
|
99
99
|
}
|
|
100
100
|
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
|
|
101
101
|
// let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
|
|
@@ -15,12 +15,13 @@ export default {
|
|
|
15
15
|
type: Object,
|
|
16
16
|
default: {}
|
|
17
17
|
},
|
|
18
|
+
index: "",
|
|
18
19
|
},
|
|
19
20
|
data() {
|
|
20
21
|
return {
|
|
21
22
|
results: "",
|
|
22
23
|
errors: "",
|
|
23
|
-
isshow:
|
|
24
|
+
isshow:true
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
methods: {
|
|
@@ -29,13 +30,15 @@ export default {
|
|
|
29
30
|
},
|
|
30
31
|
scan() {
|
|
31
32
|
HostApp.__this__ = this
|
|
32
|
-
if (this.istype.f_material_name === '报警器-汉威'){
|
|
33
|
+
// if (this.istype.f_material_name === '报警器-汉威'){
|
|
34
|
+
// HostApp.scanPhoneCode({callback: "javascript:HostApp.__this__.scanCallbackHanWei();"})
|
|
35
|
+
// } else {}
|
|
33
36
|
HostApp.scanPhoneCode({callback: "javascript:HostApp.__this__.scanCallbackHanWei();"})
|
|
34
|
-
} else {}
|
|
35
|
-
|
|
36
37
|
},
|
|
37
38
|
scanCallbackHanWei() {
|
|
39
|
+
console.log("这是扫码输出:",this.index)
|
|
38
40
|
this.results = ""
|
|
41
|
+
|
|
39
42
|
let response = HostApp.getPhoneCode()
|
|
40
43
|
if (response.code == 200) {
|
|
41
44
|
let aray = response.data.split(",")
|
|
@@ -44,7 +47,7 @@ export default {
|
|
|
44
47
|
let tem = (aray[i]).split("=")
|
|
45
48
|
if (tem[0] === "ID"){
|
|
46
49
|
this.results = tem[1].trim().replaceAll("'","").trim()
|
|
47
|
-
this.$parent.$parent.
|
|
50
|
+
this.$parent.$parent.materials[this.index].f_bjq_sid = this.results
|
|
48
51
|
break;
|
|
49
52
|
}
|
|
50
53
|
}
|
|
@@ -55,16 +58,16 @@ export default {
|
|
|
55
58
|
}
|
|
56
59
|
},
|
|
57
60
|
watch: {
|
|
58
|
-
'istype'(){
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
},
|
|
61
|
+
// 'istype'(){
|
|
62
|
+
// // console.log("这是监听值:",this.istype)
|
|
63
|
+
// if (this.istype){
|
|
64
|
+
// if (this.istype.f_material_name === '报警器-汉威'){
|
|
65
|
+
// this.isshow = true
|
|
66
|
+
// } else {
|
|
67
|
+
// this.isshow = false
|
|
68
|
+
// }
|
|
69
|
+
// }
|
|
70
|
+
// },
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
</script>
|
|
@@ -148,10 +148,10 @@ export default {
|
|
|
148
148
|
this.$showMessage('请添加报警器物料信息!!!')
|
|
149
149
|
return
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
if (numOne.length > 1){
|
|
152
|
+
this.$showMessage("暂时支持单个报警器物料安装!!!")
|
|
153
|
+
return
|
|
154
|
+
}
|
|
155
155
|
datatemp.sqvalue = this.show_data.areaData.sqvalue
|
|
156
156
|
|
|
157
157
|
bjqststedata.f_userinfo_code = this.show_data.f_userinfo_code
|
|
@@ -141,7 +141,9 @@
|
|
|
141
141
|
/>
|
|
142
142
|
</div>
|
|
143
143
|
</div>
|
|
144
|
-
|
|
144
|
+
<div v-if=" (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建')">
|
|
145
|
+
<app-qrcode-reader :istype = fmaterialname :index = i v-show="isShow[i]"></app-qrcode-reader>
|
|
146
|
+
</div>
|
|
145
147
|
</div>
|
|
146
148
|
</article>
|
|
147
149
|
<footer slot="modal-footer" class="modal-footer">
|
|
@@ -189,7 +191,10 @@
|
|
|
189
191
|
}
|
|
190
192
|
],
|
|
191
193
|
meterialOptions: [],
|
|
192
|
-
row: {}
|
|
194
|
+
row: {},
|
|
195
|
+
bjqChecklag:[],
|
|
196
|
+
fmaterialname:{},
|
|
197
|
+
isShow:[false]
|
|
193
198
|
}
|
|
194
199
|
},
|
|
195
200
|
ready() {
|
|
@@ -225,9 +230,11 @@
|
|
|
225
230
|
}
|
|
226
231
|
],
|
|
227
232
|
this.showMaterialModal = true
|
|
233
|
+
this.isShow = [false]
|
|
228
234
|
},
|
|
229
235
|
deleteDevicesinfo(index) {
|
|
230
236
|
this.materials.splice(index, 1)
|
|
237
|
+
this.isShow.splice(index, 1)
|
|
231
238
|
},
|
|
232
239
|
pushMaterial() {
|
|
233
240
|
this.materials.push({
|
|
@@ -239,6 +246,7 @@
|
|
|
239
246
|
f_bjq_sid: '',
|
|
240
247
|
f_material_code: ''
|
|
241
248
|
})
|
|
249
|
+
this.isShow.push(false)
|
|
242
250
|
},
|
|
243
251
|
// 获取模态框材料
|
|
244
252
|
async getMateralNames() {
|
|
@@ -269,6 +277,12 @@
|
|
|
269
277
|
this.materials[index].f_material_unit = material.f_material_unit
|
|
270
278
|
this.materials[index].f_material_number = material.f_material_number
|
|
271
279
|
this.materials[index].f_material_code = material.f_material_code
|
|
280
|
+
if (material.f_material_name === "报警器-汉威"){
|
|
281
|
+
this.isShow[index] = true
|
|
282
|
+
}else {
|
|
283
|
+
this.isShow[index] = false
|
|
284
|
+
}
|
|
285
|
+
this.isShow.splice(0,1,this.isShow[0])
|
|
272
286
|
},
|
|
273
287
|
// 新增材料
|
|
274
288
|
async addMaterial() {
|
|
@@ -282,6 +296,13 @@
|
|
|
282
296
|
f_orgname: Vue.user.orgs,
|
|
283
297
|
materials: this.materials
|
|
284
298
|
}
|
|
299
|
+
|
|
300
|
+
//报警器流程 设备编号检验
|
|
301
|
+
await this.bjqCheck()
|
|
302
|
+
if (this.bjqChecklag.length > 0){
|
|
303
|
+
return
|
|
304
|
+
}
|
|
305
|
+
|
|
285
306
|
let http = new HttpResetClass()
|
|
286
307
|
let res = await http.load(
|
|
287
308
|
'POST',
|
|
@@ -329,6 +350,13 @@
|
|
|
329
350
|
data.f_material_number = this.materials[0].f_material_number
|
|
330
351
|
data.f_material_code = this.materials[0].f_material_code
|
|
331
352
|
data.f_bjq_sid = this.materials[0].f_bjq_sid
|
|
353
|
+
|
|
354
|
+
//报警器流程 设备编号检验
|
|
355
|
+
await this.bjqCheck()
|
|
356
|
+
if (this.bjqChecklag.length > 0){
|
|
357
|
+
return
|
|
358
|
+
}
|
|
359
|
+
|
|
332
360
|
let http = new HttpResetClass()
|
|
333
361
|
let res = await http.load(
|
|
334
362
|
'POST',
|
|
@@ -344,6 +372,35 @@
|
|
|
344
372
|
closeMaterials() {
|
|
345
373
|
this.getOnetoManyData()
|
|
346
374
|
this.showMaterialModal = false
|
|
375
|
+
},
|
|
376
|
+
async bjqCheck(){
|
|
377
|
+
//报警器设备型号校验
|
|
378
|
+
this.bjqChecklag = [] //初始化
|
|
379
|
+
if (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建'){
|
|
380
|
+
let bjqinfo = {
|
|
381
|
+
f_material_name : "",
|
|
382
|
+
f_bjq_sid: ""
|
|
383
|
+
}
|
|
384
|
+
for (const bjqinfoElement of this.materials) {
|
|
385
|
+
bjqinfo.f_bjq_sid = bjqinfoElement.f_bjq_sid
|
|
386
|
+
bjqinfo.f_material_name = bjqinfoElement.f_material_name
|
|
387
|
+
if (bjqinfo.f_material_name.substr(0,3) === '报警器'){
|
|
388
|
+
let http = new HttpResetClass()
|
|
389
|
+
let res = await http.load(
|
|
390
|
+
'POST',
|
|
391
|
+
// `/rs/logic/bjqcheck`,
|
|
392
|
+
`${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqcheck`,
|
|
393
|
+
bjqinfo
|
|
394
|
+
)
|
|
395
|
+
if (res.data.code != 200){
|
|
396
|
+
this.bjqChecklag.push(res.data.code)
|
|
397
|
+
//this.$showMessage(res.data.msg)
|
|
398
|
+
Vue.showAlert(res.data.msg, 'danger', 6000)
|
|
399
|
+
return
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
347
404
|
}
|
|
348
405
|
}
|
|
349
406
|
}
|
|
@@ -151,6 +151,7 @@
|
|
|
151
151
|
|
|
152
152
|
<script>
|
|
153
153
|
import {HttpResetClass} from 'vue-client'
|
|
154
|
+
import Vue from "vue";
|
|
154
155
|
export default {
|
|
155
156
|
name: 'addMaterialScience',
|
|
156
157
|
props: {
|
|
@@ -177,7 +178,8 @@
|
|
|
177
178
|
}
|
|
178
179
|
],
|
|
179
180
|
meterialOptions:[],
|
|
180
|
-
row:{}
|
|
181
|
+
row:{},
|
|
182
|
+
bjqChecklag:[]
|
|
181
183
|
}
|
|
182
184
|
},
|
|
183
185
|
ready(){
|
|
@@ -269,6 +271,12 @@
|
|
|
269
271
|
f_orgname: this.$login.f.orgs,
|
|
270
272
|
materials:this.materials
|
|
271
273
|
}
|
|
274
|
+
//报警器流程 设备编号检验
|
|
275
|
+
await this.bjqCheck()
|
|
276
|
+
console.log("这是bjqChecklag数据:",this.bjqChecklag)
|
|
277
|
+
if (this.bjqChecklag.length > 0){
|
|
278
|
+
return
|
|
279
|
+
}
|
|
272
280
|
let res = await this.$resetpost(
|
|
273
281
|
`rs/logic/saveMaterials`,
|
|
274
282
|
data
|
|
@@ -315,6 +323,11 @@
|
|
|
315
323
|
data.f_material_number = this.materials[0].f_material_number
|
|
316
324
|
data.f_material_code = this.materials[0].f_material_code
|
|
317
325
|
data.f_bjq_sid = this.materials[0].f_bjq_sid
|
|
326
|
+
//报警器流程 设备编号检验
|
|
327
|
+
await this.bjqCheck()
|
|
328
|
+
if (this.bjqChecklag.length > 0){
|
|
329
|
+
return
|
|
330
|
+
}
|
|
318
331
|
let res = await this.$resetpost(
|
|
319
332
|
`rs/entity/t_material_apply`,
|
|
320
333
|
data
|
|
@@ -328,6 +341,35 @@
|
|
|
328
341
|
closeMaterials () {
|
|
329
342
|
this.getOnetoManyData()
|
|
330
343
|
this.showMaterialModal = false
|
|
344
|
+
},
|
|
345
|
+
async bjqCheck(){
|
|
346
|
+
//报警器设备型号校验
|
|
347
|
+
this.bjqChecklag = [] //初始化
|
|
348
|
+
if (this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建'){
|
|
349
|
+
let bjqinfo = {
|
|
350
|
+
f_material_name : "",
|
|
351
|
+
f_bjq_sid: ""
|
|
352
|
+
}
|
|
353
|
+
for (const bjqinfoElement of this.materials) {
|
|
354
|
+
bjqinfo.f_bjq_sid = bjqinfoElement.f_bjq_sid
|
|
355
|
+
bjqinfo.f_material_name = bjqinfoElement.f_material_name
|
|
356
|
+
if (bjqinfo.f_material_name.substr(0,3) === '报警器'){
|
|
357
|
+
let http = new HttpResetClass()
|
|
358
|
+
let res = await http.load(
|
|
359
|
+
'POST',
|
|
360
|
+
// `/rs/logic/bjqcheck`,
|
|
361
|
+
`ncc/rs/logic/bjqcheck`,
|
|
362
|
+
bjqinfo
|
|
363
|
+
)
|
|
364
|
+
if (res.data.code != 200){
|
|
365
|
+
this.bjqChecklag.push(res.data.code)
|
|
366
|
+
// this.$showMessage(res.data.msg)
|
|
367
|
+
Vue.showAlert(res.data.msg, 'danger', 6000)
|
|
368
|
+
return
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
331
373
|
}
|
|
332
374
|
}
|
|
333
375
|
}
|
|
@@ -1476,10 +1476,10 @@ export default {
|
|
|
1476
1476
|
this.$showMessage('请添加报警器物料信息!!!')
|
|
1477
1477
|
return
|
|
1478
1478
|
}
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1479
|
+
if (numOne.length > 1){
|
|
1480
|
+
this.$showMessage("暂时支持单个报警器物料安装!!!")
|
|
1481
|
+
return
|
|
1482
|
+
}
|
|
1483
1483
|
datatemp.sqvalue = this.show_data.areaData.sqvalue
|
|
1484
1484
|
datatemp.f_bjq_baidu_lng = this.show_data.templatlng.baidutemplng
|
|
1485
1485
|
datatemp.f_bjq_baidu_lat = this.show_data.templatlng.baidutemplat
|