index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. <template>
  2. <view class='container uni-column'>
  3. <view class='nav uni-row'>
  4. <view v-for="(item,index) in statusList" :key="index" :class="{'selecter':singleSelectd(item)}">
  5. <text @click='selectedStatus(item)'> {{item['name']}}</text>
  6. </view>
  7. </view>
  8. <!-- 待周转页面 -->
  9. <view class="padding-container" v-if='selectedInfo.id == 4'>
  10. <view class="scroll-container">
  11. <!-- <uni-section title="本地数据" type="line" padding style="height: calc(100vh - 100px);"> -->
  12. <!-- <uni-data-picker placeholder="请选车间与周转区" popup-title="请选择所在车间与周转区" :localdata="dataTree"
  13. v-model="classes" @change="onchange" @nodeclick="onnodeclick" @popupopened="onpopupopened"
  14. @popupclosed="onpopupclosed">
  15. </uni-data-picker> -->
  16. <view
  17. style="font-size: 30rpx;font-weight: bold; flex-direction: row; display: inline-block; line-height: 35px; height: 38px;">
  18. <uni-data-select v-model="workshopId" :localdata="dataTree" :clear="true" placeholder="请选择车间"
  19. @change="handleSelectedWorkshopChange" style="background-color: #ffffff;"></uni-data-select>
  20. <uni-data-select v-model="turnoverId" :localdata="dataChildren" :clear="true" plac
  21. placeholder="请选择周转区" @change="handleSelectedTurnoverIdChange"
  22. style="background-color: #ffffff;"></uni-data-select>
  23. </view>
  24. <!-- </uni-section> -->
  25. <view v-if="listData.length == 0" style="color: #999;margin: 50% auto;">
  26. <text>暂无待周转批次</text>
  27. </view>
  28. <view v-else v-for="(item, index) in listData" :key="index"
  29. :class="{'list-item':true,'selected':isSelected(item)}">
  30. <!-- @click="handleSelection(item)" -->
  31. <view class="title-container uni-row">
  32. <view class="title uni-row">
  33. <text class="label">{{ item['turnoverArea'] }}</text>
  34. <text class="label code">{{ item['preDeptName'] }}</text>
  35. <text class="label code" style="margin-left: 16rpx;">→</text>
  36. <text class="label code" style="margin-left: 16rpx;">{{ item['deptName'] }}</text>
  37. </view>
  38. <view class="right-info uni-row">
  39. <view class="uni-row"><text class="label right">待周转</text></view>
  40. </view>
  41. </view>
  42. <view class="item-info uni-row"> <text class="label ">批次</text>
  43. <text class="label right">{{ item['lotCode'] }}</text>
  44. </view>
  45. <view class="item-info uni-row"> <text class="label">箱数</text>
  46. <text class="label right ">{{ item['carriers'] }}</text>
  47. </view>
  48. <view class="item-info uni-row">
  49. <text class="label">数量</text>
  50. <text class="label right">{{ item['daywork'].temporaryProcessQualifiedNum }}</text>
  51. </view>
  52. <view class="item-info uni-row">
  53. <text class="label">箱号</text>
  54. <text class="label right">{{ item['carrierName']}}</text>
  55. </view>
  56. <view class="item-info uni-row">
  57. <text class="label">申请时间</text>
  58. <text class="label right">{{ item['startTime']}}</text>
  59. </view>
  60. <view class="item-info uni-row" style="align-items: center;">
  61. <text class="label">申请人</text>
  62. <text class="label right">{{ item['nickName']}}</text>
  63. <view class="uni-row">
  64. <button v-if="item['turnoverType'] == 2" size="mini" style="
  65. color: #ffffff;background-color: #1989fa;margin-right: 10rpx;"
  66. @click.stop="handleChangeDept(item)">变更工段</button>
  67. <button size="mini" @click.stop="handleClickProcessList(item)">&nbsp;工艺列表
  68. </button>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <!-- 抽屉 -->
  74. <uni-drawer ref="showRight" mode="right" :mask-click="true">
  75. <view style="text-align: center; font-size: 48rpx; padding: 48rpx 0 24rpx 0;">工艺列表</view>
  76. <view style="font-size: 24rpx;text-align: center;color: red; margin-bottom: 16rpx;">
  77. 仅显示当前工序及后面工艺
  78. </view>
  79. <scroll-view scroll-y="true" style="height: 82%;" @touchmove.stop>
  80. <view v-for="(item,index) in curProcessAfte" :key="index"
  81. style="padding: 8rpx 5% 8rpx 14%; border-top: 1px solid #cccccc">
  82. <text>{{ index + 1 }}.{{item.processAlias}}</text>
  83. </view>
  84. </scroll-view>
  85. </uni-drawer>
  86. <view class="bottom-btn-container uni-row">
  87. <button class="bottom-btn" @click="handleStartTurn">开始周转</button>
  88. </view>
  89. </view>
  90. <!-- 周转中页面 -->
  91. <view class='turnover-container' v-if='selectedInfo.id == 5'>
  92. <view class="scroll-container">
  93. <view v-if="lotList.length == 0" style="color: #999;margin: 50% auto;">
  94. <text>暂无周转中批次</text>
  95. </view>
  96. <!-- 循环周转中的数据 -->
  97. <view v-else class='item-container'>
  98. <!-- <view v-if="products.length > 0" class="turnover-title uni-row">
  99. <view class="uni-row" style="align-items: center;">
  100. <view><text class='title-color'>{{turnoverContentTitle}}箱</text></view>
  101. <view><text class="second-info">{{turnoverSecondTitle}}</text></view>
  102. </view>
  103. <view><text class="label">周转中</text></view>
  104. </view> -->
  105. <view :class="{'list-container':true,'selected':isSelected(item)}" v-for="(item,index) in lotList"
  106. @click="handleSelection(item)" :key='index'>
  107. <view class="turnover-title uni-row">
  108. <view class="uni-row" style="align-items: center;">
  109. <view><text class='title-color'>{{ item[0]['totalCarrier'] }}箱</text></view>
  110. <view><text class="second-info">目标工段: {{ item[0].deptName }}</text>
  111. </view>
  112. </view>
  113. </view>
  114. <view v-for="(lot,index) in item" :key="index" style="margin-bottom: 10rpx;">
  115. <view class="list-container-item product-description uni-row">
  116. <text class="label left-value">产品描述</text>
  117. <text class="label right-value">{{lot['productDescription']}}</text>
  118. </view>
  119. <view class="list-container-item uni-row">
  120. <text class="label left-value">目标</text>
  121. <text class="label right-value">{{item[0].preDeptName + '→' + item[0].deptName }}</text>
  122. </view>
  123. <view class="list-container-item uni-row">
  124. <text class="label left-value">批次</text>
  125. <text class="label right-value">{{lot['lotCode']}}</text>
  126. </view>
  127. <view class="list-container-item uni-row">
  128. <text class="label left-value">箱数</text>
  129. <text class="label right-value">{{lot['carrierName'].split('、').length}}</text>
  130. </view>
  131. <view class="list-container-item uni-row">
  132. <text class="label left-value">箱号</text>
  133. <text class="label right-value">{{lot['carrierName']}}</text>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. <view class='bottom-btn-container uni-row'>
  140. <button type='primary' class='bottom-btn'
  141. @click="handleConfirm('确认送达',store.itemStatus.received)">确认送达</button>
  142. <button class='bottom-btn' @click="handleConfirm('取消周转',store.itemStatus.pendingTurnover,true)"
  143. style="margin-left: 24rpx;background-color: coral;">取消周转</button>
  144. </view>
  145. </view>
  146. <!-- 已送达页面 -->
  147. <view class='turnover-container' v-if='selectedInfo.id == 7'>
  148. <view class="scroll-container">
  149. <view v-if="deliveredList.length == 0" style="color: #999;margin: 50% auto;">
  150. <text>暂无已送达批次</text>
  151. </view>
  152. <!-- 循环已送达的数据 -->
  153. <view v-else class='item-container'>
  154. <view :class="{'list-container':true,'selected':isSelectedDelivered(item)}"
  155. v-for="(item,index) in deliveredList" @click="handleSelectionDelivered(item)" :key='index'>
  156. <view class="list-container-item product-description uni-row">
  157. <text class="label left-value">周转路径</text>
  158. <text class="">{{item.preDeptName + '→' + item.deptName }}</text>
  159. </view>
  160. <view class="list-container-item product-description uni-row">
  161. <text class="label left-value">产品描述</text>
  162. <text class="label right-value">{{item['productDescription']}}</text>
  163. </view>
  164. <view class="list-container-item uni-row">
  165. <text class="label left-value">批次</text>
  166. <text class="label right-value">{{item['lotCode']}}</text>
  167. </view>
  168. <view class="list-container-item uni-row">
  169. <text class="label left-value">箱数</text>
  170. <text class="label right-value">{{item['carrierName'].split('、').length}}</text>
  171. </view>
  172. <view class="list-container-item uni-row">
  173. <text class="label left-value">箱号</text>
  174. <text class="label right-value">{{item['carrierName']}}</text>
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. <view class='bottom-btn-container uni-row'>
  180. <button type='primary' class='bottom-btn'
  181. @click="handleConfirm('取消送达',store.itemStatus.turnoveing)">取消送达</button>
  182. </view>
  183. </view>
  184. </view>
  185. <dialog-turnoverTask ref="turnoverTask"></dialog-turnoverTask>
  186. <dialog-changeTurnover ref="changeTurnoverDialog" @reflushTurnoverList="reflush()" />
  187. </template>
  188. <script setup>
  189. import {
  190. ref
  191. } from 'vue'
  192. import {
  193. onLoad,
  194. onShow
  195. } from '@dcloudio/uni-app'
  196. // import pending from './pending';
  197. // import turnover from './turnover';
  198. import {
  199. getDayWorkItemList,
  200. getItemList
  201. } from '@/api/business/dayWorkItem.js'
  202. import {
  203. isTakeStock
  204. } from '@/api/business/taksStackLot.js'
  205. import {
  206. updateDayWorkItem,
  207. updateDayWorkItemBatch,
  208. updateBatchBack
  209. } from '@/api/business/dayWorkItem.js'
  210. import {
  211. getDictInfoByType
  212. } from '@/api/dict/dict.js'
  213. import {
  214. getTreeData
  215. } from '@/api/business/workshop.js'
  216. import {
  217. store
  218. } from '../../store'
  219. const classes = ref(null)
  220. const dataTree = ref([])
  221. const dataChildren = ref([])
  222. const sum = ref(0)
  223. const pendingClass = ref({
  224. selecter: true
  225. })
  226. const turnoverClass = ref({
  227. selecter: false
  228. })
  229. const changeTurnoverDialog = ref(null)
  230. const selection = ref([])
  231. const selectedInfo = ref({})
  232. const curProcessAfte = ref([])
  233. const pendingShow = ref(true)
  234. const turnoverShow = ref(false)
  235. const listData = ref([])
  236. const products = ref([])
  237. const confirm = ref(null) // 弹窗组件
  238. const turnoverTask = ref(null) // 弹窗组件
  239. const lotList = ref([])
  240. const deliveredList = ref([])
  241. const showRight = ref(null) // 抽屉
  242. const workshopId = ref(null)
  243. const turnoverId = ref(null)
  244. const statusList = ref([{
  245. "id": 4,
  246. "name": "待周转"
  247. },
  248. {
  249. "id": 5,
  250. "name": "周转中"
  251. },
  252. // {
  253. // "id": 7,
  254. // "name": "已送达"
  255. // }
  256. ])
  257. onLoad(() => {
  258. selectedInfo.value = statusList.value[0]
  259. })
  260. onShow(() => {
  261. init();
  262. getWorkShops()
  263. })
  264. function getWorkShops() {
  265. console.log('getWorkShops')
  266. getTreeData().then(res => {
  267. console.log(res)
  268. if (res.code === 200) {
  269. dataTree.value = res.data
  270. }
  271. })
  272. }
  273. function init() {
  274. uni.showLoading({
  275. title: '加载中'
  276. })
  277. Promise.all([getItemList({
  278. status: 4,
  279. //turnoverType设置值是为了筛选掉车间内周转
  280. workshopId: workshopId.value,
  281. turnoverId: turnoverId.value,
  282. turnoverType: 1
  283. }), getItemList({
  284. status: 5,
  285. turnoverType: 1,
  286. updaterId: store.userInfo.userId
  287. }), getItemList({
  288. status: 7,
  289. turnoverType: 1,
  290. updaterId: store.userInfo.userId
  291. })])
  292. .then(([res1, res2, res3]) => {
  293. //待周转
  294. if (res1.code == 200) {
  295. listData.value = res1.rows;
  296. // 设置箱数
  297. for (var i = 0; i < listData.value.length; i++) {
  298. listData.value[i].carriers = listData.value[i].carrierName == null ? 0 : listData.value[i]
  299. .carrierName.split('、').length;
  300. }
  301. console.log("待周转任务", res1)
  302. }
  303. //周转
  304. if (res2.code == 200) {
  305. // 通过dayworkId再分组
  306. const groupedRows = res2.rows.reduce((acc, item) => {
  307. const dept = item.deptId;
  308. if (acc.hasOwnProperty(dept)) {
  309. acc[dept].push(item);
  310. } else {
  311. acc[dept] = [item];
  312. }
  313. return acc;
  314. }, {});
  315. // groupedRows 是一个对象,其键是dayworkId,值是具有相同dayworkId的对象数组
  316. // 如果需要将它转换为二维数组,您可以使用 Object.values 方法
  317. lotList.value = Object.values(groupedRows);
  318. // 设置箱数
  319. for (let i = 0; i < lotList.value.length; i++) {
  320. lotList.value[i][0].totalCarrier = 0;
  321. for (let j = 0; j < lotList.value[i].length; j++) {
  322. lotList.value[i][0].totalCarrier += lotList.value[i][j].carrierName.split('、').length;
  323. }
  324. }
  325. console.log(lotList.value)
  326. console.log(res2.rows)
  327. }
  328. if (res3.code == 200) {
  329. deliveredList.value = res3.rows;
  330. }
  331. uni.hideLoading();
  332. })
  333. }
  334. //变更工段
  335. function handleChangeDept(item) {
  336. changeTurnoverDialog.value.open(item)
  337. }
  338. function handleClickProcessList(item) {
  339. let curProcessAfterList = [];
  340. console.log("工序列表", item)
  341. let nextIndex = 0;
  342. for (let i = 0; i < item.processSequence.length; i++) {
  343. if (item.processStepNumber == item.processSequence[i].processStepNumber) {
  344. nextIndex = i;
  345. }
  346. }
  347. for (let i = 0; i < item.processSequence.length; i++) {
  348. if (i >= nextIndex) {
  349. curProcessAfterList.push(item.processSequence[i]);
  350. }
  351. }
  352. if (item.status == 3) {
  353. curProcessAfterList.splice(0, 1)
  354. }
  355. console.log(curProcessAfterList)
  356. curProcessAfte.value = curProcessAfterList;
  357. showRight.value.open();
  358. }
  359. function reflush() {
  360. // turnoverContentTitle.value = 0;
  361. lotList.value = [];
  362. init();
  363. }
  364. function handleStartTurn() {
  365. isTakeStock().then(response => {
  366. if (response.data) {
  367. uni.showToast({
  368. icon: 'none',
  369. title: '正在盘点,不能开始周转',
  370. duration: 2000
  371. })
  372. } else {
  373. // if(selection.value.length > 0){
  374. // let msg = '是否确认周转?';
  375. // confirm.value.open(msg);
  376. // }
  377. // turnoverTask.value.open(selection.value);
  378. uni.navigateTo({
  379. url: "/pages/startTurnover/index"
  380. })
  381. }
  382. })
  383. }
  384. /**
  385. * 确认后修改item方法
  386. * @param str 弹窗显示的内容
  387. * @param status 修改的状态
  388. * @param isBack 是否为回退修改
  389. */
  390. function handleConfirm(str, status, isBack = false) {
  391. if (selection.value.length > 0) {
  392. uni.showModal({
  393. title: '提示',
  394. content: `是否${str}?`,
  395. success: function(res) {
  396. if (res.confirm) {
  397. handleUpadteStatus(status, isBack);
  398. } else if (res.cancel) {
  399. }
  400. }
  401. })
  402. } else {
  403. uni.showToast({
  404. icon: 'none',
  405. title: `请选择后再点击${str}按钮`,
  406. duration: 2000
  407. })
  408. }
  409. }
  410. function handleUpadteStatus(status, isBack) {
  411. //盘点
  412. isTakeStock().then(response => {
  413. if (response.data) {
  414. uni.showToast({
  415. icon: 'none',
  416. title: '正在盘点,不能操作周转',
  417. duration: 2000
  418. })
  419. } else {
  420. // 设置周转状态
  421. for (let i = 0; i < selection.value.length; i++) {
  422. selection.value[i].status = status;
  423. }
  424. if (isBack) {
  425. updateBatchBack(selection.value).then(res => {
  426. if (res.code === 200) {
  427. uni.showToast({
  428. icon: 'success',
  429. title: '操作成功',
  430. duration: 2000
  431. });
  432. reflush();
  433. } else {
  434. uni.showToast({
  435. icon: 'none',
  436. title: '操作失败',
  437. duration: 2000
  438. });
  439. }
  440. })
  441. } else {
  442. updateDayWorkItemBatch(selection.value).then(res => {
  443. if (res.code === 200) {
  444. uni.showToast({
  445. icon: 'success',
  446. title: '操作成功',
  447. duration: 2000
  448. });
  449. reflush();
  450. } else {
  451. uni.showToast({
  452. icon: 'none',
  453. title: '操作失败',
  454. duration: 2000
  455. });
  456. }
  457. })
  458. }
  459. // 清空选中数组
  460. selection.value = [];
  461. }
  462. })
  463. }
  464. function isSelected(item) {
  465. //单选
  466. return selection.value == item;
  467. //多选
  468. // return selection.value.includes(item);
  469. }
  470. function handleSelection(item) {
  471. // 单选
  472. if (selection.value == item) {
  473. selection.value = []
  474. } else {
  475. selection.value = item;
  476. }
  477. console.log(selection.value, "selection");
  478. }
  479. function isSelectedDelivered(item) {
  480. //多选
  481. return selection.value.includes(item);
  482. }
  483. function handleSelectionDelivered(item) {
  484. //多选
  485. const buttonIndex = selection.value.findIndex(selectedItem => selectedItem === item);
  486. if (buttonIndex > -1) {
  487. selection.value.splice(buttonIndex, 1); // 取消选中
  488. } else {
  489. selection.value.push(item); // 选中
  490. }
  491. }
  492. function selectPending() {
  493. pendingClass.value['selecter'] = true;
  494. turnoverClass.value['selecter'] = false;
  495. pendingShow.value = true;
  496. turnoverShow.value = false;
  497. }
  498. function selectTurnover() {
  499. pendingClass.value['selecter'] = false;
  500. turnoverClass.value['selecter'] = true;
  501. pendingShow.value = false;
  502. turnoverShow.value = true;
  503. }
  504. function selectedStatus(item) {
  505. console.log(item)
  506. selectedInfo.value = item
  507. }
  508. function singleSelectd(item) {
  509. return selectedInfo.value == item
  510. }
  511. function onchange(e) {
  512. // console.log(e)
  513. // console.log(classes.value)
  514. if (e.detail.value.length == 0) {
  515. workshopId.value = null
  516. turnoverId.value = null
  517. } else if (e.detail.value.length == 1) {
  518. workshopId.value = classes.value
  519. turnoverId.value = null
  520. } else if (e.detail.value.length == 2) {
  521. turnoverId.value = classes.value
  522. }
  523. console.log(workshopId.value)
  524. console.log(turnoverId.value)
  525. reflush()
  526. }
  527. function onpopupopened(e) {
  528. // console.log('popupopend', e)
  529. }
  530. function onpopupclosed(e) {
  531. // console.log('onpopupclosed', e)
  532. }
  533. function onnodeclick(e) {
  534. // console.log('nodeclick', e)
  535. }
  536. function handleSelectedWorkshopChange() {
  537. const item = dataTree.value.find(e => e.value == workshopId.value)
  538. if (item != null) {
  539. dataChildren.value = item.children
  540. const currentItem = dataChildren.value.find(e => e.value == turnoverId.value)
  541. turnoverId.value = currentItem != null ? turnoverId.value : null
  542. } else {
  543. turnoverId.value = null
  544. dataChildren.value = []
  545. }
  546. reflush()
  547. }
  548. function handleSelectedTurnoverIdChange() {
  549. reflush()
  550. }
  551. </script>
  552. <style lang="scss">
  553. $navHeight: 48rpx;
  554. /* 导航栏样式 */
  555. .container {
  556. // height: calc(100% - $navHeight);
  557. height: 1500rpx;
  558. position: relative;
  559. top: $navHeight;
  560. background-color: #f5f5f5;
  561. }
  562. .selected {
  563. border: 1px solid #1684fc;
  564. border-radius: 8rpx;
  565. padding: 8rpx;
  566. }
  567. .nav {
  568. justify-content: space-around;
  569. // position: fixed;
  570. // top:0;
  571. width: 100%;
  572. height: $navHeight;
  573. border-bottom: 3rpx solid rgba(228, 231, 237, 1);
  574. background-color: rgba(255, 255, 255, 1);
  575. .img {
  576. width: 24rpx;
  577. height: 24rpx;
  578. position: fixed;
  579. right: 10rpx;
  580. top: 0;
  581. }
  582. }
  583. .selecter {
  584. height: 48rpx;
  585. color: rgba(25, 137, 250, 1);
  586. border-bottom: 3rpx solid rgba(25, 137, 250, 1);
  587. }
  588. /* 待周转样式 */
  589. .padding-container,
  590. .turnover-container {
  591. position: absolute;
  592. top: 56rpx;
  593. right: 0;
  594. bottom: 0rpx;
  595. left: 0;
  596. background-color: #f5f5f5;
  597. .scroll-container {
  598. position: absolute;
  599. top: 24rpx;
  600. right: 0;
  601. bottom: 136rpx;
  602. left: 0;
  603. }
  604. .bottom-btn-container {
  605. height: 10%;
  606. position: fixed;
  607. right: 0;
  608. bottom: 0;
  609. left: 0;
  610. height: 80rpx;
  611. border-top: 1px solid #999999;
  612. padding: 16rpx 32rpx;
  613. align-items: center;
  614. background-color: #fff;
  615. .bottom-btn {
  616. // padding-left: 0;
  617. // padding-top: 4rpx;
  618. flex: 1;
  619. font-size: 28rpx;
  620. color: #FFFFFF;
  621. background-color: #1684fc;
  622. }
  623. }
  624. }
  625. .padding-container {
  626. .scroll-container {
  627. max-height: 90%;
  628. overflow: auto;
  629. .list-item {
  630. background-color: #fff;
  631. padding: 0 24rpx;
  632. padding-bottom: 24rpx;
  633. margin: 0 24rpx;
  634. margin-bottom: 24rpx;
  635. border-radius: 8rpx;
  636. .title-container {
  637. justify-content: space-between;
  638. margin-top: 8rpx;
  639. margin-bottom: 16rpx;
  640. .title {
  641. height: 48rpx;
  642. align-items: center;
  643. .label {
  644. color: #1684fc;
  645. font-size: 32rpx;
  646. font-weight: bold;
  647. &.code {
  648. color: #000000;
  649. margin-left: 32rpx;
  650. }
  651. }
  652. }
  653. }
  654. .item-info {
  655. margin-bottom: 16rpx;
  656. .label {
  657. font-size: 28rpx;
  658. width: 160rpx;
  659. color: #808080;
  660. &.right {
  661. flex: 1;
  662. color: #000000;
  663. }
  664. }
  665. }
  666. .right-info {
  667. justify-content: flex-end;
  668. margin-top: 2rpx;
  669. .label {
  670. font-size: 28rpx;
  671. color: #808080;
  672. }
  673. }
  674. }
  675. }
  676. }
  677. /* 周转中样式 */
  678. .turnover-container {
  679. .scroll-container {
  680. height: 90%;
  681. overflow: scroll;
  682. .item-container {
  683. // height: 90%;
  684. // padding: 8rpx 0 32rpx 0;
  685. margin: 0 24rpx;
  686. margin-bottom: 24rpx;
  687. background-color: rgba(255, 255, 255, 1);
  688. border-radius: 8rpx;
  689. .turnover-title {
  690. width: auto;
  691. justify-content: space-between;
  692. margin: 16rpx;
  693. font-weight: bold;
  694. .label {
  695. font-size: 28rpx;
  696. color: #808080;
  697. }
  698. }
  699. .list-container {
  700. // margin: 16rpx 24rpx 16rpx 24rpx;
  701. width: calc(100% - 48rpx);
  702. margin: 16rpx auto;
  703. .list-container-item {
  704. border-bottom: 1px solid #999999;
  705. padding: 12rpx 8rpx;
  706. background-color: #EEF0F5;
  707. &.product-description {
  708. background-color: #ECF5FF;
  709. }
  710. .label {
  711. font-size: 28rpx;
  712. color: #999999;
  713. &.left-value {
  714. width: 152rpx;
  715. }
  716. &.right-value {
  717. flex: 1;
  718. color: #000000;
  719. }
  720. }
  721. }
  722. }
  723. .title-color {
  724. color: rgba(22, 132, 252, 1);
  725. font-size: 36rpx;
  726. font-weight: bold;
  727. }
  728. .second-info {
  729. font-size: 36rpx;
  730. font-weight: bold;
  731. margin-left: 32rpx;
  732. }
  733. .turnover-info {
  734. color: rgba(128, 128, 128, 1);
  735. position: absolute;
  736. top: 10rpx;
  737. right: 40rpx;
  738. font-size: 30rpx;
  739. }
  740. }
  741. }
  742. }
  743. </style>