index.vue 21 KB

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