hiddenDangerItemsDetail.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  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. subId: this.optionData.subId,
  362. }
  363. const {
  364. data
  365. } = await securityAppCheckDangerGetCheckProDetail(obj);
  366. if (data.code == 200) {
  367. uni.setNavigationBarTitle({
  368. title: data.data.subName + '(' + data.data.roomNum + ')'
  369. })
  370. data.data.checkCollapse = true;
  371. // data.data.checkCollapse = false;
  372. data.data.inspectDot = false;
  373. data.data.checkTime = parseTime(data.data.checkTime, "{y}-{m}-{d}");
  374. data.data.checkRectifyVoList.forEach(function(item, index) {
  375. item.rectifyTime = parseTime(item.rectifyTime, "{y}-{m}-{d}");
  376. item.reviewTime = parseTime(item.reviewTime, "{y}-{m}-{d}");
  377. item.rectifyCollapse = false;
  378. item.reviewCollapse = false;
  379. if (index == data.data.checkRectifyVoList.length - 1) {
  380. item.rectifyCollapse = true;
  381. item.reviewCollapse = true;
  382. }
  383. })
  384. this.$set(this, 'newData', data.data);
  385. this.$set(this.newData, 'voiceList', data.data.voiceList ? data.data.voiceList : []);
  386. }
  387. },
  388. async securityAppCheckSetOptionList(item, checkStatus) {
  389. let self = this;
  390. let upData = item;
  391. let obj = {
  392. page: 1,
  393. pageSize: 20,
  394. checkStatus: checkStatus,
  395. manageId: upData.manageId,
  396. }
  397. this.inspectRemporaryList = [];
  398. const {
  399. data
  400. } = await securityAppCheckSetOptionList(obj);
  401. if (data.code == 200 && checkStatus == 0) { //先查询待检查数据
  402. if (data.data.records[0]) {
  403. let infoData = self.optionData;
  404. infoData.pageType = 0;
  405. infoData.subName = upData.subName;
  406. infoData.roomNum = upData.roomNum;
  407. infoData.subId = data.data.records[0].subId;
  408. infoData.manageId = data.data.records[0].manageId;
  409. infoData.setOptionId = data.data.records[0].setOptionId;
  410. infoData.hazardCheckPro = data.data.records[0].hazardCheckPro;
  411. infoData.checkCategory = data.data.records[0].checkCategory;
  412. uni.navigateTo({
  413. url: '/pages_safetyCheck/views/inspectManage/conductInspections?infoData=' +
  414. encodeURIComponent(
  415. JSON
  416. .stringify(infoData))
  417. });
  418. } else {
  419. uni.showToast({
  420. title: '该实验室暂无检查工作!',
  421. icon: "none",
  422. mask: true,
  423. duration: 2000
  424. });
  425. }
  426. }
  427. },
  428. //语音备忘播放
  429. async voicePlay(item) {
  430. myaudio.src = config.base_url + item;
  431. myaudio.play();
  432. },
  433. //获取检查项在当前实验室出现的次数
  434. async securityAppCheckPhotoGetCheckNumBySub() {
  435. let obj = {
  436. subId: this.subId,
  437. hazardCheckPro: this.hazardCheckPro,
  438. }
  439. const {
  440. data
  441. } = await securityAppCheckPhotoGetCheckNumBySub(obj);
  442. if (data.code == 200) {
  443. this.$set(this, 'hazardCheckNum', data.data);
  444. }
  445. },
  446. hiddenDangerClick(row) {
  447. if (!this.hiddenDangerRecordStatus) {
  448. let infoData = this.optionData;
  449. infoData.subName = this.newData.subName;
  450. infoData.roomNum = this.newData.roomNum;
  451. infoData.hiddenDangerRecordStatus = true; //判断是否跳转隐患列表
  452. uni.navigateTo({
  453. url: '/pages_safetyCheck/views/inspectManage/hiddenDangerRecord?infoData=' +
  454. encodeURIComponent(JSON.stringify(infoData))
  455. });
  456. }
  457. },
  458. //检查-按钮
  459. submitBtn(status) {
  460. if (status == 1) {
  461. //编辑
  462. if (this.pageType == 0) {
  463. //检查
  464. let infoData = this.optionData;
  465. infoData.hazardCheckPro = this.newData.hazardCheckPro;
  466. infoData.hazardCheckCode = this.newData.hazardCheckCode;
  467. infoData.hazardCheckName = this.newData.hazardCheckName;
  468. infoData.hazardCheckPro2 = this.newData.hazardCheckPro2;
  469. infoData.hazardCheckCode2 = this.newData.hazardCheckCode2;
  470. infoData.hazardCheckName2 = this.newData.hazardCheckName2;
  471. infoData.hazardCheckPro1 = this.newData.hazardCheckPro1;
  472. infoData.hazardCheckCode1 = this.newData.hazardCheckCode1;
  473. infoData.hazardCheckName1 = this.newData.hazardCheckName1;
  474. infoData.hazardCheckPoint = this.newData.hazardCheckPoint;
  475. infoData.editStatus = true;
  476. uni.redirectTo({
  477. url: '/pages_safetyCheck/views/inspectManage/conductInspections?infoData=' +
  478. encodeURIComponent(
  479. JSON
  480. .stringify(infoData))
  481. });
  482. } else if (this.pageType == 1) {
  483. //复核
  484. let infoData = this.optionData
  485. infoData.editStatus = true;
  486. uni.redirectTo({
  487. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerRectification?infoData=' +
  488. encodeURIComponent(
  489. JSON
  490. .stringify(infoData))
  491. });
  492. } else if (this.pageType == 2) {
  493. //整改
  494. let infoData = this.optionData
  495. infoData.editStatus = true;
  496. uni.redirectTo({
  497. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerRectification?infoData=' +
  498. encodeURIComponent(
  499. JSON
  500. .stringify(infoData))
  501. });
  502. }
  503. } else if (status == 2) {
  504. //继续检查
  505. if (this.pageType == 0) {
  506. this.securityAppCheckSetOptionList(this.optionData, 0)
  507. } else {
  508. let infoData = this.optionData;
  509. uni.redirectTo({
  510. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItems?infoData=' +
  511. encodeURIComponent(JSON
  512. .stringify(infoData))
  513. });
  514. }
  515. }
  516. },
  517. //图片预览
  518. lockImg(list) {
  519. if (!list[0]) {
  520. return
  521. }
  522. let urlList = [];
  523. for (let i = 0; i < list.length; i++) {
  524. urlList.push(config.base_url + list[i].fileUrl)
  525. }
  526. wx.previewImage({
  527. urls: urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  528. current: '', // 当前显示图片的http链接,默认是第一个
  529. success: function(res) {},
  530. fail: function(res) {},
  531. complete: function(res) {},
  532. })
  533. },
  534. //折叠展开
  535. inspectDot() {
  536. this.newData.inspectDot = !this.newData.inspectDot
  537. },
  538. checkCollapse(row) {
  539. this.newData.checkCollapse = !this.newData.checkCollapse
  540. },
  541. rectifyCollapse(row) {
  542. row.rectifyCollapse = !row.rectifyCollapse
  543. },
  544. reviewCollapse(row) {
  545. row.reviewCollapse = !row.reviewCollapse
  546. },
  547. }
  548. }
  549. </script>
  550. <style lang="stylus" scoped>
  551. .snapshotDetail {
  552. height: 100%;
  553. display flex;
  554. box-sizing: border-box;
  555. padding-bottom: 160rpx;
  556. box-sizing: border-box;
  557. .tip {
  558. width: 750rpx;
  559. height: 80rpx;
  560. background: rgba(1, 131, 250, 0.2);
  561. border-radius: 0rpx 0rpx 0rpx 0rpx;
  562. font-size: 30rpx;
  563. color: #0183FA;
  564. line-height: 80rpx;
  565. text-align: center;
  566. }
  567. .tip-tow {
  568. width: 750rpx;
  569. height: 80rpx;
  570. background: rgba(255, 140, 0, 0.2);
  571. border-radius: 0rpx 0rpx 0rpx 0rpx;
  572. font-size: 30rpx;
  573. color: #FF8C00;
  574. line-height: 80rpx;
  575. text-align: center;
  576. }
  577. .list {
  578. width: 750rpx;
  579. .list-li {
  580. display: flex;
  581. justify-content: space-between;
  582. align-items: center;
  583. border-bottom: 1rpx solid #E0E0E0;
  584. background: #FFFFFF;
  585. padding: 0 30rpx;
  586. box-sizing: border-box;
  587. >view:nth-of-type(1) {
  588. font-size: 30rpx;
  589. color: #333333;
  590. line-height: 100rpx;
  591. text-align: left;
  592. }
  593. >view:nth-of-type(2) {
  594. font-size: 28rpx;
  595. color: #666666;
  596. line-height: 100rpx;
  597. text-align: left;
  598. display: flex;
  599. justify-content: space-between;
  600. align-items: center;
  601. >img {
  602. width: 24rpx;
  603. height: 12rpx;
  604. margin-left: 10rpx;
  605. }
  606. }
  607. }
  608. .file-li {
  609. display: flex;
  610. justify-content: space-between;
  611. align-items: center;
  612. padding: 0 30rpx;
  613. box-sizing: border-box;
  614. >img:nth-of-type(1) {
  615. width: 30rpx;
  616. height: 30rpx;
  617. }
  618. >view {
  619. flex: 1;
  620. font-size: 28rpx;
  621. color: #333333;
  622. line-height: 80rpx;
  623. text-align: left;
  624. margin: 0 92rpx 0 16rpx;
  625. overflow: hidden;
  626. text-overflow: ellipsis;
  627. white-space: nowrap;
  628. }
  629. >img:nth-of-type(2) {
  630. width: 30rpx;
  631. height: 30rpx;
  632. }
  633. }
  634. .hidden {
  635. width: 750rpx;
  636. background: #fff;
  637. overflow: hidden;
  638. border-bottom: 2rpx solid #E0E0E0;
  639. .hidden-content {
  640. border-radius: 20rpx 20rpx 20rpx 20rpx;
  641. width: 690rpx;
  642. min-height: 180rpx;
  643. background: #F5F5F5;
  644. margin: 40rpx 30rpx;
  645. padding: 20rpx;
  646. box-sizing: border-box;
  647. font-size: 28rpx;
  648. color: #666666;
  649. line-height: 44rpx;
  650. text-align: left;
  651. }
  652. }
  653. .photo {
  654. display: flex;
  655. justify-content: flex-start;
  656. flex-wrap: wrap;
  657. padding: 20rpx 30rpx 0;
  658. box-sizing: border-box;
  659. background: #fff;
  660. border-bottom: 2rpx solid #E0E0E0;
  661. >img {
  662. width: 150rpx;
  663. height: 150rpx;
  664. border-radius: 10rpx 10rpx 10rpx 10rpx;
  665. margin: 0 10rpx 10rpx 0;
  666. }
  667. >img:nth-of-type(4) {
  668. margin-right: 0;
  669. }
  670. }
  671. /* .list-li:last-of-type {
  672. border: none;
  673. } */
  674. .hazardCheckNum {
  675. border-bottom: 2rpx solid #E0E0E0;
  676. padding: 30rpx 40rpx 34rpx 40rpx;
  677. box-sizing: border-box;
  678. background: #fff;
  679. display: flex;
  680. justify-content: flex-end;
  681. align-items: center;
  682. .hazardCheckNum-l {
  683. width: 30rpx;
  684. height: 30rpx;
  685. margin-right: 18rpx;
  686. }
  687. .hazardCheckNum-r {
  688. font-size: 28rpx;
  689. color: #FF5900;
  690. line-height: 40rpx;
  691. text-align: left;
  692. }
  693. }
  694. }
  695. .srearch {
  696. display: flex;
  697. justify-content: space-between;
  698. align-items: center;
  699. .srearch-l {
  700. font-size: 30rpx;
  701. color: #333333;
  702. line-height: 100rpx;
  703. text-align: left;
  704. }
  705. .srearch-r {
  706. width: 30rpx;
  707. height: 30rpx;
  708. margin-right: 0rpx;
  709. }
  710. }
  711. }
  712. /* 语音备注 */
  713. .voice {
  714. width: 750rpx;
  715. min-height: 100rpx;
  716. background: #FFFFFF;
  717. border-radius: 20rpx 20rpx 20rpx 20rpx;
  718. overflow: hidden;
  719. .voice_t {
  720. height: 100rpx;
  721. display: flex;
  722. justify-content: space-between;
  723. align-items: center;
  724. padding: 0 30rpx;
  725. box-sizing: border-box;
  726. border-bottom: 2rpx solid #E0E0E0;
  727. margin-bottom: 40rpx;
  728. .voice_t_t {
  729. width: 100%;
  730. display: flex;
  731. justify-content: space-between;
  732. >text:nth-of-type(1) {
  733. font-size: 30rpx;
  734. color: #333333;
  735. line-height: 100rpx;
  736. }
  737. >text:nth-of-type(2) {
  738. font-size: 28rpx;
  739. color: #999999;
  740. line-height: 100rpx;
  741. }
  742. }
  743. .voice_t_b {
  744. width: 100%;
  745. font-size: 30rpx;
  746. font-family: PingFang SC-Medium, PingFang SC;
  747. font-weight: 400;
  748. color: #333333;
  749. line-height: 100rpx;
  750. text-align: left;
  751. }
  752. }
  753. .voice_b {
  754. display flex;
  755. justify-content flex-start;
  756. align-items center;
  757. margin-bottom: 20rpx;
  758. padding: 0 30rpx;
  759. box-sizing: border-box;
  760. .voice_b_l {
  761. width: 400rpx;
  762. height: 40rpx;
  763. background: #0183FA;
  764. border-radius: 10rpx;
  765. display flex;
  766. justify-content flex-start;
  767. align-items center;
  768. font-size: 24rpx;
  769. color: #FFFFFF;
  770. line-height: 30rpx;
  771. text-align: left;
  772. >img {
  773. width: 20rpx;
  774. height: 20rpx;
  775. margin-left: 16rpx;
  776. margin-right: 20rpx;
  777. }
  778. }
  779. .voice_b_r {
  780. width: 28rpx;
  781. height: 28rpx;
  782. margin-left: 20rpx;
  783. }
  784. }
  785. .voice-btn {
  786. width: 150rpx;
  787. height: 150rpx;
  788. position: fixed;
  789. right: 24rpx;
  790. bottom: 176rpx;
  791. >img {
  792. width: 150rpx;
  793. height: 150rpx;
  794. position: absolute;
  795. }
  796. >text {
  797. font-size: 24rpx;
  798. color: #999999;
  799. line-height: 30rpx;
  800. text-align: center;
  801. position: absolute;
  802. top: 84rpx;
  803. left: 26rpx;
  804. }
  805. }
  806. }
  807. .subBtn {
  808. display: flex;
  809. justify-content: center;
  810. position: fixed;
  811. bottom: 30rpx;
  812. width: 750rpx;
  813. padding: 0 46rpx;
  814. box-sizing: border-box;
  815. >img {
  816. width: 160rpx;
  817. height: 160rpx;
  818. }
  819. }
  820. .sub-btn {
  821. display: flex;
  822. justify-content: center;
  823. position: fixed;
  824. left: 30rpx;
  825. bottom: 30rpx;
  826. >view:nth-of-type(1) {
  827. width: 345rpx;
  828. height: 100rpx;
  829. background: #FF8C00;
  830. border-radius: 50rpx 0rpx 0rpx 50rpx;
  831. font-size: 30rpx;
  832. color: #FFFFFF;
  833. line-height: 100rpx;
  834. text-align: center;
  835. }
  836. >view:nth-of-type(2) {
  837. width: 345rpx;
  838. height: 100rpx;
  839. background: #0183FA;
  840. border-radius: 0rpx 50rpx 50rpx 0rpx;
  841. font-size: 30rpx;
  842. color: #FFFFFF;
  843. line-height: 100rpx;
  844. text-align: center;
  845. }
  846. }
  847. .sub-btn-tow {
  848. width: 686rpx;
  849. height: 100rpx;
  850. background: #0183FA;
  851. border-radius: 50rpx 50rpx 50rpx 50rpx;
  852. position: fixed;
  853. left: 30rpx;
  854. bottom: 30rpx;
  855. font-weight: 400;
  856. font-size: 30rpx;
  857. color: #FFFFFF;
  858. line-height: 100rpx;
  859. text-align: center;
  860. }
  861. .inspectRecord {
  862. position: fixed;
  863. top: 118rpx;
  864. right: 0;
  865. z-index: 200;
  866. width: 160rpx;
  867. height: 60rpx;
  868. background: #0183FA;
  869. border-radius: 50rpx 0rpx 0rpx 50rpx;
  870. font-size: 30rpx;
  871. color: #FFFFFF;
  872. line-height: 60rpx;
  873. text-align: center;
  874. }
  875. </style>