safecheck-client 3.0.30-9 → 3.0.30-90

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 (102) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/App.vue +2 -2
  4. package/src/components/DefectDealMain/DefectListNew.vue +5 -5
  5. package/src/components/Util.js +15 -0
  6. package/src/components/android/AddPlanItem.vue +5 -2
  7. package/src/components/android/AreaPlan.vue +2 -2
  8. package/src/components/android/CurrentCreate.vue +3 -2
  9. package/src/components/android/CurrentCreate_new.vue +563 -559
  10. package/src/components/android/PaperFeedback.vue +4 -2
  11. package/src/components/android/SafecheckOrderV.vue +2 -2
  12. package/src/components/android/UploadPage.vue +13 -123
  13. package/src/components/paper/PaperList.vue +9 -2
  14. package/src/components/paper/PlanChooser.vue +8 -6
  15. package/src/components/pc/Edit.vue +126 -0
  16. package/src/components/pc/LodopFuncs.js +159 -0
  17. package/src/components/pc/NewCheckpaper.vue +9 -5
  18. package/src/components/pc/PaperEdit.vue +151 -0
  19. package/src/components/pc/PrintData.vue +243 -0
  20. package/src/components/pc/PrintTable.vue +241 -0
  21. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
  22. package/src/components/report/NoCheckplanSafecheck.vue +0 -2
  23. package/src/components/rongcheng/CheckCurrentCreate.vue +8 -0
  24. package/src/components/rongcheng/PaperStatem.vue +42 -1
  25. package/src/components/rongcheng/PhoneUpUserinfo.vue +149 -199
  26. package/src/components/rongcheng/SafecheckOrderV.vue +8 -0
  27. package/src/components/rongcheng/SafecheckUserInfo.vue +419 -0
  28. package/src/components/rongcheng/report/CheckPlanAreaList.vue +21 -3
  29. package/src/filiale/ankangyihua/pc/checkUserList.vue +1 -0
  30. package/src/filiale/bayan/android/CurrentCreate.vue +1 -1
  31. package/src/filiale/bayan/android/Edit.vue +132 -0
  32. package/src/filiale/bayan/android/SafecheckOrderV.vue +2 -2
  33. package/src/filiale/bayan/android/SafecheckUserInfo.vue +6 -1
  34. package/src/filiale/bayan/android.js +2 -1
  35. package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
  36. package/src/filiale/fugou/android.js +10 -0
  37. package/src/filiale/fugou/pc/DefectMainNew.vue +63 -0
  38. package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -0
  39. package/src/filiale/fugou/pc/PaperDefectMain.vue +890 -0
  40. package/src/filiale/fugou/pc/PaperList.vue +46 -0
  41. package/src/filiale/fugou/pc/checkUserList.vue +824 -0
  42. package/src/filiale/fugou/pc.js +5 -1
  43. package/src/filiale/hanzhong/android/SafecheckDevices.vue +24 -24
  44. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2 -2
  45. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  46. package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
  47. package/src/filiale/hanzhong/pc.js +4 -1
  48. package/src/filiale/huatong/android/CurrentCreate.vue +564 -564
  49. package/src/filiale/huatong/android/SafecheckOrderV.vue +8 -0
  50. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -0
  51. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -0
  52. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  53. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -0
  54. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +780 -0
  55. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  56. package/src/filiale/kelai/android.js +1 -0
  57. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -0
  58. package/src/filiale/liaoyuan/android.js +1 -0
  59. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  60. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  61. package/src/filiale/qianneng/pc/PaperList.vue +6 -0
  62. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
  63. package/src/filiale/tianke/pc/checkScreen.vue +4 -4
  64. package/src/filiale/tianke/pc/cq.jpg +0 -0
  65. package/src/filiale/tianke/pc/qy.jpg +0 -0
  66. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  67. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +371 -401
  68. package/src/filiale/wensu/android/AndroidDefectDeal.vue +321 -366
  69. package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
  70. package/src/filiale/wensu/android.js +1 -0
  71. package/src/filiale/wensu/pc/CheckSearchUser.vue +64 -0
  72. package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
  73. package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
  74. package/src/filiale/wensu/pc/RoleSelector.vue +4 -1
  75. package/src/filiale/wensu/pc/checkUserList.vue +50 -0
  76. package/src/filiale/wensu/pc.js +2 -1
  77. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  78. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2069 -2041
  79. package/src/filiale/wuhai/pc/NewCheckpaper.vue +26 -24
  80. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  81. package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
  82. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -0
  83. package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
  84. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
  85. package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
  86. package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
  87. package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
  88. package/src/filiale/yongzhou/pc/communityDetail.vue +35 -12
  89. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +28 -14
  90. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +28 -14
  91. package/src/filiale/yongzhou/pc/safeDetail.vue +43 -15
  92. package/src/filiale/yongzhou/pc/safeStatistics.vue +16 -6
  93. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +81 -27
  94. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +56 -26
  95. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +16 -6
  96. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  97. package/src/filiale/yongzhou/pc.js +17 -12
  98. package/src/filiale/zhongsheng/android/CurrentCreate.vue +540 -536
  99. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  100. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  101. package/src/main.js +1 -1
  102. package/src/safecheck.js +12 -0
@@ -8,34 +8,34 @@
8
8
  <img class="butt3" :src="imgback('基本信息')">
9
9
  </span>
10
10
  </div>
11
- <div class="panel-body " id="upuserinfo_sel" v-show="headername=='基本信息'">
11
+ <div class="panel-body " id="upuserinfo_sel" v-show="headername == '基本信息'">
12
12
  <div class="row auto" style="margin: 5px 0">
13
13
  <label class="righttxt">用户编号:</label>
14
- <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly/>
14
+ <input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_userinfo_code" readonly />
15
15
  </div>
16
16
  <div class="row auto" style="margin: 5px 0">
17
17
  <label class="righttxt">用户名称:</label><input type="text" class="form-control rightipt"
18
- v-model="userinfo.baseinfo.base.f_user_name" readonly/>
18
+ v-model="userinfo.baseinfo.base.f_user_name" readonly />
19
19
  </div>
20
20
  <div class="row auto" style="margin: 5px 0">
21
21
  <label class="righttxt">用户状态:</label><input type="text" class="form-control rightipt" readonly
22
- v-model="userinfo.baseinfo.base.f_user_state"/>
22
+ v-model="userinfo.baseinfo.base.f_user_state" />
23
23
  </div>
24
24
  <div class="row auto" style="margin: 5px 0">
25
25
  <label class="righttxt">用户电话:</label><input type="text" class="form-control rightipt"
26
- v-model="userinfo.baseinfo.base.f_user_phone"/>
26
+ v-model="userinfo.baseinfo.base.f_user_phone" />
27
27
  </div>
28
28
  <div class="row auto" style="margin: 5px 0">
29
29
  <label class="righttxt">租户姓名:</label><input type="text" class="form-control rightipt"
30
- v-model="userinfo.baseinfo.base.f_rent_name"/>
30
+ v-model="userinfo.baseinfo.base.f_rent_name" />
31
31
  </div>
32
32
  <div class="row auto" style="margin: 5px 0">
33
33
  <label class="righttxt">租户电话:</label><input type="text" class="form-control rightipt"
34
- v-model="userinfo.baseinfo.base.f_zuhu_phone"/>
34
+ v-model="userinfo.baseinfo.base.f_zuhu_phone" />
35
35
  </div>
36
36
  <div class="row auto" style="margin: 5px 0">
37
37
  <label class="righttxt">建档日期:</label><input type="text" class="form-control rightipt"
38
- v-model="userinfo.baseinfo.base.f_createfile_date" readonly/>
38
+ v-model="userinfo.baseinfo.base.f_createfile_date" readonly />
39
39
  </div>
40
40
  <!-- <div class="row auto" style="margin: 5px 0">
41
41
  <label class="righttxt">开户日期:</label><input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_open_date" readonly />
@@ -44,11 +44,11 @@
44
44
  <label class="righttxt">地址类型:</label>
45
45
  <div class="rightipt" style="display: flex;justify-content: space-around;margin-top: 5px">
46
46
  <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
47
- id="phone_addressType1" value="普通地址"/><label style="font-weight: normal;padding-left: 2px"
48
- for="phone_addressType1">普通地址</label></div>
47
+ id="phone_addressType1" value="普通地址" /><label style="font-weight: normal;padding-left: 2px"
48
+ for="phone_addressType1">普通地址</label></div>
49
49
  <div><input type="radio" v-model="addressType" name="addressType" @change="changeAddressType"
50
- id="phone_addressType2" value="特殊地址"/><label style="font-weight: normal;padding-left: 2px"
51
- for="phone_addressType2">特殊地址</label></div>
50
+ id="phone_addressType2" value="特殊地址" /><label style="font-weight: normal;padding-left: 2px"
51
+ for="phone_addressType2">特殊地址</label></div>
52
52
  </div>
53
53
  <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
54
54
  <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
@@ -60,7 +60,7 @@
60
60
  <div class="row auto" style="margin: 5px 0">
61
61
  <label class="righttxt">地区类型:</label>
62
62
  <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
63
- <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity"/>
63
+ <input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_iscity" />
64
64
  <!--<v-select :value.sync="userinfo.addressinfo.f_iscity" class="input-font" style="margin-left: 5%;"
65
65
  :width="'60%'"
66
66
  :disabled="true"
@@ -71,31 +71,23 @@
71
71
  <label class="righttxt">省&ensp;市&ensp;区:</label>
72
72
  <!--<input type="text" style="width: 75%;float:right" class="form-control" v-model="row.f_devices_type" />-->
73
73
  <!--<input type="text" class="form-control rightipt" readonly v-model="userinfo.addressinfo.f_pcd" />-->
74
- <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;"
75
- :width="'60%'"
76
- v-model="selectPcd"
77
- :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
74
+ <v-select :value.sync="selectPcd" class="input-font" style="margin-left: 5%;" :width="'60%'"
75
+ v-model="selectPcd" :options='pcds' placeholder='请选择省市区' close-on-select clear-button value-single
78
76
  @change="pcd_change()"></v-select>
79
77
  </div>
80
78
  <div class="row auto" style="margin: 5px 0">
81
79
  <label class="righttxt">街道名称:</label>
82
80
  <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_street" />-->
83
- <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;"
84
- :width="'60%'"
85
- v-model="selectStreet"
86
- :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
81
+ <v-select :value.sync="selectStreet" class="input-font" style="margin-left: 5%;" :width="'60%'"
82
+ v-model="selectStreet" :options='streets' placeholder='请选择街道' close-on-select clear-button value-single
87
83
  @change="street_change()"></v-select>
88
84
  </div>
89
85
  <div class="row auto" style="margin: 5px 0">
90
86
  <label class="righttxt">集收单位:</label>
91
87
  <!--<input type="text" readonly class="form-control rightipt" v-model="userinfo.addressinfo.f_residential_area" />-->
92
- <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;"
93
- :width="'60%'"
94
- v-model="selectArea"
95
- :timeout="500"
96
- @select-search="select_search"
97
- :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single
98
- @change="area_change()"></v-select>
88
+ <v-select :value.sync="selectArea" class="input-font" style="margin-left: 5%;" :width="'60%'"
89
+ v-model="selectArea" :timeout="500" @select-search="select_search" :options='area' placeholder='请选择集收单位'
90
+ close-on-select clear-button value-single @change="area_change()"></v-select>
99
91
  </div>
100
92
  <!--<div class="row auto" style="margin: 5px 0" v-show="addressType=='特殊地址'">
101
93
  <label class="righttxt">集收单位:</label>
@@ -106,34 +98,30 @@
106
98
  @select-search="select_search"
107
99
  :options='area' placeholder='请选择集收单位' close-on-select clear-button value-single @change="area_changeTC()"></v-select>
108
100
  </div>-->
109
- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
101
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
110
102
  <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;号:</label><input type="text" @change="changeNewAddress"
111
- class="form-control rightipt"
112
- v-model="userinfo.addressinfo.f_building"/>
103
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_building" />
113
104
  </div>
114
- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
105
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
115
106
  <label class="righttxt">单&ensp;&ensp;&ensp;&ensp;元:</label><input type="text" @change="changeNewAddress"
116
- class="form-control rightipt"
117
- v-model="userinfo.addressinfo.f_unit"/>
107
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_unit" />
118
108
  </div>
119
- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
109
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
120
110
  <label class="righttxt">楼&ensp;&ensp;&ensp;&ensp;层:</label><input type="text" @change="changeNewAddress"
121
- class="form-control rightipt"
122
- v-model="userinfo.addressinfo.f_floor"/>
111
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_floor" />
123
112
  </div>
124
- <div class="row auto" style="margin: 5px 0" v-show="addressType=='普通地址'">
113
+ <div class="row auto" style="margin: 5px 0" v-show="addressType == '普通地址'">
125
114
  <label class="righttxt">门&ensp;牌&ensp;号:</label><input type="text" @change="changeNewAddress"
126
- class="form-control rightipt"
127
- v-model="userinfo.addressinfo.f_room"/>
115
+ class="form-control rightipt" v-model="userinfo.addressinfo.f_room" />
128
116
  </div>
129
117
  <div class="row auto" style="margin: 5px 0">
130
118
  <label class="righttxt">详细地址:</label><input type="text" class="form-control rightipt" readonly
131
- v-model="userinfo_old.addressinfo.f_address"/>
119
+ v-model="userinfo_old.addressinfo.f_address" />
132
120
  </div>
133
121
  <div class="row auto" style="margin: 5px 0">
134
122
  <label class="righttxt">新&ensp;地&ensp;址:</label>
135
123
  <!--<input type="text" class="form-control rightipt" readonly v-model="getaddress()" />-->
136
- <textarea :readonly="addressType=='普通地址'" class="form-control rightipt" : style="height: 80px"
124
+ <textarea :readonly="addressType == '普通地址'" class="form-control rightipt" : style="height: 80px"
137
125
  v-model="userinfo.addressinfo.f_address"></textarea>
138
126
  </div>
139
127
 
@@ -144,8 +132,7 @@
144
132
 
145
133
  <div class="row auto" style="margin: 5px 0">
146
134
  <label class="righttxt">备&ensp;&ensp;&ensp;&ensp;注:</label><textarea class="form-control rightipt"
147
- style="height: 150px"
148
- v-model="userinfo.baseinfo.base.f_remark"></textarea>
135
+ style="height: 150px" v-model="userinfo.baseinfo.base.f_remark"></textarea>
149
136
  <!--<input type="text" class="form-control rightipt" v-model="userinfo.baseinfo.base.f_remark" />-->
150
137
  </div>
151
138
  </div>
@@ -157,96 +144,68 @@
157
144
  <img class="butt3" :src="imgback('表具信息')">
158
145
  </span>
159
146
  </div>
160
- <div class="panel-body " v-show="headername=='表具信息'">
147
+ <div class="panel-body " v-show="headername == '表具信息'">
161
148
  <div class="row auto" style="margin: 5px 0">
162
149
  <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;号:</label>
163
- <input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify!='机表'" class="form-control rightipt"
164
- style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber"/>
150
+ <input type="text" :readonly="userinfo.meterinfo[0].f_meter_classify != '机表'" class="form-control rightipt"
151
+ style="width: 45%" v-model="userinfo.meterinfo[0].f_meternumber" />
165
152
  <button type="button"
166
- :disabled="!(userinfo.meterinfo[0].f_meter_classify=='机表' || userinfo.meterinfo[0].f_meter_classify=='金额卡表' || userinfo.meterinfo[0].f_meter_classify=='气量卡表')"
153
+ :disabled="!(userinfo.meterinfo[0].f_meter_classify == '机表' || userinfo.meterinfo[0].f_meter_classify == '金额卡表' || userinfo.meterinfo[0].f_meter_classify == '气量卡表')"
167
154
  name="button" class="btn btn-primary" style="width: 15%" @click="scan">扫码
168
155
  </button>
169
156
  </div>
170
157
 
171
158
  <div class="row auto" style="margin: 5px 0">
172
159
  <label class="righttxt">通&ensp;气&ensp;人:</label>
173
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_gas_person"/>
160
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_gas_person" />
174
161
  </div>
175
162
  <div class="row auto" style="margin: 5px 0">
176
163
  <label class="righttxt">通气时间:</label>
177
- <datepicker class="rightipt"
178
- :value.sync="userinfo.meterinfo[0].f_gas_date"
179
- v-model="userinfo.meterinfo[0].f_gas_date"
180
- :disabled-days-of-Week="[]"
181
- :format="'yyyy-MM-dd'"
164
+ <datepicker class="rightipt" :value.sync="userinfo.meterinfo[0].f_gas_date"
165
+ v-model="userinfo.meterinfo[0].f_gas_date" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'"
182
166
  :show-reset-button="reset">
183
167
  </datepicker>
184
168
  </div>
185
169
  <div class="row auto" style="margin: 5px 0" v-show="showBox">
186
170
  <label class="righttxt">调&ensp;压&ensp;箱:</label>
187
- <v-select class="rightipt"
188
- :value.sync="userinfo.meterinfo[0].f_adjustable_id"
189
- v-model="userinfo.meterinfo[0].f_adjustable_id"
190
- placeholder='请选择'
191
- :width='wid'
192
- readonly
193
- :options="boxOptions"
194
- close-on-select value-single></v-select>
171
+ <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_adjustable_id"
172
+ v-model="userinfo.meterinfo[0].f_adjustable_id" placeholder='请选择' :width='wid' readonly
173
+ :options="boxOptions" close-on-select value-single></v-select>
195
174
  </div>
196
175
  <div class="row auto" style="margin: 5px 0">
197
176
  <label class="righttxt">是否直通:</label>
198
- <v-select
199
- :value.sync="userinfo.meterinfo[0].f_if_direct"
200
- class="input-font"
201
- style="margin-left: 5%;"
202
- :width="'60%'"
203
- v-model="userinfo.meterinfo[0].f_if_direct"
204
- :options='directOptions'
205
- placeholder='是否直通'
206
- close-on-select
207
- clear-button
208
- value-single>
177
+ <v-select :value.sync="userinfo.meterinfo[0].f_if_direct" class="input-font" style="margin-left: 5%;"
178
+ :width="'60%'" v-model="userinfo.meterinfo[0].f_if_direct" :options='directOptions' placeholder='是否直通'
179
+ close-on-select clear-button value-single>
209
180
  </v-select>
210
181
  </div>
211
182
  <div class="row auto" style="margin: 5px 0">
212
183
  <label class="righttxt">表&ensp;封&ensp;号:</label>
213
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles"/>
184
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_metertitles" />
214
185
  </div>
215
186
  <div class="row auto" style="margin: 5px 0">
216
187
  <label class="righttxt">表&ensp;位&ensp;置:</label>
217
188
  <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
218
189
  <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_position"
219
- v-model="userinfo.meterinfo[0].f_position"
220
- placeholder='请选择'
221
- :width='wid'
222
- readonly
223
- :options="wz_types"
190
+ v-model="userinfo.meterinfo[0].f_position" placeholder='请选择' :width='wid' readonly :options="wz_types"
224
191
  close-on-select value-single></v-select>
225
192
  </div>
226
193
  <div class="row auto" style="margin: 5px 0">
227
194
  <label class="righttxt">表&ensp;&ensp;&ensp;&ensp;向:</label>
228
195
  <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
229
196
  <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_aroundmeter"
230
- v-model="userinfo.meterinfo[0].f_aroundmeter"
231
- placeholder='请选择'
232
- :width='wid'
233
- readonly
234
- :options="aroundmeters"
235
- close-on-select value-single></v-select>
197
+ v-model="userinfo.meterinfo[0].f_aroundmeter" placeholder='请选择' :width='wid' readonly
198
+ :options="aroundmeters" close-on-select value-single></v-select>
236
199
  </div>
237
200
  <div class="row auto" style="margin: 5px 0">
238
201
  <label class="righttxt">气表类型:</label>
239
- <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly/>
202
+ <input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_meter_classify" readonly />
240
203
  </div>
241
204
  <div class="row auto" style="margin: 5px 0">
242
205
  <label class="righttxt">表前阀状态:</label>
243
206
  <!--<input type="text" class="form-control rightipt" v-model="userinfo.meterinfo[0].f_position" readonly/>-->
244
207
  <v-select class="rightipt" :value.sync="userinfo.meterinfo[0].f_bqf_state"
245
- v-model="userinfo.meterinfo[0].f_bqf_state"
246
- placeholder='请选择'
247
- :width='wid'
248
- readonly
249
- :options="bqf_states"
208
+ v-model="userinfo.meterinfo[0].f_bqf_state" placeholder='请选择' :width='wid' readonly :options="bqf_states"
250
209
  close-on-select value-single></v-select>
251
210
  </div>
252
211
  <!-- <div class="row auto" style="margin: 5px 0">
@@ -261,94 +220,69 @@
261
220
  <span class="spanboder"><img src="../../assets/list.png" style="width: 22px;margin-right: 8px;">设备信息<img
262
221
  class="butt3" :src="imgback('设备信息')"></span>
263
222
  </div>
264
- <div class="panel-body" v-show="headername=='设备信息'">
265
- <div class="row" v-for="(idx,row) in model"
223
+ <div class="panel-body" v-show="headername == '设备信息'">
224
+ <div class="row" v-for="(idx, row) in model"
266
225
  style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; box-shadow: #00b3ee;margin-bottom: 10px">
267
226
  <div class="row auto" style="margin: 5px 0">
268
227
  <label class="righttxt">设备类型:</label>
269
228
  <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
270
- <v-select class="rightipt" :value.sync="row.f_devices_type"
271
- v-model="row.f_devices_type"
272
- placeholder='请选择'
273
- @change="getServiceLife(idx,row.f_devices_type)"
274
- :width='wid'
275
- readonly
276
- :options="devices_types"
229
+ <v-select class="rightipt" :value.sync="row.f_devices_type" v-model="row.f_devices_type" placeholder='请选择'
230
+ @change="getServiceLife(idx, row.f_devices_type)" :width='wid' readonly :options="devices_types"
277
231
  close-on-select value-single></v-select>
278
232
  </div>
279
233
  <div class="row auto" style="margin: 5px 0">
280
234
  <label class="righttxt">设备品牌:</label>
281
- <input type="text" class="form-control rightipt"
282
- v-model="row.f_brand"/>
235
+ <input type="text" class="form-control rightipt" v-model="row.f_brand" />
283
236
  </div>
284
237
  <div class="row auto" style="margin: 5px 0">
285
238
  <label class="righttxt">设备型号:</label><input type="text" class="form-control rightipt"
286
- v-model="row.f_devices_model"/>
239
+ v-model="row.f_devices_model" />
287
240
  </div>
288
241
  <div class="row auto" style="margin: 5px 0" v-if="false">
289
242
  <label class="righttxt">生产日期:</label>
290
- <datepicker class="rightipt"
291
- :value.sync="row.f_make_date"
292
- v-model="row.f_make_date"
293
- :disabled-days-of-Week="[]"
294
- :format="'yyyy-MM-dd'"
295
- :show-reset-button="reset" readonly="readonly">
243
+ <datepicker class="rightipt" :value.sync="row.f_make_date" v-model="row.f_make_date"
244
+ :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
296
245
  </datepicker>
297
246
  </div>
298
247
  <div class="row auto" style="margin: 5px 0">
299
248
  <label class="righttxt">安装日期:</label>
300
- <datepicker class="rightipt"
301
- @change="countExpireFate(idx,row.f_input_date)"
302
- :value.sync="row.f_input_date"
303
- v-model="row.f_input_date"
304
- :disabled-days-of-Week="[]"
305
- :format="'yyyy-MM-dd'"
306
- :show-reset-button="reset" readonly="readonly">
249
+ <datepicker class="rightipt" @change="countExpireFate(idx, row.f_input_date)" :value.sync="row.f_input_date"
250
+ v-model="row.f_input_date" :disabled-days-of-Week="[]" :format="'yyyy-MM-dd'" :show-reset-button="reset"
251
+ readonly="readonly">
307
252
  </datepicker>
308
253
  </div>
309
254
  <div class="row auto" style="margin: 5px 0">
310
255
  <label class="righttxt">使用年限:</label><input type="number" class="form-control rightipt"
311
- v-model="row.f_service_life" readonly/>
256
+ v-model="row.f_service_life" readonly />
312
257
  </div>
313
258
  <div class="row auto" style="margin: 5px 0">
314
259
  <label class="righttxt">到期日期:</label>
315
- <input type="text" class="form-control rightipt"
316
- v-model="row.f_expire_date" readonly/>
260
+ <input type="text" class="form-control rightipt" v-model="row.f_expire_date" readonly />
317
261
  </div>
318
262
  <div class="row auto" style="margin: 5px 0">
319
263
  <label class="righttxt">安&ensp;装&ensp;人:</label><input type="text" class="form-control rightipt"
320
- v-model="row.f_input_person"/>
264
+ v-model="row.f_input_person" />
321
265
  </div>
322
266
  <div class="row auto" style="margin: 5px 0">
323
267
  <label class="righttxt">设备数量:</label><input type="number" class="form-control rightipt"
324
- v-model="row.f_devices_num"/>
268
+ v-model="row.f_devices_num" />
325
269
  </div>
326
270
  <div class="row auto" style="margin: 5px 0">
327
271
  <label class="righttxt">管道类型:</label>
328
272
  <!--<input type="text" class="form-control rightipt" readonly v-model="row.f_devices_type" />-->
329
- <v-select class="rightipt" :value.sync="row.f_pipe_type"
330
- v-model="row.f_pipe_type"
331
- placeholder='请选择'
332
- :width='wid'
333
- readonly
334
- :options="pipe_types"
335
- close-on-select value-single></v-select>
273
+ <v-select class="rightipt" :value.sync="row.f_pipe_type" v-model="row.f_pipe_type" placeholder='请选择'
274
+ :width='wid' readonly :options="pipe_types" close-on-select value-single></v-select>
336
275
  </div>
337
276
  <div class="row auto" style="margin: 5px 0">
338
277
  <label class="righttxt">安装日期:</label>
339
- <datepicker class="rightipt"
340
- @change="countExpireFate_pipe(idx,row.f_pipeinstall_date,row.f_pipe_type)"
341
- :value.sync="row.f_pipeinstall_date"
342
- v-model="row.f_pipeinstall_date"
343
- :disabled-days-of-Week="[]"
344
- :format="'yyyy-MM-dd'"
345
- :show-reset-button="reset" readonly="readonly">
278
+ <datepicker class="rightipt" @change="countExpireFate_pipe(idx, row.f_pipeinstall_date, row.f_pipe_type)"
279
+ :value.sync="row.f_pipeinstall_date" v-model="row.f_pipeinstall_date" :disabled-days-of-Week="[]"
280
+ :format="'yyyy-MM-dd'" :show-reset-button="reset" readonly="readonly">
346
281
  </datepicker>
347
282
  </div>
348
283
  <div class="row auto" style="margin: 5px 0">
349
284
  <label class="righttxt">到期日期:</label>
350
- <input type="text" class="form-control rightipt"
351
- v-model="row.f_pipeexpire_date" readonly/>
285
+ <input type="text" class="form-control rightipt" v-model="row.f_pipeexpire_date" readonly />
352
286
  </div>
353
287
  <!--<div class="row auto" style="margin: 5px 0">
354
288
  <label class="righttxt">设备状态:</label><input type="text" class="form-control rightipt" readonly v-model="row.f_userinfodevices_state" />
@@ -357,7 +291,7 @@
357
291
  <label class="righttxt">购买方式:</label><input type="text" class="form-control rightipt" readonly v-model="row.watchpurchase" />
358
292
  </div>-->
359
293
  <div style="display: flex;justify-content: center;margin-bottom: 3px"
360
- v-if="$index>this.userinfo_old.devicesinfo.length-1 || this.userinfo_old.devicesinfo.length==0">
294
+ v-if="$index > this.userinfo_old.devicesinfo.length - 1 || this.userinfo_old.devicesinfo.length == 0">
361
295
  <button class="btn btn-warning" @click="delDevices($index)">删除设备</button>
362
296
  </div>
363
297
  </div>
@@ -378,9 +312,10 @@
378
312
  </template>
379
313
 
380
314
  <script>
381
- import {HttpResetClass} from 'vue-client'
315
+ import { HttpResetClass } from 'vue-client'
382
316
  import * as Util from "../Util";
383
317
  import Vue from 'vue'
318
+ import { toStandardDateString } from "../Util";
384
319
 
385
320
  export default {
386
321
  title: '设备查看',
@@ -394,10 +329,10 @@
394
329
  wid: "60%",
395
330
  aroundmeters: [],
396
331
  devices_types: [],
397
- pipe_types: [{label: '包覆管', value: '包覆管'}, {label: '波纹管', value: '波纹管'}],
332
+ pipe_types: [{ label: '包覆管', value: '包覆管' }, { label: '波纹管', value: '波纹管' }],
398
333
  wz_types: [],
399
- cityTypes: [{label: '市区', value: '市区'}, {label: '城镇', value: '城镇'}],
400
- bqf_states: [{label: '开阀', value: '开阀'}, {label: '关阀', value: '关阀'}],
334
+ cityTypes: [{ label: '市区', value: '市区' }, { label: '城镇', value: '城镇' }],
335
+ bqf_states: [{ label: '开阀', value: '开阀' }, { label: '关阀', value: '关阀' }],
401
336
  pcds: [],
402
337
  streets: [],
403
338
  update: false,
@@ -406,9 +341,9 @@
406
341
  area: [],
407
342
  enable: false,
408
343
  f_meterno_path: Vue.nopic,
409
- selectArea: {id: ''},
410
- selectPcd: {id: ''},
411
- selectStreet: {id: ''},
344
+ selectArea: { id: '' },
345
+ selectPcd: { id: '' },
346
+ selectStreet: { id: '' },
412
347
  changemeterno: false,//是否修改了机表表号
413
348
  approveChange: false,//是否需要进行信息变更审核
414
349
  newAddress: '',
@@ -436,7 +371,7 @@
436
371
  },
437
372
  boxOptions: [],
438
373
  showBox: false,
439
- directOptions: [{label: '是', value: '是'}, {label: '否', value: '否'}],
374
+ directOptions: [{ label: '是', value: '是' }, { label: '否', value: '否' }],
440
375
  deviceBrandOption: {},
441
376
  isNeedAudit: this.$appdata.getSingleValue('信息变更是否需要审核') == 'false' ? false : true
442
377
  }
@@ -449,34 +384,34 @@
449
384
  f_source: ''
450
385
  },
451
386
  methods: {
452
- countExpireFate_pipe(index,dateTime,type){
387
+ countExpireFate_pipe(index, dateTime, type) {
453
388
  let old = new Date(dateTime)
454
- let newYear = old.getFullYear()+Number(this.$appdata.getSingleValue(type+'-年限') || 0)
455
- let month = old.getMonth()+1
456
- let date = old.getDate()
457
- this.model[index].f_pipeexpire_date = newYear + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
389
+ let newYear = old.getFullYear() + Number(this.$appdata.getSingleValue(type + '-年限') || 0)
390
+ let month = old.getMonth() + 1
391
+ let date = old.getDate()
392
+ this.model[index].f_pipeexpire_date = newYear + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
458
393
  },
459
- countExpireFate(index,dateTime){
394
+ countExpireFate(index, dateTime) {
460
395
  let old = new Date(dateTime)
461
- let newYear = old.getFullYear()+Number(this.model[index].f_service_life)
462
- let month = old.getMonth()+1
463
- let date = old.getDate()
464
- this.model[index].f_expire_date = newYear + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
396
+ let newYear = old.getFullYear() + Number(this.model[index].f_service_life)
397
+ let month = old.getMonth() + 1
398
+ let date = old.getDate()
399
+ this.model[index].f_expire_date = newYear + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
465
400
  },
466
- getServiceLife(index,type){
467
- const year = this.$appdata.getSingleValue(type+'-'+this.userinfo.meterinfo[0].f_user_type+'-年限') || 0
401
+ getServiceLife(index, type) {
402
+ const year = this.$appdata.getSingleValue(type + '-' + this.userinfo.meterinfo[0].f_user_type + '-年限') || 0
468
403
  this.model[index].f_service_life = year
469
404
  },
470
- dateAddYear(dateTime,year){
405
+ dateAddYear(dateTime, year) {
471
406
  let old = new Date(dateTime)
472
- let newYear = old.getFullYear()+Number(year)
473
- let month = old.getMonth()+1
474
- let date = old.getDate()
475
- return newYear + '-' + (month<10? '0'+ month : month) + '-' + (date<10? '0'+ date : date)
407
+ let newYear = old.getFullYear() + Number(year)
408
+ let month = old.getMonth() + 1
409
+ let date = old.getDate()
410
+ return newYear + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
476
411
  },
477
412
  scan() {
478
413
  HostApp.__this__ = this,
479
- HostApp.scanCode({callback: "javascript:HostApp.__this__.getCode();"})
414
+ HostApp.scanCode({ callback: "javascript:HostApp.__this__.getCode();" })
480
415
  },
481
416
  getCode() {
482
417
  var datapa = HostApp.getCode().data;
@@ -488,28 +423,28 @@
488
423
  //检查一些必要信息是否未填
489
424
  this.approveChange = false
490
425
  this.changemeterno = false
491
- let checked = {ischeck: true, msg: ''}
426
+ let checked = { ischeck: true, msg: '' }
492
427
  //tag
493
428
  //tag
494
429
  //tag
495
430
  if (!this.userinfo.baseinfo.base.f_user_name) {
496
- checked = {ischeck: false, msg: '请输入用户名称!'}
431
+ checked = { ischeck: false, msg: '请输入用户名称!' }
497
432
  }
498
433
  if (!this.selectPcd.id) {
499
- checked = {ischeck: false, msg: '请选择省市区!'}
434
+ checked = { ischeck: false, msg: '请选择省市区!' }
500
435
  }
501
436
  if (!this.selectStreet.id) {
502
- checked = {ischeck: false, msg: '请选择街道!'}
437
+ checked = { ischeck: false, msg: '请选择街道!' }
503
438
  }
504
439
  if (!this.userinfo.addressinfo.f_address) {
505
- checked = {ischeck: false, msg: '新地址不能为空!'}
440
+ checked = { ischeck: false, msg: '新地址不能为空!' }
506
441
  }
507
442
  if (this.addressType == '普通地址') {
508
443
  if (!this.selectArea.id) {
509
- checked = {ischeck: false, msg: '请选择集收单位!'}
444
+ checked = { ischeck: false, msg: '请选择集收单位!' }
510
445
  }
511
446
  if (!this.userinfo.addressinfo.f_room) {
512
- checked = {ischeck: false, msg: '新输入门牌号!'}
447
+ checked = { ischeck: false, msg: '新输入门牌号!' }
513
448
  }
514
449
  }
515
450
  if (this.userinfo.meterinfo[0].f_meter_classify == '机表' && this.userinfo_old.meterinfo[0].f_meternumber) {
@@ -519,14 +454,14 @@
519
454
  if (this.userinfo.meterinfo[0].f_meternumber) {
520
455
  if (this.userinfo.meterinfo[0].f_meternumber != this.userinfo_old.meterinfo[0].f_meternumber) {
521
456
  if (!this.f_meterno_path || this.f_meterno_path == Vue.nopic) {
522
- checked = {ischeck: false, msg: '请拍摄表号照片!'}
457
+ checked = { ischeck: false, msg: '请拍摄表号照片!' }
523
458
  } else {
524
459
  //用来标识当前有修改机表表号,后台需要进行照片上传
525
460
  this.changemeterno = true
526
461
  }
527
462
  }
528
463
  } else {
529
- checked = {ischeck: false, msg: '请输入表号!'}
464
+ checked = { ischeck: false, msg: '请输入表号!' }
530
465
  }
531
466
  }
532
467
  //检查本次修改信息中是否包含需要审核的内容
@@ -574,12 +509,12 @@
574
509
  orderitem: "id",
575
510
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
576
511
  }
577
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
512
+ }, { resolveMsg: null, rejectMsg: null }).then((res) => {
578
513
  //tag)
579
514
  if (res.data.length > 0) {
580
515
  this.area = []
581
516
  res.data.forEach((result) => {
582
- this.area.push({label: result.f_residential_area, value: result})
517
+ this.area.push({ label: result.f_residential_area, value: result })
583
518
  })
584
519
  }
585
520
  })
@@ -667,13 +602,13 @@
667
602
  f_address: this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
668
603
  }
669
604
  }
670
- }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
605
+ }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
671
606
  if (res1.data.status == 200) {
672
607
  let data = this.userinfo.addressinfo
673
608
  data.f_address = this.userinfo_old.addressinfo.f_address ? this.userinfo_old.addressinfo.f_address : this.userinfo.addressinfo.f_address
674
609
  //
675
610
  data.f_operator = Vue.user.name
676
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/address_updateuseraddress`, {data: data}).then((res2) => {
611
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/address_updateuseraddress`, { data: data }).then((res2) => {
677
612
  this.$showMessage("修改用户地址信息成功!")
678
613
  }).catch(error => {
679
614
  this.$showMessage("修改用户地址信息!")
@@ -724,9 +659,9 @@
724
659
  data: {
725
660
  userinfo: userinfoms,
726
661
  modifyReason: this.f_source ? `${this.f_source}维护档案信息` : '',
727
- address: {id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id}
662
+ address: { id: this.userinfo_old.addressinfo.id, oldid: this.userinfo_old.addressinfo.id }
728
663
  }
729
- }, {resolveMsg: null, rejectMsg: null}).then((res1) => {
664
+ }, { resolveMsg: null, rejectMsg: null }).then((res1) => {
730
665
  if (res1.data.status == 200) {
731
666
  //本次修改信息包含需要审核信息
732
667
  // if (this.approveChange) {
@@ -836,7 +771,7 @@
836
771
  this.userinfo.addressinfo.f_residential_area = ''
837
772
  this.userinfo.addressinfo.f_residential_area_id = ''
838
773
  this.userinfo.addressinfo.f_slice_area = ''
839
- this.selectArea = {id: ''}
774
+ this.selectArea = { id: '' }
840
775
  this.area = []
841
776
  let pcdText = ` and f_street_id=${this.selectStreet.id}`
842
777
  let res = await new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
@@ -846,10 +781,10 @@
846
781
  orderitem: "id",
847
782
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText} `
848
783
  }
849
- }, {resolveMsg: null, rejectMsg: null})
784
+ }, { resolveMsg: null, rejectMsg: null })
850
785
  ////tag)
851
786
  res.data.forEach((result) => {
852
- this.area.push({label: result.f_residential_area, value: result})
787
+ this.area.push({ label: result.f_residential_area, value: result })
853
788
  })
854
789
  } else {
855
790
  this.area = []
@@ -865,11 +800,11 @@
865
800
  this.userinfo.addressinfo.f_pcd = this.selectPcd.f_pcd
866
801
  this.userinfo.addressinfo.f_pcd_id = this.selectPcd.id
867
802
  //清空 选中的街道和集收单位
868
- this.selectStreet = {id: ''}
803
+ this.selectStreet = { id: '' }
869
804
  this.userinfo.addressinfo.f_street = ''
870
805
  this.userinfo.addressinfo.f_street_id = ''
871
806
  this.userinfo.addressinfo.f_iscity = ''
872
- this.selectArea = {id: ''}
807
+ this.selectArea = { id: '' }
873
808
  this.userinfo.addressinfo.f_residential_area = ''
874
809
  this.userinfo.addressinfo.f_residential_area_id = ''
875
810
  this.userinfo.addressinfo.f_slice_area = ''
@@ -882,9 +817,9 @@
882
817
  orderitem: "id",
883
818
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
884
819
  }
885
- }, {resolveMsg: null, rejectMsg: null})
820
+ }, { resolveMsg: null, rejectMsg: null })
886
821
  streetlist.data.forEach((result) => {
887
- this.streets.push({label: result.f_street, value: result})
822
+ this.streets.push({ label: result.f_street, value: result })
888
823
  })
889
824
  } else {
890
825
  this.streets = []
@@ -919,7 +854,7 @@
919
854
  f_zones: Vue.user.zones
920
855
  }
921
856
  new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/entity/t_disable`,
922
- data, {resolveMsg: null, rejectMsg: null}).then((row) => {
857
+ data, { resolveMsg: null, rejectMsg: null }).then((row) => {
923
858
  this.$showMessage('已成功关阀停气!')
924
859
  this.userinfo.meterinfo[0].f_table_state = '停用'
925
860
  })
@@ -941,7 +876,7 @@
941
876
  "f_comments": null,
942
877
  "f_operate_date": Util.toStandardTimeString(),
943
878
  "f_operatorid": Vue.user.id,
944
- "f_service_life":'',
879
+ "f_service_life": '',
945
880
  "f_devices_num": null,
946
881
  "f_process_id": null,
947
882
  "f_devices_type": null,
@@ -951,7 +886,7 @@
951
886
  "f_brand": null,
952
887
  "f_devices_model": null,
953
888
  "f_devices_no": null,
954
- "img": {"content": null, "filename": null}
889
+ "img": { "content": null, "filename": null }
955
890
  }
956
891
  this.model.push(obj)
957
892
  },
@@ -974,10 +909,10 @@
974
909
  orderitem: "id",
975
910
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
976
911
  }
977
- }, {resolveMsg: null, rejectMsg: null})
912
+ }, { resolveMsg: null, rejectMsg: null })
978
913
  ////tag)
979
914
  res.data.forEach((result) => {
980
- this.area.push({label: result.f_residential_area, value: result})
915
+ this.area.push({ label: result.f_residential_area, value: result })
981
916
  })
982
917
  //tag
983
918
  this.area.push({
@@ -1004,14 +939,14 @@
1004
939
  orderitem: "id",
1005
940
  condition: `f_orgid = '${Vue.user.orgid}' ${pcdText}`
1006
941
  }
1007
- }, {resolveMsg: null, rejectMsg: null})
942
+ }, { resolveMsg: null, rejectMsg: null })
1008
943
  streetlist.data.forEach((result) => {
1009
944
  //如果第一次进来有地址id 就拿下地址区域
1010
945
  if (this.selectStreet.id && this.selectStreet.id == result.id) {
1011
946
  //tag)
1012
947
  this.userinfo.addressinfo.f_iscity = result.f_iscity
1013
948
  }
1014
- this.streets.push({label: result.f_street, value: result})
949
+ this.streets.push({ label: result.f_street, value: result })
1015
950
  })
1016
951
  } else {
1017
952
  this.streets = []
@@ -1098,21 +1033,36 @@
1098
1033
  orderitem: "id",
1099
1034
  condition: `f_orgid = '${Vue.user.orgid}'`
1100
1035
  }
1101
- }, {resolveMsg: null, rejectMsg: null})
1036
+ }, { resolveMsg: null, rejectMsg: null })
1102
1037
  //tag)
1103
1038
  pcdlist.data.forEach((result) => {
1104
- this.pcds.push({label: result.f_pcd, value: result})
1039
+ this.pcds.push({ label: result.f_pcd, value: result })
1105
1040
  })
1106
1041
  ////tag)
1107
1042
  let res = await new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/logic/filemanage_getFilesDetail`, {
1108
1043
  //f_userinfo_code:'12381344',
1109
1044
  f_userinfo_id: this.f_userinfo_id
1110
- }, {resolveMsg: null, rejectMsg: null})
1045
+ }, { resolveMsg: null, rejectMsg: null })
1111
1046
  //tag
1112
1047
  //tag
1113
1048
  this.userinfo = res.data
1114
1049
  this.userinfo_old = JSON.parse(JSON.stringify(res.data))
1115
1050
  this.model = this.userinfo.meterinfo[0].devicesinfo.concat(this.userinfo.meterinfo[0].devicesinfonew)
1051
+ //已经超期
1052
+ let now = Util.toStandardDateString()
1053
+ let overdue = this.model.filter(item => item.f_expire_date <= now).map(item => item.f_devices_type).join(',')
1054
+ //临近超期
1055
+
1056
+ const advent_time = (this.$appdata.getSingleValue('设备超期提醒') || 7) * 1000 * 60 * 60 * 24
1057
+ let advent = this.model.filter(item => (new Date(item.f_expire_date).getTime() - new Date().getTime()) >=0 && (new Date(item.f_expire_date).getTime() - new Date().getTime()) <= advent_time ).map(item => item.f_devices_type).join(',')
1058
+
1059
+ if (overdue && advent) {
1060
+ this.$showMessage(`${overdue}设备已过期,${advent}设备临近超期`)
1061
+ } else if (advent) {
1062
+ this.$showMessage(`${advent}设备临近超期`)
1063
+ } else if (overdue) {
1064
+ this.$showMessage(`${overdue}设备已过期`)
1065
+ }
1116
1066
  this.selectArea.id = this.userinfo.addressinfo.f_residential_area_id
1117
1067
  this.selectPcd.id = this.userinfo.addressinfo.f_pcd_id
1118
1068
  this.selectPcd.f_pcd = this.userinfo.addressinfo.f_pcd
@@ -1129,7 +1079,7 @@
1129
1079
  this.enable = true
1130
1080
  this.$showMessage('获取用户信息出错,请检查网络状况!')
1131
1081
  }
1132
- new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, {data: {}}, {
1082
+ new HttpResetClass().load('get', `${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`, { data: {} }, {
1133
1083
  resolveMsg: null,
1134
1084
  rejectMsg: null
1135
1085
  }).then((addressUnit) => {
@@ -1144,11 +1094,11 @@
1144
1094
  }).catch((msg) => {
1145
1095
  //tag)
1146
1096
  })
1147
- this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是'? true : false
1097
+ this.showBox = this.$appdata.getSingleValue('档案审核是否显示调压箱') == '是' ? true : false
1148
1098
  console.log(this.showBox)
1149
1099
  if (this.showBox) {
1150
1100
  // 获取调压箱
1151
- new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/adjustableboxQuery`, {data: {condition: '1 = 1'}}, {
1101
+ new HttpResetClass().load('post', `${this.$androidUtil.getProxyUrl()}/rs/sql/adjustableboxQuery`, { data: { condition: '1 = 1' } }, {
1152
1102
  resolveMsg: null,
1153
1103
  rejectMsg: null
1154
1104
  }).then((res) => {