fix: antd lint

This commit is contained in:
xingyu4j
2025-11-24 14:34:38 +08:00
parent 709afe9a83
commit 50ba0c137a
76 changed files with 220 additions and 205 deletions

View File

@@ -249,9 +249,9 @@ defineExpose({ validate });
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>
合计付款{{ erpPriceInputFormatter(summaries.totalPrice) }}

View File

@@ -128,6 +128,7 @@ function handleOpenSaleOut() {
function handleAddSaleOut(rows: ErpSaleOutApi.SaleOut[]) {
rows.forEach((row) => {
// TODO 芋艿
const newItem: ErpFinanceReceiptApi.FinanceReceiptItem = {
bizId: row.id,
bizType: ErpBizType.SALE_OUT,
@@ -249,9 +250,9 @@ defineExpose({ validate });
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>
合计收款{{ erpPriceInputFormatter(summaries.totalPrice) }}

View File

@@ -151,6 +151,7 @@ async function handleWarehouseChange(row: ErpPurchaseInApi.PurchaseInItem) {
/** 处理行数据变更 */
function handleRowChange(row: any) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index === -1) {
tableData.value.push(row);
@@ -273,9 +274,9 @@ onMounted(async () => {
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>数量{{ erpCountInputFormatter(summaries.count) }}</span>
<span>

View File

@@ -142,6 +142,7 @@ function handleAdd() {
/** 处理删除 */
function handleDelete(row: ErpPurchaseOrderApi.PurchaseOrderItem) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index !== -1) {
tableData.value.splice(index, 1);
@@ -285,9 +286,9 @@ onMounted(async () => {
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>数量{{ erpCountInputFormatter(summaries.count) }}</span>
<span>

View File

@@ -131,6 +131,7 @@ watch(
/** 处理删除 */
function handleDelete(row: ErpPurchaseReturnApi.PurchaseReturnItem) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index !== -1) {
tableData.value.splice(index, 1);
@@ -153,6 +154,7 @@ async function handleWarehouseChange(
/** 处理行数据变更 */
function handleRowChange(row: any) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index === -1) {
tableData.value.push(row);
@@ -275,9 +277,9 @@ onMounted(async () => {
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>数量{{ erpCountInputFormatter(summaries.count) }}</span>
<span>

View File

@@ -142,6 +142,7 @@ function handleAdd() {
/** 处理删除 */
function handleDelete(row: ErpSaleOrderApi.SaleOrderItem) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index !== -1) {
tableData.value.splice(index, 1);
@@ -285,9 +286,9 @@ onMounted(async () => {
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>数量{{ erpCountInputFormatter(summaries.count) }}</span>
<span>

View File

@@ -131,6 +131,7 @@ watch(
/** 处理删除 */
function handleDelete(row: ErpSaleOutApi.SaleOutItem) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index !== -1) {
tableData.value.splice(index, 1);
@@ -273,9 +274,9 @@ onMounted(async () => {
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>数量{{ erpCountInputFormatter(summaries.count) }}</span>
<span>

View File

@@ -131,6 +131,7 @@ watch(
/** 处理删除 */
function handleDelete(row: ErpSaleReturnApi.SaleReturnItem) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index !== -1) {
tableData.value.splice(index, 1);
@@ -273,9 +274,9 @@ onMounted(async () => {
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>数量{{ erpCountInputFormatter(summaries.count) }}</span>
<span>

View File

@@ -106,6 +106,7 @@ function handleAdd() {
/** 处理删除 */
function handleDelete(row: ErpStockCheckApi.StockCheckItem) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index !== -1) {
tableData.value.splice(index, 1);
@@ -280,9 +281,9 @@ onMounted(async () => {
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>数量{{ erpCountInputFormatter(summaries.count) }}</span>
<span>

View File

@@ -98,6 +98,7 @@ function handleAdd() {
totalPrice: undefined,
remark: undefined,
};
// TODO 芋艿
tableData.value.push(newRow);
// 通知父组件更新
emit('update:items', [...tableData.value]);
@@ -105,6 +106,7 @@ function handleAdd() {
/** 处理删除 */
function handleDelete(row: ErpStockInApi.StockInItem) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index !== -1) {
tableData.value.splice(index, 1);
@@ -269,9 +271,9 @@ onMounted(async () => {
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>数量{{ erpCountInputFormatter(summaries.count) }}</span>
<span>

View File

@@ -106,6 +106,7 @@ function handleAdd() {
/** 处理删除 */
function handleDelete(row: ErpStockMoveApi.StockMoveItem) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index !== -1) {
tableData.value.splice(index, 1);
@@ -290,9 +291,9 @@ onMounted(async () => {
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>数量{{ erpCountInputFormatter(summaries.count) }}</span>
<span>

View File

@@ -105,6 +105,7 @@ function handleAdd() {
/** 处理删除 */
function handleDelete(row: ErpStockOutApi.StockOutItem) {
// TODO 芋艿
const index = tableData.value.findIndex((item) => item.seq === row.seq);
if (index !== -1) {
tableData.value.splice(index, 1);
@@ -267,9 +268,9 @@ onMounted(async () => {
</template>
<template #bottom>
<div class="border-border bg-muted mt-2 rounded border p-2">
<div class="text-muted-foreground flex justify-between text-sm">
<span class="text-foreground font-medium">合计</span>
<div class="mt-2 rounded border border-border bg-muted p-2">
<div class="flex justify-between text-sm text-muted-foreground">
<span class="font-medium text-foreground">合计</span>
<div class="flex space-x-4">
<span>数量{{ erpCountInputFormatter(summaries.count) }}</span>
<span>