index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  1. <template>
  2. <view class="uni-column" style="height: 100%; background-color: #f5f5f5;">
  3. <view class="box-bg uni-row">
  4. <view class="input-view uni-row">
  5. <uni-icons class="input-uni-icon" type="search" size="18" color="#999" />
  6. <input class="nav-bar-input" type="text" v-model="keywords" placeholder="请输入批次号" />
  7. </view>
  8. <view class="search" @click="handleSearch">
  9. 搜索
  10. </view>
  11. </view>
  12. <view class="list-title uni-row">
  13. <text class="label">是否正常批次</text>
  14. <text>{{ normalStatus ? '是' : '否' }}</text>
  15. <switch class="switch" :checked="normalStatus" @change="switchChange" color="rgba(255,85,85,1)" />
  16. </view>
  17. <view class="scroll-container" style="padding-bottom: 150rpx;">
  18. <view v-if="listData.length == 0" style="color: #999;margin: 50% auto;">
  19. <text>暂无批次</text>
  20. </view>
  21. <!-- 批次列表 -->
  22. <view v-else v-for="(item, index) in listData" :key="index" class="list-item"
  23. @click="handleToreportingForWork(item)">
  24. <view class="title-container uni-row" style="justify-content: flex-start;">
  25. <view class="title uni-row">
  26. <text class="label">批次号:</text>
  27. <text class="label code">{{ item['lotCode'] }}</text>
  28. </view>
  29. <view class=" uni-row" style="margin-left: 16rpx;">
  30. <view v-if="item['status'] == 1" class="tag"><text class="label">进行中</text></view>
  31. <view v-else-if="item['status'] == 3" class="tag turnover "><text class="label">周转中</text>
  32. </view>
  33. <view v-else-if="item['status'] == 2" class="tag turnover "><text class="label">待周转</text>
  34. </view>
  35. <view v-else-if="item['status'] == 0" class="tag finished "><text class="label">未开始</text>
  36. </view>
  37. <view v-else-if="item['status'] == 4" type="default finished" class="tag finished"><text
  38. class="label">已完成</text></view>
  39. </view>
  40. </view>
  41. <view class="item-info uni-row">
  42. <text class="label">产品描述</text>
  43. <text class="label right">{{ curPlan['productDescription'] }}</text>
  44. </view>
  45. <view class="item-info uni-row">
  46. <text class="label">材质</text>
  47. <text
  48. class="label right">{{ item['furnaceNoInfo'] ? item['furnaceNoInfo'].firstTechnicalRequirement + ";" + item['furnaceNoInfo'].secondTechnicalRequirement : '-' }}</text>
  49. </view>
  50. <view class="item-info uni-row">
  51. <text class="label">箱号</text>
  52. <text class="label right">{{ item['carrierName'] ? item['carrierName'] : '-' }}</text>
  53. </view>
  54. <!-- <view class="item-info uni-row">
  55. <text class="label">总工时</text>
  56. <text class="label right">{{ item['totalWorkingHours']}}</text>
  57. </view> -->
  58. <view class="item-info uni-row">
  59. <text class="label">投入数</text>
  60. <text
  61. class="label right">{{item['processQualifiedNum'] == 0 ? item['productionQuantity'] : item['processQualifiedNum']}}</text>
  62. </view>
  63. <view class="item-info uni-row">
  64. <text class="label">上道工序</text>
  65. <text class="label right">{{ item.prevProcess ? item['prevProcess'].processAlias : '-'}}</text>
  66. </view>
  67. <view class="item-info uni-row">
  68. <text class="label">当前工序</text>
  69. <!-- <text
  70. class="label right">{{ item.currentProcess ? item.prevProcess && item['currentProcess'].processAlias == item['prevProcess'].processAlias ? '-' : item['currentProcess'].processAlias : '-'}}</text> -->
  71. <text class="label right">{{ item.currentProcess ?item['currentProcess'].processAlias : '-'}}</text>
  72. </view>
  73. <view class="item-info uni-row">
  74. <text class="label">下道工序</text>
  75. <view class="label right uni-row">{{ item.nextProcess ? item['nextProcess'].processAlias : '-' }}
  76. (<view style="color: #1684fc;" @click.stop="handleClickProcessList(item)">&nbsp;工艺列表&nbsp;
  77. </view>)
  78. </view>
  79. </view>
  80. <!-- <view class="item-info uni-row">
  81. <text class="label">设备</text>
  82. <text class="label right">{{ curPlan['equipmentName'] }}</text>
  83. </view> -->
  84. <view v-if="notPreProcess" class="item-info uni-row">
  85. <text class="label">所在区域</text>
  86. <text class="label right">{{ item['place'] ? item['place'] : '-' }}</text>
  87. </view>
  88. <view class="status-btn uni-row">
  89. <view v-if="item['status'] == 2" class=" uni-row">
  90. <button class="turnover-tag" size="mini"
  91. @click.stop="handleShowTurnoverApplication(item)">周转申请</button>
  92. <!-- <button class="reporting-tag" size="mini" @click="handleToreportingForWork">去报工</button> -->
  93. </view>
  94. <view v-else-if="item['status'] == 3" class=" uni-row">
  95. <button class="turnover-tag" size="mini" @click.stop="handleCancelTurnover(item)"
  96. style="background-color: rgba(255, 85, 85, 1);">取消周转</button>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <!-- 抽屉 -->
  102. <uni-drawer ref="showRight" mode="right" :mask-click="true">
  103. <view style="text-align: center; font-size: 48rpx; padding: 48rpx 0 24rpx 0;">工艺列表</view>
  104. <view style="font-size: 24rpx;text-align: center;color: red; margin-bottom: 16rpx;">
  105. 仅显示当前工序后面工艺
  106. </view>
  107. <scroll-view scroll-y="true" style="height: 82%;" @touchmove.stop>
  108. <view v-for="(item,index) in curProcessAfte" :key="index"
  109. style="padding: 8rpx 5% 8rpx 14%; border-top: 1px solid #cccccc">
  110. <text>{{ index + 1 }}.{{item.processAlias}}</text>
  111. </view>
  112. </scroll-view>
  113. </uni-drawer>
  114. <!-- <view v-if="bottomStatus" class="bottom uni-row">
  115. <button class="start-batch-btn" type="primary" @click="handleStartNewBatch">开始新批次</button>
  116. </view>
  117. <view v-if="!bottomStatus" class="bottom uni-row">
  118. <button class="start-batch-btn" type="primary" @click="handleScanCode">扫一扫开始新批次</button>
  119. </view> -->
  120. <view class="bottom uni-row">
  121. <button class="start-batch-btn" style="margin-right: 10rpx;" type="primary"
  122. @click="handleScanCode">扫码开始批次</button>
  123. <button class="start-batch-btn" type="primary" @click="handleSearchCode">查箱号</button>
  124. </view>
  125. <dialog-lot ref="lotDialog" @submit="handleDoIt" />
  126. <dialog-turnoverApplication ref="turnoverApplicationDialog" @reflushDaywork="handleDoTurnoverAfter" />
  127. <dialog-selectProduction ref="selectProduction"></dialog-selectProduction>
  128. </view>
  129. </template>
  130. <script setup>
  131. import {
  132. normalizeProps,
  133. reactive,
  134. onMounted,
  135. ref
  136. } from 'vue'
  137. import {
  138. onLoad,
  139. onReady,
  140. onUnload,
  141. onShow,
  142. onPullDownRefresh
  143. } from '@dcloudio/uni-app'
  144. import {
  145. getDayWorkList,
  146. showDaywork,
  147. showDayworkSave,
  148. turnoverDelete
  149. } from '@/api/business/dayWork.js'
  150. import {
  151. getAbnormalityLot
  152. } from '@/api/business/lot.js'
  153. import {
  154. carrierFinishedCheck
  155. } from '@/api/business/carrier.js'
  156. import {
  157. store
  158. } from '@/store/index.js'
  159. import {
  160. toHHmmss
  161. } from '@/utils/common.js'
  162. const turnoverApplicationDialog = ref(null)
  163. const selectProduction = ref(null)
  164. const lotDialog = ref(null)
  165. const listData = ref([])
  166. const curPlan = ref(null)
  167. const bizDayworkObj = ref({})
  168. const bottomStatus = ref(false) // 底部按钮显示
  169. const paging = ref();
  170. const reqParam = ref(null);
  171. const normalStatus = ref(true)
  172. const isLoading = ref(false);
  173. const curDayworkItem = ref({}) // 当前报工记录,回显是否显示取消周转的状态
  174. const keywords = ref(null)
  175. const tempList = ref([])
  176. const wasteRecyclingList = ref([]) //废品回用批次
  177. // 在数据中定义一个变量来控制遮罩层的显示
  178. const isMaskShow = ref(false);
  179. const notPreProcess = ref(true)
  180. const curProcessAfte = ref([])
  181. const showRight = ref(null) // 抽屉
  182. onLoad(() => {
  183. curPlan.value = store.planDetails;
  184. normalStatus.value = true;
  185. console.log(curPlan.value)
  186. //废品回用的领料部门如果是当前工段,也要可以开始新批次
  187. //查找当前计划单下的批次废品回用是当前工段
  188. getAbnormalityLot({
  189. productionPlanDetailId: store.planDetails.id,
  190. requisitionDepartmentId: store.curDeptDetails.deptId
  191. }).then(res => {
  192. wasteRecyclingList.value = res.rows
  193. console.log(wasteRecyclingList.value.length)
  194. if (store.planDetails.requisitionDepartmentId == store.curDeptDetails.deptId ||
  195. wasteRecyclingList.value.length > 0) {
  196. bottomStatus.value = true;
  197. store.isPreProcess = true;
  198. } else {
  199. bottomStatus.value = false;
  200. store.isPreProcess = false;
  201. }
  202. })
  203. console.log(wasteRecyclingList.value.length)
  204. })
  205. /**
  206. * 监听下拉刷新
  207. */
  208. onPullDownRefresh(() => {
  209. uni.stopPullDownRefresh();
  210. reflush();
  211. // normalStatus.value = true;
  212. // let reqData = {
  213. // productionPlanDetailId: store.planDetails.id,
  214. // deptId: store.curDeptDetails.deptId,
  215. // keywords: keywords.value
  216. // };
  217. // getDayWorkList(reqData).then(res => {
  218. // if (res.code == 200) {
  219. // tempList.value = res.data
  220. // if (normalStatus.value) {
  221. // listData.value = res.data.filter(item => {
  222. // return item.isWasteRecycling == 0 && item.isAmend == 0;
  223. // });
  224. // } else {
  225. // listData.value = res.data.filter(item => {
  226. // return item.isWasteRecycling == 1 || item.isAmend == 1;
  227. // })
  228. // }
  229. // for (let i = 0; i < listData.value.length; i++) {
  230. // if (listData.value[i].prevProcess) {
  231. // let sum = 0;
  232. // for (let j = 0; j < listData.value[i].dayworkItemList.length; j++) {
  233. // if (listData.value[i].dayworkItemList[j].processId == listData.value[i]
  234. // .prevProcess
  235. // .id && (listData.value[i].dayworkItemList[j].status == 2 || listData.value[
  236. // i]
  237. // .dayworkItemList[j].status == 3)) {
  238. // sum += listData.value[i].dayworkItemList[j].qualifiedNum;
  239. // }
  240. // }
  241. // listData.value[i].processQualifiedNum = sum;
  242. // }
  243. // }
  244. // }
  245. // uni.stopPullDownRefresh();
  246. // })
  247. })
  248. onShow(() => {
  249. reflush();
  250. })
  251. function reflush() {
  252. // normalStatus.value = true;
  253. init(store.planDetails.id);
  254. }
  255. function handleShowTurnoverApplication(data) {
  256. let _data = data ?? {}
  257. carrierFinishedCheck(data).then(res => {
  258. if (res.code === 200) {
  259. // 调用子组件中的方法
  260. turnoverApplicationDialog.value.open(_data)
  261. } else {
  262. uni.showToast({
  263. icon: 'none',
  264. title: res.msg
  265. })
  266. }
  267. })
  268. // .catch(err => {
  269. // uri.showToast({
  270. // icon: "fail",
  271. // title: "网络请求失败。"
  272. // })
  273. // })
  274. }
  275. function handleStartNewBatch() {
  276. store.normalStatus = normalStatus.value;
  277. // console.log(normalStatus.value)
  278. uni.navigateTo({
  279. url: "/pages/addNewBatch/index"
  280. })
  281. }
  282. function init(id) {
  283. uni.showLoading({
  284. title: '加载中'
  285. });
  286. let reqData = {
  287. productionPlanDetailId: id,
  288. deptId: store.curDeptDetails.deptId,
  289. keywords: keywords.value
  290. };
  291. // normalStatus.value = true;
  292. getDayWorkList(reqData).then(res => {
  293. if (res.code == 200) {
  294. tempList.value = res.data
  295. if (normalStatus.value) {
  296. listData.value = res.data.filter(item => {
  297. return item.isWasteRecycling == 0 && item.isAmend == 0;
  298. });
  299. } else {
  300. listData.value = res.data.filter(item => {
  301. return item.isWasteRecycling == 1 || item.isAmend == 1;
  302. })
  303. }
  304. // listData.value = res.data.filter(item => {
  305. // return item.isWasteRecycling == 0 && item.isAmend == 0;
  306. // });
  307. /* 0531 */
  308. // for (let i = 0; i < listData.value.length; i++) {
  309. // if (listData.value[i].prevProcess) {
  310. // let sum = 0;
  311. // for (let j = 0; j < listData.value[i].dayworkItemList.length; j++) {
  312. // if (listData.value[i].dayworkItemList[j].processId == listData.value[i].prevProcess
  313. // .id && (listData.value[i].dayworkItemList[j].status == 2 || listData.value[i]
  314. // .dayworkItemList[j].status == 3)) {
  315. // sum += listData.value[i].dayworkItemList[j].qualifiedNum;
  316. // }
  317. // }
  318. // listData.value[i].processQualifiedNum = sum;
  319. // }
  320. // }
  321. }
  322. uni.hideLoading();
  323. })
  324. }
  325. function handleSearch() {
  326. init(store.planDetails.id);
  327. }
  328. function handleToreportingForWork(item) {
  329. uni.$once("formBack", () => handleSearch())
  330. uni.navigateTo({
  331. url: "/pages/sorting/form",
  332. success: function(res) {
  333. // 通过eventChannel向被打开页面传送数据
  334. res.eventChannel.emit('acceptDataFromOpenerPage', {
  335. data: item
  336. })
  337. }
  338. })
  339. }
  340. function handleClickProcessList(item) {
  341. let curProcessAfterList = [];
  342. console.log(item)
  343. let nextIndex = 0;
  344. for (let i = 0; i < item.processSequence.length; i++) {
  345. if (item.nextProcess.id == item.processSequence[i].id) {
  346. nextIndex = i;
  347. }
  348. }
  349. for (let i = 0; i < item.processSequence.length; i++) {
  350. if (i >= nextIndex) {
  351. curProcessAfterList.push(item.processSequence[i]);
  352. }
  353. }
  354. if (item.status == 3) {
  355. curProcessAfterList.splice(0, 1)
  356. }
  357. console.log(curProcessAfterList)
  358. curProcessAfte.value = curProcessAfterList;
  359. showRight.value.open();
  360. }
  361. function handleSearchCode() {
  362. selectProduction.value.open(normalStatus.value);
  363. }
  364. // function switchChange(event) {
  365. // //异常批
  366. // if (event.detail.value) {
  367. // listData.value = tempList.value.filter(item => {
  368. // return item.isWasteRecycling == 1 || item.isAmend == 1;
  369. // });
  370. // normalStatus.value = 1
  371. // } else {
  372. // listData.value = tempList.value.filter(item => {
  373. // return item.isWasteRecycling == 0 && item.isAmend == 0;
  374. // });
  375. // normalStatus.value = 0
  376. // }
  377. // }
  378. function handleScanCode() {
  379. // 引入原生插件
  380. const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module");
  381. // const mpaasScanModule = null
  382. if (mpaasScanModule) {
  383. // 调用插件的 mpaasScan 方法
  384. mpaasScanModule.mpaasScan({
  385. // 扫码识别类型,参数可多选,qrCode、barCode,
  386. // 如不设置,默认识别所有扫码类型,可能有些许影响识别效率
  387. scanType: ["qrCode", "barCode"],
  388. // 是否隐藏相册,默认false不隐藏
  389. hideAlbum: false,
  390. },
  391. (ret) => {
  392. console.log(ret);
  393. let vehicleObj = JSON.parse(ret.resp_result);
  394. if (!vehicleObj.carrierId || vehicleObj.carrierId == "") {
  395. uni.showToast({
  396. icon: "none",
  397. title: "请扫载具码",
  398. duration: 1000
  399. })
  400. return;
  401. }
  402. showDaywork({
  403. carrierId: vehicleObj.carrierId,
  404. status: 7
  405. }).then(response => {
  406. if (response.code == 200) {
  407. // console.log(response)
  408. // console.log(response.data[0].productionPlanDetailId)
  409. // console.log(store.planDetails.id)
  410. if (response.data[0].deptId !== store.curDeptDetails.deptId) {
  411. uni.showToast({
  412. icon: 'none',
  413. title: '该批次不在当前工段',
  414. duration: 2000
  415. })
  416. return
  417. }
  418. if (response.data[0].productionPlanDetailId == store.planDetails.id) {
  419. // console.log(response.data)
  420. lotDialog.value.open(response.data);
  421. } else {
  422. uni.showToast({
  423. icon: 'none',
  424. title: '该批次不在此计划单内',
  425. duration: 2000
  426. })
  427. }
  428. } else {
  429. uni.showToast({
  430. icon: 'none',
  431. title: response.msg,
  432. duration: 2000
  433. })
  434. }
  435. })
  436. }
  437. );
  438. } else {
  439. // 测试时用
  440. showDaywork({
  441. carrierId: '1770342949090017283',
  442. status: 7
  443. }).then(response => {
  444. if (response.code == 200) {
  445. if (response.data[0].deptId !== store.curDeptDetails.deptId) {
  446. uni.showToast({
  447. icon: 'none',
  448. title: '该批次不在当前工段',
  449. duration: 2000
  450. })
  451. return
  452. }
  453. if (response.data[0].productionPlanDetailId == store.planDetails.id) {
  454. console.log(response.data)
  455. lotDialog.value.open(response.data);
  456. } else {
  457. uni.showToast({
  458. icon: 'none',
  459. title: '该批次不在此计划单内',
  460. duration: 2000
  461. })
  462. }
  463. } else {
  464. console.log(response)
  465. uni.showToast({
  466. icon: 'none',
  467. title: response.msg,
  468. duration: 2000
  469. })
  470. }
  471. })
  472. }
  473. }
  474. // function handleScanCode() {
  475. // uni.scanCode({
  476. // onlyFromCamera: true,
  477. // success: function (res) {
  478. // if (res.scanType !== 'QR_CODE') {
  479. // uni.showToast({
  480. // icon: 'none',
  481. // title: '二维码未识别成功',
  482. // duration: 2000
  483. // })
  484. // }
  485. // console.log('条码类型:' + res.scanType);
  486. // console.log('条码内容:' + res.result);
  487. // }
  488. // });
  489. // }
  490. function handleAddDaywork(data) {
  491. console.log(data)
  492. let reqParam = [];
  493. for (var i = 0; i < data.length; i++) {
  494. reqParam.push(data[i].daywork)
  495. }
  496. console.log(data)
  497. showDayworkSave(data).then(res => {
  498. console.log(res)
  499. init(store.planDetails.id);
  500. })
  501. }
  502. function handleDoIt(data) {
  503. handleAddDaywork(data);
  504. }
  505. function handleDoTurnoverAfter() {
  506. reflush();
  507. }
  508. function switchChange(event) {
  509. console.log(event)
  510. //异常批
  511. if (normalStatus.value) {
  512. listData.value = tempList.value.filter(item => {
  513. return item.isWasteRecycling == 1 || item.isAmend == 1;
  514. });
  515. normalStatus.value = false
  516. } else {
  517. listData.value = tempList.value.filter(item => {
  518. return item.isWasteRecycling == 0 && item.isAmend == 0;
  519. });
  520. normalStatus.value = true
  521. }
  522. console.log(listData.value)
  523. }
  524. function handleCancelTurnover(data) {
  525. turnoverDelete(data).then(res => {
  526. if (res.code == 200) {
  527. uni.showToast({
  528. icon: "success",
  529. title: "取消成功",
  530. duration: 2000
  531. })
  532. init(store.planDetails.id);
  533. } else {
  534. uni.showToast({
  535. icon: "none",
  536. title: "取消失败",
  537. duration: 2000
  538. })
  539. }
  540. })
  541. }
  542. </script>
  543. <style lang="scss">
  544. $nav-height: 60rpx;
  545. .box-bg {
  546. width: 94%;
  547. background-color: #F5F5F5;
  548. padding: 5rpx 16rpx;
  549. justify-content: space-around;
  550. align-items: center;
  551. margin: 24rpx auto 0;
  552. .input-view {
  553. width: 100%;
  554. flex: 4;
  555. background-color: #f8f8f8;
  556. height: $nav-height;
  557. border: 1rpx solid #999;
  558. border-radius: 15rpx;
  559. padding: 0 15rpx;
  560. flex-wrap: nowrap;
  561. margin: 0 10rpx 0;
  562. line-height: $nav-height;
  563. .input-uni-icon {
  564. line-height: $nav-height;
  565. }
  566. .nav-bar-input {
  567. width: 80%;
  568. height: $nav-height;
  569. line-height: $nav-height;
  570. padding: 0 5rpx;
  571. background-color: #f8f8f8;
  572. }
  573. }
  574. .search {
  575. width: 20%;
  576. text-align: center;
  577. color: #808080;
  578. }
  579. }
  580. .list-title {
  581. width: 100%;
  582. margin-top: 16rpx;
  583. height: 64rpx;
  584. line-height: 64rpx;
  585. align-items: center;
  586. margin-left: 32rpx;
  587. .label {
  588. font-size: 32rpx;
  589. margin-right: 24rpx;
  590. }
  591. .icon-gear {
  592. font-size: 56rpx;
  593. }
  594. }
  595. .switch {
  596. margin-top: -8rpx;
  597. transform: scale(0.7);
  598. }
  599. .scroll-container {
  600. width: 92%;
  601. margin: 24rpx auto 0 auto;
  602. height: calc(90% - 100rpx);
  603. overflow: auto;
  604. }
  605. .list-item {
  606. background-color: #fff;
  607. position: relative;
  608. padding: 16rpx;
  609. padding-bottom: 24rpx;
  610. margin-bottom: 24rpx;
  611. border-radius: 24rpx;
  612. .title-container {
  613. margin-top: 8rpx;
  614. margin-bottom: 16rpx;
  615. .title {
  616. height: 48rpx;
  617. align-items: center;
  618. .label {
  619. font-size: 32rpx;
  620. font-weight: bold;
  621. &.code {
  622. margin-left: 8rpx;
  623. }
  624. }
  625. }
  626. .tag {
  627. border: 1px solid #1CE5B0;
  628. background-color: #F6FFFD;
  629. padding: 8rpx;
  630. border-radius: 8rpx;
  631. .label {
  632. color: #1CE5B0;
  633. font-size: 24rpx;
  634. }
  635. &.finished {
  636. border: 1px solid #BBBBBB;
  637. background-color: #F5F5F5;
  638. .label {
  639. color: #BBBBBB;
  640. }
  641. }
  642. &.turnover {
  643. border: 1px solid #FF7901;
  644. background-color: #F6FFFD;
  645. .label {
  646. color: #FF7901;
  647. }
  648. }
  649. }
  650. }
  651. .item-info {
  652. margin-bottom: 8rpx;
  653. .label {
  654. font-size: 28rpx;
  655. width: 220rpx;
  656. color: #808080;
  657. &.right {
  658. flex: 1;
  659. color: #000000;
  660. }
  661. }
  662. }
  663. .status-btn {
  664. justify-content: flex-end;
  665. align-items: center;
  666. .turnover-tag {
  667. padding-right: 12rpx;
  668. padding-left: 12rpx;
  669. border-radius: 8rpx;
  670. border: 1rpx solid #FF7901;
  671. background-color: #FF7901;
  672. font-size: 28rpx;
  673. color: #FFFFFF;
  674. }
  675. .reporting-tag {
  676. padding-right: 12rpx;
  677. padding-left: 12rpx;
  678. border-radius: 8rpx;
  679. margin-left: 16rpx;
  680. border: 1rpx solid #1684fc;
  681. background-color: #1684fc;
  682. font-size: 28rpx;
  683. color: #FFFFFF;
  684. }
  685. }
  686. }
  687. .bottom {
  688. height: 10%;
  689. position: fixed;
  690. right: 0;
  691. bottom: 0;
  692. left: 0;
  693. height: 100rpx;
  694. border-top: 1px solid #999999;
  695. padding: 16rpx 32rpx;
  696. align-items: center;
  697. background-color: #fff;
  698. justify-content: space-evenly;
  699. .start-batch-btn {
  700. flex: 1;
  701. height: 80rpx;
  702. line-height: 80rpx;
  703. border-radius: 8rpx;
  704. color: #FFFFFF;
  705. font-size: 28rpx;
  706. }
  707. }
  708. </style>