check_inspection.vue 37 KB

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