check_inspection.vue 37 KB

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