index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  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. workshopId.value = dataTree.value[0].value
  271. dataChildren.value = dataTree.value[0].children
  272. turnoverId.value = dataChildren.value.length > 0 ? dataChildren.value[0].value : null
  273. handleSelectedTurnoverIdChange()
  274. }
  275. })
  276. }
  277. function init() {
  278. uni.showLoading({
  279. title: '加载中'
  280. })
  281. Promise.all([getItemList({
  282. status: 4,
  283. //turnoverType设置值是为了筛选掉车间内周转
  284. workshopId: workshopId.value,
  285. turnoverId: turnoverId.value,
  286. turnoverType: 1
  287. }), getItemList({
  288. status: 5,
  289. turnoverType: 1,
  290. updaterId: store.userInfo.userId
  291. }), getItemList({
  292. status: 7,
  293. turnoverType: 1,
  294. updaterId: store.userInfo.userId
  295. })])
  296. .then(([res1, res2, res3]) => {
  297. //待周转
  298. if (res1.code == 200) {
  299. listData.value = res1.rows;
  300. // 设置箱数
  301. for (var i = 0; i < listData.value.length; i++) {
  302. listData.value[i].carriers = listData.value[i].carrierName == null ? 0 : listData.value[i]
  303. .carrierName.split('、').length;
  304. }
  305. console.log("待周转任务", res1)
  306. }
  307. //周转
  308. if (res2.code == 200) {
  309. // 通过dayworkId再分组
  310. const groupedRows = res2.rows.reduce((acc, item) => {
  311. const dept = item.deptId;
  312. if (acc.hasOwnProperty(dept)) {
  313. acc[dept].push(item);
  314. } else {
  315. acc[dept] = [item];
  316. }
  317. return acc;
  318. }, {});
  319. // groupedRows 是一个对象,其键是dayworkId,值是具有相同dayworkId的对象数组
  320. // 如果需要将它转换为二维数组,您可以使用 Object.values 方法
  321. lotList.value = Object.values(groupedRows);
  322. // 设置箱数
  323. for (let i = 0; i < lotList.value.length; i++) {
  324. lotList.value[i][0].totalCarrier = 0;
  325. for (let j = 0; j < lotList.value[i].length; j++) {
  326. lotList.value[i][0].totalCarrier += lotList.value[i][j].carrierName.split('、').length;
  327. }
  328. }
  329. console.log(lotList.value)
  330. console.log(res2.rows)
  331. }
  332. if (res3.code == 200) {
  333. deliveredList.value = res3.rows;
  334. }
  335. uni.hideLoading();
  336. })
  337. }
  338. //变更工段
  339. function handleChangeDept(item) {
  340. changeTurnoverDialog.value.open(item)
  341. }
  342. function handleClickProcessList(item) {
  343. let curProcessAfterList = [];
  344. console.log("工序列表", item)
  345. let nextIndex = 0;
  346. for (let i = 0; i < item.processSequence.length; i++) {
  347. if (item.processStepNumber == item.processSequence[i].processStepNumber) {
  348. nextIndex = i;
  349. }
  350. }
  351. for (let i = 0; i < item.processSequence.length; i++) {
  352. if (i >= nextIndex) {
  353. curProcessAfterList.push(item.processSequence[i]);
  354. }
  355. }
  356. if (item.status == 3) {
  357. curProcessAfterList.splice(0, 1)
  358. }
  359. console.log(curProcessAfterList)
  360. curProcessAfte.value = curProcessAfterList;
  361. showRight.value.open();
  362. }
  363. function reflush() {
  364. // turnoverContentTitle.value = 0;
  365. lotList.value = [];
  366. init();
  367. }
  368. function handleStartTurn() {
  369. isTakeStock().then(response => {
  370. if (response.data) {
  371. uni.showToast({
  372. icon: 'none',
  373. title: '正在盘点,不能开始周转',
  374. duration: 2000
  375. })
  376. } else {
  377. // if(selection.value.length > 0){
  378. // let msg = '是否确认周转?';
  379. // confirm.value.open(msg);
  380. // }
  381. // turnoverTask.value.open(selection.value);
  382. uni.navigateTo({
  383. url: "/pages/startTurnover/index"
  384. })
  385. }
  386. })
  387. }
  388. /**
  389. * 确认后修改item方法
  390. * @param str 弹窗显示的内容
  391. * @param status 修改的状态
  392. * @param isBack 是否为回退修改
  393. */
  394. function handleConfirm(str, status, isBack = false) {
  395. if (selection.value.length > 0) {
  396. uni.showModal({
  397. title: '提示',
  398. content: `是否${str}?`,
  399. success: function(res) {
  400. if (res.confirm) {
  401. handleUpadteStatus(status, isBack);
  402. } else if (res.cancel) {
  403. }
  404. }
  405. })
  406. } else {
  407. uni.showToast({
  408. icon: 'none',
  409. title: `请选择后再点击${str}按钮`,
  410. duration: 2000
  411. })
  412. }
  413. }
  414. function handleUpadteStatus(status, isBack) {
  415. //盘点
  416. isTakeStock().then(response => {
  417. if (response.data) {
  418. uni.showToast({
  419. icon: 'none',
  420. title: '正在盘点,不能操作周转',
  421. duration: 2000
  422. })
  423. } else {
  424. // 设置周转状态
  425. for (let i = 0; i < selection.value.length; i++) {
  426. selection.value[i].status = status;
  427. }
  428. if (isBack) {
  429. updateBatchBack(selection.value).then(res => {
  430. if (res.code === 200) {
  431. uni.showToast({
  432. icon: 'success',
  433. title: '操作成功',
  434. duration: 2000
  435. });
  436. reflush();
  437. } else {
  438. uni.showToast({
  439. icon: 'none',
  440. title: '操作失败',
  441. duration: 2000
  442. });
  443. }
  444. })
  445. } else {
  446. updateDayWorkItemBatch(selection.value).then(res => {
  447. if (res.code === 200) {
  448. uni.showToast({
  449. icon: 'success',
  450. title: '操作成功',
  451. duration: 2000
  452. });
  453. reflush();
  454. } else {
  455. uni.showToast({
  456. icon: 'none',
  457. title: '操作失败',
  458. duration: 2000
  459. });
  460. }
  461. })
  462. }
  463. // 清空选中数组
  464. selection.value = [];
  465. }
  466. })
  467. }
  468. function isSelected(item) {
  469. //单选
  470. return selection.value == item;
  471. //多选
  472. // return selection.value.includes(item);
  473. }
  474. function handleSelection(item) {
  475. // 单选
  476. if (selection.value == item) {
  477. selection.value = []
  478. } else {
  479. selection.value = item;
  480. }
  481. console.log(selection.value, "selection");
  482. }
  483. function isSelectedDelivered(item) {
  484. //多选
  485. return selection.value.includes(item);
  486. }
  487. function handleSelectionDelivered(item) {
  488. //多选
  489. const buttonIndex = selection.value.findIndex(selectedItem => selectedItem === item);
  490. if (buttonIndex > -1) {
  491. selection.value.splice(buttonIndex, 1); // 取消选中
  492. } else {
  493. selection.value.push(item); // 选中
  494. }
  495. }
  496. function selectPending() {
  497. pendingClass.value['selecter'] = true;
  498. turnoverClass.value['selecter'] = false;
  499. pendingShow.value = true;
  500. turnoverShow.value = false;
  501. }
  502. function selectTurnover() {
  503. pendingClass.value['selecter'] = false;
  504. turnoverClass.value['selecter'] = true;
  505. pendingShow.value = false;
  506. turnoverShow.value = true;
  507. }
  508. function selectedStatus(item) {
  509. console.log(item)
  510. selectedInfo.value = item
  511. }
  512. function singleSelectd(item) {
  513. return selectedInfo.value == item
  514. }
  515. function onchange(e) {
  516. // console.log(e)
  517. // console.log(classes.value)
  518. if (e.detail.value.length == 0) {
  519. workshopId.value = null
  520. turnoverId.value = null
  521. } else if (e.detail.value.length == 1) {
  522. workshopId.value = classes.value
  523. turnoverId.value = null
  524. } else if (e.detail.value.length == 2) {
  525. turnoverId.value = classes.value
  526. }
  527. console.log(workshopId.value)
  528. console.log(turnoverId.value)
  529. reflush()
  530. }
  531. function onpopupopened(e) {
  532. // console.log('popupopend', e)
  533. }
  534. function onpopupclosed(e) {
  535. // console.log('onpopupclosed', e)
  536. }
  537. function onnodeclick(e) {
  538. // console.log('nodeclick', e)
  539. }
  540. function handleSelectedWorkshopChange() {
  541. const item = dataTree.value.find(e => e.value == workshopId.value)
  542. if (item != null) {
  543. dataChildren.value = item.children
  544. const currentItem = dataChildren.value.find(e => e.value == turnoverId.value)
  545. turnoverId.value = currentItem != null ? turnoverId.value : null
  546. } else {
  547. turnoverId.value = null
  548. dataChildren.value = []
  549. }
  550. reflush()
  551. }
  552. function handleSelectedTurnoverIdChange() {
  553. reflush()
  554. }
  555. </script>
  556. <style lang="scss">
  557. $navHeight: 48rpx;
  558. /* 导航栏样式 */
  559. .container {
  560. // height: calc(100% - $navHeight);
  561. height: 1500rpx;
  562. position: relative;
  563. top: $navHeight;
  564. background-color: #f5f5f5;
  565. }
  566. .selected {
  567. border: 1px solid #1684fc;
  568. border-radius: 8rpx;
  569. padding: 8rpx;
  570. }
  571. .nav {
  572. justify-content: space-around;
  573. // position: fixed;
  574. // top:0;
  575. width: 100%;
  576. height: $navHeight;
  577. border-bottom: 3rpx solid rgba(228, 231, 237, 1);
  578. background-color: rgba(255, 255, 255, 1);
  579. .img {
  580. width: 24rpx;
  581. height: 24rpx;
  582. position: fixed;
  583. right: 10rpx;
  584. top: 0;
  585. }
  586. }
  587. .selecter {
  588. height: 48rpx;
  589. color: rgba(25, 137, 250, 1);
  590. border-bottom: 3rpx solid rgba(25, 137, 250, 1);
  591. }
  592. /* 待周转样式 */
  593. .padding-container,
  594. .turnover-container {
  595. position: absolute;
  596. top: 56rpx;
  597. right: 0;
  598. bottom: 0rpx;
  599. left: 0;
  600. background-color: #f5f5f5;
  601. .scroll-container {
  602. position: absolute;
  603. top: 24rpx;
  604. right: 0;
  605. bottom: 136rpx;
  606. left: 0;
  607. }
  608. .bottom-btn-container {
  609. height: 10%;
  610. position: fixed;
  611. right: 0;
  612. bottom: 0;
  613. left: 0;
  614. height: 80rpx;
  615. border-top: 1px solid #999999;
  616. padding: 16rpx 32rpx;
  617. align-items: center;
  618. background-color: #fff;
  619. .bottom-btn {
  620. // padding-left: 0;
  621. // padding-top: 4rpx;
  622. flex: 1;
  623. font-size: 28rpx;
  624. color: #FFFFFF;
  625. background-color: #1684fc;
  626. }
  627. }
  628. }
  629. .padding-container {
  630. .scroll-container {
  631. max-height: 90%;
  632. overflow: auto;
  633. .list-item {
  634. background-color: #fff;
  635. padding: 0 24rpx;
  636. padding-bottom: 24rpx;
  637. margin: 0 24rpx;
  638. margin-bottom: 24rpx;
  639. border-radius: 8rpx;
  640. .title-container {
  641. justify-content: space-between;
  642. margin-top: 8rpx;
  643. margin-bottom: 16rpx;
  644. .title {
  645. height: 48rpx;
  646. align-items: center;
  647. .label {
  648. color: #1684fc;
  649. font-size: 32rpx;
  650. font-weight: bold;
  651. &.code {
  652. color: #000000;
  653. margin-left: 32rpx;
  654. }
  655. }
  656. }
  657. }
  658. .item-info {
  659. margin-bottom: 16rpx;
  660. .label {
  661. font-size: 28rpx;
  662. width: 160rpx;
  663. color: #808080;
  664. &.right {
  665. flex: 1;
  666. color: #000000;
  667. }
  668. }
  669. }
  670. .right-info {
  671. justify-content: flex-end;
  672. margin-top: 2rpx;
  673. .label {
  674. font-size: 28rpx;
  675. color: #808080;
  676. }
  677. }
  678. }
  679. }
  680. }
  681. /* 周转中样式 */
  682. .turnover-container {
  683. .scroll-container {
  684. height: 90%;
  685. overflow: scroll;
  686. .item-container {
  687. // height: 90%;
  688. // padding: 8rpx 0 32rpx 0;
  689. margin: 0 24rpx;
  690. margin-bottom: 24rpx;
  691. background-color: rgba(255, 255, 255, 1);
  692. border-radius: 8rpx;
  693. .turnover-title {
  694. width: auto;
  695. justify-content: space-between;
  696. margin: 16rpx;
  697. font-weight: bold;
  698. .label {
  699. font-size: 28rpx;
  700. color: #808080;
  701. }
  702. }
  703. .list-container {
  704. // margin: 16rpx 24rpx 16rpx 24rpx;
  705. width: calc(100% - 48rpx);
  706. margin: 16rpx auto;
  707. .list-container-item {
  708. border-bottom: 1px solid #999999;
  709. padding: 12rpx 8rpx;
  710. background-color: #EEF0F5;
  711. &.product-description {
  712. background-color: #ECF5FF;
  713. }
  714. .label {
  715. font-size: 28rpx;
  716. color: #999999;
  717. &.left-value {
  718. width: 152rpx;
  719. }
  720. &.right-value {
  721. flex: 1;
  722. color: #000000;
  723. }
  724. }
  725. }
  726. }
  727. .title-color {
  728. color: rgba(22, 132, 252, 1);
  729. font-size: 36rpx;
  730. font-weight: bold;
  731. }
  732. .second-info {
  733. font-size: 36rpx;
  734. font-weight: bold;
  735. margin-left: 32rpx;
  736. }
  737. .turnover-info {
  738. color: rgba(128, 128, 128, 1);
  739. position: absolute;
  740. top: 10rpx;
  741. right: 40rpx;
  742. font-size: 30rpx;
  743. }
  744. }
  745. }
  746. }
  747. </style>