examineAdd.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492
  1. <!-- 安全检查-开展检查 -->
  2. <template>
  3. <view class="examine">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="basics">
  6. <view class="basics_li">
  7. <view class="basics_li_l">实验室</view>
  8. <view class="basics_li_r lab_r" :class="addDisabledType?'addDisabled':''">
  9. <input class="picker-text" @click="popupClick(1)" type="text" disabled
  10. v-model="form.subjectName" placeholder="请选择实验室"
  11. placeholder-style="font-size: 30rpx;color:#333;">
  12. <view class="img-box" @click.stop="saoCode" v-if="!addDisabledType">
  13. <img src="@/pages_safetyExamine/images/icon_aqjc_sm.png">
  14. </view>
  15. </view>
  16. </view>
  17. <view class="basics_li">
  18. <view class="basics_li_l">学院</view>
  19. <picker disabled @change="collegeChange" :value="collegeIndex" :range="collegeArray"
  20. class="scope_r">
  21. <view class="basics_li_r college_r" style="background-color: #F5F5F5 ;">
  22. <view>{{form.collegeName?form.collegeName:'未选择实验室'}}</view>
  23. <img src="@/pages_safetyExamine/images/icon_06.png">
  24. </view>
  25. </picker>
  26. </view>
  27. <view class="basics_li">
  28. <view class="basics_li_l">楼栋</view>
  29. <picker @change="buildingChange" disabled="" :value="collegeIndex" :range="buildingArray"
  30. class="scope_r">
  31. <view class="basics_li_r college_r" style="background-color: #F5F5F5 ;">
  32. <view>{{form.buildName?form.buildName:'未选择实验室'}}</view>
  33. <img src="@/pages_safetyExamine/images/icon_06.png">
  34. </view>
  35. </picker>
  36. </view>
  37. <view class="basics_li">
  38. <view class="basics_li_l">计划标题</view>
  39. <picker v-if="isCustom" @change="planChange" :disabled='addDisabledType' :value="planIndex"
  40. :range="planArray" class="scope_r">
  41. <view class="basics_li_r college_r" :class="addDisabledType?'addDisabled':''">
  42. <view>{{form.title?form.title:'选择计划标题'}}</view>
  43. <img src="@/pages_safetyExamine/images/icon_06.png">
  44. </view>
  45. </picker>
  46. <view v-if="!isCustom" class="basics_li_r college_r">
  47. <input type="text" v-model="form.title" maxlength="30" placeholder="输入计划标题">
  48. </view>
  49. </view>
  50. <view class="basics_li" style="justify-content: flex-end;" v-if='planArray[0]&&!addDisabledType'>
  51. <view class="custom" @click="customFun">{{isCustom?'自定义输入':'选择计划'}}</view>
  52. </view>
  53. <view class="basics_li">
  54. <view class="basics_li_l">检查组织</view>
  55. <picker @change="categoryChange" :value="categoryIndex" disabled :range="categoryArray"
  56. class="scope_r">
  57. <view class="basics_li_r college_r" style="background-color: #F5F5F5 ;">
  58. <view>{{form.checkType?(form.checkType==1?'校院巡查':'实验室自查'):'选择检查组织'}}</view>
  59. <img src="@/pages_safetyExamine/images/icon_06.png">
  60. </view>
  61. </picker>
  62. </view>
  63. <view class="basics_li">
  64. <view class="basics_li_l">检查类型</view>
  65. <picker @change="specialChange" :value="specialIndex" :range="specialArray" :disabled="isCustom"
  66. class="scope_r">
  67. <view class="basics_li_r college_r" :class="isCustom?'addDisabled':''">
  68. <view>{{form.checkCategory?(form.checkCategory==1?'综合检查':'专项检查'):'选择检查类型'}}</view>
  69. <img src="@/pages_safetyExamine/images/icon_06.png">
  70. </view>
  71. </picker>
  72. </view>
  73. <view class="period">
  74. <view class="period_l">计划周期</view>
  75. <view class="period_r" :class="isCustom?'addDisabled':''">
  76. <picker mode="date" @change="startChange(form,$event)" :disabled="isCustom">
  77. <input class="picker-text" disabled type="text" v-model="form.cycleStartTime"
  78. placeholder="开始时间">
  79. </picker>
  80. <view>至</view>
  81. <picker mode="date" @change="endChange(form,$event)" :disabled="isCustom">
  82. <input class="picker-text2" disabled type="text" v-model="form.cycleEndTime"
  83. placeholder="结束时间">
  84. </picker>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="attachment" v-if="form.isAttachment==1">
  89. <view class="attachment_t">
  90. <text>材料附件</text>
  91. <text>点击文件标题查看</text>
  92. </view>
  93. <view class="attachment_li" v-for="(item,index) in attachmentList" :key="index">
  94. <img src="@/pages_safetyExamine/images/icon_djc_wj.png" />
  95. <text @click="attachmentPreview(item)">{{item.fileName}}</text>
  96. </view>
  97. </view>
  98. <view class="inspect" v-if='form.checkCategory==1 || (form.checkResult==0 || form.checkCategory==2)'>
  99. <view class="inspect_li" v-if='form.checkCategory==1'>
  100. <view class="inspect_li_l">检查结果</view>
  101. <picker @change="resultChange" :value="resultIndex" :range="resultArray" class="scope_r">
  102. <view class="inspect_li_r college_r">
  103. <view>{{form.checkResult==1?'符合':'不符合'}}</view>
  104. <img src="@/pages_safetyExamine/images/icon_06.png">
  105. </view>
  106. </picker>
  107. </view>
  108. <view class="inspect_li" v-if="form.checkResult==0 || form.checkCategory==2">
  109. <view class="inspect_li_l">整改日期</view>
  110. <picker mode="date" @change="rectifyDeadline(form,$event)" :start="currentDate">
  111. <view class="inspect_li_r date_r">
  112. <input disabled class="picker-text" type="text" v-model="form.rectifyDeadline"
  113. placeholder="请选择日期" placeholder-style="font-size: 30rpx;color:#333;">
  114. <img src="@/pages_safetyExamine/images/icon_rl.png">
  115. </view>
  116. </picker>
  117. </view>
  118. <view class="inspect_li" v-if="form.checkResult==0 || form.checkCategory==2">
  119. <view class="inspect_li_l">整改通知</view>
  120. <view class="inform_r">
  121. <view v-for="(item,index) in informArray" :key="index" @click="tabClick(index)"><text
  122. :class="informIndex==index?'checked':'inform_r_l' "></text><text
  123. class="inform_r_r">{{item}}</text></view>
  124. </view>
  125. </view>
  126. </view>
  127. </scroll-view>
  128. <!-- 房间选择弹出层 -->
  129. <view class="popup-max-box" v-if="popupType">
  130. <view class="popup-null" @click="popupClick(2)"></view>
  131. <view class="popup-big-box">
  132. <view class="popup-input-box">
  133. <input type="text" maxlength="10" v-model="room" placeholder="请输入关键字">
  134. <view @click="buildBySub">搜索</view>
  135. </view>
  136. <view class="popup-for-max-box">
  137. <view class="popup-for-null" v-if="!roomList[0]">暂无数据</view>
  138. <view class="popup-for-box" v-for="(item,index) in roomList" :key="index">
  139. <view class="name-p">{{item.subName}}</view>
  140. <view class="button-p" @click="popupClickItem(item)">确定</view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <!-- 检查名称弹窗 -->
  146. <uni-popup ref="popup" class="inspect_name" type="bottom">
  147. <view class="popup-content">
  148. <view class="inspect_name_t">
  149. <input type="text" v-model="customTitle" maxlength="30" placeholder="请输入计划标题" />
  150. </view>
  151. <view class="inspect_name_b">
  152. <text @click="titleCancel()">取消</text>
  153. <text @click="titleConfirm()">确定</text>
  154. </view>
  155. </view>
  156. </uni-popup>
  157. <view class="bottom_btn" @click="handleClick('nextStep')" v-if="form.checkResult==0 || form.checkCategory==2">
  158. 下一步</view>
  159. <view class="bottom_btn" @click="handleClick('submitForm')" v-if="form.checkResult==1 && form.checkCategory==1">
  160. 提交</view>
  161. </view>
  162. </template>
  163. <script>
  164. import {
  165. config
  166. } from '@/api/request/config.js'
  167. import {
  168. getCheckPlanBySubId,
  169. checkManageUpdate,
  170. checkManageAdd,
  171. findCheckManage,
  172. findByPlanIdAttachment,
  173. subjectFindSubjectInfo,
  174. systemDeptDropList,
  175. laboratoryBigViewGetBuildByBigView,
  176. laboratorySubRelInfoGetListByFloor,
  177. laboratorySubRelInfoGetRelList
  178. } from '@/pages_safetyExamine/api/index.js'
  179. export default {
  180. name: "rectifyList",
  181. components: {
  182. },
  183. data() {
  184. return {
  185. pageType: 0,
  186. //列表请求参数
  187. getData: {
  188. pageNum: 1,
  189. pageSize: 20,
  190. },
  191. customTitle: '',
  192. attachmentList: [], //材料附件
  193. form: {
  194. id: '',
  195. checkPlanId: '',
  196. manageStatus: '', //保存1 提交2
  197. subIds: '', //实验室
  198. subjectName: '',
  199. title: '', //计划标题
  200. deptId: '', //学院
  201. collegeName: '',
  202. buildId: '', //楼栋
  203. buildName: '',
  204. roomNumber: '', //房间号
  205. checkType: 2, // 检查组织(1校院巡查 2实验室自查)
  206. checkResult: 1, // 检查结果 0不符合 1符合
  207. rectifyDeadline: '', //整改期限
  208. rectifyNotice: '1', //整改通知(1整改告知书 2整改通知书)
  209. cycleStartTime: '',
  210. cycleEndTime: '',
  211. checkCategory: '', //检查类型 1综合检查 2专项检查
  212. checkHazardDtoList: [{
  213. voiceRemark: [], //语音备忘存储
  214. hazardLevel: 2, //隐患等级
  215. hazardLevelName: '一般隐患', //隐患等级
  216. hazardCheckCode: '', //检查项目code序号
  217. hazardCheckName: '', //检查项目名称
  218. hazardCheckPro: '', //最后一级的id
  219. hazardCheckPoint: '', // 检查要点
  220. hazardDescribe: '', //隐患描述
  221. uploadDtoList: [], //隐患照片
  222. }],
  223. checkHazardInfoVoList: [],
  224. },
  225. collegeIndex: 0,
  226. collegeArray: [],
  227. categoryIndex: 0,
  228. categoryArray: ['校院巡查', '实验室自查'],
  229. planIndex: 0,
  230. specialIndex: 0,
  231. specialArray: ['综合检查', '专项检查'],
  232. planArray: [],
  233. planList: [],
  234. resultIndex: 0,
  235. resultArray: ['符合', '不符合'],
  236. informIndex: 0,
  237. informArray: ['整改告知书', '整改通知书'],
  238. //房间弹层 状态
  239. popupType: false,
  240. //房间搜索字段
  241. room: "",
  242. roomList: [],
  243. item: {},
  244. isCustom: false,
  245. buildingArray: [],
  246. buildingList: [],
  247. //扫一扫进入
  248. laboratoryList: [],
  249. currentDate: '', //当前日期
  250. //
  251. addDisabledType: false
  252. }
  253. },
  254. onLoad(option) {
  255. //通过微信扫一扫进入
  256. if (option.q) {
  257. console.log('外部扫一扫')
  258. let text = decodeURIComponent(option.q)
  259. let codeId = "";
  260. let newList = text.split("?")[1].split("&")
  261. let list = newList[0].split("=")[1].split("-")
  262. codeId = list[0];
  263. uni.showToast({
  264. title: codeId,
  265. icon: "none",
  266. mask: true,
  267. duration: 2000
  268. });
  269. this.form.subIds = codeId
  270. this.getCheckPlanBySubId(codeId)
  271. this.getByIdLaboratoryList();
  272. }
  273. if (option.id) {
  274. console.log('开始/编辑')
  275. this.findCheckManage('add', option.id)
  276. }
  277. if (option.form) {
  278. console.log('子页面返回')
  279. this.form = JSON.parse(decodeURIComponent(option.form));
  280. this.isCustom = this.form.isCustom;
  281. if (this.form.isAttachment == 1) { //0没有附件 1有附件
  282. this.findByPlanIdAttachment()
  283. }
  284. }
  285. //通过实验室id查询计划
  286. if (option.subId) {
  287. console.log('内部扫一扫')
  288. this.form.subIds = option.subId
  289. this.getCheckPlanBySubId(option.subId)
  290. this.getByIdLaboratoryList();
  291. }
  292. },
  293. onShow() {
  294. this.buildFloorGetlist()
  295. },
  296. mounted() {
  297. //获取当前日期
  298. this.currentDate = this.getNowFormatDate()
  299. this.listDepartments();
  300. },
  301. methods: {
  302. //滚动事件
  303. scrollGet() {},
  304. handleClick(doType) {
  305. let self = this;
  306. if (!this.form.subIds) {
  307. uni.showToast({
  308. title: '请选择实验室!',
  309. icon: "none",
  310. mask: true,
  311. duration: 2000
  312. });
  313. return
  314. }
  315. if (!this.form.deptId) {
  316. uni.showToast({
  317. title: '请选择学院!',
  318. icon: "none",
  319. mask: true,
  320. duration: 2000
  321. });
  322. return
  323. }
  324. if (!this.form.buildId) {
  325. uni.showToast({
  326. title: '请选择楼栋!',
  327. icon: "none",
  328. mask: true,
  329. duration: 2000
  330. });
  331. return
  332. }
  333. if (!this.form.title) {
  334. if (!this.isCustom) {
  335. uni.showToast({
  336. title: '请输入计划标题!',
  337. icon: "none",
  338. mask: true,
  339. duration: 2000
  340. });
  341. } else {
  342. uni.showToast({
  343. title: '请选择计划标题!',
  344. icon: "none",
  345. mask: true,
  346. duration: 2000
  347. });
  348. }
  349. return
  350. }
  351. if (!this.form.cycleStartTime || !this.form.cycleEndTime) {
  352. uni.showToast({
  353. title: '请选择计划周期!',
  354. icon: "none",
  355. mask: true,
  356. duration: 2000
  357. });
  358. return
  359. }
  360. if (this.currentDate < this.form.cycleStartTime) {
  361. uni.showToast({
  362. title: '当前时间不在计划周期内',
  363. icon: "none",
  364. mask: true,
  365. duration: 2000
  366. });
  367. return
  368. }
  369. if (doType == 'nextStep') { //下一步
  370. // 打开扫描页面
  371. if (!this.form.rectifyDeadline) {
  372. uni.showToast({
  373. title: '整改日期不能为空!',
  374. icon: "none",
  375. mask: true,
  376. duration: 2000
  377. });
  378. return
  379. }
  380. this.form.isCustom = this.isCustom;
  381. if (this.form.checkCategory == 1) { //综合检查
  382. uni.navigateTo({
  383. url: '/pages_safetyExamine/views/examineManage/examineAddTow?form=' +
  384. encodeURIComponent(JSON.stringify(this.form))
  385. });
  386. } else if (this.form.checkCategory == 2) { //专项检查
  387. if (this.form.checkHazardInfoVoList[0]) {
  388. uni.navigateTo({
  389. url: '/pages_safetyExamine/views/examineManage/examineAddTow?form=' +
  390. encodeURIComponent(JSON.stringify(this.form))
  391. });
  392. } else {
  393. uni.redirectTo({
  394. url: '/pages/views/saoCode/scan?form=' + encodeURIComponent(JSON.stringify(this
  395. .form))
  396. });
  397. }
  398. }
  399. } else if (doType == 'submitForm') {
  400. self.submitForm()
  401. }
  402. },
  403. customFun() {
  404. let self = this;
  405. if (!self.isCustom) { //自定义
  406. self.form.title = '';
  407. self.form.id = '';
  408. self.form.checkType = '';
  409. self.form.cycleStartTime = '';
  410. self.form.cycleEndTime = '';
  411. self.isCustom = !self.isCustom
  412. } else { //选择计划
  413. this.$set(this.form, 'isAttachment', 0);
  414. this.$set(this, 'customTitle', '');
  415. self.form.checkHazardInfoVoList = [];
  416. self.$refs.popup.open()
  417. }
  418. },
  419. titleCancel() {
  420. let self = this;
  421. self.$refs.popup.close()
  422. },
  423. titleConfirm() {
  424. let self = this;
  425. self.isCustom = !self.isCustom
  426. this.$set(this.form, 'title', this.customTitle);
  427. this.$set(this.form, 'id', '');
  428. this.$set(this.form, 'checkType', 2);
  429. this.$set(this.form, 'checkResult', 1);
  430. this.$set(this.form, 'rectifyDeadline', '');
  431. this.$set(this, 'informIndex', 0);
  432. this.$set(this.form, 'cycleStartTime', '');
  433. this.$set(this.form, 'cycleEndTime', '');
  434. this.$set(this.form, 'checkHazardDtoList', [{
  435. voiceRemark: [], //语音备忘存储
  436. hazardLevel: 2, //隐患等级
  437. hazardLevelName: '一般隐患', //隐患等级
  438. hazardCheckCode: '', //检查项目code序号
  439. hazardCheckName: '', //检查项目名称
  440. hazardCheckPro: '', //最后一级的id
  441. hazardCheckPoint: '', // 检查要点
  442. hazardDescribe: '', //隐患描述
  443. uploadDtoList: [], //隐患照片
  444. }]);
  445. self.$refs.popup.close()
  446. },
  447. //开始时间选中事件
  448. startChange(form, e) {
  449. if (new Date(e.target.value).getTime() > new Date(form.cycleEndTime).getTime()) {
  450. uni.showToast({
  451. title: '结束时间不能小于开始时间',
  452. icon: "none",
  453. mask: true,
  454. duration: 2000
  455. });
  456. } else {
  457. form.cycleStartTime = e.target.value
  458. }
  459. },
  460. //结束时间选中事件
  461. endChange(form, e) {
  462. if (new Date(form.cycleStartTime).getTime() > new Date(e.target.value).getTime()) {
  463. uni.showToast({
  464. title: '结束时间不能小于开始时间',
  465. icon: "none",
  466. mask: true,
  467. duration: 2000
  468. });
  469. } else {
  470. form.cycleEndTime = e.target.value
  471. }
  472. },
  473. //获取当前日期函数
  474. getNowFormatDate() {
  475. let date = new Date(),
  476. year = date.getFullYear(), //获取完整的年份(4位)
  477. month = date.getMonth() + 1, //获取当前月份(0-11,0代表1月)
  478. strDate = date.getDate() // 获取当前日(1-31)
  479. if (month < 10) month = `0${month}` // 如果月份是个位数,在前面补0
  480. if (strDate < 10) strDate = `0${strDate}` // 如果日是个位数,在前面补0
  481. return `${year}-${month}-${strDate}`
  482. },
  483. //根据计划id查询附件列表
  484. async findByPlanIdAttachment() {
  485. let _this = this;
  486. const {
  487. data
  488. } = await findByPlanIdAttachment({
  489. checkPlanId: this.form.checkPlanId
  490. });
  491. if (data.code == 200) {
  492. _this.attachmentList = data.data;
  493. }
  494. },
  495. //详情
  496. async findCheckManage(type, id) {
  497. let _this = this;
  498. const {
  499. data
  500. } = await findCheckManage({
  501. id: id
  502. });
  503. if (data.code == 200) {
  504. if (type == 'add') {
  505. if (data.data.checkPlanId) {
  506. this.$set(this, 'isCustom', true);
  507. }
  508. this.$set(this, 'addDisabledType', true);
  509. }
  510. this.$set(this, 'form', data.data);
  511. this.$set(this.form, 'subIds', data.data.subId);
  512. this.form.rectifyNotice = data.data.rectifyNotice == null ? '1' : data.data.rectifyNotice;
  513. this.informIndex = this.form.rectifyNotice == 1 ? 0 : 1;
  514. if (data.data.checkCategory == 1) { //综合检查
  515. this.form.checkResult = data.data.checkResult == null ? '1' : data.data.checkResult;
  516. if (data.data.checkHazardDtoList[0]) { //隐患项
  517. this.form.checkHazardDtoList = data.data.checkHazardDtoList;
  518. //语音备注
  519. for (let i = 0; i < this.form.checkHazardDtoList.length; i++) {
  520. if (this.form.checkHazardDtoList[i].voiceRemark) {
  521. this.form.checkHazardDtoList[i].voiceRemark = JSON.parse(this.form
  522. .checkHazardDtoList[i].voiceRemark)
  523. } else {
  524. this.form.checkHazardDtoList[i].voiceRemark = [];
  525. }
  526. }
  527. }
  528. } else if (data.data.checkCategory == 2) { //专项检查
  529. if (_this.form.checkHazardInfoVoList[0]) {
  530. _this.form.checkHazardInfoVoList.forEach(function(item) {
  531. item.switch = true;
  532. // item.checkHazardDtoList.forEach(function(item2) {
  533. // item2.hazardCheckCode=item2.code
  534. // })
  535. })
  536. }
  537. if (_this.form.checkHazardInfoVoList[0]) { //隐患项
  538. //语音备注
  539. for (let k = 0; k < _this.form.checkHazardInfoVoList.length; k++) {
  540. for (let i = 0; i < _this.form.checkHazardInfoVoList[k].checkHazardDtoList
  541. .length; i++) {
  542. if (_this.form.checkHazardInfoVoList[k].checkHazardDtoList[i].voiceRemark) {
  543. _this.form.checkHazardInfoVoList[k].checkHazardDtoList[i].voiceRemark = JSON
  544. .parse(_this.form.checkHazardInfoVoList[k].checkHazardDtoList[i]
  545. .voiceRemark)
  546. } else {
  547. _this.form.checkHazardInfoVoList[k].checkHazardDtoList[i].voiceRemark = [];
  548. }
  549. }
  550. }
  551. }
  552. }
  553. //根据实验室id查询实验室计划
  554. if (data.data.subId) {
  555. this.form.cycleStartTime = data.data.cycleStartTime;
  556. this.form.cycleEndTime = data.data.cycleEndTime;
  557. }
  558. if (data.data.isAttachment == 1) { //0没有附件 1有附件
  559. this.findByPlanIdAttachment()
  560. }
  561. }
  562. },
  563. //查询学院列表
  564. async listDepartments() {
  565. let self = this;
  566. const {
  567. data
  568. } = await systemDeptDropList({
  569. deptName: '',
  570. level: 2,
  571. deptType: 1
  572. });
  573. if (data.code == 200) {
  574. for (let i = 0; i < data.data.length; i++) {
  575. self.collegeArray.push(data.data[i].deptName)
  576. }
  577. self.collegeList = data.data;
  578. }
  579. },
  580. //根据实验室id查询该实验室有关计划
  581. async getCheckPlanBySubId(subId) {
  582. let _this = this;
  583. const {
  584. data
  585. } = await getCheckPlanBySubId({
  586. 'subId': subId
  587. });
  588. if (data.code == 200) {
  589. if (data.data.length > 0) {
  590. let titleList = [];
  591. let list = [];
  592. for (let i = 0; i < data.data.length; i++) {
  593. if (data.data[i].isSelfData == 1) {
  594. titleList.push(data.data[i].title)
  595. list.push(data.data[i]);
  596. }
  597. }
  598. this.$set(this.form, 'id', '');
  599. this.$set(this.form, 'title', '');
  600. this.$set(this, 'planArray', titleList);
  601. this.$set(this, 'planList', list);
  602. _this.isCustom = true;
  603. _this.form.checkType = null;
  604. } else {
  605. _this.isCustom = false;
  606. _this.form.checkType = 2;
  607. }
  608. }
  609. },
  610. //查询楼栋
  611. async buildFloorGetlist() {
  612. let _this = this;
  613. const {
  614. data
  615. } = await laboratoryBigViewGetBuildByBigView({
  616. type: 2
  617. })
  618. if (data.code == 200) {
  619. let idList = [];
  620. let nameList = [];
  621. for (let i = 0; i < data.data.length; i++) {
  622. idList.push(data.rows[i].id)
  623. nameList.push(data.rows[i].name)
  624. }
  625. this.$set(this, "buildingList", idList)
  626. this.$set(this, "buildingArray", nameList)
  627. }
  628. },
  629. //楼栋选中
  630. buildingChange(e) {
  631. this.form.buildId = this.buildingList[e.target.value]
  632. this.form.buildName = this.buildingArray[e.target.value]
  633. this.buildBySubList(this.buildingList[e.target.value]);
  634. },
  635. //根据楼栋ID查询实验室列表
  636. async buildBySubList(buildId) {
  637. let self = this;
  638. const {
  639. data
  640. } = await laboratorySubRelInfoGetListByFloor({
  641. buildId: buildId
  642. });
  643. if (data.code == 200) {
  644. this.$set(this.form, 'subIds', '')
  645. this.$set(this.form, 'subjectName', '')
  646. this.$set(this, 'room', '')
  647. this.$set(this, 'roomList', data.data);
  648. }
  649. },
  650. //学院选中
  651. collegeChange(e) {
  652. this.collegeIndex = e.target.value;
  653. this.form.deptId = this.collegeList[e.target.value].deptId
  654. this.form.collegeName = this.collegeList[e.target.value].deptName
  655. this.buildFloorGetlist(this.form.deptId)
  656. },
  657. //检查组织
  658. categoryChange(e) {
  659. this.categoryIndex = e.target.value;
  660. if (e.target.value == 0) {
  661. this.form.checkType = 1
  662. } else if (e.target.value == 1) {
  663. this.form.checkType = 2
  664. }
  665. },
  666. //检查类型
  667. specialChange(e) {
  668. this.specialIndex = e.target.value;
  669. if (e.target.value == 0) {
  670. this.form.checkCategory = 1
  671. } else if (e.target.value == 1) {
  672. this.form.checkCategory = 2
  673. }
  674. },
  675. //计划
  676. planChange(e) {
  677. this.planIndex = e.target.value;
  678. this.form.id = this.planList[e.target.value].id
  679. this.findCheckManage('check', this.planList[e.target.value].id);
  680. },
  681. resultChange(e) {
  682. this.resultIndex = e.target.value;
  683. if (e.target.value == 0) {
  684. this.form.checkResult = 1;
  685. } else if (e.target.value == 1) {
  686. this.form.checkResult = 0;
  687. }
  688. },
  689. //开始时间选中事件
  690. rectifyDeadline(form, e) {
  691. form.rectifyDeadline = e.target.value
  692. },
  693. //整改通知
  694. tabClick(index) {
  695. this.informIndex = index;
  696. if (index == 0) {
  697. this.form.rectifyNotice = '1';
  698. } else if (index == 1) {
  699. this.form.rectifyNotice = '2';
  700. }
  701. },
  702. //搜索房间弹层开关
  703. popupClick(type) {
  704. if (type == 1) {
  705. if (this.addDisabledType) {
  706. return
  707. }
  708. this.popupType = true;
  709. } else if (type == 2) {
  710. this.popupType = false;
  711. }
  712. },
  713. //扫一扫进入通过id查询实验室列表
  714. async getByIdLaboratoryList() {
  715. let self = this;
  716. const {
  717. data
  718. } = await subjectFindSubjectInfo({
  719. subIds: this.form.subIds
  720. });
  721. if (data.code == 200) {
  722. if (data.data) {
  723. self.form.subjectName = data.data.subjectName;
  724. self.form.deptId = data.data.deptId;
  725. self.form.collegeName = data.data.collegeName;
  726. self.form.buildId = data.data.buildId;
  727. self.form.buildName = data.data.buildName;
  728. self.form.roomNumber = data.data.roomNumber;
  729. }
  730. }
  731. },
  732. //搜索房间接口
  733. async buildBySub() {
  734. let self = this;
  735. if (!this.room) {
  736. uni.showToast({
  737. title: '请输入要搜索关键词',
  738. icon: "none",
  739. mask: true,
  740. duration: 2000
  741. });
  742. return
  743. }
  744. const {
  745. data
  746. } = await laboratorySubRelInfoGetRelList({
  747. 'searchValue': this.room
  748. });
  749. if (data.code == 200) {
  750. if (data.data[0]) {
  751. this.roomList = data.data;
  752. } else {
  753. uni.showToast({
  754. title: '未找到相关实验室',
  755. icon: "none",
  756. mask: true,
  757. duration: 2000
  758. });
  759. }
  760. }
  761. },
  762. //确认搜索房间
  763. popupClickItem(item) {
  764. this.$set(this.form, "subIds", item.subId)
  765. this.$set(this.form, "subjectName", item.subName)
  766. this.$set(this.form, "deptId", item.deptId)
  767. this.$set(this.form, "buildId", item.buildId)
  768. this.$set(this.form, "roomNumber", item.roomNum)
  769. this.$set(this.form, 'title', '');
  770. this.$set(this.form, 'id', '');
  771. this.$set(this.form, 'checkType', 2);
  772. this.$set(this.form, 'checkResult', 1);
  773. this.$set(this.form, 'rectifyDeadline', '');
  774. this.$set(this, 'informIndex', 0);
  775. this.$set(this.form, 'cycleStartTime', '');
  776. this.$set(this.form, 'cycleEndTime', '');
  777. this.$set(this.form, 'checkHazardDtoList', [{
  778. voiceRemark: [], //语音备忘存储
  779. hazardLevel: 2, //隐患等级
  780. hazardLevelName: '一般隐患', //隐患等级
  781. hazardCheckCode: '', //检查项目code序号
  782. hazardCheckName: '', //检查项目名称
  783. hazardCheckPro: '', //最后一级的id
  784. hazardCheckPoint: '', // 检查要点
  785. hazardDescribe: '', //隐患描述
  786. uploadDtoList: [], //隐患照片
  787. }]);
  788. //匹配学院名称
  789. for (let i = 0; i < this.collegeList.length; i++) {
  790. if (this.collegeList[i].deptId == item.deptId) {
  791. this.$set(this.form, "collegeName", this.collegeList[i].deptName)
  792. }
  793. }
  794. //匹配楼栋名称
  795. for (let i = 0; i < this.buildingList.length; i++) {
  796. if (this.buildingList[i] == item.buildId) {
  797. this.$set(this.form, "buildName", this.buildingArray[i])
  798. }
  799. }
  800. this.popupType = false;
  801. this.getCheckPlanBySubId(item.subId)
  802. },
  803. //调用摄像头
  804. saoCode() {
  805. let self = this;
  806. uni.scanCode({
  807. onlyFromCamera: true,
  808. success: function(res) {
  809. if (res.result.indexOf("code") != -1 && res.result.indexOf("-") != -1 && res.result
  810. .indexOf("&") != -1) {
  811. let codeRoom = "";
  812. let newList = res.result.split("?")[1].split("&")
  813. let list = newList[0].split("=")[1].split("-")
  814. codeRoom = list[1];
  815. if (codeRoom) {
  816. self.roomList = [];
  817. self.room = codeRoom;
  818. self.buildBySub();
  819. self.popupType = true;
  820. } else {
  821. uni.showToast({
  822. title: '请扫描正确的二维码',
  823. icon: "none",
  824. mask: true,
  825. duration: 2000
  826. });
  827. }
  828. } else {
  829. uni.showToast({
  830. title: '请扫描正确的二维码',
  831. icon: "none",
  832. mask: true,
  833. duration: 2000
  834. });
  835. }
  836. }
  837. });
  838. },
  839. //附件查看
  840. attachmentPreview(item) {
  841. uni.showLoading({
  842. title: '下载中'
  843. });
  844. wx.downloadFile({
  845. url: config.base_url + item.fileUrl,
  846. header: {
  847. Authorization: uni.getStorageSync('token')
  848. },
  849. success: function(res) {
  850. uni.hideLoading();
  851. const filePath = res.tempFilePath
  852. wx.openDocument({
  853. filePath: filePath,
  854. success: function(res) {
  855. console.log('打开文档成功')
  856. }
  857. })
  858. },
  859. fail: function(res) {
  860. uni.hideLoading();
  861. uni.showToast({
  862. title: '下载失败',
  863. icon: "none",
  864. mask: true,
  865. duration: 2000
  866. });
  867. }
  868. })
  869. },
  870. //提交
  871. async submitForm() {
  872. let self = this;
  873. this.form.manageStatus = 2;
  874. let obj = self.form;
  875. //复合的情况下,删除隐患项
  876. obj.checkHazardDtoList = [];
  877. if (self.form.id) {
  878. const {
  879. data
  880. } = await checkManageUpdate(obj);
  881. if (data.code == 200) {
  882. uni.showToast({
  883. title: '提交成功',
  884. icon: "none",
  885. mask: true,
  886. duration: 2000
  887. });
  888. uni.redirectTo({
  889. url: '/pages_safetyExamine/views/examineManage/examineList?pageType=' + this.form
  890. .checkType
  891. });
  892. }
  893. } else {
  894. const {
  895. data
  896. } = await checkManageAdd(obj);
  897. if (data.code == 200) {
  898. uni.showToast({
  899. title: '提交成功',
  900. icon: "none",
  901. mask: true,
  902. duration: 2000
  903. });
  904. uni.redirectTo({
  905. url: '/pages_safetyExamine/views/examineManage/examineList?pageType=' + this.form
  906. .checkType
  907. });
  908. }
  909. }
  910. },
  911. }
  912. }
  913. </script>
  914. <style lang="stylus" scoped>
  915. .examine {
  916. height: 100%;
  917. display flex;
  918. box-sizing: border-box;
  919. .info-max-box {
  920. flex: 1;
  921. overflow: scroll;
  922. padding: 20rpx 0rpx 128rpx;
  923. box-sizing: border-box;
  924. }
  925. .addDisabled {
  926. background-color: #f5f5f5;
  927. }
  928. .basics {
  929. margin: 0 30rpx;
  930. width: 690rpx;
  931. height: auto;
  932. background: #FFFFFF;
  933. border-radius: 20rpx;
  934. padding: 30rpx 28rpx 30rpx;
  935. box-sizing: border-box;
  936. .basics_li {
  937. display: flex;
  938. justify-content: flex-start;
  939. margin-bottom: 24rpx;
  940. .basics_li_l {
  941. width: 146rpx;
  942. text-align: left;
  943. font-size: 30rpx;
  944. font-family: PingFang SC-Medium, PingFang SC;
  945. font-weight: 400;
  946. color: #333333;
  947. line-height: 80rpx;
  948. }
  949. .basics_li_r {
  950. width: 486rpx;
  951. height: 80rpx;
  952. border-radius: 10rpx;
  953. opacity: 1;
  954. border: 1rpx solid #E0E0E0;
  955. padding-left: 20rpx;
  956. box-sizing: border-box;
  957. }
  958. /* 学院 */
  959. .college_r {
  960. width: 486rpx;
  961. height: 80rpx;
  962. border-radius: 10rpx;
  963. border: 1rpx solid #E0E0E0;
  964. display: flex;
  965. justify-content: flex-start;
  966. align-items: center;
  967. >view {
  968. flex: 1;
  969. line-height: 80rpx;
  970. font-size: 30rpx;
  971. font-family: PingFang SC-Medium, PingFang SC;
  972. font-weight: 400;
  973. color: #333333;
  974. line-height: 80rpx;
  975. white-space: nowrap;
  976. overflow: hidden;
  977. text-overflow: ellipsis;
  978. }
  979. >img {
  980. width: 14rpx;
  981. height: 8rpx;
  982. margin-right: 30rpx;
  983. }
  984. }
  985. /* 实验室 */
  986. .lab_r {
  987. width: 486rpx;
  988. height: 80rpx;
  989. display: flex;
  990. justify-content: flex-start;
  991. .picker-text {
  992. width: 438rpx;
  993. height: 80rpx;
  994. }
  995. .img-box {
  996. width: 48rpx;
  997. >img {
  998. width: 30rpx;
  999. height: 28rpx;
  1000. margin: 26rpx 18rpx 0 0;
  1001. }
  1002. }
  1003. }
  1004. /* 楼栋 */
  1005. .building_r {
  1006. width: 486rpx;
  1007. height: 80rpx;
  1008. >input {
  1009. height: 80rpx;
  1010. font-size: 30rpx;
  1011. font-family: PingFang SC-Medium, PingFang SC;
  1012. font-weight: 400;
  1013. color: #333333;
  1014. line-height: 80rpx;
  1015. }
  1016. }
  1017. }
  1018. .period {
  1019. display: flex;
  1020. justify-content: flex-start;
  1021. align-items: center;
  1022. margin-bottom: 24rpx;
  1023. .period_l {
  1024. width: 146rpx;
  1025. font-size: 30rpx;
  1026. font-family: PingFang SC-Medium, PingFang SC;
  1027. font-weight: 400;
  1028. color: #333333;
  1029. line-height: 42rpx;
  1030. text-align: left;
  1031. }
  1032. .period_r {
  1033. width: 490rpx;
  1034. height: 80rpx;
  1035. border-radius: 10rpx;
  1036. border: 1rpx solid #E0E0E0;
  1037. display: flex;
  1038. justify-content: flex-start;
  1039. align-items: center;
  1040. .picker-text {
  1041. font-size: 30rpx;
  1042. font-family: PingFang SC-Medium, PingFang SC;
  1043. font-weight: 400;
  1044. color: #333;
  1045. line-height: 80rpx;
  1046. width: 230rpx;
  1047. text-align: center;
  1048. }
  1049. .picker-text2 {
  1050. font-size: 30rpx;
  1051. font-family: PingFang SC-Medium, PingFang SC;
  1052. font-weight: 400;
  1053. color: #333;
  1054. line-height: 80rpx;
  1055. width: 230rpx;
  1056. text-align: center;
  1057. }
  1058. }
  1059. }
  1060. .custom {
  1061. width: 150rpx;
  1062. height: 60rpx;
  1063. border-radius: 10rpx 10rpx 10rpx 10rpx;
  1064. opacity: 1;
  1065. border: 1rpx solid #0183FA;
  1066. font-size: 26rpx;
  1067. font-family: PingFang SC-Medium, PingFang SC;
  1068. font-weight: 400;
  1069. color: #0183FA;
  1070. line-height: 60rpx;
  1071. text-align: center;
  1072. float: right;
  1073. }
  1074. }
  1075. .attachment {
  1076. width: 690rpx;
  1077. background: #FFFFFF;
  1078. border-radius: 20rpx;
  1079. margin: 20rpx 30rpx 0;
  1080. padding-bottom: 32rpx;
  1081. box-sizing: border-box;
  1082. .attachment_t {
  1083. border-bottom: 1rpx solid #D8D8D8;
  1084. >text:nth-of-type(1) {
  1085. font-size: 30rpx;
  1086. font-family: PingFang SC-Medium, PingFang SC;
  1087. font-weight: 400;
  1088. color: #333333;
  1089. line-height: 110rpx;
  1090. margin-left: 28rpx;
  1091. }
  1092. >text:nth-of-type(2) {
  1093. font-size: 30rpx;
  1094. font-family: PingFang SC-Medium, PingFang SC;
  1095. font-weight: 400;
  1096. color: #999999;
  1097. line-height: 110rpx;
  1098. margin-left: 24rpx;
  1099. }
  1100. }
  1101. .attachment_li {
  1102. height: 40rpx;
  1103. display: flex;
  1104. justify-content: flex-start;
  1105. align-items: center;
  1106. margin-top: 32rpx;
  1107. >img {
  1108. width: 30rpx;
  1109. height: 26rpx;
  1110. margin-right: 20rpx;
  1111. margin-left: 50rpx;
  1112. }
  1113. >text {
  1114. flex: 1;
  1115. font-size: 28rpx;
  1116. font-family: PingFang SC-Medium, PingFang SC;
  1117. font-weight: 400;
  1118. color: #0183FA;
  1119. line-height: 40rpx;
  1120. white-space: nowrap;
  1121. overflow: hidden;
  1122. text-overflow: ellipsis;
  1123. }
  1124. .attachment_li_del {
  1125. width: 30rpx;
  1126. height: 30rpx;
  1127. }
  1128. }
  1129. }
  1130. .inspect {
  1131. margin: 20rpx 30rpx 0;
  1132. width: 690rpx;
  1133. height: auto;
  1134. background: #FFFFFF;
  1135. border-radius: 20rpx;
  1136. padding: 40rpx 28rpx 20rpx;
  1137. box-sizing: border-box;
  1138. .inspect_li {
  1139. display: flex;
  1140. justify-content: flex-start;
  1141. margin-bottom: 24rpx;
  1142. .inspect_li_l {
  1143. width: 146rpx;
  1144. text-align: left;
  1145. font-size: 30rpx;
  1146. font-family: PingFang SC-Medium, PingFang SC;
  1147. font-weight: 400;
  1148. color: #333333;
  1149. line-height: 80rpx;
  1150. }
  1151. .inspect_li_r {
  1152. width: 486rpx;
  1153. height: 80rpx;
  1154. border-radius: 10rpx;
  1155. opacity: 1;
  1156. border: 1rpx solid #E0E0E0;
  1157. padding-left: 20rpx;
  1158. box-sizing: border-box;
  1159. }
  1160. .college_r {
  1161. width: 486rpx;
  1162. height: 80rpx;
  1163. border-radius: 10rpx;
  1164. border: 1rpx solid #E0E0E0;
  1165. display: flex;
  1166. justify-content: flex-start;
  1167. align-items: center;
  1168. >view {
  1169. flex: 1;
  1170. line-height: 80rpx;
  1171. font-size: 30rpx;
  1172. font-family: PingFang SC-Medium, PingFang SC;
  1173. font-weight: 400;
  1174. color: #333333;
  1175. line-height: 80rpx;
  1176. }
  1177. >img {
  1178. width: 14rpx;
  1179. height: 8rpx;
  1180. margin-right: 30rpx;
  1181. }
  1182. }
  1183. /* 整改日期 */
  1184. .date_r {
  1185. width: 486rpx;
  1186. height: 80rpx;
  1187. display: flex;
  1188. justify-content: flex-start;
  1189. .picker-text {
  1190. width: 438rpx;
  1191. height: 80rpx;
  1192. }
  1193. >img {
  1194. width: 30rpx;
  1195. height: 28rpx;
  1196. margin: 16rpx 18rpx 0 0;
  1197. }
  1198. }
  1199. /* 整改通知 */
  1200. .inform_r {
  1201. width: 486rpx;
  1202. height: 80rpx;
  1203. padding-left: 20rpx;
  1204. box-sizing: border-box;
  1205. display: flex;
  1206. justify-content: flex-start;
  1207. align-items: center;
  1208. >view {
  1209. display: flex;
  1210. justify-content: flex-start;
  1211. align-items: center;
  1212. margin-right: 24rpx;
  1213. .inform_r_l {
  1214. display: inline-block;
  1215. width: 30rpx;
  1216. height: 30rpx;
  1217. border-radius: 50%;
  1218. border: 1rpx solid #E0E0E0;
  1219. margin-right: 14rpx;
  1220. }
  1221. .inform_r_r {
  1222. font-size: 30rpx;
  1223. font-family: PingFang SC-Medium, PingFang SC;
  1224. font-weight: 400;
  1225. color: #333333;
  1226. line-height: 80rpx;
  1227. }
  1228. .checked {
  1229. display: inline-block;
  1230. width: 30rpx;
  1231. height: 30rpx;
  1232. border-radius: 50%;
  1233. border: 1rpx solid #0183FA;
  1234. margin-right: 14rpx;
  1235. position: relative;
  1236. }
  1237. .checked::after {
  1238. content: '';
  1239. position: absolute;
  1240. top: 5rpx;
  1241. left: 5rpx;
  1242. width: 20rpx;
  1243. height: 20rpx;
  1244. border-radius: 50%;
  1245. background: #0183FA;
  1246. }
  1247. }
  1248. }
  1249. }
  1250. }
  1251. .popup-max-box {
  1252. z-index: 10;
  1253. height: 100%;
  1254. width: 100%;
  1255. position fixed;
  1256. background rgba(0, 0, 0, 0.2);
  1257. display flex;
  1258. flex-direction column;
  1259. .popup-null {
  1260. flex: 1;
  1261. }
  1262. .popup-big-box {
  1263. border-top-left-radius: 20rpx;
  1264. border-top-right-radius: 20rpx;
  1265. background #fff;
  1266. .popup-input-box {
  1267. padding: 30rpx 20rpx;
  1268. display: flex;
  1269. input {
  1270. flex: 1;
  1271. height: 70rpx;
  1272. border: 1rpx solid #e0e0e0;
  1273. border-radius: 10rpx;
  1274. margin-right: 20rpx;
  1275. padding: 0 20rpx;
  1276. }
  1277. view {
  1278. background #0183FA;
  1279. color: #fff;
  1280. border-radius: 10rpx;
  1281. width: 140rpx;
  1282. line-height: 70rpx;
  1283. text-align center;
  1284. font-size: 28rpx;
  1285. }
  1286. }
  1287. .popup-for-max-box {
  1288. margin: 0 20rpx 30rpx;
  1289. height: 600rpx;
  1290. overflow-y scroll;
  1291. .popup-for-null {
  1292. line-height: 100rpx;
  1293. text-align center;
  1294. color: #999;
  1295. }
  1296. .popup-for-box {
  1297. display: flex;
  1298. padding: 10px 0;
  1299. .name-p {
  1300. flex: 1;
  1301. line-height: 60rpx;
  1302. }
  1303. .button-p {
  1304. background #0183FA;
  1305. color: #fff;
  1306. text-align center;
  1307. width: 100rpx;
  1308. line-height: 60rpx;
  1309. height: 60rpx;
  1310. border-radius: 10rpx;
  1311. }
  1312. }
  1313. }
  1314. }
  1315. }
  1316. /* 计划标题 */
  1317. .inspect_name {
  1318. .popup-content {
  1319. width: 750rpx;
  1320. height: 350rpx;
  1321. background: #FFFFFF;
  1322. border-radius: 10rpx 10rpx 0px 0px;
  1323. padding: 0 50rpx;
  1324. box-sizing: border-box;
  1325. overflow: hidden;
  1326. .inspect_name_t {
  1327. margin-top: 66rpx;
  1328. padding: 0 30rpx;
  1329. box-sizing: border-box;
  1330. >input {
  1331. width: 100%;
  1332. height: 80rpx;
  1333. border: 2rpx solid #E0E0E0;
  1334. color: #A2A2A2;
  1335. font-size: 28rpx;
  1336. line-height 80rpx;
  1337. border-radius: 10rpx;
  1338. padding: 0 20rpx;
  1339. box-sizing: border-box;
  1340. }
  1341. }
  1342. .inspect_name_b {
  1343. margin-top: 64rpx;
  1344. display: flex;
  1345. justify-content: center;
  1346. >text:nth-of-type(1) {
  1347. width: 160rpx;
  1348. height: 60rpx;
  1349. border-radius: 40rpx;
  1350. font-size: 30rpx;
  1351. font-family: PingFang SC;
  1352. font-weight: 500;
  1353. color: #333333;
  1354. line-height: 60rpx;
  1355. text-align: center;
  1356. margin-right: 120rpx;
  1357. border: 2rpx solid #e0e0e0;
  1358. }
  1359. >text:nth-of-type(2) {
  1360. width: 160rpx;
  1361. height: 60rpx;
  1362. background: linear-gradient(-35deg, #309CFF, #0183FA);
  1363. border-radius: 40rpx;
  1364. font-size: 30rpx;
  1365. font-family: PingFang SC;
  1366. font-weight: 500;
  1367. color: #FFFFFF;
  1368. line-height: 60rpx;
  1369. text-align: center;
  1370. }
  1371. }
  1372. }
  1373. }
  1374. .bottom_btn {
  1375. position: fixed;
  1376. bottom: 26rpx;
  1377. left: 30rpx;
  1378. font-size: 30rpx;
  1379. font-family: PingFang SC-Medium, PingFang SC;
  1380. font-weight: 400;
  1381. color: #FFFFFF;
  1382. line-height: 90rpx;
  1383. width: 690rpx;
  1384. height: 90rpx;
  1385. background: #0183FA;
  1386. border-radius: 20rpx;
  1387. text-align: center;
  1388. }
  1389. }
  1390. </style>