examineAddTow.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897
  1. <!-- 开始检查 -->
  2. <template>
  3. <view id="startChecking">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <viwe class="list">
  6. <view class="title">不符合项</view>
  7. <view class="check-for-big-box" v-for="(item,index) in form.checkHazardDtoList" :key="index">
  8. <view class="grade">
  9. <view class="grade_l">隐患等级:</view>
  10. <picker @change="gradeChange(item,$event)" :value="gradeIndex" :range="gradeArray" class="scope_r">
  11. <view class="grade_r">
  12. <view>{{item.hazardLevel==2?'一般隐患':(item.hazardLevel==1?'重大隐患':(item.hazardLevel==3?'管理问题':''))}}</view>
  13. <img src="@/images/Version3.3.3/icon_06.png">
  14. </view>
  15. </picker>
  16. </view>
  17. <view class="project" v-if="checkOptionList.length>0">
  18. <view class="project_l">检查项目:</view>
  19. <!-- <uni-data-picker :ellipsis="false" :localdata="checkOptionList[index]" :map="{text:'name',value:'id'}"
  20. popup-title="请选择所属目录" @change="(e)=>onchange(e,index)" @nodeclick="onnodeclick()"
  21. ref="uniDataPicker" :addType="true" :addIndex="index">
  22. <view class="project_r">{{item.hazardCheckName?item.hazardCheckName:'请选择检查项'}}</view>
  23. </uni-data-picker> -->
  24. <uni-data-picker placeholder="请选择班级" popup-title="请选择所属目录" :localdata="checkOptionList" :map="{text:'name',value:'id'}" v-model="item.hazardCheckName"
  25. @change="(e)=>onchange(e,index)" @nodeclick="onnodeclick">
  26. <view class="project_r">{{item.hazardCheckName?item.hazardCheckName:'请选择检查项'}}</view>
  27. </uni-data-picker>
  28. </view>
  29. <view class="point">
  30. <view class="point_l">检查要点:</view>
  31. <textarea class="point_r" type="text" v-model="item.hazardCheckPoint" maxlength="50" placeholder="未查到此项检查要点,可在此输入添加" placeholder-style="font-size:28rpx;color:#999;"></textarea>
  32. </view>
  33. <view class="check-for-input-max-box">
  34. <view class="left-title-p">隐患描述:</view>
  35. <textarea type="text" v-model="item.hazardDescribe" maxlength="50" placeholder="请输入隐患描述" placeholder-style="font-size:28rpx;color:#999;"></textarea>
  36. </view>
  37. <view class="check-for-img-max-box">
  38. <view class="left-title-p">隐患照片(最多上传5张):</view>
  39. <view class="right-img-box">
  40. <view class="img-box" v-for="(imgItem,imgIndex) in item.uploadDtoList" :key="imgIndex">
  41. <img class="img-data" :src="configURL+imgItem.fileUrl">
  42. <img class="position-img" src="@/pages_manage/images/icon_ssp_closure.png" @click="delImg(index,imgIndex)">
  43. </view>
  44. <img class="add-button" src="@/pages_manage/images/icon_07.png" @click="selectImage(item)" v-if="item.uploadDtoList.length<5">
  45. </view>
  46. </view>
  47. <view class="voice">
  48. <view class="voice_t">
  49. <view class="voice_t_l">语音备注:</view>
  50. <img class="voice_t_r" src="@/images/Version3.3.3/icon_ksjc_yysr.png" @longpress.stop="recordButton(item,$event)" @touchmove.stop="cancelButton" @touchend.stop="sendButton(item,$event)">
  51. </view>
  52. <view class="voice_b" v-for="(voiceItem,voiceIndex) in item.voiceRemark" :key="voiceIndex">
  53. <view class="voice_b_l" @tap="voicePlay(voiceItem.url)"><img class="add-button" src="@/pages_manage/images/icon_yyt.png"/>{{voiceItem.times}}″</view>
  54. <img class="voice_b_r" src="@/pages_manage/images/Version2.3/icon_sczl_sc.png" @tap="voiceDele(index,voiceIndex)"/>
  55. </view>
  56. </view>
  57. <view class="check-for-big-box-position-img-box" v-if="form.checkHazardDtoList.length>1" @click="delDetailsList(index)">
  58. <img src="@/pages_manage/images/icon_ssp_closure.png">
  59. </view>
  60. </view>
  61. <view class="add-for-item-p" @click="addDanger()">+ 新增隐患项</view>
  62. </viwe>
  63. </scroll-view>
  64. <view class="bottom_btn">
  65. <view class="bottom_btn_li" @click="goMinButton(index)" v-for="(item,index) in bottomBtnList" :key="index">{{item}}</view>
  66. </view>
  67. </view>
  68. </template>
  69. <script>
  70. const myaudio = uni.createInnerAudioContext();
  71. import { config } from '@/api/request/config.js'
  72. import {checkOptionListNew,treeDepselect,checkManageAdd} from '@/api/index.js'
  73. export default {
  74. name: "startChecking",
  75. data() {
  76. return {
  77. configURL:config.base_url,
  78. id:"",
  79. //页面子状态
  80. minPageType:1,
  81. //临时存储隐患信息ID
  82. hiddenDangerIdList:[],
  83. //数据
  84. form:{
  85. id:'',
  86. checkPlanId:'',
  87. manageStatus:'',//保存1 提交2
  88. subId:'',//实验室
  89. subjectName:'',
  90. title:'',//计划标题
  91. deptId:'',//学院
  92. collegeName:'',
  93. buildId:'',//楼栋
  94. buildName:'',
  95. checkType:'',// 检查类型(1校院巡查 2实验室自查)
  96. checkResult:'1',// 检查结果 0不符合 1符合
  97. rectifyDeadline:'',//整改期限
  98. rectifyNotice:'1',//整改通知(1整改告知书 2整改通知书)
  99. checkHazardDtoList:[
  100. {
  101. voiceRemark:[],//语音备忘存储
  102. hazardLevel:1,//隐患等级
  103. hazardCheckCode:'', //检查项目code序号
  104. hazardCheckName:'', //检查项目名称
  105. hazardCheckPro:'', //最后一级的id
  106. hazardCheckPoint:'',// 检查要点
  107. hazardDescribe:'', //隐患描述
  108. uploadDtoList:[],//隐患照片
  109. }
  110. ],
  111. },
  112. inspectionUnit:"",
  113. inspectionUnitArray:[],
  114. inspectionUnitArrayData:[],
  115. //搜索回调列表
  116. searchList:[],
  117. searchNullType:true,
  118. //检查项
  119. checkOptionList:[],
  120. //新增检查项
  121. openIndex:"",
  122. open:false,
  123. jcxSstkMs:[],
  124. jcxSstkNum:'',
  125. //临时数据组
  126. temporaryIdList:[],
  127. //添加项 目录
  128. uniPicker:"请选择所属目录",
  129. //滑动记录
  130. startPoint:{},
  131. liveType:false,
  132. sendLock: true, //发送锁,当为true时上锁,false时解锁发送
  133. recorderManager : wx.getRecorderManager(),
  134. temporaryData:[],
  135. gradeIndex :0,
  136. gradeArray:['一般隐患','重大隐患','问题管理'],
  137. bottomBtnList:['上一步','保存','提交'],
  138. items: [{
  139. text: "一年级",
  140. value: "1-0",
  141. children: [
  142. {
  143. text: "1.1班",
  144. value: "1-1"
  145. },
  146. {
  147. text: "1.2班",
  148. value: "1-2"
  149. }
  150. ]
  151. },
  152. {
  153. text: "二年级",
  154. value: "2-0"
  155. },
  156. {
  157. text: "三年级",
  158. value: "3-0"
  159. }]
  160. }
  161. },
  162. onLoad(option) {
  163. if(option.form){
  164. this.form=JSON.parse(decodeURIComponent(option.form));
  165. }
  166. },
  167. onShow() {
  168. this.getCheckOptionList();
  169. },
  170. methods: {
  171. //隐患等级
  172. gradeChange(item,e){
  173. console.log(item)
  174. console.log(e.target.value)
  175. if(e.target.value==0){
  176. item.hazardLevel=2
  177. }else if(e.target.value==1){
  178. item.hazardLevel=1
  179. }else if(e.target.value==2){
  180. item.hazardLevel=3
  181. }
  182. },
  183. //语音备忘播放
  184. async voicePlay(item){
  185. myaudio.src = config.base_url+item;
  186. myaudio.play();
  187. },
  188. //语音备忘删除
  189. async voiceDele(index,voiceIndex){
  190. let self = this;
  191. uni.showModal({
  192. title: '',
  193. cancelColor:'#999999',
  194. confirmColor:'#FF6E6E',
  195. content: '确定删除此语音吗?',
  196. success (res) {
  197. if (res.confirm) {
  198. console.log('用户点击确定')
  199. self.form.checkHazardDtoList[index].voiceRemark.splice(voiceIndex,1);
  200. self.$forceUpdate();
  201. } else if (res.cancel) {
  202. console.log('用户点击取消')
  203. }
  204. }
  205. })
  206. },
  207. //录制
  208. recordButton(item,e){
  209. console.log("按下")
  210. let self = this;
  211. if(item.voiceRemark.length>=5){
  212. uni.showToast({
  213. title: '语音备忘最多只能上传5条',
  214. icon:"none",
  215. mask:true,
  216. duration: 2000
  217. });
  218. return
  219. }
  220. this.liveType=true;
  221. console.log('录制',e)
  222. this.startPoint = e.touches[0];//记录长按时开始点信息,后面用于计算上划取消时手指滑动的距离。
  223. const options = {
  224. duration: 60000,
  225. sampleRate: 16000,
  226. numberOfChannels: 1,
  227. encodeBitRate: 48000,
  228. format: 'mp3',
  229. frameSize: 50
  230. }
  231. this.recorderManager.start(options);//开始录音
  232. this.recorderManager.onStart(() => {
  233. console.log('recorder start')
  234. })
  235. this.recorderManager.onError((res) => {
  236. console.log(res);
  237. })
  238. wx.showToast({
  239. title: "正在录音,上划取消发送",
  240. icon: "none",
  241. duration: 60000//先定义个60秒,后面可以手动调用wx.hideToast()隐藏
  242. });
  243. this.sendLock = false;//长按时是不上锁的。
  244. },
  245. //取消
  246. cancelButton(e){
  247. console.log("移动")
  248. let self = this;
  249. this.liveType=false;
  250. console.log('取消',e)
  251. let moveLenght = e.touches[e.touches.length - 1].clientY - this.startPoint.clientY; //移动距离
  252. if (Math.abs(moveLenght) > 50) {
  253. wx.showToast({
  254. title: "松开手指,取消发送",
  255. icon: "none",
  256. duration: 60000
  257. });
  258. this.sendLock = true;//触发了上滑取消发送,上锁
  259. } else {
  260. wx.showToast({
  261. title: "正在录音,上划取消发送",
  262. icon: "none",
  263. duration: 60000
  264. });
  265. this.sendLock = false;//上划距离不足,依然可以发送,不上锁
  266. }
  267. },
  268. //发送
  269. sendButton(item,e){
  270. console.log("松开")
  271. let self = this;
  272. this.liveType=false;
  273. console.log('发送',e)
  274. wx.hideToast();//结束录音、隐藏Toast提示框
  275. this.recorderManager.stop();//结束录音
  276. this.recorderManager.onStop((res) => {
  277. if(!this.sendLock){
  278. this.uploadVoice(item,res.duration,res.tempFilePath);
  279. }
  280. console.log('停止录音', res.tempFilePath)
  281. console.log("sendLock",this.sendLock);
  282. })
  283. },
  284. //上传MP3
  285. async uploadVoice(item,times,tempFilePaths){
  286. var self = this;
  287. uni.uploadFile({
  288. url: config.base_url+'/base/file/upload', //仅为示例,非真实的接口地址
  289. header:{'Authorization':uni.getStorageSync('token')},
  290. filePath: tempFilePaths,
  291. name: 'file',
  292. formData: {
  293. 'user': 'test'
  294. },
  295. success: (uploadFileRes) => {
  296. let res = JSON.parse(uploadFileRes.data);
  297. if(res.code == 200){
  298. console.log("上传成功",res)
  299. console.log(item)
  300. let seconds = Math.round((parseInt(times) % (1000 * 60)) / 1000);
  301. item.voiceRemark.push({'times':seconds,'url':res.data.url})
  302. console.log(JSON.stringify(self.voice))
  303. //self.textParseUrlIps(res.data.url);
  304. // self.newData.imgList.push(res.data.url);
  305. }else{
  306. uni.showToast({
  307. title: res.msg,
  308. icon:"none",
  309. mask:true,
  310. duration: 2000
  311. });
  312. }
  313. },
  314. fail: err => {
  315. uni.hideLoading()
  316. },
  317. complete: () => {
  318. }
  319. });
  320. },
  321. /**************************检查项***************************/
  322. //获取检查项
  323. async getCheckOptionList() {
  324. const {data} = await checkOptionListNew();
  325. if(data.code == 200){
  326. let list = this.getTreeData(data.data);
  327. //this.checkOptionList.push(JSON.parse(JSON.stringify(list)));
  328. this.checkOptionList=JSON.parse(JSON.stringify(list));
  329. console.log(this.checkOptionList)
  330. }
  331. },
  332. getTreeData(data){
  333. for(var i=0;i<data.length>0;i++){
  334. if(data[i].children == null||data[i].children.length<=0){
  335. // children若为空数组,则将children设为undefined
  336. data[i].children = undefined;
  337. }else {
  338. // children若不为空数组,则继续 递归调用 本方法
  339. this.getTreeData(data[i].children);
  340. }
  341. }
  342. return data;
  343. },
  344. /**************************搜索项***************************/
  345. //搜索特定检查项
  346. async searchClick(text,index){
  347. console.log("搜索text",text);
  348. console.log("搜索index",index);
  349. const {data} = await checkOptionListNew({'searchValue':text});
  350. if(data.code == 200){
  351. if(data.data[0]){
  352. let list = JSON.parse(JSON.stringify(this.checkOptionList));
  353. list[index] = this.getTreeData(data.data);
  354. this.$set(this,'checkOptionList',JSON.parse(JSON.stringify(list)))
  355. console.log('this.$refs.uniDataPicker',this.$refs.uniDataPicker)
  356. this.$refs.uniDataPicker[index].show();
  357. }else{
  358. uni.showToast({
  359. title: '未找到相关检查项',
  360. icon:"none",
  361. mask:true,
  362. duration: 2000
  363. });
  364. }
  365. }
  366. },
  367. //重置检查项
  368. async resetClick(index){
  369. console.log("重置index",index);
  370. const {data} = await checkOptionListNew();
  371. if(data.code == 200){
  372. let list = JSON.parse(JSON.stringify(this.checkOptionList));
  373. list[index] = this.getTreeData(data.data);
  374. this.$set(this,'checkOptionList',JSON.parse(JSON.stringify(list)))
  375. this.$refs.uniDataPicker[index].show();
  376. }
  377. },
  378. //选中固有检查项(新)
  379. onchange(e,index) {
  380. let self = this;
  381. //hazardCheckCode:'', //检查项目code序号
  382. //hazardCheckName:'', //检查项目名称
  383. //hazardCheckPro:'', //最后一级的id
  384. console.log(e)
  385. console.log(index)
  386. let jcxSstkNum=this.getTreeName(this.checkOptionList[0],e.detail.value[e.detail.value.length-1].value)
  387. this.$set(this.form.checkHazardDtoList[index],'hazardCheckPro',e.detail.value[e.detail.value.length-1].value);
  388. this.$set(this.form.checkHazardDtoList[index],'hazardCheckCode',jcxSstkNum);
  389. this.$set(this.form.checkHazardDtoList[index],'hazardCheckName',e.detail.value[e.detail.value.length-1].text);
  390. },
  391. //根据id查找父元素
  392. getTreeName(list,id){
  393. let _this=this
  394. for (let i = 0; i < list.length; i++) {
  395. let a=list[i]
  396. if(a.id===id){
  397. return a.code
  398. }else{
  399. if(a.children && a.children.length>0){
  400. let res=_this.getTreeName(a.children,id)
  401. if(res){
  402. return res
  403. }
  404. }
  405. }
  406. }
  407. },
  408. onnodeclick(node) {},
  409. // 图片上传
  410. selectImage(item) {
  411. let self = this;
  412. if(item.uploadDtoList.length>4){
  413. uni.showToast({
  414. title: '最多上传5张图片',
  415. icon:"none",
  416. mask:true,
  417. duration: 2000
  418. });
  419. return
  420. }
  421. wx.chooseImage({
  422. count: 1,
  423. sizeType: ["original", "compressed"],
  424. sourceType: ["album", "camera"],
  425. success: function(res) {
  426. let tempFilePaths = res.tempFilePaths[0];
  427. self.uploadImg(tempFilePaths,item);
  428. }
  429. });
  430. },
  431. async uploadImg(tempFilePaths,item){
  432. var self = this;
  433. uni.showLoading({
  434. title: '上传中',
  435. mask: true
  436. });
  437. uni.uploadFile({
  438. url: config.base_url+'/base/file/upload', //仅为示例,非真实的接口地址
  439. header:{'Authorization':uni.getStorageSync('token')},
  440. filePath: tempFilePaths,
  441. name: 'file',
  442. formData: {
  443. 'user': 'test'
  444. },
  445. success: (uploadFileRes) => {
  446. let res = JSON.parse(uploadFileRes.data);
  447. if(res.code == 200){
  448. item.uploadDtoList.push({'fileUrl':res.data.url,'fileName':res.data.name});
  449. console.log(res.data.url)
  450. }else{
  451. uni.showToast({
  452. title: res.msg,
  453. icon:"none",
  454. mask:true,
  455. duration: 2000
  456. });
  457. }
  458. },
  459. fail: err => {},
  460. complete: () => {
  461. uni.hideLoading()
  462. }
  463. });
  464. },
  465. //删除图片
  466. delImg(index,minIndex){
  467. this.form.checkHazardDtoList[index].uploadDtoList.splice(minIndex,1);
  468. this.$forceUpdate();
  469. },
  470. //添加隐患
  471. addDanger(){
  472. if(this.form.checkHazardDtoList.length>19){
  473. uni.showToast({
  474. title: '最多添加20个隐患',
  475. icon:"none",
  476. mask:true,
  477. duration: 2000
  478. });
  479. return
  480. }
  481. let obj = {
  482. voiceRemark:[],//语音备忘存储
  483. hazardLevel:1,//隐患等级
  484. hazardCheckCode:'', //检查项目code序号
  485. hazardCheckName:'', //检查项目名称
  486. hazardCheckPro:'', //最后一级的id
  487. hazardCheckPoint:'',// 检查要点
  488. hazardDescribe:'', //隐患描述
  489. uploadDtoList:[],//隐患照片
  490. }
  491. this.form.checkHazardDtoList.push(obj);
  492. this.getCheckOptionList();
  493. this.$forceUpdate();
  494. },
  495. //删除隐患
  496. delDetailsList(index){
  497. this.hiddenDangerIdList.push(this.form.checkHazardDtoList[index].id)
  498. this.form.checkHazardDtoList.splice(index,1);
  499. this.$forceUpdate();
  500. },
  501. //子页面切换
  502. goMinButton(index){
  503. let self = this;
  504. if(index == 0){
  505. uni.redirectTo({
  506. url: '/pages/pages_safetyExamine/examineManage/examineAdd?form='+encodeURIComponent(JSON.stringify(this.form))
  507. });
  508. }else if(index == 1 || index == 2){
  509. this.form.manageStatus=index;//1保存 2提交
  510. for(let i=0;i<self.form.checkHazardDtoList.length;i++){
  511. let num = i+1;
  512. if(!self.form.checkHazardDtoList[i].hazardCheckName){
  513. uni.showToast({
  514. title: '第'+num+'未选择隐患项',
  515. icon:"none",
  516. mask:true,
  517. duration: 2000
  518. });
  519. return
  520. }else if(!self.form.checkHazardDtoList[i].hazardDescribe && self.form.checkHazardDtoList[i].voiceRemark.length<=0){
  521. uni.showToast({
  522. title: '请输入第'+num+'项隐患描述!',
  523. icon:"none",
  524. mask:true,
  525. duration: 2000
  526. });
  527. return
  528. }
  529. }
  530. this.submitForm();
  531. }
  532. },
  533. //提交
  534. async submitForm(){
  535. let _this = this;
  536. const {data} = await checkManageAdd(_this.form);
  537. if(data.code == 200){
  538. uni.showToast({
  539. title: '提交成功',
  540. icon:"none",
  541. mask:true,
  542. duration: 2000
  543. });
  544. uni.redirectTo({
  545. url: '/pages/pages_safetyExamine/examineManage/examineList'
  546. });
  547. }
  548. },
  549. }
  550. }
  551. </script>
  552. <style lang="stylus" scoped>
  553. #startChecking{
  554. height:100%;
  555. .info-max-box{
  556. flex: 1;
  557. overflow: scroll;
  558. padding: 20rpx 0rpx 128rpx;
  559. box-sizing: border-box;
  560. }
  561. .list{
  562. .title{
  563. width: 690rpx;
  564. height: 100rpx;
  565. background: #FFFFFF;
  566. border-radius: 20rpx;
  567. margin: 20rpx 30rpx;
  568. font-size: 30rpx;
  569. font-family: PingFang SC-Medium, PingFang SC;
  570. font-weight: 400;
  571. color: #333333;
  572. line-height: 100rpx;
  573. padding-left: 24rpx;
  574. box-sizing: border-box;
  575. }
  576. .check-for-big-box{
  577. width 690rpx;
  578. //padding-top:30rpx;
  579. margin:0 30rpx 20rpx;
  580. background #fff
  581. border-radius:20rpx;
  582. overflow hidden
  583. position relative;
  584. padding:30rpx;
  585. box-sizing border-box;
  586. /* 隐患等级 */
  587. .grade{
  588. display: flex;
  589. justify-content: flex-start;
  590. .grade_l{
  591. width: 158rpx;
  592. text-align: left;
  593. font-size: 30rpx;
  594. font-family: PingFang SC-Medium, PingFang SC;
  595. font-weight: 400;
  596. color: #333333;
  597. line-height: 80rpx;
  598. }
  599. .grade_r{
  600. width: 480rpx;
  601. height: 80rpx;
  602. border-radius: 10rpx;
  603. border: 1rpx solid #E0E0E0;
  604. display: flex;
  605. justify-content: flex-start;
  606. align-items: center;
  607. padding-left: 20rpx;
  608. box-sizing: border-box;
  609. >view{
  610. flex:1;
  611. line-height:80rpx;
  612. font-size: 30rpx;
  613. font-family: PingFang SC-Medium, PingFang SC;
  614. font-weight: 400;
  615. color: #333333;
  616. line-height: 80rpx;
  617. }
  618. >img{
  619. width: 14rpx;
  620. height: 8rpx;
  621. margin-right: 30rpx;
  622. }
  623. }
  624. }
  625. /* 检查项目 */
  626. .project{
  627. .project_l{
  628. width: 158rpx;
  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. margin-top: 24rpx;
  636. }
  637. .project_r{
  638. width: 630rpx;
  639. min-height: 80rpx;
  640. border-radius: 10rpx;
  641. border: 1rpx solid #E0E0E0;
  642. display: flex;
  643. justify-content: flex-start;
  644. align-items: center;
  645. padding-left: 20rpx;
  646. box-sizing: border-box;
  647. }
  648. }
  649. /* 检查要点 */
  650. .point{
  651. .point_l{
  652. width: 158rpx;
  653. text-align: left;
  654. font-size: 30rpx;
  655. font-family: PingFang SC-Medium, PingFang SC;
  656. font-weight: 400;
  657. color: #333333;
  658. line-height: 80rpx;
  659. }
  660. .point_r{
  661. width: 630rpx;
  662. height: 158rpx;
  663. border-radius: 20rpx 20rpx 20rpx 20rpx;
  664. opacity: 1;
  665. border: 1rpx solid #E0E0E0;
  666. padding: 20rpx 14rpx;
  667. box-sizing: border-box;
  668. font-size: 30rpx;
  669. font-family: PingFang SC-Medium, PingFang SC;
  670. font-weight: 400;
  671. color: #333333;
  672. line-height: 34rpx;
  673. }
  674. }
  675. /* 隐患描述 */
  676. .check-for-input-max-box{
  677. .left-title-p{
  678. width:150rpx;
  679. line-height:80rpx;
  680. text-align right
  681. font-size:30rpx;
  682. }
  683. textarea{
  684. width: 630rpx;
  685. height: 158rpx;
  686. border-radius: 20rpx 20rpx 20rpx 20rpx;
  687. border: 1rpx solid #E0E0E0;
  688. padding: 20rpx 14rpx;
  689. box-sizing: border-box;
  690. font-size: 30rpx;
  691. font-family: PingFang SC-Medium, PingFang SC;
  692. font-weight: 400;
  693. color: #333333;
  694. line-height: 34rpx;
  695. }
  696. }
  697. /* 隐患照片 */
  698. .check-for-img-max-box{
  699. .left-title-p{
  700. width: 100%;
  701. text-align: left;
  702. font-size: 30rpx;
  703. font-family: PingFang SC-Medium, PingFang SC;
  704. font-weight: 400;
  705. color: #333333;
  706. line-height: 80rpx;
  707. }
  708. .right-img-box{
  709. .img-box{
  710. display inline-block;
  711. height:200rpx;
  712. width:200rpx;
  713. position relative
  714. margin:0 14rpx 20rpx 0;
  715. border-radius 10rpx;
  716. overflow hidden;
  717. .img-data{
  718. height:200rpx;
  719. width:200rpx;
  720. }
  721. .position-img{
  722. position absolute
  723. right:0;
  724. top:0;
  725. width:36rpx;
  726. height:36rpx;
  727. }
  728. }
  729. .img-box:nth-of-type(3n+3){
  730. margin-right: 0rpx;
  731. }
  732. .add-button{
  733. margin:0 20rpx 20rpx 0;
  734. border-radius 10rpx;
  735. overflow hidden;
  736. display inline-block
  737. height:200rpx;
  738. width:200rpx;
  739. }
  740. }
  741. }
  742. /* 语音备注 */
  743. .voice{
  744. .voice_t{
  745. height: 80rpx;
  746. display: flex;
  747. justify-content: space-between;
  748. align-items: center;
  749. .voice_t_l{
  750. font-size: 30rpx;
  751. font-family: PingFang SC-Medium, PingFang SC;
  752. font-weight: 400;
  753. color: #333333;
  754. line-height: 80rpx;
  755. }
  756. .voice_t_r{
  757. width: 170rpx;
  758. height: 50rpx;
  759. }
  760. }
  761. .voice_b{
  762. display flex;
  763. justify-content flex-start;
  764. align-items center;
  765. margin-bottom :30rpx;
  766. .voice_b_l{
  767. width: 400rpx;
  768. height: 40rpx;
  769. background:rgba(88,175,255,0.3);
  770. border-radius: 10rpx;
  771. display flex;
  772. justify-content flex-start;
  773. align-items center;
  774. >img{
  775. width: 18rpx;
  776. height: 24rpx;
  777. margin-left:16rpx;
  778. margin-right :20rpx;
  779. }
  780. }
  781. .voice_b_r{
  782. width: 28rpx;
  783. height: 28rpx;
  784. margin-left:20rpx;
  785. }
  786. }
  787. }
  788. .check-for-button-max-box{
  789. display flex
  790. margin-top:30rpx;
  791. margin-bottom:20rpx;
  792. .left-title-p{
  793. width:150rpx;
  794. line-height:88rpx;
  795. text-align right
  796. font-size:30rpx;
  797. }
  798. .button-text-p{
  799. border:1rpx solid #E0E0E0;
  800. width:440rpx;
  801. height:80rpx;
  802. border-radius:10rpx;
  803. line-height :80rpx;
  804. color: #A2A2A2
  805. padding:0 20rpx;
  806. font-size:28rpx;
  807. display:block;
  808. overflow:hidden;
  809. text-overflow:ellipsis;
  810. white-space:nowrap;
  811. }
  812. }
  813. .check-for-big-box-position-img-box{
  814. position absolute
  815. top:0;
  816. right:0;
  817. width:60rpx;
  818. height:60rpx;
  819. img{
  820. width:36rpx;
  821. height:36rpx;
  822. margin:12rpx;
  823. }
  824. }
  825. }
  826. /* 添加隐患项 */
  827. .add-for-item-p{
  828. width:690rpx;
  829. height:100rpx;
  830. border:4rpx dashed #0183FA;
  831. font-size: 30rpx;
  832. font-family: PingFang SC-Medium, PingFang SC;
  833. font-weight: 400;
  834. color: #0183FA;
  835. line-height: 100rpx;
  836. text-align center;
  837. border-radius:20rpx;
  838. margin:40rpx auto 100rpx;
  839. }
  840. }
  841. .bottom_btn{
  842. width: 690rpx;
  843. height: 90rpx;
  844. background: #0183FA;
  845. border-radius: 10rpx 10rpx 10rpx 10rpx;
  846. display: flex;
  847. justify-content: flex-start;
  848. position: fixed;
  849. left: 30rpx;
  850. bottom: 20rpx;
  851. .bottom_btn_li{
  852. flex: 1;
  853. font-size: 30rpx;
  854. font-family: PingFang SC-Medium, PingFang SC;
  855. font-weight: 400;
  856. color: #FFFFFF;
  857. line-height: 90rpx;
  858. text-align: center;
  859. position: relative;
  860. }
  861. .bottom_btn_li::after{
  862. content:'';
  863. position: absolute;
  864. top: 20rpx;
  865. right:0rpx;
  866. width: 1rpx;
  867. height: 60rpx;
  868. background: #D8D8D8;
  869. }
  870. .bottom_btn_li:nth-of-type(3)::after{
  871. display: none;
  872. }
  873. }
  874. }
  875. </style>