safecheck-client 4.0.0-98 → 4.0.1-1
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 +2 -2
- package/src/App.vue +31 -31
- package/src/components/CheckerCount/CheckCountAreaManage.vue +1 -1
- package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1079
- package/src/components/Util/SafecheckUpload.vue +281 -281
- package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
- package/src/components/android/SafeRightTree.vue +217 -0
- package/src/components/android/SafecheckDevices.vue +1340 -1340
- package/src/components/android/SwitchValve.vue +2 -2
- package/src/components/map/PersonTrack.vue +3 -1
- package/src/components/map/checkScreen.vue +47 -13
- package/src/components/paper/PaperList.vue +797 -796
- package/src/components/paper/RegionalList.vue +220 -0
- package/src/components/pc/AddToCheckBook.vue +1 -1
- package/src/components/pc/CheckBook.vue +303 -303
- package/src/components/pc/CheckBookArea.vue +146 -146
- package/src/components/pc/CheckBookCompany.vue +144 -144
- package/src/components/pc/CheckBookDetails.vue +161 -161
- package/src/components/pc/CheckBookEntry.vue +60 -60
- package/src/components/pc/CheckBookSearchArea.vue +560 -560
- package/src/components/pc/CheckBookSearchUnit.vue +229 -229
- package/src/components/pc/CheckBookSearchUser.vue +659 -659
- package/src/components/pc/CheckBookSearchUserList.vue +674 -674
- package/src/components/pc/CheckBookUser.vue +333 -333
- package/src/components/pc/DefectDeal.vue +1 -1
- package/src/components/pc/PaperDefectMain.vue +880 -880
- package/src/components/report/CheckPlanAreaManage.vue +1 -1
- package/src/components/report/HiddenSituationNoSubtotal.vue +165 -0
- package/src/components/report/communityTypeDetailM.vue +113 -0
- package/src/filiale/jinhong/android/CurrentCreate.vue +1240 -1240
- package/src/filiale/jinhong/android/PhoneInsuranceRecordList.vue +3 -3
- package/src/filiale/jinhong/pc/CheckPlanAreaList.vue +9 -2
- package/src/filiale/jinhong/pc/PlanManage.vue +5 -5
- package/src/filiale/jinhong/pc/checkPlanList.vue +418 -0
- package/src/filiale/jinhong/pc/checkUserList.vue +19 -21
- package/src/filiale/jinhong/pc.js +1 -0
- package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
- package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
- package/src/filiale/meihekou/android/CurrentCreate.vue +33 -91
- package/src/filiale/meihekou/android/PaperFeedback.vue +1542 -1538
- package/src/filiale/meihekou/android/SafecheckDevices.vue +1340 -0
- package/src/filiale/meihekou/android/SafecheckOrderV.vue +2421 -2413
- package/src/filiale/meihekou/android.js +22 -21
- package/src/filiale/meihekou/pc/NewCheckpaper.vue +2027 -1959
- package/src/filiale/qingjian/pc/NewCheckpaper.vue +4 -4
- package/src/filiale/qingjian/pc/checkUserList.vue +835 -0
- package/src/filiale/qingjian/pc.js +1 -1
- package/src/filiale/weinan/pc/CheckPlanAreaManage.vue +1 -1
- package/src/filiale/xinkang/pc/CheckPlanAreaManage.vue +1 -1
- package/src/main.js +33 -33
- package/src/safecheck-android.js +1 -0
- package/src/safecheck.js +9 -1
@@ -256,8 +256,8 @@ export default {
|
|
256
256
|
},
|
257
257
|
selfSearch () {
|
258
258
|
//tag
|
259
|
-
|
260
|
-
let condition = ` 1=1 `
|
259
|
+
let condition = ` f_filialeid = '${this.filialeid}'`
|
260
|
+
// let condition = ` 1=1 `
|
261
261
|
condition += this.condition
|
262
262
|
condition += this.f_meternumber ? ` and f_meternumber = '${this.f_meternumber}'` : ""
|
263
263
|
condition += this.f_userinfo_code ? ` and f_userinfo_code = '${this.f_userinfo_code}'` : ""
|
@@ -187,10 +187,12 @@ export default {
|
|
187
187
|
this.toUserIds = this.$login.convertToIn(idsEnd); //所有的员工ID
|
188
188
|
this.searchUserEndOption = dataEnd
|
189
189
|
|
190
|
-
let resp = await new HttpResetClass().load('POST', `/api/af-safecheck/sql/
|
190
|
+
let resp = await new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
|
191
191
|
data: {
|
192
|
+
items:'*',
|
192
193
|
tablename: 't_department',
|
193
194
|
condition: `parentid = '${this.$login.f.orgid}' and f_dep_type = '部门'`,
|
195
|
+
orderitem:'id desc'
|
194
196
|
}
|
195
197
|
}, {resolveMsg: null, rejectMsg: null})
|
196
198
|
//tag)
|
@@ -100,7 +100,7 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
</div>
|
103
|
-
<!-- <work-busy :is-busy="loading"></work-busy>-->
|
103
|
+
<!-- <work-busy :is-busy="loading"></work-busy>-->
|
104
104
|
</template>
|
105
105
|
|
106
106
|
<script>
|
@@ -233,23 +233,31 @@ export default {
|
|
233
233
|
rejectMsg: null
|
234
234
|
})
|
235
235
|
const today = Util.toStandardDateString()
|
236
|
-
let arr2 = await new HttpResetClass().load('POST', `/
|
236
|
+
let arr2 = await new HttpResetClass().load('POST', `/rs/sql/tel_singleTable_OrderBy`, {
|
237
237
|
data: {
|
238
|
+
items:'*',
|
238
239
|
tablename: 't_work_record',
|
239
240
|
condition: `f_onsite_time >= '${today} 00:00:00' and f_onsite_time <= '${today} 23:59:59'`,
|
241
|
+
orderitem: 'id'
|
240
242
|
}}, {
|
241
243
|
resolveMsg: null,
|
242
244
|
rejectMsg: null
|
243
245
|
})
|
244
|
-
|
246
|
+
arr1.data = JSON.parse(arr1.data.replaceAll(/([{,]\s*)([0-9]+)(\s*=\s*{)/g, '$1"$2"$3').replaceAll('=',':'))
|
247
|
+
console.log('arr1.data',arr1.data)
|
245
248
|
const checkerOptions = [{label: '全部', value: ''}]
|
246
|
-
if
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
249
|
+
if(res.data){
|
250
|
+
res.data.forEach((checker)=>{
|
251
|
+
for(let check in arr1.data){
|
252
|
+
let checkerpos = arr1.data[check]
|
253
|
+
if(checker.id==check){
|
254
|
+
checkerpos.userid=checker.userid
|
255
|
+
checkerpos.f_user_telephone=checker.f_user_telephone
|
256
|
+
checkerpos.rolestr=checker.rolestr
|
257
|
+
this.checkers.push(checkerpos)
|
258
|
+
}
|
259
|
+
}
|
260
|
+
})
|
253
261
|
}
|
254
262
|
this.checkerOptions = checkerOptions
|
255
263
|
if (res.data && arr2.data){
|
@@ -271,7 +279,7 @@ export default {
|
|
271
279
|
for (let id in arr1.data) {
|
272
280
|
const datachecke = {}
|
273
281
|
datachecke.id = id
|
274
|
-
const parse =
|
282
|
+
const parse = arr1.data[id]
|
275
283
|
let lxhm = this.$appdata.getSingleValue("离线毫秒数")
|
276
284
|
if (isEmpty(lxhm)){
|
277
285
|
lxhm = 300000
|
@@ -316,7 +324,7 @@ export default {
|
|
316
324
|
res.data.forEach((checker) => {
|
317
325
|
var lixian = true
|
318
326
|
for (var i =0;i < this.allpersonnelsum.length;i++) {
|
319
|
-
if (this.allpersonnelsum[i].
|
327
|
+
if (this.allpersonnelsum[i].id == checker.id) {
|
320
328
|
this.allpersonnelsum[i].f_user_telephone = checker.f_user_telephone
|
321
329
|
//在线
|
322
330
|
lixian = false
|
@@ -598,7 +606,33 @@ export default {
|
|
598
606
|
autoMove:true,
|
599
607
|
content: '',
|
600
608
|
offset: new AMap.Pixel(0, -25)
|
601
|
-
})
|
609
|
+
})
|
610
|
+
this.checkerMulchs = new AMap.MassMarks([], {
|
611
|
+
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|
612
|
+
zIndex: 111, //图层叠加的顺序值,0表示最底层。默认zIndex:5
|
613
|
+
cursor: 'pointer', //指定鼠标悬停时的鼠标样式,自定义cursor,IE仅支持cur/ani/ico格式,Opera不支持自定义cursor
|
614
|
+
//alwaysRender:false,
|
615
|
+
style: this.styleObject[0]
|
616
|
+
})
|
617
|
+
this.checkerMulchs.on('click', function (e) {
|
618
|
+
//tag)
|
619
|
+
let checkAddress = '未获取到实时位置'
|
620
|
+
console.log('e.data.lnglat=', e.data.lnglat)
|
621
|
+
console.log('地图222')
|
622
|
+
that.geocoder.getAddress(e.data.lnglat, function (status, result) {
|
623
|
+
//
|
624
|
+
if (status === 'complete' && result.regeocode) {
|
625
|
+
checkAddress = result.regeocode.formattedAddress
|
626
|
+
} else {
|
627
|
+
e.data.rowstr.checkAddress = checkAddress
|
628
|
+
}
|
629
|
+
e.data.rowstr.checkAddress = checkAddress
|
630
|
+
console.log('e.data.rowstr=', e.data.rowstr)
|
631
|
+
let defectContent = that.getCheckerContent(e.data.rowstr)
|
632
|
+
that.infoWindow.setContent(defectContent)
|
633
|
+
that.infoWindow.open(that.map, e.data.lnglat)
|
634
|
+
})
|
635
|
+
})
|
602
636
|
//安检员点位
|
603
637
|
/*this.checkerMulchs = new AMap.MassMarks([], {
|
604
638
|
opacity: 0.8, // 图层的透明度,取值范围[0,1],1代表完全不透明,0代表完全透明
|