更新 src/App.tsx
This commit is contained in:
@ -3702,6 +3702,7 @@ export default function App() {
|
|||||||
|
|
||||||
// 执行定价数据查询
|
// 执行定价数据查询
|
||||||
const executeQuery = async (packId: string, packType: string) => {
|
const executeQuery = async (packId: string, packType: string) => {
|
||||||
|
if (queryLoading) return;
|
||||||
setQueryLoading(true);
|
setQueryLoading(true);
|
||||||
try {
|
try {
|
||||||
// 使用 apiService 中的函数
|
// 使用 apiService 中的函数
|
||||||
@ -3763,6 +3764,7 @@ export default function App() {
|
|||||||
|
|
||||||
// 执行二次工艺查询
|
// 执行二次工艺查询
|
||||||
const executeSecondaryProcessQueryLocal = async (packId: string, packType: string) => {
|
const executeSecondaryProcessQueryLocal = async (packId: string, packType: string) => {
|
||||||
|
if (secondaryProcessLoading) return;
|
||||||
setSecondaryProcessLoading(true);
|
setSecondaryProcessLoading(true);
|
||||||
try {
|
try {
|
||||||
const data = await executeSecondaryProcessQuery(packId, packType);
|
const data = await executeSecondaryProcessQuery(packId, packType);
|
||||||
@ -3822,6 +3824,7 @@ export default function App() {
|
|||||||
|
|
||||||
// 执行定价详情查询
|
// 执行定价详情查询
|
||||||
const executePricingDetailsQueryLocal = async (packId: string) => {
|
const executePricingDetailsQueryLocal = async (packId: string) => {
|
||||||
|
if (pricingDetailsLoading) return;
|
||||||
setPricingDetailsLoading(true);
|
setPricingDetailsLoading(true);
|
||||||
try {
|
try {
|
||||||
const data = await executePricingDetailsQuery(packId);
|
const data = await executePricingDetailsQuery(packId);
|
||||||
|
|||||||
Reference in New Issue
Block a user