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. <!-- <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. }
  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>