完成商城下单功能

This commit is contained in:
gxwebsoft
2024-05-27 01:24:02 +08:00
parent dea6ae1c23
commit 4bae8599e1
26 changed files with 803 additions and 129 deletions

View File

@@ -35,7 +35,7 @@
</template>
<template v-else>
<a-form-item label="接收对象" name="toUserIds" v-if="!isUpdate">
<SelectStaff
<SelectUser
:placeholder="`选择用户`"
v-model:value="form.toUserName"
@done="onToUser"
@@ -95,6 +95,7 @@
import highlight from '@bytemd/plugin-highlight-ssr';
import 'highlight.js/styles/default.css';
import { MerchantAccount } from '@/api/shop/merchantAccount/model';
import { User } from '@/api/system/user/model';
// 是否是修改
const isUpdate = ref(false);
@@ -190,10 +191,9 @@
highlight()
]);
const onToUser = (list: MerchantAccount[]) => {
merchantAccount.value = list;
form.toUserIds = list.map((d) => d.phone);
form.toUserName = list.map((d) => d.realName);
const onToUser = (item: User) => {
form.toUserIds = [item.phone];
form.toUserName = [item.phone];
console.log(form);
// form.toUserId = item.userId;
// form.toUserName = item.nickname;