check_inspection.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333
  1. <template>
  2. <view class="uni-container uni-container-bg">
  3. <view class="example container" :style="'height: ' + (screenHeight - 75) + 'px'">
  4. <!-- 下拉框 -->
  5. <view class="u-page__tag-item" style="margin-bottom: 26upx;width: 700upx;border-bottom: 2px solid #55cbbf;">
  6. <u-form>
  7. <u-form-item prop="orgName" @click="
  8. showOrg = true;
  9. hideKeyboard();
  10. " label="单位选择:" labelWidth="120px">
  11. <u--input border="none" disabled v-model="formData.orgName" placeholder="请选择所属单位"></u--input>
  12. <u-icon slot="right" name="arrow-down" class="danwei"></u-icon>
  13. </u-form-item>
  14. </u-form>
  15. </view>
  16. <view class="tops" v-if="!getqrcode">
  17. <view style="display: flex;flex-direction: column;">
  18. <image :src="scan" class="tupian" @click="erWeiMa"></image>
  19. <view style="margin-top: 20rpx;">设施扫码</view>
  20. </view>
  21. <!-- #ifdef H5 -->
  22. <u-popup :show="qrScanShow" mode="center" @close="qrScanClose" @open="qrScanOpen" closeable
  23. :safeAreaInsetTop="true" zoom>
  24. <view class="qr-scan-containner">
  25. <view class="qr-scan-middle">
  26. <view class="qr-scan-title">
  27. 扫码
  28. </view>
  29. <qrcode-stream class="qr-scan-view" @decode="onDecode" />
  30. </view>
  31. </view>
  32. </u-popup>
  33. <!-- <view class="qrcode" v-if="qrcodeShow">
  34. <qrcode-stream @decode="onDecode" />
  35. </view> -->
  36. <!-- #endif -->
  37. <view>
  38. <image :src="Group" @click="
  39. showMCheck = true;
  40. hideKeyboard();
  41. " class="tiantupian"></image>
  42. <view style="margin-top: 20rpx;">手动添加</view>
  43. </view>
  44. </view>
  45. <view class="cont" v-if="!getqrcode">
  46. 主动检查记录
  47. </view>
  48. <view v-if="!getqrcode" class="main-content">
  49. <uni-card v-for="(item, index) in tableData" :key="index">
  50. <view class="titles"><text class="name-align-task">检查项:</text>{{item.inspName}}
  51. <u-icon v-if="item.isdenger==1" name="warning-fill" color="#ff5647" size="28"
  52. :customStyle="{marginTop:'20px',backgroundColor:'#fff'}"></u-icon>
  53. </view>
  54. <view><text class="name-align-task">检查结果:</text>{{item.handleResult}}</view>
  55. <view class="an-niu">
  56. <text><text class="name-align-task">检查时间:</text>{{item.inspectTime}}</text>
  57. <text @click="addClickDetail(item.id)" class="detail">查看详情</text>
  58. </view>
  59. </uni-card>
  60. </view>
  61. </view>
  62. <!-- 扫码弹出层 -->
  63. <u-popup :show="maShow" :round="10" @close="maShow=false">
  64. <view v-if="insTypeData!=''">
  65. <view class="springFarm" v-for="(item,index) in insTypeData" :key="index">
  66. <view class="show-title">设备名称:{{item.fpdName}}</view>
  67. <view class="show-title">设备序列号:{{item.fpdCode}}</view>
  68. <view>
  69. <view class="show-title">设备检查项:</view>
  70. </view>
  71. <view style="display: flex;flex-direction: column;">
  72. <view class="" v-if="item.inspectResultList!=''">
  73. <uni-grid :column="3" :showBorder="false">
  74. <uni-grid-item v-for="(items,indexs) in item.inspectResultList" :key="indexs">
  75. <view class="grid-item-box">
  76. <image :src="items.subValue==1?zhengchang:moren" class="tupians"
  77. @click="normalPopup(items,indexs,index)">
  78. </image>
  79. <text class="text">{{items.subLable}}</text>
  80. </view>
  81. </uni-grid-item>
  82. </uni-grid>
  83. </view>
  84. <!-- <view class="slot-contents" v-if="show2">
  85. <textarea v-model="dangerDescribe" placeholder="请输入隐患描述内容"></textarea>
  86. </view> -->
  87. </view>
  88. <!-- ----扫码选择隐患 -->
  89. <view class="slot-contents" v-if="show2">
  90. <textarea v-model="dangerDescribe" placeholder="请输入隐患描述内容"
  91. @click="popupChoiceDangerFpd('show2')"></textarea>
  92. <u-popup :show="showPopupDanger" :round="10" @close="showPopupDanger=false">
  93. <view style="width: 90vw;overflow-y: auto;margin-bottom: 80rpx;padding:10px">
  94. <text class="text-xl">选择隐患类型:</text>
  95. <view class="" class="person-forward">
  96. <u-checkbox-group v-for="(items, indexs) in choiceDanger" :key="indexs"
  97. placement="column" v-model="items.checkedListDanger"
  98. @change="checkboxChange3(items.name,$event)" activeColor="#4CB2B6"
  99. iconSize="red">
  100. <u-checkbox :customStyle="{marginBottom: '60rpx'}" :label="items.name"
  101. :name="items.name">
  102. </u-checkbox>
  103. </u-checkbox-group>
  104. </view>
  105. <view class="flex flex-direction-row "
  106. style="position: fixed;bottom: 10px;left: 50%;transform: translate(-50%);height: 100rpx;width: 80%">
  107. <u-button shape="circle" type="primary" color="#4CB2B6" text="确定"
  108. @click="checkboxConfirm3()" customStyle="margin-right:20px;padding:0 30px">
  109. </u-button>
  110. <u-button type="primary" plain color="#4CB2B6" text="取消" shape="circle"
  111. @click="checkboxCancel3()" customStyle="padding:0 30px">
  112. </u-button>
  113. </view>
  114. </view>
  115. </u-popup>
  116. </view>
  117. <!-- ----扫码选择隐患 -->
  118. <view class="show-title">
  119. <view class="">巡检拍照:<text style="color:#822e2e;"></text></view>
  120. <view class="">
  121. <image :src="photograph" @click="photoUpload(item)" class="tiantupian"></image>
  122. </view>
  123. <uni-load-more v-show="loading" status="loading" :content-text="contentText" />
  124. </view>
  125. <view class="uni-grid-wraps">
  126. <view style="position: relative;width: 180rpx;float: left;margin: 10rpx 15rpx 0 0rpx;"
  127. v-for="(items,indexs) in item.attUrl" :key="indexs">
  128. <image :src="items" style="width: 160rpx;height: 160rpx;border-radius: 30rpx;float: left;">
  129. <u-icon name="close" color="#4CB2B6" size="19" @click="closeImage(item,indexs,index)"
  130. class="icon-style">
  131. </u-icon>
  132. </view>
  133. </view>
  134. <view style="width: 60%;position: absolute;left:150rpx;;bottom:60rpx;z-index: 9999;">
  135. <div class="btnList" v-if="show2">
  136. <u-button shape="circle" type="primary" color="#4CB2B6" text="立即处理"
  137. customStyle="margin-right:20%" @click="checkPopupConfirmNow">
  138. </u-button>
  139. <u-button v-if="show2" shape="circle" type="primary" color="#4CB2B6" text="生成隐患"
  140. @click="checkPopupYinHuan">
  141. </u-button>
  142. </div>
  143. <div class="btnList" v-if="!show2">
  144. <u-button shape="circle" type="primary" color="#4CB2B6" text="保存"
  145. customStyle="margin-right:20%" @click="checkPopupConfirm()">
  146. </u-button>
  147. <u-button shape="circle" type="primary" color="#4CB2B6" text="取消" @click="checkPopupCancel">
  148. </u-button>
  149. </div>
  150. </view>
  151. </view>
  152. </view>
  153. <view v-else>
  154. 暂无数据
  155. </view>
  156. </u-popup>
  157. <!-- 手动添加弹出层-->
  158. <u-popup :show="manualPopup" :round="10" @close="manualPopup=false">
  159. <view v-if="checkManualData!=[]">
  160. <view class="springFarm" v-for="(item,index) in checkManualData" :key="index">
  161. <view class="show-title">检查项名称:{{item.inspName}}</view>
  162. <view>
  163. <view class="show-title">设备检查项:</view>
  164. </view>
  165. <view style="display: flex;flex-direction: column;">
  166. <view class="" v-if="item.inspectSubDOList!=''">
  167. <uni-grid :column="3" :showBorder="false">
  168. <uni-grid-item v-for="(items,indexs) in item.inspectSubDOList" :key="indexs">
  169. <view class="grid-item-box">
  170. <image :src="items.isdenger==1?zhengchang:moren" class="tupians"
  171. @click="checkPopupManual(items,indexs,index)">
  172. </image>
  173. <text class="text">{{items.subLable}}</text>
  174. </view>
  175. </uni-grid-item>
  176. </uni-grid>
  177. </view>
  178. <!-- <view class="slot-contents" v-if="showManual">
  179. <textarea v-model="dangerDescribe" placeholder="请输入隐患描述内容"></textarea>
  180. </view> -->
  181. <!-- <view class="slot-contents" @click="descript(index)">
  182. <textarea class="slot-contents" v-model="remark" placeholder="请输入描述内容"></textarea>
  183. </view> -->
  184. </view>
  185. <!-- ----扫码选择隐患 -->
  186. <view class="slot-contents" v-if="showManual">
  187. <textarea v-model="dangerDescribe" placeholder="请输入隐患描述内容"
  188. @click="popupChoiceDangerFpd('Manual')"></textarea>
  189. <u-popup :show="showPopupDanger" :round="10" @close="showPopupDanger=false">
  190. <view style="width: 90vw;overflow-y: auto;margin-bottom: 80rpx;padding:10px">
  191. <text class="text-xl">选择隐患类型:</text>
  192. <view class="" class="person-forward">
  193. <u-checkbox-group v-for="(items, indexs) in choiceDanger" :key="indexs"
  194. placement="column" v-model="items.checkedListDanger"
  195. @change="checkboxChange3(items.name,$event)" activeColor="#4CB2B6"
  196. iconSize="red">
  197. <u-checkbox :customStyle="{marginBottom: '60rpx'}" :label="items.name"
  198. :name="items.name">
  199. </u-checkbox>
  200. </u-checkbox-group>
  201. </view>
  202. <view class="flex flex-direction-row "
  203. style="position: fixed;bottom: 10px;left: 50%;transform: translate(-50%);height: 100rpx;width: 80%">
  204. <u-button shape="circle" type="primary" color="#4CB2B6" text="确定"
  205. @click="checkboxConfirm3()" customStyle="margin-right:20px;padding:0 30px">
  206. </u-button>
  207. <u-button type="primary" plain color="#4CB2B6" text="取消" shape="circle"
  208. @click="checkboxCancel3()" customStyle="padding:0 30px">
  209. </u-button>
  210. </view>
  211. </view>
  212. </u-popup>
  213. </view>
  214. <!-- ----扫码选择隐患 -->
  215. <view class="show-title">
  216. <view class="">巡检拍照:<text style="color:#822e2e;"></text></view>
  217. <view class="">
  218. <image :src="photograph" @click="photoUpload(item)" class="tiantupian"></image> <!-- 加载中 -->
  219. </view>
  220. <uni-load-more v-show="loading" status="loading" :content-text="contentText" />
  221. </view>
  222. <view class="uni-grid-wraps">
  223. <view style="position: relative;width: 180rpx;float: left;margin: 10rpx 15rpx 0 0rpx;"
  224. v-for="(items,indexs) in item.attUrl" :key="indexs">
  225. <image :src="items" style="width: 160rpx;height: 160rpx;border-radius: 30rpx;float: left;">
  226. <u-icon name="close" color="#4CB2B6" size="19" @click="closeImage(item,indexs,index)"
  227. class="icon-style">
  228. </u-icon>
  229. </view>
  230. </view>
  231. <view style="width: 60%;position: fixed;left:150rpx;;bottom:60rpx;z-index: 9999;">
  232. <div class="btnList" v-if="showManual">
  233. <u-button shape="circle" type="primary" color="#4CB2B6" text="立即处理"
  234. customStyle="margin-right:20%" @click="checkPopupConfirmNow">
  235. </u-button>
  236. <u-button v-if="showManual" shape="circle" type="primary" color="#4CB2B6" text="生成隐患"
  237. @click="checkPopupYinHuan">
  238. </u-button>
  239. </div>
  240. <div class="btnList" v-if="!showManual">
  241. <u-button shape="circle" type="primary" color="#4CB2B6" text="保存"
  242. customStyle="margin-right:20%" @click="checkPopupConfirm()">
  243. </u-button>
  244. <u-button shape="circle" type="primary" color="#4CB2B6" text="取消" @click="checkPopupCancel">
  245. </u-button>
  246. </div>
  247. </view>
  248. </view>
  249. </view>
  250. <view v-else>
  251. 暂无数据
  252. </view>
  253. </u-popup>
  254. <u-modal :show="show5" title="请输入处理结果" @confirm="descriptFpd" @cancel="show5 = false">
  255. <view class="slot-content jieguo">
  256. <textarea v-model="handleResult" placeholder="请输入" />
  257. </view>
  258. </u-modal>
  259. <u-action-sheet :show="showOrg" :actions="actions" title="请选择单位" @close="showOrg = false" @select="sexSelect">
  260. </u-action-sheet>
  261. <u-action-sheet :show="showMCheck" :actions="actionsManual" title="请选择检查项" @close="showMCheck = false">
  262. <view style="margin-bottom: 20rpx;">
  263. <view class="manual-hand">
  264. 手动输入设施编码:
  265. </view>
  266. <view class="manual-hand-item">
  267. <u--input placeholder="请输入设施编号" v-model="manualValue" class="manual-hand-input"></u--input>
  268. <u-button shape="circle" type="primary" color="#4CB2B6" text="确认"
  269. customStyle="width:120rpx;margin-left:2%" @click="manualHandConfirm()">
  270. </u-button>
  271. </view>
  272. </view>
  273. <hr>
  274. <view class="manual-hand">
  275. 选择检查项大类:
  276. </view>
  277. <view v-for="(item,index) in actionsManual" :key="index" @click="SelectMCheck(item)" class="manual">
  278. {{item.name}}
  279. </view>
  280. </u-action-sheet>
  281. </view>
  282. </template>
  283. <script>
  284. // #ifdef H5
  285. import {
  286. QrcodeStream
  287. } from 'vue-qrcode-reader'
  288. // #endif
  289. import {
  290. getInspect, //获取主动检查列表
  291. inspTypeList,
  292. createInspect, //创建主动检查
  293. getInspectInfo, //手动添加的检查项列表
  294. getFpd //根据编码获取设施信息
  295. } from "@/api/check_active";
  296. import loadImage from 'blueimp-load-image';
  297. import {
  298. getAccessToken
  299. } from '@/utils/auth'
  300. import config from '@/config'
  301. import store from "@/store"
  302. const baseUrl = config.baseUrl
  303. const baseUrlImg = config.baseUrlImg
  304. import {
  305. getOrgId //获取orgId
  306. } from '@/api/fire_device';
  307. import {
  308. shijianc,
  309. viewImgBig
  310. } from '@/utils/common.js'
  311. //隐患弹框--
  312. import {
  313. DICT_TYPE,
  314. getDictDatas
  315. } from '@/utils/dict';
  316. //隐患弹框--
  317. let that = '';
  318. export default {
  319. components: {
  320. // #ifdef H5
  321. QrcodeStream
  322. // #endif
  323. },
  324. data() {
  325. return {
  326. contentText: {
  327. contentrefresh: '上传照片中',
  328. },
  329. screenHeight: this.$screenHeight,
  330. // ----扫码选择隐患
  331. showPopupDanger: false,
  332. dangerDict: getDictDatas(DICT_TYPE.DANGER_RESULT),
  333. choiceDanger: getDictDatas(DICT_TYPE.DANGER_TYPE),
  334. checkedPopupDanger: [], //
  335. // ----扫码选择隐患
  336. manualValue: '', //手动输入的设施编号
  337. manualPopup: false,
  338. scan: `${baseUrlImg}/checkActive/scan.png`,
  339. // 是否开启扫描
  340. qrScanShow: false,
  341. Group: `${baseUrlImg}/checkActive/Group2.png`,
  342. erWeiMaShu: '', //二维码内容对象
  343. tableData: [],
  344. loading: false,
  345. dengerType: 0,
  346. saveImplement: {
  347. dengerType: 0,
  348. attUrl: [],
  349. dangerDescribe: "", //隐患描述
  350. fpdId: "",
  351. fpdResultCreateReqVOList: [], //传的当前事件
  352. hisResultCreateReqVOList: [], //手动检查
  353. handleMethod: "", //处理方式
  354. handleResult: "", //处理结果描述
  355. handleTime: '',
  356. inspectTime: '',
  357. imgUrl1: "",
  358. imgUrl2: "",
  359. imgUrl3: "",
  360. orgId: 0,
  361. taskId: 0,
  362. broadId: 0,
  363. remark: "", //附加描述
  364. isdenger: 0,
  365. },
  366. maShow: false, //扫码后弹框是否展示
  367. manualCheck: false, //手动检查弹框是否显示
  368. actionsManual: [], //手动检查弹框数据
  369. ManualData: [], //手动检查弹框完整数据
  370. checkManualData: [], //手动检查选中的一条检查项数据
  371. showManual: false, //手动检查是否显示描述
  372. showMCheck: false,
  373. insTypeData: '', //扫二维码后出现的消防列表数据内容
  374. moren: `${baseUrlImg}/checkActive/moren.png`, //默认图片
  375. zhengchang: `${baseUrlImg}/checkActive/zhengchang.png`,
  376. show5: false,
  377. remark: '',
  378. photograph: `${baseUrlImg}/checkActive/photograph.png`,
  379. show2: false,
  380. handleResult: '',
  381. dangerDescribe: '',
  382. showOrg: false,
  383. actions: [],
  384. // 每页数据量
  385. pageSize: 10,
  386. // 当前页
  387. pageNo: 1,
  388. // 数据总量
  389. total: 0,
  390. formData: {
  391. orgName: '',
  392. orgId: ''
  393. },
  394. getqrcode: false,
  395. qrcodeShow: false, //h5端扫码是否显示
  396. }
  397. },
  398. watch: {
  399. loading: {
  400. handler(newLength, oldLength) {
  401. this.$modal.isLoadingModel(this.loading)
  402. },
  403. immediate: true
  404. }
  405. },
  406. onShow() {
  407. this.choiceDanger.map(i => {
  408. i.name = i.label;
  409. i.id = i.value;
  410. });
  411. this.tableData = []
  412. this.actions = []
  413. that = this;
  414. getOrgId({
  415. pageNo: this.pageNo,
  416. pageSize: this.pageSize,
  417. userId: this.$store.state.user.id
  418. }).then(response => {
  419. // 取到用户对应的单位名称与id
  420. response.data.map(v => {
  421. this.actions.push({
  422. id: v.dwid,
  423. name: v.orgName
  424. });
  425. });
  426. this.formData.orgName = response.data.length > 0 ? response.data[0].orgName : '' //默认
  427. this.formData.orgId = response.data.length > 0 ? response.data[0].dwid : ''
  428. });
  429. this.getData(1)
  430. this.getInspect()
  431. },
  432. methods: {
  433. // ----扫码选择隐患
  434. popupChoiceDangerFpd(type) {
  435. this.checkedPopupDanger = this.dangerDescribe.split(',')
  436. if (this.checkedPopupDanger.includes('其他')) {
  437. this.showPopupDanger = false
  438. } else {
  439. this.showPopupDanger = true
  440. this.$forceUpdate()
  441. }
  442. this.choiceDanger.map((i, indexs) => { //选中的回显
  443. i.checkedListDanger = []
  444. this.checkedPopupDanger.map(v => {
  445. if (i.name == v) {
  446. this.choiceDanger[indexs].checkedListDanger.push(v)
  447. }
  448. })
  449. })
  450. },
  451. checkboxConfirm3(index) {
  452. this.choiceDanger.map(i => {
  453. if (i.name == this.checkedPopupDanger[this.checkedPopupDanger.length - 1]) {
  454. this.dengerType = i.value
  455. }
  456. });
  457. this.dangerDescribe = this.checkedPopupDanger.toString()
  458. if (this.dangerDescribe.startsWith(',')) {
  459. this.dangerDescribe = this.dangerDescribe.slice(1);
  460. }
  461. this.showPopupDanger = false
  462. this.$forceUpdate()
  463. },
  464. checkboxCancel3(index) {
  465. this.showPopupDanger = false
  466. this.checkedPopupDanger = []
  467. this.$forceUpdate()
  468. },
  469. checkboxChange3(i, n) { //勾选的事件
  470. if (i && n.length != 0) {
  471. this.checkedPopupDanger.push(i)
  472. } else if (i && n.length == 0) {
  473. this.checkedPopupDanger = this.checkedPopupDanger.filter(item => item != i)
  474. }
  475. },
  476. // ----扫码选择隐患
  477. qrScanOpen() {},
  478. async getInspect() {
  479. const res = await getInspectInfo({
  480. pageNo: 1,
  481. pageSize: 100
  482. })
  483. this.ManualData = res.data.list
  484. this.actionsManual = res.data.list.filter(obj => obj.inspType !== 'fpd').map(obj => {
  485. return {
  486. id: obj.id,
  487. name: obj.inspName
  488. };
  489. })
  490. },
  491. closeImage(item, val, k) { //删除图片---5.25新加--未验证
  492. this.$nextTick(()=>{
  493. if (this.manualPopup) { //手动检查
  494. console.log(val, 'vvvvvvvvvvvvvvv');
  495. this.checkManualData[0].attUrl.splice(val, 1)
  496. } else { //扫码添加
  497. if (item.fpdType) {
  498. this.insTypeData[k].attUrl.splice(val, 1)
  499. }
  500. // this.tableData[k].attUrl.splice(val, 1)
  501. }
  502. this.$forceUpdate();
  503. })
  504. },
  505. sexSelect(e) { //单位
  506. this.formData.orgId = e.id;
  507. this.formData.orgName = e.name;
  508. this.tableData = []
  509. this.getData(1)
  510. },
  511. manualHandConfirm() { //手动输入编号确认
  512. var that = this
  513. getFpd({
  514. fpdCode: this.manualValue
  515. }).then(res => {
  516. if (res.data.list.length > 0) {
  517. inspTypeList({
  518. id: res.data.list[0].id,
  519. fpdCode: this.manualValue
  520. }).then(reponse => {
  521. that.showMCheck = false
  522. that.maShow = true
  523. that.show2 = false
  524. this.manualValue = ''
  525. that.insTypeData = reponse.data.records
  526. that.insTypeData.map(i => i.attUrl = [])
  527. })
  528. } else {
  529. this.$modal.msg('不存在该设备编码,请确认是否输入正确')
  530. }
  531. })
  532. },
  533. SelectMCheck(e) { //手动选择
  534. this.reselt()
  535. this.loading = false
  536. this.checkManualData = this.ManualData.filter(ManualDataItem => {
  537. return ManualDataItem.id == e.id
  538. })
  539. this.showMCheck = false
  540. this.manualPopup = true
  541. this.checkManualData.map(i => {
  542. i.inspectSubDOList.map(v => {
  543. v.isdenger = 0
  544. })
  545. i.isdenger = i.isdenger
  546. i.remark = ''
  547. i.attUrl = []
  548. i.handleMethod = ''
  549. i.handleResult = ''
  550. i.handleTime = ''
  551. i.inspectTime = ''
  552. })
  553. this.remark = ''
  554. },
  555. checkPopupManual(items, indexs, index) { //手动选择
  556. this.checkManualData[0].inspectSubDOList.map(i => {
  557. if (i.id == items.id) {
  558. i.isdenger = i.isdenger === 1 ? 0 : 1;
  559. this.showManual = i.isdenger === 1 ? true : false;
  560. } else {
  561. i.isdenger = 0
  562. this.showManual = false
  563. }
  564. })
  565. this.$forceUpdate()
  566. },
  567. descript(index) { //隐患描述点击确认
  568. // this.show2 = false
  569. },
  570. getData(pageNo) {
  571. this.loading = true
  572. const id = this.$store.state.user.id
  573. getInspect({
  574. pageNo: pageNo,
  575. pageSize: this.pageSize,
  576. userId: id,
  577. orgId: this.formData.orgId
  578. }).then(response => {
  579. this.loading = false
  580. this.tableData = [...this.tableData, ...response.data.list]
  581. this.dangerDict.map(i => {
  582. this.tableData.map(k => {
  583. if (k?.handleResult == i.value) {
  584. k.handleResult = i.label
  585. }
  586. })
  587. })
  588. // this.tableData = response.data.list
  589. this.total = response.data.total
  590. })
  591. },
  592. //小程序端扫码
  593. erWeiMa() {
  594. // #ifdef H5
  595. this.qrScanShow = true
  596. // #endif
  597. // #ifdef MP-WEIXIN
  598. var that = this
  599. this.remark = ''
  600. // 只允许从相机扫码
  601. uni.scanCode({
  602. onlyFromCamera: true, //只允许从相机扫码
  603. success: function(res) {
  604. if (res.errMsg == "scanCode:ok") {
  605. let result = JSON.parse(res.result)
  606. inspTypeList(JSON.parse(res.result)).then(reponse => {
  607. if (reponse.code == 0) {
  608. that.maShow = true
  609. that.show2 = false
  610. that.insTypeData = reponse.data.records
  611. that.insTypeData.map(i => {
  612. i.remark = ''
  613. i.attUrl = []
  614. i.handleMethod = ''
  615. i.handleResult = ''
  616. i.handleTime = ''
  617. i.inspectTime = ''
  618. })
  619. }
  620. })
  621. setTimeout(() => {
  622. that.$modal.msgSuccess('扫码成功')
  623. }, 200)
  624. }
  625. },
  626. fail: () => {
  627. that.$modal.msgError('未识别到二维码,请重新尝试!')
  628. }
  629. })
  630. // #endif
  631. },
  632. // #ifdef H5
  633. // 扫码成功后执行函数
  634. onDecode(qrcodeVal) {
  635. this.$modal.msgSuccess('扫码成功', qrcodeVal)
  636. this.qrcodeResault = qrcodeVal
  637. this.qrScanShow = false
  638. let result = JSON.parse(qrcodeVal)
  639. var that = this
  640. inspTypeList(JSON.parse(qrcodeVal)).then(reponse => {
  641. if (reponse.code == 0) {
  642. that.maShow = true
  643. that.show2 = false
  644. that.insTypeData = reponse.data.records
  645. that.insTypeData.map(i => i.attUrl = [])
  646. }
  647. })
  648. setTimeout(() => {
  649. that.$modal.msgSuccess('扫码成功')
  650. }, 200)
  651. },
  652. // 点击关闭按钮
  653. qrScanClose() {
  654. this.qrScanShow = false
  655. },
  656. onInit(promise) { //未使用
  657. promise
  658. .then(console.log)
  659. .catch(console.error)
  660. },
  661. // #endif
  662. descriptFpd() { //隐患描述点击确认
  663. this.show5 = false
  664. // this.handleResult = this.handleResult
  665. this.handleMethod = this.handleResult
  666. if (this.manualPopup) {
  667. // this.checkManualData[0].handleResult = this.handleResult
  668. this.checkManualData[0].handleMethod = this.handleResult
  669. this.checkManualData[0].handleResult = 1
  670. }
  671. this.handleResult = 1
  672. this.checkPopupConfirm()
  673. // this.maShow=false
  674. },
  675. checkPopupConfirmNow() {
  676. this.show5 = true
  677. this.handleMethod = "立即处理" //立即整改
  678. if (this.manualPopup) {
  679. this.checkManualData[0].handleMethod = "立即处理"
  680. }
  681. },
  682. checkPopupYinHuan() {
  683. this.handleMethod = "生成隐患" //生成隐患
  684. // this.handleResult = "不正常"
  685. this.handleResult = 2
  686. if (this.manualPopup) { //手动检查
  687. this.checkManualData[0].handleMethod = "生成隐患"
  688. // this.checkManualData[0].handleResult = "不正常"
  689. this.checkManualData[0].handleResult = 2
  690. }
  691. this.checkPopupConfirm()
  692. },
  693. photoUpload(val) {
  694. let pictures = [];
  695. let that = this;
  696. uni.chooseImage({
  697. sourceType: ['camera'], //实现拍照
  698. count: 3,
  699. sizeType: ['original', 'compressed'],
  700. // sourceType: ['album','camera'], //打开系统相册
  701. success(res) {
  702. that.loading = true
  703. if (Array.isArray(res.tempFilePaths)) { //从相册选择有三张的情况
  704. res.tempFilePaths.forEach(item => {
  705. loadImage(
  706. item,
  707. function(canvas) {
  708. canvas.toBlob(function(blob) {
  709. // 压缩后的 Blob 对象
  710. const compressedFile = blob;
  711. // 将压缩后的文件 `compressedFile` 转换为临时URL
  712. const fileUrl = URL.createObjectURL(
  713. compressedFile);
  714. uni.uploadFile({
  715. url: baseUrl +
  716. '/admin-api/infra/file/upload', //后端用于处理图片并返回图片地址的接口
  717. filePath: item,
  718. name: 'file',
  719. header: {
  720. "Authorization": 'Bearer ' +
  721. getAccessToken(),
  722. }, //请求token
  723. success: (res) => {
  724. let imgUrl = JSON.parse(res
  725. .data)
  726. that.loading = false
  727. //消防设备外(扫一扫下方)展示的图片
  728. //弹出层的消防设备展示的图片
  729. if (that.manualPopup) { //手动检查
  730. that.checkManualData.map(
  731. i => {
  732. i.attUrl.push(
  733. imgUrl
  734. .data)
  735. })
  736. } else { //扫码添加
  737. that.insTypeData.map((i,
  738. index) => {
  739. if (val.id == i
  740. .id) {
  741. i.attUrl
  742. .push(
  743. imgUrl
  744. .data
  745. )
  746. }
  747. })
  748. }
  749. that.$forceUpdate();
  750. // // 返回的url
  751. },
  752. fail: () => {
  753. that.loading = false
  754. }
  755. })
  756. // 上传完毕后,释放临时URL
  757. URL.revokeObjectURL(fileUrl);
  758. }, 'image/jpeg', 0.6); // 设置压缩后的图片格式为 JPEG,压缩质量为 0.6
  759. }, {
  760. canvas: true,
  761. maxWidth: 800
  762. } // 设置最大宽度为 800px
  763. );
  764. })
  765. }
  766. }
  767. })
  768. },
  769. // 消防设备扫码
  770. normalPopup(items, indexs, index) {
  771. // this.insTypeData.map(k => {
  772. // k.attUrl = []
  773. // })
  774. this.insTypeData[index].inspectResultList.map(k => {
  775. if (k.isNormal == 1) this.nnorNormalValue = k.id
  776. if (this.insTypeData[index].inspectResultList[indexs].isNormal != 1 && this
  777. .insTypeData[index]
  778. .inspectResultList[indexs].subValue != 1) {
  779. // this.show5 = true
  780. this.show2 = true
  781. }
  782. })
  783. let tableItem = this.insTypeData[index].inspectResultList[indexs]
  784. let ALLinspectResultList = this.insTypeData[index].inspectResultList
  785. let YesinspectResultList = []
  786. let NorinspectResultList = []
  787. var Y = ALLinspectResultList.filter(i => i.id == this.nnorNormalValue)
  788. var N = ALLinspectResultList.filter(i => i.id != this.nnorNormalValue)
  789. N.map(n => {
  790. NorinspectResultList.push(n.subValue)
  791. })
  792. Y.map(y => {
  793. YesinspectResultList.push(y.subValue)
  794. })
  795. // items.isdenger = 0 ? 1 : 0
  796. if (NorinspectResultList.includes(1)) { //如果互斥的数组存在true normal!=1的数组
  797. if (tableItem.id == this.nnorNormalValue) {
  798. this.insTypeData[index].inspectResultList.map((i, kindex) => {
  799. if (i.id != this.nnorNormalValue) {
  800. i.subValue = 0
  801. this.show2 = false
  802. } else {
  803. i.subValue = 1
  804. }
  805. })
  806. } else {
  807. items.subValue = items.subValue == 0 ? 1 : 0
  808. this.show2 = false
  809. }
  810. } else {
  811. if (tableItem.id == this.nnorNormalValue) {
  812. items.subValue = items.subValue == 0 ? 1 : 0
  813. } else {
  814. // if (YesinspectResultList.includes(true)) { //是否存在第一份
  815. this.insTypeData[index].inspectResultList.map((i, kindex) => {
  816. if (i.id == this.nnorNormalValue) {
  817. i.subValue = 0
  818. }
  819. })
  820. // }
  821. items.subValue = items.subValue == 0 ? 1 : 0
  822. }
  823. }
  824. },
  825. checkPopupConfirm() { //弹出得到的那一条数据insTypeData的id 弹出保存
  826. if (this.manualPopup) { //手动检查
  827. this.saveImplement = this.checkManualData[0]
  828. this.saveImplement.dengerType = this.dengerType
  829. this.saveImplement.hisResultCreateReqVOList = this.checkManualData[0].inspectSubDOList
  830. this.saveImplement.dangerDescribe = this.dangerDescribe
  831. this.saveImplement.handleTime = shijianc(new Date().getTime())
  832. this.saveImplement.inspectTime = shijianc(new Date().getTime())
  833. this.saveImplement.remark = this.remark
  834. this.saveImplement.imgUrl1 = this.checkManualData[0].attUrl[0] ? this.checkManualData[0].attUrl[0] :
  835. "";
  836. this.saveImplement.imgUrl2 = this.checkManualData[0].attUrl[1] ? this.checkManualData[0].attUrl[1] :
  837. "";
  838. this.saveImplement.imgUrl3 = this.checkManualData[0].attUrl[2] ? this.checkManualData[0].attUrl[2] :
  839. "";
  840. this.saveImplement.hisResultCreateReqVOList.map(z => {
  841. z.resLable = z.subLable
  842. z.resValue = z.isdenger
  843. })
  844. this.saveImplement.inspId = this.saveImplement.id
  845. this.saveImplement.inspectSubDOList.map(i => {
  846. if (i.isdenger == 1 && i.isNormal == 0) { //必传参数,只有该检查项正常为0,那么isdenger==1
  847. this.saveImplement.isdenger = 1
  848. } else {
  849. this.saveImplement.isdenger = 0
  850. }
  851. })
  852. this.saveImplement.orgId = this.formData.orgId
  853. if (!this.saveImplement.dangerDescribe && this.saveImplement.isdenger == 1) return that.$modal
  854. .msgError('请填写隐患描述');
  855. this.baocun(this.saveImplement)
  856. } else { //设施扫码
  857. //this.insTypeData[0]扫二维码后点击出现的一条消防列表数据内容 this.newInsTypeData的多条数据列表
  858. let arr = []
  859. let normalArr = 0
  860. this.insTypeData[0].inspectResultList.map((i, index) => {
  861. arr.push(i.subValue)
  862. if (i.isNormal == 1) {
  863. normalArr = index //找到正常的所在的index
  864. }
  865. })
  866. if (arr.includes(1)) { //包含了证明勾选了
  867. this.insTypeData.map(i => {
  868. })
  869. this.saveImplement = this.insTypeData
  870. this.saveImplement.map(i => {
  871. i.dengerType = this.dengerType
  872. i.handleTime = shijianc(new Date().getTime())
  873. i.inspectTime = shijianc(new Date().getTime())
  874. i.orgId = this.formData.orgId
  875. i.dangerDescribe = this.dangerDescribe
  876. i.handleMethod = this.handleMethod
  877. i.remark = this.remark
  878. i.handleResult = this.handleResult
  879. i.fpdId = i.id
  880. i.inspType = "fpd"
  881. i.imgUrl1 = i.attUrl[0] ? i.attUrl[0] : ""
  882. i.imgUrl2 = i.attUrl[1] ? i.attUrl[1] : ""
  883. i.imgUrl3 = i.attUrl[2] ? i.attUrl[2] : ""
  884. i.inspName = i.fpdName
  885. i.inspCode = i.fpdCode
  886. i.inspId = i.id
  887. i.fpdResultCreateReqVOList = i.inspectResultList
  888. i.fpdResultCreateReqVOList.map(z => {
  889. z.broadId = 0
  890. z.fpdId = z.id
  891. z.resLable = z.subLable
  892. z.resValue = z.subValue
  893. z.status = 0
  894. if (z.subValue == 1 && z.isNormal ==
  895. 0) { //必传参数,只有该检查项正常为0,那么isdenger==1
  896. i.isdenger = 1
  897. } else {
  898. i.isdenger = 0
  899. }
  900. })
  901. })
  902. if (!this.saveImplement[0].dangerDescribe && this.saveImplement[0].isdenger == 1) return that
  903. .$modal.msgError('请填写隐患描述');
  904. this.baocun(this.saveImplement[0])
  905. // ----扫码选择隐患
  906. this.description2 = ''
  907. this.show2 = false
  908. } else {
  909. that.$modal.alert('请勾选检查结果')
  910. }
  911. }
  912. },
  913. baocun(val) {
  914. createInspect(JSON.stringify(val)).then(response => {
  915. if (response.data) {
  916. uni.showToast({
  917. title: '提交成功',
  918. icon: 'none',
  919. duration: 2000
  920. })
  921. this.tableData = []
  922. this.getData(1)
  923. this.reselt()
  924. this.$forceUpdate()
  925. } else {
  926. this.$modal.msgError('提交失败')
  927. }
  928. })
  929. this.maShow = false
  930. this.manualPopup = false
  931. },
  932. reselt() {
  933. this.dangerDescribe = ''
  934. this.handleResult = ''
  935. this.saveImplement = { //重置
  936. attUrl: [],
  937. dangerDescribe: "", //隐患描述
  938. fpdId: "",
  939. fpdResultCreateReqVOList: [], //传的当前事件
  940. hisResultCreateReqVOList: [],
  941. handleMethod: "", //处理方式
  942. handleResult: "", //处理结果描述
  943. handleTime: "",
  944. inspectTime: "",
  945. imgUrl1: "",
  946. imgUrl2: "",
  947. imgUrl3: "",
  948. orgId: 0,
  949. taskId: 0,
  950. broadId: 0,
  951. remark: "", //附加描述
  952. isdenger: 0,
  953. }
  954. this.checkManualData = [{ //重置
  955. attUrl: [],
  956. dangerDescribe: "", //隐患描述
  957. fpdId: "",
  958. fpdResultCreateReqVOList: [], //传的当前事件
  959. hisResultCreateReqVOList: [],
  960. handleMethod: "", //处理方式
  961. handleResult: "", //处理结果描述
  962. handleTime: "",
  963. inspectTime: "",
  964. imgUrl1: "",
  965. imgUrl2: "",
  966. imgUrl3: "",
  967. orgId: 0,
  968. taskId: 0,
  969. broadId: 0,
  970. remark: "", //附加描述
  971. isdenger: 0,
  972. }]
  973. },
  974. checkPopupCancel() {
  975. this.maShow = false
  976. this.showManual = false
  977. this.manualPopup = false
  978. },
  979. // 隐藏键盘
  980. hideKeyboard() {
  981. uni.hideKeyboard();
  982. },
  983. addClick() {
  984. this.manualCheck = true
  985. },
  986. addClickDetail(val) {
  987. uni.navigateTo({
  988. url: `/pagesA/fire/check_inspection/inspect_detail/inspect_detail?id=${val}`,
  989. success: function(res) {
  990. res.eventChannel.emit('acceptDataFromOpenerPage', val);
  991. }
  992. })
  993. },
  994. },
  995. // 触底的事件
  996. onReachBottom() {
  997. // 判断是否还有下一页数据
  998. if (this.pageNo * this.pageSize >= this.total) return uni.showToast({
  999. title: `数据加载完毕`
  1000. })
  1001. // 判断是否正在请求其它数据,如果是,则不发起额外的请求
  1002. if (this.loading) return
  1003. this.pageNo += 1
  1004. this.getData(this.pageNo)
  1005. },
  1006. }
  1007. </script>
  1008. <style>
  1009. page {
  1010. background-color: #F5F7F9;
  1011. }
  1012. </style>
  1013. <style lang="scss" scoped>
  1014. page {
  1015. background-color: #F5F7F9 !important;
  1016. }
  1017. .tops {
  1018. display: flex;
  1019. justify-content: space-between;
  1020. width: 80%;
  1021. margin: 50rpx 10%;
  1022. // 二维码扫描相关样式
  1023. .qr-scan-containner {
  1024. max-width: 600rpx;
  1025. display: flex;
  1026. flex-direction: column;
  1027. justify-content: center;
  1028. align-items: center;
  1029. align-content: center;
  1030. background-color: transparent;
  1031. .qr-scan-middle {
  1032. .qr-scan-title {
  1033. font-size: 30rpx;
  1034. text-align: center;
  1035. padding: 20rpx 0;
  1036. }
  1037. max-width: 100%;
  1038. }
  1039. }
  1040. }
  1041. .tupian {
  1042. width: 95rpx;
  1043. height: 95rpx;
  1044. }
  1045. .tupians {
  1046. width: 45rpx;
  1047. height: 45rpx;
  1048. }
  1049. .tiantupian {
  1050. width: 95rpx;
  1051. height: 95rpx;
  1052. }
  1053. .cont {
  1054. font-size: 16px;
  1055. color: #4CB2B6;
  1056. margin-bottom: 30rpx;
  1057. }
  1058. .text {
  1059. text-align: center;
  1060. color: #000;
  1061. font-size: 26rpx;
  1062. margin-left: 20rpx;
  1063. }
  1064. .text2 {
  1065. text-align: center;
  1066. color: #000;
  1067. font-size: 22rpx;
  1068. margin-top: 10rpx;
  1069. }
  1070. ::v-deep .u-icon__icon {
  1071. margin-right: 0px !important;
  1072. }
  1073. .child {
  1074. margin: 20rpx 0 0 20rpx;
  1075. border-radius: 10rpx;
  1076. .child-new {
  1077. display: flex;
  1078. .child-new-item {
  1079. width: 30%;
  1080. margin-top: 25%;
  1081. transform: translateY(-50px);
  1082. }
  1083. .child-result {
  1084. /deep/.data-v-525ecd67 {
  1085. // width: 130rpx;
  1086. height: 100rpx;
  1087. }
  1088. }
  1089. }
  1090. }
  1091. .titles {
  1092. padding: 20rpx 0;
  1093. color: #383838;
  1094. }
  1095. .grid-item-box {
  1096. display: flex;
  1097. align-items: center;
  1098. justify-content: center;
  1099. padding: 15px 0;
  1100. }
  1101. /deep/ .uni-grid-item {
  1102. height: 140rpx !important;
  1103. }
  1104. /deep/.uni-textarea-textarea {
  1105. border: 1px solid #4CB2B6;
  1106. border-radius: 16rpx;
  1107. }
  1108. .btnList {
  1109. display: flex
  1110. }
  1111. .main-content {
  1112. /deep/.u-icon--right[data-v-172979f2],
  1113. /deep/.u-icon--right.data-v-172979f2,
  1114. .u-icon--right {
  1115. // background-color: #f8f8f8;
  1116. border-radius: 5rpx;
  1117. position: absolute;
  1118. top: -14rpx;
  1119. right: 14rpx;
  1120. }
  1121. }
  1122. /deep/.danwei.u-icon--right[data-v-172979f2],
  1123. /deep/.danwei.u-icon--right.data-v-172979f2,
  1124. .danwei.u-icon--right {
  1125. top: 58rpx !important;
  1126. right: 58rpx !important;
  1127. }
  1128. .uni-grid-wraps {
  1129. margin-left: 60rpx;
  1130. margin-bottom: 480rpx !important;
  1131. // margin-bottom: 200rpx;
  1132. }
  1133. /deep/.u-slide-up-enter-active[data-v-39e33bf2],
  1134. /deep/.u-slide-up-enter-active.data-v-39e33bf2,
  1135. .u-slide-up-enter-active {
  1136. height: 90% !important;
  1137. overflow-y: auto;
  1138. }
  1139. .springFarm {
  1140. margin-left: 40rpx;
  1141. }
  1142. .show-title {
  1143. font-size: 32rpx;
  1144. color: #383838;
  1145. margin: 40rpx 0;
  1146. }
  1147. /deep/.u-modal {
  1148. border: 1px solid #4CB2B6 !important;
  1149. }
  1150. .slot-contents {
  1151. // margin-left: 40rpx;
  1152. margin-bottom: 20rpx;
  1153. border-radius: 1px solid #E5E5E5 !important;
  1154. // background-color: #F0F2F3 !important;
  1155. }
  1156. /deep/ .slot-contents .uni-textarea-textarea {
  1157. border: 1px solid #4CB2B6 !important;
  1158. // background-color: #F0F2F3 !important;
  1159. }
  1160. .jieguo {
  1161. /deep/.uni-textarea-textarea {
  1162. border: none !important
  1163. }
  1164. }
  1165. /deep/ .uni-textarea-placeholder {
  1166. color: #a4a8ab;
  1167. margin-top: 20rpx;
  1168. margin-left: 30rpx;
  1169. }
  1170. .detail {
  1171. // width: 72px;
  1172. // height: 60rpx;
  1173. float: right;
  1174. border-radius: 30px;
  1175. background-color: #F7C41E;
  1176. margin-right: 20rpx;
  1177. text-align: center;
  1178. // line-height: 60rpx;
  1179. padding: 3rpx 15rpx;
  1180. }
  1181. .an-niu {
  1182. display: flex;
  1183. justify-content: space-between;
  1184. }
  1185. /deep/.u-input {
  1186. padding: 4px !important;
  1187. }
  1188. /deep/.canvasBox {
  1189. .box {
  1190. width: 600rpx;
  1191. /* 设置扫码容器宽度 */
  1192. height: 600rpx;
  1193. /* 设置扫码容器高度 */
  1194. }
  1195. }
  1196. .manual {
  1197. font-size: 16px;
  1198. padding: 25rpx 0;
  1199. }
  1200. .manual:last-child {
  1201. font-size: 25px;
  1202. padding: 60rpx 0;
  1203. background-color: red;
  1204. }
  1205. .manual-hand {
  1206. margin-left: 30rpx;
  1207. display: flex;
  1208. font-size: 18px;
  1209. color: #30746b;
  1210. margin: 20rpx;
  1211. }
  1212. .manual-hand-item {
  1213. display: flex;
  1214. width: 90%;
  1215. justify-content: space-between;
  1216. margin-left: 3%;
  1217. /deep/.u-input {
  1218. border: 1px solid #726f74 !important;
  1219. }
  1220. }
  1221. //隐患弹框
  1222. /deep/.u-popup__content {
  1223. overflow-y: auto;
  1224. }
  1225. .text-xl {
  1226. font-size: 18px;
  1227. font-weight: 600;
  1228. }
  1229. .person-forward {
  1230. padding-top: 40rpx;
  1231. display: flex;
  1232. flex-direction: column;
  1233. flex-wrap: wrap;
  1234. overflow-y: auto;
  1235. margin-bottom: 100rpx;
  1236. }
  1237. .example {
  1238. overflow-y: auto;
  1239. }
  1240. /deep/.u-action-sheet {
  1241. height: 80vh;
  1242. background-color: #fff;
  1243. overflow-y: auto;
  1244. }
  1245. .icon-style {
  1246. position: absolute;
  1247. top: -4px;
  1248. right: -9px;
  1249. }
  1250. </style>vh