archiveDetail.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. <template>
  2. <view class="appWrapper archiveDetail">
  3. <form action="">
  4. <view class="form-item">
  5. <view class="title">
  6. 户号:
  7. </view>
  8. <view class="sub">{{detailInfo.account_number}}</view>
  9. </view>
  10. <view class="form-item">
  11. <view class="title">流变变比:</view>
  12. <view class="sub">{{detailInfo.rheological_change}}</view>
  13. </view>
  14. <view class="form-item">
  15. <view class="title" style="width:240rpx">单路电源容量:</view>
  16. <view class="sub">{{detailInfo.power_capacity}}</view>
  17. </view>
  18. <view class="form-item">
  19. <view class="title">线路:</view>
  20. <view class="sub">{{detailInfo.route_name}}</view>
  21. </view>
  22. <view class="form-item">
  23. <view class="title">站点名称:</view>
  24. <view class="sub">{{detailInfo.site_name}}</view>
  25. </view>
  26. <view class="form-item">
  27. <view class="title">监察:</view>
  28. <view class="sub">{{detailInfo.supervision_name}}</view>
  29. </view>
  30. <view class="form-item">
  31. <view class="title">电试报告时间:</view>
  32. <view class="sub">{{detailInfo.electric_test_overdue}}</view>
  33. </view>
  34. <view class="eleTime">
  35. <image src="/static/noteIcon.png"></image>
  36. <view>距离电试超期还有 <span>730</span> 天</view>
  37. </view>
  38. <view class="info-tit margin-left-xs">
  39. <text class="cuIcon-titles margin-right-xs"></text>
  40. 现场问题
  41. </view>
  42. <view class="form-item extraDis">
  43. <view class="title">电缆孔洞:</view>
  44. <radio-group name="gender">
  45. <label class="margin-right-xl">
  46. <radio disabled ="true" value="是" :checked='detailInfo.cable_hole == 1' /><text>是</text>
  47. </label>
  48. <label>
  49. <radio disabled ="true" value="否" :checked='detailInfo.cable_hole == 0'/><text>否</text>
  50. </label>
  51. </radio-group>
  52. </view>
  53. <view class="form-item extraDis">
  54. <view class="title">门窗、墙壁破损:</view>
  55. <radio-group name="gender">
  56. <label class="margin-right-xl">
  57. <radio disabled ="true" value="是" :checked='detailInfo.damage == 1' /><text>是</text>
  58. </label>
  59. <label>
  60. <radio disabled ="true" value="否" :checked='detailInfo.damage == 0'/><text>否</text>
  61. </label>
  62. </radio-group>
  63. </view>
  64. <view class="form-item extraDis">
  65. <view class="title">屋顶墙壁渗漏水:</view>
  66. <radio-group name="gender">
  67. <label class="margin-right-xl">
  68. <radio disabled ="true" value="是" :checked='detailInfo.water_leakage == 1' /><text>是</text>
  69. </label>
  70. <label>
  71. <radio disabled ="true" value="否" :checked='detailInfo.water_leakage == 0'/><text>否</text>
  72. </label>
  73. </radio-group>
  74. </view>
  75. <view class="form-item extraDis">
  76. <view class="title">灭火器配置不足:</view>
  77. <radio-group name="gender">
  78. <label class="margin-right-xl">
  79. <radio disabled ="true" value="是" :checked='detailInfo.annihilator_insufficient_configuration == 1' /><text>是</text>
  80. </label>
  81. <label>
  82. <radio disabled ="true" value="否" :checked='detailInfo.annihilator_insufficient_configuration == 0'/><text>否</text>
  83. </label>
  84. </radio-group>
  85. </view>
  86. <view class="form-item extraDis">
  87. <view class="title">灭火器超期:</view>
  88. <radio-group name="gender">
  89. <label class="margin-right-xl">
  90. <radio disabled ="true" value="是" :checked='detailInfo.annihilator_overdue == 1' /><text>是</text>
  91. </label>
  92. <label>
  93. <radio disabled ="true" value="否" :checked='detailInfo.annihilator_overdue == 0'/><text>否</text>
  94. </label>
  95. </radio-group>
  96. </view>
  97. <view class="info-tit margin-left-xs">
  98. <text class="cuIcon-titles margin-right-xs"></text>
  99. 其他
  100. </view>
  101. <view class="form-item extraDis">
  102. <view class="title">堆放杂物:</view>
  103. <radio-group name="gender">
  104. <label class="margin-right-xl">
  105. <radio disabled ="true" value="是" :checked='detailInfo.pile_up_sundries == 1' /><text>是</text>
  106. </label>
  107. <label>
  108. <radio disabled ="true" value="否" :checked='detailInfo.pile_up_sundries == 0'/><text>否</text>
  109. </label>
  110. </radio-group>
  111. </view>
  112. <view class="form-item extraDis">
  113. <view class="title">积灰严重:</view>
  114. <radio-group name="gender">
  115. <label class="margin-right-xl">
  116. <radio disabled ="true" value="是" :checked='detailInfo.serious_ash_deposition == 1' /><text>是</text>
  117. </label>
  118. <label>
  119. <radio disabled ="true" value="否" :checked='detailInfo.serious_ash_deposition == 0'/><text>否</text>
  120. </label>
  121. </radio-group>
  122. </view>
  123. <view class="form-item extraDis">
  124. <view class="title">配电房周围环境潮湿:</view>
  125. <radio-group name="gender">
  126. <label class="margin-right-xl">
  127. <radio disabled ="true" value="是" :checked='detailInfo.around_environment_humid == 1' /><text>是</text>
  128. </label>
  129. <label>
  130. <radio disabled ="true" value="否" :checked='detailInfo.around_environment_humid == 0'/><text>否</text>
  131. </label>
  132. </radio-group>
  133. </view>
  134. <view class="form-item extraDis">
  135. <view class="title">配电房周围环境潮湿:</view>
  136. <radio-group name="gender">
  137. <label class="margin-right-xl">
  138. <radio disabled ="true" value="是" :checked='detailInfo.around_pile_up_sundries == 1' /><text>是</text>
  139. </label>
  140. <label>
  141. <radio disabled ="true" value="否" :checked='detailInfo.around_pile_up_sundries == 0'/><text>否</text>
  142. </label>
  143. </radio-group>
  144. </view>
  145. <view class="info-tit margin-left-xs">
  146. <text class="cuIcon-titles margin-right-xs"></text>
  147. 电工
  148. </view>
  149. <view class="form-item extraDis">
  150. <view class="title">无电工:</view>
  151. <radio-group name="gender">
  152. <label class="margin-right-xl">
  153. <radio disabled ="true" value="是" :checked='detailInfo.no_electrician == 1' /><text>是</text>
  154. </label>
  155. <label>
  156. <radio disabled ="true" value="否" :checked='detailInfo.no_electrician == 0'/><text>否</text>
  157. </label>
  158. </radio-group>
  159. </view>
  160. <view class="form-item extraDis">
  161. <view class="title">电工人数配置不足:</view>
  162. <radio-group name="gender">
  163. <label class="margin-right-xl">
  164. <radio disabled ="true" value="是" :checked='detailInfo.electrician_lack == 1' /><text>是</text>
  165. </label>
  166. <label>
  167. <radio disabled ="true" value="否" :checked='detailInfo.electrician_lack == 0'/><text>否</text>
  168. </label>
  169. </radio-group>
  170. </view>
  171. <view class="form-item extraDis">
  172. <view class="title">电工证超期:</view>
  173. <radio-group name="gender">
  174. <label class="margin-right-xl">
  175. <radio disabled ="true" value="是" :checked='detailInfo.overdue_electrician_certificate == 1' /><text>是</text>
  176. </label>
  177. <label>
  178. <radio disabled ="true" value="否" :checked='detailInfo.overdue_electrician_certificate == 0'/><text>否</text>
  179. </label>
  180. </radio-group>
  181. </view>
  182. <!-- 电试 -->
  183. <view class="info-tit margin-left-xs">
  184. <text class="cuIcon-titles margin-right-xs"></text>
  185. 电试
  186. </view>
  187. <view class="form-item extraDis">
  188. <view class="title">电试超期:</view>
  189. <radio-group name="gender">
  190. <label class="margin-right-xl">
  191. <radio disabled ="true" value="是" :checked='detailInfo.electric_test_overdue == 1' /><text>是</text>
  192. </label>
  193. <label>
  194. <radio disabled ="true" value="否" :checked='detailInfo.electric_test_overdue == 0'/><text>否</text>
  195. </label>
  196. </radio-group>
  197. </view>
  198. <!-- 设备 -->
  199. <view class="info-tit margin-left-xs">
  200. <text class="cuIcon-titles margin-right-xs"></text>
  201. 设备
  202. </view>
  203. <view class="form-item extraDis">
  204. <view class="title">设备老旧(标明出厂或投运日期):</view>
  205. <input type="text" disabled ="true" v-model="detailInfo.old_equipment" style="width:35%">
  206. </view>
  207. <!-- 安全工器具 -->
  208. <view class="info-tit margin-left-xs">
  209. <text class="cuIcon-titles margin-right-xs"></text>
  210. 安全工器具
  211. </view>
  212. <view class="form-item extraDis">
  213. <view class="title">配置不足(绝缘体):</view>
  214. <radio-group name="gender">
  215. <label class="margin-right-xl">
  216. <radio disabled ="true" value="是" :checked='detailInfo.blanket_insufficient_configuration == 1' /><text>是</text>
  217. </label>
  218. <label>
  219. <radio disabled ="true" value="否" :checked='detailInfo.blanket_insufficient_configuration == 0'/><text>否</text>
  220. </label>
  221. </radio-group>
  222. </view>
  223. <view class="form-item extraDis">
  224. <view class="title">接地线与存放位置编号:</view>
  225. <radio-group name="gender">
  226. <label class="margin-right-xl">
  227. <radio disabled ="true" value="是" :checked='detailInfo.ground_wire == 1' /><text>是</text>
  228. </label>
  229. <label>
  230. <radio disabled ="true" value="否" :checked='detailInfo.ground_wire == 0'/><text>否</text>
  231. </label>
  232. </radio-group>
  233. </view>
  234. <!-- 安全工器具 -->
  235. <view class="info-tit margin-left-xs">
  236. <text class="cuIcon-titles margin-right-xs"></text>
  237. 模拟屏
  238. </view>
  239. <view class="form-item extraDis">
  240. <view class="title">模拟屏:</view>
  241. <radio-group name="gender">
  242. <label class="margin-right-xl">
  243. <radio disabled ="true" value="是" :checked='detailInfo.analog_screen == 1' /><text>是</text>
  244. </label>
  245. <label>
  246. <radio disabled ="true" value="否" :checked='detailInfo.analog_screen == 0'/><text>否</text>
  247. </label>
  248. </radio-group>
  249. </view>
  250. <view class="form-item remark" >
  251. <view class="title">备注:</view>
  252. <!-- <input type="text" disabled="true" v-model="detailInfo.remarks"> -->
  253. <textarea name="" id="" disabled="true" v-model="detailInfo.remarks"></textarea>
  254. </view>
  255. <view v-if="this.control&&Object.keys(this.detailInfo).length!=0" class="btn-area submitBottomBtn padding-lr-sm " style="position:static">
  256. <button class="bg-blue round margin-top" @click="goArchiveEdit()">编 辑 </button>
  257. </view>
  258. <br>
  259. </form>
  260. </view>
  261. </template>
  262. <script>
  263. export default {
  264. data() {
  265. return {
  266. detailInfo:{},
  267. control:'',
  268. id:''
  269. }
  270. },
  271. onLoad: function(option) {
  272. console.log('option')
  273. console.log(this.detailInfo)
  274. if(option.siteId){
  275. // alert(1)
  276. this.getDataList({"site_id":option.siteId})
  277. }else{
  278. // alert(2)
  279. this.getDataList({"id":option.id})
  280. }
  281. this.control=option.mark;
  282. this.id=option.id;
  283. },
  284. methods: {
  285. goArchiveEdit(){
  286. uni.navigateTo({
  287. url: '/pages/siteArchive/siteArchiveAdd/siteArchiveAdd?id='+this.id,
  288. });
  289. },
  290. //数据请求
  291. async getDataList(params = {}) {
  292. const res = await this.$myRequest({
  293. url: 'Archives/getArchivesList',
  294. showLoading: true,
  295. data: params
  296. })
  297. console.log('res.data.data')
  298. console.log(res.data.data[0])
  299. this.detailInfo = res.data.data[0];
  300. if(!this.detailInfo){
  301. uni.showToast({
  302. title: "暂无档案信息!",
  303. icon: "none"
  304. });
  305. }
  306. },
  307. }
  308. }
  309. </script>
  310. <style lang="scss" >
  311. .form-item .title{
  312. width:242rpx
  313. }
  314. </style>