Ver código fonte

Merge branch 'cc-dev' into 'dev'

修改走查文档

See merge request product-group-fe/sfy-safety-group/sfy-safety!180
陈昶 8 meses atrás
pai
commit
1667ffa117

+ 4 - 2
src/views/emergency/emergency-supplies/PageInventoryCheck.vue

@@ -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('盘点成功');
   };