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
311517b2
Commit
311517b2
authored
Nov 15, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
ca9a72ee
50d9b8de
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
81 additions
and
71 deletions
+81
-71
index.tsx
...cation/exchangePrSubmit/components/ExchangeForm/index.tsx
+2
-2
index.tsx
...pplication/repairPrSubmit/components/RepairForm/index.tsx
+2
-2
index.tsx
...pplication/returnPrSubmit/components/ReturnForm/index.tsx
+2
-2
schema.tsx
...Coupon/merchantCouponQuery/components/EditForm/schema.tsx
+3
-3
schema.tsx
...erchantCouponUnsubmitted/components/CouponForm/schema.tsx
+5
-5
index.tsx
...es/transaction/purchaseAbility/components/table/index.tsx
+29
-18
basicInfo.tsx
...ility/demandPlan/demandPlanAdded/components/basicInfo.tsx
+17
-1
basic.tsx
...seAbility/purchaseInquiry/addInquiry/components/basic.tsx
+1
-1
condition.tsx
...ility/purchaseInquiry/addInquiry/components/condition.tsx
+6
-6
index.tsx
...urchaseAbility/purchaseInquiry/addInquiry/modal/index.tsx
+2
-1
demandPlan.ts
src/pages/transaction/purchaseAbility/schema/demandPlan.ts
+2
-5
index.ts
src/pages/transaction/purchaseAbility/schema/index.ts
+8
-20
onlineBid.ts
src/pages/transaction/purchaseAbility/schema/onlineBid.ts
+0
-0
purchaseBid.ts
src/pages/transaction/purchaseAbility/schema/purchaseBid.ts
+2
-5
No files found.
src/pages/afterService/exchangeApplication/exchangePrSubmit/components/ExchangeForm/index.tsx
View file @
311517b2
...
...
@@ -261,11 +261,11 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
},
{
title
:
'品类'
,
dataIndex
:
!
isMateriel
?
'category'
:
'quotedC
ategory'
,
dataIndex
:
'c
ategory'
,
},
{
title
:
'品牌'
,
dataIndex
:
!
isMateriel
?
'brand'
:
'quotedB
rand'
,
dataIndex
:
'b
rand'
,
},
{
title
:
'单位'
,
...
...
src/pages/afterService/repairApplication/repairPrSubmit/components/RepairForm/index.tsx
View file @
311517b2
...
...
@@ -192,11 +192,11 @@ const RepairForm: React.FC<BillsFormProps> = ({
},
{
title
:
'品类'
,
dataIndex
:
!
isMateriel
?
'category'
:
'quotedC
ategory'
,
dataIndex
:
'c
ategory'
,
},
{
title
:
'品牌'
,
dataIndex
:
!
isMateriel
?
'brand'
:
'quotedB
rand'
,
dataIndex
:
'b
rand'
,
},
{
title
:
'单位'
,
...
...
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/index.tsx
View file @
311517b2
...
...
@@ -267,11 +267,11 @@ const ReturnForm: React.FC<BillsFormProps> = ({
},
{
title
:
'品类'
,
dataIndex
:
!
isMateriel
?
'category'
:
'quotedC
ategory'
,
dataIndex
:
'c
ategory'
,
},
{
title
:
'品牌'
,
dataIndex
:
!
isMateriel
?
'brand'
:
'quotedB
rand'
,
dataIndex
:
'b
rand'
,
},
{
title
:
'单位'
,
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponQuery/components/EditForm/schema.tsx
View file @
311517b2
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-07-02 17:53:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-
09-24 11:52:11
* @LastEditTime: 2021-
11-15 14:22:03
* @Description:
*/
import
{
ISchema
}
from
'@formily/antd'
;
...
...
@@ -39,8 +39,8 @@ const schema: ISchema = {
width
:
'100%'
,
},
disabledDate
:
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
),
disabledTime
:
(
_
,
type
)
=>
{
if
(
type
===
'start'
)
{
disabledTime
:
(
current
,
type
)
=>
{
if
(
type
===
'start'
&&
moment
().
isSame
(
current
,
'day'
)
)
{
return
{
disabledHours
:
()
=>
range
(
0
,
24
).
splice
(
0
,
moment
().
get
(
'hour'
)),
disabledMinutes
:
()
=>
range
(
0
,
60
).
splice
(
0
,
moment
().
get
(
'minute'
)),
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponUnsubmitted/components/CouponForm/schema.tsx
View file @
311517b2
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-06-24 14:05:57
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-
09-26 15:09:11
* @LastEditTime: 2021-
11-15 14:20:08
* @Description:
*/
import
{
ISchema
}
from
'@formily/antd'
;
...
...
@@ -105,8 +105,8 @@ const schema: ISchema = {
placeholder
:
[
'领(发)劵起始时间'
,
'领(发)劵截止时间'
],
showTime
:
true
,
disabledDate
:
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
),
disabledTime
:
(
_
,
type
)
=>
{
if
(
type
===
'start'
)
{
disabledTime
:
(
current
,
type
)
=>
{
if
(
type
===
'start'
&&
moment
().
isSame
(
current
,
'day'
)
)
{
return
{
disabledHours
:
()
=>
range
(
0
,
24
).
splice
(
0
,
moment
().
get
(
'hour'
)),
disabledMinutes
:
()
=>
range
(
0
,
60
).
splice
(
0
,
moment
().
get
(
'minute'
)),
...
...
@@ -302,8 +302,8 @@ const schema: ISchema = {
placeholder
:
[
'劵有效期起始时间'
,
'劵有效期截止时间'
],
showTime
:
true
,
disabledDate
:
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
),
disabledTime
:
(
_
,
type
)
=>
{
if
(
type
===
'start'
)
{
disabledTime
:
(
current
,
type
)
=>
{
if
(
type
===
'start'
&&
moment
().
isSame
(
current
,
'day'
)
)
{
return
{
disabledHours
:
()
=>
range
(
0
,
24
).
splice
(
0
,
moment
().
get
(
'hour'
)),
disabledMinutes
:
()
=>
range
(
0
,
60
).
splice
(
0
,
moment
().
get
(
'minute'
)),
...
...
src/pages/transaction/purchaseAbility/components/table/index.tsx
View file @
311517b2
import
React
,
{
useRef
,
useState
,
useImperativeHandle
}
from
'react'
;
import
React
,
{
useRef
,
useState
,
useImperativeHandle
,
useEffect
}
from
'react'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
Card
}
from
'antd'
;
import
{
StandardTable
}
from
'god'
;
...
...
@@ -43,10 +43,11 @@ import {
ONLINEBIDREADYBID_SCHEMA
,
ONLINEBIDREADYSIGN_SCHEMA
,
}
from
'../../schema/onlineBid'
;
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
;
interface
Iprops
{
fetch
?:
()
=>
Promise
<
unknown
>
,
fetchRowkeys
?(
e
:
any
),
fetchRowkeys
?(
e
:
number
[]
),
controllerBtns
?:
React
.
ReactNode
,
schemaType
?:
'PurchaseDemand'
|
...
...
@@ -76,6 +77,10 @@ interface Iprops {
reload
?:
any
,
externalStatusFetch
?:
()
=>
Promise
<
unknown
>
,
interiorStatusFetch
?:
()
=>
Promise
<
unknown
>
,
/** rowKey */
rowKey
?:
string
,
/** 禁用 */
getCheckboxProps
?:
(
record
:
any
)
=>
void
,
}
const
formActions
=
createFormActions
();
const
Table
:
React
.
FC
<
Iprops
>
=
(
props
:
any
)
=>
{
...
...
@@ -88,6 +93,8 @@ const Table: React.FC<Iprops> = (props: any) => {
selectedRow
,
reload
,
fetchRowkeys
,
rowKey
,
getCheckboxProps
,
externalStatusFetch
,
interiorStatusFetch
}
=
props
;
...
...
@@ -151,14 +158,16 @@ const Table: React.FC<Iprops> = (props: any) => {
}
/**多选 */
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
rowSelection
=
{
selectedRowKeys
:
selectedRowKeys
,
onChange
:
(
selectedRowKeys
:
any
,
selectedRows
:
any
)
=>
{
fetchRowkeys
(
selectedRowKeys
)
setSelectedRowKeys
(
selectedRowKeys
);
},
const
[
selectRow
,
selectRowFns
]
=
useRowSelectionTable
({
customKey
:
rowKey
||
'id'
,
extendsSelection
:
{
getCheckboxProps
:
(
record
)
=>
getCheckboxProps
&&
getCheckboxProps
(
record
),
}
});
useEffect
(()
=>
{
fetchRowkeys
&&
fetchRowkeys
(
selectRowFns
.
selectedRowKeys
)
},
[
selectRowFns
])
useImperativeHandle
(
reload
,
()
=>
({
reload
:
()
=>
{
...
...
@@ -176,17 +185,17 @@ const Table: React.FC<Iprops> = (props: any) => {
onFormMount$
().
subscribe
(()
=>
{
externalStatusFetch
&&
externalStatusFetch
().
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
return
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
||
item
.
message
,
value
:
item
.
satatus
||
item
.
code
}
})
linkage
.
enum
(
'externalState'
,
_enum
)
linkage
.
enum
(
'externalStatusList'
,
_enum
)
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
||
item
.
message
,
value
:
item
.
satatus
||
item
.
code
}
})
linkage
.
enum
(
'externalState'
,
_enum
)
linkage
.
enum
(
'externalStatusList'
,
_enum
)
}).
catch
(
error
=>
{
console
.
warn
(
error
)
})
interiorStatusFetch
&&
interiorStatusFetch
().
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
return
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
||
item
.
message
,
value
:
item
.
satatus
||
item
.
code
}
})
linkage
.
enum
(
'interiorState'
,
_enum
)
linkage
.
enum
(
'innerStatusList'
,
_enum
)
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
||
item
.
message
,
value
:
item
.
satatus
||
item
.
code
}
})
linkage
.
enum
(
'interiorState'
,
_enum
)
linkage
.
enum
(
'innerStatusList'
,
_enum
)
}).
catch
(
error
=>
{
console
.
warn
(
error
)
})
...
...
@@ -200,13 +209,15 @@ const Table: React.FC<Iprops> = (props: any) => {
<
StandardTable
currentRef=
{
tableRef
}
columns=
{
columns
}
tableProps=
{
{
rowKe
w
:
'id'
}
}
rowSelection=
{
selectedRow
&&
rowSelection
}
tableProps=
{
{
rowKe
y
:
rowKey
?
rowKey
:
'id'
}
}
rowSelection=
{
selectedRow
&&
selectRow
}
fetchTableData=
{
(
params
:
any
)
=>
fetchData
(
params
)
}
controlRender=
{
<
NiceForm
actions=
{
formActions
}
expressionScope=
{
{
controllerBtns
}
}
components=
{
{
controllerBtns
:
()
=>
controllerBtns
,
}
}
onSubmit=
{
values
=>
search
(
values
)
}
effects=
{
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
$
,
actions
,
effects
,
FORM_FILTER_PATH
)
...
...
src/pages/transaction/purchaseAbility/demandPlan/demandPlanAdded/components/basicInfo.tsx
View file @
311517b2
...
...
@@ -57,9 +57,25 @@ const BasicInfo: React.FC<BasicInfoprops> = (props: any) => {
return
(
<
Form
{
...
layout
}
form=
{
form
}
>
<
Form
.
Item
label=
"需求计划摘要"
rules=
{
[{
required
:
true
,
message
:
'请输入需求计划摘要'
}]
}
name=
"summary"
>
<
Form
.
Item
noStyle
shouldUpdate=
{
(
prevValues
,
curValues
)
=>
(
prevValues
.
startTime
&&
prevValues
.
endTime
)
!==
(
curValues
.
startTime
&&
curValues
.
endTime
)
}
>
{
({
getFieldValue
})
=>
{
if
(
getFieldValue
(
'startTime'
)
&&
getFieldValue
(
'endTime'
))
{
form
.
setFieldsValue
({
'summary'
:
`${getFieldValue('startTime').format('YYYY-MM-DD')}-${getFieldValue('endTime').format('YYYY-MM-DD')}需求计划`
})
}
return
(
getFieldValue
(
'startTime'
)
&&
getFieldValue
(
'endTime'
))
&&
(
<
Form
.
Item
label=
"需求计划摘要"
name=
"summary"
rules=
{
[{
required
:
true
,
message
:
'请输入需求计划摘要'
}]
}
>
<
Input
/>
</
Form
.
Item
>
)
}
}
</
Form
.
Item
>
<
Form
.
Item
required
label=
"需求计划周期"
style=
{
{
marginBottom
:
0
}
}
>
<
DatePicker
startTimeName=
'startTime'
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/components/basic.tsx
View file @
311517b2
...
...
@@ -251,7 +251,7 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
name=
'details'
rules=
{
[{
required
:
true
,
message
:
'请输入需求单摘要'
}]
}
>
<
Input
/>
<
Input
maxLength=
{
30
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/components/condition.tsx
View file @
311517b2
...
...
@@ -159,37 +159,37 @@ const Condition: React.FC<Iprops> = (props: any) => {
label=
"报价要求"
name=
"offer"
>
<
TextArea
rows=
{
3
}
/>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"付款要求"
name=
"paymentType"
>
<
TextArea
rows=
{
3
}
/>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"税费要求"
name=
"taxes"
>
<
TextArea
rows=
{
3
}
/>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"物流要求"
name=
"logistics"
>
<
TextArea
rows=
{
3
}
/>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"包装要求"
name=
"packRequire"
>
<
TextArea
rows=
{
3
}
/>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"其他要求"
name=
"otherRequire"
>
<
TextArea
rows=
{
3
}
/>
<
TextArea
rows=
{
3
}
maxLength=
{
50
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/modal/index.tsx
View file @
311517b2
...
...
@@ -146,7 +146,6 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
if
(
data
.
customerCategory
)
{
const
fullId
=
data
.
customerCategory
.
fullId
;
const
ids
=
fullId
.
replace
(
/
\b(
0+
)
/gi
,
''
).
split
(
'.'
);
console
.
log
(
ids
,
fullId
)
form
.
setFieldsValue
({
ids
:
ids
.
join
(
','
).
split
(
','
),
})
...
...
@@ -189,6 +188,7 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
urls
:
files
}
onConfirm
(
data
)
setProduct
([])
form
.
resetFields
();
setFiles
([])
}).
catch
(
error
=>
{
...
...
@@ -197,6 +197,7 @@ const AnchorModal: React.FC<AnchorModalProps> = (props: any) => {
}
/** 取消提交 */
const
handleClose
=
()
=>
{
setProduct
([])
form
.
resetFields
();
setFiles
([])
onClose
()
...
...
src/pages/transaction/purchaseAbility/schema/demandPlan.ts
View file @
311517b2
...
...
@@ -96,11 +96,8 @@ export const DEMANDPLANADDED_SECHEMA: ISchema = {
},
properties
:
{
ctl
:
{
type
:
'object'
,
"x-component"
:
"Children"
,
"x-component-props"
:
{
children
:
"{{controllerBtns}}"
}
type
:
"object"
,
"x-component"
:
"controllerBtns"
,
},
needPlanNo
:
{
type
:
'string'
,
...
...
src/pages/transaction/purchaseAbility/schema/index.ts
View file @
311517b2
...
...
@@ -108,11 +108,8 @@ export const INQUIRYWAITORDER_SCHEMA: ISchema = {
},
properties
:
{
ctl
:
{
type
:
'object'
,
"x-component"
:
"Children"
,
"x-component-props"
:
{
children
:
"{{controllerBtns}}"
}
type
:
"object"
,
"x-component"
:
"controllerBtns"
,
},
purchaseInquiryNo
:
{
type
:
'string'
,
...
...
@@ -277,11 +274,8 @@ export const PurchaseDemandPublicSchema: ISchema = {
},
properties
:
{
ctl
:
{
type
:
'object'
,
"x-component"
:
"Children"
,
"x-component-props"
:
{
children
:
"{{controllerBtns}}"
}
type
:
"object"
,
"x-component"
:
"controllerBtns"
,
},
requisitionFormNo
:
{
type
:
'string'
,
...
...
@@ -729,11 +723,8 @@ export const CONFIRMOFFERAUDIT_SCHEMA: ISchema = {
},
properties
:
{
ctl
:
{
type
:
'object'
,
"x-component"
:
"Children"
,
"x-component-props"
:
{
children
:
"{{controllerBtns}}"
}
type
:
"object"
,
"x-component"
:
"controllerBtns"
,
},
purchaseInquiryNo
:
{
type
:
'string'
,
...
...
@@ -996,11 +987,8 @@ export const OFFERSERAHAUDIT_SCHEMA: ISchema = {
},
properties
:
{
ctl
:
{
type
:
'object'
,
"x-component"
:
"Children"
,
"x-component-props"
:
{
children
:
"{{controllerBtns}}"
}
type
:
"object"
,
"x-component"
:
"controllerBtns"
,
},
quotedPriceNo
:
{
type
:
'string'
,
...
...
src/pages/transaction/purchaseAbility/schema/onlineBid.ts
View file @
311517b2
src/pages/transaction/purchaseAbility/schema/purchaseBid.ts
View file @
311517b2
...
...
@@ -108,11 +108,8 @@ export const PURCHASEBIDREADYADD_SCHEMA: ISchema = {
},
properties
:
{
ctl
:
{
type
:
'object'
,
"x-component"
:
"Children"
,
"x-component-props"
:
{
children
:
"{{controllerBtns}}"
}
type
:
"object"
,
"x-component"
:
"controllerBtns"
,
},
biddingNo
:
{
type
:
'string'
,
...
...
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