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
3fdc5e1a
Commit
3fdc5e1a
authored
Jun 16, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-srm' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev-srm
parents
d94afcc8
8ef0085b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
22 deletions
+32
-22
index.ts
src/pages/procurement/tender/readyAddTender/schema/index.ts
+1
-1
index.tsx
src/pages/transaction/components/orderDeleveRecord/index.tsx
+1
-1
index.tsx
src/pages/transaction/components/orderMergeInfo/index.tsx
+11
-11
index.tsx
src/pages/transaction/components/orderProductTable/index.tsx
+2
-2
index.tsx
...es/transaction/components/saleOrderProductTable/index.tsx
+1
-1
index.tsx
...transaction/purchaseOrder/orderCollect/constant/index.tsx
+11
-4
useMaterialTable.tsx
...ion/purchaseOrder/orderCollect/model/useMaterialTable.tsx
+3
-1
useProductTable.tsx
...tion/purchaseOrder/orderCollect/model/useProductTable.tsx
+2
-1
No files found.
src/pages/procurement/tender/readyAddTender/schema/index.ts
View file @
3fdc5e1a
...
@@ -8,7 +8,7 @@ export const tableListSchema: ISchema = {
...
@@ -8,7 +8,7 @@ export const tableListSchema: ISchema = {
type
:
'string'
,
type
:
'string'
,
"x-component"
:
'SearchFilter'
,
"x-component"
:
'SearchFilter'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'请输入
招
标编号'
,
placeholder
:
'请输入
投
标编号'
,
align
:
'flex-end'
,
align
:
'flex-end'
,
},
},
},
},
...
...
src/pages/transaction/components/orderDeleveRecord/index.tsx
View file @
3fdc5e1a
...
@@ -193,7 +193,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
...
@@ -193,7 +193,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
dataIndex
:
'logisticsNo'
,
dataIndex
:
'logisticsNo'
,
align
:
'center'
,
align
:
'center'
,
key
:
'logisticsNo'
,
key
:
'logisticsNo'
,
render
:
text
=>
<
a
target=
"blank"
href=
{
`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?code=${text}`
}
>
{
text
}
</
a
>
//
render: text => <a target="blank" href={`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?code=${text}`}>{text}</a>
},
},
{
{
title
:
'物流公司'
,
title
:
'物流公司'
,
...
...
src/pages/transaction/components/orderMergeInfo/index.tsx
View file @
3fdc5e1a
...
@@ -77,20 +77,22 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
...
@@ -77,20 +77,22 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
return
(
return
(
<>
<>
<
Row
style=
{
{
marginTop
:
24
}
}
gutter=
{
24
}
>
<
Row
style=
{
{
marginTop
:
24
}
}
gutter=
{
24
}
>
<
Col
span=
{
12
}
>
<
Col
span=
{
(
data
.
externalStateName
!==
'不接受订单'
)
||
(
data
.
orderModel
>
30
)
?
15
:
12
}
>
<
MellowCard
title=
'交易信息'
fullHeight
>
<
MellowCard
title=
'交易信息'
fullHeight
>
<
RenderCard
infoList=
{
payInfo
}
dataSource=
{
data
}
/>
<
RenderCard
infoList=
{
payInfo
}
dataSource=
{
data
}
/>
</
MellowCard
>
</
MellowCard
>
</
Col
>
</
Col
>
<
Col
span=
{
6
}
>
<
Col
span=
{
(
data
.
externalStateName
!==
'不接受订单'
)
||
(
data
.
orderModel
>
30
)
?
9
:
6
}
>
<
MellowCard
title=
'其他信息'
fullHeight
>
<
MellowCard
title=
'其他信息'
fullHeight
>
<
RenderCard
infoList=
{
otherInfo
}
dataSource=
{
data
}
/>
<
RenderCard
infoList=
{
otherInfo
}
dataSource=
{
data
}
/>
</
MellowCard
>
</
MellowCard
>
</
Col
>
</
Col
>
<
Col
span=
{
6
}
>
{
<
MellowCard
title=
'电子合同'
fullHeight
>
(
data
.
externalStateName
!==
'不接受订单'
)
||
(
data
.
orderModel
>
30
)
?
{
null
data
.
externalStateName
!==
'不接受订单'
?
:
<
Col
span=
{
6
}
>
<
MellowCard
title=
'电子合同'
fullHeight
>
<
ContractList
<
ContractList
dataSource=
{
dataSource=
{
data
.
electronicContractUrl
?
data
.
electronicContractUrl
?
...
@@ -103,11 +105,9 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
...
@@ -103,11 +105,9 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
null
null
}
}
/>
/>
:
</
MellowCard
>
null
</
Col
>
}
}
</
MellowCard
>
</
Col
>
</
Row
>
</
Row
>
<
Modal
title=
"发票信息"
visible=
{
isModalVisible
}
onOk=
{
()
=>
setIsModalVisible
(
false
)
}
onCancel=
{
()
=>
setIsModalVisible
(
false
)
}
>
<
Modal
title=
"发票信息"
visible=
{
isModalVisible
}
onOk=
{
()
=>
setIsModalVisible
(
false
)
}
onCancel=
{
()
=>
setIsModalVisible
(
false
)
}
>
<
Row
gutter=
{
[
0
,
10
]
}
style=
{
{
fontSize
:
14
}
}
>
<
Row
gutter=
{
[
0
,
10
]
}
style=
{
{
fontSize
:
14
}
}
>
...
...
src/pages/transaction/components/orderProductTable/index.tsx
View file @
3fdc5e1a
...
@@ -335,7 +335,7 @@ const OrderProductTable:React.FC<OrderProductTableProps> = ({editable}) => {
...
@@ -335,7 +335,7 @@ const OrderProductTable:React.FC<OrderProductTableProps> = ({editable}) => {
dataIndex
:
'taxRate'
,
dataIndex
:
'taxRate'
,
align
:
'center'
,
align
:
'center'
,
key
:
'taxRate'
,
key
:
'taxRate'
,
render
:
(
t
,
r
)
=>
`
${
t
}
%`
render
:
(
t
,
r
)
=>
t
?
`
${
t
}
%`
:
null
},
},
{
{
title
:
creditsCommodity
?
'所需积分小计'
:
'金额'
,
title
:
creditsCommodity
?
'所需积分小计'
:
'金额'
,
...
@@ -431,7 +431,7 @@ const OrderProductTable:React.FC<OrderProductTableProps> = ({editable}) => {
...
@@ -431,7 +431,7 @@ const OrderProductTable:React.FC<OrderProductTableProps> = ({editable}) => {
dataIndex
:
'taxRate'
,
dataIndex
:
'taxRate'
,
align
:
'center'
,
align
:
'center'
,
key
:
'taxRate'
,
key
:
'taxRate'
,
render
:
(
t
,
r
)
=>
`
${
t
}
%`
render
:
(
t
,
r
)
=>
t
?
`
${
t
}
%`
:
null
},
},
{
{
title
:
'金额'
,
title
:
'金额'
,
...
...
src/pages/transaction/components/saleOrderProductTable/index.tsx
View file @
3fdc5e1a
...
@@ -537,7 +537,7 @@ const SaleOrderProductTable:React.FC<OrderProductTableProps> = (props) => {
...
@@ -537,7 +537,7 @@ const SaleOrderProductTable:React.FC<OrderProductTableProps> = (props) => {
dataIndex
:
'taxRate'
,
dataIndex
:
'taxRate'
,
align
:
'center'
,
align
:
'center'
,
key
:
'taxRate'
,
key
:
'taxRate'
,
render
:
(
t
,
r
)
=>
`
${
t
}
%`
render
:
(
t
,
r
)
=>
t
?
`
${
t
}
%`
:
null
},
},
{
{
title
:
'金额'
,
title
:
'金额'
,
...
...
src/pages/transaction/purchaseOrder/orderCollect/constant/index.tsx
View file @
3fdc5e1a
...
@@ -34,7 +34,7 @@ export const procurementRenderField = (_orderProductRequests) => {
...
@@ -34,7 +34,7 @@ export const procurementRenderField = (_orderProductRequests) => {
relevanceProductBrand
:
item
.
brand
,
relevanceProductBrand
:
item
.
brand
,
relevanceProductCategory
:
item
.
category
,
relevanceProductCategory
:
item
.
category
,
logistics
:
item
.
logistics
.
deliveryType
,
logistics
:
item
.
logistics
.
deliveryType
,
id
:
item
.
materialId
,
//
id: item.materialId,
code
:
item
.
materialCode
,
code
:
item
.
materialCode
,
name
:
item
.
materialName
,
name
:
item
.
materialName
,
type
:
item
.
materialType
,
type
:
item
.
materialType
,
...
@@ -62,7 +62,7 @@ export const procurementProcessField = (value) => {
...
@@ -62,7 +62,7 @@ export const procurementProcessField = (value) => {
// @todo 后端暂无返回 写死1
// @todo 后端暂无返回 写死1
minOrder
:
1
,
minOrder
:
1
,
// 物料信息
// 物料信息
materialId
:
item
.
id
,
//
materialId: item.id,
materialCode
:
item
.
code
,
materialCode
:
item
.
code
,
materialName
:
item
.
name
,
materialName
:
item
.
name
,
materialType
:
item
.
type
,
materialType
:
item
.
type
,
...
@@ -450,7 +450,7 @@ export const productInfoColumns: any[] = [
...
@@ -450,7 +450,7 @@ export const productInfoColumns: any[] = [
dataIndex
:
'taxRate'
,
dataIndex
:
'taxRate'
,
align
:
'center'
,
align
:
'center'
,
key
:
'taxRate'
,
key
:
'taxRate'
,
render
:
(
t
,
r
)
=>
`
${
t
}
%`
render
:
(
t
,
r
)
=>
t
?
`
${
t
}
%`
:
null
},
},
{
{
title
:
'金额'
,
title
:
'金额'
,
...
@@ -491,6 +491,13 @@ export const materialInfoColumns: any[] = [
...
@@ -491,6 +491,13 @@ export const materialInfoColumns: any[] = [
className
:
'commonHide'
className
:
'commonHide'
},
},
{
{
title
:
'物料ID'
,
dataIndex
:
'materialId'
,
align
:
'center'
,
key
:
'materialId'
,
className
:
'commonHide'
},
{
title
:
'物料编号'
,
title
:
'物料编号'
,
dataIndex
:
'code'
,
dataIndex
:
'code'
,
align
:
'center'
,
align
:
'center'
,
...
@@ -561,7 +568,7 @@ export const materialInfoColumns: any[] = [
...
@@ -561,7 +568,7 @@ export const materialInfoColumns: any[] = [
dataIndex
:
'taxRate'
,
dataIndex
:
'taxRate'
,
align
:
'center'
,
align
:
'center'
,
key
:
'taxRate'
,
key
:
'taxRate'
,
render
:
(
t
,
r
)
=>
`
${
t
}
%`
render
:
(
t
,
r
)
=>
t
?
`
${
t
}
%`
:
null
},
},
{
{
title
:
'金额'
,
title
:
'金额'
,
...
...
src/pages/transaction/purchaseOrder/orderCollect/model/useMaterialTable.tsx
View file @
3fdc5e1a
...
@@ -109,6 +109,8 @@ export const useMaterialTable = (ctx: ISchemaFormActions | ISchemaFormAsyncActio
...
@@ -109,6 +109,8 @@ export const useMaterialTable = (ctx: ISchemaFormActions | ISchemaFormAsyncActio
}
}
const
handleSave
=
row
=>
{
const
handleSave
=
row
=>
{
const
{
pageStatus
}
=
usePageStatus
()
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
newData
=
[...
ctx
.
getFieldValue
(
'orderProductRequests'
)];
const
newData
=
[...
ctx
.
getFieldValue
(
'orderProductRequests'
)];
const
index
=
newData
.
findIndex
(
item
=>
row
.
id
===
item
.
id
);
const
index
=
newData
.
findIndex
(
item
=>
row
.
id
===
item
.
id
);
...
@@ -120,7 +122,7 @@ export const useMaterialTable = (ctx: ISchemaFormActions | ISchemaFormAsyncActio
...
@@ -120,7 +122,7 @@ export const useMaterialTable = (ctx: ISchemaFormActions | ISchemaFormAsyncActio
addModel
===
OrderModalType
[
"HAND_ORDER"
]
||
addModel
===
OrderModalType
[
"HAND_ORDER"
]
||
addModel
===
OrderModalType
[
"CHANNEL_DIRECT_MINING_ORDER"
]
||
addModel
===
OrderModalType
[
"CHANNEL_DIRECT_MINING_ORDER"
]
||
addModel
===
OrderModalType
[
"CHANNEL_SPOT_MANUAL_ORDER"
]
addModel
===
OrderModalType
[
"CHANNEL_SPOT_MANUAL_ORDER"
]
)
?
row
.
id
:
row
.
productId
)
&&
(
pageStatus
===
PageStatus
.
ADD
)
?
row
.
id
:
row
.
productId
newData
.
splice
(
index
,
1
,
{
newData
.
splice
(
index
,
1
,
{
...
item
,
...
item
,
...
row
,
...
row
,
...
...
src/pages/transaction/purchaseOrder/orderCollect/model/useProductTable.tsx
View file @
3fdc5e1a
...
@@ -169,6 +169,7 @@ export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncAction
...
@@ -169,6 +169,7 @@ export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncAction
}
}
const
handleSave
=
row
=>
{
const
handleSave
=
row
=>
{
const
{
pageStatus
}
=
usePageStatus
()
// 商品采购数量变动 清空之前的支付信息
// 商品采购数量变动 清空之前的支付信息
if
(
pageStatus
===
PageStatus
.
ADD
)
{
if
(
pageStatus
===
PageStatus
.
ADD
)
{
ctx
.
setFieldValue
(
'paymentInformationResponses'
,
[])
ctx
.
setFieldValue
(
'paymentInformationResponses'
,
[])
...
@@ -184,7 +185,7 @@ export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncAction
...
@@ -184,7 +185,7 @@ export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncAction
addModel
===
OrderModalType
[
"HAND_ORDER"
]
||
addModel
===
OrderModalType
[
"HAND_ORDER"
]
||
addModel
===
OrderModalType
[
"CHANNEL_DIRECT_MINING_ORDER"
]
||
addModel
===
OrderModalType
[
"CHANNEL_DIRECT_MINING_ORDER"
]
||
addModel
===
OrderModalType
[
"CHANNEL_SPOT_MANUAL_ORDER"
]
addModel
===
OrderModalType
[
"CHANNEL_SPOT_MANUAL_ORDER"
]
)
?
row
.
id
:
row
.
productId
)
&&
(
pageStatus
===
PageStatus
.
ADD
)
?
row
.
id
:
row
.
productId
newData
.
splice
(
index
,
1
,
{
newData
.
splice
(
index
,
1
,
{
...
item
,
...
item
,
...
row
,
...
row
,
...
...
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