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
71386912
Commit
71386912
authored
Apr 11, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 处理使用到相同 columns 的Table布局
parent
76a7c072
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
118 additions
and
16 deletions
+118
-16
index.tsx
...es/transaction/purchaseOrder/firstApprovedOrder/index.tsx
+3
-0
useSelfTable.tsx
...n/purchaseOrder/firstApprovedOrder/model/useSelfTable.tsx
+4
-1
index.tsx
...ages/transaction/purchaseOrder/readyAddB2bOrder/index.tsx
+3
-0
useReadyAddOrder.tsx
...purchaseOrder/readyAddB2bOrder/model/useReadyAddOrder.tsx
+4
-1
index.tsx
...ges/transaction/purchaseOrder/readyAddCashOrder/index.tsx
+3
-0
useReadyAddOrder.tsx
...urchaseOrder/readyAddCashOrder/model/useReadyAddOrder.tsx
+4
-1
index.tsx
src/pages/transaction/purchaseOrder/readyAddOrder/index.tsx
+3
-0
useReadyAddOrder.tsx
...on/purchaseOrder/readyAddOrder/model/useReadyAddOrder.tsx
+4
-1
index.tsx
...nsaction/purchaseOrder/readyAddRequisitionOrder/index.tsx
+3
-0
useReadyAddOrder.tsx
...Order/readyAddRequisitionOrder/model/useReadyAddOrder.tsx
+4
-1
index.tsx
...ages/transaction/purchaseOrder/readyAddSrmOrder/index.tsx
+3
-0
useReadyAddOrder.tsx
...purchaseOrder/readyAddSrmOrder/model/useReadyAddOrder.tsx
+4
-1
index.tsx
.../transaction/purchaseOrder/readyConfirmContract/index.tsx
+3
-0
useSelfTable.tsx
...purchaseOrder/readyConfirmContract/model/useSelfTable.tsx
+4
-1
index.tsx
...ransaction/purchaseOrder/readyDistributionOrder/index.tsx
+3
-0
useSelfTable.tsx
...rchaseOrder/readyDistributionOrder/model/useSelfTable.tsx
+4
-1
index.tsx
src/pages/transaction/purchaseOrder/readyFileOrder/index.tsx
+3
-0
useSelfTable.tsx
...ction/purchaseOrder/readyFileOrder/model/useSelfTable.tsx
+4
-1
index.tsx
...ages/transaction/purchaseOrder/readySubmitOrder/index.tsx
+3
-0
useSelfTable.tsx
...ion/purchaseOrder/readySubmitOrder/model/useSelfTable.tsx
+4
-1
index.tsx
...s/transaction/purchaseOrder/secondApprovedOrder/index.tsx
+3
-0
useSelfTable.tsx
.../purchaseOrder/secondApprovedOrder/model/useSelfTable.tsx
+4
-1
index.tsx
src/pages/transaction/saleOrder/firstApprovedOrder/index.tsx
+3
-0
useSelfTable.tsx
...ction/saleOrder/firstApprovedOrder/model/useSelfTable.tsx
+4
-1
index.tsx
src/pages/transaction/saleOrder/readyApprovedOrder/index.tsx
+3
-0
useSelfTable.tsx
...ction/saleOrder/readyApprovedOrder/model/useSelfTable.tsx
+4
-1
index.tsx
src/pages/transaction/saleOrder/readyConfirmOrder/index.tsx
+3
-0
useSelfTable.tsx
...action/saleOrder/readyConfirmOrder/model/useSelfTable.tsx
+4
-1
index.tsx
...es/transaction/saleOrder/readyDistributionOrder/index.tsx
+3
-0
useSelfTable.tsx
...n/saleOrder/readyDistributionOrder/model/useSelfTable.tsx
+4
-1
index.tsx
...pages/transaction/saleOrder/readyReturnDocument/index.tsx
+3
-0
useSelfTable.tsx
...tion/saleOrder/readyReturnDocument/model/useSelfTable.tsx
+3
-0
index.tsx
...pages/transaction/saleOrder/secondApprovedOrder/index.tsx
+3
-0
useSelfTable.tsx
...tion/saleOrder/secondApprovedOrder/model/useSelfTable.tsx
+4
-1
No files found.
src/pages/transaction/purchaseOrder/firstApprovedOrder/index.tsx
View file @
71386912
...
...
@@ -88,6 +88,9 @@ const FirstApprovedOrder:React.FC<FirstApprovedOrderProps> = () => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/purchaseOrder/firstApprovedOrder/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -4,6 +4,7 @@ import { baseOrderListColumns } from '../../constant'
import
{
history
,
useIntl
}
from
'umi'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
import
AuthButton
from
'@/components/AuthButton'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
export
const
useSelfTable
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
...
...
@@ -18,7 +19,9 @@ export const useSelfTable = () => {
align
:
'center'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
render
:
(
text
,
record
)
=>
<
AuthButton
btnCode=
"firstApprovedOrder.tijiao"
><
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'purchaseOrder.tijiaoshenhe'
,
defaultMessage
:
'提交审核'
})
}
</
Button
></
AuthButton
>
render
:
(
text
,
record
)
=>
<
AuthButton
btnCode=
"firstApprovedOrder.tijiao"
><
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'purchaseOrder.tijiaoshenhe'
,
defaultMessage
:
'提交审核'
})
}
</
Button
></
AuthButton
>,
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
...
...
src/pages/transaction/purchaseOrder/readyAddB2bOrder/index.tsx
View file @
71386912
...
...
@@ -134,6 +134,9 @@ const ReadyAddB2bOrder:React.FC<ReadyAddB2bOrderProps> = () => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
...
...
src/pages/transaction/purchaseOrder/readyAddB2bOrder/model/useReadyAddOrder.tsx
View file @
71386912
...
...
@@ -4,6 +4,7 @@ import { useRowSelectionTable } from '@/hooks/useRowSelectionTable'
import
{
history
,
useIntl
}
from
'umi'
import
TableOperation
from
'@/components/TableOperation'
import
{
postOrderBuyerCreateDelete
,
postOrderBuyerCreateSubmit
}
from
'@/services/OrderNewV2Api'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
// 业务hooks, 待新增询价报价订单
export
const
useSelfTable
=
()
=>
{
...
...
@@ -63,7 +64,9 @@ export const useSelfTable = () => {
align
:
'center'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
render
:
(
text
:
any
,
record
:
any
)
=>
renderOptionButton
(
record
)
render
:
(
text
:
any
,
record
:
any
)
=>
renderOptionButton
(
record
),
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
src/pages/transaction/purchaseOrder/readyAddCashOrder/index.tsx
View file @
71386912
...
...
@@ -132,6 +132,9 @@ const ReadyAddCashOrder:React.FC<ReadyAddCashOrderProps> = () => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
...
...
src/pages/transaction/purchaseOrder/readyAddCashOrder/model/useReadyAddOrder.tsx
View file @
71386912
...
...
@@ -4,6 +4,7 @@ import { useRowSelectionTable } from '@/hooks/useRowSelectionTable'
import
{
history
,
useIntl
}
from
'umi'
import
TableOperation
from
'@/components/TableOperation'
import
{
postOrderBuyerCreateDelete
,
postOrderBuyerCreateSubmit
}
from
'@/services/OrderNewV2Api'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
// 业务hooks, 待新增订单
export
const
useSelfTable
=
()
=>
{
...
...
@@ -63,7 +64,9 @@ export const useSelfTable = () => {
align
:
'center'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
render
:
(
text
:
any
,
record
:
any
)
=>
renderOptionButton
(
record
)
render
:
(
text
:
any
,
record
:
any
)
=>
renderOptionButton
(
record
),
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
src/pages/transaction/purchaseOrder/readyAddOrder/index.tsx
View file @
71386912
...
...
@@ -153,6 +153,9 @@ const ReadyAddOrder:React.FC<ReadyAddOrderProps> = (props) => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
...
...
src/pages/transaction/purchaseOrder/readyAddOrder/model/useReadyAddOrder.tsx
View file @
71386912
...
...
@@ -4,6 +4,7 @@ import { useRowSelectionTable } from '@/hooks/useRowSelectionTable'
import
{
history
,
useIntl
}
from
'umi'
import
TableOperation
from
'@/components/TableOperation'
import
{
postOrderBuyerCreateDelete
,
postOrderBuyerCreateSubmit
}
from
'@/services/OrderNewV2Api'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
// 业务hooks, 待新增订单
export
const
useSelfTable
=
()
=>
{
...
...
@@ -58,7 +59,9 @@ export const useSelfTable = () => {
align
:
'center'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
render
:
(
text
:
any
,
record
:
any
)
=>
renderOptionButton
(
record
)
render
:
(
text
:
any
,
record
:
any
)
=>
renderOptionButton
(
record
),
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
src/pages/transaction/purchaseOrder/readyAddRequisitionOrder/index.tsx
View file @
71386912
...
...
@@ -136,6 +136,9 @@ const ReadyAddRequisitionOrder:React.FC<ReadyAddRequisitionOrderProps> = () => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
...
...
src/pages/transaction/purchaseOrder/readyAddRequisitionOrder/model/useReadyAddOrder.tsx
View file @
71386912
...
...
@@ -4,6 +4,7 @@ import { useRowSelectionTable } from '@/hooks/useRowSelectionTable'
import
{
history
,
useIntl
}
from
'umi'
import
TableOperation
from
'@/components/TableOperation'
import
{
postOrderBuyerCreateDelete
,
postOrderBuyerCreateSubmit
}
from
'@/services/OrderNewV2Api'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
// 业务hooks, 待新增订单
export
const
useSelfTable
=
()
=>
{
...
...
@@ -62,7 +63,9 @@ export const useSelfTable = () => {
align
:
'center'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
render
:
(
text
,
record
)
=>
renderOptionButton
(
record
)
render
:
(
text
,
record
)
=>
renderOptionButton
(
record
),
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
src/pages/transaction/purchaseOrder/readyAddSrmOrder/index.tsx
View file @
71386912
...
...
@@ -138,6 +138,9 @@ const ReadyAddSrmOrder:React.FC<ReadyAddSrmOrderProps> = () => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
...
...
src/pages/transaction/purchaseOrder/readyAddSrmOrder/model/useReadyAddOrder.tsx
View file @
71386912
...
...
@@ -4,6 +4,7 @@ import { useRowSelectionTable } from '@/hooks/useRowSelectionTable'
import
{
history
,
useIntl
}
from
'umi'
import
TableOperation
from
'@/components/TableOperation'
import
{
postOrderBuyerCreateDelete
,
postOrderBuyerCreateSubmit
}
from
'@/services/OrderNewV2Api'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
// 业务hooks, 待新增订单
export
const
useSelfTable
=
()
=>
{
...
...
@@ -62,7 +63,9 @@ export const useSelfTable = () => {
align
:
'center'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
render
:
(
text
:
any
,
record
:
any
)
=>
renderOptionButton
(
record
)
render
:
(
text
:
any
,
record
:
any
)
=>
renderOptionButton
(
record
),
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
src/pages/transaction/purchaseOrder/readyConfirmContract/index.tsx
View file @
71386912
...
...
@@ -52,6 +52,9 @@ const FirstApprovedOrder:React.FC<FirstApprovedOrderProps> = (props) => {
}
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/purchaseOrder/readyConfirmContract/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -3,6 +3,7 @@ import { history, useIntl } from 'umi'
import
{
Button
,
Modal
}
from
'antd'
import
{
baseOrderListColumns
}
from
'../../constant'
import
{
getContractSignatureAuthAuthState
}
from
'@/services/ContractV2Api'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
// 业务hooks, 待新增订单
export
const
useSelfTable
=
()
=>
{
...
...
@@ -40,7 +41,9 @@ export const useSelfTable = () => {
key
:
'ctl'
,
render
:
(
text
,
record
)
=>
<>
<
Button
type=
'link'
onClick=
{
()
=>
handleConfirm
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'purchaseOrder.querendianzihetong'
,
defaultMessage
:
'确认电子合同'
})
}
</
Button
>
</>
</>,
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
...
...
src/pages/transaction/purchaseOrder/readyDistributionOrder/index.tsx
View file @
71386912
...
...
@@ -90,6 +90,9 @@ const ReadyDistributionOrder:React.FC<ReadyDistributionOrderProps> = (props) =>
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/purchaseOrder/readyDistributionOrder/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -5,6 +5,7 @@ import { useIntl } from 'umi'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
import
{
postOrderBuyerTake
}
from
'@/services/OrderNewV2Api'
import
AuthButton
from
'@/components/AuthButton'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
export
const
useSelfTable
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
...
...
@@ -46,7 +47,9 @@ export const useSelfTable = () => {
key
:
'ctl'
,
render
:
(
text
,
record
)
=>
<
AuthButton
btnCode=
"readyDistributionOrder.lingqu"
>
<
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
.
orderId
)
}
>
{
intl
.
formatMessage
({
id
:
'purchaseOrder.lingqu'
,
defaultMessage
:
'领取'
})
}
</
Button
>
</
AuthButton
>
</
AuthButton
>,
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
src/pages/transaction/purchaseOrder/readyFileOrder/index.tsx
View file @
71386912
...
...
@@ -89,6 +89,9 @@ const FirstApprovedOrder:React.FC<FirstApprovedOrderProps> = (props) => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/purchaseOrder/readyFileOrder/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -4,6 +4,7 @@ import { baseOrderListColumns } from '../../constant'
import
{
history
,
useIntl
}
from
'umi'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
import
{
PurchaseOrderInsideWorkState
}
from
'@/constants/order'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
// 业务hooks
export
const
useSelfTable
=
()
=>
{
...
...
@@ -27,7 +28,9 @@ export const useSelfTable = () => {
record.interiorState === PurchaseOrderInsideWorkState.FILLING_ORDER && */
}
<
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'purchaseOrder.guidang'
,
defaultMessage
:
'归档'
})
}
</
Button
>
{
/* } */
}
</>
</>,
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
...
...
src/pages/transaction/purchaseOrder/readySubmitOrder/index.tsx
View file @
71386912
...
...
@@ -89,6 +89,9 @@ const ReadySubmitOrder:React.FC<ReadySubmitOrderProps> = (props) => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/purchaseOrder/readySubmitOrder/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -4,6 +4,7 @@ import { baseOrderListColumns } from '../../constant'
import
{
history
,
useIntl
}
from
'umi'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
import
AuthButton
from
'@/components/AuthButton'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
export
const
useSelfTable
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
...
...
@@ -20,7 +21,9 @@ export const useSelfTable = () => {
align
:
'center'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
render
:
(
text
,
record
)
=>
<
AuthButton
btnCode=
"readySubmitOrder.tijiao"
><
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
.
orderId
)
}
>
{
intl
.
formatMessage
({
id
:
'purchaseOrder.tijiaodingdan'
,
defaultMessage
:
'提交订单'
})
}
</
Button
></
AuthButton
>
render
:
(
text
,
record
)
=>
<
AuthButton
btnCode=
"readySubmitOrder.tijiao"
><
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
.
orderId
)
}
>
{
intl
.
formatMessage
({
id
:
'purchaseOrder.tijiaodingdan'
,
defaultMessage
:
'提交订单'
})
}
</
Button
></
AuthButton
>,
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
...
...
src/pages/transaction/purchaseOrder/secondApprovedOrder/index.tsx
View file @
71386912
...
...
@@ -89,6 +89,9 @@ const SecondApprovedOrder:React.FC<SecondApprovedOrderProps> = (props) => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/purchaseOrder/secondApprovedOrder/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -3,6 +3,7 @@ import { Button } from 'antd'
import
{
baseOrderListColumns
}
from
'../../constant'
import
{
history
,
useIntl
}
from
'umi'
import
AuthButton
from
'@/components/AuthButton'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
export
const
useSelfTable
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
...
...
@@ -21,7 +22,9 @@ export const useSelfTable = () => {
<
AuthButton
btnCode=
"secondApprovedOrder.tijiao"
>
<
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'purchaseOrder.tijiaoshenhe'
,
defaultMessage
:
'提交审核'
})
}
</
Button
>
</
AuthButton
>
</>
</>,
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
...
...
src/pages/transaction/saleOrder/firstApprovedOrder/index.tsx
View file @
71386912
...
...
@@ -88,6 +88,9 @@ const FirstApprovedOrder:React.FC<FirstApprovedOrderProps> = () => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/saleOrder/firstApprovedOrder/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -4,6 +4,7 @@ import { baseOrderListColumns } from '../../constant'
import
{
history
,
useIntl
}
from
'umi'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
import
AuthButton
from
'@/components/AuthButton'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
export
const
useSelfTable
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
...
...
@@ -31,7 +32,9 @@ export const useSelfTable = () => {
<
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'saleOrder.tijiaoshenhe'
,
defaultMessage
:
'提交审核'
})
}
</
Button
>
</
AuthButton
>
</>
}
},
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
src/pages/transaction/saleOrder/readyApprovedOrder/index.tsx
View file @
71386912
...
...
@@ -51,6 +51,9 @@ const ReadyApprovedOrder:React.FC<ReadyApprovedOrderProps> = () => {
}
},
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/saleOrder/readyApprovedOrder/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -3,6 +3,7 @@ import { Button } from 'antd'
import
{
baseOrderListColumns
}
from
'../../constant'
import
{
history
,
useIntl
}
from
'umi'
import
AuthButton
from
'@/components/AuthButton'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
export
const
useSelfTable
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
...
...
@@ -27,7 +28,9 @@ export const useSelfTable = () => {
<
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
.
orderId
)
}
>
{
intl
.
formatMessage
({
id
:
'saleOrder.tijiaoshenhe'
,
defaultMessage
:
'提交审核'
})
}
</
Button
>
</
AuthButton
>
</>
}
},
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
src/pages/transaction/saleOrder/readyConfirmOrder/index.tsx
View file @
71386912
...
...
@@ -52,6 +52,9 @@ const ReadyConfirmOrder:React.FC<ReadyConfirmOrderProps> = () => {
}
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/saleOrder/readyConfirmOrder/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -2,6 +2,7 @@ import { history, useIntl } from 'umi'
import
{
Button
}
from
'antd'
import
{
baseOrderListColumns
}
from
'../../constant'
import
AuthButton
from
'@/components/AuthButton'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
export
const
useSelfTable
=
()
=>
{
const
intl
=
useIntl
()
...
...
@@ -25,7 +26,9 @@ export const useSelfTable = () => {
<
Button
type=
'link'
onClick=
{
()
=>
handleConfirm
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'saleOrder.querendingdan'
,
defaultMessage
:
'确认订单'
})
}
</
Button
>
</
AuthButton
>
</>
}
},
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
src/pages/transaction/saleOrder/readyDistributionOrder/index.tsx
View file @
71386912
...
...
@@ -90,6 +90,9 @@ const ReadyDistributionOrder:React.FC<ReadyDistributionOrderProps> = () => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/saleOrder/readyDistributionOrder/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -5,6 +5,7 @@ import { useIntl } from 'umi'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
import
{
postOrderVendorTake
}
from
'@/services/OrderNewV2Api'
import
AuthButton
from
'@/components/AuthButton'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
export
const
useSelfTable
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
...
...
@@ -45,7 +46,9 @@ export const useSelfTable = () => {
align
:
'center'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
render
:
(
text
,
record
)
=>
<
AuthButton
btnCode=
"s.readyDistributionOrder.lingqu"
><
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
.
orderId
)
}
>
{
intl
.
formatMessage
({
id
:
'purchaseOrder.lingqu'
,
defaultMessage
:
'领取'
})
}
</
Button
></
AuthButton
>
render
:
(
text
,
record
)
=>
<
AuthButton
btnCode=
"s.readyDistributionOrder.lingqu"
><
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
.
orderId
)
}
>
{
intl
.
formatMessage
({
id
:
'purchaseOrder.lingqu'
,
defaultMessage
:
'领取'
})
}
</
Button
></
AuthButton
>,
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
src/pages/transaction/saleOrder/readyReturnDocument/index.tsx
View file @
71386912
...
...
@@ -90,6 +90,9 @@ const FirstApprovedOrder:React.FC<FirstApprovedOrderProps> = (props) => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/saleOrder/readyReturnDocument/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -3,6 +3,7 @@ import { Button } from 'antd'
import
{
baseOrderListColumns
}
from
'../../constant'
import
{
history
,
useIntl
}
from
'umi'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
// 业务hooks
export
const
useSelfTable
=
()
=>
{
...
...
@@ -20,6 +21,8 @@ export const useSelfTable = () => {
align
:
'center'
,
dataIndex
:
'ctl'
,
key
:
'ctl'
,
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
render
:
(
text
,
record
)
=>
// <>
// {
...
...
src/pages/transaction/saleOrder/secondApprovedOrder/index.tsx
View file @
71386912
...
...
@@ -89,6 +89,9 @@ const SecondApprovedOrder:React.FC<SecondApprovedOrderProps> = (props) => {
span
:
8
}
}
}
tableProps=
{
{
scroll
:
{
x
:
1200
},
}
}
/>
</
Card
>
</
PageHeaderWrapper
>
...
...
src/pages/transaction/saleOrder/secondApprovedOrder/model/useSelfTable.tsx
View file @
71386912
...
...
@@ -3,6 +3,7 @@ import { Button } from 'antd'
import
{
baseOrderListColumns
}
from
'../../constant'
import
{
history
,
useIntl
}
from
'umi'
import
AuthButton
from
'@/components/AuthButton'
import
{
COLUMNS_ACTION_WIDTH
}
from
'@/constants/table'
// 业务hooks, 待新增订单
export
const
useSelfTable
=
()
=>
{
...
...
@@ -29,7 +30,9 @@ export const useSelfTable = () => {
<
Button
type=
'link'
onClick=
{
()
=>
handleSubmit
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'saleOrder.tijiaoshenhe'
,
defaultMessage
:
'提交审核'
})
}
</
Button
>
</
AuthButton
>
</>
}
},
fixed
:
'right'
,
width
:
COLUMNS_ACTION_WIDTH
,
}
])
}
...
...
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