conductInspections.vue 23 KB

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