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
shenshaokai
jinfa-platform
Commits
3756c266
Commit
3756c266
authored
Mar 12, 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
3fa71342
74a7b6ca
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
120 additions
and
24 deletions
+120
-24
global.less
src/global/styles/global.less
+17
-0
reset.less
src/global/styles/reset.less
+41
-6
addDirectChannel.tsx
src/pages/commodity/products/addDirectChannel.tsx
+1
-1
modifyDirectChannel.tsx
src/pages/commodity/products/modifyDirectChannel.tsx
+13
-5
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+21
-2
index.tsx
src/pages/mobileTemplate/channelTemplateEdit/index.tsx
+1
-1
index.tsx
src/pages/mobileTemplate/shopTemplateEdit/index.tsx
+6
-1
addRepository.tsx
src/pages/repositories/addRepository.tsx
+6
-4
index.tsx
src/pages/transaction/components/orderPayModal/index.tsx
+8
-0
index.ts
...s/transaction/purchaseOrder/orderCollect/effects/index.ts
+3
-2
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+1
-1
useProductTable.tsx
...tion/purchaseOrder/orderCollect/model/useProductTable.tsx
+1
-0
useSelfTable.tsx
...action/purchaseOrder/readyPayOrder/model/useSelfTable.tsx
+1
-1
No files found.
src/global/styles/global.less
View file @
3756c266
...
@@ -358,3 +358,20 @@ a {
...
@@ -358,3 +358,20 @@ a {
}
}
}
}
}
}
// 重置步骤条顶部边距
.ant-steps-horizontal {
margin-top: 0 !important;
}
// 固定头部
// .ant-layout-header {
// position: fixed;
// top: 0;
// }
// .ant-pro-page-header-wrap-page-header-warp {
// position: fixed;
// top: 0;
// width: 100%;
// z-index: 8;
// }
src/global/styles/reset.less
View file @
3756c266
...
@@ -10,10 +10,6 @@
...
@@ -10,10 +10,6 @@
margin: 8px auto 32px auto;
margin: 8px auto 32px auto;
}
}
.ant-page-header {
padding: 8px 24px;
}
.common_checkbox {
.common_checkbox {
&:hover,
&:hover,
...
@@ -225,6 +221,46 @@
...
@@ -225,6 +221,46 @@
padding: 16px;
padding: 16px;
}
}
// 覆写page-header-title
.ant-page-header {
padding: 4px 16px;
}
.ant-page-header-heading-title {
font-size: 16px;
}
// 覆写左边菜单
.ant-menu-item {
padding-left: 16px !important;
}
.ant-menu-submenu-title {
padding-left: 16px !important;
}
.anticon-border {
margin-right: 8px;
}
// 覆写page 报个上部操作按钮样式
.mega-layout-item-content {
.ant-space {
.ant-space-item {
margin-right: 16px !important;
}
}
}
.god-table-content {
.ant-table-wrapper {
.ant-spin-nested-loading {
.ant-spin-container {
.ant-pagination {
margin: 16px 0 0 0;
}
}
}
}
}
}
}
.ant-descriptions-item-label {
.ant-descriptions-item-label {
...
@@ -238,4 +274,4 @@
...
@@ -238,4 +274,4 @@
.ant-form-item-label > label {
.ant-form-item-label > label {
font-size: 12px !important;
font-size: 12px !important;
color: #909399 !important;
color: #909399 !important;
}
}
\ No newline at end of file
src/pages/commodity/products/addDirectChannel.tsx
View file @
3756c266
...
@@ -52,7 +52,7 @@ const AddDirectChannel:React.FC<{}> = (props) => {
...
@@ -52,7 +52,7 @@ const AddDirectChannel:React.FC<{}> = (props) => {
let
params
:
any
=
{}
let
params
:
any
=
{}
console
.
log
(
values
,
'vvv'
)
console
.
log
(
values
,
'vvv'
)
values
.
map
((
item
,
index
)
=>
{
values
.
map
((
item
,
index
)
=>
{
if
(
!
item
?.
carriage
Type
)
if
(
!
item
.
delivery
Type
)
params
=
{
...
params
,
...
item
}
params
=
{
...
params
,
...
item
}
else
else
params
.
logistics
=
{
...
item
}
params
.
logistics
=
{
...
item
}
...
...
src/pages/commodity/products/modifyDirectChannel.tsx
View file @
3756c266
...
@@ -123,14 +123,22 @@ const ModifyDirectChannel:React.FC<{}> = () => {
...
@@ -123,14 +123,22 @@ const ModifyDirectChannel:React.FC<{}> = () => {
// 获取商品规格列表
// 获取商品规格列表
const
fetchSpecData
=
()
=>
{
const
fetchSpecData
=
()
=>
{
setLoading
(
true
)
setLoading
(
true
)
PublicApi
.
getProductChannelCommodityGetCommodityUnitPriceByChannel
({
id
:
history
.
location
.
query
.
id
}).
then
(
res
=>
{
console
.
log
(
priceTableData
,
'priceTableData'
)
PublicApi
.
postProductChannelCommodityGetCommodityUnitPriceByChannel
({
id
:
history
.
location
.
query
.
id
,
idList
:
priceTableData
.
map
(
item
=>
item
.
id
)
},
{
ctlType
:
"none"
}).
then
(
res
=>
{
const
{
data
}
=
res
const
{
data
}
=
res
// let hasIds = priceTableData.map(item => item.id)
// let hasIds = priceTableData.map(item => item.id)
// setOriginHasIds(hasIds)
// setOriginHasIds(hasIds)
let
_data
=
data
.
filter
(
item
=>
!
originHasIds
.
includes
(
item
.
id
))
// let _data = data.filter(item => !originHasIds.includes(item.id))
setOriginTableData
(
_data
)
setOriginTableData
(
data
)
if
(
_data
.
length
>
0
)
if
(
data
.
length
>
0
)
{
structureTable
(
_data
)
structureTable
(
data
)
}
else
{
setLoading
(
false
)
structureTable
([])
}
})
})
}
}
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
3756c266
...
@@ -11,7 +11,7 @@ import { priceFormat, numFormat } from "@/utils/numberFomat"
...
@@ -11,7 +11,7 @@ import { priceFormat, numFormat } from "@/utils/numberFomat"
import
{
useLocalStore
,
observer
}
from
'mobx-react'
import
{
useLocalStore
,
observer
}
from
'mobx-react'
import
ImageBox
from
'@/components/ImageBox'
import
ImageBox
from
'@/components/ImageBox'
import
{
store
}
from
'@/store'
import
{
store
}
from
'@/store'
import
{
LAYOUT_TYPE
}
from
'@/constants'
import
{
LAYOUT_TYPE
,
OrderModalType
}
from
'@/constants'
import
{
GetSearchShopPurchaseGetPurchaseListResponse
}
from
'@/services/SearchApi'
import
{
GetSearchShopPurchaseGetPurchaseListResponse
}
from
'@/services/SearchApi'
import
{
GetTemplateWebMemberChannelWebMemberChannelMainResponse
}
from
'@/services/TemplateApi'
import
{
GetTemplateWebMemberChannelWebMemberChannelMainResponse
}
from
'@/services/TemplateApi'
import
{
isEmpty
}
from
'lodash'
import
{
isEmpty
}
from
'lodash'
...
@@ -541,6 +541,25 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
...
@@ -541,6 +541,25 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
}
}
/**
/**
* 获取下单模式
*/
const
getOrderMode
=
()
=>
{
let
mode
=
OrderModalType
.
PURCHASE_ORDER
switch
(
layoutType
)
{
case
LAYOUT_TYPE
.
channel
:
mode
=
OrderModalType
.
CHANNEL_DIRECT_PURCHASE_ORDER
break
case
LAYOUT_TYPE
.
ichannel
:
mode
=
OrderModalType
.
CHANNEL_SPOT_PURCHASE_ORDER
break
default
:
mode
=
OrderModalType
.
PURCHASE_ORDER
break
}
return
mode
}
/**
* 结算
* 结算
*/
*/
const
handleSettlement
=
async
()
=>
{
const
handleSettlement
=
async
()
=>
{
...
@@ -662,7 +681,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
...
@@ -662,7 +681,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
break
break
}
}
}
else
{
}
else
{
history
.
push
(
`/memberCenter/tranactionAbility/purchaseOrder/readyAddOrder/add?modelType=
5
&spam_id=
${
sessionKey
}
`
)
history
.
push
(
`/memberCenter/tranactionAbility/purchaseOrder/readyAddOrder/add?modelType=
${
getOrderMode
()}
&spam_id=
${
sessionKey
}
`
)
}
}
})
})
}
}
...
...
src/pages/mobileTemplate/channelTemplateEdit/index.tsx
View file @
3756c266
...
@@ -242,7 +242,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
...
@@ -242,7 +242,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
if
(
appConfig
?.
informationBO
)
{
if
(
appConfig
?.
informationBO
)
{
mobileChannelInformation
[
mobileChannelInformation
.
key
].
props
.
title
=
appConfig
?.
informationBO
.
title
mobileChannelInformation
[
mobileChannelInformation
.
key
].
props
.
title
=
appConfig
?.
informationBO
.
title
mobileChannelInformation
[
mobileChannelInformation
.
key
].
props
.
informationIdList
=
appConfig
?.
informationBO
.
informationIdList
mobileChannelInformation
[
mobileChannelInformation
.
key
].
props
.
informationIdList
=
appConfig
?.
informationBO
.
informationIdList
||
[]
mobileChannelInformation
[
mobileChannelInformation
.
key
].
props
.
dataList
=
await
getInformationInfo
(
appConfig
?.
informationBO
.
informationIdList
)
mobileChannelInformation
[
mobileChannelInformation
.
key
].
props
.
dataList
=
await
getInformationInfo
(
appConfig
?.
informationBO
.
informationIdList
)
}
}
...
...
src/pages/mobileTemplate/shopTemplateEdit/index.tsx
View file @
3756c266
...
@@ -128,7 +128,12 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
...
@@ -128,7 +128,12 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
* @param idList
* @param idList
*/
*/
const
fetchCategoryByCommodityId
=
(
idList
:
number
[])
=>
{
const
fetchCategoryByCommodityId
=
(
idList
:
number
[])
=>
{
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
if
(
!
idList
)
{
resolve
([])
return
}
const
param
=
{
const
param
=
{
idList
idList
}
}
...
@@ -170,7 +175,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
...
@@ -170,7 +175,7 @@ const mobileShopTempleteEdit: React.FC<ShopPreviewPropsType> = (props) => {
mobileShopCommodityList
[
mobileShopCommodityList
.
key
].
props
=
{
mobileShopCommodityList
[
mobileShopCommodityList
.
key
].
props
=
{
storeId
:
shopInfo
.
id
,
storeId
:
shopInfo
.
id
,
title
:
appConfig
.
productBO
.
title
,
title
:
appConfig
.
productBO
.
title
,
productIdList
:
appConfig
.
productBO
.
productIdList
,
productIdList
:
appConfig
.
productBO
.
productIdList
||
[]
,
dataList
,
dataList
,
}
}
}
else
{
}
else
{
...
...
src/pages/repositories/addRepository.tsx
View file @
3756c266
...
@@ -46,10 +46,12 @@ const AddRepository:React.FC<{}> = (props) => {
...
@@ -46,10 +46,12 @@ const AddRepository:React.FC<{}> = (props) => {
params
[
'warehouseName'
]
=
prevState
.
props
.
enum
.
filter
((
item
:
any
)
=>
item
.
value
===
prevState
.
value
)[
0
][
'label'
]
params
[
'warehouseName'
]
=
prevState
.
props
.
enum
.
filter
((
item
:
any
)
=>
item
.
value
===
prevState
.
value
)[
0
][
'label'
]
}
}
})
})
await
PublicApi
.
postWarehouseFreightSpaceAdd
(
params
)
let
res
=
await
PublicApi
.
postWarehouseFreightSpaceAdd
(
params
)
setTimeout
(()
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
(
-
1
)
setTimeout
(()
=>
{
},
1000
)
history
.
goBack
(
-
1
)
},
1000
)
}
}
}
}
}
...
...
src/pages/transaction/components/orderPayModal/index.tsx
View file @
3756c266
...
@@ -91,6 +91,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
...
@@ -91,6 +91,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
const
[
payOnReceived
,
setPayOnReceived
]
=
useState
<
boolean
>
(
false
)
// 是否要禁用到付方式
const
[
payOnReceived
,
setPayOnReceived
]
=
useState
<
boolean
>
(
false
)
// 是否要禁用到付方式
const
[
blankAccountInfo
,
setBlankAccountInfo
]
=
useState
<
any
>
()
const
[
blankAccountInfo
,
setBlankAccountInfo
]
=
useState
<
any
>
()
const
{
run
,
loading
}
=
useHttpRequest
(
PublicApi
.
postOrderPendingOrderPay
)
const
{
run
,
loading
}
=
useHttpRequest
(
PublicApi
.
postOrderPendingOrderPay
)
const
[
settleAccountsError
,
setSettleAccountsError
]
=
useState
<
boolean
>
(
true
)
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
currentRef
)
{
if
(
currentRef
)
{
...
@@ -178,6 +179,9 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
...
@@ -178,6 +179,9 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
PublicApi
.
getSettleAccountsCorporateAccountConfig
({
memberId
:
data
.
supplyMembersId
,
memberRoleId
:
data
.
supplyMembersRoleId
}).
then
(
res
=>
{
PublicApi
.
getSettleAccountsCorporateAccountConfig
({
memberId
:
data
.
supplyMembersId
,
memberRoleId
:
data
.
supplyMembersRoleId
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
setBlankAccountInfo
(
res
.
data
)
setBlankAccountInfo
(
res
.
data
)
setSettleAccountsError
(
true
)
}
else
{
setSettleAccountsError
(
false
)
}
}
})
})
}
else
if
(
checked
.
id
===
6
)
{
// 授信额度支付
}
else
if
(
checked
.
id
===
6
)
{
// 授信额度支付
...
@@ -310,6 +314,10 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
...
@@ -310,6 +314,10 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
params
.
payOrderUrls
=
payOrderUrls
.
join
(
','
)
params
.
payOrderUrls
=
payOrderUrls
.
join
(
','
)
}
}
if
(
!
settleAccountsError
)
{
return
message
.
error
(
'请先完成对公账户配置'
)
}
const
res
=
await
run
(
params
,
mobilePayFlag
.
current
===
4
?
{
ctlType
:
"none"
}
:
null
)
const
res
=
await
run
(
params
,
mobilePayFlag
.
current
===
4
?
{
ctlType
:
"none"
}
:
null
)
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
if
(
mobilePayFlag
.
current
!==
4
)
{
// 非微信
if
(
mobilePayFlag
.
current
!==
4
)
{
// 非微信
...
...
src/pages/transaction/purchaseOrder/orderCollect/effects/index.ts
View file @
3756c266
...
@@ -206,7 +206,8 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
...
@@ -206,7 +206,8 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
},
{}),
},
{}),
isMemberPrice
:
v
.
isMemberPrice
,
isMemberPrice
:
v
.
isMemberPrice
,
purchaseCount
:
v
.
count
,
purchaseCount
:
v
.
count
,
money
:
v
.
memberDiscount
?
(
v
.
count
*
1000
*
v
.
unitPrice
*
100
*
v
.
memberDiscount
*
100
)
/
10000000
:
(
v
.
count
*
1000
*
v
.
unitPrice
*
100
)
/
100000
,
// money: v.memberDiscount ? (v.count*1000 * v.unitPrice*100 * v.memberDiscount*100)/10000000 : (v.count*1000 * v.unitPrice*100)/100000,
money
:
(
v
.
count
*
1000
*
v
.
unitPrice
*
100
)
/
100000
,
productId
:
v
.
id
,
productId
:
v
.
id
,
channelProductId
:
v
.
channelProductId
,
channelProductId
:
v
.
channelProductId
,
memberId
:
initValue
.
supplyMembersId
,
// 添加 memberId, memberRoleId 字段
memberId
:
initValue
.
supplyMembersId
,
// 添加 memberId, memberRoleId 字段
...
@@ -226,7 +227,7 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
...
@@ -226,7 +227,7 @@ export const useOrderFormInitEffect = (ctx: ISchemaFormActions | ISchemaFormAsyn
// ctx.setFormState(state => {
// ctx.setFormState(state => {
// state.remoteDataFn = fn
// state.remoteDataFn = fn
// })
// })
console
.
log
(
initValue
,
'initValue'
)
fn
(
initValue
)
fn
(
initValue
)
}
}
...
...
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
3756c266
...
@@ -321,7 +321,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
...
@@ -321,7 +321,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
params
.
orderProductRequests
=
params
.
orderProductRequests
.
map
(
item
=>
{
params
.
orderProductRequests
=
params
.
orderProductRequests
.
map
(
item
=>
{
let
logistics
:
any
=
{
let
logistics
:
any
=
{
...
item
.
logistics
,
...
item
.
logistics
,
render
:
JSON
.
stringify
(
typeof
item
.
logistics
.
render
===
"object"
?
item
.
logistics
.
render
:
item
.
logistics
.
render
.
replace
(
/
\"
/g
,
''
))
render
:
JSON
.
stringify
(
typeof
item
.
logistics
.
render
===
"object"
?
item
.
logistics
.
render
:
(
item
.
logistics
?.
render
?
item
.
logistics
.
render
.
replace
(
/
\"
/g
,
''
)
:
{}
))
};
};
return
{
return
{
...
item
,
...
item
,
...
...
src/pages/transaction/purchaseOrder/orderCollect/model/useProductTable.tsx
View file @
3756c266
...
@@ -85,6 +85,7 @@ export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncAction
...
@@ -85,6 +85,7 @@ export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncAction
// 商品行数变动 清空之前的支付信息
// 商品行数变动 清空之前的支付信息
if
(
pageStatus
===
PageStatus
.
ADD
)
{
if
(
pageStatus
===
PageStatus
.
ADD
)
{
console
.
log
(
'Add'
)
let
paymentInfo
=
ctx
.
getFieldValue
(
'paymentInformationResponses'
).
map
(
item
=>
{
let
paymentInfo
=
ctx
.
getFieldValue
(
'paymentInformationResponses'
).
map
(
item
=>
{
let
_item
=
{...
item
}
let
_item
=
{...
item
}
delete
_item
.
channel
delete
_item
.
channel
...
...
src/pages/transaction/purchaseOrder/readyPayOrder/model/useSelfTable.tsx
View file @
3756c266
...
@@ -141,7 +141,7 @@ export const useSelfTable = () => {
...
@@ -141,7 +141,7 @@ export const useSelfTable = () => {
}
}
</Col> */
}
</Col> */
}
</
Row
>
</
Row
>
<
Progress
percent=
{
Math
.
ceil
(
record
.
currentPayments
/
record
.
sum
)
}
showInfo=
{
false
}
/>
<
Progress
percent=
{
Number
(
record
.
currentPayments
/
record
.
sum
).
toFixed
(
2
)
*
100
}
showInfo=
{
false
}
/>
</>
</>
},
},
{
{
...
...
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