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
79e9d1a3
Commit
79e9d1a3
authored
Apr 14, 2022
by
rainbowmorel@163.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-220418' into 20418order
parents
81e6013b
3c595203
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
45 deletions
+65
-45
index.tsx
src/pages/authConfig/portalSystem/index.tsx
+27
-18
index.tsx
...pages/systemSetting/salesmanManage/salesmanBind/index.tsx
+23
-17
index.tsx
...saction/dealAbility/inquiryOffer/waitAllotOrder/index.tsx
+15
-10
No files found.
src/pages/authConfig/portalSystem/index.tsx
View file @
79e9d1a3
...
@@ -8,6 +8,8 @@ import EyePreview from '@/components/EyePreview';
...
@@ -8,6 +8,8 @@ import EyePreview from '@/components/EyePreview';
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
getMemberStorePage
,
postMemberStoreDelete
,
postMemberStoreEnable
}
from
'@/services/MemberV2Api'
;
import
{
getMemberStorePage
,
postMemberStoreDelete
,
postMemberStoreEnable
}
from
'@/services/MemberV2Api'
;
import
StatusSwitch
from
'@/components/StatusSwitch'
;
import
StatusSwitch
from
'@/components/StatusSwitch'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
;
import
AuthButton
from
'@/components/AuthButton'
;
const
intl
=
getIntl
()
const
intl
=
getIntl
()
...
@@ -27,12 +29,14 @@ const PortalSystem = () => {
...
@@ -27,12 +29,14 @@ const PortalSystem = () => {
const
_delete
=
async
(
record
)
=>
{
const
_delete
=
async
(
record
)
=>
{
setConfirmLoading
(
true
)
setConfirmLoading
(
true
)
await
postMemberStoreDelete
({
id
:
record
.
id
}).
then
(
res
=>
{
await
postMemberStoreDelete
({
id
:
record
.
id
}).
then
(
res
=>
{
setConfirmLoading
(
false
)
setConfirmLoading
(
false
)
tableRef
.
current
.
reload
()
tableRef
.
current
.
reload
()
})
})
}
}
console
.
log
(
AuthUrl
(
'portalSystem.detail'
),
'portalSystem.detail'
)
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
intl
.
formatMessage
({
id
:
'portalSystem.mendiandaima'
,
defaultMessage
:
'门店代码'
}),
title
:
intl
.
formatMessage
({
id
:
'portalSystem.mendiandaima'
,
defaultMessage
:
'门店代码'
}),
...
@@ -43,7 +47,7 @@ const PortalSystem = () => {
...
@@ -43,7 +47,7 @@ const PortalSystem = () => {
title
:
intl
.
formatMessage
({
id
:
'portalSystem.mendianmingcheng'
,
defaultMessage
:
'门店名称'
}),
title
:
intl
.
formatMessage
({
id
:
'portalSystem.mendianmingcheng'
,
defaultMessage
:
'门店名称'
}),
key
:
'name'
,
key
:
'name'
,
dataIndex
:
'name'
,
dataIndex
:
'name'
,
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/memberCenter/systemSetting/authConfig/portalSystem/detail?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
render
:
(
text
,
record
)
=>
<
EyePreview
type=
{
AuthUrl
(
'portalSystem.detail'
)
?
'link'
:
'button'
}
url=
{
`/memberCenter/systemSetting/authConfig/portalSystem/detail?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'portalSystem.mendiandizhi'
,
defaultMessage
:
'门店地址'
}),
title
:
intl
.
formatMessage
({
id
:
'portalSystem.mendiandizhi'
,
defaultMessage
:
'门店地址'
}),
...
@@ -75,7 +79,7 @@ const PortalSystem = () => {
...
@@ -75,7 +79,7 @@ const PortalSystem = () => {
title
:
intl
.
formatMessage
({
id
:
'portalSystem.zhuangtai'
,
defaultMessage
:
'状态'
}),
title
:
intl
.
formatMessage
({
id
:
'portalSystem.zhuangtai'
,
defaultMessage
:
'状态'
}),
key
:
'status'
,
key
:
'status'
,
dataIndex
:
'status'
,
dataIndex
:
'status'
,
render
:
(
_text
,
record
)
=>
<
StatusSwitch
handleConfirm=
{
()
=>
handleStatus
(
record
)
}
record=
{
record
}
/
>
render
:
(
_text
,
record
)
=>
<
AuthButton
btnCode=
'portalSystem.status'
><
StatusSwitch
handleConfirm=
{
()
=>
handleStatus
(
record
)
}
record=
{
record
}
/></
AuthButton
>
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'portalSystem.caozuo'
,
defaultMessage
:
'操作'
}),
title
:
intl
.
formatMessage
({
id
:
'portalSystem.caozuo'
,
defaultMessage
:
'操作'
}),
...
@@ -83,13 +87,15 @@ const PortalSystem = () => {
...
@@ -83,13 +87,15 @@ const PortalSystem = () => {
dataIndex
:
'operate'
,
dataIndex
:
'operate'
,
render
:
(
_text
,
record
)
=>
(
render
:
(
_text
,
record
)
=>
(
<
Fragment
>
<
Fragment
>
{
record
.
showUpdate
&&
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/systemSetting/authConfig/portalSystem/edit?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'portalSystem.bianji'
,
defaultMessage
:
'编辑'
})
}
</
Button
>
}
{
record
.
showUpdate
&&
<
AuthButton
btnCode=
'portalSystem.eidt'
><
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/systemSetting/authConfig/portalSystem/edit?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'portalSystem.bianji'
,
defaultMessage
:
'编辑'
})
}
</
Button
></
Auth
Button
>
}
{
record
.
showDelete
&&
(
{
record
.
showDelete
&&
(
<
Popconfirm
title=
{
intl
.
formatMessage
({
id
:
'portalSystem.quedingyaoshanchuma'
,
defaultMessage
:
'确定要删除吗?'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'portalSystem.shi'
,
defaultMessage
:
'是'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'portalSystem.fou'
,
defaultMessage
:
'否'
})
}
onConfirm=
{
()
=>
_delete
(
record
)
}
okButtonProps=
{
{
loading
:
confirmLoading
}
}
>
<
AuthButton
btnCode=
'portalSystem.deletd'
>
<
Button
type=
'link'
>
<
Popconfirm
title=
{
intl
.
formatMessage
({
id
:
'portalSystem.quedingyaoshanchuma'
,
defaultMessage
:
'确定要删除吗?'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'portalSystem.shi'
,
defaultMessage
:
'是'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'portalSystem.fou'
,
defaultMessage
:
'否'
})
}
onConfirm=
{
()
=>
_delete
(
record
)
}
okButtonProps=
{
{
loading
:
confirmLoading
}
}
>
{
intl
.
formatMessage
({
id
:
'portalSystem.shanchu'
,
defaultMessage
:
'删除'
})
}
<
Button
type=
'link'
>
</
Button
>
{
intl
.
formatMessage
({
id
:
'portalSystem.shanchu'
,
defaultMessage
:
'删除'
})
}
</
Popconfirm
>
</
Button
>
</
Popconfirm
>
</
AuthButton
>
)
}
)
}
</
Fragment
>
</
Fragment
>
)
)
...
@@ -165,8 +171,8 @@ const PortalSystem = () => {
...
@@ -165,8 +171,8 @@ const PortalSystem = () => {
},
},
},
},
enum
:
[
enum
:
[
{
label
:
intl
.
formatMessage
({
id
:
'portalSystem.qiyong'
,
defaultMessage
:
'启用'
}),
value
:
1
},
{
label
:
intl
.
formatMessage
({
id
:
'portalSystem.qiyong'
,
defaultMessage
:
'启用'
}),
value
:
1
},
{
label
:
intl
.
formatMessage
({
id
:
'portalSystem.tingyong'
,
defaultMessage
:
'停用'
}),
value
:
0
},
{
label
:
intl
.
formatMessage
({
id
:
'portalSystem.tingyong'
,
defaultMessage
:
'停用'
}),
value
:
0
},
],
],
},
},
}
}
...
@@ -188,13 +194,16 @@ const PortalSystem = () => {
...
@@ -188,13 +194,16 @@ const PortalSystem = () => {
<
Row
>
<
Row
>
<
Col
span=
{
24
}
>
<
Col
span=
{
24
}
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
<
Button
<
AuthButton
btnCode=
'portalSystem.added'
>
type=
"primary"
<
Button
icon=
{
<
PlusOutlined
/>
}
type=
"primary"
onClick=
{
()
=>
history
.
push
(
`/memberCenter/systemSetting/authConfig/portalSystem/add`
)
}
icon=
{
<
PlusOutlined
/>
}
>
onClick=
{
()
=>
history
.
push
(
`/memberCenter/systemSetting/authConfig/portalSystem/add`
)
}
{
intl
.
formatMessage
({
id
:
'portalSystem.added'
,
defaultMessage
:
'新增'
})
}
>
</
Button
>
{
intl
.
formatMessage
({
id
:
'portalSystem.added'
,
defaultMessage
:
'新增'
})
}
</
Button
>
</
AuthButton
>
</
Space
>
</
Space
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
...
src/pages/systemSetting/salesmanManage/salesmanBind/index.tsx
View file @
79e9d1a3
...
@@ -7,6 +7,8 @@ import { ColumnType } from 'antd/lib/table/interface';
...
@@ -7,6 +7,8 @@ import { ColumnType } from 'antd/lib/table/interface';
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
getMemberAbilitySalesPage
,
postMemberAbilitySalesDelete
}
from
'@/services/MemberV2Api'
;
import
{
getMemberAbilitySalesPage
,
postMemberAbilitySalesDelete
}
from
'@/services/MemberV2Api'
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
;
const
intl
=
getIntl
()
const
intl
=
getIntl
()
...
@@ -35,7 +37,7 @@ const PortalSystem = () => {
...
@@ -35,7 +37,7 @@ const PortalSystem = () => {
title
:
intl
.
formatMessage
({
id
:
'channel.member.table.name'
}),
title
:
intl
.
formatMessage
({
id
:
'channel.member.table.name'
}),
key
:
'name'
,
key
:
'name'
,
dataIndex
:
'name'
,
dataIndex
:
'name'
,
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/memberCenter/systemSetting/salesmanManage/salesmanBind/detail?id=${record.userId}`
}
>
{
text
}
</
EyePreview
>
render
:
(
text
,
record
)
=>
<
EyePreview
type=
{
AuthUrl
(
'memberList.see'
)
?
'link'
:
'button'
}
url=
{
`/memberCenter/systemSetting/salesmanManage/salesmanBind/detail?id=${record.userId}`
}
>
{
text
}
</
EyePreview
>
},
},
{
{
title
:
intl
.
formatMessage
({
id
:
'channel.member.table.orgName'
}),
title
:
intl
.
formatMessage
({
id
:
'channel.member.table.orgName'
}),
...
@@ -63,16 +65,18 @@ const PortalSystem = () => {
...
@@ -63,16 +65,18 @@ const PortalSystem = () => {
dataIndex
:
'options'
,
dataIndex
:
'options'
,
render
:
(
text
:
any
,
record
:
any
)
=>
{
render
:
(
text
:
any
,
record
:
any
)
=>
{
return
<>
return
<>
<
Button
type=
'link'
onClick=
{
()
=>
updateItem
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'common.button.modify'
})
}
</
Button
>
<
AuthButton
btnCode=
'memberList.update'
><
Button
type=
'link'
onClick=
{
()
=>
updateItem
(
record
)
}
>
{
intl
.
formatMessage
({
id
:
'common.button.modify'
})
}
</
Button
></
Auth
Button
>
{
{
<
Popconfirm
<
AuthButton
btnCode=
'memberList.del'
>
title=
{
intl
.
formatMessage
({
id
:
'common.tip.option.confirm'
})
}
<
Popconfirm
onConfirm=
{
()
=>
deleteItem
(
record
)
}
title=
{
intl
.
formatMessage
({
id
:
'common.tip.option.confirm'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'common.button.yes'
})
}
onConfirm=
{
()
=>
deleteItem
(
record
)
}
cancelText=
{
intl
.
formatMessage
({
id
:
'common.button.no'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'common.button.yes'
})
}
>
cancelText=
{
intl
.
formatMessage
({
id
:
'common.button.no'
})
}
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'common.button.delete'
})
}
</
Button
>
>
</
Popconfirm
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'common.button.delete'
})
}
</
Button
>
</
Popconfirm
>
</
AuthButton
>
}
}
</>
</>
}
}
...
@@ -159,13 +163,15 @@ const PortalSystem = () => {
...
@@ -159,13 +163,15 @@ const PortalSystem = () => {
<
Row
>
<
Row
>
<
Col
span=
{
24
}
>
<
Col
span=
{
24
}
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
<
Button
<
AuthButton
btnCode=
'memberList.add'
>
type=
"primary"
<
Button
icon=
{
<
PlusOutlined
/>
}
type=
"primary"
onClick=
{
()
=>
history
.
push
(
`/memberCenter/systemSetting/salesmanManage/salesmanBind/add`
)
}
icon=
{
<
PlusOutlined
/>
}
>
onClick=
{
()
=>
history
.
push
(
`/memberCenter/systemSetting/salesmanManage/salesmanBind/add`
)
}
{
intl
.
formatMessage
({
id
:
'portalSystem.added'
,
defaultMessage
:
'新增'
})
}
>
</
Button
>
{
intl
.
formatMessage
({
id
:
'portalSystem.added'
,
defaultMessage
:
'新增'
})
}
</
Button
>
</
AuthButton
>
</
Space
>
</
Space
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
...
src/pages/transaction/dealAbility/inquiryOffer/waitAllotOrder/index.tsx
View file @
79e9d1a3
...
@@ -8,6 +8,8 @@ import { Row, Col, Button, Tag, Badge, Modal } from 'antd';
...
@@ -8,6 +8,8 @@ import { Row, Col, Button, Tag, Badge, Modal } from 'antd';
import
{
WAITALLOTORDERSCHEMA
}
from
'./schema'
;
import
{
WAITALLOTORDERSCHEMA
}
from
'./schema'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
EXTERNALSTATE_COLOR
,
INTERNALSTATE_COLOR
}
from
'@/pages/transaction/components/stateColor'
;
import
{
getTransactionProductInquiryExternalStateEnum
,
getTransactionProductInquiryInteriorStateEnum
,
getTransactionProductInquiryNotAssignedAssigned
,
getTransactionProductInquiryNotAssignedList
,
postTransactionProductInquiryNotAssignedAssignedBatch
}
from
'@/services/TransactionV2Api'
;
import
{
getTransactionProductInquiryExternalStateEnum
,
getTransactionProductInquiryInteriorStateEnum
,
getTransactionProductInquiryNotAssignedAssigned
,
getTransactionProductInquiryNotAssignedList
,
postTransactionProductInquiryNotAssignedAssignedBatch
}
from
'@/services/TransactionV2Api'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
;
import
AuthButton
from
'@/components/AuthButton'
;
const
intl
=
getIntl
();
const
intl
=
getIntl
();
const
WaitAllotOrder
=
()
=>
{
const
WaitAllotOrder
=
()
=>
{
...
@@ -21,10 +23,10 @@ const WaitAllotOrder = () => {
...
@@ -21,10 +23,10 @@ const WaitAllotOrder = () => {
const
fetchSubmitBatch
=
async
(
id
?:
string
,
index
?:
number
)
=>
{
const
fetchSubmitBatch
=
async
(
id
?:
string
,
index
?:
number
)
=>
{
let
res
=
null
;
let
res
=
null
;
if
(
id
)
{
if
(
id
)
{
setLoading
({
[
index
]:
true
})
setLoading
({
[
index
]:
true
})
res
=
await
getTransactionProductInquiryNotAssignedAssigned
({
inquiryId
:
id
})
res
=
await
getTransactionProductInquiryNotAssignedAssigned
({
inquiryId
:
id
})
}
else
{
}
else
{
setLoading
({
load
:
true
})
setLoading
({
load
:
true
})
res
=
await
postTransactionProductInquiryNotAssignedAssignedBatch
({
idList
:
rowkeys
});
res
=
await
postTransactionProductInquiryNotAssignedAssignedBatch
({
idList
:
rowkeys
});
}
}
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
...
@@ -44,6 +46,7 @@ const WaitAllotOrder = () => {
...
@@ -44,6 +46,7 @@ const WaitAllotOrder = () => {
key
:
'inquiryListNo'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
type=
{
AuthUrl
(
'waitAllotOrder.detail'
)
?
'link'
:
'button'
}
url=
{
`/memberCenter/tranactionAbility/inquiryOffer/waitAllotOrder/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryOffer/waitAllotOrder/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
},
},
{
{
...
@@ -90,7 +93,7 @@ const WaitAllotOrder = () => {
...
@@ -90,7 +93,7 @@ const WaitAllotOrder = () => {
title
:
intl
.
formatMessage
({
id
:
'dealAbility.caozuo'
}),
title
:
intl
.
formatMessage
({
id
:
'dealAbility.caozuo'
}),
key
:
'options'
,
key
:
'options'
,
dataIndex
:
'options'
,
dataIndex
:
'options'
,
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
<
Button
type=
'link'
loading=
{
loading
[
index
]
}
onClick=
{
()
=>
fetchSubmitBatch
(
record
.
id
,
index
)
}
>
领取
</
Button
>
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
<
AuthButton
btnCode=
'waitAllotOrder.collect'
><
Button
type=
'link'
loading=
{
loading
[
index
]
}
onClick=
{
()
=>
fetchSubmitBatch
(
record
.
id
,
index
)
}
>
领取
</
Button
></
Auth
Button
>
},
},
];
];
return
(
return
(
...
@@ -107,13 +110,15 @@ const WaitAllotOrder = () => {
...
@@ -107,13 +110,15 @@ const WaitAllotOrder = () => {
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
<
Button
<
AuthButton
btnCode=
'waitAllotOrder.batch'
>
loading=
{
loading
?.
load
}
<
Button
disabled=
{
rowkeys
.
length
===
0
}
loading=
{
loading
?.
load
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
disabled=
{
rowkeys
.
length
===
0
}
>
onClick=
{
()
=>
fetchSubmitBatch
()
}
批量领取
>
</
Button
>
批量领取
</
Button
>
</
AuthButton
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
}
}
...
...
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