refactor(shop): 将商品价格相关文本统一修改为“商城价”
- 修改shopGoods、shopGoodsBrowse和shopGoodsSku模型中price字段注释 - 更新shopGoodsBrowse和shopGoodsSku页面表格中价格列标题 - 调整shopGoodsEdit组件中表单标签、输入框占位符和校验提示信息 - 同步修改shopGoodsSkuEdit组件中价格表单项的标签和占位符文本 - 保证所有相关文本表述一致,提升用户界面和代码的统一性
This commit is contained in:
@@ -46,7 +46,7 @@ export interface ShopGoods {
|
|||||||
position?: string;
|
position?: string;
|
||||||
// 进货价格
|
// 进货价格
|
||||||
buyingPrice?: string;
|
buyingPrice?: string;
|
||||||
// 商品价格
|
// 商城价
|
||||||
price?: string;
|
price?: string;
|
||||||
originPrice?: string;
|
originPrice?: string;
|
||||||
// 销售价格
|
// 销售价格
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export interface ShopGoodsBrowse {
|
|||||||
goodsName?: string;
|
goodsName?: string;
|
||||||
/** 商品封面图(关联查询) */
|
/** 商品封面图(关联查询) */
|
||||||
goodsImage?: string;
|
goodsImage?: string;
|
||||||
/** 商品价格(关联查询) */
|
/** 商城价(关联查询) */
|
||||||
price?: string;
|
price?: string;
|
||||||
/** 市场价(关联查询) */
|
/** 市场价(关联查询) */
|
||||||
salePrice?: string;
|
salePrice?: string;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export interface ShopGoodsSku {
|
|||||||
sku?: string;
|
sku?: string;
|
||||||
// 商品图片
|
// 商品图片
|
||||||
image?: string;
|
image?: string;
|
||||||
// 商品价格
|
// 商城价
|
||||||
price?: string;
|
price?: string;
|
||||||
// 市场价格
|
// 市场价格
|
||||||
salePrice?: string;
|
salePrice?: string;
|
||||||
|
|||||||
@@ -72,10 +72,10 @@
|
|||||||
v-model:value="form.unitName"
|
v-model:value="form.unitName"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="商品价格" name="price">
|
<a-form-item label="商城价" name="price">
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-input-number
|
<a-input-number
|
||||||
:placeholder="`商品价格`"
|
:placeholder="`商城价`"
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
:min="0.01"
|
:min="0.01"
|
||||||
v-model:value="form.price"
|
v-model:value="form.price"
|
||||||
@@ -308,7 +308,7 @@
|
|||||||
:precision="2"
|
:precision="2"
|
||||||
:min="0"
|
:min="0"
|
||||||
style="width: 110px"
|
style="width: 110px"
|
||||||
placeholder="商品价格"
|
placeholder="商城价"
|
||||||
/>
|
/>
|
||||||
<a-input-number
|
<a-input-number
|
||||||
v-model:value="batchSalePrice"
|
v-model:value="batchSalePrice"
|
||||||
@@ -895,7 +895,7 @@ const columns = [
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '商品价格',
|
title: '商城价',
|
||||||
dataIndex: 'price',
|
dataIndex: 'price',
|
||||||
key: 'price',
|
key: 'price',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
@@ -1337,7 +1337,7 @@ const rules = reactive({
|
|||||||
price: [
|
price: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: '请填写商品价格',
|
message: '请填写商城价',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '商品价格',
|
title: '商城价',
|
||||||
dataIndex: 'price',
|
dataIndex: 'price',
|
||||||
key: 'price',
|
key: 'price',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
|||||||
@@ -45,10 +45,10 @@
|
|||||||
@del="onDeleteItem"
|
@del="onDeleteItem"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="商品价格" name="price">
|
<a-form-item label="商城价" name="price">
|
||||||
<a-input
|
<a-input
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="请输入商品价格"
|
placeholder="请输入商城价"
|
||||||
v-model:value="form.price"
|
v-model:value="form.price"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@@ -137,7 +137,7 @@
|
|||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '商品价格',
|
title: '商城价',
|
||||||
dataIndex: 'price',
|
dataIndex: 'price',
|
||||||
key: 'price',
|
key: 'price',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
|
|||||||
Reference in New Issue
Block a user