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
6e21b722
Commit
6e21b722
authored
Feb 20, 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
9d340044
4e57c28a
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
70 additions
and
32 deletions
+70
-32
index.tsx
...ges/afterService/components/ExchangeAddressInfo/index.tsx
+3
-18
index.tsx
...rvice/exchangeApplication/components/DetailInfo/index.tsx
+6
-3
index.tsx
...vice/exchangeApplication/exchangePrAddLogistics/index.tsx
+1
-1
index.tsx
...cation/exchangePrSubmit/components/ExchangeForm/index.tsx
+16
-0
verify.tsx
...erService/exchangeManage/exchangePrConfirmBack/verify.tsx
+8
-0
verify.tsx
...s/afterService/exchangeManage/exchangePrSubmit/verify.tsx
+1
-1
index.tsx
...rService/returnApplication/returnPrAddLogistics/index.tsx
+2
-2
index.less
src/pages/lxMall/components/SideNav/index.less
+1
-2
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+5
-2
useBusinessEffects.ts
.../bills/components/BillsForm/effects/useBusinessEffects.ts
+27
-3
No files found.
src/pages/afterService/components/ExchangeAddressInfo/index.tsx
View file @
6e21b722
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 09:54:04
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-02-
09 18:02:5
6
* @LastEditTime: 2021-02-
19 20:33:3
6
* @Description: 换货收货地址
*/
import
React
,
{
useEffect
}
from
'react'
;
...
...
@@ -76,21 +76,6 @@ const ExchangeAddressInfo: React.FC<ExchangeAddressInfo> = ({
useEffect
(()
=>
{
const
{
setFieldState
}
=
modalFormActions
;
// if (isEdit) {
// setFieldState('*(shippingAddress,pickupAddress)', state => {
// state.visible = true;
// });
// setFieldState('shippingAddressShow', state => {
// state.visible = false;
// });
// } else {
// setFieldState('*(shippingAddress,pickupAddress)', state => {
// state.visible = false;
// });
// setFieldState('shippingAddressShow', state => {
// state.visible = true;
// });
// }
switch
(
shippingAddress
.
deliveryType
)
{
// 物流
case
1
:
{
...
...
@@ -257,9 +242,9 @@ const ExchangeAddressInfo: React.FC<ExchangeAddressInfo> = ({
}
});
onFieldInputChange$
(
'*(shippingAddress,pickupAddress)'
).
subscribe
(
fieldState
=>
{
onFieldInputChange$
(
'*(shippingAddress,pickupAddress)'
).
subscribe
(
async
fieldState
=>
{
const
{
value
,
originAsyncData
=
[]
}
=
fieldState
;
const
deliveryTypeValue
=
getFieldValue
(
'deliveryType'
);
const
deliveryTypeValue
=
await
getFieldValue
(
'deliveryType'
);
const
fullData
=
originAsyncData
.
find
(
item
=>
item
.
id
===
value
);
if
(
onSubmit
)
{
...
...
src/pages/afterService/exchangeApplication/components/DetailInfo/index.tsx
View file @
6e21b722
...
...
@@ -19,6 +19,8 @@ import {
import
{
EXCHANGE_OUTER_STATUS_FINISHED
,
EXCHANGE_INNER_STATUS_UNCOMMITTED
,
ORDER_TYPE2_POINTS
,
ORDER_TYPE2_CHANNEL_POINTS
,
}
from
'@/constants'
;
import
{
normalizeFiledata
,
FileData
,
findLastIndexFlowState
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
...
...
@@ -76,6 +78,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
const
[
replaceGoodsLoading
,
setExchangeGoodsLoading
]
=
useState
(
false
);
const
[
infoLoading
,
setInfoloading
]
=
useState
(
false
);
const
isPointsOrder
=
detailInfo
?.
orderType
===
ORDER_TYPE2_POINTS
||
detailInfo
?.
orderType
===
ORDER_TYPE2_CHANNEL_POINTS
;
const
productColumns
:
EditableColumns
[]
=
[
{
title
:
'订单号'
,
...
...
@@ -114,17 +117,17 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
align
:
'center'
,
},
{
title
:
'采购
数量'
,
title
:
!
isPointsOrder
?
'采购数量'
:
'兑换
数量'
,
dataIndex
:
'purchaseCount'
,
align
:
'center'
,
},
{
title
:
'采购单价
'
,
title
:
!
isPointsOrder
?
'采购单价'
:
'所需积分
'
,
dataIndex
:
'purchasePrice'
,
align
:
'center'
,
},
{
title
:
'采购金额
'
,
title
:
!
isPointsOrder
?
'采购金额'
:
'所需积分小计
'
,
dataIndex
:
'purchaseAmount'
,
align
:
'center'
,
},
...
...
src/pages/afterService/exchangeApplication/exchangePrAddLogistics/index.tsx
View file @
6e21b722
...
...
@@ -134,7 +134,7 @@ const ExchangePrAddLogistics: React.FC = () => {
type=
"link"
onClick=
{
()
=>
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/edit?id=${record.re
place
Id}`
)
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/edit?id=${record.re
turnLogistics
Id}`
)
}
>
编辑
...
...
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/index.tsx
View file @
6e21b722
...
...
@@ -188,6 +188,19 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
];
};
const
setColumnsTitle
=
(
orderType
:
number
)
=>
{
const
isPointsOrder
=
orderType
===
ORDER_TYPE2_POINTS
||
orderType
===
ORDER_TYPE2_CHANNEL_POINTS
;
// addSchemaAction.setFieldState('replaceGoodsList.*.purchasePrice', state => {
// state.title = !isPointsOrder ? '采购单价' : '所需积分';
// });
// addSchemaAction.setFieldState('replaceGoodsList.*.purchaseCount', state => {
// state.title = !isPointsOrder ? '采购数量' : '兑换数量';
// });
// addSchemaAction.setFieldState('replaceGoodsList.*.purchaseAmount', state => {
// state.title = !isPointsOrder ? '采购金额' : '所需积分小计';
// });
};
// 根据供应会员获取订单列表
const
getOrderList
=
(
params
):
Promise
<
OrderListRes
>
=>
{
const
supplierMemberValue
=
addSchemaAction
.
getFieldValue
(
'supplierMember'
);
...
...
@@ -295,6 +308,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
...
rest
,
});
setGoodsValue
(
goodsDetailList
.
map
(
item
=>
item
.
orderRecordId
));
setColumnsTitle
(
orderType
);
}
}).
finally
(()
=>
{
setInfoLoading
(
false
);
...
...
@@ -514,6 +528,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
const
handleGoodsConfirm
=
values
=>
{
const
preValues
=
addSchemaAction
.
getFieldValue
(
'replaceGoodsList'
);
const
value
=
[];
const
first
=
values
.
length
?
values
[
0
]
:
{};
values
.
forEach
(
item
=>
{
const
atom
=
{
...
...
@@ -541,6 +556,7 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
if
(
preValues
.
length
)
{
newData
.
reverse
();
}
setColumnsTitle
(
first
.
orderType
);
addSchemaAction
.
setFieldValue
(
'replaceGoodsList'
,
newData
);
};
...
...
src/pages/afterService/exchangeManage/exchangePrConfirmBack/verify.tsx
View file @
6e21b722
...
...
@@ -47,6 +47,10 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
onOk
()
{
return
PublicApi
.
postAsReplaceGoodsContinueReplaceDeliveryGoods
({
dataId
:
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
}
});
},
});
...
...
@@ -64,6 +68,10 @@ const ExchangePrConfirmBackVerify: React.FC = () => {
onOk
()
{
return
PublicApi
.
postAsReplaceGoodsContinueReplaceDeliveryGoods
({
dataId
:
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
();
}
});
},
});
...
...
src/pages/afterService/exchangeManage/exchangePrSubmit/verify.tsx
View file @
6e21b722
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 17:22:07
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-29 15:50:05
* @LastEditTime: 2021-0
2-19 20:34:16
* @Description:
*/
import
React
,
{
useState
}
from
'react'
;
...
...
src/pages/afterService/returnApplication/returnPrAddLogistics/index.tsx
View file @
6e21b722
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 16:30:44
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-26 18:36:23
* @LastEditTime: 2021-0
2-19 16:47:29
* @Description: 待新增退货发货单
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
...
...
@@ -139,7 +139,7 @@ const ReturnPrAddLogistics: React.FC = () => {
type=
"link"
onClick=
{
()
=>
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/edit?id=${record.returnId}`
)
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/edit?id=${record.return
Logistics
Id}`
)
}
>
编辑
...
...
src/pages/lxMall/components/SideNav/index.less
View file @
6e21b722
...
...
@@ -55,13 +55,12 @@
}
.commodityList {
display: flex;
flex-wrap: wrap;
padding: 0 5px 50px 0;
overflow-y: auto;
height: 100vh;
.commodityItem {
display: inline-block;
width: 50%;
.commodityItemBody {
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
6e21b722
...
...
@@ -149,7 +149,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
if
(
isMemberPrice
)
{
parameter
=
await
getMemberCredit
(
item
.
commodityUnitPrice
.
commodity
.
memberId
,
item
.
commodityUnitPrice
.
commodity
.
memberRoleId
)
}
Object
.
keys
(
unitPrice
).
forEach
(
key
=>
{
unitPrice
&&
Object
.
keys
(
unitPrice
).
forEach
(
key
=>
{
const
keyArr
=
key
.
split
(
'-'
)
const
min
=
keyArr
[
0
]
const
max
=
keyArr
[
1
]
...
...
@@ -225,6 +225,9 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
const
index
=
checkedList
.
indexOf
(
id
)
checkedList
.
splice
(
index
,
1
)
setCheckedList
(
checkedList
)
if
(
checkedList
.
length
===
0
)
{
setIndeterminate
(
false
)
}
}
}
...
...
@@ -319,7 +322,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
if
(
isEmpty
(
priceItem
))
{
priceItem
=
getMaxCountRange
(
priceRange
,
count
)
}
return
parseFloat
(
priceItem
.
price
)
*
count
return
(
priceItem
&&
priceItem
.
price
)
?
parseFloat
(
priceItem
.
price
)
*
count
:
0
}
}
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/effects/useBusinessEffects.ts
View file @
6e21b722
...
...
@@ -2,10 +2,10 @@
* @Author: XieZhiXiong
* @Date: 2020-09-16 15:16:47
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-26 19:31:3
7
* @LastEditTime: 2021-0
2-19 20:24:4
7
* @Description: 联动逻辑相关
*/
import
{
Modal
}
from
'antd'
;
import
{
Modal
,
message
}
from
'antd'
;
import
{
FormEffectHooks
,
FormPath
}
from
'@formily/antd'
;
import
{
useLinkageUtils
}
from
'@/utils/formEffectUtils'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
...
...
@@ -530,6 +530,31 @@ export const useBusinessEffects = (context, actions) => {
const
{
name
,
originAsyncData
,
value
}
=
fieldState
;
const
current
=
originAsyncData
.
find
(
item
=>
item
.
id
===
value
);
const
invoicesTypeIdVal
=
getFieldValue
(
'invoicesTypeId'
);
const
invoicesDetailsRequestsValue
=
getFieldValue
(
'invoicesDetailsRequests'
);
const
itemNoValue
=
getFieldValue
(
FormPath
.
transform
(
name
,
/
\d
/
,
$1
=>
{
return
`invoicesDetailsRequests.
${
$1
}
.itemNo`
}));
// 这里判断是否货品 跟 商品 都已经选择过了,不可重复选择
const
sameGood
=
invoicesDetailsRequestsValue
.
find
(
item
=>
item
.
itemNo
===
itemNoValue
);
if
(
invoicesDetailsRequestsValue
.
length
>
1
&&
sameGood
&&
sameGood
.
product
===
value
)
{
message
.
warning
(
'存在相同货号+商品的组合,请重新选择'
);
setTimeout
(()
=>
{
setFieldState
(
FormPath
.
transform
(
name
,
/
\d
/
,
$1
=>
{
return
`invoicesDetailsRequests.
${
$1
}
.product`
}),
state
=>
{
state
.
value
=
undefined
;
}
);
},
0
);
return
;
}
// 取消选择
if
(
!
value
)
{
...
...
@@ -767,7 +792,6 @@ export const useBusinessEffects = (context, actions) => {
};
}
);
});
// 关联明细 商品数量 联动计算商品金额
...
...
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