Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
project
jinfa-admin
Commits
036a0c11
Commit
036a0c11
authored
Dec 10, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:查询品牌详情参数id变更为审核品牌后的返回最新id
parent
a6fd8a0b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
17 deletions
+21
-17
app.tsx
src/app.tsx
+5
-1
index.ts
src/constants/index.ts
+4
-3
index.tsx
src/pages/commodity/effect/index.tsx
+1
-2
checkBrand.tsx
src/pages/trademark/trademarkWillCheck/checkBrand.tsx
+11
-11
No files found.
src/app.tsx
View file @
036a0c11
...
@@ -86,6 +86,10 @@ export function render(oldRender:Function) {
...
@@ -86,6 +86,10 @@ export function render(oldRender:Function) {
* @param {*} { routes, matchedRoutes, location, action }
* @param {*} { routes, matchedRoutes, location, action }
*/
*/
export
function
onRouteChange
({
routes
,
matchedRoutes
,
location
,
action
})
{
export
function
onRouteChange
({
routes
,
matchedRoutes
,
location
,
action
})
{
console
.
log
(
'onRouteChange'
)
// 路由切换时, 自动回到顶部
document
.
body
.
scrollTop
=
document
.
documentElement
.
scrollTop
=
0
;
if
(
isDev
)
{
if
(
isDev
)
{
console
.
log
(
'dev'
)
console
.
log
(
'dev'
)
return
;
return
;
...
@@ -123,7 +127,7 @@ export function onRouteChange({ routes, matchedRoutes, location, action }) {
...
@@ -123,7 +127,7 @@ export function onRouteChange({ routes, matchedRoutes, location, action }) {
history
.
replace
(
'/noAuth'
)
history
.
replace
(
'/noAuth'
)
}
else
{
}
else
{
// 未登录
// 未登录
if
(
whiteLists
.
includes
(
location
.
pathname
))
{
if
(
whiteLists
.
includes
(
location
.
pathname
))
{
// 访问路由在白名单里
// 访问路由在白名单里
}
else
{
}
else
{
...
...
src/constants/index.ts
View file @
036a0c11
...
@@ -586,6 +586,7 @@ export const PurchaseOrderOutWorkStateTexts = {
...
@@ -586,6 +586,7 @@ export const PurchaseOrderOutWorkStateTexts = {
export
const
PurchaseOrderInsideWorkStateTexts
=
{
export
const
PurchaseOrderInsideWorkStateTexts
=
{
"-1"
:
'取消订单'
,
"-1"
:
'取消订单'
,
0
:
'订单完成'
,
1
:
'新增采购订单'
,
1
:
'新增采购订单'
,
2
:
'一级审核订单'
,
2
:
'一级审核订单'
,
3
:
'二级审核订单'
,
3
:
'二级审核订单'
,
...
@@ -605,6 +606,7 @@ export const PurchaseOrderInsideWorkStateTexts = {
...
@@ -605,6 +606,7 @@ export const PurchaseOrderInsideWorkStateTexts = {
// 销售订单内部显示文案
// 销售订单内部显示文案
export
const
SaleOrderInsideWorkStateTexts
=
{
export
const
SaleOrderInsideWorkStateTexts
=
{
0
:
'订单完成'
,
1
:
'待审核订单'
,
1
:
'待审核订单'
,
2
:
'一级审核订单'
,
2
:
'一级审核订单'
,
3
:
'二级审核订单'
,
3
:
'二级审核订单'
,
...
@@ -615,7 +617,7 @@ export const SaleOrderInsideWorkStateTexts = {
...
@@ -615,7 +617,7 @@ export const SaleOrderInsideWorkStateTexts = {
8
:
'提交二级审核订单不通过'
,
8
:
'提交二级审核订单不通过'
,
9
:
'不接受订单'
,
9
:
'不接受订单'
,
10
:
'待确认支付结果'
,
10
:
'待确认支付结果'
,
16
:
'支付结果确认到账'
,
16
:
'支付结果确认到账'
,
17
:
'支付结果没到账'
,
17
:
'支付结果没到账'
,
18
:
'发货单创建'
,
18
:
'发货单创建'
,
...
@@ -651,4 +653,4 @@ export const InquiryStateTexts = {
...
@@ -651,4 +653,4 @@ export const InquiryStateTexts = {
2
:
'待确认'
,
2
:
'待确认'
,
3
:
'接受报价'
,
3
:
'接受报价'
,
4
:
'不接受报价'
,
4
:
'不接受报价'
,
}
}
\ No newline at end of file
src/pages/commodity/effect/index.tsx
View file @
036a0c11
...
@@ -27,4 +27,4 @@ export const searchCustomerCategoryOptionEffect = (context: any, fieldName: stri
...
@@ -27,4 +27,4 @@ export const searchCustomerCategoryOptionEffect = (context: any, fieldName: stri
})
})
})
})
})
})
}
}
\ No newline at end of file
src/pages/trademark/trademarkWillCheck/checkBrand.tsx
View file @
036a0c11
...
@@ -33,7 +33,7 @@ const CheckBrand: React.FC<{}> = () => {
...
@@ -33,7 +33,7 @@ const CheckBrand: React.FC<{}> = () => {
loadPageData
(
id
)
loadPageData
(
id
)
}
}
},
[])
},
[])
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
'序号'
,
title
:
'序号'
,
...
@@ -129,11 +129,11 @@ const CheckBrand: React.FC<{}> = () => {
...
@@ -129,11 +129,11 @@ const CheckBrand: React.FC<{}> = () => {
let
imgArray
=
Object
.
values
(
proveInfo
)
let
imgArray
=
Object
.
values
(
proveInfo
)
return
imgArray
.
map
((
item
:
any
,
index
:
number
)
=>
<
Col
key=
{
index
}
span=
{
3
}
xxl=
{
3
}
xl=
{
4
}
lg=
{
4
}
>
return
imgArray
.
map
((
item
:
any
,
index
:
number
)
=>
<
Col
key=
{
index
}
span=
{
3
}
xxl=
{
3
}
xl=
{
4
}
lg=
{
4
}
>
<
div
className=
{
styles
.
proveBox
}
>
<
div
className=
{
styles
.
proveBox
}
>
<
Image
<
Image
width=
{
175
}
width=
{
175
}
height=
{
120
}
height=
{
120
}
src=
{
item
}
src=
{
item
}
alt=
"品牌相关证明材料"
alt=
"品牌相关证明材料"
/>
/>
</
div
>
</
div
>
</
Col
>
</
Col
>
...
@@ -166,14 +166,14 @@ const CheckBrand: React.FC<{}> = () => {
...
@@ -166,14 +166,14 @@ const CheckBrand: React.FC<{}> = () => {
if
(
res
.
code
=
1000
){
if
(
res
.
code
=
1000
){
handleCancel
()
handleCancel
()
setDisableCheck
(
true
)
setDisableCheck
(
true
)
loadPageData
(
brandInfo
.
id
)
loadPageData
(
res
.
data
)
}
}
})
})
})
})
}
}
const
handleCancel
=
()
=>
{
const
handleCancel
=
()
=>
{
checkForm
.
resetFields
()
checkForm
.
resetFields
()
setVisibleModal
(
false
)
setVisibleModal
(
false
)
}
}
...
@@ -188,7 +188,7 @@ const CheckBrand: React.FC<{}> = () => {
...
@@ -188,7 +188,7 @@ const CheckBrand: React.FC<{}> = () => {
backIcon=
{
<
ReutrnEle
logoSrc=
{
brandInfo
?.
logoUrl
}
/>
}
backIcon=
{
<
ReutrnEle
logoSrc=
{
brandInfo
?.
logoUrl
}
/>
}
content=
{
content
}
content=
{
content
}
extra=
{
[
extra=
{
[
<
Button
<
Button
icon=
{
<
CheckSquareOutlined
/>
}
icon=
{
<
CheckSquareOutlined
/>
}
key=
"1"
key=
"1"
type=
"primary"
type=
"primary"
...
@@ -232,8 +232,8 @@ const CheckBrand: React.FC<{}> = () => {
...
@@ -232,8 +232,8 @@ const CheckBrand: React.FC<{}> = () => {
layout=
"vertical"
layout=
"vertical"
form=
{
checkForm
}
form=
{
checkForm
}
>
>
<
Form
.
Item
<
Form
.
Item
name=
"status"
name=
"status"
label=
""
label=
""
rules=
{
[
rules=
{
[
{
{
...
@@ -249,8 +249,8 @@ const CheckBrand: React.FC<{}> = () => {
...
@@ -249,8 +249,8 @@ const CheckBrand: React.FC<{}> = () => {
</
Radio
.
Group
>
</
Radio
.
Group
>
</
Form
.
Item
>
</
Form
.
Item
>
{
{
checkStatus
===
3
&&
<
Form
.
Item
checkStatus
===
3
&&
<
Form
.
Item
name=
"checkRemark"
name=
"checkRemark"
label=
'审核不通过原因'
label=
'审核不通过原因'
rules=
{
[
rules=
{
[
{
{
...
...
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