conductInspections.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. <!-- 开展检查 -->
  2. <template>
  3. <view class="inspectAdd">
  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. <!-- <img class="srearch-r" src="@/pages_safetyCheck/images/icon_wd_gd@1x.png"> -->
  9. </view>
  10. <view class="list-li" style="margin-bottom: 20rpx;border:none;">
  11. <view>
  12. {{newData.roomNum?newData.roomNum:''}}房间&{{newData.buildName?newData.buildName:'楼栋'}}&{{newData.deptName?newData.deptName:'学院单位'}}
  13. </view>
  14. </view>
  15. <view class="list-li">
  16. <view>现场照片</view>
  17. </view>
  18. <view v-if="form.photoList[0]" class="check-for-img-max-box">
  19. <view class="left-title-p"></view>
  20. <view class="right-img-box">
  21. <view class="img-box" v-for="(imgUrl,imgIndex) in form.photoList" :key="imgIndex">
  22. <img class="img-data" :src="baseUrl+imgUrl.fileUrl">
  23. <img class="position-img" src="@/pages_safetyCheck/images/icon_ssp_closure.png"
  24. @click="delImg(imgIndex)">
  25. </view>
  26. <!-- <img class="add-button" src="@/pages_safetyCheck/images/img_ssp_pz@1x.png"
  27. @click="selectImage()" v-if="form.photoList.length<6"> -->
  28. </view>
  29. </view>
  30. <view class="list-li" @click="checkItemModuleButton('open')" style="border-bottom: none;">
  31. <view> {{newData.hazardCheckCode?newData.hazardCheckCode:''}}
  32. {{newData.hazardCheckName?newData.hazardCheckName:'检查项'}}
  33. </view>
  34. <view style="color: #0183FA;">
  35. <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
  36. </view>
  37. </view>
  38. <view class="hazardCheckNum" @click="hiddenDangerClick()">
  39. <img class="hazardCheckNum-l" src="@/pages_safetyCheck/images/icon_aqjc_yinhuan.png">
  40. <view class="hazardCheckNum-r">{{'已连续出现'+hazardCheckNum+'次隐患'}} </view>
  41. </view>
  42. <view class="list-li" v-if="!form.checkFlag">
  43. <view>隐患描述</view>
  44. <view></view>
  45. </view>
  46. <view class="describe">
  47. <textarea v-if="!form.checkFlag && !checkItemModuleType" cursor-spacing="40" class="describe-n" type="text"
  48. v-model="form.hazardDescribe" maxlength="200" placeholder="请填写隐患描述"
  49. placeholder-style="font-size:24rpx;color:#999;"></textarea>
  50. </view>
  51. </view>
  52. <view class="voice">
  53. <view class="voice_t">
  54. <view class="voice_t_t" v-if="!form.voiceList[0]"><text>语音备注:</text><text>按住话筒录音</text></view>
  55. <view class="voice_t_b" v-if="form.voiceList[0]">语音备注:({{form.voiceList.length}})</view>
  56. </view>
  57. <view class="voice_b" v-if="form.voiceList[0]" v-for="(voiceItem,voiceIndex) in form.voiceList"
  58. :key="voiceIndex">
  59. <view class="voice_b_l" @tap="voicePlay(voiceItem.fileUrl)">
  60. <img class="add-button" src="@/pages_safetyCheck/images//icon_yybz_yy.png" />
  61. {{voiceItem.fileLength}}″
  62. </view>
  63. <img class="voice_b_r" src="@/pages_safetyCheck/images/icon_yybz_sc.png"
  64. @tap="voiceDele('',voiceIndex)" />
  65. </view>
  66. <!-- <view class="voice-btn">
  67. <img class="voice_t_r" src="@/pages_safetyCheck/images/icon_sskz_azsh.png"
  68. @longpress.stop="recordButton(item,$event)" @touchmove.stop="cancelButton"
  69. @touchend.stop="sendButton(item,$event)" />
  70. <text>按住说话</text>
  71. </view> -->
  72. </view>
  73. </scroll-view>
  74. <checkItemModule :propsData="propsData" v-if="checkItemModuleType"></checkItemModule>
  75. <!-- <view class="sub-btn">
  76. <view @click="submitForm(1)">保存草稿</view>
  77. <view @click="submitForm(2)">提交</view>
  78. </view> -->
  79. <view class="sub-btn" v-if="!checkItemModuleType">
  80. <img @longpress.stop="recordButton(item,$event)" @touchmove.stop="cancelButton"
  81. @touchend.stop="sendButton(item,$event)" src="@/pages_safetyCheck/images/icon_aqjc_luyin.png" />
  82. <img @click="selectImage()" src="@/pages_safetyCheck/images/icon_aqjc_paizhao.png" />
  83. <img @click="submitForm(2)" src="@/pages_safetyCheck/images/icon_aqjc_tijiao.png" />
  84. </view>
  85. </view>
  86. </template>
  87. <script>
  88. const myaudio = uni.createInnerAudioContext();
  89. import {
  90. config
  91. } from '@/api/request/config.js'
  92. import {
  93. securityAppCheckPlanCheckInfo,
  94. securityAppCheckSetOptionCheckCommit,
  95. securityAppCheckPhotoGetCheckNumBySub,
  96. } from '@/pages_safetyCheck/api/index.js'
  97. import {
  98. checkItemModule
  99. } from '@/pages_safetyCheck/component/checkItemModule.vue'
  100. export default {
  101. name: "inspectAdd",
  102. components: {
  103. checkItemModule
  104. },
  105. data() {
  106. return {
  107. baseUrl: config.base_url,
  108. form: {
  109. checkFlag: false,
  110. photoList: [],
  111. voiceList: [],
  112. },
  113. newData: {},
  114. radioList: [{
  115. id: 1,
  116. name: '符合',
  117. checked: false,
  118. },
  119. {
  120. id: 0,
  121. name: '不符合',
  122. checked: true,
  123. },
  124. ],
  125. pageType: '',
  126. sendLock: true, //发送锁,当为true时上锁,false时解锁发送
  127. recorderManager: wx.getRecorderManager(),
  128. optionData: null,
  129. //检查项组件数据
  130. checkItemModuleType: false,
  131. propsData: {},
  132. hazardCheckNum:0,
  133. }
  134. },
  135. onLoad(option) {
  136. let optionData = JSON.parse(decodeURIComponent(option.infoData));
  137. console.log('开展检查',optionData)
  138. uni.setNavigationBarTitle({
  139. title: optionData.subName + '(' + (optionData.pageType == 0 ? (optionData.roomNum ? optionData
  140. .roomNum : '-') : (optionData
  141. .subRoom ? optionData
  142. .subRoom : '-')) + ')'
  143. })
  144. this.$set(this, 'pageType', optionData.pageType);
  145. this.$set(this, 'optionData', optionData);
  146. },
  147. onShow() {
  148. },
  149. mounted() {
  150. if (this.pageType == 0) {
  151. this.securityAppCheckPlanCheckInfo();
  152. this.securityAppCheckPhotoGetCheckNumBySub();
  153. }
  154. },
  155. methods: {
  156. //折叠展开
  157. inspectDot() {
  158. this.newData.inspectDot = !this.newData.inspectDot
  159. },
  160. //获取提交详情
  161. async securityAppCheckPlanCheckInfo() {
  162. let obj = {
  163. setOptionId: this.optionData.setOptionId,
  164. manageId: this.optionData.manageId,
  165. }
  166. const {
  167. data
  168. } = await securityAppCheckPlanCheckInfo(obj);
  169. if (data.code == 200) {
  170. data.data.inspectDot = true;
  171. this.$set(this, 'newData', data.data);
  172. console.log(data.data.hazardCheckPoin)
  173. //编辑的时候
  174. this.$set(this.form, 'checkFlag', data.data.checkFlag ? data.data.checkFlag : false);
  175. if(data.data.hazardDescribe){
  176. this.$set(this.form, 'hazardDescribe', data.data.hazardDescribe);
  177. }else{
  178. let list=[];
  179. list=data.data.hazardCheckPoint.split('#');
  180. this.$set(this.form, 'hazardDescribe', list[0]);
  181. }
  182. this.$set(this.form, 'photoList', data.data.photoList ? data.data.photoList : []);
  183. this.$set(this.form, 'voiceList', data.data.voiceList ? data.data.voiceList : []);
  184. }
  185. },
  186. hiddenDangerClick(row) {
  187. if(!this.hiddenDangerRecordStatus){
  188. let infoData = this.optionData;
  189. infoData.subName=this.newData.subName;
  190. infoData.roomNum=this.newData.roomNum;
  191. infoData.hiddenDangerRecordStatus = true;//判断是否跳转隐患列表
  192. uni.redirectTo({
  193. url: '/pages_safetyCheck/views/inspectManage/hiddenDangerRecord?infoData=' +
  194. encodeURIComponent(JSON.stringify(infoData))
  195. });
  196. }
  197. },
  198. checkItemModuleButton(type, item,keyPoint) {
  199. if (type == 'open') {
  200. let obj = {
  201. infoType: this.pageType,
  202. checkType: 0,
  203. }
  204. if (this.pageType == 0) {
  205. //检查
  206. obj.manageId = this.optionData.manageId
  207. }
  208. this.$set(this, 'propsData', obj);
  209. this.$set(this, 'checkItemModuleType', true);
  210. } else if (type == 'out') {
  211. this.$set(this, 'checkItemModuleType', false);
  212. this.$set(this, 'propsData', {});
  213. } else if (type == 'submit') {
  214. //this.itemsClick(item);
  215. this.$set(this.newData, 'hazardCheckCode', item.hazardCheckCode);
  216. this.$set(this.newData, 'hazardCheckName', item.hazardCheckName);
  217. this.$set(this.newData, 'hazardCheckCode2', item.hazardCheckCode2);
  218. this.$set(this.newData, 'hazardCheckName2', item.hazardCheckName2);
  219. this.$set(this.newData, 'hazardCheckPoint', item.hazardCheckPoint);
  220. this.$set(this.form, 'hazardDescribe', keyPoint);
  221. this.$set(this.optionData, 'setOptionId', item.setOptionId);
  222. this.$set(this.optionData, 'hazardCheckPro', item.hazardCheckPro);
  223. this.$set(this, 'checkItemModuleType', false);
  224. this.securityAppCheckPhotoGetCheckNumBySub();
  225. }
  226. },
  227. //提交
  228. async submitForm(status) {
  229. if (!this.form.checkFlag) {
  230. if (!this.form.hazardDescribe) {
  231. uni.showToast({
  232. title: '请填写隐患描述!',
  233. icon: "none",
  234. mask: true,
  235. duration: 2000
  236. });
  237. return
  238. }
  239. if (!this.form.photoList[0]) {
  240. uni.showToast({
  241. title: '请选择现场照片!',
  242. icon: "none",
  243. mask: true,
  244. duration: 2000
  245. });
  246. return
  247. }
  248. }
  249. let obj = {
  250. checkFlag: this.form.checkFlag,
  251. checkStatus: 1,
  252. hazardDescribe: this.form.hazardDescribe,
  253. setOptionId: this.optionData.setOptionId,
  254. photoList: this.form.photoList,
  255. voiceList: this.form.voiceList,
  256. }
  257. const {
  258. data
  259. } = await securityAppCheckSetOptionCheckCommit(obj);
  260. if (data.code == 200) {
  261. uni.showToast({
  262. title: '提交成功!',
  263. icon: "none",
  264. mask: true,
  265. duration: 2000
  266. });
  267. let infoData = this.optionData;
  268. uni.redirectTo({
  269. url: '/pages_safetyCheck/views/itemsManage/hiddenDangerItemsDetail?infoData=' +
  270. encodeURIComponent(JSON
  271. .stringify(infoData))
  272. });
  273. }
  274. },
  275. //获取检查项在当前实验室出现的次数
  276. async securityAppCheckPhotoGetCheckNumBySub() {
  277. let obj = {
  278. subId: this.optionData.subId,
  279. hazardCheckPro: this.optionData.hazardCheckPro,
  280. }
  281. const {
  282. data
  283. } = await securityAppCheckPhotoGetCheckNumBySub(obj);
  284. if (data.code == 200) {
  285. this.$set(this, 'hazardCheckNum', data.data);
  286. }
  287. },
  288. //滚动事件
  289. scrollGet() {},
  290. //单选按钮
  291. radioClick(d) {
  292. let self = this;
  293. d.checked = !d.checked
  294. if (d.checked) {
  295. //如果有选中的,循环把其他选中的取消
  296. this.radioList.forEach(function(item) {
  297. if (item.id == d.id) {
  298. self.$set(self.form, 'checkFlag', item.id);
  299. } else {
  300. item.checked = false;
  301. }
  302. })
  303. } else {
  304. }
  305. },
  306. /******图片上传******/
  307. selectImage() {
  308. let self = this;
  309. let photoMaxNun = 0;
  310. if (this.form.photoList.length > 5) {
  311. uni.showToast({
  312. title: '最多上传6张图片',
  313. icon: "none",
  314. mask: true,
  315. duration: 2000
  316. });
  317. return
  318. }
  319. photoMaxNun = 6 - this.form.photoList.length;
  320. wx.chooseImage({
  321. count: photoMaxNun,
  322. sizeType: ["original", "compressed"],
  323. sourceType: ["album", "camera"],
  324. success: function(res) {
  325. if (res.tempFilePaths[0]) {
  326. res.tempFilePaths.forEach(function(item, index) {
  327. self.uploadImg(item);
  328. })
  329. }
  330. }
  331. });
  332. },
  333. async uploadImg(tempFilePaths) {
  334. var self = this;
  335. uni.showLoading({
  336. title: '上传中',
  337. mask: true
  338. });
  339. uni.uploadFile({
  340. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  341. header: {
  342. 'Authorization': uni.getStorageSync('token')
  343. },
  344. filePath: tempFilePaths,
  345. name: 'file',
  346. formData: {
  347. 'user': 'test'
  348. },
  349. success: (uploadFileRes) => {
  350. let res = JSON.parse(uploadFileRes.data);
  351. if (res.code == 200) {
  352. this.form.photoList.push({
  353. 'fileUrl': res.data.url,
  354. 'fileName': res.data.name
  355. });
  356. } else {
  357. uni.showToast({
  358. title: res.msg,
  359. icon: "none",
  360. mask: true,
  361. duration: 2000
  362. });
  363. }
  364. },
  365. fail: err => {},
  366. complete: () => {
  367. uni.hideLoading()
  368. }
  369. });
  370. },
  371. //删除图片
  372. delImg(minIndex) {
  373. this.form.photoList.splice(minIndex, 1);
  374. this.$forceUpdate();
  375. },
  376. /******语音备注 *******/
  377. //语音备忘播放
  378. async voicePlay(item) {
  379. myaudio.src = config.base_url + item;
  380. myaudio.play();
  381. },
  382. //语音备忘删除
  383. async voiceDele(item, voiceIndex) {
  384. let self = this;
  385. uni.showModal({
  386. title: '',
  387. cancelColor: '#999999',
  388. confirmColor: '#FF6E6E',
  389. content: '确定删除此语音吗?',
  390. success(res) {
  391. if (res.confirm) {
  392. console.log('用户点击确定')
  393. self.form.voiceList.splice(voiceIndex, 1);
  394. self.$forceUpdate();
  395. } else if (res.cancel) {
  396. console.log('用户点击取消')
  397. }
  398. }
  399. })
  400. },
  401. //录制
  402. recordButton(item, e) {
  403. console.log("按下")
  404. let self = this;
  405. if (this.form.voiceList.length >= 5) {
  406. uni.showToast({
  407. title: '语音备忘最多只能上传5条',
  408. icon: "none",
  409. mask: true,
  410. duration: 2000
  411. });
  412. return
  413. }
  414. this.liveType = true;
  415. console.log('录制', e)
  416. this.startPoint = e.touches[0]; //记录长按时开始点信息,后面用于计算上划取消时手指滑动的距离。
  417. const options = {
  418. duration: 60000,
  419. sampleRate: 16000,
  420. numberOfChannels: 1,
  421. encodeBitRate: 48000,
  422. format: 'mp3',
  423. frameSize: 50
  424. }
  425. this.recorderManager.start(options); //开始录音
  426. this.recorderManager.onStart(() => {
  427. console.log('recorder start')
  428. })
  429. this.recorderManager.onError((res) => {
  430. console.log(res);
  431. })
  432. wx.showToast({
  433. title: "正在录音,上划取消发送",
  434. icon: "none",
  435. duration: 60000 //先定义个60秒,后面可以手动调用wx.hideToast()隐藏
  436. });
  437. this.sendLock = false; //长按时是不上锁的。
  438. },
  439. //取消
  440. cancelButton(e) {
  441. console.log("移动")
  442. let self = this;
  443. this.liveType = false;
  444. console.log('取消', e)
  445. let moveLenght = e.touches[e.touches.length - 1].clientY - this.startPoint.clientY; //移动距离
  446. if (Math.abs(moveLenght) > 50) {
  447. wx.showToast({
  448. title: "松开手指,取消发送",
  449. icon: "none",
  450. duration: 60000
  451. });
  452. this.sendLock = true; //触发了上滑取消发送,上锁
  453. } else {
  454. wx.showToast({
  455. title: "正在录音,上划取消发送",
  456. icon: "none",
  457. duration: 60000
  458. });
  459. this.sendLock = false; //上划距离不足,依然可以发送,不上锁
  460. }
  461. },
  462. //发送
  463. sendButton(item, e) {
  464. console.log("松开")
  465. let self = this;
  466. this.liveType = false;
  467. console.log('发送', e)
  468. wx.hideToast(); //结束录音、隐藏Toast提示框
  469. this.recorderManager.stop(); //结束录音
  470. this.recorderManager.onStop((res) => {
  471. if (!this.sendLock) {
  472. this.uploadVoice(item, res.duration, res.tempFilePath);
  473. }
  474. console.log('停止录音', res.tempFilePath)
  475. console.log("sendLock", this.sendLock);
  476. })
  477. },
  478. //上传MP3
  479. async uploadVoice(item, times, tempFilePaths) {
  480. var self = this;
  481. uni.uploadFile({
  482. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  483. header: {
  484. 'Authorization': uni.getStorageSync('token')
  485. },
  486. filePath: tempFilePaths,
  487. name: 'file',
  488. formData: {
  489. 'user': 'test'
  490. },
  491. success: (uploadFileRes) => {
  492. let res = JSON.parse(uploadFileRes.data);
  493. if (res.code == 200) {
  494. console.log("上传成功", res)
  495. console.log(item)
  496. let seconds = Math.round((parseInt(times) % (1000 * 60)) / 1000);
  497. this.form.voiceList.push({
  498. 'fileLength': seconds,
  499. 'fileUrl': res.data.url,
  500. 'fileName': res.data.name
  501. })
  502. console.log(JSON.stringify(self.voice))
  503. //self.textParseUrlIps(res.data.url);
  504. // self.newData.imgList.push(res.data.url);
  505. } else {
  506. uni.showToast({
  507. title: res.msg,
  508. icon: "none",
  509. mask: true,
  510. duration: 2000
  511. });
  512. }
  513. },
  514. fail: err => {
  515. uni.hideLoading()
  516. },
  517. complete: () => {}
  518. });
  519. },
  520. }
  521. }
  522. </script>
  523. <style lang="stylus" scoped>
  524. .inspectAdd {
  525. height: 100%;
  526. display flex;
  527. box-sizing: border-box;
  528. padding-bottom: 230rpx;
  529. box-sizing: border-box;
  530. .tip {
  531. width: 750rpx;
  532. height: 80rpx;
  533. background: rgba(1, 131, 250, 0.2);
  534. font-weight: normal;
  535. font-size: 28rpx;
  536. color: #0183FA;
  537. line-height: 80rpx;
  538. text-align: center;
  539. }
  540. .list {
  541. width: 750rpx;
  542. margin: 20rpx 0rpx 0;
  543. border-radius: 20rpx 20rpx 20rpx 20rpx;
  544. overflow: hidden;
  545. .list-li {
  546. display: flex;
  547. justify-content: space-between;
  548. align-items: center;
  549. padding: 0 30rpx;
  550. box-sizing: border-box;
  551. border-bottom: 1rpx solid #E0E0E0;
  552. background: #fff;
  553. >view:nth-of-type(1) {
  554. font-size: 30rpx;
  555. color: #333333;
  556. line-height: 100rpx;
  557. text-align: left;
  558. overflow: hidden;
  559. text-overflow: ellipsis;
  560. white-space: nowrap;
  561. }
  562. >view:nth-of-type(2) {
  563. font-size: 28rpx;
  564. color: #666666;
  565. line-height: 100rpx;
  566. text-align: left;
  567. display: flex;
  568. justify-content: space-between;
  569. align-items: center;
  570. >img {
  571. width: 30rpx;
  572. height: 30rpx;
  573. margin-left: 10rpx;
  574. }
  575. }
  576. }
  577. .hidden-content {
  578. width: 630rpx;
  579. min-height: 200rpx;
  580. background: #F5F5F5;
  581. border-radius: 20rpx 20rpx 20rpx 20rpx;
  582. margin: 20rpx 30rpx 0;
  583. padding: 20rpx;
  584. box-sizing: border-box;
  585. font-size: 28rpx;
  586. color: #666666;
  587. line-height: 39rpx;
  588. text-align: left;
  589. }
  590. .photo {
  591. display: flex;
  592. justify-content: flex-start;
  593. flex-wrap: wrap;
  594. margin-top: 20rpx;
  595. padding: 0 30rpx;
  596. box-sizing: border-box;
  597. >img {
  598. width: 150rpx;
  599. height: 150rpx;
  600. border-radius: 10rpx 10rpx 10rpx 10rpx;
  601. margin: 0 10rpx 10rpx 0;
  602. }
  603. >img:nth-of-type(4) {
  604. margin-right: 0;
  605. }
  606. }
  607. .describe {
  608. width: 750rpx;
  609. background: #fff;
  610. overflow: hidden;
  611. .describe-n {
  612. width: 690rpx;
  613. min-height: 180rpx;
  614. border-radius: 10rpx 10rpx 10rpx 10rpx;
  615. border: 1rpx solid #E0E0E0;
  616. margin: 40rpx;
  617. padding: 22rpx;
  618. box-sizing: border-box;
  619. background: #F5F5F5;
  620. }
  621. }
  622. .check-for-img-max-box {
  623. padding: 20px 28rpx;
  624. box-sizing: border-box;
  625. background: #fff;
  626. border-bottom: 2rpx solid #E0E0E0;
  627. .left-title-p {
  628. width: 100%;
  629. text-align: left;
  630. font-size: 30rpx;
  631. font-family: PingFang SC-Medium, PingFang SC;
  632. font-weight: 400;
  633. color: #333333;
  634. line-height: 80rpx;
  635. }
  636. .right-img-box {
  637. .img-box {
  638. display inline-block;
  639. height: 150rpx;
  640. width: 150rpx;
  641. position relative;
  642. margin: 0 10rpx 20rpx 0;
  643. border-radius 10rpx;
  644. overflow hidden;
  645. .img-data {
  646. height: 150rpx;
  647. width: 150rpx;
  648. }
  649. .position-img {
  650. position absolute;
  651. right: 0;
  652. top: 0;
  653. width: 36rpx;
  654. height: 36rpx;
  655. }
  656. }
  657. .img-box:nth-of-type(4n+4) {
  658. margin-right: 0rpx;
  659. }
  660. .add-button {
  661. margin: 0 0rpx 20rpx 0;
  662. border-radius 10rpx;
  663. overflow hidden;
  664. display inline-block;
  665. height: 150rpx;
  666. width: 150rpx;
  667. }
  668. }
  669. }
  670. .list-li:last-of-type {
  671. border: none;
  672. }
  673. .hazardCheckNum{
  674. border-bottom: 2rpx solid #E0E0E0;
  675. padding: 30rpx 40rpx 34rpx 40rpx;
  676. box-sizing: border-box;
  677. background: #fff;
  678. display: flex;
  679. justify-content: flex-end;
  680. align-items: center;
  681. .hazardCheckNum-l{
  682. width: 30rpx;
  683. height: 30rpx;
  684. margin-right: 18rpx;
  685. }
  686. .hazardCheckNum-r{
  687. font-size: 28rpx;
  688. color: #FF5900;
  689. line-height: 40rpx;
  690. text-align: left;
  691. }
  692. }
  693. }
  694. .srearch {
  695. display: flex;
  696. justify-content: space-between;
  697. align-items: center;
  698. .srearch-l {
  699. font-size: 30rpx;
  700. color: #333333;
  701. line-height: 100rpx;
  702. text-align: left;
  703. }
  704. .srearch-r {
  705. width: 30rpx;
  706. height: 30rpx;
  707. margin-right: 0rpx;
  708. }
  709. }
  710. /* 语音备注 */
  711. .voice {
  712. width: 750rpx;
  713. min-height: 100rpx;
  714. background: #FFFFFF;
  715. border-radius: 20rpx 20rpx 20rpx 20rpx;
  716. overflow: hidden;
  717. .voice_t {
  718. height: 100rpx;
  719. display: flex;
  720. justify-content: space-between;
  721. align-items: center;
  722. padding: 0 30rpx;
  723. box-sizing: border-box;
  724. border-top: 2rpx solid #E0E0E0;
  725. .voice_t_t {
  726. width: 100%;
  727. display: flex;
  728. justify-content: space-between;
  729. >text:nth-of-type(1) {
  730. font-size: 30rpx;
  731. color: #333333;
  732. line-height: 100rpx;
  733. }
  734. >text:nth-of-type(2) {
  735. font-size: 28rpx;
  736. color: #999999;
  737. line-height: 100rpx;
  738. }
  739. }
  740. .voice_t_b {
  741. width: 100%;
  742. font-size: 30rpx;
  743. font-family: PingFang SC-Medium, PingFang SC;
  744. font-weight: 400;
  745. color: #333333;
  746. line-height: 100rpx;
  747. text-align: left;
  748. }
  749. }
  750. .voice_b {
  751. display flex;
  752. justify-content flex-start;
  753. align-items center;
  754. margin-bottom: 20rpx;
  755. padding: 0 30rpx;
  756. box-sizing: border-box;
  757. .voice_b_l {
  758. width: 400rpx;
  759. height: 40rpx;
  760. background: #0183FA;
  761. border-radius: 10rpx;
  762. display flex;
  763. justify-content flex-start;
  764. align-items center;
  765. font-size: 24rpx;
  766. color: #FFFFFF;
  767. line-height: 30rpx;
  768. text-align: left;
  769. >img {
  770. width: 20rpx;
  771. height: 20rpx;
  772. margin-left: 16rpx;
  773. margin-right: 20rpx;
  774. }
  775. }
  776. .voice_b_r {
  777. width: 28rpx;
  778. height: 28rpx;
  779. margin-left: 20rpx;
  780. }
  781. }
  782. .voice-btn {
  783. width: 150rpx;
  784. height: 150rpx;
  785. position: fixed;
  786. right: 24rpx;
  787. bottom: 176rpx;
  788. >img {
  789. width: 150rpx;
  790. height: 150rpx;
  791. position: absolute;
  792. }
  793. >text {
  794. font-size: 24rpx;
  795. color: #999999;
  796. line-height: 30rpx;
  797. text-align: center;
  798. position: absolute;
  799. top: 84rpx;
  800. left: 26rpx;
  801. }
  802. }
  803. }
  804. }
  805. .sub-btn {
  806. display: flex;
  807. justify-content: space-between;
  808. position: fixed;
  809. bottom: 30rpx;
  810. width: 750rpx;
  811. padding: 0 46rpx;
  812. box-sizing: border-box;
  813. >img {
  814. width: 160rpx;
  815. height: 160rpx;
  816. }
  817. }
  818. </style>