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
b8ad23c6
Commit
b8ad23c6
authored
Nov 17, 2021
by
前端-许佳敏
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
653586e6
ab95f908
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
38 additions
and
10 deletions
+38
-10
index.tsx
src/components/DatePicker/index.tsx
+14
-1
addWarehouseBill.tsx
...Application/exchangePrAddWarehousing/addWarehouseBill.tsx
+3
-1
addDeliverBill.tsx
...ce/exchangeManage/exchangePrAddDeliver/addDeliverBill.tsx
+3
-1
addWarehouseBill.tsx
...hangeManage/exchangePrAddWarehousing/addWarehouseBill.tsx
+3
-1
index.tsx
...es/transaction/purchaseAbility/components/table/index.tsx
+1
-0
basicInfo.tsx
...ility/demandPlan/demandPlanAdded/components/basicInfo.tsx
+5
-3
index.tsx
...purchaseAbility/purchaseInquiry/auditInquiryOne/index.tsx
+3
-0
index.tsx
...purchaseAbility/purchaseInquiry/auditInquiryTwo/index.tsx
+3
-0
index.tsx
...tion/purchaseOrder/components/circulationRecord/index.tsx
+1
-1
index.tsx
src/pages/transaction/purchaseOrder/constant/index.tsx
+1
-1
useSelfTable.tsx
...action/purchaseOrder/readyPayOrder/model/useSelfTable.tsx
+1
-1
No files found.
src/components/DatePicker/index.tsx
View file @
b8ad23c6
...
...
@@ -7,10 +7,12 @@ interface DatePickerSelectPropsType {
startTimeName
?:
string
,
/** 结束时间name */
endTimeName
?:
string
,
/** ononPress */
onPress
?:
()
=>
void
,
}
const
DatePickerSelect
:
React
.
FC
<
DatePickerSelectPropsType
>
=
(
props
)
=>
{
const
{
startTimeName
,
endTimeName
}
=
props
;
const
{
startTimeName
,
endTimeName
,
onPress
}
=
props
;
const
[
timeList
,
setTimeList
]
=
useState
<
Array
<
any
>>
([]);
/**
...
...
@@ -32,11 +34,22 @@ const DatePickerSelect: React.FC<DatePickerSelectPropsType> = (props) => {
const
startTimeChange
=
(
val
)
=>
{
let
time
=
[...
timeList
]
time
[
0
]
=
val
if
(
onPress
)
{
if
(
time
[
0
]
&&
time
[
1
])
{
onPress
()
}
}
setTimeList
(
time
)
}
const
endStartTimeChange
=
(
val
)
=>
{
let
time
=
[...
timeList
]
time
[
1
]
=
val
if
(
onPress
)
{
if
(
time
[
0
]
&&
time
[
1
])
{
onPress
()
}
}
setTimeList
(
time
)
}
return
(
...
...
src/pages/afterService/exchangeApplication/exchangePrAddWarehousing/addWarehouseBill.tsx
View file @
b8ad23c6
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-20 15:55:09
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-
08-20 15:55:10
* @LastEditTime: 2021-
11-16 17:44:47
* @Description: 新增换货入库单
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -46,6 +46,7 @@ const ExchangeAddWarehouseBill = () => {
relatedCount
:
item
.
replaceCount
,
billCount
:
item
.
replaceDeliveryCount
,
count
:
item
.
replaceDeliveryCount
,
billDetailId
:
item
.
replaceDetailId
,
})),
orderType
:
res
.
data
.
orderType
,
});
...
...
@@ -74,6 +75,7 @@ const ExchangeAddWarehouseBill = () => {
brand
:
item
.
brand
,
unit
:
item
.
unit
,
count
:
item
.
count
,
replaceDetailId
:
item
.
billDetailId
,
})),
}).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/afterService/exchangeManage/exchangePrAddDeliver/addDeliverBill.tsx
View file @
b8ad23c6
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-20 15:14:42
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-
09-15 10:03:04
* @LastEditTime: 2021-
11-16 15:00:28
* @Description: 新增换货发货单
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -45,6 +45,7 @@ const ExchangeAddDeliverBill = () => {
price
:
item
.
purchasePrice
,
relatedCount
:
item
.
replaceCount
,
count
:
item
.
receiveCount
,
billDetailId
:
item
.
detailId
,
})),
orderType
:
res
.
data
.
orderType
,
}
);
...
...
@@ -73,6 +74,7 @@ const ExchangeAddDeliverBill = () => {
brand: item.brand,
unit: item.unit,
count: item.count,
replaceDetailId: item.billDetailId,
})),
}).then((res) => {
if (res.code === 1000) {
...
...
src/pages/afterService/exchangeManage/exchangePrAddWarehousing/addWarehouseBill.tsx
View file @
b8ad23c6
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-20 14:20:04
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-
08-20 14:20:05
* @LastEditTime: 2021-
11-16 17:45:16
* @Description: 新增换货退货入库单
*/
import
React
,
{
useState
}
from
'react'
;
...
...
@@ -46,6 +46,7 @@ const ExchangeAddWarehouseBill = () => {
relatedCount
:
item
.
replaceCount
,
billCount
:
item
.
replaceDeliveryCount
,
count
:
item
.
replaceDeliveryCount
,
billDetailId
:
item
.
replaceDetailId
,
})),
orderType
:
res
.
data
.
orderType
,
});
...
...
@@ -74,6 +75,7 @@ const ExchangeAddWarehouseBill = () => {
brand
:
item
.
brand
,
unit
:
item
.
unit
,
count
:
item
.
count
,
replaceDetailId
:
item
.
billDetailId
,
})),
}).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/transaction/purchaseAbility/components/table/index.tsx
View file @
b8ad23c6
...
...
@@ -172,6 +172,7 @@ const Table: React.FC<Iprops> = (props: any) => {
useImperativeHandle
(
reload
,
()
=>
({
reload
:
()
=>
{
tableRef
.
current
.
reload
();
selectRowFns
.
setSelectedRowKeys
([]);
}
}));
...
...
src/pages/transaction/purchaseAbility/demandPlan/demandPlanAdded/components/basicInfo.tsx
View file @
b8ad23c6
...
...
@@ -55,13 +55,14 @@ const BasicInfo: React.FC<BasicInfoprops> = (props: any) => {
}
},
[
fetchdata
])
const
handleSummary
=
()
=>
{
form
.
setFieldsValue
({
'summary'
:
`
${
form
.
getFieldValue
(
'startTime'
).
format
(
'YYYY-MM-DD'
)}
-
${
form
.
getFieldValue
(
'endTime'
).
format
(
'YYYY-MM-DD'
)}
需求计划`
})
}
return
(
<
Form
{
...
layout
}
form=
{
form
}
>
<
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=
"需求计划摘要"
...
...
@@ -80,6 +81,7 @@ const BasicInfo: React.FC<BasicInfoprops> = (props: any) => {
<
DatePicker
startTimeName=
'startTime'
endTimeName=
'endTime'
onPress=
{
handleSummary
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"需求计划编号"
name=
"needPlanNo"
>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/auditInquiryOne/index.tsx
View file @
b8ad23c6
...
...
@@ -76,6 +76,9 @@ const AuditInquiryOne = () => {
</>
)
}];
console
.
log
(
rowkeys
,
'rowkeys'
)
return
(
<
Table
selectedRow
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/auditInquiryTwo/index.tsx
View file @
b8ad23c6
...
...
@@ -78,6 +78,9 @@ const AuditInquiryTwo = () => {
</>
)
}];
console
.
log
(
rowkeys
,
'rowkeys'
)
return
(
<
Table
selectedRow
...
...
src/pages/transaction/purchaseOrder/components/circulationRecord/index.tsx
View file @
b8ad23c6
...
...
@@ -5,7 +5,7 @@ import { formatTimeString } from '@/utils'
import
'./index.less'
import
cx
from
'classnames'
import
{
ReadyAddOrderDetailContext
}
from
'../../context'
import
StatusColors
from
'../
s
tatusColors'
import
StatusColors
from
'../
S
tatusColors'
export
interface
CirculationRecordProps
{}
...
...
src/pages/transaction/purchaseOrder/constant/index.tsx
View file @
b8ad23c6
import
React
from
'react'
import
{
history
}
from
'umi'
import
{
formatTimeString
}
from
'@/utils'
import
StatusColors
from
'../components/
s
tatusColors'
import
StatusColors
from
'../components/
S
tatusColors'
import
EyePreview
from
'@/components/EyePreview'
import
{
ORDER_TYPE_CHANNEL_POINTS
,
ORDER_TYPE_POINTS
}
from
'@/constants/order'
...
...
src/pages/transaction/purchaseOrder/readyPayOrder/model/useSelfTable.tsx
View file @
b8ad23c6
...
...
@@ -4,7 +4,7 @@ import { Row, Col, Progress } from 'antd'
import
{
PublicApi
}
from
'@/services/api'
import
EyePreview
from
'@/components/EyePreview'
import
{
formatTimeString
}
from
'@/utils'
import
StatusColors
from
'../../components/
s
tatusColors'
import
StatusColors
from
'../../components/
S
tatusColors'
import
{
FieldTimeOutlined
}
from
'@ant-design/icons'
import
{
Chart
,
...
...
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