<template>
|
<view class="work-order">
|
<!-- 通用页面头部 -->
|
<PageHeader title="生产工单" @back="goBack" />
|
|
<!-- 搜索区域 -->
|
<view class="search-section">
|
<view class="search-bar">
|
<view class="search-input">
|
<up-input
|
class="search-text"
|
placeholder="请输入工单编号搜索"
|
v-model="searchForm.workOrderNo"
|
@confirm="handleQuery"
|
clearable
|
/>
|
</view>
|
|
<view class="filter-button" @click="handleQuery">
|
<up-icon name="search" size="24" color="#999"></up-icon>
|
</view>
|
</view>
|
</view>
|
|
<!-- 工单列表 -->
|
<scroll-view
|
scroll-y
|
class="ledger-list"
|
v-if="tableData.length > 0"
|
lower-threshold="80"
|
@scrolltolower="loadMore"
|
>
|
<view v-for="(item, index) in tableData" :key="item.id || index" class="ledger-item">
|
<view class="item-header">
|
<view class="item-left">
|
<view class="document-icon">
|
<up-icon name="file-text" size="16" color="#ffffff"></up-icon>
|
</view>
|
<text class="item-id">{{ item.workOrderNo || '无' }}</text>
|
</view>
|
<view class="item-right">
|
<text class="item-tag tag-type">{{ item.workOrderType || '无' }}</text>
|
</view>
|
</view>
|
|
<up-divider></up-divider>
|
|
<view class="item-details">
|
<view class="detail-row">
|
<text class="detail-label">产品名称</text>
|
<text class="detail-value">{{ item.productName || '无' }}</text>
|
</view>
|
<view class="detail-row">
|
<text class="detail-label">规格型号</text>
|
<text class="detail-value">{{ item.model || '无' }}</text>
|
</view>
|
<view class="detail-row">
|
<text class="detail-label">机台名称</text>
|
<text class="detail-value">{{ item.deviceName || '无' }}</text>
|
</view>
|
<view class="detail-row">
|
<text class="detail-label">工序名称 / 计量单位</text>
|
<text class="detail-value">{{ item.processName || '无' }} / {{ item.unit || '无' }}</text>
|
</view>
|
<view class="detail-row">
|
<text class="detail-label">需求/完成数量</text>
|
<text class="detail-value">{{ item.planQuantity || '无' }} / {{ item.completeQuantity || '无' }}</text>
|
</view>
|
|
<view class="progress-section">
|
<text class="detail-label">完成进度</text>
|
<view class="progress-bar">
|
<up-line-progress
|
:percentage="toProgressPercentage(item.completionStatus)"
|
activeColor="#2979ff"
|
:showText="true"
|
></up-line-progress>
|
</view>
|
</view>
|
<view class="detail-row">
|
<text class="detail-label">实际开始</text>
|
<text class="detail-value">{{ item.startProductTime || '-' }}</text>
|
</view>
|
<view class="detail-row">
|
<text class="detail-label">实际结束</text>
|
<text class="detail-value">{{ item.endProductTime || '-' }}</text>
|
</view>
|
</view>
|
|
<view class="item-actions" v-if="!item.endProductTime">
|
<up-button
|
text="开始报工"
|
size="mini"
|
type="primary"
|
:disabled="!canStartProduction(item) || startSubmittingId === item.id"
|
@click="handleStartProduction(item)"
|
/>
|
<up-button
|
text="结束报工"
|
size="mini"
|
type="success"
|
:disabled="!canEndProduction(item)"
|
@click="openEndReport(item)"
|
/>
|
</view>
|
</view>
|
<up-loadmore :status="loadStatus" />
|
</scroll-view>
|
|
<view v-else-if="!loading" class="no-data">
|
<up-empty mode="data" text="暂无工单数据"></up-empty>
|
</view>
|
|
<!-- 流转卡弹窗 -->
|
<up-popup :show="transferCardVisible" mode="center" @close="transferCardVisible = false" round="10">
|
<view class="qr-popup">
|
<text class="qr-title">工单流转卡二维码</text>
|
<view class="qr-box">
|
<geek-qrcode
|
v-if="transferCardRowData"
|
:val="String(transferCardRowData.id)"
|
:size="200"
|
/>
|
</view>
|
<text class="qr-info" v-if="transferCardRowData">{{ transferCardRowData.workOrderNo }}</text>
|
<up-button text="关闭" @click="transferCardVisible = false" style="margin-top: 20px;"></up-button>
|
</view>
|
</up-popup>
|
|
<!-- 结束报工弹窗 -->
|
<up-popup
|
v-model:show="endReportVisible"
|
mode="bottom"
|
:round="20"
|
:safeAreaInsetBottom="true"
|
@close="closeEndReport"
|
>
|
<view class="report-modal">
|
<view class="modal-header">
|
<view class="modal-header-left">
|
<text class="modal-title">结束报工</text>
|
<text class="modal-subtitle" v-if="endReportRow">
|
{{ endReportRow.workOrderNo || '-' }} · {{ endReportRow.deviceName || '-' }}
|
</text>
|
</view>
|
<view class="close-btn" @click="closeEndReport">
|
<up-icon name="close" size="20" color="#999"></up-icon>
|
</view>
|
</view>
|
|
<scroll-view class="modal-content" scroll-y>
|
<view class="report-summary" v-if="endReportRow">
|
<view class="summary-left">
|
<text class="summary-title">{{ endReportRow.productName || '-' }}</text>
|
<text class="summary-sub">{{ endReportRow.processName || '-' }} · {{ endReportRow.model || '-' }}</text>
|
</view>
|
<view class="summary-right">
|
<text class="summary-num">{{ endReportForm.planQuantity || '0' }}</text>
|
<text class="summary-label">待生产</text>
|
</view>
|
</view>
|
|
<up-form :model="endReportForm" labelWidth="120">
|
<view class="form-section">
|
<text class="section-title">数量信息</text>
|
<up-form-item label="待生产数量">
|
<up-input v-model="endReportForm.planQuantity" disabled />
|
</up-form-item>
|
<up-form-item label="本次生产数量" required>
|
<up-input v-model="endReportForm.quantity" disabled />
|
</up-form-item>
|
<up-form-item label="补产数量">
|
<up-input v-model="endReportForm.replenishQty" type="number" placeholder="请输入" />
|
</up-form-item>
|
<up-form-item label="报废数量">
|
<up-input v-model="endReportForm.scrapQty" type="number" placeholder="请输入" />
|
</up-form-item>
|
</view>
|
|
<view class="form-section">
|
<up-form-item label="班组人员">
|
<up-input
|
v-model="teamDisplayText"
|
readonly
|
placeholder="请选择(可多选)"
|
@click="openTeamPicker"
|
suffixIcon="arrow-down"
|
/>
|
</up-form-item>
|
<up-form-item label="审核人" required>
|
<up-input
|
v-model="endReportForm.auditUserName"
|
readonly
|
placeholder="请选择"
|
@click="openAuditPicker"
|
suffixIcon="arrow-down"
|
/>
|
</up-form-item>
|
</view>
|
</up-form>
|
<view style="height: 24px;"></view>
|
</scroll-view>
|
|
<view class="modal-footer">
|
<up-button
|
text="取消"
|
type="info"
|
plain
|
@click="closeEndReport"
|
:customStyle="{ marginRight: '12px', flex: 1 }"
|
/>
|
<up-button text="提交" type="primary" @click="submitEndReport" :customStyle="{ flex: 1 }" />
|
</view>
|
</view>
|
</up-popup>
|
|
<!-- 班组选择弹窗 -->
|
<up-popup v-model:show="teamPickerVisible" mode="bottom" :round="20" :safeAreaInsetBottom="true">
|
<view class="team-modal">
|
<view class="modal-header">
|
<text class="modal-title">选择班组成员</text>
|
<view class="close-btn" @click="teamPickerVisible = false">
|
<up-icon name="close" size="20" color="#999"></up-icon>
|
</view>
|
</view>
|
<scroll-view class="team-content" scroll-y>
|
<up-checkbox-group v-model="teamCheckedIds" placement="column">
|
<up-checkbox
|
v-for="u in userOptions"
|
:key="u.value"
|
:label="u.name"
|
:name="String(u.value)"
|
:customStyle="{ marginBottom: '10px' }"
|
/>
|
</up-checkbox-group>
|
</scroll-view>
|
<view class="modal-footer">
|
<up-button text="取消" type="info" plain @click="teamPickerVisible = false" />
|
<up-button text="确定" type="primary" @click="confirmTeamPicker" />
|
</view>
|
</view>
|
</up-popup>
|
|
<!-- 审核人选择器 -->
|
<up-action-sheet
|
:show="auditPickerVisible"
|
:actions="auditActions"
|
title="选择审核人"
|
@select="onAuditSelect"
|
@close="auditPickerVisible = false"
|
/>
|
|
<!-- 时间选择器 -->
|
<up-datetime-picker
|
:show="startTimePickerVisible"
|
v-model="startTimeValue"
|
mode="datetime"
|
@confirm="onStartTimeConfirm"
|
@cancel="startTimePickerVisible = false"
|
/>
|
<up-datetime-picker
|
:show="endTimePickerVisible"
|
v-model="endTimeValue"
|
mode="datetime"
|
@confirm="onEndTimeConfirm"
|
@cancel="endTimePickerVisible = false"
|
/>
|
|
<!-- 附件组件 -->
|
<FilesDia ref="workOrderFilesRef" />
|
</view>
|
</template>
|
|
<script setup>
|
import { ref, reactive, toRefs, computed, getCurrentInstance } from "vue";
|
import { onShow, onLoad, onReachBottom } from "@dcloudio/uni-app";
|
import { productWorkOrderPage, addProductMain, startProduction, getProductWorkOrderById } from "@/api/productionManagement/productionReporting.js";
|
import { userListNoPageByTenantId } from "@/api/system/user.js";
|
import PageHeader from "@/components/PageHeader.vue";
|
import FilesDia from "./components/filesDia.vue";
|
import useUserStore from "@/store/modules/user";
|
|
const userStore = useUserStore();
|
|
const loading = ref(false);
|
const tableData = ref([]);
|
const loadStatus = ref('loadmore');
|
const transferCardVisible = ref(false);
|
const transferCardRowData = ref(null);
|
const workOrderFilesRef = ref(null);
|
const startSubmittingId = ref(null);
|
|
const endReportVisible = ref(false);
|
const endReportRow = ref(null);
|
const endReportForm = reactive({
|
planQuantity: "",
|
quantity: "",
|
replenishQty: "0",
|
scrapQty: "0",
|
teamList: [],
|
startTime: "",
|
endTime: "",
|
auditUserId: "",
|
auditUserName: "",
|
userId: "",
|
userName: "",
|
workOrderId: "",
|
reportWork: "",
|
productProcessRouteItemId: "",
|
productMainId: null,
|
});
|
|
const userOptions = ref([]);
|
const auditPickerVisible = ref(false);
|
const auditActions = computed(() => userOptions.value.map(u => ({ name: u.name, value: u.value })));
|
|
const teamPickerVisible = ref(false);
|
const teamCheckedIds = ref([]);
|
const teamDisplayText = computed(() => {
|
const list = Array.isArray(endReportForm.teamList) ? endReportForm.teamList : [];
|
const names = list.map(i => String(i?.userName ?? "")).filter(Boolean);
|
if (names.length === 0) return "";
|
if (names.length <= 2) return names.join("、");
|
return `${names.slice(0, 2).join("、")}等${names.length}人`;
|
});
|
|
const startTimePickerVisible = ref(false);
|
const endTimePickerVisible = ref(false);
|
const startTimeValue = ref(Date.now());
|
const endTimeValue = ref(Date.now());
|
|
const routeOrderRow = ref(null);
|
|
const page = reactive({
|
current: 1,
|
size: 10,
|
total: 0,
|
});
|
|
const data = reactive({
|
searchForm: {
|
workOrderNo: "",
|
},
|
});
|
const { searchForm } = toRefs(data);
|
|
const goBack = () => {
|
uni.navigateBack();
|
};
|
|
const handleQuery = () => {
|
page.current = 1;
|
tableData.value = [];
|
loadStatus.value = "loadmore";
|
getList();
|
};
|
|
const showToast = (message) => {
|
uni.showToast({ title: message, icon: "none" });
|
};
|
|
const ensureUserInfo = async () => {
|
if (userStore.id) return;
|
try {
|
await userStore.getInfo();
|
} catch {
|
}
|
};
|
|
const ensureUserOptions = async () => {
|
if (userOptions.value.length > 0) return;
|
try {
|
const res = await userListNoPageByTenantId();
|
const users = res?.data || [];
|
users.unshift({
|
nickName:"任意用户",
|
userId:"-1",
|
})
|
userOptions.value = users.map(u => ({
|
name: u?.nickName || "",
|
value: String(u?.userId ?? ""),
|
})).filter(u => u.value);
|
} catch {
|
userOptions.value = [];
|
}
|
};
|
|
const getList = () => {
|
console.log(searchForm.value);
|
if (loading.value) return;
|
loading.value = true;
|
|
const params = { ...searchForm.value, ...page };
|
|
productWorkOrderPage(params).then((res) => {
|
loading.value = false;
|
const records = res.data.records || [];
|
tableData.value = page.current === 1 ? records : [...tableData.value, ...records];
|
page.total = res.data.total;
|
|
if (tableData.value.length >= page.total) {
|
loadStatus.value = 'nomore';
|
} else {
|
loadStatus.value = 'loadmore';
|
}
|
}).catch(() => {
|
loading.value = false;
|
loadStatus.value = "loadmore";
|
uni.showToast({ title: '加载失败', icon: 'error' });
|
});
|
};
|
|
const loadSingleWorkOrder = async (row) => {
|
if (!row?.id) {
|
handleQuery();
|
return;
|
}
|
loading.value = true;
|
try {
|
const res = await getProductWorkOrderById({ id: row.id });
|
const data = res?.data;
|
tableData.value = data ? [data] : [];
|
page.total = tableData.value.length;
|
loadStatus.value = 'nomore';
|
} catch {
|
tableData.value = [];
|
showToast("加载工单失败");
|
} finally {
|
loading.value = false;
|
}
|
};
|
|
const loadMore = () => {
|
console.log(loadStatus.value);
|
if (loadStatus.value === 'nomore' || loading.value) return;
|
loadStatus.value = "loading";
|
page.current++;
|
getList();
|
};
|
|
onReachBottom(() => {
|
loadMore();
|
});
|
|
const toProgressPercentage = (val) => {
|
const n = Number(val);
|
if (!Number.isFinite(n)) return 0;
|
if (n <= 0) return 0;
|
if (n >= 100) return 100;
|
return Math.round(n);
|
};
|
|
const showTransferCard = (row) => {
|
transferCardRowData.value = row;
|
transferCardVisible.value = true;
|
};
|
|
const openWorkOrderFiles = (row) => {
|
workOrderFilesRef.value?.openDialog(row);
|
};
|
|
const getPendingQty = (row) => {
|
const plan = Number(row?.planQuantity) || 0;
|
const complete = Number(row?.completeQuantity) || 0;
|
return plan - complete;
|
};
|
|
const isStarted = (row) => {
|
if (row?.startProductTime && !row?.endProductTime) return true;
|
if (String(row?.reportWork) === "1" && !row?.endProductTime) return true;
|
return false;
|
};
|
|
const isEnded = (row) => {
|
return Boolean(row?.endProductTime);
|
};
|
|
const canEndProduction = (row) => {
|
if (!row?.id) return false;
|
if (getPendingQty(row) <= 0) return false;
|
if (isEnded(row)) return false;
|
if (!isStarted(row)) return false;
|
return true;
|
};
|
|
// 判断是否可以开始报工
|
const canStartProduction = (row) => {
|
if (!row?.id) return false;
|
if (getPendingQty(row) <= 0) return false;
|
if (isEnded(row)) return false;
|
if (isStarted(row)) return false;
|
if (!canStartProductionByUserIds(userStore.id, row)) return false;
|
return true;
|
};
|
|
// 根据userIds判断是否有用户可以报工
|
const canStartProductionByUserIds = (userId, row) => {
|
const team = row?.userIds || "";
|
return team.includes(userId);
|
};
|
|
const handleStartProduction = (row) => {
|
console.log(userStore.id)
|
if (!canStartProduction(row)) return;
|
if (startSubmittingId.value) return;
|
|
uni.showModal({
|
title: "提示",
|
content: `确定开始报工?\n工单:${row.workOrderNo || "-"}`,
|
success: async (res) => {
|
if (!res.confirm) return;
|
startSubmittingId.value = row.id;
|
await ensureUserInfo();
|
uni.showLoading({ title: "提交中...", mask: true });
|
try {
|
const payload = { id: row.id, userId: userStore.id, userName: userStore.nickName };
|
const apiRes = await startProduction(payload);
|
if (apiRes?.code === 200) {
|
showToast("开始报工成功");
|
handleQuery();
|
} else {
|
showToast(apiRes?.msg || "开始报工失败");
|
}
|
} catch {
|
showToast("开始报工失败");
|
} finally {
|
uni.hideLoading();
|
startSubmittingId.value = null;
|
}
|
}
|
});
|
};
|
|
const formatDateTime = (timestamp) => {
|
const date = new Date(timestamp);
|
const y = date.getFullYear();
|
const m = String(date.getMonth() + 1).padStart(2, "0");
|
const d = String(date.getDate()).padStart(2, "0");
|
const h = String(date.getHours()).padStart(2, "0");
|
const min = String(date.getMinutes()).padStart(2, "0");
|
const s = String(date.getSeconds()).padStart(2, "0");
|
return `${y}-${m}-${d} ${h}:${min}:${s}`;
|
};
|
|
const openEndReport = async (row) => {
|
if (!canEndProduction(row)) return;
|
endReportRow.value = row;
|
await ensureUserInfo();
|
await ensureUserOptions();
|
|
endReportForm.planQuantity = String(getPendingQty(row));
|
endReportForm.quantity = String(getPendingQty(row));
|
endReportForm.replenishQty = "0";
|
endReportForm.scrapQty = "0";
|
endReportForm.teamList = [];
|
teamCheckedIds.value = [];
|
|
endReportForm.userId = userStore.id || "";
|
endReportForm.userName = userStore.nickName || "";
|
endReportForm.workOrderId = row.id;
|
endReportForm.reportWork = row.reportWork;
|
endReportForm.productProcessRouteItemId = row.productProcessRouteItemId || "";
|
endReportForm.productMainId = row.productMainId ?? null;
|
|
endReportForm.auditUserId = "";
|
endReportForm.auditUserName = "";
|
|
endReportForm.startTime = row.startProductTime || "";
|
endReportForm.endTime = "";
|
startTimeValue.value = endReportForm.startTime ? new Date(endReportForm.startTime).getTime() : Date.now();
|
if (!endReportForm.startTime) {
|
endReportForm.startTime = formatDateTime(startTimeValue.value);
|
}
|
endTimeValue.value = Date.now();
|
endReportForm.endTime = formatDateTime(endTimeValue.value);
|
|
endReportVisible.value = true;
|
};
|
|
const closeEndReport = () => {
|
endReportVisible.value = false;
|
endReportRow.value = null;
|
};
|
|
const openAuditPicker = async () => {
|
await ensureUserOptions();
|
auditPickerVisible.value = true;
|
};
|
|
const onAuditSelect = (e) => {
|
endReportForm.auditUserId = String(e?.value ?? "");
|
endReportForm.auditUserName = String(e?.name ?? "");
|
auditPickerVisible.value = false;
|
};
|
|
const openTeamPicker = async () => {
|
await ensureUserOptions();
|
teamCheckedIds.value = (endReportForm.teamList || []).map(i => String(i.userId));
|
teamPickerVisible.value = true;
|
};
|
|
const confirmTeamPicker = () => {
|
const ids = teamCheckedIds.value || [];
|
endReportForm.teamList = ids
|
.map(id => {
|
const u = userOptions.value.find(x => String(x.value) === String(id));
|
return { userId: String(id), userName: u?.name || "" };
|
})
|
.filter(i => i.userId);
|
teamPickerVisible.value = false;
|
};
|
|
const onStartTimeConfirm = (e) => {
|
endReportForm.startTime = formatDateTime(e.value);
|
startTimePickerVisible.value = false;
|
};
|
|
const onEndTimeConfirm = (e) => {
|
endReportForm.endTime = formatDateTime(e.value);
|
endTimePickerVisible.value = false;
|
};
|
|
const submitEndReport = async () => {
|
if (!endReportRow.value) return;
|
|
const pendingQty = Number(endReportForm.planQuantity) || 0;
|
if (pendingQty <= 0) {
|
showToast("待生产数量为0,无法报工");
|
return;
|
}
|
|
const quantity = Number(endReportForm.quantity);
|
if (!Number.isFinite(quantity) || !Number.isInteger(quantity) || quantity < 1) {
|
showToast("本次生产数量必须为大于等于1的整数");
|
return;
|
}
|
if (quantity > pendingQty) {
|
showToast("本次生产数量不能超过待生产数量");
|
return;
|
}
|
|
const replenishQty = endReportForm.replenishQty === "" ? 0 : Number(endReportForm.replenishQty);
|
if (!Number.isFinite(replenishQty) || !Number.isInteger(replenishQty) || replenishQty < 0) {
|
showToast("补产数量必须为大于等于0的整数");
|
return;
|
}
|
|
const scrapQty = endReportForm.scrapQty === "" ? 0 : Number(endReportForm.scrapQty);
|
if (!Number.isFinite(scrapQty) || !Number.isInteger(scrapQty) || scrapQty < 0) {
|
showToast("报废数量必须为大于等于0的整数");
|
return;
|
}
|
|
if (!endReportForm.auditUserId) {
|
showToast("请选择审核人");
|
return;
|
}
|
|
await ensureUserInfo();
|
uni.showLoading({ title: "提交中...", mask: true });
|
try {
|
const submitData = {
|
...endReportForm,
|
planQuantity: pendingQty,
|
quantity,
|
replenishQty,
|
scrapQty,
|
userId: endReportForm.userId || userStore.id,
|
userName: endReportForm.userName || userStore.nickName,
|
auditUserId: endReportForm.auditUserId,
|
auditUserName: endReportForm.auditUserName,
|
};
|
const res = await addProductMain(submitData);
|
if (res?.code === 200) {
|
showToast("结束报工成功");
|
closeEndReport();
|
handleQuery();
|
} else {
|
showToast(res?.msg || "结束报工失败");
|
}
|
} catch {
|
showToast("结束报工失败");
|
} finally {
|
uni.hideLoading();
|
}
|
};
|
|
onLoad((options) => {
|
if (!options?.orderRow) return;
|
try {
|
const raw = decodeURIComponent(options.orderRow);
|
routeOrderRow.value = JSON.parse(raw);
|
} catch {
|
try {
|
routeOrderRow.value = JSON.parse(options.orderRow);
|
} catch {
|
routeOrderRow.value = null;
|
}
|
}
|
});
|
|
onShow(() => {
|
if (routeOrderRow.value?.id) {
|
loadSingleWorkOrder(routeOrderRow.value);
|
} else {
|
handleQuery();
|
}
|
});
|
</script>
|
|
<style scoped lang="scss">
|
@import '@/styles/sales-common.scss';
|
|
.work-order {
|
min-height: 100vh;
|
background: #f8f9fa;
|
}
|
|
.tag-type {
|
background-color: #e3f2fd;
|
color: #2196f3;
|
padding: 2px 8px;
|
border-radius: 4px;
|
font-size: 12px;
|
}
|
|
.progress-section {
|
margin: 15px 0;
|
.detail-label {
|
display: block;
|
margin-bottom: 8px;
|
font-size: 13px;
|
color: #666;
|
}
|
}
|
|
.item-actions {
|
display: flex;
|
justify-content: flex-end;
|
gap: 10px;
|
padding: 12px 0;
|
border-top: 1px solid #f5f5f5;
|
|
:deep(.up-button) {
|
margin: 0;
|
width: auto;
|
}
|
}
|
|
.report-modal {
|
background: #fff;
|
max-height: 85vh;
|
display: flex;
|
flex-direction: column;
|
overflow: hidden;
|
}
|
.modal-header {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
padding: 14px 16px;
|
border-bottom: 1px solid #f0f0f0;
|
}
|
.modal-header-left {
|
display: flex;
|
flex-direction: column;
|
gap: 4px;
|
min-width: 0;
|
}
|
.modal-title {
|
font-size: 16px;
|
font-weight: 600;
|
}
|
.modal-subtitle {
|
font-size: 12px;
|
color: #8a8a8a;
|
max-width: 260px;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
.close-btn {
|
padding: 6px;
|
}
|
.modal-content {
|
flex: 1;
|
height: 0;
|
padding: 12px 12px 0;
|
background: #f7f8fa;
|
}
|
.modal-footer {
|
display: flex;
|
gap: 12px;
|
padding: 12px 16px;
|
border-top: 1px solid #f0f0f0;
|
background: #fff;
|
}
|
.report-summary {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
padding: 12px 14px;
|
background: #fff;
|
border-radius: 12px;
|
margin-bottom: 12px;
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
|
}
|
.summary-left {
|
display: flex;
|
flex-direction: column;
|
gap: 4px;
|
min-width: 0;
|
}
|
.summary-title {
|
font-size: 14px;
|
font-weight: 600;
|
color: #222;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
.summary-sub {
|
font-size: 12px;
|
color: #8a8a8a;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
.summary-right {
|
display: flex;
|
flex-direction: column;
|
align-items: flex-end;
|
gap: 2px;
|
padding-left: 12px;
|
}
|
.summary-num {
|
font-size: 18px;
|
font-weight: 700;
|
color: #2979ff;
|
}
|
.summary-label {
|
font-size: 11px;
|
color: #8a8a8a;
|
}
|
.form-section {
|
background: #fff;
|
border-radius: 12px;
|
padding: 10px 12px;
|
margin-bottom: 12px;
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
|
}
|
.section-title {
|
display: block;
|
font-size: 13px;
|
font-weight: 600;
|
color: #333;
|
margin: 2px 0 10px;
|
}
|
.team-modal {
|
background: #fff;
|
max-height: 80vh;
|
display: flex;
|
flex-direction: column;
|
overflow: hidden;
|
}
|
.team-content {
|
flex: 1;
|
height: 0;
|
padding: 12px 16px;
|
}
|
|
.qr-popup {
|
padding: 30px;
|
background-color: #fff;
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
|
.qr-title {
|
font-size: 18px;
|
font-weight: bold;
|
margin-bottom: 20px;
|
}
|
|
.qr-box {
|
padding: 20px;
|
background-color: #fff;
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
border-radius: 8px;
|
margin-bottom: 15px;
|
}
|
|
.qr-info {
|
font-size: 14px;
|
color: #666;
|
}
|
}
|
|
.no-data {
|
padding-top: 100px;
|
}
|
</style>
|