提交修改代码

This commit is contained in:
shaoleiliu-netizen123 2026-08-15 17:24:51 +08:00
parent 26bfafc358
commit 6313f3bae3
3 changed files with 24 additions and 11 deletions

View File

@ -1367,12 +1367,12 @@ function dispatchSubmit() {
dispatchformRef.value?.validate((errors: any) => {
// Naive UI errors
if (errors) return
if (total !== remainQty) {
message.error(`派工总数量需等于待派数量 ${remainQty}(计划 ${dispatchform.quantity},已完成 ${dispatchform.completedQty ?? 0}`, {
duration: 4000,
})
return
}
// if (total !== remainQty) {
// message.error(` ${remainQty} ${dispatchform.quantity} ${dispatchform.completedQty ?? 0}`, {
// duration: 4000,
// })
// return
// }
dispatchLoading.value = true
// quantity

View File

@ -53,7 +53,7 @@
:scroll-x="1200"
v-model:checked-row-keys="selectedIds"
/>
<div class="pagination-container" style="display: flex; justify-content: flex-end; margin-top: 12px">
<div class="pagination-container" style="display: flex; justify-content: flex-end; margin-top: 12px">
<n-pagination
v-model:page="pagination.page"
v-model:page-size="pagination.pageSize"

View File

@ -64,13 +64,26 @@
:columns="columns"
:data="tableData"
:loading="loading"
:pagination="pagination"
:row-key="(row) => row.id!"
:scroll-x="1680"
@update:page="handlePageChange"
@update:page-size="handlePageSizeChange"
@update:checked-row-keys="handleCheck"
/>
<div class="pagination-container" style="display: flex; justify-content: flex-end; margin-top: 12px">
<n-pagination
v-model:page="pagination.page"
v-model:page-size="pagination.pageSize"
:item-count="pagination.itemCount"
:page-sizes="[10, 20, 50, 100]"
show-size-picker
show-quick-jumper
@update:page="handlePageChange"
@update:page-size="handlePageSizeChange"
@update:checked-row-keys="handleCheck"
>
<template #prefix>
{{ pagination.itemCount }}
</template>
</n-pagination>
</div>
</n-card>
<!-- 详情 -->