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
e21b703c
Commit
e21b703c
authored
Aug 13, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 品类添加排序输入
parent
f63d6b1f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
15 deletions
+24
-15
index.ts
src/pages/classAndProperty/class/schema/index.ts
+10
-3
index.tsx
src/pages/commodity/products/index.tsx
+1
-1
index.tsx
src/pages/procurement/components/bidParticulars/index.tsx
+10
-5
batchAddRepository.tsx
src/pages/repositories/batchAddRepository.tsx
+0
-3
BatchPositionSetting.tsx
src/pages/repositories/components/BatchPositionSetting.tsx
+1
-1
index.tsx
...r/orderCollectSrm/components/materialModalTable/index.tsx
+1
-1
index.tsx
...nsaction/purchaseOrder/orderCollectSrm/constant/index.tsx
+1
-1
No files found.
src/pages/classAndProperty/class/schema/index.ts
View file @
e21b703c
...
...
@@ -70,10 +70,18 @@ export const classSchema: ISchema = {
},
}
}
}
},
sort
:
{
type
:
'number'
,
title
:
'品类排序'
,
required
:
true
,
"x-component-props"
:
{
placeholder
:
'请输入品类排序'
},
},
}
},
}
}
}
}
\ No newline at end of file
}
src/pages/commodity/products/index.tsx
View file @
e21b703c
...
...
@@ -357,7 +357,7 @@ const Products: React.FC<{}> = () => {
memberId
:
getAuth
().
memberId
,
memberRoleId
:
getAuth
().
memberRoleId
}).
then
(
res
=>
{
if
(
res
.
data
.
id
){
if
(
res
.
data
?
.
id
){
setShopId
(
res
.
data
.
id
)
setCheckedValues
(
values
)
}
else
{
...
...
src/pages/procurement/components/bidParticulars/index.tsx
View file @
e21b703c
...
...
@@ -37,6 +37,7 @@ const BidParticulars: React.FC<BidParticularsProps> = ({cardTitle}) => {
type
:
item
.
inviteTenderMateriel
.
type
,
unitName
:
item
.
inviteTenderMateriel
.
unitName
,
awardTenderRatio
:
item
.
awardTenderRatio
,
isAwardTender
:
item
.
isAwardTender
,
commodityId
:
item
.
commodityId
,
commodityName
:
item
.
commodityName
,
commoditySkuId
:
item
.
commoditySkuId
,
...
...
@@ -45,8 +46,12 @@ const BidParticulars: React.FC<BidParticularsProps> = ({cardTitle}) => {
const
[
tableColumn
,
setTableColumn
]
=
useState
<
any
>
(()
=>
{
let
totalMoney
=
0
;
data
.
submitTender
?
data
.
submitTender
.
submitTenderMateriel
.
map
(
item
=>
{
totalMoney
+=
item
.
price
*
item
.
inviteTenderMateriel
.
count
data
.
submitTender
?
data
.
submitTender
.
submitTenderMateriel
.
forEach
(
item
=>
{
if
(
cardTitle
===
'中标明细'
)
{
totalMoney
+=
item
.
price
*
item
.
inviteTenderMateriel
.
count
*
Number
(
item
.
awardTenderRatio
)
/
100
}
else
{
totalMoney
+=
item
.
price
*
item
.
inviteTenderMateriel
.
count
}
})
:
[]
let
tempCol
:
any
=
[...
columns
]
// 中标数量
...
...
@@ -60,10 +65,10 @@ const BidParticulars: React.FC<BidParticularsProps> = ({cardTitle}) => {
}
// 总计
tempCol
[
tempCol
.
length
]
=
{
title
:
<
span
>
金额(含税)
<
br
/>
合计: ¥
{
totalMoney
}
</
span
>,
title
:
<
span
>
{
cardTitle
===
'中标明细'
?
'中标金额(含税)'
:
'金额(含税)'
}
<
br
/>
合计: ¥
{
totalMoney
.
toFixed
(
2
)
}
</
span
>,
dataIndex
:
'money'
,
key
:
'money'
,
render
:
(
t
,
r
)
=>
`¥
${
Number
((
r
.
price
*
r
.
count
).
toFixed
(
2
))}
`
render
:
(
t
,
r
)
=>
cardTitle
===
'中标明细'
?
`¥
${
Number
((
r
.
price
*
Number
(
r
.
awardTenderRatio
)
/
100
*
r
.
count
).
toFixed
(
2
))}
`
:
`¥
${
Number
((
r
.
price
*
r
.
count
).
toFixed
(
2
))}
`
}
return
tempCol
})
...
...
@@ -149,7 +154,7 @@ const BidParticulars: React.FC<BidParticularsProps> = ({cardTitle}) => {
}
}
}
}
dataSource=
{
cardTitle
===
'中标明细'
?
tableData
.
filter
(
item
=>
item
.
awardTenderRatio
)
:
tableData
}
dataSource=
{
cardTitle
===
'中标明细'
?
tableData
.
filter
(
item
=>
item
.
isAwardTender
)
:
tableData
}
rowKey=
"id"
pagination=
{
{
size
:
"small"
}
}
/>
...
...
src/pages/repositories/batchAddRepository.tsx
View file @
e21b703c
...
...
@@ -9,7 +9,6 @@ import ReutrnEle from '@/components/ReturnEle';
import
'./index.less'
import
{
batchRepositDetailSchema
}
from
'./schema'
import
{
createFormActions
}
from
'@formily/antd'
import
{
omit
}
from
'@/utils'
import
{
PublicApi
}
from
'@/services/api'
import
{
usePageStatus
,
PageStatus
}
from
'@/hooks/usePageStatus'
import
BatchPositionSetting
from
'./components/BatchPositionSetting'
...
...
@@ -18,8 +17,6 @@ const addSchemaAction = createFormActions()
const
BatchAddRepository
:
React
.
FC
<
{}
>
=
(
props
)
=>
{
const
{
id
,
preview
,
pageStatus
}
=
usePageStatus
()
...
...
src/pages/repositories/components/BatchPositionSetting.tsx
View file @
e21b703c
...
...
@@ -131,7 +131,7 @@ const BatchPositionSetting:React.FC<BatchPositionSettingProps> = (props) => {
// 商品选择后的表格
const
handleDeleteProductTable
=
(
record
)
=>
{
const
value
=
addSchemaAction
.
getFieldValue
(
'commodityList'
)
const
res
=
value
.
filter
((
item
)
=>
item
.
id
!=
id
);
const
res
=
value
.
filter
((
item
)
=>
item
.
id
!=
record
.
id
);
addSchemaAction
.
setFieldValue
(
'commodityList'
,
res
)
}
...
...
src/pages/transaction/purchaseOrder/orderCollectSrm/components/materialModalTable/index.tsx
View file @
e21b703c
...
...
@@ -100,7 +100,7 @@ const MaterialModalTable:React.FC<MaterialModalTableProps> = (props) => {
temp
.
brand
=
v
.
brand
;
temp
.
unit
=
v
.
unit
;
temp
.
relevanceProductId
=
v
.
associatedDataId
;
temp
.
relevanceProductName
=
v
.
associated
Goods
;
temp
.
relevanceProductName
=
v
.
associated
MaterielName
;
temp
.
relevanceProductNo
=
v
.
associatedMaterielNo
;
temp
.
relevanceProductType
=
v
.
associatedType
;
temp
.
relevanceProductCategory
=
v
.
associatedCategory
;
...
...
src/pages/transaction/purchaseOrder/orderCollectSrm/constant/index.tsx
View file @
e21b703c
...
...
@@ -325,7 +325,7 @@ export const materialInfoColumns: any[] = [
dataIndex
:
'relevanceProductId'
,
align
:
'center'
,
key
:
'relevanceProductId'
,
render
:
(
t
,
r
)
=>
t
?
`
${
t
}
/
${
r
.
relevanceProductName
||
''
}
/
${
r
.
relevanceProduct
Spec
||
''
}
/
${
r
.
relevanceProductCategory
||
''
}
/
${
r
.
relevanceProductBrand
||
''
}
`
:
''
render
:
(
t
,
r
)
=>
t
?
`
${
t
}
/
${
r
.
relevanceProductName
||
''
}
/
${
r
.
relevanceProduct
Type
||
''
}
/
${
r
.
relevanceProductCategory
||
''
}
/
${
r
.
relevanceProductBrand
||
''
}
`
:
''
},
{
title
:
'单价'
,
...
...
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