examineAdd.vue 39 KB

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