conductInspections.vue 23 KB

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