examineAdd.vue 39 KB

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