|
|
|
|
@ -0,0 +1,582 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view class="page-container">
|
|
|
|
|
<NavBar :title="t('sparepartInventory.moduleName')" />
|
|
|
|
|
|
|
|
|
|
<view class="filter-bar">
|
|
|
|
|
<view class="scan-input-row">
|
|
|
|
|
<input
|
|
|
|
|
id="sparepart-inventory-scan-input"
|
|
|
|
|
v-model="searchKeyword"
|
|
|
|
|
class="scan-input"
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="请输入备件编码或名称"
|
|
|
|
|
placeholder-class="scan-placeholder"
|
|
|
|
|
confirm-type="done"
|
|
|
|
|
@confirm="onScanInputConfirm"
|
|
|
|
|
/>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="warehouse-box" @click="openWarehousePicker">
|
|
|
|
|
<text class="warehouse-box-text">{{ selectedWarehouseLabel || t('sparepartInventory.allWarehouse') }}</text>
|
|
|
|
|
<uni-icons type="bottom" size="14" color="#9ca3af"></uni-icons>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="reset-filter-btn" @click="resetFilters">{{ t('functionCommon.reset') }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<scroll-view
|
|
|
|
|
scroll-y
|
|
|
|
|
class="content-scroll"
|
|
|
|
|
:scroll-top="scrollTop"
|
|
|
|
|
@scroll="handleScroll"
|
|
|
|
|
@scrolltolower="loadMore"
|
|
|
|
|
:lower-threshold="80"
|
|
|
|
|
>
|
|
|
|
|
<view class="list-wrap">
|
|
|
|
|
<view v-for="item in list" :key="item.id" class="inventory-card">
|
|
|
|
|
<view class="card-main">
|
|
|
|
|
<view class="card-top">
|
|
|
|
|
<text class="product-name">{{ textValue(item.barCode) }}</text>
|
|
|
|
|
<text class="category-chip">{{ textValue(item.categoryName) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="info-row">
|
|
|
|
|
<text class="info-label">{{ t('sparepartInventory.productName') }}</text>
|
|
|
|
|
<text class="info-value">{{ textValue(item.productName) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="info-row">
|
|
|
|
|
<text class="info-label">{{ t('sparepartInventory.warehouse') }}</text>
|
|
|
|
|
<text class="info-value">{{ textValue(item.warehouseName) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="info-row">
|
|
|
|
|
<text class="info-label">{{ t('sparepartInventory.area') }}</text>
|
|
|
|
|
<text class="info-value">{{ textValue(item.areaName) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="info-row">
|
|
|
|
|
<text class="info-label">{{ t('sparepartInventory.stockDisplay') }}</text>
|
|
|
|
|
<text class="info-value count-value">{{ textValue(item.stockDisplay) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="info-row">
|
|
|
|
|
<text class="info-label">{{ t('sparepartInventory.count') }}</text>
|
|
|
|
|
<text class="info-value">{{ textValue(item.count) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="info-row">
|
|
|
|
|
<text class="info-label">{{ t('sparepartInventory.unit') }}</text>
|
|
|
|
|
<text class="info-value">{{ textValue(item.unitName) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="info-row">
|
|
|
|
|
<text class="info-label">{{ t('sparepartInventory.packagingRule') }}</text>
|
|
|
|
|
<text class="info-value">{{ textValue(item.packagingRule) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="info-row">
|
|
|
|
|
<text class="info-label">{{ t('sparepartInventory.recentInTime') }}</text>
|
|
|
|
|
<text class="info-value">{{ formatDateTime(item.recentInTime) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="info-row">
|
|
|
|
|
<text class="info-label">{{ t('sparepartInventory.recentOutTime') }}</text>
|
|
|
|
|
<text class="info-value">{{ formatDateTime(item.recentOutTime) }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view v-if="loading && pageNo === 1" class="loading-text">{{ t('functionCommon.loading') }}</view>
|
|
|
|
|
<view v-else-if="!list.length" class="empty-text">{{ t('sparepartInventory.empty') }}</view>
|
|
|
|
|
<view v-else-if="loadingMore" class="loading-text">{{ t('functionCommon.loadingMore') }}</view>
|
|
|
|
|
<view v-else-if="finished" class="finished-text">{{ t('functionCommon.noMoreData') }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
|
|
|
|
|
<view v-if="showGoTop" class="go-top-btn" @click="goTop">
|
|
|
|
|
<text class="go-top-icon">↑</text>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<sv-focus-no-keyboard ref="focusNoKeyboardRef"></sv-focus-no-keyboard>
|
|
|
|
|
|
|
|
|
|
<uni-popup ref="warehousePickerRef" type="bottom" background-color="#fff">
|
|
|
|
|
<view class="picker-content">
|
|
|
|
|
<view class="picker-header">
|
|
|
|
|
<text class="picker-title">{{ t('sparepartInventory.warehousePlaceholder') }}</text>
|
|
|
|
|
<view class="picker-clear" @click="resetWarehouse">
|
|
|
|
|
<text class="picker-clear-text">{{ t('functionCommon.reset') }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<scroll-view scroll-y class="picker-list">
|
|
|
|
|
<view
|
|
|
|
|
v-for="item in warehouseOptions"
|
|
|
|
|
:key="String(item.value)"
|
|
|
|
|
class="picker-item"
|
|
|
|
|
@click="selectWarehouse(item)"
|
|
|
|
|
>
|
|
|
|
|
<text class="picker-text">{{ item.label }}</text>
|
|
|
|
|
<text v-if="selectedWarehouse === item.value" class="picker-check">✓</text>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
</view>
|
|
|
|
|
</uni-popup>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import { ref, computed, nextTick } from 'vue'
|
|
|
|
|
import { onLoad, onReady } from '@dcloudio/uni-app'
|
|
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
|
import NavBar from '@/components/common/NavBar.vue'
|
|
|
|
|
import { getSparepartInventoryPage, getWarehouseSimpleList } from '@/api/mes/sparepart'
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
const warehousePickerRef = ref(null)
|
|
|
|
|
|
|
|
|
|
const list = ref([])
|
|
|
|
|
const loading = ref(false)
|
|
|
|
|
const loadingMore = ref(false)
|
|
|
|
|
const finished = ref(false)
|
|
|
|
|
const pageNo = ref(1)
|
|
|
|
|
const pageSize = ref(10)
|
|
|
|
|
const total = ref(0)
|
|
|
|
|
const searchKeyword = ref('')
|
|
|
|
|
const selectedWarehouse = ref('')
|
|
|
|
|
const scrollTop = ref(0)
|
|
|
|
|
const showGoTop = ref(false)
|
|
|
|
|
|
|
|
|
|
const warehouseOptions = ref([])
|
|
|
|
|
|
|
|
|
|
// 红外扫码不弹键盘
|
|
|
|
|
const focusNoKeyboardRef = ref(null)
|
|
|
|
|
const keywordInputSelector = '#sparepart-inventory-scan-input input, input#sparepart-inventory-scan-input'
|
|
|
|
|
|
|
|
|
|
function focusKeywordNoKeyboard() {
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
focusNoKeyboardRef.value?.focus(keywordInputSelector)
|
|
|
|
|
}, 80)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const selectedWarehouseLabel = computed(() => {
|
|
|
|
|
const current = warehouseOptions.value.find((item) => item.value === selectedWarehouse.value)
|
|
|
|
|
return current ? current.label : ''
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
onLoad(async () => {
|
|
|
|
|
await loadWarehouseList()
|
|
|
|
|
await fetchList(true)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
onReady(() => {
|
|
|
|
|
focusKeywordNoKeyboard()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
async function loadWarehouseList() {
|
|
|
|
|
try {
|
|
|
|
|
const res = await getWarehouseSimpleList()
|
|
|
|
|
const data = Array.isArray(res) ? res : (Array.isArray(res?.data) ? res.data : [])
|
|
|
|
|
warehouseOptions.value = data.map((w) => ({
|
|
|
|
|
value: String(w.id),
|
|
|
|
|
label: w.name || w.warehouseName || String(w.id)
|
|
|
|
|
}))
|
|
|
|
|
} catch (e) {
|
|
|
|
|
console.error('loadWarehouseList error', e)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 缓存全部数据用于前端搜索
|
|
|
|
|
const allList = ref([])
|
|
|
|
|
|
|
|
|
|
async function fetchAllForSearch(warehouseId) {
|
|
|
|
|
const all = []
|
|
|
|
|
let currentPage = 1
|
|
|
|
|
const maxPage = 10 // 最多拉10页,防止无限循环
|
|
|
|
|
while (currentPage <= maxPage) {
|
|
|
|
|
const res = await getSparepartInventoryPage({
|
|
|
|
|
pageNo: currentPage,
|
|
|
|
|
pageSize: 100,
|
|
|
|
|
categoryType: 3,
|
|
|
|
|
warehouseId: warehouseId || undefined
|
|
|
|
|
})
|
|
|
|
|
const page = normalizePageData(res)
|
|
|
|
|
all.push(...page.list)
|
|
|
|
|
if (page.list.length < 100) break
|
|
|
|
|
currentPage++
|
|
|
|
|
}
|
|
|
|
|
return all
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function fetchList(reset) {
|
|
|
|
|
if (reset) {
|
|
|
|
|
pageNo.value = 1
|
|
|
|
|
finished.value = false
|
|
|
|
|
}
|
|
|
|
|
if (pageNo.value === 1) {
|
|
|
|
|
loading.value = true
|
|
|
|
|
} else {
|
|
|
|
|
loadingMore.value = true
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
const keyword = searchKeyword.value.trim().toLowerCase()
|
|
|
|
|
|
|
|
|
|
if (keyword && reset) {
|
|
|
|
|
// 有搜索关键词:加载全部数据再前端过滤
|
|
|
|
|
const allData = await fetchAllForSearch(selectedWarehouse.value)
|
|
|
|
|
allList.value = allData
|
|
|
|
|
// 判断是否包含二维码ID格式(如 PRODUCTMATERIAL-330)
|
|
|
|
|
const scanMatch = keyword.match(/(?:productmaterial|spare|material|product)[-_](\d+)/i)
|
|
|
|
|
let filtered
|
|
|
|
|
if (scanMatch) {
|
|
|
|
|
const targetId = Number(scanMatch[1])
|
|
|
|
|
filtered = allData.filter(item => Number(item.productId) === targetId)
|
|
|
|
|
} else {
|
|
|
|
|
filtered = allData.filter(item => {
|
|
|
|
|
const bc = String(item.barCode || '').toLowerCase()
|
|
|
|
|
const pn = String(item.productName || '').toLowerCase()
|
|
|
|
|
return bc.includes(keyword) || pn.includes(keyword)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
list.value = filtered
|
|
|
|
|
total.value = filtered.length
|
|
|
|
|
finished.value = true
|
|
|
|
|
} else {
|
|
|
|
|
// 正常分页加载
|
|
|
|
|
const res = await getSparepartInventoryPage({
|
|
|
|
|
pageNo: pageNo.value,
|
|
|
|
|
pageSize: pageSize.value,
|
|
|
|
|
categoryType: 3,
|
|
|
|
|
warehouseId: selectedWarehouse.value || undefined
|
|
|
|
|
})
|
|
|
|
|
const page = normalizePageData(res)
|
|
|
|
|
total.value = page.total
|
|
|
|
|
list.value = reset ? page.list : [...list.value, ...page.list]
|
|
|
|
|
finished.value = list.value.length >= total.value || page.list.length < pageSize.value
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
if (!reset) pageNo.value = Math.max(1, pageNo.value - 1)
|
|
|
|
|
console.error('[sparepartInventory] fetchList error:', e)
|
|
|
|
|
uni.showToast({ title: t('functionCommon.loadFailed'), icon: 'none' })
|
|
|
|
|
} finally {
|
|
|
|
|
loading.value = false
|
|
|
|
|
loadingMore.value = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function normalizePageData(res) {
|
|
|
|
|
const root = res && res.data !== undefined ? res.data : res
|
|
|
|
|
const pageResult = root?.pageResult || root?.data?.pageResult || root?.data || root || {}
|
|
|
|
|
const candidateList = pageResult?.list || pageResult?.rows || pageResult?.records || []
|
|
|
|
|
const candidateTotal = pageResult?.total ?? root?.total ?? root?.data?.total ?? candidateList.length
|
|
|
|
|
return {
|
|
|
|
|
list: Array.isArray(candidateList) ? candidateList : [],
|
|
|
|
|
total: Number(candidateTotal || 0)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 扫码或手动输入确认:先加载全部数据再前端搜索
|
|
|
|
|
async function onScanInputConfirm() {
|
|
|
|
|
const code = searchKeyword.value.trim()
|
|
|
|
|
if (!code) return
|
|
|
|
|
allList.value = []
|
|
|
|
|
await fetchList(true)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function resetFilters() {
|
|
|
|
|
searchKeyword.value = ''
|
|
|
|
|
selectedWarehouse.value = ''
|
|
|
|
|
allList.value = []
|
|
|
|
|
// 重置后恢复正常分页
|
|
|
|
|
pageNo.value = 1
|
|
|
|
|
finished.value = false
|
|
|
|
|
await fetchList(true)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function openWarehousePicker() {
|
|
|
|
|
warehousePickerRef.value?.open()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function selectWarehouse(item) {
|
|
|
|
|
selectedWarehouse.value = item.value
|
|
|
|
|
warehousePickerRef.value?.close()
|
|
|
|
|
allList.value = []
|
|
|
|
|
pageNo.value = 1
|
|
|
|
|
finished.value = false
|
|
|
|
|
await fetchList(true)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function resetWarehouse() {
|
|
|
|
|
selectedWarehouse.value = ''
|
|
|
|
|
warehousePickerRef.value?.close()
|
|
|
|
|
allList.value = []
|
|
|
|
|
pageNo.value = 1
|
|
|
|
|
finished.value = false
|
|
|
|
|
await fetchList(true)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function loadMore() {
|
|
|
|
|
// 有关键词搜索时不触发分页加载(全量数据已一次性取回)
|
|
|
|
|
if (searchKeyword.value.trim()) return
|
|
|
|
|
if (loading.value || loadingMore.value || finished.value) return
|
|
|
|
|
pageNo.value += 1
|
|
|
|
|
await fetchList(false)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function handleScroll(e) {
|
|
|
|
|
const top = e?.detail?.scrollTop || 0
|
|
|
|
|
showGoTop.value = top > 600
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function goTop() {
|
|
|
|
|
scrollTop.value = 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function textValue(value) {
|
|
|
|
|
if (value === 0) return '0'
|
|
|
|
|
if (value === false) return t('functionCommon.no')
|
|
|
|
|
if (value === true) return t('functionCommon.yes')
|
|
|
|
|
if (value === null || value === undefined) return '-'
|
|
|
|
|
const text = String(value).trim()
|
|
|
|
|
return text || '-'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function formatDateTime(value) {
|
|
|
|
|
if (!value) return '-'
|
|
|
|
|
if (Array.isArray(value) && value.length >= 3) {
|
|
|
|
|
const [y, m, d, hh = 0, mm = 0, ss = 0] = value
|
|
|
|
|
const pad = (n) => String(n).padStart(2, '0')
|
|
|
|
|
return `${y}-${pad(m)}-${pad(d)} ${pad(hh)}:${pad(mm)}:${pad(ss)}`
|
|
|
|
|
}
|
|
|
|
|
const text = String(value).trim()
|
|
|
|
|
if (!text) return '-'
|
|
|
|
|
const numeric = Number(text)
|
|
|
|
|
if (Number.isFinite(numeric)) {
|
|
|
|
|
const timestamp = text.length === 10 ? numeric * 1000 : numeric
|
|
|
|
|
const date = new Date(timestamp)
|
|
|
|
|
if (!Number.isNaN(date.getTime())) {
|
|
|
|
|
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')} ${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}:${String(date.getSeconds()).padStart(2, '0')}`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const date = new Date(text)
|
|
|
|
|
if (!Number.isNaN(date.getTime())) {
|
|
|
|
|
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')} ${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}:${String(date.getSeconds()).padStart(2, '0')}`
|
|
|
|
|
}
|
|
|
|
|
return text
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.page-container {
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
background-color: #f3f4f6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.filter-bar {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 12rpx;
|
|
|
|
|
padding: 18rpx 24rpx 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.scan-input-row {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.scan-input {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 72rpx;
|
|
|
|
|
padding: 0 20rpx;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
color: #333;
|
|
|
|
|
background: #fff;
|
|
|
|
|
border: 1rpx solid #d0d5dd;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.scan-placeholder {
|
|
|
|
|
color: #9ca3af;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.warehouse-box {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
width: 180rpx;
|
|
|
|
|
height: 72rpx;
|
|
|
|
|
padding: 0 14rpx;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
border: 1rpx solid #d0d5dd;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.warehouse-box-text {
|
|
|
|
|
color: #374151;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
max-width: 110rpx;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.reset-filter-btn {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 96rpx;
|
|
|
|
|
height: 72rpx;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #4b5563;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
border: 1rpx solid #d0d5dd;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content-scroll {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: calc(100vh - 120rpx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.list-wrap {
|
|
|
|
|
padding: 0 28rpx 140rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.inventory-card {
|
|
|
|
|
margin-bottom: 18rpx;
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card-main {
|
|
|
|
|
padding: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card-top {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.product-name {
|
|
|
|
|
max-width: 420rpx;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
line-height: 44rpx;
|
|
|
|
|
color: #24456b;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.category-chip {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
padding: 8rpx 18rpx;
|
|
|
|
|
border-radius: 999rpx;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
color: #15803d;
|
|
|
|
|
background: #dcfce7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.info-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: 20rpx;
|
|
|
|
|
margin-top: 14rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.info-label {
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #9ca3af;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.info-value {
|
|
|
|
|
flex: 1;
|
|
|
|
|
text-align: right;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
color: #374151;
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.count-value {
|
|
|
|
|
color: #1f4b79;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.loading-text,
|
|
|
|
|
.empty-text,
|
|
|
|
|
.finished-text {
|
|
|
|
|
padding: 28rpx 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #9ca3af;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.empty-text {
|
|
|
|
|
padding-top: 160rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.go-top-btn {
|
|
|
|
|
position: fixed;
|
|
|
|
|
right: 32rpx;
|
|
|
|
|
bottom: calc(56rpx + env(safe-area-inset-bottom));
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 92rpx;
|
|
|
|
|
height: 92rpx;
|
|
|
|
|
border-radius: 46rpx;
|
|
|
|
|
background: rgba(31, 75, 121, 0.84);
|
|
|
|
|
box-shadow: 0 14rpx 30rpx rgba(24, 63, 108, 0.24);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.go-top-icon {
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.picker-content {
|
|
|
|
|
padding: 24rpx 24rpx 36rpx;
|
|
|
|
|
border-radius: 28rpx 28rpx 0 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.picker-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.picker-title {
|
|
|
|
|
color: #1f2d3d;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.picker-clear-text {
|
|
|
|
|
color: #1f61ff;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.picker-list {
|
|
|
|
|
max-height: 480rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.picker-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 26rpx 6rpx;
|
|
|
|
|
border-bottom: 1rpx solid #edf1f6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.picker-text {
|
|
|
|
|
color: #243447;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.picker-check {
|
|
|
|
|
color: #1f61ff;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
</style>
|