fix ProductEdit.vue style
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<t-input v-model.trim="keyword" class="search" borderless clearable placeholder="搜索产品名称或编码" />
|
||||
<div class="list">
|
||||
<t-cell-group v-if="filteredProductList.length" theme="card">
|
||||
<t-cell v-for="product in filteredProductList" :key="product.id" class="product" :title="product.name" :description="`${product.code || '-'} · ${product.baseUnit || '-'}`">
|
||||
<t-cell v-for="product in filteredProductList" :key="product.id" class="product" :title="product.name" :description="`${product.code || '-'} · ${getProductBaseUnitName(product) || '-'}`">
|
||||
<template #rightIcon>
|
||||
<div class="units">
|
||||
<t-button
|
||||
@@ -43,7 +43,7 @@ import ProductAPI from "@/api/ProductAPI";
|
||||
import type { Product, ProductUnit } from "@/types/Product";
|
||||
import { getErrorMessage } from "@/utils/error";
|
||||
import { Message } from "@/utils/message";
|
||||
import { formatProductAmount } from "@/utils/product";
|
||||
import { formatProductAmount, getProductBaseUnitName } from "@/utils/product";
|
||||
|
||||
interface Props {
|
||||
modelValue: { productId: string; productUnitId: string } | undefined;
|
||||
|
||||
Reference in New Issue
Block a user