details.vue 19 KB

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