examineAdd.vue 44 KB

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