货无忧
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1151 lines
25 KiB

<template>
<BasicContainer ref="basicContainer" :option="option">
<template #head>
<view class="top">
<view class="hdtp">
<PullDownBox :isShowIcon="false" :ExistenceOrNot="true" :isShow="false" @change="handleChangePullDown">
<template #title>
<view class="flex-c-sb mb10">
<view>
配载批次{{details.pageInfo.carsNo}}
</view>
<view class="butlur" @click.stop="showsdqs">
{{Number(details.pageType) === 1 ||Number(details.pageType) === 3? '录入包条码': '录入托盘码'}}
</view>
</view>
</template>
<template #content>
<view class="flex">
<view class="flex1">司机{{details.pageInfo.driverName}}</view>
<view class="flex1">电话{{details.pageInfo.driverMobile}}</view>
</view>
<view class="mt10">车牌号{{details.pageInfo.carNumber}}</view>
<view class="mt10">路线{{details.pageInfo.carsLineName}}</view>
</template>
</PullDownBox>
</view>
<view class="hdtpnum">
<view>
<view>计划件数</view>
<view>{{details.pageInfo.planLoadingNumber || 0}}</view>
</view>
<view>
<view>装车件数 </view>
<view>{{details.pageInfo.planUnloadNum || 0}}</view>
</view>
<view>
<view>在车件数</view>
<view>{{details.pageInfo.realLoadingNumber || 0}}</view>
</view>
<view>
<view>卸车数</view>
<view>{{details.pageInfo.unloadNumber || 0}}</view>
</view>
</view>
</view>
<view class="tabtip">
<view @click="setorderStatus(1)" :class="orderStatus==1?'active':''">
<view>
<text>
定制品
</text>
</view>
</view>
<view @click="setorderStatus(2)" :class="orderStatus==2?'active':''">
<view>
<text>
零担
</text>
</view>
</view>
</view>
</template>
<template #body>
<!-- 定制品 -->
<template v-if="Number(orderStatus) === 1">
<view class="AbnormalContent">
<MyTable :columnList="[
{
prop: 'orderCode',
label: '订单号',
width: '200px',
},
{
prop: 'orderPackageCode',
label: '包条码',
width: '200px'
},
{
prop: 'thirds',
label: '品类',
width: '150px',
isDIY: true
},
{
prop: 'scanStatus',
label: '卸车状态',
width: '100px',
isDIY: true
},
]" :data="datalist" isScroll>
<template #default="slotProps">
<template v-if="slotProps.scope.column.label === '卸车状态'">
<view style="position: relative;" :class="{
'tip': true,
'red': Number(slotProps.scope.row.scanStatus) === 1,
'portion': Number(slotProps.scope.row.scanStatus) === 2,
'blue': Number(slotProps.scope.row.scanStatus) === 3
}">
{{Number(slotProps.scope.row.scanStatus) === 1? '未扫': Number(slotProps.scope.row.scanStatus) === 2? '已卸车': '已签收'}}
</view>
</template>
<template v-else-if="slotProps.scope.column.label === '品类'">
<view>
{{slotProps.scope.row.thirds || slotProps.scope.row.materialName || '暂无'}}
</view>
</template>
</template>
</MyTable>
</view>
</template>
<!-- 零担 -->
<template v-else>
<block v-for="(item, index) in datalist" :key="item.waybillNo + '-' + index">
<template v-if="item.loadingNum !== item.unloadNum">
<PullDownBox :ref="item.waybillNo" :isShow="item.initShow" :isShowIcon="false">
<template #title>
<view class="mb20">
<text>订单号:</text>
<text class="row_value">
{{item.orderCode}}
</text>
</view>
<view class="mb20">
<text>运单号:</text>
<text class="row_value">
{{item.waybillNo}}
</text>
</view>
<view class="mb20">
<text>收货单位:</text>
<text class="row_value">
{{item.consignee}}
</text>
</view>
<view class="flex-c-sb">
<view>
<text>订单总数:</text>
{{item.totalNumber}}
</view>
<view>
<text>
装车数/卸车数:
</text>
<text style="color: #000;">
{{item.loadingNum}}
</text>
/
<text style="color: #00d400;">
{{item.unloadNum}}
</text>
</view>
</view>
</template>
<template #content>
<u-divider text="详 情"></u-divider>
<scroll-view class="detailsInfoContainer" scroll-y="true">
<block v-for="value in item.unloadPackageList" :key="value.name">
<view class="details_container">
<view>
产品名称: {{value.orderPackageCode}}
</view>
<view class="mt10">
托盘名称: {{value.unloadTrayName}}
</view>
<view class="flex mt10">
<view class="flex1">
装车数 / 卸车数:{{value.num + ' / ' + (value.unloadNum || 0)}}
</view>
<view class="button" @click="handleZeroStowage(item, value)">
零担卸车
</view>
</view>
</view>
</block>
</scroll-view>
</template>
</PullDownBox>
</template>
</block>
</template>
</template>
</BasicContainer>
<tiplist ref="tiplists">
</tiplist>
<!-- 零担装车 -->
<PopUp ref='ZeroStowage'>
<scroll-view scroll-y="true">
<view class="contenbx1">
<view>
<text style="color: #90A0AF;">订单编号:</text>{{details.zeroInfo.orderCode}}
</view>
</view>
<view class="contenbx1">
<view><text style="color: #90A0AF;">运单号:</text>{{details.zeroInfo.waybillNo}}
</view>
</view>
<view class="contenbx1">
<view><text style="color: #90A0AF;">物料名称:</text>{{details.zeroInfo.orderPackageCode}}
</view>
</view>
<view class="ZeroStowage_row_title mt10 fwb">
品类列表
</view>
<block v-for="item in details.zeroInfo.scanZeroDetailList">
<view class="ZeroStowage_item">
<view class="ZeroStowage_row"><text style="color: #90A0AF;">品类:</text>{{item.goodsName|| '暂无数据'}}</view>
<view class="flex-c-sb ZeroStowage_row mt10">
<view class="flex1"><text style="color: #90A0AF;">装车数:</text>{{item.loadingNum || 0}}</view>
<view class="flex1"><text style="color: #90A0AF;">卸车数:</text>{{item.unloadNum || 0}}
</view>
</view>
<view class="ZeroStowage_row mt10">
<inputNum :minNum="0" :maxNum="item.maxNum" v-model="item.enterNum" />
</view>
</view>
</block>
</scroll-view>
</PopUp>
<!-- 定制品异常装车 -->
<PopUp ref='OrderStowage'>
<scroll-view scroll-y="true">
<view class="">
当前包件未在本次计划, 是否异常卸车
</view>
<view class="">
包条码: {{details.scancode}}
</view>
</scroll-view>
</PopUp>
<!-- 整托卸车 -->
<PopUp ref='TrayStowage'>
<view>托盘名称:{{details.trayInfo.trayName}}</view>
<view>托盘码:{{details.trayInfo.trayCode}}</view>
<scroll-view style="margin-top: 10px; height: 50vh; zoom: 0.9" scroll-y="true">
<view class="">
零担:
</view>
<block v-for="item in details.trayInfo.zeroList" :key="item.scanCode">
<view class="pop_row">
<view>订单号:{{item.orderCode}}</view>
<view>运单号:{{item.waybillNo}}</view>
<view class="flex-c-sb">
<view>产品名称:{{item.scanCode}}</view>
<view>数量:{{item.num}}</view>
</view>
</view>
</block>
<view class="mt10">
定制品:
</view>
<block v-for="item in details.trayInfo.packageList" :key="item">
<view class="pop_row">
<view>订单号{{item.orderCode}}</view>
<view class="flex-c-sb">
<view>包条码{{item.scanCode}}</view>
<view>数量{{item.num}}</view>
</view>
</view>
</block>
</scroll-view>
</PopUp>
<saomiao2 :ishidestop="scanState !== 0"></saomiao2>
</template>
<script lang="ts" setup>
import {
postCarsLoadUnloadPackage,
postArriveUnloadCarsDetail,
postCarsLoadUnloadZero,
postFindUnloadTrayGoodsList,
postUnloadTray,
postTransferUnloadPackage,
postTransferUnloadZero,
postTransferUnloadTray,
postRemoveCarsLoadScan,
postCarsLoadUnloadPackageNoXz
} from '@/api/user.js'
import {
onLoad,
onShow,
} from '@dcloudio/uni-app'
import { computed, inject, nextTick, onMounted, reactive, ref, toRefs, getCurrentInstance } from "vue";
import useSystemSettingsStore from '@/store/useSystemSettingsStore';
import { storeToRefs } from 'pinia';
import utils from '@/utils/utils.js';
const { scanState } = storeToRefs(useSystemSettingsStore())
const option = reactive({
title: '配载未卸车数据',
haveData: true,
pullDownRefreshInitPage() {
return initpage()
},
haveReachBottom: false,
isFixed: true
})
let details = reactive({
datalist: [],
scancode: '',
orderStatus: 1,
loadId: '',
inputtxt: '',
pageInfo: {
},
/** 包件数 */
packageNum: 0,
/** 零担数 */
zeroNum: 0,
page: 'ArrivalList' as 'ArrivalList' | 'RelayScanList',
// 零担详情装车列表
zeroList: [],
/** 页面类型 1: 按件装车 2: 整托卸车 */
pageType: 1,
/** 整托渲染列表 */
trayInfo: {
zeroList: [],
packageList: []
},
/** 卸车的零担信息 */
zeroInfo: {},
/** 提交后用于筛选的包条 */
filterOrderPackageCode: '',
})
// 获取组件实例
const tiplists = ref(null)
const basicContainer = ref(null)
/** 零担装车 */
const ZeroStowage = ref()
/** 定制品异常装车 */
const OrderStowage = ref()
/** 整托卸车 */
const TrayStowage = ref()
const instance = getCurrentInstance()
onLoad((op) => {
details.loadId = op.id
details.pageType = op.type
details.page = op.page
let content = ''
if (Number(details.pageType) === 1 || Number(details.pageType) === 3) content = '请扫描包件码'
else if (Number(details.pageType) === 2) content = '请扫描托盘码'
// #ifdef APP
utils.ttsspke(content)
// #endif
})
onShow(async () => {
uni.$off('scancodedate')
uni.$on('scancodedate', function (code) {
if (code) {
console.log('code', code);
details.scancode = code
scandata()
}
})
await nextTick()
// 请求页面
basicContainer.value.startPullDownRefresh()
})
function showsdqs() {
tiplists.value.setdetails({
isshow: true,
tipstate: 1,
title: '请输入扫描的码',
placeholder: '请输入扫描的码',
inputtext: '',
success: (detail) => {
details.scancode = detail.inputtext
scandata()
tiplists.value.setdetails({ isshow: false })
},
cancel: () => {
tiplists.value.setdetails({ isshow: false })
},
close: () => {
tiplists.value.setdetails({ isshow: false })
}
})
}
/** 请求页面数据 */
async function initpage() {
try {
const response = await postArriveUnloadCarsDetail({
loadId: details.loadId
})
const { code, data } = response
console.log('response :>> ', response);
if (code === 200) {
details.pageInfo = utils.getObjType(data) === 'object' ? data : { unloadScanOrderList: [], unloadZeroList: [], exceptionList: [] }
let _packageArr = []
// 总数
let zeroNum = 0
let packageNum = 0
for (let i = 0; i < details.pageInfo.unloadScanOrderList.length; i++) {
const val = details.pageInfo.unloadScanOrderList[i]
if (val.totalNumber) packageNum += val.totalNumber || 0
if (utils.getObjType(val.unloadPackageList) !== 'array') continue
for (let j = 0; j < val.unloadPackageList.length; j++) {
const item = val.unloadPackageList[j]
if (Number(item.scanStatus) === 1) _packageArr.push(item)
}
}
// 零担
for (let iterator of details.pageInfo.unloadZeroList) {
if (iterator.totalNumber) zeroNum += iterator.totalNumber || 0
}
details.zeroNum = zeroNum
details.packageNum = packageNum
details.pageInfo.loadPackageList = _packageArr
details.datalist = details.orderStatus === 1 ?
details.pageInfo.loadPackageList || [] :
details.pageInfo.unloadZeroList || []
}
} catch (err) {
console.log('err :>> ', err);
//TODO handle the exception
} finally {
return null
}
}
/**
* 切换tabBer状态
* @param {type} state 选中的状态
*/
function setorderStatus(state : number) {
if (details.orderStatus === state) return
details.orderStatus = state
details.datalist = details.orderStatus === 1 ?
details.pageInfo.loadPackageList :
details.pageInfo.unloadZeroList
// return
}
/** 包件卸车 -- 单个 */
const handleOrderStowage = async (_scanCode) => {
try {
const submitData = {
orderPackageCode: _scanCode,
loadId: details.loadId,
incomingType: '6'
}
let res = {} as any
if (details.page === 'ArrivalList') res = await postCarsLoadUnloadPackage(submitData)
else if (details.page === 'RelayScanList') res = await postTransferUnloadPackage(submitData)
if (res.code !== 200) return
details.filterOrderPackageCode = submitData.orderPackageCode
basicContainer.value.startPullDownRefresh()
return res
} catch (err) {
console.log('err :>> ', err);
//TODO handle the exception
}
}
/** 扫描包件 */
const scanOrder = async () => {
OrderStowage.value.details.showPopUp = false
let _scanCode = details.scancode
// 是否存在该包件
let isHave = false
// 该包件是否已被卸车或签收
let returnContent = ''
// 该包件是否有托盘信息
let _trayCode = ''
details.filterOrderPackageCode = _scanCode
// 是否已经匹配到包条
let _flag = false
for (let i = 0; i < details.pageInfo.unloadScanOrderList.length; i++) {
const val = details.pageInfo.unloadScanOrderList[i]
let isBreak = false
if (utils.getObjType(val.unloadPackageList) !== 'array' || !details.filterOrderPackageCode || _flag) continue
for (let j = 0; j < val.unloadPackageList.length; j++) {
const item = val.unloadPackageList[j]
if (item.orderPackageCode !== details.filterOrderPackageCode) continue
isHave = true
isBreak = true
if (Number(item.scanStatus) === 2) {
returnContent = '该包件已卸车'
} else if (Number(item.scanStatus) === 3) {
returnContent = '该包件已签收'
}
_flag = true
break
}
if (isBreak) break
}
if (returnContent) {
utils.handleToast(returnContent)
return
}
if (Number(details.pageType) === 3) {
const submitData = {
orderPackageCode: _scanCode,
loadId: details.loadId,
incomingType: '6'
}
let res = {} as any
if (details.page === 'ArrivalList') res = await postCarsLoadUnloadPackageNoXz(submitData)
if (res.code !== 200) return
// 刷新
basicContainer.value.startPullDownRefresh()
return
}
if (!isHave) {
try {
const submitData = {
orderPackageCode: _scanCode,
loadId: details.loadId,
incomingType: '6'
}
let res = {} as any
if (details.page === 'ArrivalList') res = await postCarsLoadUnloadPackage(submitData)
else if (details.page === 'RelayScanList') res = await postTransferUnloadPackage(submitData)
if (res.code !== 200) return
// OrderStowage.value.details.showPopUp = false
// 刷新
basicContainer.value.startPullDownRefresh()
} catch (err) {
console.log('err :>> ', err);
//TODO handle the exception
}
return
}
handleOrderStowage(_scanCode)
}
/** 扫描托盘 */
const scanTray = async () => {
const submitData = {
trayCode: details.scancode,
loadId: details.loadId,
incomingType: '8'
}
const res = await postFindUnloadTrayGoodsList(submitData)
const { code, data } = res
if (code !== 200) return res
details.trayInfo.zeroList = data.filter(val => {
return Number(val.type) === 2
})
details.trayInfo.packageList = data.filter(val => {
return Number(val.type) === 1
})
details.trayInfo.trayCode = data[0].trayCode
details.trayInfo.trayName = data[0].trayName
TrayStowage.value.setDetails({
title: '整托卸车',
showPopUp: true,
async success() {
try {
let res = {} as any
if (details.page === 'ArrivalList') res = await postUnloadTray(submitData)
else if (details.page === 'RelayScanList') res = await postTransferUnloadTray(submitData)
if (res.code !== 200) return
uni.showToast({
title: '卸车成功',
icon: 'none'
})
TrayStowage.value.details.showPopUp = false
basicContainer.value.startPullDownRefresh()
} catch (e) {
//TODO handle the exception
}
},
close() {
TrayStowage.value.details.showPopUp = false
}
})
// return res
}
/** 扫描接口
* */
function scandata() {
console.log('deta :>> ', details.pageType);
// 按件卸车
if (Number(details.pageType) === 1 || Number(details.pageType) === 3) scanOrder()
else if (Number(details.pageType) === 2) scanTray()
}
/** 零担 -- 单独卸车 */
const handleZeroSoleStowage = (_item, _value) => {
console.log('_item :>> ', _item);
console.log('_value :>> ', _value);
details.zeroInfo = { waybillNo: _item.waybillNo, orderCode: _item.orderCode, ..._value }
// details.zeroInfo.unloadNum = !details.zeroInfo.unloadNum ? details.zeroInfo.num : details.zeroInfo.unloadNum
if (utils.getObjType(_value.scanZeroDetailList) !== 'array') return utils.handleToast('该零担存在数据异常,请联系文员')
if (_value.scanZeroDetailList.length === 0) return utils.handleToast('该零担没有品类,无法卸车')
let _total = 0
for (let i = 0; i < _value.scanZeroDetailList.length; i++) {
const _val = _value.scanZeroDetailList[i]
_val.maxNum = _val.loadingNum || 0
_val.enterNum = _val.unloadNum || 0
_total += _val.loadingNum || 0
}
if (_total === _value.num && _value.unloadNum === 0) {
for (let i = 0; i < _value.scanZeroDetailList.length; i++) {
const _val = _value.scanZeroDetailList[i]
_val.enterNum = _val.loadingNum || 0
}
}
ZeroStowage.value.setDetails({
title: '零担卸车',
showPopUp: true,
async success() {
let _enterNum = 0
for (let i = 0; i < _value.scanZeroDetailList.length; i++) {
const _val = _value.scanZeroDetailList[i]
_enterNum += _val.enterNum || 0
}
if (!_enterNum) {
return uni.showToast({
title: '请输入大于零的数字',
icon: 'none'
})
}
if (_enterNum > _item.num) return utils.handleToast('总数大于装车数量,请调整')
console.log('details.zeroInfo :>> ', details.zeroInfo);
const submitData = {
loadId: details.loadId,
waybillNo: details.zeroInfo.waybillNo,
orderCode: details.zeroInfo.orderCode,
productName: details.zeroInfo.orderPackageCode,
enterNum: _enterNum,
incomingType: '7',
carsLoadScanId: _value.carsLoadScanId,
zeroPackageList: _value.scanZeroDetailList
}
let res = {} as any
if (details.page === 'ArrivalList') res = await postCarsLoadUnloadZero(submitData)
else if (details.page === 'RelayScanList') res = await postTransferUnloadZero(submitData)
if (res.code !== 200) return
ZeroStowage.value.details.showPopUp = false
basicContainer.value.startPullDownRefresh()
}
})
}
/** 零担卸车 */
const handleZeroStowage = (_item, _value) => {
// 检测该零担是否有托盘信息; 有: 询问是否整托卸车, 当在整托卸车时, 不允许单独卸车
if (_value.trayCode) {
utils.handleToast('是否整托卸车')
tiplists.value.setdetails({
isshow: true,
tipstate: 2,
list: [],
isonecheck: true,
title: '是否整托卸车',
success: () => {
tiplists.value.setdetails({ isshow: false })
// 整托卸车
scanTray()
},
cancel: () => {
tiplists.value.setdetails({ isshow: false })
if (Number(details.pageType) === 2) return
handleZeroSoleStowage(_item, _value)
},
close: () => {
tiplists.value.setdetails({ isshow: false })
}
})
details.scancode = _value.trayCode
return
}
if (Number(details.pageType) === 2) return
handleZeroSoleStowage(_item, _value)
}
/** 是否显示头部详情数据 */
const handleChangePullDown = async (changeValue) => {
await nextTick()
basicContainer.value.handleSetHeaderHeight(300)
}
const { orderStatus, datalist } = toRefs(details)
</script>
<style lang="scss" scoped>
@import url(@/utils/style/common.scss);
.jpScorllView {
font-size: 0.9rem;
}
:deep(.PullDownBox) {
background: #fff;
.Pulldown_content {
padding: 20upx;
}
}
:deep(.Pulldown-title-container) {
padding: 20upx;
}
.top {
font-size: 0.9rem;
:deep(.PullDownBox) {
margin: 0;
.Pulldown_content {
padding: 0;
}
}
:deep(.Pulldown-title-container) {
padding: 0;
}
}
.hdtp {
width: 100vw;
padding: 20upx;
padding-bottom: 0upx;
box-sizing: border-box;
background-color: #ffffff;
word-break: break-all;
}
.butlur {
width: 200upx !important;
height: 64upx !important;
background: var(--subjectColor);
border-radius: 8upx;
display: flex;
align-items: center;
justify-content: center;
font-size: 32upx;
font-weight: 400;
color: #FFFFFF;
}
.tabtip {
display: flex;
background-color: #fff;
>view {
padding: 20upx 0;
flex: 1;
position: relative;
text-align: center;
&::after {
content: '';
display: block;
position: absolute;
width: 0%;
height: 6upx;
background: var(--subjectColor);
bottom: 3upx;
left: 50%;
transform: translateX(-50%);
transition: all .3s;
}
&.active {
&::after {
content: '';
display: block;
width: 60%;
}
}
}
}
.contenbx1 {
display: flex;
justify-content: space-between;
font-size: 28upx;
color: #092C4D;
margin: 20upx;
>view {
>view:first-child {
flex: none;
}
}
&:nth-last-child(1) {
margin-bottom: 0;
}
}
.hdtpnum {
display: flex;
align-items: center;
justify-content: space-around;
background-color: #ffffff;
padding: 20upx 0;
border-bottom: 3upx solid #EEEEEE;
>view {
display: flex;
align-items: center;
flex-direction: column;
font-size: 28upx;
font-weight: 400;
color: #092C4D;
&:nth-of-type(1) {
>view:nth-of-type(2) {
color: #092C4D;
}
}
&:nth-of-type(2) {
>view:nth-of-type(2) {
color: #0086F1;
}
}
&:nth-of-type(3) {
>view:nth-of-type(2) {
color: #3AD8BC;
}
}
&:nth-of-type(4) {
>view:nth-of-type(2) {
color: #FA8C16;
}
}
>view:nth-of-type(2) {
font-size: 36upx;
font-weight: 400;
color: #092C4D;
}
}
}
// 按钮
.button {
padding: 10upx 15upx;
background: var(--subjectColor);
color: #fff;
border-radius: 5upx;
width: auto;
display: inline-block;
font-size: 28upx;
&.abnormalBtn {
background: #f8544b;
}
}
.deleteBtn {
width: 100%;
padding: 10upx 20upx;
background-color: var(--errColor);
color: #fff;
text-align: center;
}
.input {
padding: 10upx 20upx;
border: 2upx solid #aaa;
border-radius: 10upx;
margin: 5upx 0 20upx;
}
.pop_row {
padding: 10upx 0;
border-bottom: 2upx solid #aaa;
}
// 零担弹窗 -- 标题
.ZeroStowage_row_title {
color: var(--subjectColor);
text-align: center;
display: flex;
align-items: center;
&::before {
content: '';
display: block;
flex: 1;
height: 4upx;
background-color: var(--subjectColor);
margin-right: 20upx;
}
&::after {
content: '';
display: block;
flex: 1;
height: 4upx;
background-color: var(--subjectColor);
margin-left: 20upx;
}
}
// 零担弹窗 -- 行
.ZeroStowage_row {
// margin-top: 20upx;
font-size: 0.9rem;
flex-wrap: wrap;
word-break: break-all;
}
.ZeroStowage_item {
padding: 20upx;
margin: 10upx;
margin-top: 20upx;
border: 6upx solid var(--subjectColor);
border-radius: 10upx;
}
// 分界线
:deep(.u-divider) {
margin: 10upx 0;
}
:deep(.u-divider__text) {
font-size: 0.9rem !important;
font-weight: bold;
color: var(--subjectColor) !important;
}
.detailsInfoContainer {
max-height: 50vh;
// 详情
.details_container {
position: relative;
font-size: 0.9rem;
word-break: break-all;
border: 4upx solid #FA8C16;
border-radius: 10upx;
padding: 20upx;
margin: 10upx;
overflow: hidden;
.active {
color: var(--primaryColor);
}
.abnormarlTip {
right: -1rem;
top: auto;
bottom: -1rem;
transform: rotate(-45deg);
}
}
}
// 每行的值
.row_value {
font-size: 0.8rem;
word-break: break-all;
}
// 异常
.AbnormalContent {
margin-top: 20upx;
}
// 标签
.tip {
padding: 10upx 15upx;
background: var(--subjectColor);
color: #fff;
border-radius: 5upx;
margin-left: 10upx;
height: fit-content;
position: absolute;
right: 0;
top: 0;
&.red {
color: #f8625a;
background-color: #feeded;
}
&.blue {
color: #0086F1;
background-color: #e5f2fd;
}
&.portion {
color: #fa8c16;
background: #fef3e7;
}
}
.scroll_row {
display: flex;
>view {
word-break: break-all;
flex: 1;
}
}
// 异常表示
.abnormarlTip {
position: absolute;
right: 0;
top: 0;
padding: 10upx;
border: 4upx solid var(--errColor);
border-radius: 50%;
transform: rotate(-45deg) translate(1rem);
view {
width: 3rem;
height: 3rem;
line-height: 3rem;
text-align: center;
border-radius: 50%;
border: 2upx solid var(--errColor);
color: var(--errColor);
font-weight: bold;
}
}
:deep(.PullDownBox) {
margin: 20upx;
}
</style>