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
1df445f9
Commit
1df445f9
authored
Apr 16, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
bd3fa41a
a0b913b6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
22 deletions
+32
-22
index.tsx
src/pages/logistics/addLogistics/index.tsx
+14
-6
addCompany.tsx
src/pages/logistics/list/addCompany.tsx
+2
-2
index.tsx
...on/electronicContracts/components/publicAccount/index.tsx
+1
-1
addForm.tsx
src/pages/transaction/goodsOffer/addEnquiryOrder/addForm.tsx
+5
-3
basicInfo.tsx
...ction/goodsOffer/addEnquiryOrder/components/basicInfo.tsx
+5
-5
tradingConditions.tsx
...odsOffer/addEnquiryOrder/components/tradingConditions.tsx
+5
-5
No files found.
src/pages/logistics/addLogistics/index.tsx
View file @
1df445f9
...
...
@@ -57,6 +57,7 @@ const AddLogistics: React.FC<{}> = () => {
const
[
memberInfo
,
setmemberInfo
]
=
useState
<
any
>
({});
const
[
form
]
=
Form
.
useForm
();
const
[
goodsForm
]
=
Form
.
useForm
();
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
false
)
/**输入框输入 */
const
inputOnchange
=
(
id
,
e
,
name
)
=>
{
const
{
value
}
=
e
.
target
...
...
@@ -603,6 +604,7 @@ const AddLogistics: React.FC<{}> = () => {
/** 提交数据 */
const
handleSubmit
=
async
()
=>
{
setLoading
(
true
);
const
data
=
[...
badge
]
const
params
=
{
...
query
};
const
basicRef
=
await
form
.
validateFields
().
then
(
res
=>
{
console
.
log
(
res
);
params
.
digest
=
res
.
digest
;
return
true
}).
catch
(
error
=>
{
return
error
});
...
...
@@ -611,6 +613,7 @@ const AddLogistics: React.FC<{}> = () => {
if
(
basicRef
.
errorFields
)
{
data
[
0
]
=
basicRef
.
errorFields
.
length
;
setbadge
(
data
);
setLoading
(
false
);
}
else
{
data
[
0
]
=
0
;
setbadge
(
data
)
...
...
@@ -626,20 +629,25 @@ const AddLogistics: React.FC<{}> = () => {
params
.
detailList
=
detailList
if
(
path
===
'edit'
)
{
PublicApi
.
postLogisticsOrderWaitSubmitUpdate
({
...
params
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
()
if
(
res
.
code
!==
1000
)
{
setLoading
(
false
);
return
}
history
.
goBack
()
})
}
else
{
PublicApi
.
postLogisticsOrderWaitSubmitAdd
({
...
params
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
()
if
(
res
.
code
!==
1000
)
{
setLoading
(
false
);
return
}
history
.
goBack
()
})
}
}
}
else
{
message
.
error
(
'请先添加商品'
)
setLoading
(
false
);
}
}
...
...
@@ -707,7 +715,7 @@ const AddLogistics: React.FC<{}> = () => {
<
PageHeaderWrapper
onBack=
{
()
=>
history
.
goBack
()
}
backIcon=
{
<
ReturnEle
description=
'返回'
/>
}
extra=
{
<
Button
type=
"primary"
onClick=
{
handleSubmit
}
>
保存
</
Button
>
}
extra=
{
<
Button
type=
"primary"
onClick=
{
handleSubmit
}
loading=
{
loading
}
>
保存
</
Button
>
}
>
<
Card
>
<
Tabs
type=
"card"
>
...
...
@@ -756,7 +764,7 @@ const AddLogistics: React.FC<{}> = () => {
</
Select
>
</
Form
.
Item
>
<
Form
.
Item
label=
"单据时间"
name=
'voucherTime'
><
span
>
{
query
.
voucherTime
&&
moment
(
query
.
voucherTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
</
span
></
Form
.
Item
>
{
(
createType
===
2
||
createType
===
3
)
?
{
(
createType
===
2
||
createType
===
3
)
?
<
Form
.
Item
label=
"外部状态"
name=
'externalState'
>
{
query
.
externalState
===
1
?
<
Badge
status=
"warning"
text=
'待提交'
/>
:
...
...
src/pages/logistics/list/addCompany.tsx
View file @
1df445f9
...
...
@@ -66,7 +66,7 @@ const company: React.FC<parmas> = (props) => {
//hook只能写在函数组件的顶级作用域
const
ref
=
useRef
<
any
>
({})
const
{
pageStatus
,
id
,
isSee
}
=
props
const
[
productRowSelection
,
productRowCtl
]
=
useRowSelectionTable
({
type
:
'radio'
,
customKey
:
'
memberI
d'
})
const
[
productRowSelection
,
productRowCtl
]
=
useRowSelectionTable
({
type
:
'radio'
,
customKey
:
'
i
d'
})
const
[
menuForm
]
=
Form
.
useForm
();
const
[
headerTitle
,
setHeaderTitle
]
=
useState
(
'新建物流公司'
)
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
false
)
...
...
@@ -320,7 +320,7 @@ const company: React.FC<parmas> = (props) => {
fetchTableData=
{
params
=>
fetchData
(
params
)
}
modalType=
"SelectLogisticsService"
tableProps=
{
{
rowKey
:
'
memberI
d'
rowKey
:
'
i
d'
}
}
>
</
ModalTable
>
...
...
src/pages/transaction/electronicContracts/components/publicAccount/index.tsx
View file @
1df445f9
...
...
@@ -255,7 +255,7 @@ const PublicAccount: React.FC<queryProps> = (props) => {
</
div
>
<
div
className=
{
styles
.
bank_btn
}
style=
{
{
textAlign
:
'center'
}
}
>
<
Button
type=
'primary'
onClick=
{
mobileVerifyFn
}
>
发送授权短信
</
Button
>
<
Button
style=
{
{
width
:
'116px'
}
}
>
返回
</
Button
>
<
Button
onClick=
{
()
=>
history
.
goBack
()
}
style=
{
{
width
:
'116px'
}
}
>
返回
</
Button
>
</
div
>
</
div
>
]
}
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/addForm.tsx
View file @
1df445f9
...
...
@@ -91,13 +91,16 @@ const AddQuotes: React.FC<parmas> = (props) => {
}
},
[])
//提交
const
onSumbit
=
async
(
params
:
any
)
=>
{
const
onSumbit
=
async
()
=>
{
setloading
(
true
);
const
basicInfo
=
await
basicInfoRef
.
current
.
validateFields
();
const
tradingConditions
=
await
tradingConditionsRef
.
current
.
validateFields
();
const
basicInfoData
=
basicInfo
.
data
;
const
tradingConditionsData
=
tradingConditions
.
data
;
console
.
log
(
basicInfo
,
tradingConditions
,
100086
)
if
(
!
basicInfo
.
state
||
!
tradingConditions
.
state
)
{
setloading
(
false
);
return
}
if
(
basicInfo
.
state
&&
tradingConditions
.
state
)
{
if
(
goodsList
.
length
===
0
)
{
message
.
error
(
'请添加一个询价商品!'
);
...
...
@@ -139,7 +142,6 @@ const AddQuotes: React.FC<parmas> = (props) => {
// 获取到会员信息
const
getMemberList
=
(
list
:
any
)
=>
{
setmember
(
list
);
console
.
log
(
list
,
'会员信息'
)
}
// 获取添加的商品列表
const
getGoodsList
=
(
list
:
any
)
=>
{
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/basicInfo.tsx
View file @
1df445f9
...
...
@@ -35,7 +35,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
const
[
memberName
,
setmemberName
]
=
useState
<
any
>
();
const
[
memberId
,
setmemberId
]
=
useState
<
any
>
();
const
[
roleId
,
setroleId
]
=
useState
<
any
>
();
const
[
memberRowSelection
,
memberRowCtl
]
=
useRowSelectionTable
({
customKey
:
'
memberI
d'
,
type
:
'radio'
});
const
[
memberRowSelection
,
memberRowCtl
]
=
useRowSelectionTable
({
customKey
:
'
i
d'
,
type
:
'radio'
});
const
handleOkAddMember
=
()
=>
{
if
(
memberRowCtl
.
selectRow
.
length
>
0
)
{
setVisibleChannelMember
(
false
)
...
...
@@ -62,8 +62,8 @@ const BasicInfo: React.FC<queryProps> = (props) => {
const
columnsSetMember
:
any
[]
=
[
{
title
:
'ID'
,
dataIndex
:
'
memberI
d'
,
key
:
'
memberI
d'
,
dataIndex
:
'
i
d'
,
key
:
'
i
d'
,
},
{
title
:
'会员名称'
,
...
...
@@ -169,7 +169,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
</
Form
.
Item
>
<
Form
.
Item
label=
'被询价会员'
name=
'memberId'
rules=
{
[{
required
:
true
,
message
:
'请选择被询价会员'
}]
}
>
<
Search
disabled=
{
type
===
3
||
type
===
2
}
value=
{
memberName
?
memberName
:
undefined
}
readOnly
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setVisibleChannelMember
(
true
)
}
/>
{
memberName
&&
<
Button
type=
'link'
onClick=
{
()
=>
window
.
open
(
`/shop?
roleId=${roleId}
shopId=${btoa(JSON.stringify({ memberId, roleId }))}`
)
}
>
查看会员详情
</
Button
>
}
{
memberName
&&
<
Button
type=
'link'
onClick=
{
()
=>
window
.
open
(
`/shop?shopId=${btoa(JSON.stringify({ memberId, roleId }))}`
)
}
>
查看会员详情
</
Button
>
}
</
Form
.
Item
>
<
Form
.
Item
label=
'询价单号'
name=
'orderNumber'
>
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
inquiryListNo
)
?
editData
.
inquiryListNo
:
'-'
}
</
span
>
...
...
@@ -201,7 +201,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
}
}
tableProps=
{
{
rowKey
:
'
memberI
d'
,
rowKey
:
'
i
d'
,
}
}
/>
</>
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/tradingConditions.tsx
View file @
1df445f9
...
...
@@ -37,7 +37,7 @@ const TradingConditions: React.FC<queryProps> = (props) => {
}
})
}).
catch
(
errorInfo
=>
{
resolve
({
state
:
false
})
resolve
({
state
:
false
})
})
})
}
...
...
@@ -61,7 +61,7 @@ const TradingConditions: React.FC<queryProps> = (props) => {
useEffect
(()
=>
{
// 编辑时回显的数据
if
(
Object
.
keys
(
editData
).
length
>
0
)
{
if
(
Object
.
keys
(
editData
).
length
>
0
)
{
TradingConditionsForm
.
setFieldsValue
({
paymentType
:
editData
.
paymentType
,
taxes
:
editData
.
taxes
,
...
...
@@ -69,14 +69,14 @@ const TradingConditions: React.FC<queryProps> = (props) => {
packRequire
:
editData
.
packRequire
,
otherRequire
:
editData
.
otherRequire
,
offer
:
editData
.
offer
,
quotationAsTime
:
moment
(
editData
.
quotationAsTime
),
deliveryTime
:
moment
(
editData
.
deliveryTime
),
quotationAsTime
:
editData
.
quotationAsTime
?
moment
(
editData
.
quotationAsTime
)
:
undefined
,
deliveryTime
:
editData
.
deliveryTime
?
moment
(
editData
.
deliveryTime
)
:
undefined
,
fullAddressId
:
editData
.
fullAddressId
,
})
}
},
[
editData
])
const
addressOnChange
=
(
value
:
any
,
option
:
any
)
=>
{
const
addressOnChange
=
(
value
:
any
,
option
:
any
)
=>
{
getAddress
(
option
)
}
...
...
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