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
shenshaokai
jinfa-platform
Commits
cf64fb48
Commit
cf64fb48
authored
Apr 22, 2022
by
wzy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-220418' of…
Merge branch 'v2-220418' of
ssh://gitlab.shushangyun.com:8122/linkseeks-design/pro-platform
into 418-jxc
parents
9c1079bc
f053d2e0
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
129 additions
and
49 deletions
+129
-49
responseCode.ts
src/locales/en-US/responseCode.ts
+2
-1
responseCode.ts
src/locales/ko-KR/responseCode.ts
+2
-1
responseCode.ts
src/locales/zh-CN/responseCode.ts
+2
-1
harver-material.tsx
src/pages/order/assets/context/harver-material.tsx
+2
-2
usePageTitle.tsx
src/pages/order/assets/hooks/usePageTitle.tsx
+28
-0
anchors.ts
src/pages/order/constants/anchors.ts
+1
-1
page-table-column.tsx
src/pages/order/constants/page-table-column.tsx
+1
-1
table-column.ts
src/pages/order/constants/table-column.ts
+2
-2
add.tsx
src/pages/order/deliveryNotice/create/add.tsx
+12
-3
details.tsx
src/pages/order/deliveryNotice/manageB2B/details.tsx
+15
-12
edit.tsx
src/pages/order/deliveryNotice/manageB2B/edit.tsx
+5
-1
details.tsx
src/pages/order/deliveryNotice/manageSRM/details.tsx
+4
-1
edit.tsx
src/pages/order/deliveryNotice/manageSRM/edit.tsx
+5
-1
details.tsx
...pages/order/deliveryNotice/receivingNoteQuery/details.tsx
+7
-3
details.tsx
src/pages/order/receivingNote/deliveryNoteManage/details.tsx
+6
-2
edit.tsx
src/pages/order/receivingNote/deliveryNoteManage/edit.tsx
+5
-1
details.tsx
src/pages/order/receivingNote/deliveryNoteQuery/details.tsx
+5
-2
edit.tsx
src/pages/order/receivingNote/deliveryNoteQuery/edit.tsx
+4
-1
index.tsx
src/pages/supplier/memberImport/index.tsx
+9
-1
index.tsx
src/pages/supplier/memberQuery/index.tsx
+12
-12
No files found.
src/locales/en-US/responseCode.ts
View file @
cf64fb48
...
...
@@ -1124,7 +1124,8 @@ export default {
"25134"
:
"Member management process rules do not exist"
,
"60102"
:
"The current status of the bidding record is abnormal"
,
"1200"
:
"User account or password is wrong"
,
"25133"
:
"Please select the member storage process or change process"
,
"25401"
:
"Please select the member storage process or change process"
,
"25133"
:
"Member management process rules already exist"
,
"60101"
:
"The status of the bidding record is invalidated"
,
"37103"
:
"Please fill in the phone number of the recipient when you pick up the order"
,
"60100"
:
"The bidding record does not exist"
,
...
...
src/locales/ko-KR/responseCode.ts
View file @
cf64fb48
...
...
@@ -1123,7 +1123,8 @@ export default {
"25134"
:
"구성원 관리 프로세스 규칙이 존재하지 않습니다"
,
"60102"
:
"입찰 기록의 현재 상태가 비정상입니다"
,
"1200"
:
"사용자 계정 또는 암호가 잘못되었습니다"
,
"25133"
:
"멤버 저장 프로세스를 선택하거나 프로세스를 변경하십시오."
,
"25401"
:
"멤버 저장 프로세스를 선택하거나 프로세스를 변경하십시오."
,
"25133"
:
"멤버십 관리 프로세스 규칙이 이미 존재합니다."
,
"60101"
:
"입찰 레코드의 상태가 무효화되었습니다"
,
"37103"
:
"주문 수령 시 수령인 전화번호를 입력해주세요"
,
"60100"
:
"입찰 기록이 존재하지 않습니다"
,
...
...
src/locales/zh-CN/responseCode.ts
View file @
cf64fb48
...
...
@@ -1124,7 +1124,8 @@ export default {
"25134"
:
"会员管理流程规则不存在"
,
"60102"
:
"招标记录当前状态异常"
,
"1200"
:
"用户账号或密码错误"
,
"25133"
:
"请选择会员入库流程、或变更流程"
,
"25401"
:
"请选择会员入库流程、或变更流程"
,
"25133"
:
"会员管理流程规则已经存在"
,
"60101"
:
"招标记录状态为已废标"
,
"37103"
:
"请填写订单自提接收人的电话"
,
"60100"
:
"招标记录不存在"
,
...
...
src/pages/order/assets/context/harver-material.tsx
View file @
cf64fb48
...
...
@@ -39,13 +39,13 @@ export function HarvestMaterialInput(props: {
}
// 存在小数点 且 字符串必须大于 . +1 才执行
if
(
targetVal
.
includes
(
'.'
)
&&
targetVal
.
length
!=
targetVal
.
indexOf
(
'.'
))
{
const
reg
=
new
RegExp
(
"((^[
1
-9][0-9]{0,8})+(.?[0-9]{1,3})?$)"
)
const
reg
=
new
RegExp
(
"((^[
0
-9][0-9]{0,8})+(.?[0-9]{1,3})?$)"
)
const
test
=
reg
.
test
(
targetVal
)
if
(
!
test
)
{
return
;
}
}
else
{
const
reg
=
new
RegExp
(
"((^[
1
-9][0-9]{0,8})+(.?[0-9]{1,3})?$)"
)
const
reg
=
new
RegExp
(
"((^[
0
-9][0-9]{0,8})+(.?[0-9]{1,3})?$)"
)
const
test
=
reg
.
test
(
targetVal
)
if
(
!
test
)
{
return
;
...
...
src/pages/order/assets/hooks/usePageTitle.tsx
0 → 100644
View file @
cf64fb48
import
{
useMemo
,
useState
}
from
"react"
;
function
usePageTitle
()
{
const
[
info
,
setInfo
]
=
useState
<
any
>
()
const
title
=
useMemo
(()
=>
{
return
`
${
info
?.
digest
??
''
}
|
$
{
info
?.
No
??
''
}
`
}, [info])
const setDeliveryTitle = (info) => {
info.No = info?.deliveryNo
setInfo(info)
}
const setReceiveTitle = (info) => {
info.No = info?.deliveryNo
setInfo(info)
}
return {
title,
setDeliveryTitle,
setReceiveTitle
}
}
export default usePageTitle;
\ No newline at end of file
src/pages/order/constants/anchors.ts
View file @
cf64fb48
...
...
@@ -87,7 +87,7 @@ const DeliveryGood: AnchorsItem = {
const
ExternalRoamRecord
:
AnchorsItem
=
{
key
:
'ExternalDocumentFlowRecord'
,
name
:
'
外部单据
流转记录'
name
:
'流转记录'
}
const
Remarks
:
AnchorsItem
=
{
...
...
src/pages/order/constants/page-table-column.tsx
View file @
cf64fb48
...
...
@@ -21,7 +21,7 @@ export const DeliveryNoteAddFromTableColumn: any = [
width
:
140
,
render
:
(
_
,
rcode
,
index
)
=>
{
return
(
<
HarvestMaterialInput
value=
{
rcode
.
DeliveryNum
}
index=
{
index
}
key
U
p=
"ConsigneeNum"
/>
<
HarvestMaterialInput
value=
{
rcode
.
DeliveryNum
}
index=
{
index
}
key
u
p=
"ConsigneeNum"
/>
)
},
editable
:
true
,
...
...
src/pages/order/constants/table-column.ts
View file @
cf64fb48
...
...
@@ -119,7 +119,7 @@ export const PlannedDeliveryNumColumn: any = {
}
export
const
FlowOnColumn
:
any
=
{
title
:
'
流转顺
序号'
,
title
:
'序号'
,
// align: 'center',
}
...
...
@@ -144,7 +144,7 @@ export const FlowOptionsTimeColumn: any = {
}
export
const
FlowNoteColumn
:
any
=
{
title
:
'
备注
'
,
title
:
'
审核意见
'
,
// align: 'center',
}
...
...
src/pages/order/deliveryNotice/create/add.tsx
View file @
cf64fb48
...
...
@@ -261,16 +261,25 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
</
Radio
.
Group
>
</
FormItem
>
<
FormItem
hidden=
{
isLogistics
}
label=
{
LogisticsCarNoLabel
}
name=
"executorVO.carNumbers"
>
<
Input
maxLength=
{
20
}
/>
<
FormItem
rules=
{
[
{
max
:
20
,
message
:
"最长20个字符"
}
]
}
hidden=
{
isLogistics
}
label=
{
LogisticsCarNoLabel
}
name=
"executorVO.carNumbers"
>
<
Input
/>
</
FormItem
>
<
FormItem
hidden=
{
isLogistics
}
label=
{
LogisticsCompanyLabel
}
name=
"logisticsCompanyInt"
>
<
LogisticsCompanyMerchantsSelect
/>
</
FormItem
>
<
FormItem
rules=
{
[
{
max
:
20
,
message
:
"最长20个字符"
}
]
}
hidden=
{
isLogistics
}
label=
{
LogisticsNoLabel
}
name=
"logisticsNo"
>
<
Input
maxLength=
{
20
}
/>
<
Input
/>
</
FormItem
>
</
ContentBox
>
...
...
src/pages/order/deliveryNotice/manageB2B/details.tsx
View file @
cf64fb48
...
...
@@ -12,6 +12,7 @@ import { DeliveryNoticeTableColumn, ExternalRoamRecordTableColumn } from '../../
import
{
useLocation
}
from
'umi'
;
import
NoteFactoryService
from
'../../assets/handles/DeliveryNoteService'
;
import
{
DeliveryNumColumn
}
from
'../../constants/table-column'
;
import
usePageTitle
from
'../../assets/hooks/usePageTitle'
;
const
ContentBoxItem
=
ContentBox
.
BaseInfoItem
;
...
...
@@ -36,15 +37,17 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
const
[
totalCount
,
setTotalCount
]
=
useState
(
1
);
const
[
outerHistoryList
,
setOuterHistoryList
]
=
useState
([]);
const
{
title
,
setDeliveryTitle
}
=
usePageTitle
()
useEffect
(()
=>
{
service
.
getDetailInfoById
(
query
.
id
as
string
).
then
(
res
=>
{
setInfo
(
res
)
setDeliveryTitle
(
res
)
})
service
.
getDetailInfoProductById
(
query
.
id
as
string
).
then
(
res
=>
{
setTableDataSource
(
res
.
data
)
setTotalCount
(
res
.
totalCount
)
})
...
...
@@ -59,7 +62,7 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
return
(
<
AnchorPage
title=
"送货单管理详情(B2B)"
<
AnchorPage
title=
{
title
}
anchors=
{
anchors
}
>
...
...
@@ -106,11 +109,11 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
<
ContentBoxItem
label=
{
DeliveryAddrLabel
}
>
<
div
>
{
info
?.
deliverVO
?.
provinceName
??
''
}
{
info
?.
deliverVO
?.
cityName
??
''
}
{
info
?.
deliverVO
?.
districtName
??
''
}
{
info
?.
deliverVO
?.
streetName
??
''
}
{
info
?.
deliverVO
?.
address
??
''
}
{
info
?.
deliverVO
?.
provinceName
??
''
}
{
info
?.
deliverVO
?.
cityName
??
''
}
{
info
?.
deliverVO
?.
districtName
??
''
}
{
info
?.
deliverVO
?.
streetName
??
''
}
{
info
?.
deliverVO
?.
address
??
''
}
</
div
>
<
div
>
{
info
?.
deliverVO
.
phone
}
...
...
@@ -120,11 +123,11 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
<
ContentBoxItem
label=
{
DeliverySlefAddrLabel
}
>
<
div
>
{
info
?.
receiverBO
?.
provinceName
??
''
}
{
info
?.
receiverBO
?.
cityName
??
''
}
{
info
?.
receiverBO
?.
districtName
??
''
}
{
info
?.
receiverBO
?.
streetName
??
''
}
{
info
?.
receiverBO
?.
address
??
''
}
{
info
?.
receiverBO
?.
provinceName
??
''
}
{
info
?.
receiverBO
?.
cityName
??
''
}
{
info
?.
receiverBO
?.
districtName
??
''
}
{
info
?.
receiverBO
?.
streetName
??
''
}
{
info
?.
receiverBO
?.
address
??
''
}
</
div
>
<
div
>
{
info
?.
receiverBO
?.
phone
}
...
...
src/pages/order/deliveryNotice/manageB2B/edit.tsx
View file @
cf64fb48
...
...
@@ -26,6 +26,7 @@ import { addrFormatValue } from '../../assets/format/addrValue';
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
usePrompt
from
'@/hooks/usePrompt'
;
import
useLogistics
from
'../../assets/hooks/useLogistics'
;
import
usePageTitle
from
'../../assets/hooks/usePageTitle'
;
const
ContentBoxItem
=
ContentBox
.
BaseInfoItem
;
...
...
@@ -43,6 +44,8 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
const
{
handleLogisticsShow
,
isLogistics
}
=
useLogistics
()
const
{
title
,
setDeliveryTitle
}
=
usePageTitle
()
const
[
anchors
,
setAnchors
]
=
useState
<
AnchorsItem
[]
>
([
BillsInfo
,
Distribution
,
...
...
@@ -55,6 +58,7 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
form
.
setFieldsValue
({
sourceType
:
0
,
id
:
id
})
service
.
getDetailById
(
id
).
then
(
res
=>
{
form
.
setFieldsValue
(
res
)
setDeliveryTitle
(
res
)
})
service
.
getOrderDeliveryOrderDetailProductPage
({
id
}).
then
(
res
=>
{
...
...
@@ -93,7 +97,7 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
return (
<AnchorPage title=
"送货单管理编辑(B2B)"
<AnchorPage title=
{title}
anchors={anchors}
extra={
<Button.Group>
...
...
src/pages/order/deliveryNotice/manageSRM/details.tsx
View file @
cf64fb48
...
...
@@ -12,6 +12,7 @@ import { DeliveryNoteAddFromTableColumn, DeliveryNoticeTableColumn, DeliveryNoti
import
NoteFactoryService
from
'../../assets/handles/DeliveryNoteService'
;
import
{
useLocation
}
from
'umi'
;
import
qs
from
'query-string'
;
import
usePageTitle
from
'../../assets/hooks/usePageTitle'
;
const
ContentBoxItem
=
ContentBox
.
BaseInfoItem
;
...
...
@@ -19,6 +20,7 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
const
location
=
useLocation
();
const
query
=
qs
.
parse
(
location
.
search
);
const
{
title
,
setDeliveryTitle
}
=
usePageTitle
()
const
service
=
NoteFactoryService
.
getInstance
();
...
...
@@ -40,6 +42,7 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
service
.
getDetailInfoById
(
query
.
id
as
string
).
then
(
info
=>
{
setInfo
(
info
)
setDeliveryTitle
(
info
)
service
.
getDetailInfoProductById
(
query
.
id
as
string
).
then
(
res
=>
{
setTableDataSource
(
res
.
data
)
setAnchors
([
...
...
@@ -69,7 +72,7 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
return (
<AnchorPage title=
"送货单管理详情(SRM)"
<AnchorPage title=
{title}
anchors={anchors}
>
...
...
src/pages/order/deliveryNotice/manageSRM/edit.tsx
View file @
cf64fb48
...
...
@@ -27,6 +27,7 @@ import { addrFormatValue } from '../../assets/format/addrValue';
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
usePrompt
from
'@/hooks/usePrompt'
;
import
useLogistics
from
'../../assets/hooks/useLogistics'
;
import
usePageTitle
from
'../../assets/hooks/usePageTitle'
;
const
ContentBoxItem
=
ContentBox
.
BaseInfoItem
;
...
...
@@ -45,6 +46,8 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
const
service
=
new
DeliveryNoteUploadService
(
form
);
const
{
title
,
setDeliveryTitle
}
=
usePageTitle
()
const
[
anchors
,
setAnchors
]
=
useState
<
AnchorsItem
[]
>
([
BillsInfo
,
Distribution
,
...
...
@@ -56,6 +59,7 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
form
.
setFieldsValue
({
sourceType
:
0
,
id
:
id
})
service
.
getDetailById
(
id
).
then
(
res
=>
{
form
.
setFieldsValue
(
res
)
setDeliveryTitle
(
res
)
setOuterHistoryList
(
res
.
outerHistoryList
)
})
...
...
@@ -95,7 +99,7 @@ const DeliveryNoticeManageSRMEdit: React.FC = () => {
return (
<AnchorPage title=
"送货单管理详情(SRM)"
<AnchorPage title=
{title}
anchors={anchors}
extra={
<Button.Group>
...
...
src/pages/order/deliveryNotice/receivingNoteQuery/details.tsx
View file @
cf64fb48
...
...
@@ -17,6 +17,7 @@ import { Table } from 'antd';
import
{
DeliveryNoticeTableColumn
,
DeliveryNoticeTableColumnSRM
,
ExternalRoamRecordTableColumn
}
from
'../../constants/page-table-column'
;
import
{
useLocation
}
from
'umi'
;
import
NoteFactoryService
from
'../../assets/handles/DeliveryNoteService'
;
import
usePageTitle
from
'../../assets/hooks/usePageTitle'
;
const
ContentBoxItem
=
ContentBox
.
BaseInfoItem
;
...
...
@@ -42,6 +43,8 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
const
[
totalCount
,
setTotalCount
]
=
useState
(
1
);
const
[
outerHistoryList
,
setOuterHistoryList
]
=
useState
([]);
const
{
title
,
setReceiveTitle
}
=
usePageTitle
()
useEffect
(()
=>
{
service
.
getDetailInfoById
(
query
.
id
as
string
).
then
(
res
=>
{
...
...
@@ -77,11 +80,12 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
*/
useEffect(() => {
setOuterHistoryList(info?.outerHistoryList)
setReceiveTitle(info)
}, [info])
return (
<AnchorPage title=
"收货单详情"
<AnchorPage title=
{title}
anchors={anchors}
>
...
...
@@ -209,13 +213,13 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
</ContentBox>
{/*
<ContentBox title={ExternalRoamRecord.name} id={ExternalRoamRecord.key} cols={1}>
<ContentBox title={ExternalRoamRecord.name} id={ExternalRoamRecord.key} cols={1}>
<Table
columns={ExternalRoamRecordTableColumn}
rowKey="id"
dataSource={outerHistoryList}
/>
</ContentBox>
*/}
</ContentBox>
</AnchorPage>
)
...
...
src/pages/order/receivingNote/deliveryNoteManage/details.tsx
View file @
cf64fb48
...
...
@@ -12,6 +12,7 @@ import ReceiveNoteFacotry from '../../assets/handles/ReceiveNotePage';
import
{
useLocation
}
from
'umi'
;
import
{
DeliveryNoticeTableColumn
,
DeliveryNoticeTableColumnSRM
,
ExternalRoamRecordTableColumn
}
from
'../../constants/page-table-column'
;
import
{
DeliveryNumColumn
}
from
'../../constants/table-column'
;
import
usePageTitle
from
'../../assets/hooks/usePageTitle'
;
const
ListInfoItem
=
ListInfo
.
BaseInfoItem
;
const
service
=
ReceiveNoteFacotry
.
getInstance
()
...
...
@@ -27,6 +28,7 @@ const DeliveryNoteManageDetails: React.FC = () => {
const
[
loading
,
setLoading
]
=
useState
(
true
)
const
[
outerHistoryList
,
setOuterHistoryList
]
=
useState
([])
const
{
title
,
setReceiveTitle
}
=
usePageTitle
()
useEffect
(()
=>
{
...
...
@@ -35,6 +37,8 @@ const DeliveryNoteManageDetails: React.FC = () => {
service
.
getDetailProduct
({
id
,
current
:
1
})
]).
then
((
values
)
=>
{
setInfo
(
values
[
0
])
setReceiveTitle
(
values
[
0
])
setOuterHistoryList
(
values
[
0
].
outerHistoryList
)
setTableDataSource
(
values
[
1
].
data
)
setLoading
(
false
)
...
...
@@ -60,7 +64,7 @@ const DeliveryNoteManageDetails: React.FC = () => {
return
(
<
Spin
spinning=
{
loading
}
>
<
AnchorPage
title=
{
`${info?.deliveryNo}收货单详情`
}
title=
{
title
}
anchors=
{
anchors
}
>
...
...
@@ -73,7 +77,7 @@ const DeliveryNoteManageDetails: React.FC = () => {
{
info
?.
buyerMemberName
}
</
ListInfoItem
>
<
ListInfoItem
label=
'
送
货单摘要'
>
<
ListInfoItem
label=
'
收
货单摘要'
>
{
info
?.
digest
}
</
ListInfoItem
>
...
...
src/pages/order/receivingNote/deliveryNoteManage/edit.tsx
View file @
cf64fb48
...
...
@@ -22,6 +22,7 @@ import LogisticsCompanyMerchantsSelect from "@/components/LogisticsCompanySelect
import
{
DeliveryNumColumn
,
OrderNumColumn
}
from
"../../constants/table-column"
import
{
useLocation
}
from
"umi"
import
usePrompt
from
"@/hooks/usePrompt"
import
usePageTitle
from
"../../assets/hooks/usePageTitle"
const
{
useForm
}
=
Form
;
const
noteService
=
NoteFactoryService
.
getInstance
(
'receive'
);
...
...
@@ -39,6 +40,7 @@ function DeliveryNoteAddForm() {
const
service
=
new
ReceiveOrderUpdate
(
form
);
service
.
setTableData
(
tableDataSource
)
const
{
renderPrompt
,
handleLeave
}
=
usePrompt
()
const
{
title
,
setReceiveTitle
}
=
usePageTitle
()
const
[
anchors
,
setAnchors
]
=
useState
<
AnchorsItem
[]
>
(()
=>
{
return
[
...
...
@@ -57,6 +59,7 @@ function DeliveryNoteAddForm() {
});
noteService
.
getDetailInfoById
(
id
).
then
(
res
=>
{
setReceiveTitle
(
res
)
const
target
=
{
...
service
.
formatField
(
res
),
"executorVO.phone"
:
res
?.
executorVO
?.
phone
,
...
...
@@ -71,6 +74,7 @@ function DeliveryNoteAddForm() {
id
:
id
,
...
target
})
setOuterHistoryList
(
res
?.
outerHistoryList
)
})
...
...
@@ -98,7 +102,7 @@ function DeliveryNoteAddForm() {
}
return
(
<
AnchorPage
title=
{
ReceiptAddLabel
}
<
AnchorPage
title=
{
title
}
anchors=
{
anchors
}
extra=
{
<
Button
onClick=
{
()
=>
handleSubmit
()
}
type=
"primary"
>
...
...
src/pages/order/receivingNote/deliveryNoteQuery/details.tsx
View file @
cf64fb48
...
...
@@ -12,6 +12,7 @@ import ReceiveNoteFacotry from '../../assets/handles/ReceiveNotePage'
import
{
useLocation
}
from
'umi'
import
{
DeliveryNoticeTableColumn
,
DeliveryNoticeTableColumnSRM
,
ExternalRoamRecordTableColumn
}
from
'../../constants/page-table-column'
import
{
DeliveryNumColumn
}
from
'../../constants/table-column'
import
usePageTitle
from
'../../assets/hooks/usePageTitle'
const
service
=
ReceiveNoteFacotry
.
getInstance
(
'Query'
)
...
...
@@ -26,14 +27,16 @@ const DeliveryNoteDetails: React.FC = () => {
const
{
id
}
=
(
location
as
any
).
query
const
[
outerHistoryList
,
setOuterHistoryList
]
=
useState
([])
const
{
title
,
setDeliveryTitle
}
=
usePageTitle
()
useEffect
(()
=>
{
Promise
.
all
([
service
.
getDetailById
(
id
),
service
.
getDetailProduct
({
id
,
current
:
"1"
})
]).
then
(
values
=>
{
console
.
log
(
values
[
0
])
setDeliveryTitle
(
values
[
0
])
setInfo
(
values
[
0
])
setTableDataSource
(
values
[
1
].
data
)
setOuterHistoryList
(
values
[
0
]?.
outerHistoryList
)
...
...
@@ -60,7 +63,7 @@ const DeliveryNoteDetails: React.FC = () => {
return
(
<
AnchorPage
title=
"送货单详情"
title=
{
title
}
anchors=
{
anchors
}
>
...
...
src/pages/order/receivingNote/deliveryNoteQuery/edit.tsx
View file @
cf64fb48
...
...
@@ -23,6 +23,7 @@ import { DeliveryNumColumn, OrderNumColumn } from "../../constants/table-column"
import
{
useLocation
}
from
"umi"
import
ReceiveNoteFacotry
from
"../../assets/handles/ReceiveNotePage"
import
usePrompt
from
"@/hooks/usePrompt"
import
usePageTitle
from
"../../assets/hooks/usePageTitle"
const
{
useForm
}
=
Form
;
const
noteService
=
ReceiveNoteFacotry
.
getInstance
(
'Manage'
)
...
...
@@ -42,6 +43,7 @@ function DeliveryNoteAddForm() {
service
.
setTableData
(
tableDataSource
)
const
{
renderPrompt
,
handleLeave
}
=
usePrompt
()
const
{
title
,
setDeliveryTitle
}
=
usePageTitle
()
const
[
anchors
,
setAnchors
]
=
useState
<
AnchorsItem
[]
>
(()
=>
{
return
[
...
...
@@ -62,6 +64,7 @@ function DeliveryNoteAddForm() {
...
res
})
setType
(
res
?.
type
)
setDeliveryTitle
(
res
)
})
service
.
getOrderDeliveryOrderDetailProductPage
(
id
).
then
(
res
=>
{
...
...
@@ -87,7 +90,7 @@ function DeliveryNoteAddForm() {
}
return
(
<
AnchorPage
title=
{
ReceiptAddLabel
}
<
AnchorPage
title=
{
title
}
anchors=
{
anchors
}
extra=
{
<
Button
onClick=
{
()
=>
handleSubmit
()
}
type=
"primary"
>
...
...
src/pages/supplier/memberImport/index.tsx
View file @
cf64fb48
...
...
@@ -331,8 +331,16 @@ const MemberMaintain: React.FC<[]> = () => {
type="primary"
onClick={() => handleVisibleIntroduceDrewer(true)}
>
会员
引入
供应商
引入
</Button> */
}
<
AuthButton
btnCode=
"memberImport.introduce"
>
<
Button
type=
"primary"
onClick=
{
()
=>
handleVisibleIntroduceDrewer
(
true
)
}
>
供应商引入
</
Button
>
</
AuthButton
>
</
Space
>
</>
);
...
...
src/pages/supplier/memberQuery/index.tsx
View file @
cf64fb48
...
...
@@ -211,19 +211,19 @@ const MemberQuery: React.FC<{}> = () => {
};
const
ControllerBtns
=
()
=>
(
<></>
//
<Space>
//
<></>
<
Space
>
//
<AuthButton btnCode='profile.add' >
//
<Button
//
type="primary"
//
onClick={() => setModalVisible(true)}
//
>
//
<PlusOutlined />
//
{intl.formatMessage({ id: 'member.memberQuery.query.add' })}
//
</Button>
//
</AuthButton>
//
</Space>
<
AuthButton
btnCode=
'profile.add'
>
<
Button
type=
"primary"
onClick=
{
()
=>
setModalVisible
(
true
)
}
>
<
PlusOutlined
/>
{
intl
.
formatMessage
({
id
:
'member.memberQuery.query.add'
})
}
</
Button
>
</
AuthButton
>
</
Space
>
);
return
(
...
...
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