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
18323ee8
Commit
18323ee8
authored
Jun 11, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix: 修改采购询价BUG
parent
8b2f5f2c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
11 deletions
+17
-11
index.tsx
...saction/purchaseAbility/components/modalOperate/index.tsx
+4
-1
index.tsx
...ction/purchaseAbility/confirmOffer/offerInquire/index.tsx
+2
-0
columns.tsx
src/pages/transaction/purchaseAbility/constants/columns.tsx
+2
-2
index.tsx
...saction/purchaseAbility/purchaseInquiry/inquiry/index.tsx
+2
-0
index.ts
src/pages/transaction/purchaseAbility/schema/index.ts
+7
-8
No files found.
src/pages/transaction/purchaseAbility/components/modalOperate/index.tsx
View file @
18323ee8
...
@@ -9,6 +9,7 @@ import { Input, Radio, DatePicker, Checkbox } from '@formily/antd-components'
...
@@ -9,6 +9,7 @@ import { Input, Radio, DatePicker, Checkbox } from '@formily/antd-components'
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
import
{
isEmpty
}
from
'lodash'
;
const
actions
=
createFormActions
()
const
actions
=
createFormActions
()
const
{
onFieldChange$
}
=
FormEffectHooks
;
const
{
onFieldChange$
}
=
FormEffectHooks
;
...
@@ -148,7 +149,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
...
@@ -148,7 +149,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
}
}
}
}
/>
/>
<
Field
<
Field
name=
"
checkbox
"
name=
"
isNow
"
x
-
component=
"CheckboxGroup"
x
-
component=
"CheckboxGroup"
description=
"勾选后供应商不能再提交报价单"
description=
"勾选后供应商不能再提交报价单"
enum=
{
[{
label
:
'立即截止报价'
,
value
:
1
}]
}
enum=
{
[{
label
:
'立即截止报价'
,
value
:
1
}]
}
...
@@ -218,6 +219,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
...
@@ -218,6 +219,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
params
.
discardTime
=
new
Date
(
value
.
reasonTime
).
getTime
();
params
.
discardTime
=
new
Date
(
value
.
reasonTime
).
getTime
();
}
else
if
(
modalType
===
'date'
)
{
}
else
if
(
modalType
===
'date'
)
{
params
.
quotedPriceTime
=
new
Date
(
value
.
quotedPriceTime
).
getTime
();
params
.
quotedPriceTime
=
new
Date
(
value
.
quotedPriceTime
).
getTime
();
params
.
isNow
=
!
isEmpty
(
value
.
isNow
)
?
1
:
0
;
}
else
if
(
modalType
===
'next'
)
{
}
else
if
(
modalType
===
'next'
)
{
params
.
quotedPriceTime
=
new
Date
(
value
.
quotedPriceTime
).
getTime
();
params
.
quotedPriceTime
=
new
Date
(
value
.
quotedPriceTime
).
getTime
();
}
else
if
(
modalType
===
'planAudit'
)
{
}
else
if
(
modalType
===
'planAudit'
)
{
...
@@ -229,6 +231,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
...
@@ -229,6 +231,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
}
else
{
}
else
{
params
.
password
=
value
.
password
;
params
.
password
=
value
.
password
;
}
}
return
fetch
({
id
,
...
params
}).
then
(
res
=>
{
fetch
({
id
,
...
params
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
onOk
&&
onOk
()
onOk
&&
onOk
()
...
...
src/pages/transaction/purchaseAbility/confirmOffer/offerInquire/index.tsx
View file @
18323ee8
...
@@ -130,6 +130,8 @@ const OfferInquire = () => {
...
@@ -130,6 +130,8 @@ const OfferInquire = () => {
columns=
{
columns
}
columns=
{
columns
}
effects=
"purchaseInquiryNo"
effects=
"purchaseInquiryNo"
fetch=
{
PublicApi
.
getPurchaseConfirmQuotedPriceList
}
fetch=
{
PublicApi
.
getPurchaseConfirmQuotedPriceList
}
externalStatusFetch=
{
PublicApi
.
getPurchasePurchaseInquiryExternalStatusPurchase
}
interiorStatusFetch=
{
PublicApi
.
getPurchasePurchaseInquiryInteriorStatusPurchase
}
reload=
{
ref
}
reload=
{
ref
}
/>
/>
<
ModalOperate
<
ModalOperate
...
...
src/pages/transaction/purchaseAbility/constants/columns.tsx
View file @
18323ee8
...
@@ -31,7 +31,7 @@ export const EXTERNALLOGS: ColumnType<any>[] = [
...
@@ -31,7 +31,7 @@ export const EXTERNALLOGS: ColumnType<any>[] = [
title
:
'状态'
,
title
:
'状态'
,
key
:
'state'
,
key
:
'state'
,
dataIndex
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_text
:
any
,
_record
:
any
)
=>
<
Tag
color=
{
OFFTER_EXTERNALSTATE_COLOR
[
_text
]
}
>
{
OFFTER_EXTERNALSTATE
[
_text
]
}
</
Tag
>
render
:
(
_text
:
any
,
_record
:
any
)
=>
<
Tag
color=
{
OFFTER_EXTERNALSTATE_COLOR
[
_text
]
||
'default'
}
>
{
_record
.
stateName
}
</
Tag
>
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
...
@@ -77,7 +77,7 @@ export const INTERNALLOGS: ColumnType<any>[] = [
...
@@ -77,7 +77,7 @@ export const INTERNALLOGS: ColumnType<any>[] = [
title
:
'状态'
,
title
:
'状态'
,
key
:
'state'
,
key
:
'state'
,
dataIndex
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_text
:
any
,
_record
:
any
)
=>
<
Tag
color=
{
OFFTER_INTERNALSTATE_COLOR
[
_text
]
}
>
{
OFFTER_INTERNALSTATE
[
_text
]
}
</
Tag
>
render
:
(
_text
:
any
,
_record
:
any
)
=>
<
Tag
color=
{
OFFTER_INTERNALSTATE_COLOR
[
_text
]
||
'default'
}
>
{
_record
.
stateName
}
</
Tag
>
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/inquiry/index.tsx
View file @
18323ee8
...
@@ -88,6 +88,8 @@ const Inquiry = () => {
...
@@ -88,6 +88,8 @@ const Inquiry = () => {
columns=
{
columns
}
columns=
{
columns
}
effects=
"purchaseInquiryNo"
effects=
"purchaseInquiryNo"
fetch=
{
PublicApi
.
getPurchasePurchaseInquiryList
}
fetch=
{
PublicApi
.
getPurchasePurchaseInquiryList
}
externalStatusFetch=
{
PublicApi
.
getPurchasePurchaseInquiryExternalStatusPurchase
}
interiorStatusFetch=
{
PublicApi
.
getPurchasePurchaseInquiryInteriorStatusPurchase
}
reload=
{
ref
}
reload=
{
ref
}
/>
/>
<
ModalOperate
<
ModalOperate
...
...
src/pages/transaction/purchaseAbility/schema/index.ts
View file @
18323ee8
import
{
ISchema
}
from
'@formily/antd'
import
{
ISchema
}
from
'@formily/antd'
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
{
FILTEREXTERNALSTATE
,
FILTERINTERNALSTATE
,
FILTERCONFIRMINTERNALSTATE
}
from
'../constants'
/** 采购询价 - 需求单查询 */
/** 采购询价 - 需求单查询 */
...
@@ -69,7 +68,7 @@ export const INQUIRYDEMANDORDER_SCHEMA: ISchema = {
...
@@ -69,7 +68,7 @@ export const INQUIRYDEMANDORDER_SCHEMA: ISchema = {
width
:
160
width
:
160
}
}
},
},
enum
:
FILTEREXTERNALSTATE
enum
:
[]
},
},
interiorState
:
{
interiorState
:
{
type
:
'string'
,
type
:
'string'
,
...
@@ -79,7 +78,7 @@ export const INQUIRYDEMANDORDER_SCHEMA: ISchema = {
...
@@ -79,7 +78,7 @@ export const INQUIRYDEMANDORDER_SCHEMA: ISchema = {
width
:
160
width
:
160
}
}
},
},
enum
:
FILTERINTERNALSTATE
enum
:
[]
},
},
}
}
},
},
...
@@ -607,9 +606,9 @@ export const CONFIRMOFFERSERAH_SCHEMA: ISchema = {
...
@@ -607,9 +606,9 @@ export const CONFIRMOFFERSERAH_SCHEMA: ISchema = {
width
:
160
width
:
160
}
}
},
},
enum
:
FILTEREXTERNALSTATE
enum
:
[]
},
},
confirmI
nteriorState
:
{
i
nteriorState
:
{
type
:
'string'
,
type
:
'string'
,
"x-component-props"
:
{
"x-component-props"
:
{
placeholder
:
'内部状态'
,
placeholder
:
'内部状态'
,
...
@@ -617,7 +616,7 @@ export const CONFIRMOFFERSERAH_SCHEMA: ISchema = {
...
@@ -617,7 +616,7 @@ export const CONFIRMOFFERSERAH_SCHEMA: ISchema = {
width
:
160
width
:
160
}
}
},
},
enum
:
FILTERCONFIRMINTERNALSTATE
enum
:
[]
},
},
}
}
},
},
...
@@ -946,7 +945,7 @@ export const OFFERSERAH_SCHEMA: ISchema = {
...
@@ -946,7 +945,7 @@ export const OFFERSERAH_SCHEMA: ISchema = {
width
:
160
width
:
160
}
}
},
},
enum
:
FILTEREXTERNALSTATE
enum
:
[]
},
},
interiorState
:
{
interiorState
:
{
type
:
'string'
,
type
:
'string'
,
...
@@ -956,7 +955,7 @@ export const OFFERSERAH_SCHEMA: ISchema = {
...
@@ -956,7 +955,7 @@ export const OFFERSERAH_SCHEMA: ISchema = {
width
:
160
width
:
160
}
}
},
},
enum
:
FILTERINTERNALSTATE
enum
:
[]
},
},
}
}
},
},
...
...
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