123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895 |
- <template>
- <view v-if="isMaskShow" class="mask">
- </view>
- <view class="uni-column" style="height: 100%; background-color: #f5f5f5;">
- <view class="box-bg uni-row">
- <view class="input-view uni-row">
- <uni-icons class="input-uni-icon" type="search" size="18" color="#999" />
- <input class="nav-bar-input" type="text" v-model="keywords" placeholder="请输入批次号/箱号" />
- </view>
- <view class="search" @click="handleSearch">
- 搜索
- </view>
- </view>
- <view class="list-title uni-row">
- <!-- <div class="list-title uni-row"> -->
- <text class="label">是否正常批次</text>
- <text>{{ normalStatus ? '是' : '否' }}</text>
- <switch class="switch" :checked="normalStatus" @change="switchChange" color="rgba(103, 195, 55, 1.0)" />
- <!-- <text>{{ }}</text> -->
- <!-- </div> -->
- <!-- <text class="label">是否正常批次</text><text>是</text>
- <switch class="switch" @change="switchChange" color="rgba(255,85,85,1)" />
- <text>否</text> -->
- </view>
- <view class="scroll-container" style="padding-bottom: 150rpx">
- <view v-if="listData.length == 0" style="color: #999;margin: 50% auto;">
- <text>暂无批次</text>
- </view>
- <!-- 批次列表 -->
- <view v-else v-for="(item, index) in listData" :key="index" class="list-item"
- @click="handleToreportingForWork(item)">
- <view class="title-container uni-row" style="justify-content: flex-start;">
- <view class="title uni-row">
- <text class="label">批次号:</text>
- <text class="label code">{{ item['lotCode'] }}</text>
- </view>
- <view class=" uni-row" style="margin-left: 16rpx;">
- <view v-if="item['status'] == 1" class="tag"><text class="label">进行中</text></view>
- <view v-else-if="item['status'] == 3" class="tag turnover "><text class="label">待领取</text>
- </view>
- <view v-else-if="item['status'] == 2" class="tag turnover "><text class="label">待周转</text>
- </view>
- <view v-else-if="item['status'] == 0" class="tag finished "><text class="label">未开始</text>
- </view>
- <view v-else-if="item['status'] == 4" type="default finished" class="tag finished"><text
- class="label">已完成</text></view>
- </view>
- </view>
- <view class="item-info uni-row">
- <text class="label">产品描述</text>
- <text class="label right">{{ curPlan['productDescription'] }}</text>
- </view>
- <view class="item-info uni-row">
- <text class="label">材质</text>
- <text
- class="label right">{{ item['furnaceNoInfo'] && item['furnaceNoInfo'].firstTechnicalRequirement != '' ? item['furnaceNoInfo'].firstTechnicalRequirement + ";" + item['furnaceNoInfo'].secondTechnicalRequirement : '-' }}</text>
- </view>
- <view class="item-info uni-row">
- <text class="label">箱号</text>
- <text class="label right">{{ item['carrierName'] ? item['carrierName'] : '-' }}</text>
- </view>
- <!-- <view class="item-info uni-row">
- <text class="label">总工时</text>
- <text class="label right">{{ item['totalWorkingHours']}}</text>
- </view> -->
- <view class="item-info uni-row">
- <text class="label">投入数</text>
- <text
- class="label right">{{ item.prevProcess == null ? item['productionQuantity'] : item['processQualifiedNum']}}</text>
- </view>
- <view class="item-info uni-row">
- <text class="label">已完成工序</text>
- <text class="label right">{{ item.prevProcess ? item['prevProcess'].processAlias : '-'}}</text>
- </view>
- <view class="item-info uni-row">
- <text class="label">待加工工序</text>
- <!-- <text
- class="label right">{{ item.currentProcess ? item.prevProcess && item['currentProcess'].processAlias == item['prevProcess'].processAlias ? '-' : item['currentProcess'].processAlias : '-'}}</text> -->
- <text
- class="label right">{{ item.currentProcess ? item['currentProcess'].processAlias : '-'}}</text>
- </view>
- <view class="item-info uni-row">
- <text class="label">下道工序</text>
- <view class="label right uni-row">
- {{ item.nextProcess ? item['nextProcess'].processAlias : '-' }}
- (<view style="color: #1684fc;" @click.stop="handleClickProcessList(item)"> 工艺列表
- </view>)
- </view>
- </view>
- <!-- <view class="item-info uni-row">
- <text class="label">设备</text>
- <text class="label right">{{ curPlan['equipmentName'] }}</text>
- </view> -->
- <view v-if="notPreProcess" class="item-info uni-row">
- <text class="label">所在区域</text>
- <text class="label right">{{ getPlaceText(item) }}</text>
- </view>
- <view
- v-if="item['dayworkItemList'] && item['dayworkItemList'].length >0 && item['dayworkItemList'][0].status >3"
- class="item-info uni-row">
- <text class="label">目标工段</text>
- <text
- class="label right">{{ item['dayworkItemList'] && item['dayworkItemList'].length >0 && item['dayworkItemList'][0].status >3 ? item['dayworkItemList'][0].deptName : '-' }}</text>
- </view>
- <view
- v-if="item['dayworkItemList'] && item['dayworkItemList'].length >0 && item['dayworkItemList'][0].status >3"
- class="item-info uni-row">
- <text class="label">目标车间</text>
- <text class="label right">{{ item['workshopName']}}</text>
- </view>
- <view v-if="item.protemResourceGroupDetailList && item.protemResourceGroupDetailList.length>0"
- class="item-info uni-row">
- <text class="label">邀请者</text>
- <text
- class="label right">{{ item['protemResourceGroupDetailList'] && item['protemResourceGroupDetailList'].length>0 ? item['protemResourceGroupDetailList'][0].protemCreatorName : '-' }}</text>
- </view>
- <view v-if="item.protemResourceGroupDetailList&& item.protemResourceGroupDetailList.length>0"
- class="item-info uni-row">
- <text class="label">已完成数量</text>
- <text class="label right">{{ item['totalQuantity'] ? item['totalQuantity'] : 0 }}</text>
- </view>
- <view class="status-btn uni-row">
- <view v-if="item['status'] == 2 && !item['hasFinishOutsource']" class=" uni-row">
- <button class="turnover-tag" size="mini"
- @click.stop="handleShowTurnoverApplication(item)">周转申请</button>
- <!-- <button class="reporting-tag" size="mini" @click="handleToreportingForWork">去报工</button> -->
- </view>
- <view v-else-if="item['status'] == 3" class=" uni-row">
- <button class="turnover-tag" size="mini" @click.stop="handleCancelTurnover(item)"
- style="background-color: rgba(255, 85, 85, 1);">取消周转</button>
- </view>
- </view>
- </view>
- </view>
- <!-- 抽屉 -->
- <uni-drawer ref="showRight" mode="right" :mask-click="true">
- <view style="text-align: center; font-size: 48rpx; padding: 48rpx 0 24rpx 0;">工艺列表</view>
- <view style="font-size: 24rpx;text-align: center;color: red; margin-bottom: 16rpx;">
- 仅显示当前工序后面工艺
- </view>
- <scroll-view scroll-y="true" style="height: 82%;" @touchmove.stop>
- <view v-for="(item,index) in curProcessAfte" :key="index"
- style="padding: 8rpx 5% 8rpx 14%; border-top: 1px solid #cccccc">
- <text>{{ index + 1 }}.{{item.processAlias}}</text>
- </view>
- </scroll-view>
- <view><button v-if="!editStatus" class="view-end-btn" type="primary"
- @click="handleOpenDrawing">查看本工序图纸</button></view>
- </uni-drawer>
- <!-- <view v-if="bottomStatus" class="bottom uni-row">
- <button class="start-batch-btn" type="primary" @click="handleStartNewBatch">开始新批次</button>
- </view>
- <view v-if="!bottomStatus" class="bottom uni-row">
- <button class="start-batch-btn" type="primary" @click="handleScanCode">扫一扫开始新批次</button>
- </view> -->
- <view class="bottom uni-row">
- <!-- <button v-if="bottomStatus" class="start-batch-btn" style="margin-right: 10rpx;" type="primary"
- @click="handleStartNewBatch">开始新批次</button> -->
- <button class="start-batch-btn" style="margin-right: 10rpx;" type="primary"
- @click="handleScanCode">扫码开始批次</button>
- </view>
- <dialog-outsourceLot ref="outsourceLotDialog" @submit="handleDoIt" />
- <dialog-turnoverInnerApplication ref="turnoverApplicationDialog" @reflushDaywork="handleDoTurnoverAfter" />
- </view>
- </template>
- <script setup>
- import {
- normalizeProps,
- reactive,
- onMounted,
- ref
- } from 'vue'
- import {
- onLoad,
- onReady,
- onUnload,
- onShow
- } from '@dcloudio/uni-app'
- import {
- getDayWorkInnerList,
- showDaywork,
- showDayworkInnerSave,
- turnoverDelete
- } from '@/api/business/dayWork.js'
- import {
- isTakeStock
- } from '@/api/business/taksStackLot.js'
- import {
- getAbnormalityLot
- } from '@/api/business/lot.js'
- import {
- carrierFinishedCheck
- } from '@/api/business/carrier.js'
- import {
- store
- } from '@/store/index.js'
- import {
- toHHmmss
- } from '@/utils/common.js'
- import {
- onPullDownRefresh
- } from "@dcloudio/uni-app"
- const turnoverApplicationDialog = ref(null)
- const outsourceLotDialog = ref(null)
- const listData = ref([])
- const curPlan = ref(null)
- const bizDayworkObj = ref({})
- const bottomStatus = ref(false) // 底部按钮显示
- const paging = ref();
- const reqParam = ref(null);
- const normalStatus = ref(true)
- const isLoding = ref(false);
- const curDayworkItem = ref({}) // 当前报工记录,回显是否显示取消周转的状态
- const keywords = ref(null)
- const tempList = ref([])
- const wasteRecyclingList = ref([]) //废品回用批次
- // 在数据中定义一个变量来控制遮罩层的显示
- const isMaskShow = ref(false);
- //打开图纸
- //选中的daywork
- const currentDaywork = ref({})
- const editStatus = ref(false)
- const notPreProcess = ref(true)
- const curProcessAfte = ref([])
- const showRight = ref(null) // 抽屉
- onLoad(() => {
- curPlan.value = store.planDetails;
- normalStatus.value = true;
- console.log(curPlan.value)
- //废品回用的领料部门如果是当前工段,也要可以开始新批次
- //查找当前计划单下的批次废品回用是当前工段
- getAbnormalityLot({
- productionPlanDetailId: store.planDetails.id,
- requisitionDepartmentId: store.curDeptDetails.deptId
- }).then(res => {
- wasteRecyclingList.value = res.rows
- if (store.planDetails.requisitionDepartmentId == store.curDeptDetails.deptId ||
- wasteRecyclingList.value.length > 0) {
- bottomStatus.value = true;
- store.isPreProcess = true;
- } else {
- bottomStatus.value = false;
- store.isPreProcess = false;
- }
- })
- console.log(wasteRecyclingList.value.length)
- })
- function getPlaceText(item) {
- let place = item.dayworkItemList[0].place == "" ? item.dayworkItemList[0].turnoverArea == "" ?
- '-' : item.dayworkItemList[0].turnoverArea : item.dayworkItemList[0].place
- let deptName = item.dayworkItemList[0].deptName
- return place == "-" ? deptName == "" ? "-" : deptName : deptName + "-" + place
- }
- // 页面下拉刷新操作
- onPullDownRefresh(() => {
- uni.stopPullDownRefresh();
- reflush();
- })
- onShow(() => {
- reflush();
- })
- ;
- function reflush() {
- init(store.planDetails.id);
- }
- function handleShowTurnoverApplication(data) {
- console.log(data)
- //如果这批废了,则不能周转申请
- if (data.isWaste == 1) {
- uni.showToast({
- icon: 'none',
- title: '此批已废,不能申请周转',
- duration: 2000
- })
- } else {
- isTakeStock().then(response => {
- if (response.data) {
- uni.showToast({
- icon: 'none',
- title: '正在盘点,不能申请周转',
- duration: 2000
- })
- } else {
- let _data = data ?? {}
- carrierFinishedCheck(data).then(res => {
- if (res.code === 200) {
- // 调用子组件中的方法
- turnoverApplicationDialog.value.open(_data)
- } else {
- uni.showToast({
- icon: 'none',
- title: res.msg
- })
- }
- })
- }
- })
- }
- }
- function handleStartNewBatch() {
- store.normalStatus = normalStatus.value;
- // console.log(normalStatus.value)
- uni.navigateTo({
- url: "/pages/addNewBatch/index"
- })
- }
- function init(id) {
- uni.showLoading({
- title: '加载中'
- });
- let reqData = {
- productionPlanDetailId: id,
- deptId: store.curDeptDetails.deptId,
- keywords: keywords.value
- };
- // console.log(normalStatus.value)
- getDayWorkInnerList(reqData).then(res => {
- console.log(res.data)
- if (res.code == 200) {
- res.data.forEach(item => {
- let quantitySum = 0;
- item.dayworkItemList.forEach(info => {
- if (info.status < 4 && item.currentProcess.processStepNumber == info
- .processStepNumber) {
- quantitySum += info.qualifiedNum;
- }
- });
- item.totalQuantity = quantitySum;
- });
- tempList.value = res.data
- // console.log(res)
- if (normalStatus.value) {
- listData.value = res.data.filter(item => {
- return item.isWasteRecycling == 0 && item.isAmend == 0;
- });
- } else {
- listData.value = res.data.filter(item => {
- return item.isWasteRecycling == 1 || item.isAmend == 1;
- })
- }
- // 20240614 分批投产数量不按照上到序的完成数量来。
- // for (let i = 0; i < listData.value.length; i++) {
- // if (listData.value[i].prevProcess) {
- // let sum = 0;
- // for (let j = 0; j < listData.value[i].dayworkItemList.length; j++) {
- // if (listData.value[i].dayworkItemList[j].processId == listData.value[i]
- // .prevProcess
- // .id && (listData.value[i].dayworkItemList[j].status == 2 || listData
- // .value[i]
- // .dayworkItemList[j].status == 3)) {
- // sum += listData.value[i].dayworkItemList[j].qualifiedNum;
- // }
- // }
- // listData.value[i].processQualifiedNum = sum;
- // }
- // }
- }
- uni.hideLoading();
- })
- }
- function handleSearch() {
- init(store.planDetails.id);
- }
- function handleToreportingForWork(item) {
- store.dayworkInfo = item
- uni.navigateTo({
- url: "/pages/reportingForInnerWork/index"
- })
- }
- function handleClickProcessList(item) {
- let curProcessAfterList = [];
- console.log("工序列表", item)
- currentDaywork.value = item
- editStatus.value = false
- // if (item.isWasteRecycling == 1 || item.isAmend == 1) {
- // editStatus.value = true
- // } else {
- // editStatus.value = false
- // }
- let nextIndex = 0;
- for (let i = 0; i < item.processSequence.length; i++) {
- if (item.nextProcess) {
- if (item.nextProcess.processStepNumber == item.processSequence[i].processStepNumber) {
- nextIndex = i;
- }
- } else {
- nextIndex = item.processSequence.length
- }
- }
- for (let i = 0; i < item.processSequence.length; i++) {
- if (i >= nextIndex) {
- curProcessAfterList.push(item.processSequence[i]);
- }
- }
- if (item.status == 3) {
- curProcessAfterList.splice(0, 1)
- }
- console.log(curProcessAfterList)
- curProcessAfte.value = curProcessAfterList;
- showRight.value.open();
- }
- function switchChange(event) {
- console.log(event)
- //异常批
- if (normalStatus.value) {
- listData.value = tempList.value.filter(item => {
- return item.isWasteRecycling == 1 || item.isAmend == 1;
- });
- normalStatus.value = false
- } else {
- listData.value = tempList.value.filter(item => {
- return item.isWasteRecycling == 0 && item.isAmend == 0;
- });
- normalStatus.value = true
- }
- }
- function handleScanCode() {
- // 引入原生插件
- const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module");
- if (mpaasScanModule) {
- // 调用插件的 mpaasScan 方法
- mpaasScanModule.mpaasScan({
- // 扫码识别类型,参数可多选,qrCode、barCode,
- // 如不设置,默认识别所有扫码类型,可能有些许影响识别效率
- scanType: ["qrCode", "barCode"],
- // 是否隐藏相册,默认false不隐藏
- hideAlbum: false,
- },
- (ret) => {
- console.log(ret);
- /* 原有代码,之前二维码中存的信息比较多,用一个JSON格式存储。
- let vehicleObj = JSON.parse(ret.resp_result);
- if (!vehicleObj.carrierId || vehicleObj.carrierId == "") {
- uni.showToast({
- icon: "none",
- title: "请扫载具码",
- duration: 1000
- })
- return;
- }
- */
- let vehicleObj = {
- carrierCode: ret.resp_result
- };
- if (!vehicleObj.carrierCode || vehicleObj.carrierCode == "") {
- uni.showToast({
- icon: "none",
- title: "请扫载具码",
- duration: 1000
- })
- return;
- }
- showDaywork({
- carrierId: '0', // 不传递箱子id
- carrierCode: vehicleObj.carrierCode,
- status: 7
- }).then(response => {
- if (response.code == 200) {
- console.log(response)
- console.log(response.data[0].productionPlanDetailId)
- console.log(store.planDetails.id)
- console.log(response.data[0].deptId !== store.curDeptDetails.deptId)
- if (response.data[0].deptId !== store.curDeptDetails.deptId) {
- uni.showToast({
- icon: 'none',
- title: '该批次不在当前工段',
- duration: 2000
- })
- return
- }
- if (response.data[0].productionPlanDetailId == store.planDetails.id) {
- console.log(response.data)
- outsourceLotDialog.value.open(response.data);
- } else {
- uni.showToast({
- icon: 'none',
- title: '该批次不在此计划单内',
- duration: 2000
- })
- }
- } else {
- uni.showToast({
- icon: 'none',
- title: response.msg,
- duration: 2000
- })
- }
- })
- }
- );
- } else {
- // 测试时用
- showDaywork({
- carrierCode: '009297',
- status: 7
- }).then(response => {
- if (response.code == 200) {
- if (response.data[0].deptId !== store.curDeptDetails.deptId) {
- uni.showToast({
- icon: 'none',
- title: '该批次已转至其他工段',
- duration: 2000
- })
- return
- }
- if (response.data[0].productionPlanDetailId == store.planDetails.id) {
- console.log(response.data)
- outsourceLotDialog.value.open(response.data);
- } else {
- uni.showToast({
- icon: 'none',
- title: '该批次不在此计划单内',
- duration: 2000
- })
- }
- } else {
- uni.showToast({
- icon: 'none',
- title: response.msg,
- duration: 2000
- })
- }
- })
- }
- }
- function handleAddDaywork(data) {
- isMaskShow.value = true; // 显示遮罩层
- uni.showLoading({
- title: '加载中'
- });
- console.log(data)
- let reqParam = [];
- for (var i = 0; i < data.length; i++) {
- reqParam.push(data[i].daywork)
- }
- console.log(data)
- data.forEach(item => {
- item.isSort = 0,
- item.tenantId = !store.tenantId ? store.userInfo.tenantId : store.tenantId
- })
- showDayworkInnerSave(data).then(res => {
- isMaskShow.value = false;
- uni.hideLoading();
- console.log(res)
- init(store.planDetails.id);
- })
- }
- function handleDoIt(data) {
- handleAddDaywork(data);
- }
- function handleOpenDrawing() {
- console.log(currentDaywork.value, "444")
- var filteredProcess = currentDaywork.value.processSequence.filter(item => item.processStepNumber == currentDaywork
- .value.currentProcess.processStepNumber);
- // 检查 filteredProcess 是否有元素,并选择第一个元素
- if (filteredProcess.length > 0) {
- var firstMatch = filteredProcess[0]; // 获取第一个匹配的对象
- console.log("currentDaywork", currentDaywork.value)
- // 对 technologicalProcessDetailId 进行URL编码
- var encodedId = encodeURIComponent(currentDaywork.value.productId);
- var enTechnologicalProcessId = encodeURIComponent(currentDaywork.value.technologicalProcessId);
- var enprocessCode = encodeURIComponent(firstMatch.processCode);
- var encodeCode = encodeURIComponent(currentDaywork.value.lotCode);
- var enProcessAlias = encodeURIComponent(firstMatch.processAlias);
- var enIsWasteRecycling = encodeURIComponent(currentDaywork.value.isWasteRecycling);
- var enIsAmend = encodeURIComponent(currentDaywork.value.isAmend);
- // 构建查询参数字符串
- var queryParam =
- `param1=${encodedId}¶m2=${encodeCode}¶m3=${enprocessCode}¶m4=${enTechnologicalProcessId}¶m5=${enProcessAlias}¶m6=${enIsWasteRecycling}¶m7=${enIsAmend}`;
- // 使用模板字符串构建完整的URL
- var navigateUrl = `/pages/drawingMenu/index?${queryParam}`;
- // 导航到指定页面
- uni.navigateTo({
- url: navigateUrl
- });
- } else {
- console.log('No process matched the current process step number.');
- }
- }
- function handleDoTurnoverAfter() {
- reflush();
- }
- function handleCancelTurnover(data) {
- isTakeStock().then(response => {
- if (response.data) {
- uni.showToast({
- icon: 'none',
- title: '正在盘点,不能取消周转',
- duration: 2000
- })
- } else {
- isMaskShow.value = true; // 显示遮罩层
- uni.showLoading({
- title: '加载中'
- });
- turnoverDelete(data).then(res => {
- isMaskShow.value = false
- if (res.code == 200) {
- uni.showToast({
- icon: "success",
- title: "取消成功",
- duration: 2000
- })
- isLoding.value = false;
- setTimeout(() => {
- init(store.planDetails.id);
- }, 1000);
- } else {
- uni.showToast({
- icon: "none",
- title: "取消失败",
- duration: 2000
- })
- isLoding.value = false;
- setTimeout(() => {
- init(store.planDetails.id);
- }, 1000);
- }
- })
- }
- })
- }
- </script>
- <style lang="scss">
- $nav-height: 60rpx;
- .mask {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.5);
- z-index: 2000;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .mask .loading-text {
- color: #fff;
- font-size: 36rpx;
- }
- .box-bg {
- width: 94%;
- background-color: #F5F5F5;
- padding: 5rpx 16rpx;
- justify-content: space-around;
- align-items: center;
- margin: 24rpx auto 0;
- .input-view {
- width: 100%;
- flex: 4;
- background-color: #f8f8f8;
- height: $nav-height;
- border: 1rpx solid #999;
- border-radius: 15rpx;
- padding: 0 15rpx;
- flex-wrap: nowrap;
- margin: 0 10rpx 0;
- line-height: $nav-height;
- .input-uni-icon {
- line-height: $nav-height;
- }
- .nav-bar-input {
- width: 80%;
- height: $nav-height;
- line-height: $nav-height;
- padding: 0 5rpx;
- background-color: #f8f8f8;
- }
- }
- .search {
- width: 20%;
- text-align: center;
- color: #808080;
- }
- }
- .list-title {
- width: 100%;
- margin-top: 16rpx;
- height: 64rpx;
- line-height: 64rpx;
- align-items: center;
- margin-left: 32rpx;
- .label {
- font-size: 32rpx;
- margin-right: 24rpx;
- }
- .icon-gear {
- font-size: 56rpx;
- }
- }
- .switch {
- margin-top: -8rpx;
- transform: scale(0.7);
- }
- .scroll-container {
- width: 92%;
- margin: 24rpx auto 0 auto;
- height: calc(90% - 100rpx);
- overflow: auto;
- }
- .list-item {
- background-color: #fff;
- position: relative;
- padding: 16rpx;
- padding-bottom: 24rpx;
- margin-bottom: 24rpx;
- border-radius: 24rpx;
- .title-container {
- margin-top: 8rpx;
- margin-bottom: 16rpx;
- .title {
- height: 48rpx;
- align-items: center;
- .label {
- font-size: 32rpx;
- font-weight: bold;
- &.code {
- margin-left: 8rpx;
- }
- }
- }
- .tag {
- border: 1px solid #1CE5B0;
- background-color: #F6FFFD;
- padding: 8rpx;
- border-radius: 8rpx;
- .label {
- color: #1CE5B0;
- font-size: 24rpx;
- }
- &.finished {
- border: 1px solid #BBBBBB;
- background-color: #F5F5F5;
- .label {
- color: #BBBBBB;
- }
- }
- &.turnover {
- border: 1px solid #FF7901;
- background-color: #F6FFFD;
- .label {
- color: #FF7901;
- }
- }
- }
- }
- .item-info {
- margin-bottom: 8rpx;
- .label {
- font-size: 28rpx;
- width: 220rpx;
- color: #808080;
- &.right {
- flex: 1;
- color: #000000;
- }
- }
- }
- .status-btn {
- justify-content: flex-end;
- align-items: center;
- .turnover-tag {
- padding-right: 12rpx;
- padding-left: 12rpx;
- border-radius: 8rpx;
- border: 1rpx solid #FF7901;
- background-color: #FF7901;
- font-size: 28rpx;
- color: #FFFFFF;
- }
- .reporting-tag {
- padding-right: 12rpx;
- padding-left: 12rpx;
- border-radius: 8rpx;
- margin-left: 16rpx;
- border: 1rpx solid #1684fc;
- background-color: #1684fc;
- font-size: 28rpx;
- color: #FFFFFF;
- }
- }
- }
- .bottom {
- height: 10%;
- position: fixed;
- right: 0;
- bottom: 0;
- left: 0;
- height: 100rpx;
- border-top: 1px solid #999999;
- padding: 16rpx 32rpx;
- align-items: center;
- background-color: #fff;
- justify-content: space-evenly;
- .start-batch-btn {
- flex: 1;
- height: 80rpx;
- line-height: 80rpx;
- border-radius: 8rpx;
- color: #FFFFFF;
- font-size: 28rpx;
- }
- .view-end-btn {
- flex: 1;
- height: 80rpx;
- line-height: 80rpx;
- border-radius: 8rpx;
- color: #FFFFFF;
- font-size: 28rpx;
- }
- }
- </style>
|