safecheck-client 3.0.33-15 → 3.0.33-150

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 (162) hide show
  1. package/index.html +6 -2
  2. package/package.json +133 -133
  3. package/src/App.vue +2 -2
  4. package/src/components/Util/ImgSelfSafePlus.vue +19 -10
  5. package/src/components/Util.js +7 -0
  6. package/src/components/android/AreaPlan.vue +2 -1
  7. package/src/components/android/CurrentCreate.vue +1 -1
  8. package/src/components/android/ImgSelfAndroid.vue +181 -181
  9. package/src/components/android/SafecheckDevices.vue +5 -1
  10. package/src/components/android/SafecheckOrderV.vue +18 -12
  11. package/src/components/map/checkScreen.vue +27 -21
  12. package/src/components/paper/PlanChooser.vue +4 -2
  13. package/src/components/pc/NewCheckpaper.vue +11 -8
  14. package/src/components/planmanage/PlanManage.vue +14 -4
  15. package/src/components/planmanage/checkPlanList.vue +2 -1
  16. package/src/components/planmanage/checkUserList.vue +2 -0
  17. package/src/components/report/HiddenSituation.vue +3 -3
  18. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -2
  19. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  20. package/src/components/rongcheng/DefectPaper.vue +1 -1
  21. package/src/components/rongcheng/PaperListNPSQ.vue +36 -1
  22. package/src/components/rongcheng/PaperListSQ.vue +32 -11
  23. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  24. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  25. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  26. package/src/components/safecheckNew/PaperList.vue +785 -0
  27. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -0
  28. package/src/components/safecheckNew/android/AreaPlan.vue +561 -0
  29. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -0
  30. package/src/components/safecheckNew/android/Recheck.vue +379 -0
  31. package/src/components/safecheckNew/android/SafecheckDevices.vue +1400 -0
  32. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2692 -0
  33. package/src/filiale/Util.js +5 -0
  34. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -0
  35. package/src/filiale/baiyin/android.js +10 -0
  36. package/src/filiale/baiyin/pc/PaperList.vue +790 -0
  37. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -0
  38. package/src/filiale/baiyin/pc/PlanManage.vue +834 -0
  39. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -0
  40. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -0
  41. package/src/filiale/baiyin/pc.js +17 -0
  42. package/src/filiale/bayan/android/AddPlanItem.vue +7 -2
  43. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -0
  44. package/src/filiale/bayan/android/SafecheckOrderV.vue +21 -8
  45. package/src/filiale/bayan/android/SafecheckUserInfo.vue +566 -514
  46. package/src/filiale/bayan/android.js +1 -0
  47. package/src/filiale/bayan/pc/CheckDetail.vue +205 -0
  48. package/src/filiale/bayan/pc/CheckPlan.vue +59 -0
  49. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +565 -0
  50. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -0
  51. package/src/filiale/bayan/pc/DefectListNew.vue +597 -0
  52. package/src/filiale/bayan/pc/DefectMainNew.vue +63 -0
  53. package/src/filiale/bayan/pc/DefectPaperNew.vue +1218 -0
  54. package/src/filiale/bayan/pc/HiddenSituation.vue +256 -0
  55. package/src/filiale/bayan/pc/NewCheckpaper.vue +31 -1
  56. package/src/filiale/bayan/pc/PaperList.vue +119 -12
  57. package/src/filiale/bayan/pc/PlanManage.vue +29 -8
  58. package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -0
  59. package/src/filiale/bayan/pc.js +6 -0
  60. package/src/filiale/dexin/android/SafecheckOrderV.vue +123 -24
  61. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
  62. package/src/filiale/fugou/android.js +2 -1
  63. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  64. package/src/filiale/fugou/pc/CheckBook.vue +303 -301
  65. package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
  66. package/src/filiale/fugou/pc/CheckBookEntry.vue +94 -66
  67. package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
  68. package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
  69. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +810 -685
  70. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  71. package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
  72. package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
  73. package/src/filiale/fugou/pc/PaperList.vue +14 -6
  74. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  75. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  76. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  77. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  78. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  79. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  80. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  81. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  82. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  83. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  84. package/src/filiale/jingyang/pc.js +1 -0
  85. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +2 -22
  86. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -0
  87. package/src/filiale/liaoyuan/pc.js +2 -1
  88. package/src/filiale/qianneng/pc/PaperList.vue +31 -1
  89. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1268
  90. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2779
  91. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  92. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  93. package/src/filiale/rongchuang/android.js +1 -0
  94. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  95. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  96. package/src/filiale/rongchuang/pc.js +1 -0
  97. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -0
  98. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -0
  99. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -0
  100. package/src/filiale/siyang/android.js +11 -0
  101. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -0
  102. package/src/filiale/siyang/pc/PaperList.vue +834 -0
  103. package/src/filiale/siyang/pc/PlanManage.vue +839 -0
  104. package/src/filiale/siyang/pc/checkUserList.vue +781 -0
  105. package/src/filiale/siyang/pc.js +15 -0
  106. package/src/filiale/tianke/pc/checkScreen.vue +36 -31
  107. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +60 -2
  108. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +2 -3
  109. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1 -1
  110. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  111. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  112. package/src/filiale/weinan/android/SafecheckDevices.vue +6 -2
  113. package/src/filiale/weinan/android/SafecheckOrderV.vue +16 -2
  114. package/src/filiale/weinan/android/SafecheckUserInfo.vue +7 -2
  115. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  116. package/src/filiale/weinan/pc/DefectListNew.vue +617 -0
  117. package/src/filiale/weinan/pc/DefectMainNew.vue +1 -1
  118. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  119. package/src/filiale/weinan/pc.js +2 -0
  120. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1 -1
  121. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +85 -63
  122. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1 -1
  123. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +46 -1
  124. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +45 -4
  125. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +2 -2
  126. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
  127. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  128. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -0
  129. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
  130. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2845 -2832
  131. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -869
  132. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +2 -1
  133. package/src/filiale/yangchunboneng/android.js +1 -0
  134. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +4 -4
  135. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +76 -32
  136. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +72 -1
  137. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1018
  138. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +944 -849
  139. package/src/filiale/yangchunboneng/pc/PaperList.vue +17 -0
  140. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  141. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  142. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  143. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  144. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  145. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  146. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  147. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  148. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +56 -125
  149. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  150. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  151. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  152. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  153. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  154. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  155. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  156. package/src/filiale/yongzhou/pc.js +4 -0
  157. package/src/filiale/zhongsheng/android/CurrentCreate.vue +7 -2
  158. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +6 -2
  159. package/src/main.js +33 -33
  160. package/src/rongcheng.js +3 -1
  161. package/src/safecheck-android.js +6 -0
  162. package/src/safecheck.js +3 -0
@@ -1,181 +1,181 @@
1
- <template>
2
- <div>
3
- <img :src="src" :alt="alt" @click="open()" style="width: 100%;height: 100%" title="点击查看图片" :id="'vc-imgself-img-'+attach">
4
- <div class="full-img" v-if="show">
5
- <div @click="on" draggable="false" >
6
- <img :src="src" id="image" alt="" style="width: 100%" class="img-state" :alt="alt || ''">
7
- </div>
8
- <div class="btns">
9
- <button type="button" name="button" class="btn btn-primary" @click="close()" :id="'vc-imgself-close-'+attach">关闭</button>
10
- </div>
11
- </div>
12
- </div>
13
- </template>
14
-
15
- <script>
16
- import $ from 'jquery'
17
-
18
-
19
- export default {
20
- props: {
21
- src: {
22
- type: String
23
- },
24
- width: {
25
- default: 60
26
- },
27
- height: {
28
- default: 60
29
- },
30
- alt: {
31
- default: '图片加载失败'
32
- },
33
- attach: {
34
- type: String,
35
- default: 'name'
36
- }
37
- },
38
- data () {
39
- return {
40
- show: false,
41
- deg: 0,
42
- power: 1
43
- }
44
- },
45
- methods: {
46
- open () {
47
- this.deg = 0
48
- this.power = 0.5
49
- this.show = true
50
- },
51
- close () {
52
- this.show = false
53
- },
54
- on(){
55
- $(function (){
56
- let result = {}
57
- var eleImg = document.querySelector('#image');
58
- var store = {
59
- scale: 1
60
- };
61
- // 缩放处理
62
- eleImg.addEventListener('touchstart', function (event) {
63
- var touches = event.touches;
64
- var events = touches[0];
65
- var events2 = touches[1];
66
-
67
- var x = eleImg.offsetLeft;
68
- var y = eleImg.offsetTop;
69
-
70
- if (!events) {
71
- return;
72
- }
73
- event.preventDefault();
74
- // 第一个触摸点的坐标
75
- store.pageX = events.pageX;
76
- store.pageY = events.pageY;
77
- store.x = x;
78
- store.y = y;
79
- store.moveable = true;
80
- if (events2) {
81
- store.pageX2 = events2.pageX;
82
- store.pageY2 = events2.pageY;
83
- }
84
- store.originScale = store.scale || 1;
85
- },{ passive: false });
86
- document.addEventListener('touchmove', function (event) {
87
- if (!store.moveable) {
88
- return;
89
- }
90
- event.preventDefault();
91
- var touches = event.touches;
92
- var events = touches[0];
93
- var events2 = touches[1];
94
- result.textContent = '触摸点数量:' + touches.length;
95
- if (events2) {
96
- if (!store.pageX2) {
97
- store.pageX2 = events2.pageX;
98
- }
99
- if (!store.pageY2) {
100
- store.pageY2 = events2.pageY;
101
- }
102
- var getDistance = function (start, stop) {
103
- return Math.hypot(stop.x - start.x, stop.y - start.y);
104
- };
105
- var zoom = getDistance({
106
- x: events.pageX,
107
- y: events.pageY
108
- }, {
109
- x: events2.pageX,
110
- y: events2.pageY
111
- }) /
112
- getDistance({
113
- x: store.pageX,
114
- y: store.pageY
115
- }, {
116
- x: store.pageX2,
117
- y: store.pageY2
118
- });
119
- var newScale = store.originScale * zoom;
120
- if (newScale > 4) {
121
- newScale = 4;
122
- }
123
- store.scale = newScale;
124
- eleImg.style.transform = 'scale('+ newScale +')';
125
- result.textContent = 'zoom: '+ zoom + ', apply scale: ' + newScale;
126
- }else{
127
- var moveX = events.pageX - store.pageX;
128
- var moveY = events.pageY - store.pageY;
129
- var imagetop = store.x + moveX;
130
- var imageleft = store.y + moveY;
131
- eleImg.style.transform = `translate(${imagetop}px, ${imageleft}px) scale(${store.scale})`;
132
- }
133
- },{ passive: false });
134
-
135
- document.addEventListener('touchend', function () {
136
- store.moveable = false;
137
-
138
- delete store.pageX2;
139
- delete store.pageY2;
140
- },{ passive: false });
141
- document.addEventListener('touchcancel', function () {
142
- store.moveable = false;
143
- delete store.pageX2;
144
- delete store.pageY2;
145
- },{ passive: false });
146
- });
147
- }
148
-
149
- },
150
- ready(){
151
- }
152
- }
153
- </script>
154
- <style media="screen">
155
- .full-img {
156
- position: fixed;
157
- top: 0;
158
- bottom: 0;
159
- left: 0;
160
- right: 0;
161
- z-index: 20;
162
- background: rgba(0,0,0,0.8);
163
- display: flex;
164
- overflow: auto;
165
- flex-direction: column;
166
- justify-content: center;
167
- align-items: center;
168
- color: #fff;
169
- }
170
- .btns {
171
- position: fixed;
172
- bottom: 100px;
173
- height: auto;
174
- }
175
- .btns button {
176
- margin-right: 20px;
177
- }
178
- .img-state {
179
-
180
- }
181
- </style>
1
+ <template>
2
+ <div>
3
+ <img :src="src" :alt="alt" @click="open()" :width="width" :height="height"title="点击查看图片" :id="'vc-imgself-img-'+attach">
4
+ <div class="full-img" v-if="show">
5
+ <div @click="on" draggable="false" >
6
+ <img :src="src" id="image" alt="" style="width: 100%" class="img-state" :alt="alt || ''">
7
+ </div>
8
+ <div class="btns">
9
+ <button type="button" name="button" class="btn btn-primary" @click="close()" :id="'vc-imgself-close-'+attach">关闭</button>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ import $ from 'jquery'
17
+
18
+
19
+ export default {
20
+ props: {
21
+ src: {
22
+ type: String
23
+ },
24
+ width: {
25
+ default: 60
26
+ },
27
+ height: {
28
+ default: 60
29
+ },
30
+ alt: {
31
+ default: '图片加载失败'
32
+ },
33
+ attach: {
34
+ type: String,
35
+ default: 'name'
36
+ }
37
+ },
38
+ data () {
39
+ return {
40
+ show: false,
41
+ deg: 0,
42
+ power: 1
43
+ }
44
+ },
45
+ methods: {
46
+ open () {
47
+ this.deg = 0
48
+ this.power = 0.5
49
+ this.show = true
50
+ },
51
+ close () {
52
+ this.show = false
53
+ },
54
+ on(){
55
+ $(function (){
56
+ let result = {}
57
+ var eleImg = document.querySelector('#image');
58
+ var store = {
59
+ scale: 1
60
+ };
61
+ // 缩放处理
62
+ eleImg.addEventListener('touchstart', function (event) {
63
+ var touches = event.touches;
64
+ var events = touches[0];
65
+ var events2 = touches[1];
66
+
67
+ var x = eleImg.offsetLeft;
68
+ var y = eleImg.offsetTop;
69
+
70
+ if (!events) {
71
+ return;
72
+ }
73
+ event.preventDefault();
74
+ // 第一个触摸点的坐标
75
+ store.pageX = events.pageX;
76
+ store.pageY = events.pageY;
77
+ store.x = x;
78
+ store.y = y;
79
+ store.moveable = true;
80
+ if (events2) {
81
+ store.pageX2 = events2.pageX;
82
+ store.pageY2 = events2.pageY;
83
+ }
84
+ store.originScale = store.scale || 1;
85
+ },{ passive: false });
86
+ document.addEventListener('touchmove', function (event) {
87
+ if (!store.moveable) {
88
+ return;
89
+ }
90
+ event.preventDefault();
91
+ var touches = event.touches;
92
+ var events = touches[0];
93
+ var events2 = touches[1];
94
+ result.textContent = '触摸点数量:' + touches.length;
95
+ if (events2) {
96
+ if (!store.pageX2) {
97
+ store.pageX2 = events2.pageX;
98
+ }
99
+ if (!store.pageY2) {
100
+ store.pageY2 = events2.pageY;
101
+ }
102
+ var getDistance = function (start, stop) {
103
+ return Math.hypot(stop.x - start.x, stop.y - start.y);
104
+ };
105
+ var zoom = getDistance({
106
+ x: events.pageX,
107
+ y: events.pageY
108
+ }, {
109
+ x: events2.pageX,
110
+ y: events2.pageY
111
+ }) /
112
+ getDistance({
113
+ x: store.pageX,
114
+ y: store.pageY
115
+ }, {
116
+ x: store.pageX2,
117
+ y: store.pageY2
118
+ });
119
+ var newScale = store.originScale * zoom;
120
+ if (newScale > 4) {
121
+ newScale = 4;
122
+ }
123
+ store.scale = newScale;
124
+ eleImg.style.transform = 'scale('+ newScale +')';
125
+ result.textContent = 'zoom: '+ zoom + ', apply scale: ' + newScale;
126
+ }else{
127
+ var moveX = events.pageX - store.pageX;
128
+ var moveY = events.pageY - store.pageY;
129
+ var imagetop = store.x + moveX;
130
+ var imageleft = store.y + moveY;
131
+ eleImg.style.transform = `translate(${imagetop}px, ${imageleft}px) scale(${store.scale})`;
132
+ }
133
+ },{ passive: false });
134
+
135
+ document.addEventListener('touchend', function () {
136
+ store.moveable = false;
137
+
138
+ delete store.pageX2;
139
+ delete store.pageY2;
140
+ },{ passive: false });
141
+ document.addEventListener('touchcancel', function () {
142
+ store.moveable = false;
143
+ delete store.pageX2;
144
+ delete store.pageY2;
145
+ },{ passive: false });
146
+ });
147
+ }
148
+
149
+ },
150
+ ready(){
151
+ }
152
+ }
153
+ </script>
154
+ <style media="screen">
155
+ .full-img {
156
+ position: fixed;
157
+ top: 0;
158
+ bottom: 0;
159
+ left: 0;
160
+ right: 0;
161
+ z-index: 20;
162
+ background: rgba(0,0,0,0.8);
163
+ display: flex;
164
+ overflow: auto;
165
+ flex-direction: column;
166
+ justify-content: center;
167
+ align-items: center;
168
+ color: #fff;
169
+ }
170
+ .btns {
171
+ position: fixed;
172
+ bottom: 100px;
173
+ height: auto;
174
+ }
175
+ .btns button {
176
+ margin-right: 20px;
177
+ }
178
+ .img-state {
179
+
180
+ }
181
+ </style>
@@ -457,6 +457,8 @@ export default {
457
457
  if (this.$parent.$parent.is_has_jingweidu == 'true'){
458
458
  jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
459
459
  }
460
+ this.f_items[prop].f_longitude = obj.longitude
461
+ this.f_items[prop].f_latitude = obj.latitude
460
462
  //tag
461
463
  //tag
462
464
  HostApp._open_a_page({type: 'boomerang',
@@ -1011,7 +1013,9 @@ export default {
1011
1013
  f_else: '',
1012
1014
  f_p1_path: '',
1013
1015
  f_p2_path: '',
1014
- f_p3_path: ''
1016
+ f_p3_path: '',
1017
+ f_longitude:'',
1018
+ f_latitude:''
1015
1019
  }
1016
1020
  //tag)
1017
1021
  //tag)
@@ -269,7 +269,7 @@
269
269
  "气量异常差值":{"index":10,"type":"number","readonly": true},
270
270
  "金额异常差值":{"index":10,"type":"number","readonly": true},
271
271
  "系统余额":{"index":10,"type":"number","readonly": true},
272
- "表箱号":{"index":11,"type":"string","readonly": true},
272
+ "表封号":{"index":11,"type":"string","readonly": true},
273
273
  "燃气表照片":{"index":12,"type":"picture","checkmust": false}
274
274
  }
275
275
  // 注意,配置项的index必须与上面的固定配置保持'顺序'
@@ -686,8 +686,10 @@
686
686
  let prefix = '用户基本信息:'
687
687
  if(Util.required(this.data.f_user_name))
688
688
  return prefix + '用户名必须输入'
689
+ if (!this.data.f_user_phone){
690
+ return '请输入正确的电话号码'
691
+ }
689
692
  if(!(/^\d{11}$/.test(this.data.f_user_phone.trim()))) {
690
-
691
693
  return '请输入正确的电话号码'
692
694
  }
693
695
  // if(Util.required(this.data.f_residential_area))
@@ -2072,7 +2074,7 @@
2072
2074
  f_defect_level: null,
2073
2075
  f_device_id: "",
2074
2076
  f_is_defect: "",
2075
- f_item_name: "表箱号",
2077
+ f_item_name: "表封号",
2076
2078
  f_item_value: this.item.f_plan_meters[i].f_metertitles,
2077
2079
  f_path: "",
2078
2080
  type: "string"
@@ -2134,7 +2136,7 @@
2134
2136
  f_defect_level: null,
2135
2137
  f_device_id: "",
2136
2138
  f_is_defect: "",
2137
- f_item_name: "表箱号",
2139
+ f_item_name: "表封号",
2138
2140
  f_item_value: this.item.f_plan_meters[i].f_metertitles,
2139
2141
  f_path: "",
2140
2142
  type: "string"
@@ -2435,13 +2437,17 @@
2435
2437
  //tag
2436
2438
  if (this.role == 'inspect') {
2437
2439
  //tag
2438
- if (this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') {
2439
- value = this.$androidUtil.path({
2440
- alias: 'getUserinfomation',
2441
- data: {condition: "f_check_item_id = '" + this.item.id + "' and f_no_checkplan in ('无计划安检','复检')"}
2442
- })
2443
- } else {
2444
- value = this.$androidUtil.bzLogic('FetchCheckPaper', {id: this.item.id})
2440
+ if(this.item.f_no_checkplan != '无计划安检' ){
2441
+ if (this.item.f_no_checkplan == '复检') {
2442
+ value = this.$androidUtil.path({
2443
+ alias: 'getUserinfomation',
2444
+ data: {condition: "f_check_item_id = '" + this.item.id + "' and f_no_checkplan in ('无计划安检','复检')"}
2445
+ })
2446
+ } else {
2447
+ value = this.$androidUtil.bzLogic('FetchCheckPaper', {id: this.item.id})
2448
+ }
2449
+ }else {
2450
+ value.data =[]
2445
2451
  }
2446
2452
  } else {
2447
2453
  value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
@@ -2618,7 +2624,7 @@
2618
2624
  })
2619
2625
  }
2620
2626
  }else{
2621
- if(this.parentPage && this.parentPage=='CurrentCreate'){
2627
+ if(this.parentPage && this.parentPage=='AddPlanItem'){
2622
2628
  //tag
2623
2629
  let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2624
2630
  if (isRecodr) {
@@ -445,13 +445,15 @@ export default {
445
445
 
446
446
 
447
447
  let a3=[]
448
- for(let i=0;i<this.level2.length;i++){
449
- a3.push({
450
- lnglat: [this.level2[i].f_longitude,this.level2[i].f_latitude], //点标记位置
451
- name: '二级隐患',
452
- id:i,
453
- rowstr:this.level2[i]
454
- })
448
+ for(let o=0;o<this.level2.length;o++){
449
+ if (this.level2[o].f_longitude && this.level2[o].f_latitude){
450
+ a3.push({
451
+ lnglat: [this.level2[o].f_longitude,this.level2[o].f_latitude], //点标记位置
452
+ name: '二级隐患',
453
+ id:o,
454
+ rowstr:this.level2[o]
455
+ })
456
+ }
455
457
  }
456
458
  // 将数组设置到 massMarks 图层
457
459
  this.level2Mulchs.setData(a3);
@@ -459,13 +461,15 @@ export default {
459
461
  this.level2Mulchs.setMap(this.map);
460
462
 
461
463
  let a4=[]
462
- for(let i=0;i<this.level3.length;i++){
463
- a4.push({
464
- lnglat: [this.level3[i].f_longitude, this.level3[i].f_latitude], //点标记位置
465
- name: '三级隐患',
466
- id:i,
467
- rowstr:this.level3[i]
468
- })
464
+ for(let p=0;p<this.level3.length;p++){
465
+ if (this.level3[p].f_longitude&&this.level3[p].f_latitude){
466
+ a4.push({
467
+ lnglat: [this.level3[p].f_longitude, this.level3[p].f_latitude], //点标记位置
468
+ name: '三级隐患',
469
+ id:p,
470
+ rowstr:this.level3[p]
471
+ })
472
+ }
469
473
  }
470
474
  // 将数组设置到 massMarks 图层
471
475
  this.level3Mulchs.setData(a4);
@@ -474,13 +478,15 @@ export default {
474
478
 
475
479
 
476
480
  let a5=[]
477
- for(let i=0;i<this.problems.length;i++){
478
- a5.push({
479
- lnglat: [this.problems[i].f_longitude, this.problems[i].f_latitude], //点标记位置
480
- name: '普通问题',
481
- id:i,
482
- rowstr:this.problems[i]
483
- })
481
+ for(let l=0;l<this.problems.length;l++){
482
+ if (this.problems[l].f_longitude&&this.problems[l].f_latitude){
483
+ a5.push({
484
+ lnglat: [this.problems[l].f_longitude, this.problems[l].f_latitude], //点标记位置
485
+ name: '普通问题',
486
+ id:l,
487
+ rowstr:this.problems[l]
488
+ })
489
+ }
484
490
  }
485
491
  // 将数组设置到 massMarks 图层
486
492
  this.problemsMulchs.setData(a5);
@@ -79,8 +79,10 @@
79
79
  let selectnew = function * (self) {
80
80
  let http = new HttpResetClass()
81
81
  http.load('POST', '/rs/search', {
82
- source: `root.getResourceById($${self.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
83
- userid: self.$login.f.id
82
+ data:{
83
+ source: `this.getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
84
+ userid: self.$login.f.orgid
85
+ }
84
86
  }, {resolveMsg: null, rejectMsg: null}).then((res) => {
85
87
  self.checkers = []
86
88
  let arr = []
@@ -894,6 +894,7 @@ import Vue from 'vue'
894
894
  import * as Util from '../Util'
895
895
  import {jsonSort} from '../../utils/LdapHelper'
896
896
  import {HttpResetClass} from "vue-client";
897
+ import {forEach} from "mocha/lib/utils";
897
898
 
898
899
  let asyncReady = async function (self) {
899
900
  // 获取配置信息
@@ -1293,6 +1294,9 @@ export default {
1293
1294
  if (this.deviceCollects.length > 0) {
1294
1295
  this.hasDevice = true
1295
1296
  }
1297
+ this.deviceconfig2 = this.deviceconfig2.filter(row => {
1298
+ return !(row.checkname == '$configProp' || row.checkname == '$globalProp');
1299
+ })
1296
1300
  this.ajresult = JSON.parse(this.data.f_defect_content).result
1297
1301
  this.showimg3 = this.data.f_noanswer_path
1298
1302
  this.showimg5 = this.data.f_noanswer1_path
@@ -1873,18 +1877,17 @@ export default {
1873
1877
  //tag
1874
1878
  //tag)
1875
1879
  console.log('Vue.config.safecheck.DevicesConfig', Vue.config.safecheck.DevicesConfig)
1876
- if (this.data.f_check_type == '民用') {
1877
- this.deviceconfig = Vue.config.safecheck.DevicesConfig
1878
- if (typeof this.deviceconfig === 'string') {
1879
- this.deviceconfig = JSON.parse(this.deviceconfig)
1880
- }
1881
- //tag)
1882
- } else if (this.data.f_check_type == '非民用') {
1880
+ // 如果没有用户类型 默认按民用配置走
1881
+ if (this.data.f_check_type == '非民用') {
1883
1882
  this.deviceconfig = Vue.config.safecheck.DevicesSetConfig
1884
1883
  if (typeof this.deviceconfig === 'string') {
1885
1884
  this.deviceconfig = JSON.parse(this.deviceconfig)
1886
1885
  }
1887
- //tag)
1886
+ }else{
1887
+ this.deviceconfig = Vue.config.safecheck.DevicesConfig
1888
+ if (typeof this.deviceconfig === 'string') {
1889
+ this.deviceconfig = JSON.parse(this.deviceconfig)
1890
+ }
1888
1891
  }
1889
1892
  if (this.data.f_collection_type == '按金额') {
1890
1893
  if (this.deviceconfig["燃气表"]){
@@ -16,7 +16,7 @@
16
16
  close-on-select value-single >
17
17
  </v-select>
18
18
  </div>
19
- <div class="row auto safe-div-p"><!--<span style="margin-right: 5px" @click="refresh()" style="cursor:default">测试</span>--><span style="margin-right: 5px" @click="delCheckPlan()" style="cursor:default">删除</span> <span @click="sendCheckPlan()" style="cursor:default">下发</span></div>
19
+ <div class="row auto safe-div-p"><!--<span style="margin-right: 5px" @click="refresh()" style="cursor:default">测试</span>--><span style="margin-right: 5px" @click="delCheckPlan()" style="cursor:default" v-if="isdelete">删除</span> <span @click="sendCheckPlan()" style="cursor:default">下发</span></div>
20
20
  </div>
21
21
  <div class="leftplan-center safe_plan_list">
22
22
  <div class="row safe-leftplan safe_list_li" :class="{'safe-selectplan':selectPlan.id==row.id}" v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
@@ -399,6 +399,7 @@
399
399
  a:'1',
400
400
  opt:[{label:"按时间降序",value:"按时间降序"},{label:"按时间升序",value:"按时间升序"}],
401
401
  currentorder:'按时间降序',
402
+ isdelete:this.$login.r ? this.$login.r.includes("安检计划删除"):false,
402
403
  checkplan : new SearchList(true),
403
404
  selectPlan:{id:''},
404
405
  upCheckPlan:{
@@ -451,6 +452,13 @@
451
452
  },
452
453
  async ready(){
453
454
  await this.loadpage()
455
+ if (!this.userlogin.orgid){
456
+ if (this.$login.f.f_orgids){
457
+ this.userlogin.orgid = this.$login.f.f_orgids.endsWith('.')?this.$login.f.f_orgids.substring(0,this.$login.f.f_orgids.length-1):this.$login.f.f_orgids
458
+ }else {
459
+ this.userlogin.orgid = ''
460
+ }
461
+ }
454
462
  },
455
463
  computed: {
456
464
  ntoway() {
@@ -575,8 +583,10 @@
575
583
  //查询安检员selectChanged
576
584
  async searchChecker(id){
577
585
  let res=await new HttpResetClass().load('POST', '/rs/search', {
578
- source: `root.getResourceById($${this.userlogin.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
579
- userid: this.$login.f.id
586
+ data:{
587
+ source: `this.getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
588
+ userid: this.userlogin.orgid
589
+ }
580
590
  }, {resolveMsg: null, rejectMsg: null})
581
591
  let arr = []
582
592
  res.data.forEach((resRow) => {
@@ -727,7 +737,7 @@
727
737
  this.isSend=true
728
738
  let res=await new HttpResetClass().load("POST", "/rs/logic/deleteCheckPlan", {
729
739
  data:{
730
- f_operator:this.userlogin.orgstr,//global.login.name,
740
+ f_operator:this.userlogin.name,//global.login.name,
731
741
  condition:"",
732
742
  switchCheckAll:true,
733
743
  checkAll:false,
@@ -50,7 +50,7 @@
50
50
  </div>
51
51
  <div class="form-group col-sm-2" style="float: right">
52
52
  <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.showplanModal()">计划调整</button>
53
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()">移出计划</button>
53
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.delPlanItem()" v-show="$parent.$parent.isdelete">移出计划</button>
54
54
  </div>
55
55
  <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
56
56
  <div slot="modal-header" class="modal-header">
@@ -178,6 +178,7 @@
178
178
  data() {
179
179
  return {
180
180
  model:new PagedList('/rs/sql/planItem', 100, {}),
181
+ isdelete:this.$login.r ? this.$login.r.includes("安检计划删除"):false,
181
182
  a:'1',
182
183
  opt:[{label:"测试",value:"测试"}],
183
184
  showCondtion:false,