hiddenDangerRectification.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056
  1. <!-- 检查项隐患项整改 -->
  2. <template>
  3. <view class="snapshotDetail">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="tip">整改期限{{optionData.checkPlanSetVoList.rectifyDeadline}}{{optionData.checkPlanSetVoList.overdueUnrectify?'(逾期未完成整改关闭实验室)':''}}</view>
  6. <view class="items" v-if="newData.hazardCheckName!=''">
  7. <view class="items-t">
  8. <view class="items-t-r">{{newData.hazardCheckCode}} {{newData.hazardCheckName}}</view>
  9. </view>
  10. <view class="items-b">< {{newData.hazardCheckCode2}}
  11. {{newData.hazardCheckName2}} < {{newData.hazardCheckCode1}} {{newData.hazardCheckName1}}
  12. </view>
  13. </view>
  14. <view class="items-number" v-if="newData.hazardCheckName!=''" @click="hiddenDangerClick()">
  15. 此检查项在当前实验室累计出现<text>{{hazardCheckNum}}</text>次隐患</view>
  16. <view class="list">
  17. <view class="list-li" @click="checkCollapse()">
  18. <view>检查隐患</view>
  19. <view :id="newData.checkFlag?'fontColor-B':'fontColor-A'">
  20. {{newData.checkFlag?'符合':'不符合 '}}
  21. <img v-if="!newData.checkCollapse" :src="imagesUrl('commonality/icon_06.png')">
  22. <img v-if="newData.checkCollapse" :src="imagesUrl('commonality/icon_06_1.png')">
  23. </view>
  24. </view>
  25. <view v-if="newData.checkCollapse">
  26. <view class="list-button-max-box">
  27. <view class="list-button-title-box">隐患级别</view>
  28. <view class="list-button-big-box list-button-big-box-check">
  29. <view>{{newData.dangerLevel==1?'一般隐患':'重大隐患'}}</view>
  30. </view>
  31. </view>
  32. <view class="hidden-content" v-if="!newData.checkFlag">{{newData.hazardDescribe}}
  33. </view>
  34. <view class="photo" @click="lockImg(newData.yhDtoList)">
  35. <img v-for="(item,index) in newData.yhDtoList" :src="baseUrl+item.fileUrl">
  36. </view>
  37. <!-- <view class="list-li">
  38. <view>姓名:</view>
  39. <view>{{newData.checkUserName}}</view>
  40. </view> -->
  41. <view class="list-li">
  42. <view>检查时间</view>
  43. <view>{{newData.checkTime}}</view>
  44. </view>
  45. <!-- <view class="voice">
  46. <view class="voice_t">
  47. <view class="voice_t_t" v-if="!newData.voiceList[0]"><text>语音备注:</text><text></text></view>
  48. <view class="voice_t_b" v-if="newData.voiceList[0]">语音备注:({{newData.voiceList.length}})
  49. </view>
  50. </view>
  51. <view class="voice_b" v-if="newData.voiceList[0]"
  52. v-for="(voiceItem,voiceIndex) in newData.voiceList" :key="voiceIndex">
  53. <view class="voice_b_l" @tap="voicePlay(voiceItem.fileUrl)">
  54. <img class="add-button" :src="imagesUrl('safetyCheck/icon_yybz_yy.png')" />
  55. {{voiceItem.fileLength}}″
  56. </view>
  57. </view>
  58. </view> -->
  59. </view>
  60. <view v-if="pageType==1 || pageType==2" v-for="(item,index) in newData.checkRectifyVoList" :key="index">
  61. <view class="list-li" v-if="item.rectifyTime" @click="rectifyCollapse(item)">
  62. <view>隐患整改</view>
  63. <view :id="item.rectifyResult?'fontColor-B':(item.rectifyResult?'fontColor-C':'')">
  64. {{item.rectifyResult?'已整改':(item.rectifyResult?'暂无法整改':'')}}
  65. <img v-if="!item.rectifyCollapse" :src="imagesUrl('commonality/icon_06.png')">
  66. <img v-if="item.rectifyCollapse" :src="imagesUrl('commonality/icon_06_1.png')">
  67. </view>
  68. </view>
  69. <view v-if="item.rectifyCollapse && item.rectifyTime">
  70. <view v-if="item.rectifyMeasure" class="hidden-content">{{item.rectifyMeasure}}
  71. </view>
  72. <view class="photo" @click="lockImg(item.rectifyUploadList)">
  73. <img v-for="(item2,index2) in item.rectifyUploadList" :src="baseUrl+item2.fileUrl">
  74. </view>
  75. <view class="list-li">
  76. <view>姓名:</view>
  77. <view>{{item.rectifyName}}</view>
  78. </view>
  79. <view class="list-li">
  80. <view>整改时间</view>
  81. <view>{{item.rectifyTime}}</view>
  82. </view>
  83. </view>
  84. <!----复查相关暂时注释----开始---->
  85. <!-- <view class="list-li" v-if="item.reviewTime" @click="reviewCollapse(item)">
  86. <view>复查验证</view>
  87. <view :id="item.examineResult?'fontColor-B':'fontColor-C'">
  88. {{item.examineResult?'复查完毕':'退回整改'}}
  89. <img v-if="!item.reviewCollapse" :src="imagesUrl('commonality/icon_06.png')">
  90. <img v-if="item.reviewCollapse" :src="imagesUrl('commonality/icon_06_1.png')">
  91. </view>
  92. </view>
  93. <view v-if="item.reviewCollapse && item.reviewTime">
  94. <view v-if="item.examineOpinion" class="hidden-content" >{{item.examineOpinion}}
  95. </view>
  96. <view class="photo" v-if="item.examineUploadList[0]" @click="lockImg(item.examineUploadList)">
  97. <img v-for="(item3,index3) in item.examineUploadList" :src="baseUrl+item3.fileUrl">
  98. </view>
  99. <view class="list-li">
  100. <view>复查时间</view>
  101. <view>{{item.reviewTime}}</view>
  102. </view>
  103. </view> -->
  104. <!----复查相关暂时注释----结束---->
  105. </view>
  106. <view class="list-li">
  107. <!----复查相关暂时注释----开始---->
  108. <!-- <view v-if="pageType==1">复查验证</view>
  109. <view v-if="pageType==2">隐患整改({{fontNum}}/500)</view> -->
  110. <!----复查相关暂时注释----结束---->
  111. <view>隐患整改({{fontNum}}/500)</view>
  112. <view>
  113. <img :src="imagesUrl('commonality/icon_06.png')">
  114. </view>
  115. </view>
  116. <!----复查相关暂时注释----开始---->
  117. <!-- <textarea v-if="pageType==1" class="describe" type="text" v-model="form.examineOpinion" maxlength="500"
  118. placeholder="请填写隐患描述"
  119. placeholder-style="font-size:24rpx;color:#999;"></textarea>
  120. <textarea v-if="pageType==2" class="describe" type="text" v-model="form.rectifyMeasure" maxlength="500"
  121. @input="sumfontnum" placeholder="立整立改的请填写相关文字及整改前后照片对比等,不能立整立改的请说明原因并附整改计划、措施等"
  122. placeholder-style="font-size:24rpx;color:#999;"></textarea> -->
  123. <!----复查相关暂时注释----结束---->
  124. <textarea class="describe" type="text" v-model="form.rectifyMeasure" maxlength="500"
  125. @input="sumfontnum" placeholder="立整立改的请填写相关文字及整改前后照片对比等,不能立整立改的请说明原因并附整改计划、措施等"
  126. placeholder-style="font-size:24rpx;color:#999;"></textarea>
  127. <view class="check-for-img-max-box">
  128. <view class="left-title-p"></view>
  129. <view class="right-img-box">
  130. <view class="img-box" v-for="(imgUrl,imgIndex) in form.imgDtoList" :key="imgIndex">
  131. <img class="img-data" :src="baseUrl+imgUrl.fileUrl">
  132. <img class="position-img" :src="imagesUrl('commonality/icon_ssp_closure.png')"
  133. @click="delImg(imgIndex)">
  134. </view>
  135. <img class="add-button" :src="imagesUrl('safetyCheck/img_ssp_pz@1x.png')"
  136. @click="selectImage()" v-if="form.imgDtoList.length<6">
  137. </view>
  138. </view>
  139. <!-- <view class="list-li-tow">
  140. <view>整改方案(上传文件)</view>
  141. <view @click="selectFile()">
  142. <img :src="imagesUrl('safetyCheck/icon_aqjc_sc.png')">
  143. </view>
  144. </view>
  145. <view class="file-li" v-if="form.rectifyProjectName">
  146. <img :src="imagesUrl('safetyCheck/icon_djc_wj.png')">
  147. <view>{{form.rectifyProjectName}}</view>
  148. <img :src="imagesUrl('safetyCheck/icon_yybz_sc.png')">
  149. </view> -->
  150. </view>
  151. </scroll-view>
  152. <view class="sub-btn">
  153. <!----复查相关暂时注释----开始---->
  154. <!-- <view @click="submitForm(2)">{{pageType==1?'退回整改':'暂无法整改'}}</view>
  155. <view @click="submitForm(1)">{{pageType==1?'复查完毕':'完成整改'}}</view> -->
  156. <!----复查相关暂时注释----结束---->
  157. <view @click="submitForm(2)">暂无法整改</view>
  158. <view @click="submitForm(1)">完成整改</view>
  159. </view>
  160. </view>
  161. </template>
  162. <script>
  163. const myaudio = uni.createInnerAudioContext();
  164. import {
  165. parseTime
  166. } from '@/component/public.js'
  167. import {
  168. config
  169. } from '@/api/request/config.js'
  170. import {
  171. securityAppCheckPhotoUpdate,
  172. securityAppCheckDangerGetCheckProDetail,
  173. securityAppCheckDangerCheckRectify,
  174. securityAppCheckDangerApprove,
  175. securityAppCheckPhotoGetCheckNumBySub,
  176. } from '@/pages_safetyCheck/api/index.js'
  177. export default {
  178. name: "snapshotDetail",
  179. components: {
  180. },
  181. data() {
  182. return {
  183. baseUrl: config.base_url,
  184. inspectionItems: 0, //0有检查项 1无检查项
  185. pageType:null,
  186. form: {
  187. imgDtoList: [],
  188. rectifyProjectName: '',
  189. rectifyProjectUrl: '',
  190. },
  191. hazardCheckNum: 0,
  192. newData: {},
  193. optionData: null,
  194. fontNum:0,
  195. rectifyId:null,
  196. editStatus:null,
  197. }
  198. },
  199. onLoad(option) {
  200. let optionData = JSON.parse(decodeURIComponent(option.infoData));
  201. console.log('测试整改',optionData)
  202. this.$set(this, 'pageType', optionData.pageType);
  203. this.$set(this, 'optionData', optionData);
  204. this.$set(this, 'editStatus', optionData.editStatus);
  205. },
  206. onShow() {
  207. },
  208. mounted() {
  209. this.securityAppCheckDangerGetCheckProDetail();
  210. this.securityAppCheckPhotoGetCheckNumBySub();
  211. },
  212. methods: {
  213. //语音备忘播放
  214. async voicePlay(item) {
  215. myaudio.src = config.base_url + item;
  216. myaudio.play();
  217. },
  218. //详情
  219. async securityAppCheckDangerGetCheckProDetail() {
  220. console.log(this.optionData);
  221. let self=this;
  222. let obj = {
  223. planId: this.optionData.checkPlanSetVoList.planId,
  224. planSetId: this.optionData.checkPlanSetVoList.planSetId,
  225. checkCategory: this.optionData.checkCategory,
  226. hazardCheckPro: this.optionData.hazardCheckPro,
  227. setOptionId: this.optionData.setOptionId,
  228. subId: this.optionData.subId,
  229. }
  230. const {
  231. data
  232. } = await securityAppCheckDangerGetCheckProDetail(obj);
  233. if (data.code == 200) {
  234. uni.setNavigationBarTitle({
  235. title: data.data.subName+'(' + data.data.roomNum + ')'
  236. })
  237. data.data.checkCollapse=false;
  238. data.data.inspectDot=false;
  239. data.data.checkTime= parseTime(data.data.checkTime, "{y}-{m}-{d}");
  240. if(data.data.checkRectifyVoList[0]){
  241. data.data.checkRectifyVoList.forEach(function(item,index){
  242. item.rectifyTime= parseTime(item.rectifyTime, "{y}-{m}-{d}");
  243. item.reviewTime= parseTime(item.reviewTime, "{y}-{m}-{d}");
  244. item.rectifyCollapse=false;
  245. item.reviewCollapse=false;
  246. if(index==data.data.checkRectifyVoList.length-1){
  247. self.$set(self, 'rectifyId', item.rectifyId);
  248. //编辑数据的时候数据回填
  249. if(self.pageType==1 && self.editStatus){
  250. item.rectifyCollapse=true;
  251. item.reviewTime=null;
  252. self.$set(self.form, 'examineOpinion', item.examineOpinion?item.examineOpinion:'');
  253. self.$set(self.form, 'imgDtoList', item.examineUploadList?item.examineUploadList:[]);
  254. }else if(self.pageType==2 && self.editStatus){
  255. item.reviewCollapse=true;
  256. item.rectifyTime=null;
  257. self.$set(self.form, 'rectifyMeasure', item.rectifyMeasure?item.rectifyMeasure:'');
  258. self.$set(self.form, 'imgDtoList', item.rectifyUploadList?item.rectifyUploadList:[]);
  259. }
  260. }
  261. })
  262. }
  263. this.$set(this, 'newData', data.data);
  264. this.$set(this.newData, 'voiceList', data.data.voiceList ? data.data.voiceList : []);
  265. }
  266. },
  267. // 限制文本框字数
  268. sumfontnum(e) {
  269. this.fontNum = e.detail.value.length
  270. },
  271. //获取检查项在当前实验室出现的次数
  272. async securityAppCheckPhotoGetCheckNumBySub() {
  273. let obj = {
  274. subId: this.optionData.subId,
  275. hazardCheckPro: this.optionData.hazardCheckPro,
  276. }
  277. const {
  278. data
  279. } = await securityAppCheckPhotoGetCheckNumBySub(obj);
  280. if (data.code == 200) {
  281. this.$set(this, 'hazardCheckNum', data.data);
  282. }
  283. },
  284. hiddenDangerClick(row) {
  285. let infoData = this.optionData;
  286. infoData.subName=this.newData.subName;
  287. infoData.roomNum=this.newData.roomNum;
  288. infoData.hiddenDangerRecordStatus = true;//判断是否跳转隐患列表
  289. uni.redirectTo({
  290. url: '/pages_safetyCheck/views/inspectManage/hiddenDangerRecord?infoData=' +
  291. encodeURIComponent(JSON.stringify(infoData))
  292. });
  293. },
  294. //图片预览
  295. lockImg(list) {
  296. if (!list[0]) {
  297. return
  298. }
  299. let urlList = [];
  300. for (let i = 0; i < list.length; i++) {
  301. urlList.push(config.base_url + list[i].fileUrl)
  302. }
  303. wx.previewImage({
  304. urls: urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
  305. current: '', // 当前显示图片的http链接,默认是第一个
  306. success: function(res) {},
  307. fail: function(res) {},
  308. complete: function(res) {},
  309. })
  310. },
  311. //滚动事件
  312. scrollGet() {},
  313. /******文件上传******/
  314. selectFile() {
  315. let self = this;
  316. wx.chooseMessageFile({
  317. count: 1,
  318. type: 'file',
  319. success(res) {
  320. console.log(res)
  321. // tempFilePath可以作为img标签的src属性显示图片
  322. const tempFilePaths = res.tempFiles[0].path
  323. self.form.rectifyProjectName = res.tempFiles[0].name
  324. self.uploadFile(tempFilePaths);
  325. }
  326. })
  327. },
  328. async uploadFile(tempFilePaths) {
  329. var self = this;
  330. uni.showLoading({
  331. title: '上传中',
  332. mask: true
  333. });
  334. uni.uploadFile({
  335. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  336. header: {
  337. 'Authorization': uni.getStorageSync('token')
  338. },
  339. filePath: tempFilePaths,
  340. name: 'file',
  341. formData: {
  342. 'user': 'test'
  343. },
  344. success: (uploadFileRes) => {
  345. let res = JSON.parse(uploadFileRes.data);
  346. console.log(res)
  347. if (res.code == 200) {
  348. self.form.rectifyProjectUrl = res.data.url;
  349. } else {
  350. uni.showToast({
  351. title: res.msg,
  352. icon: "none",
  353. mask: true,
  354. duration: 2000
  355. });
  356. }
  357. },
  358. fail: err => {},
  359. complete: () => {
  360. uni.hideLoading()
  361. }
  362. });
  363. },
  364. /******图片上传******/
  365. selectImage() {
  366. let self=this;
  367. let photoMaxNun = 0;
  368. if (this.form.imgDtoList.length > 5) {
  369. uni.showToast({
  370. title: '最多上传6张图片',
  371. icon: "none",
  372. mask: true,
  373. duration: 2000
  374. });
  375. return
  376. }
  377. photoMaxNun = 6 - this.form.imgDtoList.length;
  378. wx.chooseImage({
  379. count: photoMaxNun,
  380. sizeType: ["original", "compressed"],
  381. sourceType: ["album", "camera"],
  382. success: function(res) {
  383. if (res.tempFilePaths[0]) {
  384. res.tempFilePaths.forEach(function(item, index) {
  385. self.uploadImg(item);
  386. })
  387. }
  388. }
  389. });
  390. },
  391. async uploadImg(tempFilePaths) {
  392. var self = this;
  393. uni.showLoading({
  394. title: '上传中',
  395. mask: true
  396. });
  397. uni.uploadFile({
  398. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  399. header: {
  400. 'Authorization': uni.getStorageSync('token')
  401. },
  402. filePath: tempFilePaths,
  403. name: 'file',
  404. formData: {
  405. 'user': 'test'
  406. },
  407. success: (uploadFileRes) => {
  408. let res = JSON.parse(uploadFileRes.data);
  409. if (res.code == 200) {
  410. this.form.imgDtoList.push({
  411. 'fileUrl': res.data.url,
  412. 'fileName': res.data.name,
  413. 'fileType': 2,
  414. });
  415. console.log(res.data.url)
  416. } else {
  417. uni.showToast({
  418. title: res.msg,
  419. icon: "none",
  420. mask: true,
  421. duration: 2000
  422. });
  423. }
  424. },
  425. fail: err => {},
  426. complete: () => {
  427. uni.hideLoading()
  428. }
  429. });
  430. },
  431. //删除图片
  432. delImg(minIndex) {
  433. this.form.imgDtoList.splice(minIndex, 1);
  434. this.$forceUpdate();
  435. },
  436. //折叠展开
  437. inspectDot(){
  438. this.newData.inspectDot=!this.newData.inspectDot
  439. },
  440. checkCollapse(row){
  441. this.newData.checkCollapse=!this.newData.checkCollapse
  442. },
  443. rectifyCollapse(row){
  444. row.rectifyCollapse=!row.rectifyCollapse
  445. },
  446. reviewCollapse(row){
  447. row.reviewCollapse=!row.reviewCollapse
  448. },
  449. //提交
  450. async submitForm(status) {
  451. let self = this;
  452. if(self.pageType==1){
  453. // if(!this.form.examineOpinion && status==2){
  454. // uni.showToast({
  455. // title: '请填写复查验证描述!',
  456. // icon: "none",
  457. // mask: true,
  458. // duration: 2000
  459. // });
  460. // return
  461. // }
  462. // if(!this.form.imgDtoList[0] && status==2){
  463. // uni.showToast({
  464. // title: '请选择现场照片!',
  465. // icon: "none",
  466. // mask: true,
  467. // duration: 2000
  468. // });
  469. // return
  470. // }
  471. //复查
  472. let obj = {
  473. rectifyId: this.rectifyId,
  474. examineOpinion: this.form.examineOpinion,
  475. examineResult: status == 1 ? 1 : 0, //1是通过,0是驳回
  476. examineUploadList: this.form.imgDtoList,
  477. }
  478. const {
  479. data
  480. } = await securityAppCheckDangerApprove(obj);
  481. if (data.code == 200) {
  482. uni.showToast({
  483. title: '提交成功',
  484. icon: "none",
  485. mask: true,
  486. duration: 2000
  487. });
  488. let infoData = this.optionData;
  489. uni.redirectTo({
  490. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItemsDetail?infoData=' +
  491. encodeURIComponent(JSON.stringify(infoData))
  492. });
  493. }
  494. }else if(self.pageType==2){
  495. if(!this.form.rectifyMeasure){
  496. uni.showToast({
  497. title: '请填写隐患整改描述!',
  498. icon: "none",
  499. mask: true,
  500. duration: 2000
  501. });
  502. return
  503. }
  504. if(!this.form.imgDtoList[0]){
  505. uni.showToast({
  506. title: '请选择现场照片!',
  507. icon: "none",
  508. mask: true,
  509. duration: 2000
  510. });
  511. return
  512. }
  513. //整改
  514. let obj = {
  515. checkCategory: this.optionData.checkCategory,
  516. dangerId: this.newData.dangerId,
  517. rectifyMaterialName: '', //待定字段
  518. rectifyMaterialUrl: '', //待定字段
  519. rectifyMeasure: this.form.rectifyMeasure,
  520. rectifyResult: status == 1 ? true : false, //true已整改false暂无法整改
  521. rectifyUploadList: this.form.imgDtoList,
  522. }
  523. const {
  524. data
  525. } = await securityAppCheckDangerCheckRectify(obj);
  526. if (data.code == 200) {
  527. uni.showToast({
  528. title: '提交成功',
  529. icon: "none",
  530. mask: true,
  531. duration: 2000
  532. });
  533. let infoData = this.optionData;
  534. uni.redirectTo({
  535. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItemsDetail?infoData=' +
  536. encodeURIComponent(JSON.stringify(infoData))
  537. });
  538. }
  539. }
  540. },
  541. }
  542. }
  543. </script>
  544. <style lang="stylus" scoped>
  545. .snapshotDetail {
  546. height: 100%;
  547. display flex;
  548. box-sizing: border-box;
  549. padding-bottom: 160rpx;
  550. box-sizing: border-box;
  551. .list-button-max-box{
  552. background-color: #fff;
  553. display: flex;
  554. .list-button-title-box{
  555. line-height:40rpx;
  556. width:200rpx;
  557. padding:30rpx 30rpx 0 30rpx;
  558. }
  559. .list-button-big-box{
  560. padding:30rpx 30rpx 0 0;
  561. margin-right:40rpx;
  562. display: flex;
  563. .check-left-button{
  564. width:28rpx;
  565. height:28rpx;
  566. border-radius:50%;
  567. border:1rpx solid #0183fa;
  568. margin:5rpx 20rpx 0 0;
  569. }
  570. view:nth-child(2){
  571. line-height:40rpx;
  572. }
  573. }
  574. .list-button-big-box-check{
  575. .check-left-button{
  576. view{
  577. margin:5rpx;
  578. width:20rpx;
  579. height:20rpx;
  580. background-color:#0183fa;
  581. border-radius:50%;
  582. }
  583. }
  584. view:nth-child(2){
  585. line-height:40rpx;
  586. }
  587. }
  588. }
  589. #bgColor-A {
  590. color: #FFD400;
  591. }
  592. #bgColor-B {
  593. color: #FF8C00;
  594. }
  595. #bgColor-C {
  596. color: #E11608;
  597. }
  598. #fontColor-A {
  599. color: #FF8C00;
  600. }
  601. #fontColor-B {
  602. color: #16B531;
  603. }
  604. .tip {
  605. width: 750rpx;
  606. height: 80rpx;
  607. background: rgba(255, 140, 0, 0.2);
  608. font-weight: normal;
  609. font-size: 28rpx;
  610. color: #FF8C00;
  611. line-height: 80rpx;
  612. text-align: center;
  613. }
  614. .items {
  615. width: 690rpx;
  616. min-height: 165rpx;
  617. background: #FFFFFF;
  618. border-radius: 20rpx 20rpx 20rpx 20rpx;
  619. margin: 20rpx 0 0 30rpx;
  620. .items-li {
  621. display: flex;
  622. justify-content: space-between;
  623. align-items: center;
  624. padding: 0 30rpx;
  625. box-sizing: border-box;
  626. border-bottom: 1rpx solid #E0E0E0;
  627. >view:nth-of-type(1) {
  628. font-size: 30rpx;
  629. color: #333333;
  630. line-height: 80rpx;
  631. text-align: left;
  632. }
  633. >view:nth-of-type(2) {
  634. font-size: 28rpx;
  635. color: #666666;
  636. line-height: 80rpx;
  637. text-align: left;
  638. display: flex;
  639. justify-content: space-between;
  640. align-items: center;
  641. }
  642. }
  643. .items-t {
  644. border-bottom: 1rpx solid #E0E0E0;
  645. height: 80rpx;
  646. display: flex;
  647. justify-content: flex-start;
  648. align-items: center;
  649. padding: 0 30rpx;
  650. box-sizing: border-box;
  651. .items-t-l {
  652. width: 175rpx;
  653. height: 50rpx;
  654. background: #E11608;
  655. border-radius: 50rpx 50rpx 50rpx 50rpx;
  656. font-size: 30rpx;
  657. color: #FFFFFF;
  658. line-height: 50rpx;
  659. text-align: center;
  660. margin-right: 14rpx;
  661. }
  662. .items-t-r {
  663. font-size: 30rpx;
  664. color: #333333;
  665. line-height: 42rpx;
  666. text-align: left;
  667. }
  668. }
  669. .items-b {
  670. padding: 0 30rpx;
  671. box-sizing: border-box;
  672. height: 80rpx;
  673. font-size: 28rpx;
  674. color: #666666;
  675. line-height: 80rpx;
  676. text-align: left;
  677. }
  678. }
  679. .items-number {
  680. font-size: 24rpx;
  681. color: #3D3D3D;
  682. line-height: 34rpx;
  683. text-align: right;
  684. margin: 20rpx 60rpx 0 0;
  685. >text {
  686. font-size: 24rpx;
  687. color: #FF0000;
  688. line-height: 34rpx;
  689. text-align: right;
  690. }
  691. }
  692. .list {
  693. width: 690rpx;
  694. margin: 20rpx 30rpx 0;
  695. background: #FFFFFF;
  696. border-radius: 20rpx 20rpx 20rpx 20rpx;
  697. .list-li {
  698. display: flex;
  699. justify-content: space-between;
  700. align-items: center;
  701. padding: 0 30rpx;
  702. box-sizing: border-box;
  703. border-bottom: 1rpx solid #E0E0E0;
  704. >view:nth-of-type(1) {
  705. font-size: 30rpx;
  706. color: #333333;
  707. line-height: 80rpx;
  708. text-align: left;
  709. }
  710. >view:nth-of-type(2) {
  711. font-size: 28rpx;
  712. color: #666666;
  713. line-height: 80rpx;
  714. text-align: left;
  715. display: flex;
  716. justify-content: space-between;
  717. align-items: center;
  718. >img {
  719. width: 24rpx;
  720. height: 12rpx;
  721. margin-left: 10rpx;
  722. }
  723. }
  724. }
  725. .list-li-tow {
  726. display: flex;
  727. justify-content: space-between;
  728. align-items: center;
  729. padding: 0 30rpx;
  730. box-sizing: border-box;
  731. border-top: 1rpx solid #E0E0E0;
  732. border-bottom: 1rpx solid #E0E0E0;
  733. >view:nth-of-type(1) {
  734. font-size: 30rpx;
  735. color: #333333;
  736. line-height: 80rpx;
  737. text-align: left;
  738. }
  739. >view:nth-of-type(2) {
  740. font-size: 28rpx;
  741. color: #666666;
  742. line-height: 80rpx;
  743. text-align: left;
  744. display: flex;
  745. justify-content: space-between;
  746. align-items: center;
  747. >img {
  748. width: 30rpx;
  749. height: 28rpx;
  750. margin-left: 10rpx;
  751. }
  752. }
  753. }
  754. .file-li {
  755. display: flex;
  756. justify-content: space-between;
  757. align-items: center;
  758. padding: 0 30rpx;
  759. box-sizing: border-box;
  760. >img:nth-of-type(1) {
  761. width: 30rpx;
  762. height: 30rpx;
  763. }
  764. >view {
  765. flex: 1;
  766. font-size: 28rpx;
  767. color: #333333;
  768. line-height: 80rpx;
  769. text-align: left;
  770. margin: 0 92rpx 0 16rpx;
  771. overflow: hidden;
  772. text-overflow: ellipsis;
  773. white-space: nowrap;
  774. }
  775. >img:nth-of-type(2) {
  776. width: 30rpx;
  777. height: 30rpx;
  778. }
  779. }
  780. .hidden-content {
  781. width: 630rpx;
  782. min-height: 200rpx;
  783. background: #F5F5F5;
  784. border-radius: 20rpx 20rpx 20rpx 20rpx;
  785. margin: 20rpx 30rpx 0;
  786. padding: 20rpx;
  787. box-sizing: border-box;
  788. font-size: 28rpx;
  789. color: #666666;
  790. line-height: 39rpx;
  791. text-align: left;
  792. }
  793. .photo {
  794. display: flex;
  795. justify-content: flex-start;
  796. flex-wrap: wrap;
  797. margin-top: 20rpx;
  798. padding: 0 30rpx;
  799. box-sizing: border-box;
  800. >img {
  801. width: 150rpx;
  802. height: 150rpx;
  803. border-radius: 10rpx 10rpx 10rpx 10rpx;
  804. margin: 0 10rpx 10rpx 0;
  805. }
  806. >img:nth-of-type(4) {
  807. margin-right: 0;
  808. }
  809. }
  810. .describe {
  811. width: 636rpx;
  812. height: 120rpx;
  813. border-radius: 10rpx 10rpx 10rpx 10rpx;
  814. border: 1rpx solid #E0E0E0;
  815. margin: 20rpx 0 0 28rpx;
  816. padding: 12rpx 16rpx;
  817. box-sizing: border-box;
  818. }
  819. .check-for-img-max-box {
  820. margin: 20px 28rpx;
  821. .left-title-p {
  822. width: 100%;
  823. text-align: left;
  824. font-size: 30rpx;
  825. font-family: PingFang SC-Medium, PingFang SC;
  826. font-weight: 400;
  827. color: #333333;
  828. line-height: 80rpx;
  829. }
  830. .right-img-box {
  831. .img-box {
  832. display inline-block;
  833. height: 150rpx;
  834. width: 150rpx;
  835. position relative;
  836. margin: 0 10rpx 20rpx 0;
  837. border-radius 10rpx;
  838. overflow hidden;
  839. .img-data {
  840. height: 150rpx;
  841. width: 150rpx;
  842. }
  843. .position-img {
  844. position absolute;
  845. right: 0;
  846. top: 0;
  847. width: 36rpx;
  848. height: 36rpx;
  849. }
  850. }
  851. .img-box:nth-of-type(4n+4) {
  852. margin-right: 0rpx;
  853. }
  854. .add-button {
  855. margin: 0 0rpx 20rpx 0;
  856. border-radius 10rpx;
  857. overflow hidden;
  858. display inline-block;
  859. height: 150rpx;
  860. width: 150rpx;
  861. }
  862. }
  863. }
  864. /* .list-li:last-of-type {
  865. border: none;
  866. } */
  867. }
  868. }
  869. /* 语音备注 */
  870. .voice {
  871. width: 690rpx;
  872. min-height: 100rpx;
  873. background: #FFFFFF;
  874. border-radius: 20rpx 20rpx 20rpx 20rpx;
  875. padding: 0 30rpx;
  876. box-sizing: border-box;
  877. overflow: hidden;
  878. .voice_t {
  879. height: 100rpx;
  880. display: flex;
  881. justify-content: space-between;
  882. align-items: center;
  883. .voice_t_t {
  884. width: 100%;
  885. font-size: 30rpx;
  886. font-family: PingFang SC-Medium, PingFang SC;
  887. font-weight: 400;
  888. color: #333333;
  889. line-height: 100rpx;
  890. }
  891. .voice_t_b {
  892. width: 100%;
  893. font-size: 30rpx;
  894. font-family: PingFang SC-Medium, PingFang SC;
  895. font-weight: 400;
  896. color: #333333;
  897. line-height: 100rpx;
  898. text-align: left;
  899. }
  900. }
  901. .voice_b {
  902. display flex;
  903. justify-content flex-start;
  904. align-items center;
  905. margin-bottom: 20rpx;
  906. .voice_b_l {
  907. width: 400rpx;
  908. height: 40rpx;
  909. background: #0183FA;
  910. border-radius: 10rpx;
  911. display flex;
  912. justify-content flex-start;
  913. align-items center;
  914. font-size: 24rpx;
  915. color: #FFFFFF;
  916. line-height: 30rpx;
  917. text-align: left;
  918. >img {
  919. width: 20rpx;
  920. height: 20rpx;
  921. margin-left: 16rpx;
  922. margin-right: 20rpx;
  923. }
  924. }
  925. .voice_b_r {
  926. width: 28rpx;
  927. height: 28rpx;
  928. margin-left: 20rpx;
  929. }
  930. }
  931. .voice-btn {
  932. width: 150rpx;
  933. height: 150rpx;
  934. position: fixed;
  935. right: 24rpx;
  936. bottom: 176rpx;
  937. >img {
  938. width: 150rpx;
  939. height: 150rpx;
  940. position: absolute;
  941. }
  942. >text {
  943. font-size: 24rpx;
  944. color: #999999;
  945. line-height: 30rpx;
  946. text-align: center;
  947. position: absolute;
  948. top: 84rpx;
  949. left: 26rpx;
  950. }
  951. }
  952. }
  953. .sub-btn {
  954. display: flex;
  955. justify-content: center;
  956. position: fixed;
  957. left: 30rpx;
  958. bottom: 30rpx;
  959. >view:nth-of-type(1) {
  960. width: 345rpx;
  961. height: 100rpx;
  962. background: #FF8C00;
  963. border-radius: 50rpx 0rpx 0rpx 50rpx;
  964. font-size: 30rpx;
  965. color: #FFFFFF;
  966. line-height: 100rpx;
  967. text-align: center;
  968. }
  969. >view:nth-of-type(2) {
  970. width: 345rpx;
  971. height: 100rpx;
  972. background: #0183FA;
  973. border-radius: 0rpx 50rpx 50rpx 0rpx;
  974. font-size: 30rpx;
  975. color: #FFFFFF;
  976. line-height: 100rpx;
  977. text-align: center;
  978. }
  979. }
  980. </style>