examineAdd.vue 39 KB

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