check_inspection.vue 37 KB

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