addPage.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. <template>
  2. <div class="inspectionManagement-addPage" v-loading.fullscreen.lock="loading">
  3. <div class="title-max-box">
  4. <p class="title-p">{{addPageTitle}}</p>
  5. <p class="title-button add-button-one-90" @click="outButton">返回</p>
  6. <img class="position-img" v-if="addForm.checkRange == 1" src="@/assets/ZDimages/safetyCheck/icon_xyxc_qx.png">
  7. <img class="position-img" v-if="addForm.checkRange == 2" src="@/assets/ZDimages/safetyCheck/icon_xyxc_xy.png">
  8. <img class="position-img" v-if="addForm.checkRange == 3" src="@/assets/ZDimages/safetyCheck/icon_xyxc_sys.png">
  9. </div>
  10. <div class="content-max-box scrollbar-box">
  11. <el-form ref="addForm" :model="addForm" :rules="rules" label-width="82px">
  12. <div class="top-form-box">
  13. <div class="top-form-left-box">
  14. <el-form-item label="计划标题" prop="title">
  15. <el-input disabled v-model="addForm.title" placeholder="未填写" style="width: 690px"/>
  16. </el-form-item>
  17. <div style="display: flex">
  18. <el-form-item label="学院" prop="collegeName">
  19. <el-input disabled v-model="addForm.collegeName" placeholder="未填写" style="width: 300px"/>
  20. </el-form-item>
  21. <el-form-item label="实验室" prop="subjectName" label-width="110px">
  22. <el-input disabled v-model="addForm.subjectName" placeholder="未填写" style="width: 280px"/>
  23. </el-form-item>
  24. </div>
  25. <el-form-item label="检查要求" prop="checkDemand">
  26. <p style="background-color: #f5f5f5;color:#333;border-radius:4px;width:690px;padding:10px 15px;font-size:14px;line-height:20px;min-height:40px;">{{addForm.checkDemand}}<span v-if="!addForm.checkDemand" style="color:#999;">未输入</span></p>
  27. <!--<el-input disabled v-model="addForm.checkDemand" placeholder="未填写" style="width: 690px"/>-->
  28. </el-form-item>
  29. <el-form-item label="检查结果" prop="checkResult">
  30. <el-select v-model="addForm.checkResult" @change="checkResultChange" placeholder="请选择检查结果" style="width: 690px">
  31. <el-option :key="0" label="不符合" :value="0"></el-option>
  32. <el-option :key="1" label="符合" :value="1"></el-option>
  33. </el-select>
  34. </el-form-item>
  35. <el-form-item label="整改通知" prop="rectifyNotice" v-if="addForm.checkResult === 0">
  36. <el-radio-group v-model="addForm.rectifyNotice" style="margin-top:5px;">
  37. <el-radio :label="1">整改告知书</el-radio>
  38. <el-radio :label="2">整改通知书</el-radio>
  39. </el-radio-group>
  40. </el-form-item>
  41. </div>
  42. <div class="top-form-right-box">
  43. <el-form-item label="检查类型" prop="checkType">
  44. <p style="background-color: #f5f5f5;width:450px;padding:0 15px;line-height:40px;border-radius:4px;">{{addForm.checkType==1?'校院巡查':(addForm.checkType==2?'实验室自查':'')}}</p>
  45. </el-form-item>
  46. <el-form-item label="楼栋" prop="buildName">
  47. <el-input disabled v-model="addForm.buildName" placeholder="未填写" maxLength="10" style="width: 450px"/>
  48. </el-form-item>
  49. <el-form-item :label="addForm.checkType==1?'计划周期':(addForm.checkType==2?'任务周期':'')" prop="data9">
  50. <el-input disabled v-model="addForm.cycleStartTime+' 至 '+addForm.cycleEndTime" placeholder="未填写" maxLength="10" style="width: 450px"/>
  51. </el-form-item>
  52. <el-form-item label="整改期限" prop="rectifyDeadline" v-if="addForm.checkResult === 0">
  53. <el-date-picker
  54. style="width: 450px"
  55. v-model="addForm.rectifyDeadline"
  56. type="date"
  57. value-format="yyyy-MM-dd"
  58. :picker-options="pickerOptions"
  59. :clearable="false"
  60. placeholder="选择整改期限">
  61. </el-date-picker>
  62. </el-form-item>
  63. </div>
  64. </div>
  65. <div class="bottom-form-box" v-if="addForm.checkResult === 0">
  66. <div class="bottom-form-title-box">
  67. <p>不符合项</p>
  68. <p>隐患数:{{addForm.checkHazardDtoList.length}}</p>
  69. </div>
  70. <div class="for-max-big-box" v-for="(item,index) in addForm.checkHazardDtoList" :key="index">
  71. <div class="for-title-box">
  72. <p class="for-title-p">第{{index+1}}隐患项</p>
  73. <div class="for-del-box">
  74. <p class="el-icon-delete"></p>
  75. <p @click="delCheckHazardDtoList(index)">删除此项</p>
  76. </div>
  77. <div class="for-button-box" @click="dataLookButton(item)">
  78. <p :class="item.lookType?'el-icon-arrow-up':'el-icon-arrow-down'"></p>
  79. <p>{{item.lookType?'收起':'展开'}}</p>
  80. </div>
  81. </div>
  82. <div class="for-big-box" v-if="item.lookType">
  83. <el-form-item label="隐患等级" :prop="'checkHazardDtoList.'+index+'.hazardLevel'" :rules="rules.hazardLevel" label-width="123px">
  84. <el-select v-model="item.hazardLevel" clearable placeholder="请选择隐患等级" style="width: 408px">
  85. <el-option :key="2" label="一般隐患" :value="2"></el-option>
  86. <el-option :key="1" label="重大隐患" :value="1"></el-option>
  87. <el-option :key="3" label="管理问题" :value="3"></el-option>
  88. </el-select>
  89. </el-form-item>
  90. <el-form-item label="检查项目" :prop="'checkHazardDtoList.'+index+'.hazardCheckPro'" :rules="rules.hazardCheckPro" label-width="123px">
  91. <el-cascader
  92. @change="(val)=>cascaderChange(val,index)"
  93. v-model="item.hazardCheckPro"
  94. style="width: 898px"
  95. placeholder="请选择检查项"
  96. :options="options"
  97. :props="{ checkStrictly: false, value: 'id', label: 'labelName',emitPath:false }"
  98. filterable>
  99. <template slot-scope="{data}">
  100. <el-tooltip :content="data.labelName" v-if="data.labelName.length>22">
  101. <p style="max-width:300px;overflow: hidden;text-overflow:ellipsis;white-space:nowrap;">{{data.labelName}}</p>
  102. </el-tooltip>
  103. <p v-else style="max-width:300px;overflow: hidden;text-overflow:ellipsis;white-space:nowrap;">{{data.labelName}}</p>
  104. </template>
  105. </el-cascader>
  106. <p class="hazard-check-count-p" v-if="hazardCheckCount>0">此检查项在当前实验室累计出现 <span>{{hazardCheckCount}}</span> 次隐患</p>
  107. </el-form-item>
  108. <el-form-item label="检查要点" label-width="123px">
  109. <el-input
  110. style="width: 898px"
  111. type="textarea"
  112. :autosize="{ minRows: 6, maxRows: 6}"
  113. placeholder="未查到此项检查要点,可在此输入添加"
  114. resize="none"
  115. maxlength="100"
  116. show-word-limit
  117. v-model="item.hazardCheckPoint">
  118. </el-input>
  119. </el-form-item>
  120. <el-form-item label="隐患描述" :prop="'checkHazardDtoList.'+index+'.hazardDescribe'" :rules="rules.hazardDescribe" label-width="123px">
  121. <el-input
  122. style="width: 898px"
  123. type="textarea"
  124. :autosize="{ minRows: 4, maxRows: 4}"
  125. placeholder="请输入隐患描述"
  126. resize="none"
  127. maxlength="100"
  128. show-word-limit
  129. v-model="item.hazardDescribe">
  130. </el-input>
  131. </el-form-item>
  132. <el-form-item label="隐患照片" :prop="'checkHazardDtoList.'+index+'.uploadDtoList'" :rules="rules.uploadDtoList" label-width="123px">
  133. <div class="for-img-box" v-for="(img,imgIndex) in item.uploadDtoList" :key="imgIndex">
  134. <img class="for-img" :src="img.fileUrl" @click="lookImg(item.uploadDtoList,imgIndex)">
  135. <p class="for-del-button el-icon-circle-close" @click="delImg(index,imgIndex)"></p>
  136. </div>
  137. <el-upload
  138. style="display: inline-block;overflow: hidden"
  139. v-if="item.uploadDtoList.length<5"
  140. class="avatar-uploader"
  141. :action="uploadImgUrl"
  142. :show-file-list="false"
  143. :on-success="(res)=>handleAvatarSuccess(res,item)"
  144. :headers="headers"
  145. :before-upload="(res)=>beforeAvatarUpload(res,item)">
  146. <p class="el-icon-plus up-img-p" style="display: inline-block"></p>
  147. </el-upload>
  148. </el-form-item>
  149. <el-form-item label="" label-width="123px" style="margin-bottom:40px;">
  150. <p>支持jpg/png/bmp/gif格式,且不超过2M,最多上传5张</p>
  151. </el-form-item>
  152. </div>
  153. </div>
  154. <p class="add-bottom-button" @click="addObject">+新增隐患检查项</p>
  155. </div>
  156. </el-form>
  157. </div>
  158. <div class="bottom-button-max-box">
  159. <p></p>
  160. <p class="reset-button-one" @click="outButton">取消</p>
  161. <p class="add-button-two-90" @click="upDataButton(1)">保存</p>
  162. <p class="inquire-button-one" @click="upDataButton(2)">提交</p>
  163. </div>
  164. <lookImgDialog ref="lookImgDialog"></lookImgDialog>
  165. </div>
  166. </template>
  167. <script>
  168. import { getToken } from "@/utils/auth";
  169. import lookImgDialog from '@/components/lookImgDialog/lookImgDialog.vue'
  170. import { findCheckManage,checkOptionList,checkManageUpdate,countHazardNum } from '@/api/safetyCheck/index'
  171. export default {
  172. name: 'addPage',
  173. props:{
  174. propsAddData:{},
  175. },
  176. components: {
  177. lookImgDialog,
  178. },
  179. data(){
  180. return{
  181. loading:false,
  182. uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
  183. headers: {
  184. Authorization: "Bearer " + getToken(),
  185. },
  186. //期限时间
  187. pickerOptions: {
  188. disabledDate(time) {
  189. return time.getTime() < Date.now() - 8.64e7;//如果没有后面的-8.64e7就是不可以选择今天的
  190. }
  191. },
  192. addPageTitle:"",
  193. //新增-编辑
  194. options:[],
  195. addForm:{},
  196. //上传用名称保存
  197. upDataName:"",
  198. // 表单校验
  199. rules: {
  200. checkResult: [
  201. { required: true, message: "请选择检查结果", trigger: "blur" },
  202. ],
  203. rectifyNotice: [
  204. { required: true, message: "请选择整改通知", trigger: "blur" },
  205. ],
  206. rectifyDeadline: [
  207. { required: true, message: "请选择整改期限", trigger: "blur" },
  208. ],
  209. hazardLevel: [
  210. { required: true, message: "请选择隐患等级", trigger: "blur" },
  211. ],
  212. hazardCheckPro: [
  213. { required: true, message: "请选择检查项目", trigger: "blur" },
  214. ],
  215. hazardDescribe: [
  216. { required: true, message: "请输入隐患描述", trigger: "blur" },
  217. { required: true, message: "请输入隐患描述", validator: this.spaceJudgment, trigger: "blur" },
  218. ],
  219. uploadDtoList: [
  220. { required: true, message: "请上传隐患照片", trigger: "blur" },
  221. ],
  222. },
  223. //隐患发生次数
  224. hazardCheckCount:0,
  225. }
  226. },
  227. created(){
  228. this.$set(this,'addPageTitle',this.propsAddData.title);
  229. this.checkOptionList();
  230. this.findCheckManage();
  231. },
  232. mounted(){},
  233. methods:{
  234. //保存/提交按钮
  235. upDataButton(type){
  236. this.$refs["addForm"].validate(valid => {
  237. if (valid) {
  238. let obj = JSON.parse(JSON.stringify(this.addForm));
  239. if(obj.checkResult === 0){
  240. if(!obj.checkHazardDtoList[0]){
  241. this.msgError('请添加隐患检查项')
  242. return
  243. }
  244. for(let i=0;i<obj.checkHazardDtoList.length;i++){
  245. delete obj.checkHazardDtoList[i].lookType
  246. }
  247. obj.dangerNum = obj.checkHazardDtoList.length
  248. }else{
  249. obj.checkHazardDtoList = [];
  250. }
  251. obj.manageStatus = type
  252. checkManageUpdate(obj).then(response => {
  253. this.msgSuccess(response.msg);
  254. this.$parent.goAddPage(4);
  255. });
  256. }
  257. })
  258. },
  259. //查询详情
  260. findCheckManage(){
  261. findCheckManage({id:this.propsAddData.id}).then(response => {
  262. response.data.checkResult = response.data.checkResult === 0 || response.data.checkResult === 1?response.data.checkResult:"";
  263. response.data.rectifyNotice = response.data.rectifyNotice?response.data.rectifyNotice:"";
  264. response.data.rectifyDeadline = response.data.rectifyDeadline?response.data.rectifyDeadline:"";
  265. for(let i=0;i<response.data.checkHazardDtoList.length;i++){
  266. response.data.checkHazardDtoList[i].lookType = true;
  267. }
  268. this.$set(this,'addForm',response.data);
  269. });
  270. },
  271. //返回事件
  272. outButton(){
  273. this.$parent.goAddPage(1);
  274. },
  275. // 删除图片
  276. delImg(index,imgIndex){
  277. this.addForm.checkHazardDtoList[index].uploadDtoList.splice(imgIndex,1);
  278. },
  279. //收起/展开
  280. dataLookButton(item){
  281. item.lookType = !item.lookType
  282. },
  283. //检查结果选中
  284. checkResultChange(val){
  285. if(val == 0){
  286. //不符合时如果没有检查项则写入一条
  287. if(!this.addForm.checkHazardDtoList[0]){
  288. this.addObject();
  289. }
  290. }
  291. },
  292. //新增检查
  293. addObject(){
  294. if(this.addForm.checkHazardDtoList.length<10){
  295. let obj = {
  296. hazardCheckCode:'',
  297. hazardCheckName:'',
  298. hazardCheckPoint:'',
  299. hazardCheckPro:'',
  300. hazardDescribe:'',
  301. hazardLevel:'',
  302. lookType:true,
  303. uploadDtoList:[],
  304. };
  305. this.addForm.checkHazardDtoList.push(obj);
  306. }
  307. },
  308. //删除检查项
  309. delCheckHazardDtoList(index){
  310. let self = this;
  311. this.$confirm('是否确认删除?', "警告", {
  312. confirmButtonText: "确定",
  313. cancelButtonText: "取消",
  314. type: "warning"
  315. }).then(function() {
  316. self.addForm.checkHazardDtoList.splice(index,1);
  317. }).then(() => {
  318. }).catch(() => {});
  319. },
  320. //检查项选中
  321. cascaderChange(val,index){
  322. let obj = this.getCascaderDataQuery(val,this.options);
  323. if(!obj){
  324. this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckPro','');
  325. this.msgError('未找到相关项目')
  326. return
  327. }
  328. this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckCode',obj.code);
  329. this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckName',obj.name);
  330. this.$set(this.addForm.checkHazardDtoList[index],'hazardCheckPoint',obj.mainPoint);
  331. countHazardNum({subId:this.addForm.subId, hazardCheckPro:val}).then( response => {
  332. this.$set(this,'hazardCheckCount',response.data);
  333. })
  334. },
  335. //查看图片
  336. lookImg(list,index){
  337. for(let i=0;i<list.length;i++){
  338. list[i].name = list[i].fileName;
  339. list[i].url = list[i].fileUrl;
  340. }
  341. this.$refs.lookImgDialog.lookImgDialogOpen(1,list,index);
  342. },
  343. /*==========上传相关==========*/
  344. handleAvatarSuccess(res,item) {
  345. this.$set(this,'loading',false);
  346. if(item.uploadDtoList.length>4){
  347. this.msgError('最多只可上传5张')
  348. return
  349. }
  350. let suffixName= this.upDataName.split('.')[this.upDataName.split('.').length - 2]
  351. //判断文件名中是否有逗号和分号
  352. if(suffixName.indexOf(',')==-1 && suffixName.indexOf(';')==-1){
  353. }else{
  354. this.msgError('文件名里包含逗号或分号,请修改后重新上传!')
  355. return
  356. }
  357. let obj ={
  358. fileName:this.upDataName,
  359. fileUrl:res.data.url,
  360. fileType:2,
  361. source:2,
  362. };
  363. item.uploadDtoList.push(obj);
  364. this.$forceUpdate()
  365. },
  366. beforeAvatarUpload(file,item) {
  367. if(item.uploadDtoList.length>4){
  368. this.msgError('最多只可上传5张')
  369. return false
  370. }
  371. let type = false;
  372. if (file.type == 'image/png' || file.type == 'image/jpeg' || file.type == 'image/gif' || file.type == 'image/bmp') {
  373. if(file.size> 2100000){
  374. this.msgError('上传图片大小不能超过2M')
  375. return false
  376. }
  377. this.$set(this,'loading',true);
  378. this.upDataName = file.name;
  379. type = true;
  380. }else{
  381. this.msgError('仅支持jpg/png/bmp/gif格式')
  382. type = false;
  383. }
  384. return type;
  385. },
  386. //获取检查项
  387. checkOptionList(){
  388. checkOptionList().then( response => {
  389. this.$set(this,'options',response.data);
  390. this.getCascaderData(this.options);
  391. })
  392. },
  393. //联级选择器数据处理
  394. getCascaderData(list){
  395. let self = this;
  396. for(let i=0;i<list.length;i++){
  397. list[i].labelName = list[i].code? list[i].code +' '+ list[i].name:list[i].name
  398. if(list[i].level == 0 || list[i].level == 1 || list[i].level == 2){
  399. if(list[i].children){
  400. if(list[i].children[0]){
  401. self.getCascaderData(list[i].children)
  402. if(list[i].children){
  403. if(!list[i].children[0]){
  404. list.splice(i,1)
  405. i--
  406. }
  407. }else{
  408. list.splice(i,1)
  409. i--
  410. }
  411. }else{
  412. list.splice(i,1)
  413. i--
  414. }
  415. }else{
  416. list.splice(i,1)
  417. i--
  418. }
  419. }else{
  420. delete list[i].children
  421. }
  422. }
  423. },
  424. //联级选择器数据查询
  425. getCascaderDataQuery(text,list){
  426. let self = this;
  427. for(let i=0;i<list.length;i++){
  428. if(list[i].id == text){
  429. return list[i]
  430. }else{
  431. if(list[i].children){
  432. let obj = self.getCascaderDataQuery(text,list[i].children)
  433. if(obj){
  434. return obj
  435. }
  436. }
  437. }
  438. }
  439. },
  440. }
  441. }
  442. </script>
  443. <style scoped lang="scss">
  444. .inspectionManagement-addPage{
  445. flex: 1;
  446. display: flex !important;
  447. flex-direction: column;
  448. overflow: hidden;
  449. *{
  450. font-weight:500;
  451. }
  452. .title-max-box{
  453. position: relative;
  454. height:90px;
  455. display: flex;
  456. border-bottom:1px solid #dedede;
  457. .title-p{
  458. flex:1;
  459. color:#0045AF;
  460. margin-left:64px;
  461. line-height:90px;
  462. font-size:16px;
  463. }
  464. .title-button{
  465. width:70px;
  466. margin:24px 31px;
  467. }
  468. .position-img{
  469. width:80px;
  470. height:80px;
  471. position: absolute;
  472. top:0;
  473. left:0;
  474. }
  475. }
  476. .content-max-box{
  477. flex:1;
  478. display: flex;
  479. flex-direction: column;
  480. .top-form-box{
  481. padding:40px 85px 20px;
  482. display: flex;
  483. .top-form-left-box{
  484. min-height:317px;
  485. width:770px;
  486. margin-right:90px;
  487. }
  488. .top-form-right-box{
  489. min-height:317px;
  490. width:534px;
  491. }
  492. }
  493. .bottom-form-box{
  494. .bottom-form-title-box{
  495. background: #F5F5F5;
  496. display: flex;
  497. margin-bottom:31px;
  498. p{
  499. font-size:16px;
  500. line-height:50px;
  501. }
  502. p:nth-child(1){
  503. color:#333;
  504. margin-left:30px;
  505. flex:1;
  506. }
  507. p:nth-child(2){
  508. color:#0183FA;
  509. margin-right:37px;
  510. }
  511. }
  512. .add-bottom-button{
  513. cursor: pointer;
  514. color:#0183FA;
  515. border-radius:4px;
  516. border:1px dashed #0183FA;
  517. width:800px;
  518. line-height:40px;
  519. text-align: center;
  520. font-size:14px;
  521. margin: 20px auto;
  522. }
  523. }
  524. }
  525. .for-max-big-box{
  526. border:1px solid #dedede;
  527. overflow: hidden;
  528. margin:0 81px;
  529. .for-title-box{
  530. display: flex;
  531. background: #F5F5F5;
  532. border-bottom:1px solid #dedede;
  533. line-height:50px;
  534. .for-title-p{
  535. color:#333333;
  536. font-size:16px;
  537. margin-left: 30px;
  538. flex:1;
  539. }
  540. .for-del-box{
  541. color:#0183FA;
  542. margin-left:46px;
  543. cursor: pointer;
  544. display: flex;
  545. p{
  546. font-size:14px;
  547. line-height:50px;
  548. margin-right:8px;
  549. }
  550. }
  551. .for-button-box{
  552. color:#0183FA;
  553. margin-left:46px;
  554. margin-right:43px;
  555. cursor: pointer;
  556. display: flex;
  557. p{
  558. font-size:14px;
  559. line-height:50px;
  560. margin-right:8px;
  561. }
  562. }
  563. }
  564. .for-big-box{
  565. height:540px;
  566. padding-top:27px;
  567. .up-img-p{
  568. height:80px;
  569. width:80px;
  570. line-height:80px;
  571. text-align: center;
  572. font-size:16px;
  573. border-radius:4px;
  574. border:1px dashed #E0E0E0;
  575. }
  576. .for-img-box{
  577. width:80px;
  578. height:80px;
  579. border-radius:4px;
  580. display: inline-block;
  581. overflow: hidden;
  582. margin-right:20px;
  583. position: relative;
  584. .for-img{
  585. width:80px;
  586. height:80px;
  587. display: inline-block;
  588. overflow: hidden;
  589. cursor: pointer;
  590. }
  591. .for-del-button{
  592. background: rgba(0,0,0,0.7);
  593. width:20px;
  594. height:20px;
  595. line-height: 20px;
  596. text-align: center;
  597. color:#fff;
  598. border-bottom-left-radius:4px;
  599. cursor: pointer;
  600. position: absolute;
  601. top:0;
  602. right:0;
  603. }
  604. }
  605. .hazard-check-count-p{
  606. display: inline-block;
  607. margin-left: 20px;
  608. font-size: 14px;
  609. line-height: 40px;
  610. span{
  611. color:#FF0000;
  612. }
  613. }
  614. }
  615. }
  616. .bottom-button-max-box{
  617. height:80px;
  618. display: flex;
  619. border-top:1px solid #dedede;
  620. p{
  621. margin-top:20px;
  622. }
  623. p:nth-child(1){
  624. flex:1;
  625. }
  626. p:nth-child(2){
  627. width:90px;
  628. margin-right:20px;
  629. }
  630. p:nth-child(3){
  631. width:90px;
  632. margin-right:20px;
  633. }
  634. p:nth-child(4){
  635. width:90px;
  636. margin-right:20px;
  637. }
  638. }
  639. }
  640. ::v-deep .is-disabled{
  641. .el-input__inner{
  642. background-color: #f5f5f5;
  643. color: #333;
  644. border-color: #f5f5f5;
  645. cursor:auto;
  646. }
  647. }
  648. </style>