Commit 691c8f14 authored by XieZhiXiong's avatar XieZhiXiong

feat: 对接新增售后换货简单流程

parent 424ede16
......@@ -305,32 +305,27 @@ export const addSchema = (orderType: number): ISchema => {
title: '订单号',
'x-component': 'OrderNo',
},
materielNo: {
associatedProductId: {
type: 'string',
title: '物料编号',
'x-component': 'Text',
},
materielNameAndType: {
associatedProductName: {
type: 'string',
title: '物料名称、规格',
'x-component': 'Text',
},
materielType: {
type: 'string',
title: '规格',
'x-component': 'Text',
},
materielCategory: {
associatedCategory: {
type: 'string',
title: '品类',
'x-component': 'Text',
},
materielBrand: {
associatedBrand: {
type: 'string',
title: '品牌',
'x-component': 'Text',
},
materielUnit: {
associatedUnit: {
type: 'string',
title: '单位',
'x-component': 'Text',
......@@ -397,11 +392,6 @@ export const addSchema = (orderType: number): ISchema => {
}
],
},
// 不用于展示,只用于收集值
id: {
type: 'string',
display: false,
},
// 其他数据,不用于展示,只用于收集值
extraData: {
type: 'string',
......@@ -488,9 +478,9 @@ export const addSchema = (orderType: number): ISchema => {
title: '退货发货地址',
type: 'string',
visible: false,
'x-component': 'AddressFormItem',
'x-component': 'CustomAddressSelect',
'x-component-props': {
dataSource: [],
isDefaultAddress: true,
},
'x-rules': [
{
......@@ -501,12 +491,12 @@ export const addSchema = (orderType: number): ISchema => {
},
// 退货自提地址
pickupAddress: {
title: '退货自提地址',
type: 'string',
visible: false,
'x-component': 'AddressFormItem',
title: '退货自提地址',
type: 'string',
visible: false,
'x-component': 'CustomAddressSelect',
'x-component-props': {
dataSource: [],
isDefaultAddress: true,
},
'x-rules': [
{
......@@ -519,9 +509,10 @@ export const addSchema = (orderType: number): ISchema => {
deliveryAddress: {
title: '换货收货地址',
type: 'string',
'x-component': 'AddressFormItem',
'x-component': 'CustomAddressSelect',
'x-component-props': {
dataSource: [],
isDefaultAddress: true,
addressType: 1,
},
'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