hiddenDangerItemsDetail.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943
  1. <!-- 检查详情 -->
  2. <template>
  3. <view class="snapshotDetail">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="list">
  6. <view class="list-li srearch">
  7. <view class="srearch-l">{{newData.subName?newData.subName:'实验室名称'}}</view>
  8. </view>
  9. <view class="list-li" style="margin-bottom: 20rpx;border:none;">
  10. <view>
  11. {{newData.roomNum?newData.roomNum:''}}房间&{{newData.buildName?newData.buildName:'楼栋'}}&{{newData.deptName?newData.deptName:'学院单位'}}
  12. </view>
  13. </view>
  14. <view v-if="newData.checkCollapse">
  15. <view class="list-li">
  16. <view>现场照片</view>
  17. </view>
  18. <view v-if="pageType==0" class="photo" @click="lockImg(newData.photoList)">
  19. <img v-for="(item,index) in newData.photoList" :src="baseUrl+item.fileUrl">
  20. </view>
  21. <view class="list-li" style="border-bottom: none;">
  22. <view> {{newData.hazardCheckCode?newData.hazardCheckCode:''}}
  23. {{newData.hazardCheckName?newData.hazardCheckName:'检查项'}}
  24. </view>
  25. </view>
  26. <view class="hazardCheckNum" @click="hiddenDangerClick()">
  27. <img class="hazardCheckNum-l" :src="imagesUrl('safetyCheck/icon_aqjc_yinhuan.png')">
  28. <view class="hazardCheckNum-r">{{'已连续出现'+hazardCheckNum+'次隐患'}} </view>
  29. </view>
  30. <view class="list-li">
  31. <view>隐患描述</view>
  32. <view></view>
  33. </view>
  34. <view class="hidden" v-if="!newData.checkFlag">
  35. <view class="hidden-content">{{newData.hazardDescribe}}</view>
  36. </view>
  37. <view v-if="pageType==1 || pageType==2" class="photo" @click="lockImg(newData.yhDtoList)">
  38. <img v-for="(item,index) in newData.yhDtoList" :src="baseUrl+item.fileUrl">
  39. </view>
  40. <!-- <view class="list-li">
  41. <view>检查人:</view>
  42. <view>{{newData.checkUserName}}</view>
  43. </view> -->
  44. <view class="list-li">
  45. <view>检查时间</view>
  46. <view>{{newData.checkTime}}</view>
  47. </view>
  48. </view>
  49. <view v-if="pageType==1 || pageType==2" v-for="(item,index) in newData.checkRectifyVoList" :key="index">
  50. <view class="list-li" v-if="item.rectifyTime" @click="rectifyCollapse(item)">
  51. <view>隐患整改</view>
  52. <view :id="item.rectifyResult?'fontColor-B':(item.rectifyResult?'fontColor-C':'')">
  53. {{item.rectifyResult?'已整改':(item.rectifyResult?'暂无法整改':'')}}
  54. <img v-if="!item.rectifyCollapse" :src="imagesUrl('commonality/icon_06.png')">
  55. <img v-if="item.rectifyCollapse" :src="imagesUrl('commonality/icon_06_1.png')">
  56. </view>
  57. </view>
  58. <view v-if="item.rectifyCollapse && item.rectifyTime">
  59. <view v-if="item.rectifyMeasure" class="hidden">
  60. <view class="hidden-content">{{item.rectifyMeasure}}</view>
  61. </view>
  62. <view class="photo" @click="lockImg(item.rectifyUploadList)">
  63. <img v-for="(item2,index2) in item.rectifyUploadList" :src="baseUrl+item2.fileUrl">
  64. </view>
  65. <view class="list-li">
  66. <view>整改者:</view>
  67. <view>{{item.rectifyName}}</view>
  68. </view>
  69. <view class="list-li">
  70. <view>整改时间</view>
  71. <view>{{item.rectifyTime}}</view>
  72. </view>
  73. </view>
  74. <view class="list-li" v-if="item.reviewTime" @click="reviewCollapse(item)">
  75. <view>复查验证</view>
  76. <view :id="item.examineResult?'fontColor-B':'fontColor-C'">
  77. {{item.examineResult?'复查完毕':'退回整改'}}
  78. <img v-if="!item.reviewCollapse" :src="imagesUrl('commonality/icon_06.png')">
  79. <img v-if="item.reviewCollapse" :src="imagesUrl('commonality/icon_06_1.png')">
  80. </view>
  81. </view>
  82. <view v-if="item.reviewCollapse && item.reviewTime">
  83. <view v-if="item.examineOpinion" class="hidden">
  84. <view class="hidden">
  85. <view class="hidden-content">{{item.examineOpinion}}</view>
  86. </view>
  87. </view>
  88. <view class="photo" @click="lockImg(item.examineUploadList)">
  89. <img v-for="(item3,index3) in item.examineUploadList" :src="baseUrl+item3.fileUrl">
  90. </view>
  91. <!-- <view class="list-li">
  92. <view>复查者:</view>
  93. <view>{{item.reviewName}}</view>
  94. </view> -->
  95. <view class="list-li">
  96. <view>复查时间</view>
  97. <view>{{item.reviewTime}}</view>
  98. </view>
  99. </view>
  100. </view>
  101. <view class="voice">
  102. <view class="voice_t">
  103. <view class="voice_t_t" v-if="!newData.voiceList[0]"><text>语音备注:</text><text></text></view>
  104. <view class="voice_t_b" v-if="newData.voiceList[0]">语音备注:({{newData.voiceList.length}})
  105. </view>
  106. </view>
  107. <view class="voice_b" v-if="newData.voiceList[0]"
  108. v-for="(voiceItem,voiceIndex) in newData.voiceList" :key="voiceIndex">
  109. <view class="voice_b_l" @tap="voicePlay(voiceItem.fileUrl)">
  110. <img class="add-button" :src="imagesUrl('safetyCheck/icon_yybz_yy.png')" />
  111. {{voiceItem.fileLength}}″
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </scroll-view>
  117. <view class="subBtn">
  118. <!-- 检查 -->
  119. <img @click="saoCode()" v-if="pageType==0" :src="imagesUrl('safetyCheck/icon_aqjc_saoma.png')">
  120. <img @click="submitBtn(1)" v-if="pageType==0 && newData.checkSetProgress !=100 && !hiddenDangerRecordStatus"
  121. style="margin-left: 60rpx;" :src="imagesUrl('safetyCheck/icon_aqjc_bianji.png')" />
  122. <img @click="submitBtn(2)" v-if="pageType==0 && newData.checkSetProgress !=100" style="margin-left: 60rpx;"
  123. :src="imagesUrl('safetyCheck/icon_aqjc_jiancha.png')" />
  124. <!-- 整改 -->
  125. <img @click="submitBtn(1)" v-if="pageType==2 && !hiddenDangerRecordStatus && !newData.finishRectify"
  126. :src="imagesUrl('safetyCheck/icon_aqjc_bianji.png')" />
  127. <img @click="submitBtn(2)" v-if="pageType==2 && !hiddenDangerRecordStatus && !newData.finishRectify"
  128. :src="imagesUrl('safetyCheck/icon_aqjc_zhenggai.png')" />
  129. <!-- 复查 -->
  130. <img @click="submitBtn(2)" v-if="pageType==1 && !hiddenDangerRecordStatus"
  131. :src="imagesUrl('safetyCheck/icon_aqjc_fucha.png')" />
  132. </view>
  133. <view v-if="pageType==0" class="inspectRecord" @click="inspectRecordClick()">检查记录</view>
  134. </view>
  135. </template>
  136. <script>
  137. const myaudio = uni.createInnerAudioContext();
  138. import {
  139. config
  140. } from '@/api/request/config.js'
  141. import {
  142. parseTime
  143. } from '@/component/public.js'
  144. import {
  145. securityAppCheckPlanCheckInfo,
  146. securityAppCheckPhotoGetCheckNumBySub,
  147. securityAppCheckDangerGetCheckProDetail,
  148. securityAppCheckSetOptionList,
  149. securityAppCheckDangerReviewSubList,
  150. securityAppCheckDangerGetCheckDangerSubList,
  151. securityAppCheckManageList,
  152. } from '@/pages_safetyCheck/api/index.js'
  153. export default {
  154. name: "snapshotDetail",
  155. components: {
  156. },
  157. data() {
  158. return {
  159. baseUrl: config.base_url,
  160. inspectionItems: 0, //0有检查项 1无检查项
  161. newData: {
  162. voiceList:[],
  163. },
  164. setOptionId: '',
  165. manageId: '',
  166. subId: '',
  167. hazardCheckPro: '',
  168. hazardCheckNum: 0,
  169. pageType: 0, //0检查 1复查 2整改
  170. itemsStatus: '',
  171. optionData: null,
  172. lotName: null,
  173. hiddenDangerRecordStatus: null, //判断是否是从隐患列表页面跳转过来
  174. }
  175. },
  176. onLoad(option) {
  177. let optionData = JSON.parse(decodeURIComponent(option.infoData));
  178. console.log('详情', optionData)
  179. this.$set(this, 'pageType', optionData.pageType);
  180. this.$set(this, 'itemsStatus', optionData.itemsStatus);
  181. this.$set(this, 'setOptionId', optionData.setOptionId);
  182. this.$set(this, 'manageId', optionData.manageId);
  183. this.$set(this, 'subId', optionData.subId);
  184. this.$set(this, 'hazardCheckPro', optionData.hazardCheckPro);
  185. this.$set(this, 'hiddenDangerRecordStatus', optionData.hiddenDangerRecordStatus);
  186. this.$set(this, 'optionData', optionData);
  187. this.$set(this, 'lotName',
  188. optionData.pageType == 0 ? optionData.checkPlanSetVoList.checkName : (
  189. optionData.checkPlanSetVoList.overdueUnrectify ? '整改期限' + optionData.checkPlanSetVoList
  190. .rectifyDeadline +
  191. '(逾期未完成整改关闭实验室)' : '整改期限' + optionData.checkPlanSetVoList.rectifyDeadline));
  192. },
  193. onShow() {
  194. },
  195. mounted() {
  196. if (this.pageType == 0) {
  197. this.securityAppCheckPlanCheckInfo();
  198. } else if (this.pageType == 1 || this.pageType == 2) {
  199. //复查-整改
  200. this.securityAppCheckDangerGetCheckProDetail();
  201. }
  202. this.securityAppCheckPhotoGetCheckNumBySub();
  203. },
  204. methods: {
  205. //滚动事件
  206. scrollGet() {},
  207. //检查记录
  208. inspectRecordClick() {
  209. let infoData = this.optionData;
  210. infoData.curTabTow = 1; //已检查
  211. uni.navigateTo({
  212. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  213. encodeURIComponent(JSON
  214. .stringify(infoData))
  215. });
  216. },
  217. /******调用摄像头******/
  218. saoCode() {
  219. let self = this;
  220. uni.scanCode({
  221. onlyFromCamera: true,
  222. success: function(res) {
  223. let list = res.result.split("?")[1].split("&");
  224. let codeData = {};
  225. list.forEach((item) => {
  226. codeData[item.split("=")[0]] = item.split("=")[1];
  227. })
  228. if (codeData.code) {
  229. self.saoList(codeData.subId);
  230. } else {
  231. uni.showToast({
  232. title: '请扫描正确的二维码',
  233. icon: "none",
  234. mask: true,
  235. duration: 2000
  236. });
  237. }
  238. }
  239. });
  240. },
  241. //扫一扫查询数据
  242. async saoList(subId) {
  243. let obj = {
  244. planSetId: this.optionData.checkPlanSetVoList.planSetId,
  245. subId: subId,
  246. }
  247. if (this.pageType == 0) {
  248. //检查计划
  249. const {
  250. data
  251. } = await securityAppCheckManageList(obj);
  252. if (data.code == 200) {
  253. if (data.data.records[0]) {
  254. this.securityAppCheckSetOptionList(data.data.records[0], 0)
  255. //跳转检查项列表页面
  256. /* let infoData = data.data.records[0];
  257. infoData.pageType = this.tabIndexTow;
  258. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  259. uni.navigateTo({
  260. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  261. encodeURIComponent(
  262. JSON.stringify(infoData))
  263. }); */
  264. } else {
  265. //未找到数据提示
  266. uni.showToast({
  267. title: '未找到该实验室与本计划批次关联的数据',
  268. icon: "none",
  269. mask: true,
  270. duration: 2000
  271. });
  272. }
  273. }
  274. } else if (this.pageType == 1) {
  275. //复查计划
  276. obj.planId = this.optionData.checkPlanSetVoList.planId;
  277. obj.userId = uni.getStorageSync('userId');
  278. const {
  279. data
  280. } = await securityAppCheckDangerReviewSubList(obj);
  281. if (data.code == 200) {
  282. if (data.data[0] && data.data[0].stayExamineCheckNum != 0) {
  283. //跳转检查项列表页面
  284. let infoData = data.data[0];
  285. infoData.pageType = this.pageType;
  286. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  287. uni.navigateTo({
  288. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  289. encodeURIComponent(
  290. JSON.stringify(infoData))
  291. });
  292. } else {
  293. //未找到数据提示
  294. uni.showToast({
  295. title: '未找到该实验室与本计划批次关联的数据',
  296. icon: "none",
  297. mask: true,
  298. duration: 2000
  299. });
  300. }
  301. }
  302. } else if (this.pageType == 2) {
  303. //整改计划
  304. obj.planId = this.optionData.checkPlanSetVoList.planId;
  305. obj.userId = uni.getStorageSync('userId');
  306. const {
  307. data
  308. } = await securityAppCheckDangerGetCheckDangerSubList(obj);
  309. if (data.code == 200) {
  310. if (data.data[0]) {
  311. //跳转检查项列表页面
  312. let infoData = data.data[0];
  313. infoData.pageType = this.pageType;
  314. infoData.checkPlanSetVoList = this.optionData.checkPlanSetVoList;
  315. uni.navigateTo({
  316. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  317. encodeURIComponent(
  318. JSON.stringify(infoData))
  319. });
  320. } else {
  321. //未找到数据提示
  322. uni.showToast({
  323. title: '未找到该实验室与本计划批次关联的数据',
  324. icon: "none",
  325. mask: true,
  326. duration: 2000
  327. });
  328. }
  329. }
  330. }
  331. },
  332. //获取检查提交详情
  333. async securityAppCheckPlanCheckInfo() {
  334. let obj = {
  335. setOptionId: this.setOptionId,
  336. manageId: this.manageId,
  337. }
  338. const {
  339. data
  340. } = await securityAppCheckPlanCheckInfo(obj);
  341. if (data.code == 200) {
  342. uni.setNavigationBarTitle({
  343. title: data.data.subName + '(' + (this.pageType == 0 ? data.data.roomNum ? data.data
  344. .roomNum : '-' : data.data
  345. .subRoom ? data.data.subRoom : '-') + ')'
  346. })
  347. data.data.checkCollapse = true;
  348. data.data.inspectDot = false;
  349. this.$set(this, 'newData', data.data);
  350. this.$set(this.newData, 'checkTime', parseTime(data.data.checkTime, "{y}-{m}-{d}"));
  351. this.$set(this.newData, 'voiceList', data.data.voiceList ? data.data.voiceList : []);
  352. }
  353. },
  354. //整改详情
  355. async securityAppCheckDangerGetCheckProDetail() {
  356. let obj = {
  357. planId: this.optionData.checkPlanSetVoList.planId,
  358. planSetId: this.optionData.checkPlanSetVoList.planSetId,
  359. checkCategory: this.optionData.checkCategory,
  360. hazardCheckPro: this.optionData.hazardCheckPro,
  361. setOptionId: this.optionData.setOptionId?this.optionData.setOptionId:'',
  362. subId: this.optionData.subId,
  363. }
  364. const {
  365. data
  366. } = await securityAppCheckDangerGetCheckProDetail(obj);
  367. if (data.code == 200) {
  368. uni.setNavigationBarTitle({
  369. title: data.data.subName + '(' + data.data.roomNum + ')'
  370. })
  371. data.data.checkCollapse = true;
  372. // data.data.checkCollapse = false;
  373. data.data.inspectDot = false;
  374. data.data.checkTime = parseTime(data.data.checkTime, "{y}-{m}-{d}");
  375. data.data.checkRectifyVoList.forEach(function(item, index) {
  376. item.rectifyTime = parseTime(item.rectifyTime, "{y}-{m}-{d}");
  377. item.reviewTime = parseTime(item.reviewTime, "{y}-{m}-{d}");
  378. item.rectifyCollapse = false;
  379. item.reviewCollapse = false;
  380. if (index == data.data.checkRectifyVoList.length - 1) {
  381. item.rectifyCollapse = true;
  382. item.reviewCollapse = true;
  383. }
  384. })
  385. this.$set(this, 'newData', data.data);
  386. this.$set(this.newData, 'voiceList', data.data.voiceList ? data.data.voiceList : []);
  387. }
  388. },
  389. async securityAppCheckSetOptionList(item, checkStatus) {
  390. let self = this;
  391. let upData = item;
  392. let obj = {
  393. page: 1,
  394. pageSize: 20,
  395. checkStatus: checkStatus,
  396. manageId: upData.manageId,
  397. }
  398. this.inspectRemporaryList = [];
  399. const {
  400. data
  401. } = await securityAppCheckSetOptionList(obj);
  402. if (data.code == 200 && checkStatus == 0) { //先查询待检查数据
  403. if (data.data.records[0]) {
  404. let infoData = self.optionData;
  405. infoData.pageType = 0;
  406. infoData.subName = upData.subName;
  407. infoData.roomNum = upData.roomNum;
  408. infoData.subId = data.data.records[0].subId;
  409. infoData.manageId = data.data.records[0].manageId;
  410. infoData.setOptionId = data.data.records[0].setOptionId;
  411. infoData.hazardCheckPro = data.data.records[0].hazardCheckPro;
  412. infoData.checkCategory = data.data.records[0].checkCategory;
  413. uni.navigateTo({
  414. url: '/pages_safetyCheck/views/inspectManage/conductInspections?infoData=' +
  415. encodeURIComponent(
  416. JSON
  417. .stringify(infoData))
  418. });
  419. } else {
  420. uni.showToast({
  421. title: '该实验室暂无检查工作!',
  422. icon: "none",
  423. mask: true,
  424. duration: 2000
  425. });
  426. }
  427. }
  428. },
  429. //语音备忘播放
  430. async voicePlay(item) {
  431. myaudio.src = config.base_url + item;
  432. myaudio.play();
  433. },
  434. //获取检查项在当前实验室出现的次数
  435. async securityAppCheckPhotoGetCheckNumBySub() {
  436. let obj = {
  437. subId: this.subId,
  438. hazardCheckPro: this.hazardCheckPro,
  439. }
  440. const {
  441. data
  442. } = await securityAppCheckPhotoGetCheckNumBySub(obj);
  443. if (data.code == 200) {
  444. this.$set(this, 'hazardCheckNum', data.data);
  445. }
  446. },
  447. hiddenDangerClick(row) {
  448. if (!this.hiddenDangerRecordStatus) {
  449. let infoData = this.optionData;
  450. infoData.subName = this.newData.subName;
  451. infoData.roomNum = this.newData.roomNum;
  452. infoData.hiddenDangerRecordStatus = true; //判断是否跳转隐患列表
  453. uni.navigateTo({
  454. url: '/pages_safetyCheck/views/inspectManage/hiddenDangerRecord?infoData=' +
  455. encodeURIComponent(JSON.stringify(infoData))
  456. });
  457. }
  458. },
  459. //检查-按钮
  460. submitBtn(status) {
  461. if (status == 1) {
  462. //编辑
  463. if (this.pageType == 0) {
  464. //检查
  465. let infoData = this.optionData;
  466. infoData.hazardCheckPro = this.newData.hazardCheckPro;
  467. infoData.hazardCheckCode = this.newData.hazardCheckCode;
  468. infoData.hazardCheckName = this.newData.hazardCheckName;
  469. infoData.hazardCheckPro2 = this.newData.hazardCheckPro2;
  470. infoData.hazardCheckCode2 = this.newData.hazardCheckCode2;
  471. infoData.hazardCheckName2 = this.newData.hazardCheckName2;
  472. infoData.hazardCheckPro1 = this.newData.hazardCheckPro1;
  473. infoData.hazardCheckCode1 = this.newData.hazardCheckCode1;
  474. infoData.hazardCheckName1 = this.newData.hazardCheckName1;
  475. infoData.hazardCheckPoint = this.newData.hazardCheckPoint;
  476. infoData.editStatus = true;
  477. uni.redirectTo({
  478. url: '/pages_safetyCheck/views/inspectManage/conductInspections?infoData=' +
  479. encodeURIComponent(
  480. JSON
  481. .stringify(infoData))
  482. });
  483. } else if (this.pageType == 1) {
  484. //复核
  485. let infoData = this.optionData
  486. infoData.editStatus = true;
  487. uni.redirectTo({
  488. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerRectification?infoData=' +
  489. encodeURIComponent(
  490. JSON
  491. .stringify(infoData))
  492. });
  493. } else if (this.pageType == 2) {
  494. //整改
  495. let infoData = this.optionData
  496. infoData.editStatus = true;
  497. uni.redirectTo({
  498. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerRectification?infoData=' +
  499. encodeURIComponent(
  500. JSON
  501. .stringify(infoData))
  502. });
  503. }
  504. } else if (status == 2) {
  505. //继续检查
  506. if (this.pageType == 0) {
  507. this.securityAppCheckSetOptionList(this.optionData, 0)
  508. } else {
  509. let infoData = this.optionData;
  510. uni.redirectTo({
  511. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  512. encodeURIComponent(JSON
  513. .stringify(infoData))
  514. });
  515. }
  516. }
  517. },
  518. //图片预览
  519. lockImg(list) {
  520. if (!list[0]) {
  521. return
  522. }
  523. let urlList = [];
  524. for (let i = 0; i < list.length; i++) {
  525. urlList.push(config.base_url + list[i].fileUrl)
  526. }
  527. wx.previewImage({
  528. urls: urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  529. current: '', // 当前显示图片的http链接,默认是第一个
  530. success: function(res) {},
  531. fail: function(res) {},
  532. complete: function(res) {},
  533. })
  534. },
  535. //折叠展开
  536. inspectDot() {
  537. this.newData.inspectDot = !this.newData.inspectDot
  538. },
  539. checkCollapse(row) {
  540. this.newData.checkCollapse = !this.newData.checkCollapse
  541. },
  542. rectifyCollapse(row) {
  543. row.rectifyCollapse = !row.rectifyCollapse
  544. },
  545. reviewCollapse(row) {
  546. row.reviewCollapse = !row.reviewCollapse
  547. },
  548. }
  549. }
  550. </script>
  551. <style lang="stylus" scoped>
  552. .snapshotDetail {
  553. height: 100%;
  554. display flex;
  555. box-sizing: border-box;
  556. padding-bottom: 160rpx;
  557. box-sizing: border-box;
  558. .tip {
  559. width: 750rpx;
  560. height: 80rpx;
  561. background: rgba(1, 131, 250, 0.2);
  562. border-radius: 0rpx 0rpx 0rpx 0rpx;
  563. font-size: 30rpx;
  564. color: #0183FA;
  565. line-height: 80rpx;
  566. text-align: center;
  567. }
  568. .tip-tow {
  569. width: 750rpx;
  570. height: 80rpx;
  571. background: rgba(255, 140, 0, 0.2);
  572. border-radius: 0rpx 0rpx 0rpx 0rpx;
  573. font-size: 30rpx;
  574. color: #FF8C00;
  575. line-height: 80rpx;
  576. text-align: center;
  577. }
  578. .list {
  579. width: 750rpx;
  580. .list-li {
  581. display: flex;
  582. justify-content: space-between;
  583. align-items: center;
  584. border-bottom: 1rpx solid #E0E0E0;
  585. background: #FFFFFF;
  586. padding: 0 30rpx;
  587. box-sizing: border-box;
  588. >view:nth-of-type(1) {
  589. font-size: 30rpx;
  590. color: #333333;
  591. line-height: 100rpx;
  592. text-align: left;
  593. }
  594. >view:nth-of-type(2) {
  595. font-size: 28rpx;
  596. color: #666666;
  597. line-height: 100rpx;
  598. text-align: left;
  599. display: flex;
  600. justify-content: space-between;
  601. align-items: center;
  602. >img {
  603. width: 24rpx;
  604. height: 12rpx;
  605. margin-left: 10rpx;
  606. }
  607. }
  608. }
  609. .file-li {
  610. display: flex;
  611. justify-content: space-between;
  612. align-items: center;
  613. padding: 0 30rpx;
  614. box-sizing: border-box;
  615. >img:nth-of-type(1) {
  616. width: 30rpx;
  617. height: 30rpx;
  618. }
  619. >view {
  620. flex: 1;
  621. font-size: 28rpx;
  622. color: #333333;
  623. line-height: 80rpx;
  624. text-align: left;
  625. margin: 0 92rpx 0 16rpx;
  626. overflow: hidden;
  627. text-overflow: ellipsis;
  628. white-space: nowrap;
  629. }
  630. >img:nth-of-type(2) {
  631. width: 30rpx;
  632. height: 30rpx;
  633. }
  634. }
  635. .hidden {
  636. width: 750rpx;
  637. background: #fff;
  638. overflow: hidden;
  639. border-bottom: 2rpx solid #E0E0E0;
  640. .hidden-content {
  641. border-radius: 20rpx 20rpx 20rpx 20rpx;
  642. width: 690rpx;
  643. min-height: 180rpx;
  644. background: #F5F5F5;
  645. margin: 40rpx 30rpx;
  646. padding: 20rpx;
  647. box-sizing: border-box;
  648. font-size: 28rpx;
  649. color: #666666;
  650. line-height: 44rpx;
  651. text-align: left;
  652. }
  653. }
  654. .photo {
  655. display: flex;
  656. justify-content: flex-start;
  657. flex-wrap: wrap;
  658. padding: 20rpx 30rpx 0;
  659. box-sizing: border-box;
  660. background: #fff;
  661. border-bottom: 2rpx solid #E0E0E0;
  662. >img {
  663. width: 150rpx;
  664. height: 150rpx;
  665. border-radius: 10rpx 10rpx 10rpx 10rpx;
  666. margin: 0 10rpx 10rpx 0;
  667. }
  668. >img:nth-of-type(4) {
  669. margin-right: 0;
  670. }
  671. }
  672. /* .list-li:last-of-type {
  673. border: none;
  674. } */
  675. .hazardCheckNum {
  676. border-bottom: 2rpx solid #E0E0E0;
  677. padding: 30rpx 40rpx 34rpx 40rpx;
  678. box-sizing: border-box;
  679. background: #fff;
  680. display: flex;
  681. justify-content: flex-end;
  682. align-items: center;
  683. .hazardCheckNum-l {
  684. width: 30rpx;
  685. height: 30rpx;
  686. margin-right: 18rpx;
  687. }
  688. .hazardCheckNum-r {
  689. font-size: 28rpx;
  690. color: #FF5900;
  691. line-height: 40rpx;
  692. text-align: left;
  693. }
  694. }
  695. }
  696. .srearch {
  697. display: flex;
  698. justify-content: space-between;
  699. align-items: center;
  700. .srearch-l {
  701. font-size: 30rpx;
  702. color: #333333;
  703. line-height: 100rpx;
  704. text-align: left;
  705. }
  706. .srearch-r {
  707. width: 30rpx;
  708. height: 30rpx;
  709. margin-right: 0rpx;
  710. }
  711. }
  712. }
  713. /* 语音备注 */
  714. .voice {
  715. width: 750rpx;
  716. min-height: 100rpx;
  717. background: #FFFFFF;
  718. border-radius: 20rpx 20rpx 20rpx 20rpx;
  719. overflow: hidden;
  720. .voice_t {
  721. height: 100rpx;
  722. display: flex;
  723. justify-content: space-between;
  724. align-items: center;
  725. padding: 0 30rpx;
  726. box-sizing: border-box;
  727. border-bottom: 2rpx solid #E0E0E0;
  728. margin-bottom: 40rpx;
  729. .voice_t_t {
  730. width: 100%;
  731. display: flex;
  732. justify-content: space-between;
  733. >text:nth-of-type(1) {
  734. font-size: 30rpx;
  735. color: #333333;
  736. line-height: 100rpx;
  737. }
  738. >text:nth-of-type(2) {
  739. font-size: 28rpx;
  740. color: #999999;
  741. line-height: 100rpx;
  742. }
  743. }
  744. .voice_t_b {
  745. width: 100%;
  746. font-size: 30rpx;
  747. font-family: PingFang SC-Medium, PingFang SC;
  748. font-weight: 400;
  749. color: #333333;
  750. line-height: 100rpx;
  751. text-align: left;
  752. }
  753. }
  754. .voice_b {
  755. display flex;
  756. justify-content flex-start;
  757. align-items center;
  758. margin-bottom: 20rpx;
  759. padding: 0 30rpx;
  760. box-sizing: border-box;
  761. .voice_b_l {
  762. width: 400rpx;
  763. height: 40rpx;
  764. background: #0183FA;
  765. border-radius: 10rpx;
  766. display flex;
  767. justify-content flex-start;
  768. align-items center;
  769. font-size: 24rpx;
  770. color: #FFFFFF;
  771. line-height: 30rpx;
  772. text-align: left;
  773. >img {
  774. width: 20rpx;
  775. height: 20rpx;
  776. margin-left: 16rpx;
  777. margin-right: 20rpx;
  778. }
  779. }
  780. .voice_b_r {
  781. width: 28rpx;
  782. height: 28rpx;
  783. margin-left: 20rpx;
  784. }
  785. }
  786. .voice-btn {
  787. width: 150rpx;
  788. height: 150rpx;
  789. position: fixed;
  790. right: 24rpx;
  791. bottom: 176rpx;
  792. >img {
  793. width: 150rpx;
  794. height: 150rpx;
  795. position: absolute;
  796. }
  797. >text {
  798. font-size: 24rpx;
  799. color: #999999;
  800. line-height: 30rpx;
  801. text-align: center;
  802. position: absolute;
  803. top: 84rpx;
  804. left: 26rpx;
  805. }
  806. }
  807. }
  808. .subBtn {
  809. display: flex;
  810. justify-content: center;
  811. position: fixed;
  812. bottom: 30rpx;
  813. width: 750rpx;
  814. padding: 0 46rpx;
  815. box-sizing: border-box;
  816. >img {
  817. width: 160rpx;
  818. height: 160rpx;
  819. }
  820. }
  821. .sub-btn {
  822. display: flex;
  823. justify-content: center;
  824. position: fixed;
  825. left: 30rpx;
  826. bottom: 30rpx;
  827. >view:nth-of-type(1) {
  828. width: 345rpx;
  829. height: 100rpx;
  830. background: #FF8C00;
  831. border-radius: 50rpx 0rpx 0rpx 50rpx;
  832. font-size: 30rpx;
  833. color: #FFFFFF;
  834. line-height: 100rpx;
  835. text-align: center;
  836. }
  837. >view:nth-of-type(2) {
  838. width: 345rpx;
  839. height: 100rpx;
  840. background: #0183FA;
  841. border-radius: 0rpx 50rpx 50rpx 0rpx;
  842. font-size: 30rpx;
  843. color: #FFFFFF;
  844. line-height: 100rpx;
  845. text-align: center;
  846. }
  847. }
  848. .sub-btn-tow {
  849. width: 686rpx;
  850. height: 100rpx;
  851. background: #0183FA;
  852. border-radius: 50rpx 50rpx 50rpx 50rpx;
  853. position: fixed;
  854. left: 30rpx;
  855. bottom: 30rpx;
  856. font-weight: 400;
  857. font-size: 30rpx;
  858. color: #FFFFFF;
  859. line-height: 100rpx;
  860. text-align: center;
  861. }
  862. .inspectRecord {
  863. position: fixed;
  864. top: 118rpx;
  865. right: 0;
  866. z-index: 200;
  867. width: 160rpx;
  868. height: 60rpx;
  869. background: #0183FA;
  870. border-radius: 50rpx 0rpx 0rpx 50rpx;
  871. font-size: 30rpx;
  872. color: #FFFFFF;
  873. line-height: 60rpx;
  874. text-align: center;
  875. }
  876. </style>