details.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944
  1. <template>
  2. <view class="content-box">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="领料" background-color="#F7F9FA"
  4. color="#404446" @clickLeft="back"></uni-nav-bar>
  5. <u-button type="success" size="small" class="u-reset-button-ii" v-if="clientEnvironmentId == 21"
  6. @click="undatePicking()" text="刷新库存"></u-button>
  7. <view class="list_box">
  8. <u-list @scrolltolower="scrolltolower">
  9. <view v-for="(item, index) in List" :key="index" class="card_box">
  10. <view class="title_box rx-bc">
  11. <view class="left rx-sc">
  12. <view class="round">{{ index + 1 }}</view>
  13. <view class="code">工单编号:{{ item.code }}</view>
  14. </view>
  15. <view class="right_box rx-ec" v-if="clientEnvironmentId !== 9">
  16. <u-button type="success" size="small" class="u-reset-button" v-if="isOutsource == 0"
  17. @click="addPicking(item.workOrderId, item)" text="添加物料"></u-button>
  18. </view>
  19. </view>
  20. <view style="display:flex;justify-items: start">
  21. <view class="select" @click="selectAll(item.bomList)" style="width: 64px;">全选/取消</view>
  22. <view class="select" @click="warehouseShowFn(item.id)" style="width: 85px;margin-left: 10px;">
  23. 一键选择仓库</view>
  24. </view>
  25. <view class="material rx-ss" v-for="(mate, idx) in item.bomList" :key="idx">
  26. <view class="left rx-ss" @click="mate.checked = !mate.checked">
  27. <view class="zdy_check rx-cc" :class="{ check_active: mate.checked }">
  28. <u-icon size="28" v-if='mate.checked' name='checkbox-mark'></u-icon>
  29. </view>
  30. </view>
  31. <view class="content_table">
  32. <view class="item">
  33. <view class="lable rx-cc">物料编码</view>
  34. <view class="content">
  35. {{ mate.categoryCode }}
  36. </view>
  37. </view>
  38. <view class="item">
  39. <view class="lable rx-cc">名称</view>
  40. <view class="content">{{ mate.categoryName }}</view>
  41. </view>
  42. <view class="item rx-sc">
  43. <view class="rx ww55 ">
  44. <view class="lable rx-cc">牌号</view>
  45. <view class="content ">{{ mate.brandNum }}</view>
  46. </view>
  47. <view class="rx ww45">
  48. <view class="lable rx-cc ww80">数量</view>
  49. <view class="content content_num">
  50. <input class="uni-input" v-model="mate.demandQuantity" type="digit"
  51. :disabled="clientEnvironmentId == 9" @input="
  52. mate.demandQuantity > mate.availableCountBase
  53. ? (mate.demandQuantity = mate.availableCountBase)
  54. : row.demandQuantity
  55. "></input>
  56. <view class="unit">{{ mate.unit }}</view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="item">
  61. <view class="lable rx-cc">计量库存数量</view>
  62. <view class="content pd4">
  63. <view class="content">{{ mate.availableCountBase }} {{ mate.unit }}</view>
  64. </view>
  65. </view>
  66. <view class="item">
  67. <view class="lable rx-cc">领料仓库</view>
  68. <view class="content pd4">
  69. <zxz-uni-data-select :localdata="warehouseList" v-model="mate.warehouseId"
  70. dataValue='id' format='{name}' dataKey="name" filterable
  71. :clear='false'></zxz-uni-data-select>
  72. </view>
  73. </view>
  74. <view class="item" v-if="clientEnvironmentId == 21">
  75. <view class="lable rx-cc">库存可用量</view>
  76. <view class="content ">{{ mate.waitOutInWeight }}</view>
  77. </view>
  78. </view>
  79. </view>
  80. <view>
  81. <instanceBom :list='item.instanceList2' :warehouseList="warehouseList"></instanceBom>
  82. <modelBom :workOrderId='item.workOrderId' :modelList='item.modelList'
  83. :warehouseList="warehouseList" :modelList2='item.modelList2' :code='item.code'
  84. @hendDel='hendDel'>
  85. </modelBom>
  86. <boatBom :palletList='item.palletList' :palletList2='item.palletList2' :code='item.code'
  87. :warehouseList="warehouseList" :resObj='item' @hendDel='hendDel'>
  88. </boatBom>
  89. <packingBom :list='item.packingList2' :warehouseList="warehouseList"></packingBom>
  90. <semiProductBom :warehouseList="warehouseList"
  91. :list="[...item.semiProductList2, ...item.productList2, ...item.junkProductList2]">
  92. </semiProductBom>
  93. <view style="height: 80rpx;"></view>
  94. <view class='flex_btn' v-if='isPick' @click="openDetails">已有领料单</view>
  95. </view>
  96. </view>
  97. <view class="out_box" v-if="isOutsource == 1">
  98. <view class="out_text" @click="getListOutsource()">重新获取委外领料单</view>
  99. </view>
  100. </u-list>
  101. </view>
  102. <u-popup :show="warehouseShow" mode="center" v-if='warehouseShow' :closeOnClickOverlay='false'>
  103. <view class="popup_list">
  104. <view class="lable rx-cc">领料仓库</view>
  105. <view class="content pd4">
  106. <zxz-uni-data-select :localdata="warehouseList" v-model="warehouseId" dataValue='id' format='{name}'
  107. dataKey="name" filterable :clear='false'></zxz-uni-data-select>
  108. </view>
  109. </view>
  110. <view class="operate_box rx-bc">
  111. <u-button size="small" class="u-reset-button" @click="warehouseShow=fasle">
  112. 取消
  113. </u-button>
  114. <u-button type="success" size="small" class="u-reset-button" @click="handOK">
  115. 确认
  116. </u-button>
  117. </view>
  118. </u-popup>
  119. <view class="bottom-wrapper">
  120. <view class="btn_box" @click="save">{{ submitText }}</view>
  121. </view>
  122. <outsourceOrder ref="outsourceRef" @outsourceEmit="outsourceFn"></outsourceOrder>
  123. </view>
  124. </template>
  125. <script>
  126. import instanceBom from './components/instanceBom.vue'
  127. import modelBom from './components/modelBom.vue'
  128. import boatBom from './components/boatBom.vue'
  129. import packingBom from './components/packingBom'
  130. import semiProductBom from './components/semiProductBom'
  131. import outsourceOrder from './components/outsourceOrder'
  132. import {
  133. znPdaPage,
  134. workorderList,
  135. listOutsourceInWarehouse,
  136. listOutsource,
  137. currentStockQuery,
  138. getInventoryTotal
  139. } from '@/api/pda/workOrder.js'
  140. import {
  141. VirtualPagination
  142. } from '@/utils/pages.js'
  143. import {
  144. batchSave,
  145. pickDetails,
  146. findVoucherList
  147. } from '@/api/pda/picking.js'
  148. import {
  149. getWarehouseList,
  150. } from '@/api/warehouseManagement'
  151. import {
  152. forIn
  153. } from 'lodash'
  154. export default {
  155. components: {
  156. instanceBom,
  157. modelBom,
  158. boatBom,
  159. packingBom,
  160. semiProductBom,
  161. outsourceOrder
  162. },
  163. data() {
  164. return {
  165. isType: true,
  166. warehouseShow: false,
  167. warehouseId: '',
  168. warehouseList: [],
  169. idsList: [],
  170. List: [],
  171. currentId: "",
  172. pagination: {},
  173. classificationList: [], //分类数据
  174. newListOne: [],
  175. taskId: null,
  176. isPick: false,
  177. isOutsource: 0,
  178. clientEnvironmentId: uni.getStorageSync("userInfo") && uni.getStorageSync("userInfo")
  179. .clientEnvironmentId, // *1 主环境-601环境 2 soll-索尔环境 3 tg-碳谷环境
  180. submitText: '提交'
  181. }
  182. },
  183. onLoad(options) {
  184. console.log(options, '1111111111');
  185. let queryArray = decodeURIComponent(options.arr);
  186. getWarehouseList().then(res => {
  187. this.warehouseList = res.data
  188. })
  189. this.idsList = JSON.parse(queryArray);
  190. this.isOutsource = Number(options.isOutsource) || 0
  191. this.taskId = options.taskId
  192. console.log(this.clientEnvironmentId, 'this.clientEnvironmentId');
  193. if (this.clientEnvironmentId == 21) {
  194. this.getZnList()
  195. } else {
  196. this.getList()
  197. }
  198. if (this.idsList.length == 1) {
  199. this.getPick()
  200. }
  201. if (this.isOutsource == 1) {
  202. this.getListOutsource()
  203. }
  204. },
  205. onShow() {
  206. uni.$off("setSelectList");
  207. uni.$on("setSelectList", (selectList, id) => {
  208. this.List.forEach(m => {
  209. if (m.workOrderId == id) {
  210. let instanceList2 = [] // 投料
  211. let modelList2 = [] // 模具
  212. let palletList2 = []
  213. let packingList2 = [] // 包装
  214. let semiProductList2 = [] //半成品
  215. let productList2 = [] // 产品
  216. let junkProductList2 = [] //废品
  217. selectList.forEach(f => {
  218. if (![5, 8, 13, 23, 9, 28].includes(f.rootCategoryLevelId)) {
  219. f.automatic = 1
  220. instanceList2 = instanceList2.concat(f)
  221. } else if (f.rootCategoryLevelId == 5) { // 模具
  222. f.automatic = 1
  223. modelList2 = modelList2.concat(f)
  224. } else if (f.rootCategoryLevelId == 8) { // 舟皿
  225. f.automatic = 1
  226. palletList2 = palletList2.concat(f)
  227. } else if (f.rootCategoryLevelId == 13) {
  228. f.automatic = 1
  229. packingList2 = packingList2.concat(f)
  230. } else if (f.rootCategoryLevelId == 23) {
  231. f.automatic = 1
  232. semiProductList2 = semiProductList2.concat(f)
  233. } else if (f.rootCategoryLevelId == 9) {
  234. f.automatic = 1
  235. productList2 = productList2.concat(f)
  236. } else if (f.rootCategoryLevelId == 28) {
  237. f.automatic = 1
  238. junkProductList2 = junkProductList2.concat(f)
  239. }
  240. })
  241. this.$set(m, 'instanceList2', instanceList2)
  242. this.$set(m, 'modelList2', modelList2)
  243. this.$set(m, 'palletList2', palletList2)
  244. this.$set(m, 'packingList2', packingList2)
  245. this.$set(m, 'semiProductList2', semiProductList2)
  246. this.$set(m, 'productList2', productList2)
  247. this.$set(m, 'junkProductList2', junkProductList2)
  248. }
  249. })
  250. });
  251. },
  252. methods: {
  253. selectAll(list) {
  254. if (Array.isArray(list) && list.length) {
  255. // let a = list.some(v=>v.checked = true)
  256. // ture 就是取消 false 就是选中
  257. if (this.isType) {
  258. list.map(d => {
  259. d.checked = false
  260. })
  261. this.isType = false;
  262. } else {
  263. list.map(d => {
  264. d.checked = true
  265. })
  266. this.isType = true;
  267. }
  268. }
  269. console.log(list, 'list');
  270. },
  271. //刷新库存
  272. async undatePicking() {
  273. uni.showLoading({
  274. title: '加载中...',
  275. });
  276. const res = await currentStockQuery(this.idsList[0]);
  277. uni.hideLoading()
  278. this.getZnList();
  279. },
  280. warehouseShowFn(tiemId) {
  281. this.warehouseShow = true
  282. this.currentId = tiemId
  283. },
  284. handOK() {
  285. let index = this.List.findIndex(item => item.id == this.currentId)
  286. // this.$set(this.List[index], 'warehouseId', this.warehouseId)
  287. console.log(this.List[index], 'this.List[index]')
  288. for (let key in this.List[index]) {
  289. if (['instanceList2', 'modelList2', 'palletList2', 'packingList2', 'semiProductList2', 'productList2',
  290. 'junkProductList2', 'bomList'
  291. ].includes(key)) {
  292. this.List[index][key].forEach((item, i) => {
  293. this.$set(this.List[index][key][i], 'warehouseId', this.warehouseId)
  294. })
  295. }
  296. }
  297. this.warehouseShow = false
  298. this.currentId = ''
  299. },
  300. scrolltolower() {
  301. let arr = this.pagination.nextPage();
  302. if (arr.length) {
  303. this.List[0].bomList = [...this.List[0].bomList, ...arr]
  304. }
  305. },
  306. save() {
  307. let _arr = []
  308. console.log(this.newList, 'm');
  309. if (this.clientEnvironmentId !== 21) {
  310. _arr = this.List.map(m => {
  311. console.log(m, 'm');
  312. if (m.bomList.length > 0) {
  313. let bomList = m.bomList.filter(f => f.checked)
  314. m['bomDetailDTOSList'] = [...bomList, ...m.modelList, ...m.palletList]
  315. }
  316. m.instanceList = [...m.instanceList2, ...m.modelList2, ...m.palletList2, ...m.packingList2,
  317. ...
  318. m.semiProductList2, ...m.productList2, ...m.junkProductList2
  319. ]
  320. m.isOutsource = this.isOutsource
  321. return {
  322. ...m
  323. }
  324. })
  325. }
  326. if (this.clientEnvironmentId == 21) {
  327. this.submitText = '领料中'
  328. findVoucherList({
  329. workOrderId: this.idsList[0]
  330. }).then(res => {
  331. // uni.navigateTo({
  332. // url: `/pages/pda/picking/index/index?pickStatus=1`,
  333. // });
  334. uni.showToast({
  335. title: "领料成功",
  336. mask: true,
  337. duration: 1500,
  338. });
  339. uni.navigateBack({
  340. delta: 1
  341. });
  342. })
  343. } else {
  344. batchSave(_arr).then(res => {
  345. uni.navigateTo({
  346. url: `/pages/pda/picking/index/index?pickStatus=1`,
  347. });
  348. })
  349. }
  350. },
  351. // 中赢保存
  352. getZnList() {
  353. znPdaPage({
  354. // ids: ,
  355. workId: this.idsList[0]
  356. }).then(res => {
  357. if (res?.length) {
  358. let List = res.map(m => {
  359. m.workOrderId = m.id
  360. let modelList = []
  361. let palletList = []
  362. // let bomList = []
  363. // m.bomDetailDTOS.forEach((f, i) => {
  364. // if (f.rootCategoryLevelId == 5) {
  365. // f.automatic = 2
  366. // modelList = modelList.concat(f)
  367. // }
  368. // if (f.rootCategoryLevelId == 8) {
  369. // f.automatic = 2
  370. // palletList = palletList.concat(f)
  371. // }
  372. // if (f.rootCategoryLevelId != 5 && f.rootCategoryLevelId != 8) {
  373. // f.automatic = 2
  374. // bomList = bomList.concat(f)
  375. // }
  376. // })
  377. m['modelList'] = modelList
  378. m['palletList'] = palletList
  379. // m['bomList'] = bomList
  380. m['modelList2'] = []
  381. m['instanceList2'] = []
  382. m['palletList2'] = []
  383. m['packingList2'] = []
  384. m['semiProductList2'] = []
  385. m['productList2'] = []
  386. m['junkProductList2'] = []
  387. delete m.id
  388. return {
  389. ...m
  390. }
  391. })
  392. this.newListOne = JSON.parse(JSON.stringify(List));
  393. this.pagination = new VirtualPagination(List[0].bomList, 10);
  394. List[0].bomList = this.pagination.getCurrentPageData();
  395. this.List = List;
  396. }
  397. })
  398. },
  399. getList() {
  400. workorderList({
  401. ids: this.idsList,
  402. taskId: this.taskId
  403. }).then(res => {
  404. console.log('领料列表', res)
  405. this.List = res.map(m => {
  406. m.workOrderId = m.id
  407. let modelList = []
  408. let palletList = []
  409. let bomList = []
  410. m.bomDetailDTOS.forEach((f, i) => {
  411. if (f.rootCategoryLevelId == 5) {
  412. f.automatic = 2
  413. modelList = modelList.concat(f)
  414. }
  415. if (f.rootCategoryLevelId == 8) {
  416. f.automatic = 2
  417. palletList = palletList.concat(f)
  418. }
  419. if (f.rootCategoryLevelId != 5 && f.rootCategoryLevelId != 8) {
  420. f.automatic = 2
  421. bomList = bomList.concat(f)
  422. }
  423. })
  424. m['modelList'] = modelList
  425. m['palletList'] = palletList
  426. m['bomList'] = bomList
  427. m['modelList2'] = []
  428. m['instanceList2'] = []
  429. m['palletList2'] = []
  430. m['packingList2'] = []
  431. m['semiProductList2'] = []
  432. m['productList2'] = []
  433. m['junkProductList2'] = []
  434. delete m.id
  435. return {
  436. ...m
  437. }
  438. })
  439. this.getInventoryTotalFn()
  440. })
  441. },
  442. //计量库存数量
  443. getInventoryTotalFn() {
  444. let ids = []
  445. this.List.map(item => {
  446. item.bomList.map(pitem => {
  447. ids.push(pitem.categoryCode)
  448. })
  449. })
  450. if (ids.length == 0) {
  451. return;
  452. }
  453. getInventoryTotal(ids).then(res => {
  454. res.map(ritem => {
  455. this.List.map(item => {
  456. item.bomList.map(pitem => {
  457. if (pitem.categoryCode == ritem.code) {
  458. pitem.availableCountBase = ritem.availableCountBase
  459. }
  460. })
  461. })
  462. })
  463. })
  464. },
  465. hendDel(type, code, list) {
  466. if (type == 'modelBom') {
  467. console.log(list.length)
  468. if (list.length == 0) {
  469. }
  470. this.List.forEach(f => {
  471. if (f.code == code) {
  472. if (list.length == 0) {
  473. f.modelList2 = []
  474. f.modelList = []
  475. return false
  476. }
  477. f.modelList2 = list.filter(t => t.automatic == 1)
  478. f.modelList = list.filter(t => t.automatic == 2)
  479. }
  480. })
  481. }
  482. if (type == 'boatBom') {
  483. this.List.forEach(f => {
  484. if (f.code == code) {
  485. if (list.length == 0) {
  486. f.palletList2 = []
  487. f.palletList = []
  488. return false
  489. }
  490. f.palletList2 = list.filter(t => t.automatic == 1)
  491. f.palletList = list.filter(t => t.automatic == 2)
  492. }
  493. })
  494. }
  495. this.$forceUpdate()
  496. },
  497. getListOutsource(list) {
  498. let param = {
  499. workOrderId: this.idsList,
  500. taskId: this.taskId
  501. }
  502. listOutsource(param).then(res => {
  503. if (res) {
  504. this.$refs.outsourceRef.open(res)
  505. } else {
  506. uni.showToast({
  507. title: '暂无委外申请单',
  508. icon: 'none'
  509. })
  510. }
  511. })
  512. },
  513. outsourceFn(list) {
  514. this.outsourceInWarehouseFn(list)
  515. },
  516. addPicking(id, item) {
  517. const storageKey = Date.now() + "";
  518. let arr = [...item.instanceList2, ...item.modelList2, ...item.palletList2, ...item.packingList2, ...item
  519. .semiProductList2, ...item.productList2, ...item.junkProductList2
  520. ]
  521. uni.setStorageSync(storageKey, arr);
  522. uni.navigateTo({
  523. url: `/pages/pda/workOrder/search/index?id=${id}&storageKey=${storageKey}&isType=pick&taskId=${this.taskId}`
  524. })
  525. },
  526. getPick() {
  527. pickDetails(this.idsList).then(res => {
  528. if (res && res.length > 0) {
  529. this.isPick = true
  530. }
  531. })
  532. },
  533. outsourceInWarehouseFn(list) {
  534. let param = {
  535. outsourceOrder: list || [],
  536. workOrderId: this.idsList[0],
  537. taskId: this.taskId
  538. }
  539. listOutsourceInWarehouse(param).then(res => {
  540. res.list.map(m => {
  541. m.isOut = 1
  542. return {
  543. ...m
  544. }
  545. })
  546. let _arr = [...this.List[0].instanceList2, ...res.list]
  547. this.$set(this.List[0], 'instanceList2', _arr)
  548. this.$forceUpdate()
  549. })
  550. },
  551. openDetails() {
  552. let url = `/pages/pda/picking/bill/index?id=${this.idsList[0]}`
  553. uni.navigateTo({
  554. url
  555. })
  556. },
  557. },
  558. beforeDestroy() {
  559. uni.hideLoading();
  560. },
  561. }
  562. </script>
  563. <style lang="scss" scoped>
  564. .select {
  565. display: flex;
  566. align-items: center;
  567. justify-content: center;
  568. padding: 5rpx 0;
  569. width: 150rpx;
  570. background-color: #157A2C;
  571. color: #fff;
  572. font-size: 24rpx;
  573. border-radius: 5rpx;
  574. }
  575. .u-reset-button-ii {
  576. position: relative;
  577. right: -251rpx;
  578. width: 200rpx;
  579. }
  580. .content-box {
  581. height: 100vh;
  582. overflow: hidden;
  583. display: flex;
  584. flex-direction: column;
  585. }
  586. .list_box {
  587. flex: 1;
  588. overflow: hidden;
  589. padding: 4rpx 0;
  590. .u-list {
  591. height: 100% !important;
  592. }
  593. .card_box {
  594. padding: 16rpx 24rpx;
  595. }
  596. .title_box {
  597. .round {
  598. width: 32rpx;
  599. height: 32rpx;
  600. line-height: 32rpx;
  601. border-radius: 50%;
  602. background: $theme-color;
  603. color: #fff;
  604. text-align: center;
  605. font-size: 20rpx;
  606. }
  607. .code {
  608. margin-left: 16rpx;
  609. font-family: PingFang SC;
  610. font-size: 28rpx;
  611. font-style: normal;
  612. font-weight: 400;
  613. color: $theme-color;
  614. }
  615. }
  616. .right_box {}
  617. .material {
  618. margin-top: 10rpx;
  619. .left {
  620. width: 40rpx;
  621. }
  622. .zdy_check {
  623. width: 30rpx;
  624. height: 30rpx;
  625. border: 2rpx solid #c8c9cc;
  626. border-radius: 4rpx;
  627. }
  628. .check_active {
  629. background: $theme-color;
  630. border: 2rpx solid $theme-color;
  631. /deep/ .u-icon__icon {
  632. color: #fff !important;
  633. }
  634. }
  635. .content_table {
  636. width: 652rpx;
  637. border: 2rpx solid $border-color;
  638. .item {
  639. display: flex;
  640. border-bottom: 2rpx solid $border-color;
  641. .lable {
  642. width: 132rpx;
  643. text-align: center;
  644. background-color: #F7F9FA;
  645. font-size: 26rpx;
  646. border-right: 2rpx solid $border-color;
  647. flex-shrink: 0;
  648. }
  649. .ww80 {
  650. width: 80rpx;
  651. }
  652. .content {
  653. width: 518rpx;
  654. min-height: 64rpx;
  655. font-size: 28rpx;
  656. line-height: 28rpx;
  657. font-style: normal;
  658. font-weight: 400;
  659. padding: 18rpx 8rpx;
  660. box-sizing: border-box;
  661. word-wrap: break-word;
  662. flex-grow: 1 !important;
  663. }
  664. .content_num {
  665. display: flex;
  666. align-items: center;
  667. padding: 0 4rpx;
  668. /deep/ .uni-input-input {
  669. border: 2rpx solid #F0F8F2;
  670. background: #F0F8F2;
  671. color: $theme-color;
  672. }
  673. .unit {
  674. width: 90rpx;
  675. text-align: center;
  676. font-size: 24rpx;
  677. color: #404446;
  678. }
  679. }
  680. .pd4 {
  681. padding: 4rpx 8rpx;
  682. }
  683. &:last-child {
  684. border-bottom: none;
  685. }
  686. }
  687. .ww55 {
  688. width: 55%;
  689. }
  690. .ww45 {
  691. width: 45%;
  692. }
  693. }
  694. }
  695. }
  696. .bottom-wrapper {
  697. .btn_box {
  698. width: 750rpx;
  699. height: 88rpx;
  700. line-height: 88rpx;
  701. background: $theme-color;
  702. text-align: center;
  703. font-size: 36rpx;
  704. font-style: normal;
  705. font-weight: 400;
  706. color: #fff;
  707. }
  708. }
  709. .flex_btn {
  710. position: fixed;
  711. right: 0;
  712. bottom: 160rpx;
  713. width: 140rpx;
  714. height: 66rpx;
  715. line-height: 66rpx;
  716. border-radius: 22rpx 0 0 22rpx;
  717. background: $theme-color;
  718. text-align: center;
  719. font-size: 22rpx;
  720. font-style: normal;
  721. font-weight: 400;
  722. color: #fff;
  723. }
  724. .out_box {
  725. margin: 20rpx;
  726. display: flex;
  727. justify-content: center;
  728. color: $theme-color;
  729. font-size: 28rpx;
  730. }
  731. .popup_list {
  732. width: 400rpx;
  733. height: 400rpx;
  734. }
  735. </style>