Commit 7acf5074 authored by XieZhiXiong's avatar XieZhiXiong

feat: 对接代客换货申请

parent 44e62fbe
......@@ -475,6 +475,7 @@ export const addSchema = (orderType: number): ISchema => {
'x-component': 'CustomAddressSelect',
'x-component-props': {
isDefaultAddress: true,
echo: true,
},
'x-rules': [
{
......@@ -491,6 +492,7 @@ export const addSchema = (orderType: number): ISchema => {
'x-component': 'CustomAddressSelect',
'x-component-props': {
isDefaultAddress: true,
echo: true,
},
'x-rules': [
{
......@@ -507,6 +509,7 @@ export const addSchema = (orderType: number): ISchema => {
'x-component-props': {
isDefaultAddress: true,
addressType: 1,
echo: true,
},
'x-rules': [
{
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-12-02 14:15:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-12-02 15:38:37
* @LastEditTime: 2021-12-02 17:37:22
* @Description:
*/
import { ISchema } from '@formily/antd';
......@@ -19,6 +19,7 @@ import {
ORDER_TYPE2_POINTS,
ORDER_TYPE2_CHANNEL_POINTS,
} from '@/constants/order';
import { getAuth } from '@/utils/auth';
import { isMaterialOrder } from '../../utils';
const orderTypeArr = GlobalConfig.web.orderType.map((item) => ({
......@@ -26,6 +27,8 @@ const orderTypeArr = GlobalConfig.web.orderType.map((item) => ({
value: item.id,
}));
const userInfo = getAuth();
export const addSchema = (orderType: number): ISchema => {
const isPoints = orderType === ORDER_TYPE2_POINTS || orderType === ORDER_TYPE2_CHANNEL_POINTS;
const isMateriel = isMaterialOrder(orderType);
......@@ -75,6 +78,9 @@ export const addSchema = (orderType: number): ISchema => {
enum: [],
'x-component-props': {
showSearch: true,
defaultActiveFirstOption: false,
showArrow: false,
filterOption: false,
onSearch: '{{handlePurchaserSearch}}'
},
required: true,
......@@ -82,7 +88,7 @@ export const addSchema = (orderType: number): ISchema => {
supplierMember: {
type: 'string',
title: '供应会员',
default: '123',
default: userInfo.company,
editable: false,
},
orderType: {
......@@ -382,7 +388,6 @@ export const addSchema = (orderType: number): ISchema => {
'x-component': 'CustomAddressSelect',
'x-component-props': {
isDefaultAddress: true,
echo: true,
},
'x-rules': [
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment