review:【antd】【mall】营销活动的商品选择
This commit is contained in:
@@ -7,13 +7,29 @@ import { requestClient } from '#/api/request';
|
|||||||
export namespace BpmTaskApi {
|
export namespace BpmTaskApi {
|
||||||
/** 流程任务 */
|
/** 流程任务 */
|
||||||
export interface Task {
|
export interface Task {
|
||||||
id: number; // 编号
|
id: string; // 编号
|
||||||
name: string; // 监听器名字
|
name: string; // 任务名字
|
||||||
type: string; // 监听器类型
|
status: number; // 任务状态
|
||||||
status: number; // 监听器状态
|
createTime: number; // 创建时间
|
||||||
event: string; // 监听事件
|
endTime: number; // 结束时间
|
||||||
valueType: string; // 监听器值类型
|
durationInMillis: number; // 持续时间
|
||||||
processInstance?: BpmProcessInstanceApi.ProcessInstance; // 流程实例
|
reason: string; // 审批理由
|
||||||
|
ownerUser: any; // 负责人
|
||||||
|
assigneeUser: any; // 处理人
|
||||||
|
taskDefinitionKey: string; // 任务定义的标识
|
||||||
|
processInstanceId: string; // 流程实例id
|
||||||
|
processInstance: BpmProcessInstanceApi.ProcessInstance; // 流程实例
|
||||||
|
parentTaskId: any; // 父任务id
|
||||||
|
children: any; // 子任务
|
||||||
|
formId: any; // 表单id
|
||||||
|
formName: any; // 表单名称
|
||||||
|
formConf: any; // 表单配置
|
||||||
|
formFields: any; // 表单字段
|
||||||
|
formVariables: any; // 表单变量
|
||||||
|
buttonsSetting: any; // 按钮设置
|
||||||
|
signEnable: any; // 签名设置
|
||||||
|
reasonRequire: any; // 原因设置
|
||||||
|
nodeType: any; // 节点类型
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
placeholder: '请输入最大砍价金额',
|
placeholder: '请输入最大砍价金额',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// TODO @puhui999:这里交互不太对,可以对比下 element-plus 版本呢
|
||||||
{
|
{
|
||||||
fieldName: 'spuId',
|
fieldName: 'spuId',
|
||||||
label: '砍价商品',
|
label: '砍价商品',
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ export function useFormSchema(): VbenFormSchema[] {
|
|||||||
options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING, 'boolean'),
|
options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING, 'boolean'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// TODO @puhui999:这里交互不太对,可以对比下 element-plus 版本呢
|
||||||
{
|
{
|
||||||
fieldName: 'spuId',
|
fieldName: 'spuId',
|
||||||
label: '拼团商品',
|
label: '拼团商品',
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ const [Modal, modalApi] = useVbenModal({
|
|||||||
switch (data.productScope) {
|
switch (data.productScope) {
|
||||||
case PromotionProductScopeEnum.CATEGORY.scope: {
|
case PromotionProductScopeEnum.CATEGORY.scope: {
|
||||||
const categoryIds = data.productCategoryIds;
|
const categoryIds = data.productCategoryIds;
|
||||||
|
|
||||||
data.productScopeValues = Array.isArray(categoryIds)
|
data.productScopeValues = Array.isArray(categoryIds)
|
||||||
? categoryIds
|
? categoryIds
|
||||||
: categoryIds
|
: categoryIds
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { requestClient } from '#/api/request';
|
|||||||
export namespace BpmTaskApi {
|
export namespace BpmTaskApi {
|
||||||
/** 流程任务 */
|
/** 流程任务 */
|
||||||
export interface Task {
|
export interface Task {
|
||||||
id: number; // 编号
|
id: string; // 编号
|
||||||
name: string; // 任务名字
|
name: string; // 任务名字
|
||||||
status: number; // 任务状态
|
status: number; // 任务状态
|
||||||
createTime: number; // 创建时间
|
createTime: number; // 创建时间
|
||||||
|
|||||||
@@ -8,22 +8,22 @@ import { z } from '#/adapter/form';
|
|||||||
|
|
||||||
export const EVENT_EXECUTION_OPTIONS = [
|
export const EVENT_EXECUTION_OPTIONS = [
|
||||||
{
|
{
|
||||||
label: 'start',
|
label: '开始',
|
||||||
value: 'start',
|
value: 'start',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'end',
|
label: '结束',
|
||||||
value: 'end',
|
value: 'end',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const EVENT_OPTIONS = [
|
export const EVENT_OPTIONS = [
|
||||||
{ label: 'create', value: 'create' },
|
{ label: '创建', value: 'create' },
|
||||||
{ label: 'assignment', value: 'assignment' },
|
{ label: '指派', value: 'assignment' },
|
||||||
{ label: 'complete', value: 'complete' },
|
{ label: '完成', value: 'complete' },
|
||||||
{ label: 'delete', value: 'delete' },
|
{ label: '删除', value: 'delete' },
|
||||||
{ label: 'update', value: 'update' },
|
{ label: '更新', value: 'update' },
|
||||||
{ label: 'timeout', value: 'timeout' },
|
{ label: '超时', value: 'timeout' },
|
||||||
];
|
];
|
||||||
|
|
||||||
/** 新增/修改的表单 */
|
/** 新增/修改的表单 */
|
||||||
|
|||||||
@@ -145,5 +145,6 @@ async function processLoadData(
|
|||||||
<template>
|
<template>
|
||||||
<Modal :title="getTitle" class="w-2/5">
|
<Modal :title="getTitle" class="w-2/5">
|
||||||
<Form class="mx-4" />
|
<Form class="mx-4" />
|
||||||
|
<!-- TODO @puhui999:这里需要同步下 -->
|
||||||
</Modal>
|
</Modal>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import type { MpMaterialApi } from '#/api/mp/material';
|
|||||||
|
|
||||||
import { watch } from 'vue';
|
import { watch } from 'vue';
|
||||||
|
|
||||||
|
import { $t } from '@vben/locales';
|
||||||
import { openWindow } from '@vben/utils';
|
import { openWindow } from '@vben/utils';
|
||||||
|
|
||||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||||
|
|||||||
Reference in New Issue
Block a user