930 lines
24 KiB
Vue
930 lines
24 KiB
Vue
<template>
|
||
<view class="group-wave-page">
|
||
<view class="normar_container">
|
||
<page-nav :title="title">
|
||
</page-nav>
|
||
|
||
<view class="content-layout">
|
||
<view v-if="loading" class="empty-wrap">
|
||
<text class="empty-text">加载中...</text>
|
||
</view>
|
||
<view v-else-if="strategyList.length === 0" class="empty-wrap">
|
||
<text class="empty-text">暂无策略</text>
|
||
</view>
|
||
<template v-else>
|
||
<view class="top-module">
|
||
<view class="content-card content-card--detail">
|
||
<view class="card-title">{{ currentStrategy.strategyName }}</view>
|
||
<view v-if="currentStrategy.disabled" class="strategy-status-row">状态:已停用</view>
|
||
<view class="card-row"><text class="label">创建人:</text><text class="value">{{ currentStrategy.creatorName }}</text></view>
|
||
<view class="card-row"><text class="label">匹配订单:</text><text class="value">{{ currentStrategy.matchedOrderCountFiltered }}</text></view>
|
||
<view class="card-row"><text class="label">SKU区间:</text><text class="value">{{ currentStrategy.orderMinSku }} - {{ currentStrategy.orderMaxSku }}</text></view>
|
||
<view class="card-row"><text class="label">件数区间:</text><text class="value">{{ currentStrategy.orderMinQty }} - {{ currentStrategy.orderMaxQty }}</text></view>
|
||
<view class="card-row"><text class="label">同结构区间:</text><text class="value">{{ currentStrategy.minSameStructure }} - {{ currentStrategy.maxSameStructure }}</text></view>
|
||
<view class="card-row"><text class="label">策略类型:</text><text class="value">{{ currentStrategy.strategyTypeText }}</text></view>
|
||
<view class="card-row card-row--inline-tag">
|
||
<text class="label">分批模式:</text>
|
||
<view v-if="currentStrategy.batchModeText" class="batch-mode-tag">{{ currentStrategy.batchModeText }}</view>
|
||
<text v-else class="value">{{ currentStrategy.batchMode }}</text>
|
||
</view>
|
||
<view class="card-grid">
|
||
<view class="group-item">
|
||
<text class="label">货主限制:</text>
|
||
<view class="limit-brief" :class="{ 'limit-brief--disabled': !hasLimitList(currentStrategy.ownerLimitList) }" @click="openLimitPopup('货主限制', currentStrategy.ownerLimitList)">
|
||
<text class="value limit-brief__text">{{ getLimitFirst(currentStrategy.ownerLimitList) }}</text>
|
||
<text v-if="hasLimitList(currentStrategy.ownerLimitList)" class="limit-brief__plus">+</text>
|
||
</view>
|
||
</view>
|
||
<view class="group-item">
|
||
<text class="label">订单快递限制:</text>
|
||
<view class="limit-brief" :class="{ 'limit-brief--disabled': !hasLimitList(currentStrategy.expressLimitList) }" @click="openLimitPopup('订单快递限制', currentStrategy.expressLimitList)">
|
||
<text class="value limit-brief__text">{{ getLimitFirst(currentStrategy.expressLimitList) }}</text>
|
||
<text v-if="hasLimitList(currentStrategy.expressLimitList)" class="limit-brief__plus">+</text>
|
||
</view>
|
||
</view>
|
||
<view class="group-item">
|
||
<text class="label">省份限制:</text>
|
||
<view class="limit-brief" :class="{ 'limit-brief--disabled': !hasLimitList(currentStrategy.provinceLimitList) }" @click="openLimitPopup('省份限制', currentStrategy.provinceLimitList)">
|
||
<text class="value limit-brief__text">{{ getLimitFirst(currentStrategy.provinceLimitList) }}</text>
|
||
<text v-if="hasLimitList(currentStrategy.provinceLimitList)" class="limit-brief__plus">+</text>
|
||
</view>
|
||
</view>
|
||
<view class="group-item">
|
||
<text class="label">订单平台限制:</text>
|
||
<view class="limit-brief" :class="{ 'limit-brief--disabled': !hasLimitList(currentStrategy.platformLimitList) }" @click="openLimitPopup('订单平台限制', currentStrategy.platformLimitList)">
|
||
<text class="value limit-brief__text">{{ getLimitFirst(currentStrategy.platformLimitList) }}</text>
|
||
<text v-if="hasLimitList(currentStrategy.platformLimitList)" class="limit-brief__plus">+</text>
|
||
</view>
|
||
</view>
|
||
<view class="group-item"><text class="label">按货主分组:</text><text class="value">{{ currentStrategy.groupByOwnerText }}</text></view>
|
||
<view class="group-item"><text class="label">按快递分组:</text><text class="value">{{ currentStrategy.groupByExpressText }}</text></view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="bottom-module">
|
||
<view class="strategy-grid-container">
|
||
<view class="strategy-grid-wrapper">
|
||
<view class="grid-wrap">
|
||
<view v-for="item in strategyList" :key="`strategy-${item.id}`" class="pick-slot">
|
||
<view
|
||
class="pick-card"
|
||
:class="{ 'pick-card--active': currentStrategyId === item.id, 'pick-card--disabled': item.disabled }"
|
||
@click="selectStrategy(item)"
|
||
>
|
||
<view class="pick-card__top">
|
||
<view class="pick-card__title-marquee">
|
||
<u-notice-bar
|
||
:text="item.strategyName || '--'"
|
||
mode="horizontal"
|
||
:bg-color="item.disabled ? '#c0c4cc' : '#19be6b'"
|
||
color="#ffffff"
|
||
:volume-icon="false"
|
||
:more-icon="false"
|
||
:speed="60"
|
||
:padding="0"
|
||
:radius="0"
|
||
:autoplay="true"
|
||
></u-notice-bar>
|
||
</view>
|
||
</view>
|
||
<view v-if="item.disabled" class="pick-card__disabled-badge">已停用</view>
|
||
<view class="pick-card__main">
|
||
<text class="pick-card__num">{{ item.matchedOrderCountFiltered }}</text>
|
||
</view>
|
||
<view class="pick-card__bottom">抓:{{ item.nextFetchOrderCount }}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
</view>
|
||
|
||
<view class="bottom-action-bar">
|
||
<u-button @click="handleRefresh">刷新</u-button>
|
||
<u-button type="primary" :loading="creatingTask" :disabled="creatingTask" :customStyle="{ backgroundColor: '#2979ff', borderColor: '#2979ff' }" @click="handleGrabScatter">抓取团购</u-button>
|
||
</view>
|
||
|
||
<view v-if="limitPopup.visible" class="limit-popup-mask" @click="closeLimitPopup">
|
||
<view class="limit-popup-panel" @click.stop>
|
||
<view class="limit-popup-title">{{ limitPopup.title }}</view>
|
||
<scroll-view class="limit-popup-list" scroll-y>
|
||
<view v-for="(item, index) in limitPopup.items" :key="`${limitPopup.title}-${index}`" class="limit-popup-item">{{ item }}</view>
|
||
<view v-if="!limitPopup.items.length" class="limit-popup-empty">暂无数据</view>
|
||
</scroll-view>
|
||
<view class="limit-popup-footer">
|
||
<u-button size="mini" @click="closeLimitPopup">关闭</u-button>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
data() {
|
||
return {
|
||
title: '团购拣货策略',
|
||
loading: false,
|
||
creatingTask: false,
|
||
limitPopup: {
|
||
visible: false,
|
||
title: '',
|
||
items: []
|
||
},
|
||
currentStrategyId: '',
|
||
strategyList: []
|
||
};
|
||
},
|
||
computed: {
|
||
currentStrategy() {
|
||
return this.strategyList.find(item => String(item.id) === String(this.currentStrategyId)) || this.strategyList[0] || {};
|
||
}
|
||
},
|
||
onLoad() {
|
||
this.loadStrategyList();
|
||
},
|
||
methods: {
|
||
normalizeLimitList(value) {
|
||
if (Array.isArray(value)) {
|
||
return value
|
||
.map(item => String(item || '').trim())
|
||
.filter(Boolean);
|
||
}
|
||
if (value == null || value === '') {
|
||
return [];
|
||
}
|
||
if (typeof value === 'string') {
|
||
const text = value.trim();
|
||
if (!text || text === '--') {
|
||
return [];
|
||
}
|
||
if (text.includes('、')) {
|
||
return text.split('、').map(item => item.trim()).filter(Boolean);
|
||
}
|
||
return [text];
|
||
}
|
||
return [String(value)];
|
||
},
|
||
hasLimitList(value) {
|
||
return this.normalizeLimitList(value).length > 0;
|
||
},
|
||
getLimitFirst(value) {
|
||
const list = this.normalizeLimitList(value);
|
||
return list.length ? list[0] : '--';
|
||
},
|
||
openLimitPopup(title, value) {
|
||
const list = this.normalizeLimitList(value);
|
||
if (!list.length) {
|
||
return;
|
||
}
|
||
this.limitPopup = {
|
||
visible: true,
|
||
title,
|
||
items: list
|
||
};
|
||
},
|
||
closeLimitPopup() {
|
||
this.limitPopup.visible = false;
|
||
},
|
||
getApiErrorMessage(error, fallback = '请求失败') {
|
||
const message = error?.message || error?.msg || error?.errMsg || error?.data?.message;
|
||
return String(message || fallback);
|
||
},
|
||
extractFetchTaskPayload(response) {
|
||
const candidates = [
|
||
response?.data?.data,
|
||
response?.data,
|
||
response?.result,
|
||
response
|
||
];
|
||
for (let i = 0; i < candidates.length; i += 1) {
|
||
const current = candidates[i];
|
||
if (current && typeof current === 'object' && !Array.isArray(current)) {
|
||
return current;
|
||
}
|
||
}
|
||
return {};
|
||
},
|
||
buildFetchTaskErrorMessage(payload, fallback = '创建抓取任务失败') {
|
||
const validationErrors = Array.isArray(payload?.validation_errors) ? payload.validation_errors : [];
|
||
if (validationErrors.length) {
|
||
const firstError = validationErrors[0] || {};
|
||
const field = String(firstError.field || '').trim();
|
||
const message = String(firstError.message || '').trim();
|
||
if (field && message) {
|
||
return `${field}: ${message}`;
|
||
}
|
||
if (message) {
|
||
return message;
|
||
}
|
||
}
|
||
const rawMessage = payload?.message || payload?.msg || payload?.error_message || payload?.error;
|
||
return String(rawMessage || fallback);
|
||
},
|
||
buildFetchTaskParams() {
|
||
const strategyId = Number(this.currentStrategy?.id || 0);
|
||
return {
|
||
strategy_id: strategyId,
|
||
source: 'pda'
|
||
};
|
||
},
|
||
buildPickingRouteParams(payload) {
|
||
const taskId = payload?.task_id ?? payload?.taskId;
|
||
const params = [];
|
||
if (taskId != null && taskId !== '') {
|
||
params.push(`taskId=${encodeURIComponent(String(taskId))}`);
|
||
}
|
||
return params;
|
||
},
|
||
routeToPickingPage(payload) {
|
||
const params = this.buildPickingRouteParams(payload);
|
||
const query = params.length ? `?${params.join('&')}` : '';
|
||
this.$tools.routerTo(`/pages/work/order/picking${query}`);
|
||
},
|
||
buildWaveStrategyListParams() {
|
||
return {
|
||
calculate_next_fetch_order_count: 1,
|
||
where: {
|
||
strategy_type: 2
|
||
},
|
||
pagination: {
|
||
page: 1,
|
||
pageSize: 1000
|
||
}
|
||
};
|
||
},
|
||
extractWaveStrategyPayload(response) {
|
||
const candidates = [
|
||
response?.data?.data,
|
||
response?.data,
|
||
response?.result,
|
||
response
|
||
];
|
||
for (let i = 0; i < candidates.length; i += 1) {
|
||
const current = candidates[i];
|
||
if (current && typeof current === 'object' && !Array.isArray(current)) {
|
||
return current;
|
||
}
|
||
}
|
||
return {};
|
||
},
|
||
extractWaveStrategyList(payload, response) {
|
||
const candidates = [
|
||
payload?.list,
|
||
payload?.rows,
|
||
payload?.items,
|
||
payload?.data?.list,
|
||
response?.data?.list,
|
||
response?.data?.data?.list,
|
||
response?.list
|
||
];
|
||
for (let i = 0; i < candidates.length; i += 1) {
|
||
if (Array.isArray(candidates[i])) {
|
||
return candidates[i];
|
||
}
|
||
}
|
||
return [];
|
||
},
|
||
normalizeBooleanText(value) {
|
||
const normalized = Number(value) === 1 || value === true;
|
||
return normalized ? '是' : '否';
|
||
},
|
||
normalizeStrategyTypeText(value) {
|
||
const type = Number(value);
|
||
if (type === 1) {
|
||
return '散单';
|
||
}
|
||
if (type === 2) {
|
||
return '团购';
|
||
}
|
||
return '--';
|
||
},
|
||
normalizeBatchModeText(value) {
|
||
const map = {
|
||
0: '团购',
|
||
1: '单品单件',
|
||
2: '先拣后分',
|
||
3: '边拣边分',
|
||
4: '边拣边分H型',
|
||
5: '播种墙',
|
||
6: '流利架'
|
||
};
|
||
if (value == null || value === '') {
|
||
return '--';
|
||
}
|
||
return map[Number(value)] ?? String(value);
|
||
},
|
||
normalizeLimitText(value) {
|
||
if (Array.isArray(value)) {
|
||
return value.length ? value.join('、') : '--';
|
||
}
|
||
if (value == null || value === '') {
|
||
return '--';
|
||
}
|
||
if (typeof value === 'string') {
|
||
return value.trim() ? value : '--';
|
||
}
|
||
return String(value);
|
||
},
|
||
normalizeWaveStrategyItem(item) {
|
||
const source = item && typeof item === 'object' ? item : {};
|
||
const ownerLimitList = this.normalizeLimitList(source.allowed_owners);
|
||
const expressLimitList = this.normalizeLimitList(source.allowed_expresses);
|
||
const provinceLimitList = this.normalizeLimitList(source.allowed_provinces);
|
||
const platformLimitList = this.normalizeLimitList(source.allowed_platforms);
|
||
const status = Number(source.status);
|
||
return {
|
||
id: source.id ?? '',
|
||
status,
|
||
disabled: status === 0,
|
||
statusText: status === 0 ? '已停用' : '启用',
|
||
strategyName: source.strategy_name || '',
|
||
strategyType: source.strategy_type ?? '--',
|
||
strategyTypeText: this.normalizeStrategyTypeText(source.strategy_type),
|
||
batchMode: source.batch_mode ?? '--',
|
||
batchModeText: this.normalizeBatchModeText(source.batch_mode),
|
||
creatorName: source.creator_name || '--',
|
||
ownerLimitList,
|
||
expressLimitList,
|
||
provinceLimitList,
|
||
platformLimitList,
|
||
ownerText: ownerLimitList.length ? ownerLimitList.join('、') : '--',
|
||
orderMaxSku: Number(source.order_max_sku || 0),
|
||
orderMinSku: Number(source.order_min_sku || 0),
|
||
orderMaxQty: Number(source.order_max_qty || 0),
|
||
orderMinQty: Number(source.order_min_qty || 0),
|
||
minSameStructure: Number(source.min_same_structure || 0),
|
||
maxSameStructure: Number(source.max_same_structure || 0),
|
||
matchedOrderCountFiltered: Number(source.matched_order_count_filtered || 0),
|
||
nextFetchOrderCount: Number(source.next_fetch_order_count || 0),
|
||
expressLimitText: expressLimitList.length ? expressLimitList.join('、') : '--',
|
||
provinceLimitText: provinceLimitList.length ? provinceLimitList.join('、') : '--',
|
||
platformLimitText: platformLimitList.length ? platformLimitList.join('、') : '--',
|
||
groupByOwnerText: this.normalizeBooleanText(source.allow_cross_owner),
|
||
groupByExpressText: this.normalizeBooleanText(source.require_same_express)
|
||
};
|
||
},
|
||
parseWaveStrategyResponse(response) {
|
||
const payload = this.extractWaveStrategyPayload(response);
|
||
const list = this.extractWaveStrategyList(payload, response);
|
||
return list.map(item => this.normalizeWaveStrategyItem(item));
|
||
},
|
||
selectStrategy(item) {
|
||
if (!item || typeof item !== 'object') {
|
||
return;
|
||
}
|
||
if (item.disabled) {
|
||
uni.showToast({
|
||
title: '该策略已停用',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
this.currentStrategyId = item.id;
|
||
},
|
||
handleRefresh() {
|
||
this.loadStrategyList();
|
||
},
|
||
async handleGrabScatter() {
|
||
if (!this.currentStrategy || !this.currentStrategy.id) {
|
||
uni.showToast({
|
||
title: '请先选择策略',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
if (this.currentStrategy.disabled) {
|
||
uni.showToast({
|
||
title: '该策略已停用',
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
if (this.creatingTask) {
|
||
return;
|
||
}
|
||
|
||
this.creatingTask = true;
|
||
try {
|
||
const fetchParams = this.buildFetchTaskParams();
|
||
const response = await this.$http('order.wave.waveStrategyFetchPda', fetchParams);
|
||
const payload = this.extractFetchTaskPayload(response);
|
||
const taskId = payload?.task_id ?? payload?.taskId;
|
||
const state = String(payload?.state || '').toLowerCase();
|
||
if (taskId != null && taskId !== '') {
|
||
this.routeToPickingPage(payload);
|
||
return;
|
||
}
|
||
if (state === 'created') {
|
||
this.routeToPickingPage(payload);
|
||
return;
|
||
}
|
||
if (payload?.can_enter_pick_flow === true || payload?.canEnterPickFlow === true) {
|
||
this.routeToPickingPage(payload);
|
||
return;
|
||
}
|
||
if (state !== 'created') {
|
||
uni.showToast({
|
||
title: this.buildFetchTaskErrorMessage(payload, '创建抓取任务失败'),
|
||
icon: 'none'
|
||
});
|
||
return;
|
||
}
|
||
this.routeToPickingPage(payload);
|
||
} catch (error) {
|
||
uni.showToast({
|
||
title: this.getApiErrorMessage(error, '创建抓取任务失败'),
|
||
icon: 'none'
|
||
});
|
||
} finally {
|
||
this.creatingTask = false;
|
||
}
|
||
},
|
||
async loadStrategyList() {
|
||
this.loading = true;
|
||
try {
|
||
const params = this.buildWaveStrategyListParams();
|
||
const response = await this.$http('order.wave.waveStrategyList', params);
|
||
const parsedList = this.parseWaveStrategyResponse(response);
|
||
parsedList.sort((a, b) => Number(b.matchedOrderCountFiltered) - Number(a.matchedOrderCountFiltered));
|
||
this.strategyList = parsedList;
|
||
const firstEnabled = this.strategyList.find(item => !item.disabled);
|
||
this.currentStrategyId = firstEnabled?.id || '';
|
||
} catch (error) {
|
||
this.currentStrategyId = '';
|
||
this.strategyList = [];
|
||
uni.showToast({
|
||
title: this.getApiErrorMessage(error, '策略加载失败'),
|
||
icon: 'none'
|
||
});
|
||
} finally {
|
||
this.loading = false;
|
||
}
|
||
}
|
||
}
|
||
};
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.group-wave-page {
|
||
min-height: 100vh;
|
||
background: #f8f9fa;
|
||
position: relative;
|
||
}
|
||
|
||
.normar_container {
|
||
position: relative;
|
||
}
|
||
|
||
::v-deep .nav-title .right {
|
||
width: auto;
|
||
min-width: 170rpx;
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.nav-right-pending {
|
||
font-size: 32rpx;
|
||
line-height: 36rpx;
|
||
color: #ffffff;
|
||
padding: 8rpx 18rpx;
|
||
border-radius: 6rpx;
|
||
background: #2979ff;
|
||
}
|
||
|
||
.content-layout {
|
||
height: calc(100vh - 170rpx - env(safe-area-inset-bottom));
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 20rpx 24rpx 124rpx;
|
||
background: #f3f4f6;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.summary-strip {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
column-gap: 12rpx;
|
||
margin-bottom: 12rpx;
|
||
}
|
||
|
||
.summary-item {
|
||
background: #ffffff;
|
||
border-radius: 12rpx;
|
||
padding: 10rpx 12rpx;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4rpx;
|
||
}
|
||
|
||
.summary-item__label {
|
||
font-size: 22rpx;
|
||
color: #909399;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.summary-item__value {
|
||
font-size: 34rpx;
|
||
line-height: 1.1;
|
||
font-weight: 600;
|
||
color: #1f2d3d;
|
||
}
|
||
|
||
.top-module,
|
||
.bottom-module {
|
||
flex: 1;
|
||
min-height: 0;
|
||
}
|
||
|
||
.top-module {
|
||
padding-bottom: 8rpx;
|
||
flex: 0 0 50%;
|
||
}
|
||
|
||
.bottom-module {
|
||
padding-top: 8rpx;
|
||
flex: 0 0 50%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.strategy-grid-container {
|
||
flex: 1;
|
||
min-height: 0;
|
||
display: flex;
|
||
}
|
||
|
||
.strategy-grid-wrapper {
|
||
flex: 1;
|
||
min-height: 0;
|
||
height: 100%;
|
||
background: #ffffff;
|
||
border-radius: 14rpx;
|
||
padding: 10rpx;
|
||
box-sizing: border-box;
|
||
overflow-y: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
}
|
||
|
||
.grid-wrap {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.pick-slot {
|
||
width: 25%;
|
||
height: 210rpx;
|
||
padding: 4rpx;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.content-card {
|
||
margin: 0;
|
||
padding: 16rpx;
|
||
background: #fff;
|
||
border-radius: 14rpx;
|
||
box-sizing: border-box;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.content-card--detail {
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.card-title {
|
||
font-size: 34rpx;
|
||
font-weight: 600;
|
||
color: #303133;
|
||
margin-bottom: 14rpx;
|
||
}
|
||
|
||
.strategy-status-row {
|
||
font-size: 24rpx;
|
||
color: #f56c6c;
|
||
margin-top: -10rpx;
|
||
margin-bottom: 14rpx;
|
||
}
|
||
|
||
.card-row {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
font-size: 32rpx;
|
||
line-height: 48rpx;
|
||
}
|
||
|
||
.card-row--inline-tag {
|
||
align-items: center;
|
||
}
|
||
|
||
.card-row--inline-group {
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.group-item {
|
||
min-width: 0;
|
||
display: flex;
|
||
align-items: flex-start;
|
||
background: #f7f8fa;
|
||
border-radius: 10rpx;
|
||
padding: 8rpx 10rpx;
|
||
}
|
||
|
||
.limit-brief {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 2rpx 0;
|
||
}
|
||
|
||
.limit-brief--disabled {
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.limit-brief__text {
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
padding-right: 8rpx;
|
||
}
|
||
|
||
.limit-brief__plus {
|
||
flex: 0 0 auto;
|
||
width: 28rpx;
|
||
height: 28rpx;
|
||
line-height: 28rpx;
|
||
text-align: center;
|
||
border-radius: 50%;
|
||
background: #2979ff;
|
||
color: #ffffff;
|
||
font-size: 24rpx;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.card-grid {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 8rpx;
|
||
margin-top: 8rpx;
|
||
}
|
||
|
||
.group-item .label {
|
||
flex: 0 0 auto;
|
||
white-space: nowrap;
|
||
margin-right: 6rpx;
|
||
}
|
||
|
||
.label {
|
||
width: auto;
|
||
white-space: nowrap;
|
||
margin-right: 6rpx;
|
||
color: #909399;
|
||
}
|
||
|
||
.value {
|
||
flex: 1;
|
||
min-width: 0;
|
||
color: #303133;
|
||
}
|
||
|
||
.batch-mode-tag {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0 14rpx;
|
||
height: 40rpx;
|
||
border-radius: 20rpx;
|
||
background: #f0f2f5;
|
||
color: #606266;
|
||
font-size: 24rpx;
|
||
line-height: 1;
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.pick-card {
|
||
width: 100%;
|
||
height: 100%;
|
||
background: #fff;
|
||
border-radius: 14rpx;
|
||
padding: 8rpx;
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
border: 4rpx solid #2979ff;
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.pick-card--active {
|
||
border-color: #ff9900;
|
||
border-width: 6rpx;
|
||
background: #fff5e6;
|
||
box-shadow: 0 10rpx 24rpx rgba(255, 153, 0, 0.2);
|
||
}
|
||
|
||
.pick-card--disabled {
|
||
border-color: #dcdfe6;
|
||
background: #f5f7fa;
|
||
opacity: 0.72;
|
||
}
|
||
|
||
.pick-card--disabled .pick-card__title-marquee {
|
||
background: #c0c4cc;
|
||
}
|
||
|
||
.pick-card--disabled .pick-card__bottom {
|
||
background: #c0c4cc;
|
||
}
|
||
|
||
.pick-card__disabled-badge {
|
||
align-self: flex-end;
|
||
margin: 8rpx 8rpx 0 0;
|
||
padding: 0 10rpx;
|
||
border-radius: 8rpx;
|
||
background: #909399;
|
||
color: #ffffff;
|
||
font-size: 18rpx;
|
||
line-height: 28rpx;
|
||
}
|
||
|
||
.pick-card__top {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
min-height: 34rpx;
|
||
}
|
||
|
||
.pick-card__title-marquee {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 40rpx;
|
||
padding: 0 8rpx;
|
||
box-sizing: border-box;
|
||
background: #19be6b;
|
||
border-bottom-right-radius: 12rpx;
|
||
}
|
||
|
||
::v-deep .pick-card__title-marquee .u-notice-bar {
|
||
height: 40rpx;
|
||
line-height: 40rpx;
|
||
padding: 0;
|
||
}
|
||
|
||
::v-deep .pick-card__title-marquee .u-notice__content__text {
|
||
font-size: 22rpx;
|
||
}
|
||
|
||
::v-deep .pick-card__title-marquee .u-notice__left-icon,
|
||
::v-deep .pick-card__title-marquee .u-notice__right-icon {
|
||
display: none !important;
|
||
}
|
||
|
||
.pick-card__main {
|
||
display: flex;
|
||
align-items: flex-end;
|
||
justify-content: center;
|
||
margin-top: 6rpx;
|
||
}
|
||
|
||
.pick-card__num {
|
||
font-size: 36rpx;
|
||
line-height: 1;
|
||
font-weight: 700;
|
||
color: #303133;
|
||
}
|
||
|
||
.pick-card__unit {
|
||
margin-left: 4rpx;
|
||
font-size: 18rpx;
|
||
line-height: 24rpx;
|
||
color: #606266;
|
||
}
|
||
|
||
.pick-card__sub {
|
||
text-align: center;
|
||
font-size: 18rpx;
|
||
line-height: 24rpx;
|
||
color: #909399;
|
||
}
|
||
|
||
.pick-card__bottom {
|
||
margin-top: 6rpx;
|
||
background: #2979ff;
|
||
color: #fff;
|
||
text-align: center;
|
||
border-radius: 10rpx;
|
||
font-size: 32rpx;
|
||
line-height: 44rpx;
|
||
padding: 2rpx 6rpx;
|
||
}
|
||
|
||
.empty-wrap {
|
||
min-height: 460rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: #fff;
|
||
border-radius: 14rpx;
|
||
}
|
||
|
||
.empty-text {
|
||
font-size: 26rpx;
|
||
color: #909399;
|
||
}
|
||
|
||
.bottom-action-bar {
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
column-gap: 12rpx;
|
||
padding: 12rpx 24rpx calc(12rpx + env(safe-area-inset-bottom));
|
||
background: #fff;
|
||
border-top: 1rpx solid #f0f0f0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.limit-popup-mask {
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
background: rgba(0, 0, 0, 0.45);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 999;
|
||
padding: 32rpx;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.limit-popup-panel {
|
||
width: 100%;
|
||
max-width: 640rpx;
|
||
max-height: 70vh;
|
||
background: #ffffff;
|
||
border-radius: 16rpx;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.limit-popup-title {
|
||
padding: 22rpx 24rpx;
|
||
font-size: 30rpx;
|
||
font-weight: 600;
|
||
color: #303133;
|
||
border-bottom: 1rpx solid #f0f2f5;
|
||
}
|
||
|
||
.limit-popup-list {
|
||
max-height: 52vh;
|
||
padding: 8rpx 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.limit-popup-item {
|
||
padding: 16rpx 24rpx;
|
||
font-size: 28rpx;
|
||
line-height: 40rpx;
|
||
color: #303133;
|
||
border-bottom: 1rpx solid #f7f7f8;
|
||
}
|
||
|
||
.limit-popup-empty {
|
||
padding: 36rpx 24rpx;
|
||
text-align: center;
|
||
font-size: 26rpx;
|
||
color: #909399;
|
||
}
|
||
|
||
.limit-popup-footer {
|
||
padding: 16rpx 24rpx 20rpx;
|
||
border-top: 1rpx solid #f0f2f5;
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
@media (min-width: 960px) {
|
||
.top-module {
|
||
flex-basis: 42%;
|
||
}
|
||
|
||
.bottom-module {
|
||
flex-basis: 48%;
|
||
}
|
||
}
|
||
</style>
|