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
陈智峰
jinfa-platform
Commits
cb9e5a6a
Commit
cb9e5a6a
authored
Oct 20, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into test
parents
4faa7273
b2869910
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
32 deletions
+59
-32
index.less
src/pages/afterService/components/InfoList/index.less
+14
-0
index.tsx
src/pages/afterService/components/InfoList/index.tsx
+5
-2
index.tsx
...eGoods/waitSubmitOrderList/components/basicInfo/index.tsx
+8
-5
detail.tsx
...afterService/exchangeGoods/waitSubmitOrderList/detail.tsx
+27
-22
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+5
-3
No files found.
src/pages/afterService/components/InfoList/index.less
View file @
cb9e5a6a
...
@@ -15,5 +15,18 @@
...
@@ -15,5 +15,18 @@
margin-left: 2px;
margin-left: 2px;
}
}
}
}
&_value {
:global {
.ant-form-item {
margin-bottom: 0;
}
.ant-form-item-explain {
position: absolute;
top: 32px;
}
}
}
}
}
}
}
\ No newline at end of file
src/pages/afterService/components/InfoList/index.tsx
View file @
cb9e5a6a
import
React
from
'react'
import
React
from
'react'
import
{
Form
}
from
'antd'
import
{
FormInstance
}
from
'antd/lib/form'
import
cx
from
'classnames'
import
cx
from
'classnames'
import
styles
from
'./index.less'
import
styles
from
'./index.less'
...
@@ -10,11 +12,12 @@ interface dataListType {
...
@@ -10,11 +12,12 @@ interface dataListType {
}
}
interface
InfoListProps
{
interface
InfoListProps
{
options
:
dataListType
[]
options
:
dataListType
[],
form
?:
FormInstance
,
}
}
const
InfoList
:
React
.
FC
<
InfoListProps
>
=
(
props
)
=>
{
const
InfoList
:
React
.
FC
<
InfoListProps
>
=
(
props
)
=>
{
const
{
options
=
[]
}
=
props
const
{
options
=
[]
,
form
}
=
props
return
(
return
(
<
div
className=
{
styles
.
info_list
}
>
<
div
className=
{
styles
.
info_list
}
>
...
...
src/pages/afterService/exchangeGoods/waitSubmitOrderList/components/basicInfo/index.tsx
View file @
cb9e5a6a
import
React
from
'react'
import
React
from
'react'
import
{
Input
}
from
'antd'
import
{
Input
,
Form
}
from
'antd'
import
{
FormInstance
}
from
'antd/lib/form'
import
{
FormInstance
}
from
'antd/lib/form'
import
InfoList
from
'../../../../components/InfoList'
import
InfoList
from
'../../../../components/InfoList'
interface
BasicInfoProps
{
interface
BasicInfoProps
{
form
:
FormInstance
}
}
const
BasicInfo
:
React
.
FC
<
BasicInfoProps
>
=
(
props
)
=>
{
const
BasicInfo
:
React
.
FC
<
BasicInfoProps
>
=
(
props
)
=>
{
const
{
form
}
=
props
let
detailList
=
[
let
detailList
=
[
{
{
label
:
'申请单摘要'
,
label
:
'申请单摘要'
,
value
:
<
Input
style=
{
{
width
:
572
}
}
placeholder=
"请输入申请单摘要"
/>,
value
:
<
Form
.
Item
name=
"applyAbstract"
rules=
{
[{
required
:
true
,
message
:
'请输入申请单摘要'
},]
}
>
<
Input
style=
{
{
width
:
572
}
}
placeholder=
"请输入申请单摘要"
/>
</
Form
.
Item
>,
required
:
true
,
required
:
true
,
},
},
{
{
...
@@ -39,7 +42,7 @@ const BasicInfo: React.FC<BasicInfoProps> = (props) => {
...
@@ -39,7 +42,7 @@ const BasicInfo: React.FC<BasicInfoProps> = (props) => {
return
(
return
(
<
div
>
<
div
>
<
InfoList
options=
{
detailList
}
/>
<
InfoList
options=
{
detailList
}
{
...
props
}
/>
</
div
>
</
div
>
)
)
}
}
...
...
src/pages/afterService/exchangeGoods/waitSubmitOrderList/detail.tsx
View file @
cb9e5a6a
...
@@ -51,7 +51,11 @@ const OrderDetail: React.FC<OrderDetailProps> = (props) => {
...
@@ -51,7 +51,11 @@ const OrderDetail: React.FC<OrderDetailProps> = (props) => {
const
handleSave
=
()
=>
{
const
handleSave
=
()
=>
{
form
.
validateFields
().
then
(
values
=>
{
console
.
log
(
values
,
"values"
)
}).
catch
(
errors
=>
{
console
.
log
(
errors
,
"errors"
)
})
}
}
return
(
return
(
...
@@ -70,27 +74,28 @@ const OrderDetail: React.FC<OrderDetailProps> = (props) => {
...
@@ -70,27 +74,28 @@ const OrderDetail: React.FC<OrderDetailProps> = (props) => {
]
:
[]
}
]
:
[]
}
>
>
<
div
className=
{
styles
.
detail_wrap
}
>
<
div
className=
{
styles
.
detail_wrap
}
>
<
Tabs
type=
"card"
activeKey=
{
tabActiveKey
}
onChange=
{
(
key
)
=>
setTabActiveKey
(
key
)
}
className=
{
styles
.
detail_tabs
}
>
<
Form
form=
{
form
}
>
<
TabPane
tab=
"基本信息"
key=
"basicInfo"
>
<
Tabs
type=
"card"
activeKey=
{
tabActiveKey
}
onChange=
{
(
key
)
=>
setTabActiveKey
(
key
)
}
className=
{
styles
.
detail_tabs
}
>
<
BasicInfo
form=
{
form
}
/>
<
TabPane
tab=
"基本信息"
key=
"basicInfo"
>
</
TabPane
>
<
BasicInfo
/>
<
TabPane
tab=
"换货商品"
key=
"exchangeGoods"
>
</
TabPane
>
<
ExchangeGoods
/>
<
TabPane
tab=
"换货商品"
key=
"exchangeGoods"
>
</
TabPane
>
<
ExchangeGoods
/>
<
TabPane
tab=
"举证附件"
key=
"proofFile"
>
</
TabPane
>
<
ProofFile
/>
<
TabPane
tab=
"举证附件"
key=
"proofFile"
>
</
TabPane
>
<
ProofFile
/>
<
TabPane
tab=
"退货收货地址"
key=
"returnAddress"
>
</
TabPane
>
<
ReturnAddress
/>
<
TabPane
tab=
"退货收货地址"
key=
"returnAddress"
>
</
TabPane
>
<
ReturnAddress
/>
<
TabPane
tab=
"换货收货地址"
key=
"replaceAddress"
>
</
TabPane
>
<
ReplaceAddress
/>
<
TabPane
tab=
"换货收货地址"
key=
"replaceAddress"
>
</
TabPane
>
<
ReplaceAddress
/>
<
TabPane
tab=
"流转记录"
key=
"log"
>
</
TabPane
>
<
Log
/>
<
TabPane
tab=
"流转记录"
key=
"log"
>
</
TabPane
>
<
Log
/>
</
Tabs
>
</
TabPane
>
</
Tabs
>
</
Form
>
</
div
>
</
div
>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
</>
</>
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
cb9e5a6a
...
@@ -5,6 +5,7 @@ import Recommand from '../components/Recommand'
...
@@ -5,6 +5,7 @@ import Recommand from '../components/Recommand'
import
cx
from
'classnames'
import
cx
from
'classnames'
import
{
Checkbox
,
Affix
,
message
,
Modal
,
Button
}
from
'antd'
import
{
Checkbox
,
Affix
,
message
,
Modal
,
Button
}
from
'antd'
import
styles
from
'./index.less'
import
styles
from
'./index.less'
import
{
history
}
from
'umi'
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
{
priceFormat
,
numFormat
}
from
"@/utils/numberFomat"
import
{
priceFormat
,
numFormat
}
from
"@/utils/numberFomat"
import
{
useLocalStore
,
observer
}
from
'mobx-react'
import
{
useLocalStore
,
observer
}
from
'mobx-react'
...
@@ -19,7 +20,8 @@ interface PurchaseOrderPropsType {
...
@@ -19,7 +20,8 @@ interface PurchaseOrderPropsType {
layoutType
:
LAYOUT_TYPE
,
layoutType
:
LAYOUT_TYPE
,
shopInfo
:
GetTemplateChannelFindChannelResponse
,
shopInfo
:
GetTemplateChannelFindChannelResponse
,
shopUrlParam
:
string
,
shopUrlParam
:
string
,
mallInfo
:
any
mallInfo
:
any
,
location
:
any
}
}
const
PurchaseOrder
:
React
.
FC
<
PurchaseOrderPropsType
>
=
(
props
)
=>
{
const
PurchaseOrder
:
React
.
FC
<
PurchaseOrderPropsType
>
=
(
props
)
=>
{
...
@@ -543,9 +545,9 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
...
@@ -543,9 +545,9 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
updateOrderInfo
(
buyOrderInfo
,
sessionKey
).
then
(()
=>
{
updateOrderInfo
(
buyOrderInfo
,
sessionKey
).
then
(()
=>
{
if
(
res
.
data
)
{
if
(
res
.
data
)
{
window
.
location
.
href
=
`/order?spam_id=
${
sessionKey
}
&scence=purchase`
history
.
push
(
`/order?spam_id=
${
sessionKey
}
&scence=purchase`
)
}
else
{
}
else
{
window
.
location
.
href
=
`/memberCenter/tranactionAbility/purchaseOrder/orderDetail?modelType=5&spam_id=
${
sessionKey
}
`
history
.
push
(
`/memberCenter/tranactionAbility/purchaseOrder/orderDetail?modelType=5&spam_id=
${
sessionKey
}
`
)
}
}
})
})
}
}
...
...
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