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
91735f79
Commit
91735f79
authored
Jun 11, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
2271a18f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
11 deletions
+17
-11
constant.ts
src/pages/transaction/_public/order/constant.ts
+2
-2
index.tsx
src/pages/transaction/components/orderPayModal/index.tsx
+4
-3
index.tsx
src/pages/transaction/purchaseOrder/index.tsx
+4
-1
index.tsx
...rder/orderCollect/components/materialModalTable/index.tsx
+3
-2
index.tsx
...Order/orderCollect/components/productModalTable/index.tsx
+3
-2
index.tsx
src/pages/transaction/saleOrder/index.tsx
+1
-1
No files found.
src/pages/transaction/_public/order/constant.ts
View file @
91735f79
...
...
@@ -96,10 +96,10 @@ export const tableListSchema: any = () => {
placeholder
:
'请输入订单摘要'
,
}
},
"
member
Name"
:
{
"
supplyMembers
Name"
:
{
type
:
'string'
,
"x-component-props"
:
{
placeholder
:
'请输入
采购
会员名称'
placeholder
:
'请输入
供应
会员名称'
}
},
"type"
:
{
...
...
src/pages/transaction/components/orderPayModal/index.tsx
View file @
91735f79
...
...
@@ -60,7 +60,7 @@ const formatting = (data, property) => {
nweData
[
i
]
=
nweData
[
i
].
map
(
item
=>
{
// 单独处理100账结 101月结
if
(
item
.
id
===
-
1
){
return
{
value
:
item
.
settlementWay
,
label
:
item
.
settlementWay
===
100
?
`账期
${
item
.
settlementDays
}
天`
:
`月结
${
item
.
settlementDate
}
号`
,
channel
:
item
.
id
}
return
{
value
:
item
.
settlementWay
,
label
:
item
.
settlementWay
===
100
?
`账期
${
item
.
settlementDays
}
天`
:
`月结
${
item
.
settlementDate
}
号`
,
channel
:
item
.
payType
}
}
else
{
return
{
value
:
item
.
id
,
label
:
item
.
way
,
channel
:
item
.
payType
}
}
...
...
@@ -86,7 +86,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
const
transformPayList
:
any
=
data
?
formatting
(
payList
,
"payType"
)
:
[]
/** 先隐藏账期月结 */
// delete transformPayList['-1']
//
console.log(transformPayList, 'trans')
console
.
log
(
transformPayList
,
'trans'
)
const
[
visible
,
setVisible
]
=
useState
(
false
)
const
[
checked
,
setChecked
]
=
useState
<
any
>
({})
const
[
current
,
setCurrent
]
=
useState
(
0
)
// 0选择方式 1线下支付方式 2授信支付 3余额支付 4微信支付 5货到付款 6支付宝 100账期 101月结 1000清除
...
...
@@ -331,7 +331,8 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
let
params
:
any
=
{
id
:
Number
(
id
),
paymentInformationId
:
PayInfoObj
.
id
,
payTypeId
:
checked
.
id
,
// 大于100为账期月结 id固定为-1
payTypeId
:
checked
.
id
>=
100
&&
-
1
,
payType
:
checked
.
channel
,
}
...
...
src/pages/transaction/purchaseOrder/index.tsx
View file @
91735f79
...
...
@@ -125,6 +125,9 @@ const PurchaseOrder: React.FC<PurchaseOrderProps> = (props) => {
/** 参照后台数据生成 */
const
renderOptionButton
=
(
record
:
any
)
=>
{
if
(
record
.
button
===
1
)
{
record
.
button
=
null
}
const
statusAndOperationList
=
{
'2'
:
[
'取消订单'
],
'3'
:
[
'售后'
],
...
...
@@ -242,7 +245,7 @@ const PurchaseOrder: React.FC<PurchaseOrderProps> = (props) => {
title
:
'当前id'
,
visible
:
false
,
},
r
eason
:
{
cancelR
eason
:
{
type
:
'textarea'
,
"x-component-props"
:
{
rows
:
4
,
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/materialModalTable/index.tsx
View file @
91735f79
...
...
@@ -162,9 +162,10 @@ const MaterialModalTable:React.FC<MaterialModalTableProps> = (props) => {
schemaAction
.
setFieldValue
(
'orderProductRequests'
,
addMaterialProcessField
(
rowSelectionCtl
.
selectRow
,
productData
))
confirmModal
&&
confirmModal
()
setVisible
(
false
)
}
else
{
message
.
error
(
res
.
message
)
}
// else {
// message.error(res.message)
// }
}
const
fetchMaterialList
=
(
values
)
=>
{
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/productModalTable/index.tsx
View file @
91735f79
...
...
@@ -173,9 +173,10 @@ const ProductModalTable:React.FC<ProductModalTableProps> = (props) => {
schemaAction
.
setFieldValue
(
'orderProductRequests'
,
await
filterProductDataById
(
productData
,
rowSelectionCtl
.
selectRow
))
confirmModal
&&
confirmModal
()
setVisible
(
false
)
}
else
{
message
.
error
(
res
.
message
)
}
// else {
// message.error(res.message)
// }
}
const
fetchProductList
=
(
values
)
=>
{
...
...
src/pages/transaction/saleOrder/index.tsx
View file @
91735f79
...
...
@@ -153,7 +153,7 @@ const SaleOrder: React.FC<SaleOrderProps> = (props) => {
title
:
'当前id'
,
visible
:
false
,
},
r
eason
:
{
cancelR
eason
:
{
type
:
'textarea'
,
"x-component-props"
:
{
rows
:
4
,
...
...
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