index.vue 21 KB

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