check_inspection.vue 38 KB

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