check_inspection.vue 37 KB

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