完成商城下单功能
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user