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
linweijiong
jinfa-platform
Commits
ac146745
Commit
ac146745
authored
Aug 06, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: srm订单去除供方库存显示,处理招标专家评标分数提交异常
parent
a636e27c
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
115 additions
and
104 deletions
+115
-104
index.ts
src/components/ModalTable/schema/index.ts
+18
-10
modal.ts
...urement/callForBids/addRemarkBidCommittee/schema/modal.ts
+1
-1
index.tsx
...rBids/readyExpertRemark/components/onlineRemark/index.tsx
+5
-1
index.tsx
...ds/readyExpertRemark/components/remarkTableCell/index.tsx
+3
-2
index.tsx
...rocurement/callForBids/readyExpertRemark/detail/index.tsx
+35
-27
index.tsx
src/pages/transaction/components/orderDeleveRecord/index.tsx
+0
-6
index.tsx
...ts/orderHandDeleved/components/productTableCell/index.tsx
+1
-1
index.ts
...transaction/components/orderHandDeleved/constant/index.ts
+1
-1
useProductTable.tsx
...ion/components/orderHandDeleved/model/useProductTable.tsx
+1
-1
index.tsx
src/pages/transaction/components/orderProductTable/index.tsx
+6
-6
index.tsx
src/pages/transaction/components/orderSaleRecord/index.tsx
+0
-6
index.tsx
...es/transaction/components/saleOrderProductTable/index.tsx
+6
-6
index.less
src/pages/transaction/purchaseOrder/index.less
+8
-8
index.tsx
...rder/orderCollect/components/materialModalTable/index.tsx
+6
-6
index.tsx
...transaction/purchaseOrder/orderCollect/constant/index.tsx
+6
-6
index.tsx
...r/orderCollectSrm/components/contractModalTable/index.tsx
+0
-1
index.tsx
...r/orderCollectSrm/components/materialModalTable/index.tsx
+12
-9
index.tsx
...nsaction/purchaseOrder/orderCollectSrm/constant/index.tsx
+6
-6
No files found.
src/components/ModalTable/schema/index.ts
View file @
ac146745
...
...
@@ -239,7 +239,7 @@ export const addOrderModalSchema: ISchema = {
'x-component'
:
'ModalSearch'
,
'x-component-props'
:
{
placeholder
:
'请输入物料编号'
,
align
:
'flex-
lef
t'
,
align
:
'flex-
star
t'
,
},
},
[
FORM_FILTER_PATH
]:
{
...
...
@@ -249,7 +249,7 @@ export const addOrderModalSchema: ISchema = {
rowStyle
:
{
flexWrap
:
'nowrap'
,
style
:
{
marginRight
:
0
marginRight
:
0
,
}
},
colStyle
:
{
...
...
@@ -265,9 +265,8 @@ export const addOrderModalSchema: ISchema = {
},
type
:
{
type
:
'string'
,
"x-component"
:
'SearchSelect'
,
"x-component-props"
:
{
placeholder
:
'
物料名称
'
,
placeholder
:
'
规格型号
'
,
}
},
submit
:
{
...
...
@@ -1049,12 +1048,21 @@ export const contractSchema: ISchema = {
}
},
},
"[startTime,endTime]"
:
{
type
:
'string'
,
"x-component"
:
"dateSelect"
,
"x-component-props"
:
{
placeholder
:
'合同有效时间'
,
}
// "[startTime,endTime]": {
// type: 'string',
// "x-component": "dateSelect",
// "x-component-props": {
// placeholder: '合同有效时间',
// }
// },
"[startTime, endTime]"
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
'有效开始时间'
,
'有效结束时间'
],
style
:
{
width
:
160
,
},
},
},
submit
:
{
"x-component"
:
'Submit'
,
...
...
src/pages/procurement/callForBids/addRemarkBidCommittee/schema/modal.ts
View file @
ac146745
...
...
@@ -66,7 +66,7 @@ export const selectBidSchema: ISchema = {
},
colStyle
:
{
marginRight
:
20
}
}
,
},
properties
:
{
projectName
:
{
...
...
src/pages/procurement/callForBids/readyExpertRemark/components/onlineRemark/index.tsx
View file @
ac146745
...
...
@@ -32,6 +32,10 @@ const OnlineRemark: React.FC<RemarkBidReportProps> = ({cardTitle, addSchemaActio
// console.log(v.target.value, index)
}
const
handleSubmit
=
(
values
)
=>
{
onConfirm
&&
onConfirm
(
values
)
}
const
onBlurInput
=
(
v
,
index
)
=>
{
const
hasValues
=
addSchemaAction
.
getFieldValue
(
'evaluationTenderList'
)
if
(
hasValues
.
length
)
{
...
...
@@ -103,7 +107,7 @@ const OnlineRemark: React.FC<RemarkBidReportProps> = ({cardTitle, addSchemaActio
}
}
}
}
onSubmit=
{
onConfirm
}
onSubmit=
{
handleSubmit
}
effects=
{
(
$
,
ctx
)
=>
{
$
(
'onFormMount'
).
subscribe
(
async
()
=>
{
$
(
'onFieldValueChange'
,
'evaluationTenderList'
).
subscribe
(
state
=>
{
...
...
src/pages/procurement/callForBids/readyExpertRemark/components/remarkTableCell/index.tsx
View file @
ac146745
...
...
@@ -50,11 +50,12 @@ export const RemarkTableCell:React.FC<TableCellProps> = ({
const
save
=
async
e
=>
{
try
{
const
values
=
await
form
.
validateFields
()
console
.
log
(
values
,
'vvv'
)
console
.
log
(
values
,
e
,
'vvv'
)
values
.
totalScore
=
Object
.
values
(
values
).
reduce
((
a
,
b
)
=>
Number
(
a
)
+
Number
(
b
),
0
)
handleSave
({
...
record
,
...
values
})
}
catch
(
errInfo
)
{
console
.
log
(
'Save failed:'
,
errInfo
)
handleSave
({
...
record
,
...
errInfo
.
values
})
}
};
...
...
@@ -81,7 +82,7 @@ export const RemarkTableCell:React.FC<TableCellProps> = ({
<
Form
.
Item
style=
{
{
margin
:
0
}
}
name=
{
dataIndex
}
initialValue=
{
record
[
dataIndex
]
||
''
}
initialValue=
{
record
[
dataIndex
]
||
null
}
rules=
{
[
{
required
:
true
,
...
...
src/pages/procurement/callForBids/readyExpertRemark/detail/index.tsx
View file @
ac146745
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
{
Button
,
Row
,
Col
,
Radio
,
Table
}
from
'antd'
;
import
{
Button
,
Row
,
Col
,
Radio
,
Table
,
message
}
from
'antd'
;
import
OrderDetailWrapper
from
'@/pages/transaction/components/OrderDetailWrapper'
;
import
PreLoading
from
'@/components/PreLoading'
;
import
{
RemarkDetailContext
}
from
'@/pages/procurement/_public/bid/context'
;
...
...
@@ -54,37 +54,45 @@ const ReadyExpertRemarkDetail: React.FC = () => {
}
}).
filter
(
_
=>
Boolean
(
_
))
let
evaluationList
=
[]
for
(
let
i
=
0
;
i
<
_value
.
length
;
i
++
)
{
let
item
=
_value
[
i
]
let
keys
=
Object
.
keys
(
item
)
for
(
let
j
=
0
;
j
<
keys
.
length
;
j
++
)
{
let
_item
=
keys
[
j
]
if
(
_item
.
indexOf
(
'score'
)
!==
-
1
)
{
let
contentId
=
_item
.
split
(
'_'
)[
1
]
let
content
=
templateContentList
.
filter
(
_
=>
_
.
id
===
Number
(
contentId
))[
0
]
// if(content?.id) delete content.id
evaluationList
.
push
({
inviteTenderMemberId
:
item
.
memberId
,
inviteTenderMemberName
:
item
.
memberName
,
score
:
Number
(
item
[
_item
]),
...
content
,
})
try
{
let
evaluationList
=
[]
for
(
let
i
=
0
;
i
<
_value
.
length
;
i
++
)
{
let
item
=
_value
[
i
]
let
keys
=
Object
.
keys
(
item
)
for
(
let
j
=
0
;
j
<
keys
.
length
;
j
++
)
{
let
_item
=
keys
[
j
]
if
(
_item
.
indexOf
(
'score'
)
!==
-
1
)
{
let
contentId
=
_item
.
split
(
'_'
)[
1
]
let
content
=
templateContentList
.
filter
(
_
=>
_
.
id
===
Number
(
contentId
))[
0
]
// 判断分值是否有null或者""
if
(
item
[
_item
]
===
null
||
item
[
_item
]
===
""
)
{
throw
"请正确填写评标分值"
}
evaluationList
.
push
({
inviteTenderMemberId
:
item
.
memberId
,
inviteTenderMemberName
:
item
.
memberName
,
score
:
Number
(
item
[
_item
]),
...
content
,
})
}
}
}
}
evaluationList
=
evaluationList
.
map
(
item
=>
{
delete
item
.
id
return
item
})
evaluationList
=
evaluationList
.
map
(
item
=>
{
delete
item
.
id
return
item
})
const
res
=
await
PublicApi
.
postPurchaseExpertExtractRecordEvaluationTender
({
id
,
evaluationTenderList
:
evaluationList
.
filter
(
Boolean
),
evaluationTenderRecommendList
})
const
res
=
await
PublicApi
.
postPurchaseExpertExtractRecordEvaluationTender
({
id
,
evaluationTenderList
:
evaluationList
.
filter
(
Boolean
),
evaluationTenderRecommendList
})
if
(
res
.
code
===
1000
)
{
history
.
goBack
()
}
if
(
res
.
code
===
1000
)
{
history
.
goBack
()
}
console
.
log
(
evaluationTenderRecommendList
,
evaluationList
)
console
.
log
(
evaluationTenderRecommendList
,
evaluationList
)
}
catch
(
error
)
{
console
.
log
(
error
)
return
message
.
error
(
error
)
}
}
return
(
...
...
src/pages/transaction/components/orderDeleveRecord/index.tsx
View file @
ac146745
...
...
@@ -306,12 +306,6 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
render
:
(
t
,
r
)
=>
t
?
`
${
t
}
/
${
r
.
quotedName
||
''
}
/
${
r
.
quotedCategory
||
''
}
/
${
r
.
quotedBrand
||
''
}
`
:
''
},
{
title
:
'单价'
,
dataIndex
:
'price'
,
align
:
'center'
,
key
:
'price'
,
},
{
title
:
'采购数量'
,
dataIndex
:
'quantity'
,
align
:
'center'
,
...
...
src/pages/transaction/components/orderHandDeleved/components/productTableCell/index.tsx
View file @
ac146745
...
...
@@ -66,7 +66,7 @@ export const ProductTableCell:React.FC<ProductTableCellProps> = ({
ref=
{
formItemRef
}
onChange=
{
save
}
{
...
formItemProps
}
id=
{
dataIndex
+
record
.
i
d
}
id=
{
dataIndex
+
record
.
productI
d
}
className=
"delivery_amount_input"
/>
}
...
...
src/pages/transaction/components/orderHandDeleved/constant/index.ts
View file @
ac146745
...
...
@@ -68,7 +68,7 @@ export const schema: ISchema = {
type
:
'array'
,
"x-component"
:
'MultTable'
,
"x-component-props"
:
{
rowKey
:
'
sku
Id'
,
rowKey
:
'
product
Id'
,
columns
:
"{{productColumns}}"
,
components
:
"{{productComponents}}"
,
// expandable: "{{productChildren}}",
...
...
src/pages/transaction/components/orderHandDeleved/model/useProductTable.tsx
View file @
ac146745
...
...
@@ -18,7 +18,7 @@ export const useProductTable = (ctx: ISchemaFormActions | ISchemaFormAsyncAction
const
handleSave
=
row
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
newData
=
[...
ctx
.
getFieldValue
(
'products'
)];
const
index
=
newData
.
findIndex
(
item
=>
row
.
skuId
===
item
.
sku
Id
);
const
index
=
newData
.
findIndex
(
item
=>
row
.
productId
===
item
.
product
Id
);
const
item
=
newData
[
index
];
newData
.
splice
(
index
,
1
,
{
...
item
,
...
...
src/pages/transaction/components/orderProductTable/index.tsx
View file @
ac146745
...
...
@@ -350,12 +350,12 @@ const OrderProductTable:React.FC<OrderProductTableProps> = ({editable}) => {
align
:
'left'
,
key
:
'price'
,
},
{
title
:
'供方库存'
,
dataIndex
:
'stock'
,
align
:
'center'
,
key
:
'stock'
,
},
//
{
//
title: '供方库存',
//
dataIndex: 'stock',
//
align: 'center',
//
key: 'stock',
//
},
{
title
:
'采购数量'
,
dataIndex
:
'quantity'
,
...
...
src/pages/transaction/components/orderSaleRecord/index.tsx
View file @
ac146745
...
...
@@ -310,12 +310,6 @@ const OrderSaleRecord:React.FC<OrderSaleRecordProps> = (props) => {
render
:
(
t
,
r
)
=>
t
?
`
${
t
}
/
${
r
.
quotedName
||
''
}
/
${
r
.
quotedCategory
||
''
}
/
${
r
.
quotedBrand
||
''
}
`
:
''
},
{
title
:
'单价'
,
dataIndex
:
'price'
,
align
:
'center'
,
key
:
'price'
,
},
{
title
:
'采购数量'
,
dataIndex
:
'quantity'
,
align
:
'center'
,
...
...
src/pages/transaction/components/saleOrderProductTable/index.tsx
View file @
ac146745
...
...
@@ -512,12 +512,12 @@ const SaleOrderProductTable:React.FC<OrderProductTableProps> = (props) => {
align
:
'left'
,
key
:
'price'
,
},
{
title
:
'供方库存'
,
dataIndex
:
'stock'
,
align
:
'center'
,
key
:
'stock'
,
},
//
{
//
title: '供方库存',
//
dataIndex: 'stock',
//
align: 'center',
//
key: 'stock',
//
},
{
title
:
'采购数量'
,
dataIndex
:
'quantity'
,
...
...
src/pages/transaction/purchaseOrder/index.less
View file @
ac146745
// @统一处理 业务表格内不嵌套NiceForm组件的高级筛选 间距异常问题
.god-schema-form {
& > .ant-form-item {
margin-bottom: 0 !important;
}
& > .ant-row-end {
margin-top: 24px !important;
}
}
//
.god-schema-form {
//
& > .ant-form-item {
//
margin-bottom: 0 !important;
//
}
//
& > .ant-row-end {
//
margin-top: 24px !important;
//
}
//
}
src/pages/transaction/purchaseOrder/orderCollect/components/materialModalTable/index.tsx
View file @
ac146745
...
...
@@ -62,12 +62,12 @@ export const materialColumns: any[] = [
align
:
'center'
,
key
:
'contractFreeCount'
},
{
title
:
'供方库存'
,
dataIndex
:
'supplierInventory'
,
align
:
'center'
,
key
:
'supplierInventory'
},
//
{
//
title: '供方库存',
//
dataIndex: 'supplierInventory',
//
align: 'center',
//
key: 'supplierInventory'
//
},
]
const
MaterialModalTable
:
React
.
FC
<
MaterialModalTableProps
>
=
(
props
)
=>
{
...
...
src/pages/transaction/purchaseOrder/orderCollect/constant/index.tsx
View file @
ac146745
...
...
@@ -550,12 +550,12 @@ export const materialInfoColumns: any[] = [
align
:
'left'
,
key
:
'price'
,
},
{
title
:
'供方库存'
,
dataIndex
:
'inventory'
,
align
:
'center'
,
key
:
'inventory'
,
},
//
{
//
title: '供方库存',
//
dataIndex: 'inventory',
//
align: 'center',
//
key: 'inventory',
//
},
{
title
:
'采购数量'
,
dataIndex
:
'purchaseCount'
,
...
...
src/pages/transaction/purchaseOrder/orderCollectSrm/components/contractModalTable/index.tsx
View file @
ac146745
...
...
@@ -97,7 +97,6 @@ const ContractModalTable:React.FC<ContractModalTableProps> = (props) => {
schemaAction
.
setFieldValue
(
'vendorMemberId'
,
item
.
partyBMemberId
)
schemaAction
.
setFieldValue
(
'vendorRoleId'
,
item
.
partyBRoleId
)
schemaAction
.
setFieldValue
(
'digest'
,
item
.
contractAbstract
)
// schemaAction.setFieldValue('contractId', item.id)
}
confirmModal
&&
confirmModal
()
setVisible
(
false
)
...
...
src/pages/transaction/purchaseOrder/orderCollectSrm/components/materialModalTable/index.tsx
View file @
ac146745
...
...
@@ -2,9 +2,6 @@ import React, { useEffect } from 'react'
import
ModalTable
,
{
ModalTableProps
}
from
'@/components/ModalTable'
import
{
fetchOrderApi
}
from
'../../apis'
import
{
ISchemaFormActions
,
ISchemaFormAsyncActions
}
from
'@formily/antd'
import
{
PublicApi
}
from
'@/services/api'
import
{
EnvironmentOutlined
}
from
'@ant-design/icons'
import
{
Popover
,
Space
,
Row
,
message
}
from
'antd'
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
addContractOrderModalSchema
}
from
'@/components/ModalTable/schema'
...
...
@@ -33,6 +30,12 @@ export const materialColumns: any[] = [
key
:
'materielNo'
,
},
{
title
:
'规格型号'
,
dataIndex
:
'type'
,
align
:
'center'
,
key
:
'type'
,
},
{
title
:
'物料名称'
,
dataIndex
:
'materielName'
,
align
:
'center'
,
...
...
@@ -62,12 +65,12 @@ export const materialColumns: any[] = [
align
:
'center'
,
key
:
'contractFreeCount'
},
{
title
:
'供方库存'
,
dataIndex
:
'supplierInventory'
,
align
:
'center'
,
key
:
'supplierInventory'
},
//
{
//
title: '供方库存',
//
dataIndex: 'supplierInventory',
//
align: 'center',
//
key: 'supplierInventory'
//
},
]
const
MaterialModalTable
:
React
.
FC
<
MaterialModalTableProps
>
=
(
props
)
=>
{
...
...
src/pages/transaction/purchaseOrder/orderCollectSrm/constant/index.tsx
View file @
ac146745
...
...
@@ -350,12 +350,12 @@ export const materialInfoColumns: any[] = [
align
:
'left'
,
key
:
'price'
,
},
{
title
:
'供方库存'
,
dataIndex
:
'stock'
,
align
:
'center'
,
key
:
'stock'
,
},
//
{
//
title: '供方库存',
//
dataIndex: 'stock',
//
align: 'center',
//
key: 'stock',
//
},
{
title
:
'采购数量'
,
dataIndex
:
'quantity'
,
...
...
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