details.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928
  1. <template>
  2. <view class="content-box">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" :title="title" background-color="#F7F9FA"
  4. color="#000" @clickLeft="back" right-icon="scan" @clickRight="handlScanCode"></uni-nav-bar>
  5. <!-- 投料 -->
  6. <view class="list_box">
  7. <u-list @scrolltolower="scrolltolower">
  8. <view v-for="(item, index) in List" :key="index" class="card_box">
  9. <workOrderBom :item='item' pType="feed" :taskType="item.currentTaskDiagram.type"
  10. @handleScan='handleScan'></workOrderBom>
  11. <paramBom v-if='item.paramDetailList.length != 0' :list='item.paramDetailList'></paramBom>
  12. <!-- //设备信息 -->
  13. <deviceBom v-if='item.equipmentList.length != 0' :workOrderId='item.workOrderId' :wordItem='item'
  14. :list='item.equipmentList' :turnover="item.turnover" @scanIt='scanIt' :type="type"></deviceBom>
  15. <!-- //在制品 -->
  16. <productsBom v-if="item.product != null && item.product != '{}'" :itemObj="item"
  17. :productsObj="item.product">
  18. </productsBom>
  19. <!-- feedNeedMould -->
  20. <modelBom v-if='item.modelList.length != 0' :workOrderId='item.workOrderId' :list='item.modelList'
  21. @scanIt='scanIt' :pattern="'feed'">
  22. </modelBom>
  23. <instanceBom v-if='item.instanceList.length != 0' :workOrderId='item.workOrderId'
  24. :list='item.instanceList' :equipmentList="item.equipmentList"
  25. :currentTaskDiagram="item.currentTaskDiagram" :workInfo="item">
  26. </instanceBom>
  27. <semiProductBom v-if='item.semiProductList.length != 0' :workOrderId='item.workOrderId'
  28. :list='item.semiProductList' :equipmentList="item.equipmentList"
  29. :currentTaskDiagram="item.currentTaskDiagram" :workInfo="item"></semiProductBom>
  30. <!-- 11 周转车 -->
  31. <turnoverBom v-if='item.turnover.length != 0' :list='item.turnover' :wordItem='item' pattern='feed'
  32. @handleScan='handleScan' @handleDel='handleDel'></turnoverBom>
  33. <aridRegion v-if='item.aridRegionList.length != 0' :list='item.aridRegionList'
  34. @handleScan='handleScan'></aridRegion>
  35. <palletBom v-if='item.palletList.length != 0' :palletList='item.palletList'></palletBom>
  36. <revolvingDiskBom v-if="item.revolvingDiskList.length != 0"
  37. :revolvingDiskList="item.revolvingDiskList"></revolvingDiskBom>
  38. <packingBom v-if='item.packingList.length != 0' :list='item.packingList'></packingBom>
  39. <view :class="[operateBtn ? 'flex_btn' : 'flex_btn2']">
  40. <image v-if="operateBtn" class="jiantou" src="../../../static/rightJt.png"
  41. @click="operateBtn = false"> </image>
  42. <view class="close_box" @click="operateBtn = true">
  43. <image v-if="!operateBtn" class="close" src="../../../static/close.png"></image>
  44. </view>
  45. <view v-if="!operateBtn" @click="openDetails(item.workOrderId)">出库单</view>
  46. <view v-if="!operateBtn" @click="removeCacheFn()">清空缓存</view>
  47. </view>
  48. <view :class="[idsList.length == 1 ? 'operate_box' : 'operate_box2']">
  49. <u-button size="small" class="u-reset-button" type="success"
  50. @click="handAdd(item.workOrderId)">手动添加</u-button>
  51. <u-button size="small" class="u-reset-button" type="success"
  52. @click="scanIt(item.workOrderId)">扫一扫</u-button>
  53. </view>
  54. </view>
  55. </u-list>
  56. </view>
  57. <view class="bottom-wrapper">
  58. <view class="btn_box" @click="save(1)">缓存</view>
  59. <view class="btn_box" @click="save(2)">一键投料</view>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. import workOrderBom from './components/workOrderBom.vue' //gd
  65. import deviceBom from './components/deviceBom.vue' //设备信息
  66. import modelBom from './components/modelBom.vue' //模具信息
  67. import instanceBom from './components/instanceBom.vue'
  68. import semiProductBom from './components/semiProductBom' //半成品信息
  69. import aridRegion from './components/aridRegion' //干燥区
  70. import paramBom from './components/paramBom.vue' //
  71. import turnoverBom from './components/turnoverBom.vue' //周转车信息
  72. import packingBom from './components/packingBom.vue' //包装信息
  73. import productsBom from './components/productsBom.vue' //在制品信息
  74. import palletBom from './components/palletBom' //舟皿
  75. import revolvingDiskBom from './components/revolvingDiskBom'
  76. import {
  77. workorderList,
  78. getByCode,
  79. scanLedger,
  80. feedSaveCache,
  81. feedGetCache,
  82. removeCache
  83. } from '@/api/pda/workOrder.js'
  84. import {
  85. batchSave
  86. } from '@/api/pda/feeding.js'
  87. export default {
  88. components: {
  89. workOrderBom,
  90. deviceBom,
  91. modelBom,
  92. instanceBom,
  93. semiProductBom,
  94. aridRegion,
  95. paramBom,
  96. turnoverBom,
  97. packingBom,
  98. productsBom,
  99. palletBom,
  100. revolvingDiskBom,
  101. },
  102. data() {
  103. return {
  104. title: '',
  105. idsList: [],
  106. List: [],
  107. taskId: null,
  108. type: '',
  109. clientEnvironmentId: null,
  110. operateBtn: true
  111. }
  112. },
  113. onLoad(options) {
  114. console.log(options, 'optionsoptionsoptionsoptionsoptionsoptions');
  115. this.title = options.taskName ? options.taskName + '-投料' : '投料'
  116. let queryArray = decodeURIComponent(options.arr);
  117. this.idsList = JSON.parse(queryArray);
  118. this.taskId = options.taskId;
  119. this.taskName = options.taskName;
  120. this.type = options.type;
  121. this.getList()
  122. this.clientEnvironmentId = uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo").clientEnvironmentId
  123. },
  124. onShow() {
  125. uni.$off("setSelectList");
  126. uni.$on("setSelectList", (selectList, id) => {
  127. this.List.forEach(m => {
  128. if (m.workOrderId == id) {
  129. let modelList = [] // 模具
  130. let instanceList = [] // 投料
  131. let aridRegionList = [] // 干燥区
  132. let equipmentList = [] // 生产设备
  133. let palletList = [] // 舟皿
  134. let revolvingDiskList = [] // 周转盘
  135. let semiProductList = [] // 半成品
  136. let turnover = [] //周转车
  137. selectList.forEach(f => {
  138. if (f.rootCategoryLevelId == 4) {
  139. equipmentList = equipmentList.concat(f)
  140. }
  141. if (f.rootCategoryLevelId == 5) {
  142. modelList = modelList.concat(f)
  143. } else if (f.rootCategoryLevelId == 1) {
  144. instanceList = instanceList.concat(f)
  145. } else if (f.rootCategoryLevelId == 11) {
  146. aridRegionList = aridRegionList.concat(f)
  147. } else if (f.rootCategoryLevelId == 7) {
  148. turnover = turnover.concat(f)
  149. } else if (f.rootCategoryLevelId == 8) {
  150. palletList = palletList.concat(f)
  151. } else if (f.rootCategoryLevelId == 26) {
  152. revolvingDiskList = revolvingDiskList.concat(f)
  153. } else if ([23, 2, 9, 28].includes(Number(f.rootCategoryLevelId))) {
  154. semiProductList = semiProductList.concat(f)
  155. }
  156. })
  157. this.$set(m, 'modelList', modelList)
  158. this.$set(m, 'instanceList', instanceList)
  159. this.$set(m, 'aridRegionList', aridRegionList)
  160. this.$set(m, 'equipmentList', equipmentList)
  161. this.$set(m, 'turnover', turnover)
  162. this.$set(m, 'palletList', palletList)
  163. this.$set(m, 'revolvingDiskList', revolvingDiskList)
  164. this.$set(m, 'semiProductList', semiProductList)
  165. }
  166. })
  167. });
  168. },
  169. methods: {
  170. scrolltolower() { },
  171. async save(type) {
  172. console.log(this.List);
  173. this.List.forEach(f => {
  174. this.$isJobExls(2,f)
  175. })
  176. return;
  177. this.List.forEach(f => {
  178. f.instanceList.forEach(e => {
  179. if (Object.prototype.hasOwnProperty.call(e, 'type')) {
  180. e.extInfo['type'] = e.type
  181. }
  182. e.extInfo['isConsumable'] = e.isConsumable
  183. })
  184. })
  185. console.log(this.List);
  186. const isCache = await this.checkCache(type)
  187. if (!isCache) {
  188. return false
  189. }
  190. if (this.clientEnvironmentId == 3 && this.List[0].currentTaskDiagram.type == 1) {
  191. if (this.List[0] && this.List[0].executorTime && this.List[0].executorTime != undefined) {
  192. // 正则表达式1:匹配 yyyy-MM-dd 格式
  193. let dateRegex = /^\d{4}-\d{2}-\d{2}$/;
  194. if (dateRegex.test(this.List[0].executorTime.trimRight())) {
  195. this.List[0].executorTime = this.List[0].executorTime + ' 00:00:00'
  196. }
  197. } else {
  198. uni.showToast({
  199. title: `请先选择时间投料时间`,
  200. icon: 'none'
  201. })
  202. return false
  203. }
  204. }
  205. const isDevice = await this.checkdDevice()
  206. if (!isDevice) {
  207. return false
  208. }
  209. // item.equipmentList
  210. // 索尔环境下,需要填写炉次号
  211. if (this.clientEnvironmentId === 2) {
  212. if (this.List[0].equipmentList.length) {
  213. if (!this.equipmentListList('heatNumber')) {
  214. return uni.showToast({
  215. title: `请填写炉次号`,
  216. icon: 'none'
  217. })
  218. }
  219. }
  220. }
  221. batchSave(this.List).then(res => {
  222. uni.redirectTo({
  223. url: `/pages/pda/feeding/index/index?feedStatus=1`,
  224. });
  225. })
  226. },
  227. equipmentListList(propertyName) {
  228. return this.List.every(f => {
  229. if (f.equipmentList && f.equipmentList.length > 0) {
  230. return f.equipmentList.every(obj => {
  231. // 检查属性存在且不为空(null, undefined, 空字符串等)
  232. return obj.extInfo.hasOwnProperty(propertyName) &&
  233. obj.extInfo[propertyName] !== null &&
  234. obj.extInfo[propertyName] !== undefined &&
  235. obj.extInfo[propertyName] !== '';
  236. })
  237. }
  238. })
  239. },
  240. checkCache(type) {
  241. uni.hideLoading();
  242. return new Promise((resolve) => {
  243. if (type == 1) {
  244. feedSaveCache(this.List).then(rr => {
  245. uni.showToast({
  246. title: `已经缓存`,
  247. icon: 'none'
  248. })
  249. })
  250. resolve(false)
  251. } else if (type == 2) {
  252. resolve(true)
  253. }
  254. })
  255. },
  256. getList() {
  257. workorderList({
  258. ids: this.idsList,
  259. taskId: this.taskId
  260. }).then(res => {
  261. this.List = res.map(m => {
  262. m.workOrderId = m.id
  263. m.instanceList = [] // 物料
  264. m.equipmentList = [] // 设备
  265. m.modelList = [] // 模具
  266. m.aridRegionList = [] // 干燥区
  267. m.packingList = [] // 包装
  268. m.palletList = [] // 舟皿
  269. m.revolvingDiskList = [] // 周转盘
  270. m.semiProductList = [] //半成品
  271. if (m.pickOutInList.length > 0) {
  272. m.pickOutInList.forEach(f => {
  273. if (f.rootCategoryLevelId == 1) {
  274. m.instanceList.push(f)
  275. } else if (f.rootCategoryLevelId == 4) {
  276. m.modelList.push(f)
  277. } else if (f.rootCategoryLevelId == 5) {
  278. m.modelList.push(f)
  279. } else if (f.rootCategoryLevelId == 11) {
  280. m.aridRegionList.push(f)
  281. } else if (f.rootCategoryLevelId == 13) {
  282. m.packingList.push(f)
  283. } else if (f.rootCategoryLevelId == 8) {
  284. m.palletList.push(f)
  285. } else if (f.rootCategoryLevelId == 26) {
  286. m.revolvingDiskList.push(f)
  287. } else if ([23, 2, 9, 28].includes(Number(f
  288. .rootCategoryLevelId))) {
  289. m.semiProductList.push(f)
  290. }
  291. })
  292. }
  293. // 处理字段
  294. m.quality == '' ? m.quality = {} : ''
  295. if (!Object.prototype.hasOwnProperty.call(m, 'product')) {
  296. m.product = '{}'
  297. }
  298. delete m.id
  299. if (this.taskId) {
  300. m.taskId = this.taskId
  301. m.taskName = this.taskName
  302. }
  303. return {
  304. ...m
  305. }
  306. })
  307. }).finally(() => {
  308. this.getCacheFn()
  309. })
  310. },
  311. handleScan(id, type) {
  312. uni.scanCode({
  313. success: (res) => {
  314. this.scanData(res.result, type, id)
  315. }
  316. })
  317. },
  318. scanData(result, type, id) {
  319. if (type == 'wordOrder') {
  320. let isFals = this.List.some(m => m.code == result)
  321. if (isFals) {
  322. uni.showToast({
  323. title: '工单已存在',
  324. icon: 'none'
  325. })
  326. return false
  327. }
  328. getByCode(result).then(res => {
  329. let _arr = this.List
  330. _arr.forEach((e, index) => {
  331. if (e.workOrderId == id && res) {
  332. _arr[index] = res
  333. }
  334. })
  335. this.List = _arr
  336. this.$forceUpdate()
  337. })
  338. }
  339. },
  340. scanIt(id) {
  341. uni.scanCode({
  342. success: (res) => {
  343. this.scanItData(res.result, id)
  344. }
  345. })
  346. },
  347. scanItData(result, id) {
  348. scanLedger(result).then(res => {
  349. let _arr = []
  350. if (res.length == 1 && res[0].rootCategoryLevelId == 4) { // 设备
  351. _arr = this.List
  352. _arr.forEach((e, index) => {
  353. if (e.workOrderId == id) {
  354. _arr[index].equipmentList = _arr[index].equipmentList.concat(res)
  355. }
  356. })
  357. this.List = _arr
  358. this.$forceUpdate()
  359. } else if (res.length >= 1 && res[0].rootCategoryLevelId == 5) { // 模具
  360. _arr = this.List
  361. _arr.forEach((e, index) => {
  362. if (e.workOrderId == id) {
  363. _arr[index].modelList = res
  364. }
  365. })
  366. this.List = _arr
  367. this.$forceUpdate()
  368. } else if (res.length >= 1 && [1].includes(Number(res[0].rootCategoryLevelId))) { // 物料
  369. _arr = this.List
  370. _arr.forEach((e, index) => {
  371. if (e.workOrderId == id) {
  372. _arr[index].instanceList = _arr[index].instanceList.concat(res)
  373. }
  374. })
  375. this.List = _arr
  376. this.$forceUpdate()
  377. } else if (res.length >= 1 && [23, 2, 9, 28].includes(Number(res[0].rootCategoryLevelId))) {
  378. _arr = this.List
  379. _arr.forEach((e, index) => {
  380. if (e.workOrderId == id) {
  381. _arr[index].semiProductList = _arr[index].semiProductList.concat(res)
  382. }
  383. })
  384. this.List = _arr
  385. this.$forceUpdate()
  386. } else if (res.length >= 1 && res[0].rootCategoryLevelId == 11) { // 干燥区
  387. _arr = this.List
  388. _arr.forEach((e, index) => {
  389. if (e.workOrderId == id) {
  390. let isFals = _arr[index].aridRegionList.some(m => m.code == res[0]
  391. .aridRegionList[0].code)
  392. if (isFals) {
  393. uni.showToast({
  394. title: '干燥区已存在',
  395. icon: 'none'
  396. })
  397. return false
  398. }
  399. let _obj = res[0].aridRegionList[0]
  400. if (_obj.status == 0) {
  401. _obj['name'] = res[0].name
  402. _obj['region'] = res[0].extInfo.region
  403. _arr[index].aridRegionList = _arr[index].aridRegionList.concat(res[0]
  404. .aridRegionList)
  405. } else {
  406. uni.showToast({
  407. title: '干燥区已占用',
  408. icon: 'none'
  409. })
  410. }
  411. }
  412. })
  413. this.List = _arr
  414. this.$forceUpdate()
  415. } else if (res.length >= 1 && res[0].rootCategoryLevelId == 7) { // 周转车
  416. _arr = this.List
  417. _arr.forEach((e, index) => {
  418. if (e.workOrderId == id) {
  419. let isFals = _arr[index].turnover.some(m => m.code == res[0].code)
  420. if (isFals) {
  421. uni.showToast({
  422. title: '周转车已存在',
  423. icon: 'none'
  424. })
  425. return false
  426. }
  427. _arr.forEach((e, index) => {
  428. if (e.workOrderId == id) {
  429. _arr[index].turnover = _arr[index].turnover.concat(res)
  430. }
  431. })
  432. this.List = _arr
  433. this.$forceUpdate()
  434. }
  435. })
  436. }
  437. })
  438. },
  439. // 全部扫一扫
  440. handlScanCode() {
  441. uni.scanCode({
  442. success: (res) => {
  443. this.scanItAllData(res.result)
  444. }
  445. })
  446. },
  447. scanItAllData(result) {
  448. scanLedger(result).then(res => {
  449. let _arr = []
  450. if (res.length == 1 && res[0].rootCategoryLevelId == 4) { // 设备
  451. _arr = this.List
  452. _arr.forEach((e, index) => {
  453. res['extInfo'].fixCode = res.fixCode
  454. e.equipmentList = e.equipmentList.concat(res)
  455. })
  456. this.List = _arr
  457. this.$forceUpdate()
  458. } else if (res.length >= 1 && res[0].rootCategoryLevelId == 5) { // 模具
  459. _arr = this.List
  460. _arr.forEach((e, index) => {
  461. e.modelList = res
  462. })
  463. this.List = _arr
  464. this.$forceUpdate()
  465. } else if (res.length >= 1 && [1].includes(Number(res[0].rootCategoryLevelId))) {
  466. _arr = this.List
  467. _arr.forEach((e, index) => {
  468. e.instanceList = e.instanceList.concat(res)
  469. })
  470. this.List = _arr
  471. this.$forceUpdate()
  472. } else if (res.length >= 1 && [23, 2, 9, 28].includes(Number(res[0].rootCategoryLevelId))) {
  473. _arr = this.List
  474. _arr.forEach((e, index) => {
  475. e.semiProductList = e.semiProductList.concat(res)
  476. })
  477. this.List = _arr
  478. this.$forceUpdate()
  479. } else if (res.length >= 1 && res[0].rootCategoryLevelId == 7) { // 周转车
  480. _arr = this.List
  481. if (_arr.length == 1) {
  482. _arr.forEach((e, index) => {
  483. e.turnover = e.turnover.concat(res)
  484. })
  485. this.List = _arr
  486. this.$forceUpdate()
  487. } else if (_arr.length > 1) {
  488. uni.showToast({
  489. title: '多个工单通过下面单个扫一扫添加',
  490. icon: 'none'
  491. })
  492. }
  493. }
  494. })
  495. },
  496. getCacheFn() {
  497. let parma = {
  498. workOrderIds: this.idsList,
  499. taskId: this.taskId,
  500. type: 2
  501. }
  502. feedGetCache(parma).then(res => {
  503. if (res.length == 0) {
  504. return false
  505. }
  506. let objList = res[0].extInfo.objList
  507. this.List.forEach(f => {
  508. objList.forEach(o => {
  509. if (f.workOrderId == o.workOrderId && f.taskId == o.taskId) {
  510. // f['instanceList'] = o.instanceList || [] // 实例
  511. f['equipmentList'] = o.equipmentList || [] // 设备
  512. f['modelList'] = o.modelList || [] // 模具
  513. f['aridRegionList'] = o.aridRegionList || [] // 干燥区
  514. f['packingList'] = o.packingList || [] // 包装
  515. f['palletList'] = o.palletList || [] //舟皿
  516. f['instanceList'] = o.instanceList || [] // 物料
  517. f['revolvingDiskList'] = o.revolvingDiskList || [] // 周转盘
  518. f['semiProductList'] = o.semiProductList || [] // 半成品
  519. f['turnover'] = o.turnover || [] // 周转车
  520. this.$forceUpdate()
  521. }
  522. })
  523. })
  524. })
  525. },
  526. removeCacheFn() {
  527. uni.showModal({
  528. title: '缓存',
  529. content: '是否清空缓存!',
  530. confirmText: '确认', //这块是确定按钮的文字
  531. success: rr => {
  532. if (rr.confirm) {
  533. let parma = {
  534. workOrderIds: this.idsList,
  535. taskId: this.taskId,
  536. type: 2
  537. }
  538. removeCache(parma).then(res => {
  539. this.getList()
  540. })
  541. }
  542. }
  543. })
  544. },
  545. handAdd(id) {
  546. const storageKey = Date.now() + "";
  547. uni.setStorageSync(storageKey, this.List || []);
  548. uni.navigateTo({
  549. url: `/pages/pda/workOrder/search/index?id=${id}&storageKey=${storageKey}&isType=feed&taskId=${this.taskId}`
  550. })
  551. },
  552. openDetails(id) {
  553. const storageKey = Date.now() + "";
  554. uni.setStorageSync(storageKey, this.List || []);
  555. let url = `/pages/pda/feeding/single?id=${id}&taskId=${this.taskId}&storageKey=${storageKey}`
  556. uni.navigateTo({
  557. url
  558. })
  559. },
  560. checkdDevice() {
  561. return new Promise((resolve) => {
  562. console.log(this.List)
  563. let isFalse = this.List.every(item => {
  564. return item.equipmentList && item.equipmentList.length > 0
  565. })
  566. if (isFalse) {
  567. resolve(true)
  568. } else {
  569. uni.showModal({
  570. title: '提示',
  571. content: '没有选择设备,是否继续?',
  572. confirmText: '确认', //这块是确定按钮的文字
  573. success: function (res) {
  574. if (res.confirm) {
  575. resolve(true)
  576. } else {
  577. resolve(false)
  578. }
  579. }
  580. })
  581. }
  582. })
  583. },
  584. },
  585. beforeDestroy() {
  586. uni.hideLoading();
  587. },
  588. }
  589. </script>
  590. <style lang="scss" scoped>
  591. .content-box {
  592. height: 100vh;
  593. overflow: hidden;
  594. display: flex;
  595. flex-direction: column;
  596. }
  597. .list_box {
  598. flex: 1;
  599. overflow: hidden;
  600. padding: 4rpx 0;
  601. .u-list {
  602. height: 100% !important;
  603. }
  604. .card_box {
  605. padding: 16rpx;
  606. }
  607. }
  608. .bottom-wrapper {
  609. width: 100%;
  610. display: flex;
  611. align-items: center;
  612. justify-content: space-around;
  613. .btn_box {
  614. width: 50%;
  615. height: 88rpx;
  616. line-height: 88rpx;
  617. background: $theme-color;
  618. text-align: center;
  619. font-size: 36rpx;
  620. font-style: normal;
  621. font-weight: 400;
  622. color: #fff;
  623. &:first-child {
  624. border-right: 2rpx solid #fff;
  625. }
  626. }
  627. }
  628. .operate_box {
  629. position: fixed;
  630. right: 0;
  631. top: 400rpx;
  632. /deep/ .u-button {
  633. margin-top: 20rpx;
  634. width: 150rpx;
  635. border-radius: 22rpx 0 0 22rpx;
  636. opacity: 0.6;
  637. font-size: 22rpx;
  638. }
  639. }
  640. .operate_box2 {
  641. display: flex;
  642. /deep/ .u-button {
  643. margin-top: 20rpx;
  644. width: 150rpx;
  645. }
  646. }
  647. .flex_btn {
  648. position: fixed;
  649. right: 0;
  650. bottom: 160rpx;
  651. width: 40rpx;
  652. height: 50rpx;
  653. line-height: 66rpx;
  654. border-radius: 22rpx 0 0 22rpx;
  655. background: $theme-color;
  656. text-align: center;
  657. font-size: 22rpx;
  658. font-style: normal;
  659. font-weight: 400;
  660. color: #fff;
  661. opacity: 0.6;
  662. .jiantou {
  663. width: 30rpx;
  664. height: 30rpx;
  665. }
  666. }
  667. .flex_btn2 {
  668. position: fixed;
  669. right: 0;
  670. bottom: 160rpx;
  671. width: 126rpx;
  672. min-height: 140rpx;
  673. line-height: 62rpx;
  674. border-radius: 22rpx 0 0 22rpx;
  675. background: $theme-color;
  676. text-align: center;
  677. font-size: 22rpx;
  678. font-style: normal;
  679. font-weight: 400;
  680. color: #fff;
  681. opacity: 0.7;
  682. .close_box {
  683. height: 50rpx;
  684. line-height: 50rpx;
  685. width: 126rpx;
  686. text-align: left;
  687. .close {
  688. width: 40rpx;
  689. height: 40rpx;
  690. padding: 6rpx 10rpx;
  691. }
  692. }
  693. }
  694. </style>