功能(网页):新增客户体验流程
This commit is contained in:
@@ -189,6 +189,20 @@
|
||||
:rows="3"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="适合人群" name="targetAudience">
|
||||
<a-textarea
|
||||
v-model:value="formState.targetAudience"
|
||||
placeholder="例如:短甲、通勤、婚礼跟妆、敏感肌需提前沟通"
|
||||
:rows="3"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="注意事项" name="precautions">
|
||||
<a-textarea
|
||||
v-model:value="formState.precautions"
|
||||
placeholder="例如:完成后 24 小时内避免长时间热水浸泡"
|
||||
:rows="3"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="店铺" name="shopId">
|
||||
<a-select
|
||||
v-model:value="formState.shopId"
|
||||
@@ -390,6 +404,20 @@
|
||||
:disabled="true"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="适合人群">
|
||||
<a-textarea
|
||||
v-model:value="viewFormState.targetAudience"
|
||||
:rows="3"
|
||||
:disabled="true"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="注意事项">
|
||||
<a-textarea
|
||||
v-model:value="viewFormState.precautions"
|
||||
:rows="3"
|
||||
:disabled="true"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="店铺">
|
||||
<a-select v-model:value="viewFormState.shopId" :disabled="true">
|
||||
<a-select-option
|
||||
@@ -698,6 +726,8 @@ const viewFormState = reactive({
|
||||
shopId: undefined,
|
||||
title: '',
|
||||
description: '',
|
||||
targetAudience: '',
|
||||
precautions: '',
|
||||
imageFileIds: '',
|
||||
price: 0,
|
||||
likeCount: 0,
|
||||
@@ -729,6 +759,8 @@ const formState = reactive({
|
||||
shopId: undefined,
|
||||
title: '',
|
||||
description: '',
|
||||
targetAudience: '',
|
||||
precautions: '',
|
||||
imageFileIds: '',
|
||||
price: 0,
|
||||
likeCount: 0,
|
||||
@@ -1084,6 +1116,8 @@ const showAddModal = async () => {
|
||||
shopId: shopId,
|
||||
title: '',
|
||||
description: '',
|
||||
targetAudience: '',
|
||||
precautions: '',
|
||||
imageFileIds: '',
|
||||
price: 0,
|
||||
likeCount: 0,
|
||||
@@ -1112,6 +1146,8 @@ const showEditModal = async (record: Product | Record<string, any>) => {
|
||||
const recordShopId = 'shopId' in record ? record.shopId : (record as any).shopId
|
||||
const recordTitle = 'title' in record ? record.title : (record as any).title
|
||||
const recordDescription = 'description' in record ? record.description : (record as any).description
|
||||
const recordTargetAudience = 'targetAudience' in record ? record.targetAudience : (record as any).targetAudience
|
||||
const recordPrecautions = 'precautions' in record ? record.precautions : (record as any).precautions
|
||||
const recordImageFileIds = 'imageFileIds' in record ? record.imageFileIds : (record as any).imageFileIds
|
||||
const recordPrice = 'price' in record ? record.price : (record as any).price
|
||||
const recordLikeCount = 'likeCount' in record ? record.likeCount : (record as any).likeCount
|
||||
@@ -1134,6 +1170,8 @@ const showEditModal = async (record: Product | Record<string, any>) => {
|
||||
shopId: recordShopId,
|
||||
title: recordTitle,
|
||||
description: recordDescription,
|
||||
targetAudience: recordTargetAudience || '',
|
||||
precautions: recordPrecautions || '',
|
||||
imageFileIds: recordImageFileIds,
|
||||
price: recordPrice,
|
||||
likeCount: normalizeInteractionCount(recordLikeCount),
|
||||
@@ -1168,6 +1206,8 @@ const showViewModal = async (record: Product | Record<string, any>) => {
|
||||
const recordShopId = 'shopId' in record ? record.shopId : (record as any).shopId
|
||||
const recordTitle = 'title' in record ? record.title : (record as any).title
|
||||
const recordDescription = 'description' in record ? record.description : (record as any).description
|
||||
const recordTargetAudience = 'targetAudience' in record ? record.targetAudience : (record as any).targetAudience
|
||||
const recordPrecautions = 'precautions' in record ? record.precautions : (record as any).precautions
|
||||
const recordImageFileIds = 'imageFileIds' in record ? record.imageFileIds : (record as any).imageFileIds
|
||||
const recordPrice = 'price' in record ? record.price : (record as any).price
|
||||
const recordLikeCount = 'likeCount' in record ? record.likeCount : (record as any).likeCount
|
||||
@@ -1190,6 +1230,8 @@ const showViewModal = async (record: Product | Record<string, any>) => {
|
||||
shopId: recordShopId,
|
||||
title: recordTitle,
|
||||
description: recordDescription,
|
||||
targetAudience: recordTargetAudience || '',
|
||||
precautions: recordPrecautions || '',
|
||||
imageFileIds: recordImageFileIds,
|
||||
price: recordPrice,
|
||||
likeCount: normalizeInteractionCount(recordLikeCount),
|
||||
@@ -1252,6 +1294,8 @@ const buildDraftPayload = () => ({
|
||||
shopId: formState.shopId,
|
||||
title: formState.title,
|
||||
description: formState.description,
|
||||
targetAudience: formState.targetAudience,
|
||||
precautions: formState.precautions,
|
||||
imageFileIds: formState.imageFileIds,
|
||||
price: formState.price,
|
||||
likeCount: formState.likeCount,
|
||||
|
||||
Reference in New Issue
Block a user