check_implement.vue 41 KB

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