examineAddTow.vue 25 KB

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