Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-platform
Commits
46058aa3
Commit
46058aa3
authored
Dec 25, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 替换接口
parent
55e7ad6b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
859 additions
and
857 deletions
+859
-857
index.ts
.../exchangePrSubmit/components/ExchangeForm/schema/index.ts
+460
-459
index.ts
...tion/repairPrSubmit/components/RepairForm/schema/index.ts
+398
-397
index.ts
...tion/returnPrSubmit/components/ReturnForm/schema/index.ts
+1
-1
No files found.
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/schema/index.ts
View file @
46058aa3
import
{
ISchema
}
from
'@formily/antd'
;
import
{
ISchema
}
from
'@formily/antd'
;
import
Search
from
'@/components/NiceForm/components/Search'
;
import
Search
from
'@/components/NiceForm/components/Search'
;
import
Submit
from
'@/components/NiceForm/components/Submit'
;
import
Submit
from
'@/components/NiceForm/components/Submit'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
UPLOAD_TYPE
,
DELIVERY_TYPE_ENUM
}
from
'@/constants'
;
import
{
UPLOAD_TYPE
,
DELIVERY_TYPE_ENUM
}
from
'@/constants'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
// 供应会员列表列
// 供应会员列表列
const
supplierColumns
=
[
const
supplierColumns
=
[
{
{
title
:
'会员ID'
,
title
:
'会员ID'
,
dataIndex
:
'memberId'
,
dataIndex
:
'memberId'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
title
:
'会员名称'
,
title
:
'会员名称'
,
dataIndex
:
'name'
,
dataIndex
:
'name'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
title
:
'会员类型'
,
title
:
'会员类型'
,
dataIndex
:
'memberTypeName'
,
dataIndex
:
'memberTypeName'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
title
:
'会员角色'
,
title
:
'会员角色'
,
dataIndex
:
'roleName'
,
dataIndex
:
'roleName'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
title
:
'会员等级'
,
title
:
'会员等级'
,
dataIndex
:
'levelTag'
,
dataIndex
:
'levelTag'
,
align
:
'center'
,
align
:
'center'
,
},
},
];
];
// 获取供应会员
// 获取供应会员
const
getSupplier
=
async
(
params
)
=>
{
const
getSupplier
=
async
(
params
)
=>
{
const
res
=
await
PublicApi
.
getMemberManage
UpperProviderPage
({
const
res
=
await
PublicApi
.
getMemberManage
AftersaleReplacePage
({
...
params
,
...
params
,
})
})
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
return
res
.
data
;
return
res
.
data
;
}
}
return
{
totalCount
:
0
,
data
:
[]
};
return
{
totalCount
:
0
,
data
:
[]
};
};
};
const
supplierSchema
:
ISchema
=
{
const
supplierSchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
properties
:
{
properties
:
{
megaLayout
:
{
megaLayout
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'Mega-Layout'
,
'x-component'
:
'Mega-Layout'
,
properties
:
{
properties
:
{
name
:
{
name
:
{
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-mega-props'
:
{},
'x-mega-props'
:
{},
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'搜索'
,
placeholder
:
'搜索'
,
align
:
'flex-start'
,
align
:
'flex-start'
,
advanced
:
false
,
advanced
:
false
,
tip
:
'输入 供应会员名称 进行搜索'
,
tip
:
'输入 供应会员名称 进行搜索'
,
},
},
},
},
},
},
},
},
},
},
};
};
export
const
addBillSchema
:
ISchema
=
{
export
const
addBillSchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
properties
:
{
properties
:
{
REPOSIT_TABS
:
{
REPOSIT_TABS
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'tab'
,
'x-component'
:
'tab'
,
'x-component-props'
:
{
'x-component-props'
:
{
type
:
'card'
,
type
:
'card'
,
},
},
properties
:
{
properties
:
{
'tab-1'
:
{
'tab-1'
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'tabpane'
,
'x-component'
:
'tabpane'
,
'x-component-props'
:
{
'x-component-props'
:
{
tab
:
'基本信息'
,
tab
:
'基本信息'
,
},
},
properties
:
{
properties
:
{
MEGA_LAYOUT1
:
{
MEGA_LAYOUT1
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'Mega-Layout'
,
'x-component'
:
'Mega-Layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
labelCol
:
4
,
labelCol
:
4
,
wrapperCol
:
12
,
wrapperCol
:
12
,
labelAlign
:
'left'
,
labelAlign
:
'left'
,
},
},
properties
:
{
properties
:
{
applyAbstract
:
{
applyAbstract
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'申请单摘要'
,
title
:
'申请单摘要'
,
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请填写申请单摘要'
,
message
:
'请填写申请单摘要'
,
},
},
{
{
limitByte
:
true
,
// 自定义校验规则
limitByte
:
true
,
// 自定义校验规则
maxByte
:
60
,
maxByte
:
60
,
}
}
],
],
},
},
// 这是用 Mega-Layout 设置独立作用域,不然会被 Form 的布局影响到弹窗的布局
// 这是用 Mega-Layout 设置独立作用域,不然会被 Form 的布局影响到弹窗的布局
MEGA_LAYOUT1_1
:
{
MEGA_LAYOUT1_1
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'Mega-Layout'
,
'x-component'
:
'Mega-Layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
wrapperCol
:
24
,
wrapperCol
:
24
,
},
},
properties
:
{
properties
:
{
supplierMember
:
{
supplierMember
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'供应会员'
,
title
:
'供应会员'
,
'x-component'
:
'CustomRelevance'
,
'x-component'
:
'CustomRelevance'
,
'x-component-props'
:
{
'x-component-props'
:
{
title
:
'关联'
,
title
:
'关联'
,
tip
:
'请选择对应单据'
,
tip
:
'请选择对应单据'
,
modalProps
:
{
modalProps
:
{
title
:
'选择会员'
,
title
:
'选择会员'
,
},
},
columns
:
supplierColumns
,
columns
:
supplierColumns
,
fetchTableData
:
getSupplier
,
fetchTableData
:
getSupplier
,
formilyProps
:
{
formilyProps
:
{
ctx
:
{
ctx
:
{
schema
:
supplierSchema
,
schema
:
supplierSchema
,
components
:
{
components
:
{
Search
,
Search
,
Submit
,
Submit
,
},
},
effects
:
(
$
,
actions
)
=>
{
effects
:
(
$
,
actions
)
=>
{
},
},
inline
:
false
,
inline
:
false
,
}
}
},
},
tableProps
:
{
tableProps
:
{
rowKey
:
'memberId'
,
rowKey
:
'memberId'
,
lableKey
:
'name'
,
lableKey
:
'name'
,
},
},
},
},
'x-mega-props'
:
{
'x-mega-props'
:
{
wrapperCol
:
12
,
wrapperCol
:
12
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择供应会员'
,
message
:
'请选择供应会员'
,
},
},
],
],
},
},
},
},
},
},
applyNo
:
{
applyNo
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'申请单号'
,
title
:
'申请单号'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
applyTime
:
{
applyTime
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'单据时间'
,
title
:
'单据时间'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
outerStatus
:
{
outerStatus
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'外部状态'
,
title
:
'外部状态'
,
'x-component'
:
'Children'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
'x-component-props'
:
{
children
:
'{{OuterStatus}}'
children
:
'{{OuterStatus}}'
},
},
},
},
innerStatus
:
{
innerStatus
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'内部状态'
,
title
:
'内部状态'
,
'x-component'
:
'Children'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
'x-component-props'
:
{
children
:
'{{InnerStatus}}'
children
:
'{{InnerStatus}}'
},
},
},
},
},
},
},
},
},
},
},
},
'tab-2'
:
{
'tab-2'
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'tabpane'
,
'x-component'
:
'tabpane'
,
'x-component-props'
:
{
'x-component-props'
:
{
tab
:
'单据明细'
,
tab
:
'单据明细'
,
},
},
properties
:
{
properties
:
{
MEGA_LAYOUT2
:
{
MEGA_LAYOUT2
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
labelCol
:
4
,
labelCol
:
4
,
labelAlign
:
'left'
,
labelAlign
:
'left'
,
},
},
properties
:
{
properties
:
{
addBtn
:
{
addBtn
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'Children'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
'x-component-props'
:
{
children
:
'{{TableAddButton}}'
children
:
'{{TableAddButton}}'
},
},
},
},
replaceGoodsList
:
{
replaceGoodsList
:
{
type
:
'array'
,
type
:
'array'
,
'x-component'
:
'ArrayTable'
,
'x-component'
:
'ArrayTable'
,
'x-component-props'
:
{
'x-component-props'
:
{
renderAddition
:
()
=>
null
,
renderAddition
:
()
=>
null
,
renderRemove
:
'{{renderListTableRemove}}'
,
renderRemove
:
'{{renderListTableRemove}}'
,
renderMoveDown
:
()
=>
null
,
renderMoveDown
:
()
=>
null
,
renderMoveUp
:
()
=>
null
,
renderMoveUp
:
()
=>
null
,
operationsWidth
:
100
,
operationsWidth
:
100
,
operations
:
{
operations
:
{
align
:
'center'
,
align
:
'center'
,
},
},
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择换货商品'
,
message
:
'请选择换货商品'
,
},
},
],
],
items
:
{
items
:
{
type
:
'object'
,
type
:
'object'
,
properties
:
{
properties
:
{
orderNo
:
{
orderNo
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'订单号'
,
title
:
'订单号'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
productId
:
{
productId
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'商品ID'
,
title
:
'商品ID'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
productName
:
{
productName
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'商品名称'
,
title
:
'商品名称'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
category
:
{
category
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'品类'
,
title
:
'品类'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
brand
:
{
brand
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'品牌'
,
title
:
'品牌'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
unit
:
{
unit
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'单位'
,
title
:
'单位'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
purchaseCount
:
{
purchaseCount
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'采购数量'
,
title
:
'采购数量'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
purchasePrice
:
{
purchasePrice
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'采购单价'
,
title
:
'采购单价'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
purchaseAmount
:
{
purchaseAmount
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'采购金额'
,
title
:
'采购金额'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
replaceCount
:
{
replaceCount
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'换货数量'
,
title
:
'换货数量'
,
'x-component-props'
:
{
'x-component-props'
:
{
allowClear
:
true
,
allowClear
:
true
,
style
:
{
style
:
{
maxWidth
:
150
,
maxWidth
:
150
,
},
},
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请填写换货数量'
,
message
:
'请填写换货数量'
,
},
},
{
{
pattern
:
PATTERN_MAPS
.
weight
,
pattern
:
PATTERN_MAPS
.
weight
,
message
:
'请填写正数,最多保留3位小数'
,
message
:
'请填写正数,最多保留3位小数'
,
},
},
],
],
},
},
replaceReason
:
{
replaceReason
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'换货原因'
,
title
:
'换货原因'
,
'x-component-props'
:
{
'x-component-props'
:
{
allowClear
:
true
,
allowClear
:
true
,
style
:
{
style
:
{
maxWidth
:
150
,
maxWidth
:
150
,
},
},
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请填写换货原因'
,
message
:
'请填写换货原因'
,
},
},
{
{
limitByte
:
true
,
// 自定义校验规则
limitByte
:
true
,
// 自定义校验规则
maxByte
:
60
,
maxByte
:
60
,
}
}
],
],
},
},
// 不用于展示,只用于收集值
// 不用于展示,只用于收集值
id
:
{
id
:
{
type
:
'string'
,
type
:
'string'
,
display
:
false
,
display
:
false
,
},
},
// 其他数据,不用于展示,只用于收集值
// 其他数据,不用于展示,只用于收集值
extraData
:
{
extraData
:
{
type
:
'string'
,
type
:
'string'
,
display
:
false
,
display
:
false
,
},
},
},
},
}
}
},
},
},
},
},
},
},
},
},
},
'tab-3'
:
{
'tab-3'
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'tabpane'
,
'x-component'
:
'tabpane'
,
'x-component-props'
:
{
'x-component-props'
:
{
tab
:
'相关附件'
,
tab
:
'相关附件'
,
},
},
properties
:
{
properties
:
{
MEGA_LAYOUT3
:
{
MEGA_LAYOUT3
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
labelCol
:
4
,
labelCol
:
4
,
labelAlign
:
'left'
,
labelAlign
:
'left'
,
},
},
properties
:
{
properties
:
{
proofFileList
:
{
proofFileList
:
{
title
:
'附件'
,
title
:
'附件'
,
'x-component'
:
'AntUpload'
,
'x-component'
:
'AntUpload'
,
'x-component-props'
:
{
'x-component-props'
:
{
action
:
'/api/file/file/upload/prefix'
,
action
:
'/api/file/file/upload/prefix'
,
data
:
{
data
:
{
fileType
:
UPLOAD_TYPE
,
fileType
:
UPLOAD_TYPE
,
prefix
:
'/afterService/returnApplication/'
,
prefix
:
'/afterService/returnApplication/'
,
},
},
beforeUpload
:
'{{beforeUpload}}'
,
beforeUpload
:
'{{beforeUpload}}'
,
accept
:
'.xls, .xlsx, .doc, .docx, .wps, .pdf, .jpg, .png, .jpeg'
,
accept
:
'.xls, .xlsx, .doc, .docx, .wps, .pdf, .jpg, .png, .jpeg'
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
false
,
required
:
false
,
message
:
'请上传附件'
,
message
:
'请上传附件'
,
},
},
],
],
description
:
'一次上传一个文件,每个附件大小不能超过20M'
,
description
:
'一次上传一个文件,每个附件大小不能超过20M'
,
},
},
},
},
},
},
},
},
},
},
'tab-4'
:
{
'tab-4'
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'tabpane'
,
'x-component'
:
'tabpane'
,
'x-component-props'
:
{
'x-component-props'
:
{
tab
:
'退货收货地址'
,
tab
:
'退货收货地址'
,
},
},
properties
:
{
properties
:
{
MEGA_LAYOUT4
:
{
MEGA_LAYOUT4
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
labelCol
:
4
,
labelCol
:
4
,
wrapperCol
:
12
,
wrapperCol
:
12
,
labelAlign
:
'left'
,
labelAlign
:
'left'
,
},
},
properties
:
{
properties
:
{
deliveryType
:
{
deliveryType
:
{
title
:
'配送方式'
,
title
:
'配送方式'
,
type
:
'string'
,
type
:
'string'
,
enum
:
DELIVERY_TYPE_ENUM
,
enum
:
DELIVERY_TYPE_ENUM
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'请选择'
,
placeholder
:
'请选择'
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择配送方式'
,
message
:
'请选择配送方式'
,
},
},
],
],
},
},
// 退货发货地址
// 退货发货地址
shippingAddress
:
{
shippingAddress
:
{
title
:
'退货发货地址'
,
title
:
'退货发货地址'
,
type
:
'string'
,
type
:
'string'
,
visible
:
false
,
visible
:
false
,
'x-component'
:
'AddressFormItem'
,
'x-component'
:
'AddressFormItem'
,
'x-component-props'
:
{
'x-component-props'
:
{
dataSource
:
[],
dataSource
:
[],
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择退货发货地址'
,
message
:
'请选择退货发货地址'
,
},
},
],
],
},
},
// 退货自提地址
// 退货自提地址
pickupAddress
:
{
pickupAddress
:
{
title
:
'退货自提地址'
,
title
:
'退货自提地址'
,
type
:
'string'
,
type
:
'string'
,
visible
:
false
,
visible
:
false
,
'x-component'
:
'AddressFormItem'
,
'x-component'
:
'AddressFormItem'
,
'x-component-props'
:
{
'x-component-props'
:
{
dataSource
:
[],
dataSource
:
[],
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择退货自提地址'
,
message
:
'请选择退货自提地址'
,
},
},
],
],
},
},
// 换货收货地址
// 换货收货地址
deliveryAddress
:
{
deliveryAddress
:
{
title
:
'换货收货地址'
,
title
:
'换货收货地址'
,
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'AddressFormItem'
,
'x-component'
:
'AddressFormItem'
,
'x-component-props'
:
{
'x-component-props'
:
{
dataSource
:
[],
dataSource
:
[],
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择换货收货地址'
,
message
:
'请选择换货收货地址'
,
},
},
],
],
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
};
};
\ No newline at end of file
src/pages/afterService/repairApplication/repairPrSubmit/components/RepairForm/schema/index.ts
View file @
46058aa3
import
{
ISchema
}
from
'@formily/antd'
;
import
{
ISchema
}
from
'@formily/antd'
;
import
Search
from
'@/components/NiceForm/components/Search'
;
import
Search
from
'@/components/NiceForm/components/Search'
;
import
Submit
from
'@/components/NiceForm/components/Submit'
;
import
Submit
from
'@/components/NiceForm/components/Submit'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
UPLOAD_TYPE
}
from
'@/constants'
;
import
{
UPLOAD_TYPE
}
from
'@/constants'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
// 供应会员列表列
// 供应会员列表列
const
supplierColumns
=
[
const
supplierColumns
=
[
{
{
title
:
'会员ID'
,
title
:
'会员ID'
,
dataIndex
:
'memberId'
,
dataIndex
:
'memberId'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
title
:
'会员名称'
,
title
:
'会员名称'
,
dataIndex
:
'name'
,
dataIndex
:
'name'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
title
:
'会员类型'
,
title
:
'会员类型'
,
dataIndex
:
'memberTypeName'
,
dataIndex
:
'memberTypeName'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
title
:
'会员角色'
,
title
:
'会员角色'
,
dataIndex
:
'roleName'
,
dataIndex
:
'roleName'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
title
:
'会员等级'
,
title
:
'会员等级'
,
dataIndex
:
'levelTag'
,
dataIndex
:
'levelTag'
,
align
:
'center'
,
align
:
'center'
,
},
},
];
];
// 获取供应会员
// 获取供应会员
const
getSupplier
=
async
(
params
)
=>
{
const
getSupplier
=
async
(
params
)
=>
{
const
res
=
await
PublicApi
.
getMemberManage
UpperProviderPage
({
const
res
=
await
PublicApi
.
getMemberManage
AftersaleReplacePage
({
...
params
,
...
params
,
})
})
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
return
res
.
data
;
return
res
.
data
;
}
}
return
{
totalCount
:
0
,
data
:
[]
};
return
{
totalCount
:
0
,
data
:
[]
};
};
};
const
supplierSchema
:
ISchema
=
{
const
supplierSchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
properties
:
{
properties
:
{
megaLayout
:
{
megaLayout
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'Mega-Layout'
,
'x-component'
:
'Mega-Layout'
,
properties
:
{
properties
:
{
name
:
{
name
:
{
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-mega-props'
:
{},
'x-mega-props'
:
{},
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'搜索'
,
placeholder
:
'搜索'
,
align
:
'flex-start'
,
align
:
'flex-start'
,
advanced
:
false
,
advanced
:
false
,
tip
:
'输入 供应会员名称 进行搜索'
,
tip
:
'输入 供应会员名称 进行搜索'
,
},
},
},
},
},
},
},
},
},
},
};
};
export
const
addBillSchema
:
ISchema
=
{
export
const
addBillSchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
properties
:
{
properties
:
{
REPOSIT_TABS
:
{
REPOSIT_TABS
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'tab'
,
'x-component'
:
'tab'
,
'x-component-props'
:
{
'x-component-props'
:
{
type
:
'card'
,
type
:
'card'
,
},
},
properties
:
{
properties
:
{
'tab-1'
:
{
'tab-1'
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'tabpane'
,
'x-component'
:
'tabpane'
,
'x-component-props'
:
{
'x-component-props'
:
{
tab
:
'基本信息'
,
tab
:
'基本信息'
,
},
},
properties
:
{
properties
:
{
MEGA_LAYOUT1
:
{
MEGA_LAYOUT1
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'Mega-Layout'
,
'x-component'
:
'Mega-Layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
labelCol
:
4
,
labelCol
:
4
,
wrapperCol
:
12
,
wrapperCol
:
12
,
labelAlign
:
'left'
,
labelAlign
:
'left'
,
},
},
properties
:
{
properties
:
{
applyAbstract
:
{
applyAbstract
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'申请单摘要'
,
title
:
'申请单摘要'
,
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请填写申请单摘要'
,
message
:
'请填写申请单摘要'
,
},
},
{
{
limitByte
:
true
,
// 自定义校验规则
limitByte
:
true
,
// 自定义校验规则
maxByte
:
60
,
maxByte
:
60
,
}
}
],
],
},
},
// 这是用 Mega-Layout 设置独立作用域,不然会被 Form 的布局影响到弹窗的布局
// 这是用 Mega-Layout 设置独立作用域,不然会被 Form 的布局影响到弹窗的布局
MEGA_LAYOUT1_1
:
{
MEGA_LAYOUT1_1
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'Mega-Layout'
,
'x-component'
:
'Mega-Layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
wrapperCol
:
24
,
wrapperCol
:
24
,
},
},
properties
:
{
properties
:
{
supplierMember
:
{
supplierMember
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'供应会员'
,
title
:
'供应会员'
,
'x-component'
:
'CustomRelevance'
,
'x-component'
:
'CustomRelevance'
,
'x-component-props'
:
{
'x-component-props'
:
{
title
:
'关联'
,
title
:
'关联'
,
tip
:
'请选择对应单据'
,
tip
:
'请选择对应单据'
,
modalProps
:
{
modalProps
:
{
title
:
'选择会员'
,
title
:
'选择会员'
,
},
},
columns
:
supplierColumns
,
columns
:
supplierColumns
,
fetchTableData
:
getSupplier
,
fetchTableData
:
getSupplier
,
formilyProps
:
{
formilyProps
:
{
ctx
:
{
ctx
:
{
schema
:
supplierSchema
,
schema
:
supplierSchema
,
components
:
{
components
:
{
Search
,
Search
,
Submit
,
Submit
,
},
},
effects
:
(
$
,
actions
)
=>
{
effects
:
(
$
,
actions
)
=>
{
},
},
inline
:
false
,
inline
:
false
,
}
}
},
},
tableProps
:
{
tableProps
:
{
rowKey
:
'memberId'
,
rowKey
:
'memberId'
,
lableKey
:
'name'
,
lableKey
:
'name'
,
},
},
},
},
'x-mega-props'
:
{
'x-mega-props'
:
{
wrapperCol
:
12
,
wrapperCol
:
12
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择供应会员'
,
message
:
'请选择供应会员'
,
},
},
],
],
},
},
},
},
},
},
applyNo
:
{
applyNo
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'申请单号'
,
title
:
'申请单号'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
applyTime
:
{
applyTime
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'单据时间'
,
title
:
'单据时间'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
outerStatus
:
{
outerStatus
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'外部状态'
,
title
:
'外部状态'
,
'x-component'
:
'Children'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
'x-component-props'
:
{
children
:
'{{OuterStatus}}'
children
:
'{{OuterStatus}}'
},
},
},
},
innerStatus
:
{
innerStatus
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'内部状态'
,
title
:
'内部状态'
,
'x-component'
:
'Children'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
'x-component-props'
:
{
children
:
'{{InnerStatus}}'
children
:
'{{InnerStatus}}'
},
},
},
},
},
},
},
},
},
},
},
},
'tab-2'
:
{
'tab-2'
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'tabpane'
,
'x-component'
:
'tabpane'
,
'x-component-props'
:
{
'x-component-props'
:
{
tab
:
'单据明细'
,
tab
:
'单据明细'
,
},
},
properties
:
{
properties
:
{
MEGA_LAYOUT2
:
{
MEGA_LAYOUT2
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
labelCol
:
4
,
labelCol
:
4
,
labelAlign
:
'left'
,
labelAlign
:
'left'
,
},
},
properties
:
{
properties
:
{
addBtn
:
{
addBtn
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'Children'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
'x-component-props'
:
{
children
:
'{{TableAddButton}}'
children
:
'{{TableAddButton}}'
},
},
},
},
repairGoodsList
:
{
repairGoodsList
:
{
type
:
'array'
,
type
:
'array'
,
'x-component'
:
'ArrayTable'
,
'x-component'
:
'ArrayTable'
,
'x-component-props'
:
{
'x-component-props'
:
{
renderAddition
:
()
=>
null
,
renderAddition
:
()
=>
null
,
renderRemove
:
'{{renderListTableRemove}}'
,
renderRemove
:
'{{renderListTableRemove}}'
,
renderMoveDown
:
()
=>
null
,
renderMoveDown
:
()
=>
null
,
renderMoveUp
:
()
=>
null
,
renderMoveUp
:
()
=>
null
,
operationsWidth
:
100
,
operationsWidth
:
100
,
operations
:
{
operations
:
{
align
:
'center'
,
align
:
'center'
,
},
},
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择维修商品'
,
message
:
'请选择维修商品'
,
},
},
],
],
items
:
{
items
:
{
type
:
'object'
,
type
:
'object'
,
properties
:
{
properties
:
{
orderNo
:
{
orderNo
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'订单号'
,
title
:
'订单号'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
productId
:
{
productId
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'商品ID'
,
title
:
'商品ID'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
productName
:
{
productName
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'商品名称'
,
title
:
'商品名称'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
category
:
{
category
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'品类'
,
title
:
'品类'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
brand
:
{
brand
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'品牌'
,
title
:
'品牌'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
unit
:
{
unit
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'单位'
,
title
:
'单位'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
// 采购数量
// 采购数量
purchaseCount
:
{
purchaseCount
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'采购数量'
,
title
:
'采购数量'
,
'x-component'
:
'Text'
,
'x-component'
:
'Text'
,
},
},
repairCount
:
{
repairCount
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'维修数量'
,
title
:
'维修数量'
,
'x-component-props'
:
{
'x-component-props'
:
{
allowClear
:
true
,
allowClear
:
true
,
style
:
{
style
:
{
maxWidth
:
150
,
maxWidth
:
150
,
},
},
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请填写维修数量'
,
message
:
'请填写维修数量'
,
},
},
{
{
pattern
:
PATTERN_MAPS
.
weight
,
pattern
:
PATTERN_MAPS
.
weight
,
message
:
'请填写正数,最多保留3位小数'
,
message
:
'请填写正数,最多保留3位小数'
,
},
},
],
],
},
},
repairReason
:
{
repairReason
:
{
type
:
'string'
,
type
:
'string'
,
title
:
'维修原因'
,
title
:
'维修原因'
,
'x-component-props'
:
{
'x-component-props'
:
{
allowClear
:
true
,
allowClear
:
true
,
style
:
{
style
:
{
maxWidth
:
150
,
maxWidth
:
150
,
},
},
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请填写维修原因'
,
message
:
'请填写维修原因'
,
},
},
{
{
limitByte
:
true
,
// 自定义校验规则
limitByte
:
true
,
// 自定义校验规则
maxByte
:
60
,
maxByte
:
60
,
}
}
],
],
},
},
// 其他数据,不用于展示,只用于收集值
// 其他数据,不用于展示,只用于收集值
extraData
:
{
extraData
:
{
type
:
'string'
,
type
:
'string'
,
display
:
false
,
display
:
false
,
},
},
},
},
}
}
},
},
},
},
},
},
},
},
},
},
'tab-3'
:
{
'tab-3'
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'tabpane'
,
'x-component'
:
'tabpane'
,
'x-component-props'
:
{
'x-component-props'
:
{
tab
:
'相关附件'
,
tab
:
'相关附件'
,
},
},
properties
:
{
properties
:
{
MEGA_LAYOUT3
:
{
MEGA_LAYOUT3
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
labelCol
:
4
,
labelCol
:
4
,
labelAlign
:
'left'
,
labelAlign
:
'left'
,
},
},
properties
:
{
properties
:
{
faultFileList
:
{
faultFileList
:
{
title
:
'附件'
,
title
:
'附件'
,
'x-component'
:
'AntUpload'
,
'x-component'
:
'AntUpload'
,
'x-component-props'
:
{
'x-component-props'
:
{
action
:
'/api/file/file/upload/prefix'
,
action
:
'/api/file/file/upload/prefix'
,
data
:
{
data
:
{
fileType
:
UPLOAD_TYPE
,
fileType
:
UPLOAD_TYPE
,
prefix
:
'/afterService/repairApplication/'
,
prefix
:
'/afterService/repairApplication/'
,
},
},
beforeUpload
:
'{{beforeUpload}}'
,
beforeUpload
:
'{{beforeUpload}}'
,
accept
:
'.xls, .xlsx, .doc, .docx, .wps, .pdf, .jpg, .png, .jpeg'
,
accept
:
'.xls, .xlsx, .doc, .docx, .wps, .pdf, .jpg, .png, .jpeg'
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
false
,
required
:
false
,
message
:
'请上传附件'
,
message
:
'请上传附件'
,
},
},
],
],
description
:
'一次上传一个文件,每个附件大小不能超过20M'
,
description
:
'一次上传一个文件,每个附件大小不能超过20M'
,
},
},
},
},
},
},
},
},
},
},
'tab-4'
:
{
'tab-4'
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'tabpane'
,
'x-component'
:
'tabpane'
,
'x-component-props'
:
{
'x-component-props'
:
{
tab
:
'维修地址'
,
tab
:
'维修地址'
,
},
},
properties
:
{
properties
:
{
MEGA_LAYOUT3
:
{
MEGA_LAYOUT3
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
labelCol
:
4
,
labelCol
:
4
,
labelAlign
:
'left'
,
labelAlign
:
'left'
,
},
},
properties
:
{
properties
:
{
repairAddress
:
{
repairAddress
:
{
title
:
'维修地址'
,
title
:
'维修地址'
,
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'AddressFormItem'
,
'x-component'
:
'AddressFormItem'
,
'x-component-props'
:
{
'x-component-props'
:
{
dataSource
:
[],
dataSource
:
[],
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'请选择维修地址'
,
message
:
'请选择维修地址'
,
},
},
],
],
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
};
};
\ No newline at end of file
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/schema/index.ts
View file @
46058aa3
...
@@ -36,7 +36,7 @@ const supplierColumns = [
...
@@ -36,7 +36,7 @@ const supplierColumns = [
// 获取供应会员
// 获取供应会员
const
getSupplier
=
async
(
params
)
=>
{
const
getSupplier
=
async
(
params
)
=>
{
const
res
=
await
PublicApi
.
getMemberManage
UpperProvider
Page
({
const
res
=
await
PublicApi
.
getMemberManage
AftersaleReplace
Page
({
...
params
,
...
params
,
})
})
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment