Commit 691c8f14 authored by XieZhiXiong's avatar XieZhiXiong

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

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