|
|
@@ -46,7 +46,7 @@
|
|
|
</BasicSearch>
|
|
|
<div class="date-time-container" v-if="endTime">
|
|
|
<span>任务期限:{{ endTime }}</span>
|
|
|
- <el-button type="primary" @click="handleConfirm" v-if="isInventory">盘点确认</el-button>
|
|
|
+ <el-button type="primary" @click="handleConfirm" v-if="pagination.total && isInventory">盘点确认</el-button>
|
|
|
</div>
|
|
|
</header>
|
|
|
<BasicTable
|
|
|
@@ -72,7 +72,7 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
<template #supplementQuantity="scope">
|
|
|
- <div v-if="!scope.row.afterQuantity" />
|
|
|
+ <div v-if="scope.row.afterQuantity === null" />
|
|
|
<div v-else>
|
|
|
<span v-if="scope.row.supplementQuantity > 0">
|
|
|
<span class="font-red">{{ scope.row.supplementQuantity }}</span>
|
|
|
@@ -301,6 +301,8 @@
|
|
|
if (!confirmed) return;
|
|
|
if (!searchData.taskId) return;
|
|
|
await confirmInventoryTask(searchData.taskId);
|
|
|
+ await checkTaskStatus();
|
|
|
+ startPolling();
|
|
|
ElMessage.success('盘点成功');
|
|
|
};
|
|
|
|