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
709d5479
Commit
709d5479
authored
Sep 18, 2021
by
卢均锐
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
* 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
: fix:
parents
167b536f
abc2d074
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
28 deletions
+22
-28
index.tsx
src/pages/transaction/components/orderPayTabs/index.tsx
+15
-8
index.tsx
...er/orderCollectB2b/components/inquiryModalTable/index.tsx
+1
-1
index.tsx
src/pages/transaction/purchaseOrder/readyAddOrder/index.tsx
+1
-1
useReadyAddOrder.tsx
...on/purchaseOrder/readyAddOrder/model/useReadyAddOrder.tsx
+1
-3
ruleSetting.tsx
...s/transaction/transactionRules/components/ruleSetting.tsx
+2
-4
index.tsx
src/pages/transaction/transactionRules/index.tsx
+2
-11
No files found.
src/pages/transaction/components/orderPayTabs/index.tsx
View file @
709d5479
import
React
,
{
useContext
,
useEffect
,
useRef
,
useState
}
from
'react'
import
{
Row
,
Col
,
Modal
,
List
,
Table
,
Button
,
Form
,
Input
}
from
'antd'
import
{
history
}
from
'umi'
import
{
OrderDetailContext
}
from
'../../_public/order/context'
import
MellowCard
from
'@/components/MellowCard'
import
OverflowText
from
'@/components/OverflowText'
...
...
@@ -28,6 +29,7 @@ interface EditableCellProps {
dataIndex
:
string
;
record
:
any
;
handleSave
:
(
record
:
any
)
=>
void
;
formItemProps
:
any
,
}
const
EditableCell
:
React
.
FC
<
EditableCellProps
>
=
({
...
...
@@ -36,6 +38,7 @@ const EditableCell: React.FC<EditableCellProps> = ({
children
,
dataIndex
,
record
,
formItemProps
=
{},
handleSave
,
...
restProps
})
=>
{
...
...
@@ -68,7 +71,7 @@ const EditableCell: React.FC<EditableCellProps> = ({
if
(
editable
)
{
childNode
=
editing
?
(
<
Form
.
Item
style=
{
{
margin
:
0
,
width
:
14
0
}
}
style=
{
{
margin
:
0
,
width
:
record
.
width
||
8
0
}
}
name=
{
dataIndex
}
rules=
{
[
{
...
...
@@ -81,7 +84,7 @@ const EditableCell: React.FC<EditableCellProps> = ({
}
]
}
>
<
Input
type=
'number'
ref=
{
inputRef
}
onBlur=
{
save
}
onPressEnter=
{
save
}
/>
<
Input
type=
'number'
ref=
{
inputRef
}
onBlur=
{
save
}
onPressEnter=
{
save
}
{
...
formItemProps
}
/>
</
Form
.
Item
>
)
:
(
<
div
className=
"editable-cell-value-wrap"
style=
{
{
paddingRight
:
24
}
}
onClick=
{
toggleEdit
}
>
...
...
@@ -110,6 +113,9 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = () => {
const
processEnum
=
data
.
processEnum
const
payments
=
data
.
payments
.
sort
((
a
,
b
)
=>
a
.
batchNo
-
b
.
batchNo
)
// 是否可编辑比例
const
canEdit
=
history
.
location
.
pathname
.
indexOf
(
'/readyApprovedOrder/detail'
)
!==
-
1
useEffect
(()
=>
{
// 过滤支付信息 取第一个待支付或者未到账的id
if
(
payments
.
length
)
{
...
...
@@ -177,15 +183,15 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = () => {
key
:
'outerStatusName'
,
},
{
title
:
'支付比例'
,
title
:
'支付比例
(%)
'
,
key
:
'payRate'
,
dataIndex
:
'payRate'
,
formItem
:
'input'
,
editable
:
data
.
innerStatusName
===
'待提交审核'
,
width
:
80
,
formItemProps
:
{
suffix
:
'%'
,
},
editable
:
canEdit
,
//
width: 80,
//
formItemProps: {
//
suffix: '%',
//
},
},
{
title
:
'支付金额'
,
...
...
@@ -233,6 +239,7 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = () => {
editable
:
col
.
editable
,
dataIndex
:
col
.
dataIndex
,
title
:
col
.
title
,
formItemProps
:
col
.
formItemProps
,
handleSave
:
handleSave
,
}),
};
...
...
src/pages/transaction/purchaseOrder/orderCollectB2b/components/inquiryModalTable/index.tsx
View file @
709d5479
...
...
@@ -44,7 +44,7 @@ const InquiryModalTable:React.FC<InquiryModalTableProps> = (props) => {
const
item
=
rowSelectionCtl
.
selectRow
[
0
]
if
(
item
)
{
schemaAction
.
setFieldValue
(
'quoteNo'
,
item
.
quotationNo
)
schemaAction
.
setFieldValue
(
'quoteId'
,
item
.
i
nquiryListI
d
)
schemaAction
.
setFieldValue
(
'quoteId'
,
item
.
id
)
const
data
=
await
fetchOrderApi
.
getProductListByQuotationOrderId
({
id
:
item
.
inquiryListId
})
...
...
src/pages/transaction/purchaseOrder/readyAddOrder/index.tsx
View file @
709d5479
...
...
@@ -11,7 +11,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
Submit
from
'@/components/NiceForm/components/Submit'
import
{
useSelfTable
}
from
'./model/useReadyAddOrder'
import
{
OrderModalType
,
PurchaseOrderInsideWorkState
}
from
'@/constants/order'
import
{
OrderModalType
}
from
'@/constants/order'
import
{
useHttpRequest
}
from
'@/hooks/useHttpRequest'
import
DateRangePickerUnix
from
'@/components/NiceForm/components/DateRangePickerUnix'
import
'../index.less'
...
...
src/pages/transaction/purchaseOrder/readyAddOrder/model/useReadyAddOrder.tsx
View file @
709d5479
import
React
,
{
useRef
}
from
'react'
import
{
Button
,
Dropdown
,
Menu
}
from
'antd'
import
{
baseOrderListColumns
}
from
'../../constant'
import
{
PublicApi
}
from
'@/services/api'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
import
{
history
}
from
'umi'
import
{
CaretDownOutlined
}
from
'@ant-design/icons'
import
TableOperation
from
'@/components/TableOperation'
// 业务hooks, 待新增订单
...
...
@@ -30,7 +28,7 @@ export const useSelfTable = () => {
/** 参照后台数据生成 */
const
renderOptionButton
=
(
record
:
any
)
=>
{
const
buttonGroup
=
{
'提交'
:
true
,
'修改'
:
tru
e
,
'删除'
:
true
}
const
buttonGroup
=
{
'提交'
:
true
,
'修改'
:
record
.
showUpdat
e
,
'删除'
:
true
}
const
operationHandler
=
{
'提交'
:
()
=>
handleSubmit
(
record
.
orderId
),
...
...
src/pages/transaction/transactionRules/components/ruleSetting.tsx
View file @
709d5479
...
...
@@ -37,7 +37,6 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
const
{
id
,
preview
,
pageStatus
}
=
usePageStatus
()
...
...
@@ -103,7 +102,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
dataIndex
:
'priceType'
,
title
:
'商品定价'
,
key
:
'priceType'
,
render
:
(
text
:
any
,
reocrd
:
any
)
=>
{
render
:
(
text
)
=>
{
if
(
text
===
1
)
return
'现货价格'
else
if
(
text
===
2
)
...
...
@@ -168,7 +167,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
dataIndex
:
'priceType'
,
title
:
'商品定价'
,
key
:
'priceType'
,
render
:
(
text
:
any
,
reocrd
:
any
)
=>
{
render
:
(
text
)
=>
{
if
(
text
===
1
)
return
'现货价格'
else
if
(
text
===
2
)
...
...
@@ -401,7 +400,6 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
}
// 不是多次支付 隐藏支付配置
if
(
selectedObject
&&
selectedObject
[
'payTimes'
]
>
0
)
{
console
.
log
(
selectedObject
,
'ds'
)
setFieldState
(
"payments"
,
state
=>
{
state
.
visible
=
true
})
...
...
src/pages/transaction/transactionRules/index.tsx
View file @
709d5479
...
...
@@ -22,7 +22,7 @@ const TransactionRules: React.FC<{}> = () => {
const
fetchData
=
(
params
:
any
)
=>
{
if
(
!
params
?.
name
)
delete
params
.
name
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
)
=>
{
PublicApi
.
getOrderTradeProcessPage
(
params
).
then
(
res
=>
{
const
{
data
}
=
res
resolve
(
data
)
...
...
@@ -56,7 +56,7 @@ const TransactionRules: React.FC<{}> = () => {
title
:
'操作时间'
,
dataIndex
:
'createTime'
,
key
:
'createTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
text
&&
moment
(
text
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
render
:
(
text
)
=>
text
&&
moment
(
text
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
{
title
:
'状态'
,
...
...
@@ -68,7 +68,6 @@ const TransactionRules: React.FC<{}> = () => {
<
Popconfirm
title=
"确定要执行这个操作?"
onConfirm=
{
()
=>
confirm
(
record
)
}
onCancel=
{
cancel
}
okText=
"是"
cancelText=
"否"
>
...
...
@@ -91,7 +90,6 @@ const TransactionRules: React.FC<{}> = () => {
<
Popconfirm
title=
"确定要执行这个操作?"
onConfirm=
{
()
=>
handelDelete
(
record
)
}
onCancel=
{
cancel
}
okText=
"是"
cancelText=
"否"
>
...
...
@@ -112,10 +110,6 @@ const TransactionRules: React.FC<{}> = () => {
})
}
const
cancel
=
()
=>
{
console
.
log
(
'cancel'
)
}
const
handelDelete
=
(
record
:
any
)
=>
{
PublicApi
.
postOrderTradeProcessDelete
({
processId
:
record
.
processId
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
...
...
@@ -148,9 +142,6 @@ const TransactionRules: React.FC<{}> = () => {
expressionScope=
{
{
Actions
,
}
}
effects=
{
(
$
,
actions
)
=>
{
}
}
schema=
{
{
type
:
'object'
,
properties
:
{
...
...
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