This commit is contained in:
yin 2026-10-15 17:57:29 +08:00
parent 931410c36d
commit 993b73fc9d
51 changed files with 168 additions and 138 deletions

View File

@ -314,8 +314,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="setEndTimeVisible = false">取消</el-button>
<el-button type="primary" :loading="setEndTimeLoading" @click="handleSetEndTime">
<el-button size="small" @click="setEndTimeVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="setEndTimeLoading" @click="handleSetEndTime">
确定
</el-button>
</template>
@ -815,7 +815,8 @@ async function openForceRecordDialog(row: PackingTaskItem) {
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
type: 'warning',
buttonSize: 'small'
}
)
await doForceRecord()

View File

@ -16,11 +16,11 @@
style="display: none"
@change="handleFileChange"
/>
<el-button @click="triggerFileSelect">选择Excel</el-button>
<el-button @click="downloadTemplate">下载模板</el-button>
<el-button @click="clearData">清除数据</el-button>
<el-button :loading="retryLoading" @click="retryFailedRows">只重试失败</el-button>
<el-button type="primary" :loading="importLoading" @click="submitBatchImport">导入</el-button>
<el-button size="small" @click="triggerFileSelect">选择Excel</el-button>
<el-button size="small" @click="downloadTemplate">下载模板</el-button>
<el-button size="small" @click="clearData">清除数据</el-button>
<el-button size="small" :loading="retryLoading" @click="retryFailedRows">只重试失败</el-button>
<el-button size="small" type="primary" :loading="importLoading" @click="submitBatchImport">导入</el-button>
<span class="picker-hint">已选文件:{{ fileName || '未选择' }}</span>
</div>
@ -87,7 +87,7 @@
</div>
<template #footer>
<el-button @click="visible = false">关闭</el-button>
<el-button size="small" @click="visible = false">关闭</el-button>
</template>
</el-dialog>
</template>

View File

@ -68,7 +68,7 @@
</el-table>
<template #footer>
<el-button @click="visible = false">关闭</el-button>
<el-button size="small" @click="visible = false">关闭</el-button>
</template>
</el-dialog>
</template>

View File

@ -185,8 +185,8 @@
</el-row>
</el-form>
<template #footer>
<el-button @click="dialogVisible = false">取消</el-button>
<el-button type="primary" :loading="saving" @click="submitForm">保存</el-button>
<el-button size="small" @click="dialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="saving" @click="submitForm">保存</el-button>
</template>
</el-dialog>
@ -563,7 +563,7 @@ async function deleteByIds(ids: number[]) {
function handleDelete(row: PackageMaterialRecord) {
if (!row.id) return
const name = row.material_name || row.material_code || String(row.id)
ElMessageBox.confirm(`确认删除包材「${name}」吗?`, '提示', { type: 'warning' })
ElMessageBox.confirm(`确认删除包材「${name}」吗?`, '提示', { type: 'warning', buttonSize: 'small' })
.then(async () => {
const ok = await deleteByIds([row.id as number])
if (!ok) return
@ -579,7 +579,8 @@ function handleDelete(row: PackageMaterialRecord) {
function handleBatchDelete() {
if (!selectedIds.value.length || batchDeleting.value) return
ElMessageBox.confirm(`确认删除选中的 ${selectedIds.value.length} 条包材吗?`, '提示', {
type: 'warning'
type: 'warning',
buttonSize: 'small'
})
.then(async () => {
batchDeleting.value = true

View File

@ -106,8 +106,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="dialogVisible = false">取消</el-button>
<el-button type="primary" :loading="saving" @click="submitForm">保存</el-button>
<el-button size="small" @click="dialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="saving" @click="submitForm">保存</el-button>
</template>
</el-dialog>
</div>
@ -433,7 +433,7 @@ async function deleteByIds(ids: number[]) {
function handleDelete(row: PackageSupplierRecord) {
if (!row.id) return
const name = row.supplier_name || row.supplier_code || String(row.id)
ElMessageBox.confirm(`确认删除供应商「${name}」吗?`, '提示', { type: 'warning' })
ElMessageBox.confirm(`确认删除供应商「${name}」吗?`, '提示', { type: 'warning', buttonSize: 'small' })
.then(async () => {
const ok = await deleteByIds([row.id as number])
if (!ok) return
@ -449,7 +449,8 @@ function handleDelete(row: PackageSupplierRecord) {
function handleBatchDelete() {
if (!selectedIds.value.length || batchDeleting.value) return
ElMessageBox.confirm(`确认删除选中的 ${selectedIds.value.length} 条供应商吗?`, '提示', {
type: 'warning'
type: 'warning',
buttonSize: 'small'
})
.then(async () => {
batchDeleting.value = true

View File

@ -61,8 +61,8 @@
</div>
<template #footer>
<el-button @click="handleClose">取消</el-button>
<el-button type="primary" :loading="submitting" @click="handleSubmit">绑定</el-button>
<el-button size="small" @click="handleClose">取消</el-button>
<el-button size="small" type="primary" :loading="submitting" @click="handleSubmit">绑定</el-button>
</template>
</el-dialog>
</template>

View File

@ -62,6 +62,7 @@ async function handleClose() {
try {
await ElMessageBox.confirm('关闭后将清空当前建单数据,是否继续?', '关闭建单', {
type: 'warning',
buttonSize: 'small',
confirmButtonText: '关闭并清空',
cancelButtonText: '取消'
})

View File

@ -33,10 +33,11 @@
style="display: none"
@change="handleImportFileChange"
/>
<el-button @click="triggerImportFileSelect">选择Excel</el-button>
<el-button :loading="downloadTemplateLoading" @click="handleDownloadCreateTemplate">下载模板</el-button>
<el-button :disabled="parseImportFileLoading" @click="addImportPreviewRow()">添加明细</el-button>
<el-button size="small" @click="triggerImportFileSelect">选择Excel</el-button>
<el-button size="small" :loading="downloadTemplateLoading" @click="handleDownloadCreateTemplate">下载模板</el-button>
<el-button size="small" :disabled="parseImportFileLoading" @click="addImportPreviewRow()">添加明细</el-button>
<el-button
size="small"
:loading="checkDeliveryCodeLoading"
:disabled="!importPreviewRows.length || parseImportFileLoading || importOrderLoading || reRecognizeAddressLoading"
@click="handleCheckDeliveryOrderCodes"
@ -44,14 +45,16 @@
发货单号查重
</el-button>
<el-button
size="small"
:loading="reRecognizeAddressLoading"
:disabled="!importPreviewRows.length || parseImportFileLoading || importOrderLoading || checkDeliveryCodeLoading"
@click="handleReRecognizeAddresses"
>
地址重识
</el-button>
<el-button @click="clearImportData">清除数据</el-button>
<el-button size="small" @click="clearImportData">清除数据</el-button>
<el-button
size="small"
type="danger"
plain
:disabled="!selectedPreviewRowCount"
@ -60,6 +63,7 @@
删除选中{{ selectedPreviewRowCount ? `(${selectedPreviewRowCount})` : '' }}
</el-button>
<el-button
size="small"
:loading="exportSelectedLoading"
:disabled="!selectedPreviewRowCount"
@click="handleExportSelectedPreviewRows"
@ -67,6 +71,7 @@
导出选中{{ selectedPreviewRowCount ? `(${selectedPreviewRowCount})` : '' }}
</el-button>
<el-button
size="small"
type="primary"
:loading="importOrderLoading"
:disabled="parseImportFileLoading || reRecognizeAddressLoading || checkDeliveryCodeLoading"
@ -411,6 +416,7 @@
<div class="address-panel-actions">
<el-button
size="small"
type="primary"
:loading="parseAddressLoading"
:disabled="!addressPasteText.trim()"
@ -419,6 +425,7 @@
识别建单
</el-button>
<el-button
size="small"
:loading="parseAddressLoading"
:disabled="!selectedPreviewRowsForAddress.length || !addressPasteText.trim()"
@click="handleParseAddress"
@ -426,6 +433,7 @@
识别地址
</el-button>
<el-button
size="small"
:disabled="!addressPasteText.trim()"
@click="addressPasteText = ''"
>
@ -455,8 +463,8 @@
</div> -->
<template #footer>
<el-button @click="handleMinimize">收起后台</el-button>
<el-button @click="handleCloseSession">关闭并清空</el-button>
<el-button size="small" @click="handleMinimize">收起后台</el-button>
<el-button size="small" @click="handleCloseSession">关闭并清空</el-button>
</template>
</el-dialog>
</template>
@ -816,6 +824,7 @@ async function confirmDiscardSession() {
try {
await ElMessageBox.confirm('关闭后将清空当前建单数据,是否继续?', '关闭建单', {
type: 'warning',
buttonSize: 'small',
confirmButtonText: '关闭并清空',
cancelButtonText: '取消'
})
@ -1323,7 +1332,7 @@ async function removeSelectedPreviewRows() {
await ElMessageBox.confirm(
`确认删除已勾选的 ${targetRows.length} 行明细?`,
'批量删除',
{ type: 'warning', confirmButtonText: '删除', cancelButtonText: '取消' }
{ type: 'warning', buttonSize: 'small', confirmButtonText: '删除', cancelButtonText: '取消' }
)
} catch {
return

View File

@ -59,8 +59,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="weighingDialogVisible = false">取消</el-button>
<el-button type="primary" :loading="weighingSaving" @click="submitWeighing">保存</el-button>
<el-button size="small" @click="weighingDialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="weighingSaving" @click="submitWeighing">保存</el-button>
</template>
</el-dialog>
@ -181,7 +181,7 @@ async function handleInterceptScan(row: any) {
await ElMessageBox.confirm(
`确认对运单「${waybillCode}」执行库内拦截吗?该操作将标记运单退回并处理关联售后工单。`,
'库内拦截确认',
{ type: 'warning', confirmButtonText: '确认拦截', cancelButtonText: '取消' }
{ type: 'warning', buttonSize: 'small', confirmButtonText: '确认拦截', cancelButtonText: '取消' }
)
} catch {
return

View File

@ -33,8 +33,8 @@
>
全选
</el-checkbox>
<el-button link type="primary" @click="handleReverse">反选</el-button>
<el-button link type="danger" @click="handleClear">清空</el-button>
<el-button size="small" link type="primary" @click="handleReverse">反选</el-button>
<el-button size="small" link type="danger" @click="handleClear">清空</el-button>
<span class="export-columns-count">已选 {{ selected.length }} / {{ totalColumnCount }}</span>
</div>
@ -75,8 +75,8 @@
</div>
<template #footer>
<el-button @click="emit('update:visible', false)">取消</el-button>
<el-button type="primary" :loading="loading" :disabled="selected.length === 0" @click="handleConfirm">
<el-button size="small" @click="emit('update:visible', false)">取消</el-button>
<el-button size="small" type="primary" :loading="loading" :disabled="selected.length === 0" @click="handleConfirm">
导出
</el-button>
</template>

View File

@ -25,7 +25,7 @@
</div>
</div>
<template #footer>
<el-button :disabled="loading" @click="emit('update:visible', false)">关闭</el-button>
<el-button size="small" :disabled="loading" @click="emit('update:visible', false)">关闭</el-button>
</template>
</el-dialog>
</template>

View File

@ -36,8 +36,8 @@
</el-form>
<template #footer>
<el-button @click="handleClose">取消</el-button>
<el-button type="primary" :loading="submitting" @click="handleSubmit">确认审核</el-button>
<el-button size="small" @click="handleClose">取消</el-button>
<el-button size="small" type="primary" :loading="submitting" @click="handleSubmit">确认审核</el-button>
</template>
</el-dialog>
</template>

View File

@ -90,8 +90,8 @@
</div>
<template #footer>
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button size="small" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</template>
</el-dialog>
</template>

View File

@ -338,8 +338,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="resolveExceptionDialogVisible = false">取消</el-button>
<el-button type="primary" :loading="resolveExceptionLoading" @click="submitResolveException">
<el-button size="small" @click="resolveExceptionDialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="resolveExceptionLoading" @click="submitResolveException">
确认处理
</el-button>
</template>
@ -801,7 +801,7 @@ async function submitResolveException() {
await ElMessageBox.confirm(
`确定将选中的 ${ids.length} 条异常订单恢复为待处理状态吗?`,
'确认处理',
{ type: 'warning' }
{ type: 'warning', buttonSize: 'small' }
)
} catch {
return

View File

@ -9,8 +9,8 @@
>
<p class="allocate-confirm-text">是否确认分配?</p>
<template #footer>
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" :loading="loading" @click="emit('submit')">确认</el-button>
<el-button size="small" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" :loading="loading" @click="emit('submit')">确认</el-button>
</template>
</el-dialog>
</template>

View File

@ -33,8 +33,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" :loading="loading" @click="handleSubmit">确认分配</el-button>
<el-button size="small" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" :loading="loading" @click="handleSubmit">确认分配</el-button>
</template>
</el-dialog>
</template>

View File

@ -54,10 +54,11 @@
</el-form>
<template #footer>
<el-button :disabled="loading && phase === 'progress'" @click="visible = false">
<el-button size="small" :disabled="loading && phase === 'progress'" @click="visible = false">
{{ phase === 'progress' && !isFinished ? '后台处理' : '关闭' }}
</el-button>
<el-button
size="small"
v-if="phase === 'confirm'"
type="primary"
:loading="loading"

View File

@ -89,8 +89,8 @@
</div>
<template #footer>
<el-button :disabled="submitting" @click="visible = false">关闭</el-button>
<el-button type="primary" :loading="submitting" @click="handleSubmit">执行发货</el-button>
<el-button size="small" :disabled="submitting" @click="visible = false">关闭</el-button>
<el-button size="small" type="primary" :loading="submitting" @click="handleSubmit">执行发货</el-button>
</template>
</el-dialog>
</template>

View File

@ -18,8 +18,8 @@
<p>订单号:{{ sourceOrderCode || '-' }}</p>
</div>
<template #footer>
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" :loading="loading" @click="emit('submit')">确认克隆</el-button>
<el-button size="small" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" :loading="loading" @click="emit('submit')">确认克隆</el-button>
</template>
</el-dialog>
</template>

View File

@ -40,8 +40,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" :loading="loading" @click="handleSubmit">确认录入</el-button>
<el-button size="small" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" :loading="loading" @click="handleSubmit">确认录入</el-button>
</template>
</el-dialog>
</template>

View File

@ -35,8 +35,8 @@
</template>
</el-form>
<template #footer>
<el-button :disabled="loading && !!requestId" @click="visible = false">取消</el-button>
<el-button type="primary" :loading="loading" @click="emit('submit')">
<el-button size="small" :disabled="loading && !!requestId" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" :loading="loading" @click="emit('submit')">
{{ submitButtonText }}
</el-button>
</template>

View File

@ -33,8 +33,8 @@
</template>
</el-form>
<template #footer>
<el-button :disabled="loading && !!requestId" @click="visible = false">取消</el-button>
<el-button type="primary" :loading="loading" @click="emit('submit')">
<el-button size="small" :disabled="loading && !!requestId" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" :loading="loading" @click="emit('submit')">
{{ requestId ? '处理中' : '确认同步' }}
</el-button>
</template>

View File

@ -113,8 +113,8 @@
</el-form>
<template #footer>
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" :loading="loading" @click="emit('submit')">确认修改</el-button>
<el-button size="small" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" :loading="loading" @click="emit('submit')">确认修改</el-button>
</template>
</el-dialog>
</template>

View File

@ -32,8 +32,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" :loading="loading" @click="emit('submit')">确认修改</el-button>
<el-button size="small" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" :loading="loading" @click="emit('submit')">确认修改</el-button>
</template>
</el-dialog>
</template>

View File

@ -34,8 +34,8 @@
</el-form>
<template #footer>
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" :loading="loading" @click="emit('submit')">确认修改</el-button>
<el-button size="small" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" :loading="loading" @click="emit('submit')">确认修改</el-button>
</template>
</el-dialog>
</template>

View File

@ -334,8 +334,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="resolveExceptionDialogVisible = false">取消</el-button>
<el-button type="primary" :loading="resolveExceptionLoading" @click="submitResolveException">
<el-button size="small" @click="resolveExceptionDialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="resolveExceptionLoading" @click="submitResolveException">
确认处理
</el-button>
</template>
@ -730,7 +730,7 @@ async function submitResolveException() {
await ElMessageBox.confirm(
`确定将选中的 ${ids.length} 条异常订单恢复为待处理状态吗?`,
'确认处理',
{ type: 'warning' }
{ type: 'warning', buttonSize: 'small' }
)
} catch {
return
@ -1085,7 +1085,7 @@ async function handleConfirmInterceptBatch() {
await ElMessageBox.confirm(
`确定对选中的 ${ids.length} 条订单执行库内拦截确定吗?`,
'库内拦截确定',
{ type: 'warning' }
{ type: 'warning', buttonSize: 'small' }
)
} catch {
return

View File

@ -538,7 +538,7 @@ async function handleSingleReview() {
return
}
try {
await ElMessageBox.confirm('确定审核通过当前订单吗?', '确认', { type: 'warning' })
await ElMessageBox.confirm('确定审核通过当前订单吗?', '确认', { type: 'warning', buttonSize: 'small' })
await submitReview([selectedRow.value.id])
} catch (e) {}
}

View File

@ -68,7 +68,7 @@ async function executeApiAction(params: {
await ElMessageBox.confirm(
config.confirmText.replace('{count}', String(ids.length)),
'确认',
{ type: config.confirmType || 'warning' }
{ type: config.confirmType || 'warning', buttonSize: 'small' }
)
}
} catch {
@ -678,7 +678,7 @@ export function createPendingToolbarController(params: {
await ElMessageBox.confirm(
`确定将选中的 ${ids.length} 条订单按散单抓取至波次吗?`,
'抓取散单',
{ type: 'warning' }
{ type: 'warning', buttonSize: 'small' }
)
} catch {
return

View File

@ -156,6 +156,7 @@
v-if="!isPickTaskCancelled(row) && !isPickTaskPickFinished(row)"
type="primary"
link
size="small"
:loading="completingTaskId === getTaskId(row)"
:disabled="!getTaskId(row)"
@click.stop="handleCompletePickTask(row)"
@ -166,6 +167,7 @@
v-if="!isPickTaskCancelled(row) && !isPickTaskPickFinished(row)"
type="danger"
link
size="small"
:loading="cancelingTaskId === getTaskId(row)"
:disabled="!getTaskId(row)"
@click.stop="handleCancelTask(row)"

View File

@ -55,6 +55,7 @@
/>
</el-select>
<el-button
size="small"
type="primary"
:loading="fetchingPrinters"
:disabled="!selectedComponent"
@ -97,7 +98,7 @@
</section>
<template #footer>
<el-button @click="visibleProxy = false">关闭</el-button>
<el-button size="small" @click="visibleProxy = false">关闭</el-button>
</template>
</el-dialog>
</template>

View File

@ -76,9 +76,9 @@
</div>
<template #footer>
<el-button @click="visibleProxy = false">关闭</el-button>
<el-button :disabled="!payload || loading" @click="copyJson">复制 JSON</el-button>
<el-button type="primary" :disabled="!payload || loading" @click="printReport">浏览器打印</el-button>
<el-button size="small" @click="visibleProxy = false">关闭</el-button>
<el-button size="small" :disabled="!payload || loading" @click="copyJson">复制 JSON</el-button>
<el-button size="small" type="primary" :disabled="!payload || loading" @click="printReport">浏览器打印</el-button>
</template>
</el-dialog>
</template>

View File

@ -286,7 +286,7 @@
<div class="drawer-content">
<div class="input-box" style="margin-bottom: 20px; display: flex; gap: 10px;">
<el-input v-model="newUnitName" placeholder="请输入单位名称" clearable @keyup.enter="addUnit" />
<el-button type="primary" @click="addUnit">添加</el-button>
<el-button size="small" type="primary" @click="addUnit">添加</el-button>
</div>
<el-table :data="unitList" style="width: 100%" height="400px" border stripe>
<el-table-column prop="name" label="单位名称" />
@ -309,7 +309,7 @@
<el-option label="二级" :value="2" />
<el-option label="三级" :value="3" />
</el-select>
<el-button type="primary" @click="addProhibited">添加</el-button>
<el-button size="small" type="primary" @click="addProhibited">添加</el-button>
</div>
<el-table :data="prohibitedList" style="width: 100%" height="400px" border stripe>
<el-table-column prop="name" label="类型名称" />

View File

@ -187,8 +187,9 @@
</template>
<template #footer>
<el-button :disabled="submitting" @click="visible = false">取消</el-button>
<el-button size="small" :disabled="submitting" @click="visible = false">取消</el-button>
<el-button
size="small"
type="primary"
:loading="submitting"
:disabled="isBatchMode && !parsedRows.length"
@ -217,7 +218,7 @@
@keyup.enter="querySpaces(1)"
>
<template #append>
<el-button :icon="Search" :loading="spaceLoading" @click="querySpaces(1)">查询</el-button>
<el-button size="small" :icon="Search" :loading="spaceLoading" @click="querySpaces(1)">查询</el-button>
</template>
</el-input>
</div>
@ -247,8 +248,8 @@
</div>
</div>
<template #footer>
<el-button @click="spacePickerVisible = false">取消</el-button>
<el-button type="primary" @click="applySelectedSpace">使用选中库位</el-button>
<el-button size="small" @click="spacePickerVisible = false">取消</el-button>
<el-button size="small" type="primary" @click="applySelectedSpace">使用选中库位</el-button>
</template>
</el-dialog>
</template>

View File

@ -210,7 +210,7 @@ async function handleRemoveRow(row: DirectInboundLog) {
await ElMessageBox.confirm(
`确认移除「${label}」的导入/PDA 入库记录(数量 ${quantity})?\n移除后对应商品的已导入数量将扣减。`,
'移除入库记录',
{ type: 'warning', confirmButtonText: '确认移除', cancelButtonText: '取消' }
{ type: 'warning', buttonSize: 'small', confirmButtonText: '确认移除', cancelButtonText: '取消' }
)
} catch {
return
@ -246,7 +246,7 @@ async function handleBatchRemove() {
await ElMessageBox.confirm(
`确认批量移除 ${rows.length} 条导入/PDA 入库记录?\n移除后对应商品的已导入数量将扣减。`,
'批量移除入库记录',
{ type: 'warning', confirmButtonText: '确认移除', cancelButtonText: '取消' }
{ type: 'warning', buttonSize: 'small', confirmButtonText: '确认移除', cancelButtonText: '取消' }
)
} catch {
return

View File

@ -229,7 +229,7 @@ async function handleSubmit() {
await ElMessageBox.confirm(
`确定对入库单「${code}」执行快捷直入吗?\n所有商品将按明细数量直入虚拟库位,入库单状态变为「已完成」。`,
'快捷直入确认',
{ confirmButtonText: '确认直入', cancelButtonText: '取消', type: 'warning' }
{ confirmButtonText: '确认直入', cancelButtonText: '取消', type: 'warning', buttonSize: 'small' }
)
} catch {
return

View File

@ -397,6 +397,7 @@ async function handleUnbindSubmit() {
'确认解除绑定',
{
type: 'warning',
buttonSize: 'small',
confirmButtonText: '确认解绑',
cancelButtonText: '取消',
confirmButtonClass: 'el-button--danger',

View File

@ -323,6 +323,7 @@ async function askOwnerNotice(actionDesc: string): Promise<number | null> {
confirmButtonText: '通知货主',
cancelButtonText: '不通知',
type: 'warning',
buttonSize: 'small',
distinguishCancelAndClose: true
})
.then(() => resolve(0))

View File

@ -1054,6 +1054,7 @@ async function askOwnerNotice(actionDesc: string): Promise<number | null> {
confirmButtonText: '通知货主',
cancelButtonText: '不通知',
type: 'warning',
buttonSize: 'small',
distinguishCancelAndClose: true
})
.then(() => resolve(0))
@ -1225,7 +1226,7 @@ async function confirmBatchCancel() {
const skippedTip = blockedCount ? `;另有 ${blockedCount} 个非「已创建/待入库」状态将被跳过` : ''
try {
await ElMessageBox.confirm(`确定要作废选中的 ${ids.length} 个入库单吗?${skippedTip}`, '确认', { type: 'warning' })
await ElMessageBox.confirm(`确定要作废选中的 ${ids.length} 个入库单吗?${skippedTip}`, '确认', { type: 'warning', buttonSize: 'small' })
loading.value = true
// storage.entry.cancel 入参:批量作废统一传 ids(number[],非空数组;ids 优先于 id)

View File

@ -72,8 +72,8 @@
</div>
<template #footer>
<el-button @click="visible = false">取消</el-button>
<el-button type="primary" @click="handleConfirm">确定筛选</el-button>
<el-button size="small" @click="visible = false">取消</el-button>
<el-button size="small" type="primary" @click="handleConfirm">确定筛选</el-button>
</template>
</el-dialog>
</template>

View File

@ -64,7 +64,7 @@
</el-table>
<template #footer>
<el-button @click="visible = false">关闭</el-button>
<el-button size="small" @click="visible = false">关闭</el-button>
</template>
</el-dialog>
</template>

View File

@ -113,8 +113,8 @@
/>
</div>
<template #footer>
<el-button @click="dialogVisible = false">取消</el-button>
<el-button type="primary" :loading="transferLoading" @click="confirmTransfer">
<el-button size="small" @click="dialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="transferLoading" @click="confirmTransfer">
{{ confirmButtonText }}
</el-button>
</template>
@ -152,6 +152,7 @@
clearable
/>
<el-button
size="small"
type="primary"
link
class="expiry-clear-btn"
@ -176,6 +177,7 @@
clearable
/>
<el-button
size="small"
type="primary"
link
class="expiry-clear-btn"
@ -194,8 +196,9 @@
</div> -->
<template #footer>
<el-button @click="expiryDialogVisible = false">取消</el-button>
<el-button size="small" @click="expiryDialogVisible = false">取消</el-button>
<el-button
size="small"
type="primary"
:loading="expiryLoading"
:disabled="!hasExpiryChange"

View File

@ -642,7 +642,7 @@ async function confirmBatchCancel() {
return
}
try {
await ElMessageBox.confirm(`确定要批量作废 ${selectionRows.value.length} 个入库单吗?`, '确认', { type: 'warning' })
await ElMessageBox.confirm(`确定要批量作废 ${selectionRows.value.length} 个入库单吗?`, '确认', { type: 'warning', buttonSize: 'small' })
// 调用作废 API
ElMessage.success('操作成功')
loadData()

View File

@ -331,6 +331,7 @@ const handleBindStore = async () => {
confirmButtonText: '确定绑定',
cancelButtonText: '取消',
type: 'warning',
buttonSize: 'small',
dangerouslyUseHTMLString: true
}
)

View File

@ -160,7 +160,7 @@
</el-drawer>
<el-dialog v-model="dateDialogVisible" title="日期修改" align-center width="420px" append-to-body>
<el-form :model="dateForm" label-width="90px">
<el-form :model="dateForm" label-width="90px" size="small">
<el-form-item label="生产日期">
<el-date-picker
v-model="dateForm.production_date"
@ -181,8 +181,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="dateDialogVisible = false">取消</el-button>
<el-button type="primary" :loading="dateSaving" @click="submitDateChange">保存</el-button>
<el-button size="small" @click="dateDialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="dateSaving" @click="submitDateChange">保存</el-button>
</template>
</el-dialog>
@ -269,8 +269,8 @@
</el-row>
</el-form>
<template #footer>
<el-button @click="editDialogVisible = false">取消</el-button>
<el-button type="primary" :loading="editSaving" @click="submitEditDetail">保存</el-button>
<el-button size="small" @click="editDialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="editSaving" @click="submitEditDetail">保存</el-button>
</template>
</el-dialog>
@ -306,8 +306,8 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="bindDialogVisible = false">取消</el-button>
<el-button type="primary" :loading="bindSaving" @click="submitBindDetail">确认绑定</el-button>
<el-button size="small" @click="bindDialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="bindSaving" @click="submitBindDetail">确认绑定</el-button>
</template>
</el-dialog>
@ -316,7 +316,7 @@
<div class="picker-toolbar">
<el-input v-model="systemProductKeyword" placeholder="输入商品名称或条码" clearable style="width: 320px" @keyup.enter="querySystemProducts(1)">
<template #append>
<el-button :icon="Search" :loading="systemProductLoading" @click="querySystemProducts(1)">查询</el-button>
<el-button size="small" :icon="Search" :loading="systemProductLoading" @click="querySystemProducts(1)">查询</el-button>
</template>
</el-input>
<span v-if="boundStoreId" class="picker-hint">已按收货单货主过滤:{{ boundStoreName || ('ID ' + boundStoreId) }}</span>
@ -345,8 +345,8 @@
</div>
</div>
<template #footer>
<el-button @click="systemProductPickerVisible = false">取消</el-button>
<el-button type="primary" @click="applySelectedSystemProduct">使用选中商品</el-button>
<el-button size="small" @click="systemProductPickerVisible = false">取消</el-button>
<el-button size="small" type="primary" @click="applySelectedSystemProduct">使用选中商品</el-button>
</template>
</el-dialog>
@ -355,7 +355,7 @@
<div class="picker-toolbar">
<el-input v-model="spaceKeyword" placeholder="输入库位名称或编码" clearable style="width: 320px" @keyup.enter="querySpaces(1)">
<template #append>
<el-button :icon="Search" :loading="spaceLoading" @click="querySpaces(1)">查询</el-button>
<el-button size="small" :icon="Search" :loading="spaceLoading" @click="querySpaces(1)">查询</el-button>
</template>
</el-input>
</div>
@ -381,8 +381,8 @@
</div>
</div>
<template #footer>
<el-button @click="spacePickerVisible = false">取消</el-button>
<el-button type="primary" @click="applySelectedSpace">使用选中库位</el-button>
<el-button size="small" @click="spacePickerVisible = false">取消</el-button>
<el-button size="small" type="primary" @click="applySelectedSpace">使用选中库位</el-button>
</template>
</el-dialog>
@ -395,11 +395,11 @@
style="display:none"
@change="onBatchImportFileChange"
/>
<el-button @click="triggerBatchImportSelect">选择Excel</el-button>
<el-button @click="downloadBatchImportTemplate">下载模板</el-button>
<el-button @click="clearBatchImportData">清除数据</el-button>
<el-button :loading="batchRetryFailedLoading" @click="retryFailedBatchRows">只重试失败</el-button>
<el-button type="primary" :loading="batchImportLoading" @click="submitBatchImportCreate">导入</el-button>
<el-button size="small" @click="triggerBatchImportSelect">选择Excel</el-button>
<el-button size="small" @click="downloadBatchImportTemplate">下载模板</el-button>
<el-button size="small" @click="clearBatchImportData">清除数据</el-button>
<el-button size="small" :loading="batchRetryFailedLoading" @click="retryFailedBatchRows">只重试失败</el-button>
<el-button size="small" type="primary" :loading="batchImportLoading" @click="submitBatchImportCreate">导入</el-button>
<span class="picker-hint">已选文件:{{ batchImportFileName || '未选择' }}</span>
</div>
@ -453,7 +453,7 @@
</div>
<template #footer>
<el-button @click="batchImportDialogVisible = false">关闭</el-button>
<el-button size="small" @click="batchImportDialogVisible = false">关闭</el-button>
</template>
</el-dialog>
@ -737,6 +737,7 @@ const confirmBatchDeleteDetails = async () => {
'批量删除确认',
{
type: 'warning',
buttonSize: 'small',
confirmButtonText: '确认删除',
cancelButtonText: '取消'
}
@ -807,6 +808,7 @@ const confirmDeleteDetail = async (row: any) => {
'删除确认',
{
type: 'warning',
buttonSize: 'small',
confirmButtonText: '确认删除',
cancelButtonText: '取消'
}
@ -2541,7 +2543,7 @@ const openDateDialog = (row: any) => {
ElMessageBox.alert(
`商品名称:${row?.product_name || '--'}已过期,请移除拒绝收货。`,
'过期提醒',
{ type: 'warning' }
{ type: 'warning', buttonSize: 'small' }
)
}
}

View File

@ -1029,7 +1029,7 @@ async function confirmcomplete() {
}
try {
await ElMessageBox.confirm(`确定要批量完成 ${selectionRows.value.length} 个收货单的收货吗?`, '确认完成', { type: 'success' })
await ElMessageBox.confirm(`确定要批量完成 ${selectionRows.value.length} 个收货单的收货吗?`, '确认完成', { type: 'success', buttonSize: 'small' })
for (const row of selectionRows.value) {
// console.log('正在执行完成收货,请求数据:', { id: row.id, type: 'complete' })
@ -1061,7 +1061,7 @@ async function confirmBatchCancel() {
}
try {
await ElMessageBox.confirm(`确定要批量作废 ${selectionRows.value.length} 个收货单吗?`, '确认作废', { type: 'warning' })
await ElMessageBox.confirm(`确定要批量作废 ${selectionRows.value.length} 个收货单吗?`, '确认作废', { type: 'warning', buttonSize: 'small' })
const ids = selectionRows.value.map(row => row.id)
const res: any = await receivingApi.batchCancelReceiving({ ids })
@ -1092,7 +1092,7 @@ async function handleReviewReceiving() {
await ElMessageBox.confirm(
`确定要批量审核 ${selectionRows.value.length} 个收货单吗?\n审核后将会直接通知货主且不可撤销。`,
'确认审核',
{ type: 'warning' }
{ type: 'warning', buttonSize: 'small' }
)
} catch {
return
@ -1483,7 +1483,7 @@ async function submitMatchPutaway() {
await ElMessageBox.confirm(
`将对收货单「${row?.receiving_number || receivingId}」与入库单「${entry.entry_order_code || entryId}」执行匹配入库(按 SKU 数量匹配)。确定继续?`,
'确认匹配入库',
{ confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }
{ confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning', buttonSize: 'small' }
)
} catch {
return
@ -1549,7 +1549,7 @@ async function handleQuickPutaway() {
ElMessageBox.alert(
`<div style="max-height: 300px; overflow: auto;">${errors.join('<br/>')}</div>`,
'校验未通过,无法转入库单',
{ confirmButtonText: '确定', dangerouslyUseHTMLString: true, type: 'error' }
{ confirmButtonText: '确定', dangerouslyUseHTMLString: true, type: 'error', buttonSize: 'small' }
)
return
}
@ -1558,7 +1558,7 @@ async function handleQuickPutaway() {
await ElMessageBox.confirm(
`确定对选中的 ${validRows.length} 条收货单执行转入库单吗?`,
'转入库单确认',
{ confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }
{ confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning', buttonSize: 'small' }
)
} catch {
return
@ -1583,7 +1583,7 @@ async function handleQuickPutaway() {
ElMessageBox.alert(
`<div style="max-height: 300px; overflow: auto;">${failList.join('<br/>')}</div>`,
`${failList.length} 条收货单处理失败`,
{ confirmButtonText: '确定', dangerouslyUseHTMLString: true, type: 'error' }
{ confirmButtonText: '确定', dangerouslyUseHTMLString: true, type: 'error', buttonSize: 'small' }
)
} else {
ElMessage.success('选中的收货单已全部转入库单成功')
@ -1622,7 +1622,7 @@ async function handleDirectPutaway() {
ElMessageBox.alert(
`<div style="max-height: 300px; overflow: auto;">${errors.join('<br/>')}</div>`,
'校验未通过,无法收货单直入',
{ confirmButtonText: '确定', dangerouslyUseHTMLString: true, type: 'error' }
{ confirmButtonText: '确定', dangerouslyUseHTMLString: true, type: 'error', buttonSize: 'small' }
)
return
}
@ -1631,7 +1631,7 @@ async function handleDirectPutaway() {
await ElMessageBox.confirm(
`确定对收货单「${row.receiving_number}」执行收货单直入吗?未入库明细将按库位直接写入库存并生成入库单。`,
'收货单直入确认',
{ confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }
{ confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning', buttonSize: 'small' }
)
} catch {
return

View File

@ -98,7 +98,8 @@ async function handleActionClick(btn: OperationButtonConfig) {
{
confirmButtonText: btn.confirmButtonText || '确定',
cancelButtonText: '取消',
type: (btn.confirmType || 'warning') as any
type: (btn.confirmType || 'warning') as any,
buttonSize: 'small'
}
)
} catch {

View File

@ -791,7 +791,7 @@ async function handleMarkEmpty(row: Record<string, any>) {
await ElMessageBox.confirm(
`确认库位「${location}」为空?\n标记后该库位下的商品记录将被清除;若库位账面还有库存,会按盘亏计入差异。`,
'标记库位为空',
{ confirmButtonText: '确认标记', cancelButtonText: '取消', type: 'warning' }
{ confirmButtonText: '确认标记', cancelButtonText: '取消', type: 'warning', buttonSize: 'small' }
)
} catch {
return
@ -852,7 +852,7 @@ async function finishCheck() {
await ElMessageBox.confirm(
'完成后不再允许修改盘点记录;未盘商品明细将按实盘 0 处理(计入盘亏与差异行数),未盘库位明细不计差异。确定完成?',
'完成盘点',
{ confirmButtonText: '确定完成', cancelButtonText: '取消', type: 'warning' }
{ confirmButtonText: '确定完成', cancelButtonText: '取消', type: 'warning', buttonSize: 'small' }
)
} catch {
return

View File

@ -754,7 +754,7 @@ async function handleDeleteRecord(record: Record<string, any>, row?: Record<stri
await ElMessageBox.confirm(
`确定删除该作业记录?\n商品:${name},数量:${record?.quantity ?? '—'}\n删除后该明细按剩余记录重新汇总,盘点单状态不变。`,
'删除作业记录',
{ confirmButtonText: '确定删除', cancelButtonText: '取消', type: 'warning' }
{ confirmButtonText: '确定删除', cancelButtonText: '取消', type: 'warning', buttonSize: 'small' }
)
} catch {
return
@ -818,7 +818,7 @@ async function handleClearLocation(row: Record<string, any>) {
`将删除该库位全部作业记录${row?.is_empty ? '与空库位标记' : ''}(当前 ${count} 条),` +
'该库位回到未盘;盘点单状态不变。',
'重盘清除库位',
{ confirmButtonText: '确定清除', cancelButtonText: '取消', type: 'warning' }
{ confirmButtonText: '确定清除', cancelButtonText: '取消', type: 'warning', buttonSize: 'small' }
)
} catch {
return

View File

@ -535,7 +535,8 @@ async function handleAuditReject(row: Record<string, any>) {
cancelButtonText: '取消',
inputType: 'textarea',
inputPlaceholder: '可留空',
type: 'warning'
type: 'warning',
buttonSize: 'small'
}
)
reason = String(res.value ?? '').trim()
@ -699,7 +700,8 @@ async function doBatchDelete() {
await ElMessageBox.confirm(confirmText, '批量删除盘点任务', {
confirmButtonText: '确定删除',
cancelButtonText: '取消',
type: 'warning'
type: 'warning',
buttonSize: 'small'
})
} catch {
return
@ -980,7 +982,7 @@ async function handleCreateSuccess(task: {
await ElMessageBox.confirm(
`盘点单 ${task.check_no || task.id} 已创建(空盘点单),是否立即添加${targetLabel}?`,
`添加${targetLabel}`,
{ confirmButtonText: '立即添加', cancelButtonText: '稍后再说', type: 'info' }
{ confirmButtonText: '立即添加', cancelButtonText: '稍后再说', type: 'info', buttonSize: 'small' }
)
} catch {
return

View File

@ -669,7 +669,7 @@ async function submitLocationRows(taskId: number) {
await ElMessageBox.confirm(
'未选择库位,将由后端自动拉取全仓库启用库位生成盘点范围,确定继续?',
'添加盘点库位',
{ confirmButtonText: '确定继续', cancelButtonText: '取消', type: 'warning' }
{ confirmButtonText: '确定继续', cancelButtonText: '取消', type: 'warning', buttonSize: 'small' }
)
} catch {
return

View File

@ -240,8 +240,8 @@
</div>
<template #footer>
<el-button @click="toOrderDialogVisible = false">取消</el-button>
<el-button type="primary" :loading="toOrderLoading" @click="handleToOrderSubmit">确认转单</el-button>
<el-button size="small" @click="toOrderDialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="toOrderLoading" @click="handleToOrderSubmit">确认转单</el-button>
</template>
</el-dialog>
@ -386,8 +386,8 @@
</div>
<template #footer>
<el-button @click="updateInfoDialogVisible = false">取消</el-button>
<el-button type="primary" :loading="updateInfoLoading" @click="handleUpdateInfoSubmit">保存修改</el-button>
<el-button size="small" @click="updateInfoDialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="updateInfoLoading" @click="handleUpdateInfoSubmit">保存修改</el-button>
</template>
</el-dialog>
@ -441,8 +441,8 @@
</div>
<template #footer>
<el-button @click="updateExpressDialogVisible = false">取消</el-button>
<el-button type="primary" :loading="updateExpressLoading" @click="handleUpdateExpressSubmit">确认更新</el-button>
<el-button size="small" @click="updateExpressDialogVisible = false">取消</el-button>
<el-button size="small" type="primary" :loading="updateExpressLoading" @click="handleUpdateExpressSubmit">确认更新</el-button>
</template>
</el-dialog>
</div>
@ -772,7 +772,7 @@ async function handleSingleRowCancel(row: any) {
await ElMessageBox.confirm(
`确定要取消出库单「${row.stockout_order_code || row.id}」吗?取消后将释放库存锁定。`,
'取消出库单',
{ type: 'warning', confirmButtonText: '确认取消', cancelButtonText: '返回' }
{ type: 'warning', buttonSize: 'small', confirmButtonText: '确认取消', cancelButtonText: '返回' }
)
} catch {
return
@ -1277,7 +1277,7 @@ async function handleSingleRowStockout(row: any) {
await ElMessageBox.confirm(
`确定要一键出库出库单「${row.stockout_order_code || row.id}」吗?确认后状态将变更为"已完成"。请确保已填写运单号。`,
'一键出库',
{ type: 'warning', confirmButtonText: '确认', cancelButtonText: '取消' }
{ type: 'warning', buttonSize: 'small', confirmButtonText: '确认', cancelButtonText: '取消' }
)
} catch {
return
@ -1317,7 +1317,7 @@ async function confirmBatchCancel() {
return
}
try {
await ElMessageBox.confirm(`确定要批量作废 ${selectionRows.value.length} 个出库单吗?`, '确认', { type: 'warning' })
await ElMessageBox.confirm(`确定要批量作废 ${selectionRows.value.length} 个出库单吗?`, '确认', { type: 'warning', buttonSize: 'small' })
let successCount = 0
let failCount = 0
for (const row of selectionRows.value) {