Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
682f20de
Commit
682f20de
authored
Jun 06, 2022
by
张子雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feat/password
* master: Fix/goods Feat/settlement
parents
91ae5a71
eeae264d
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
25 additions
and
21 deletions
+25
-21
env.config.js
config/env.config.js
+4
-2
index.jsx
src/pages/GoodsManage/createModal/index.jsx
+1
-3
upload.jsx
src/pages/PaymentMange/ToExamine/upload.jsx
+8
-6
data.js
src/pages/PaymentMange/data.js
+1
-2
index.jsx
src/pages/PaymentMange/index.jsx
+1
-1
service.js
src/pages/PaymentMange/service.js
+5
-2
style.less
src/pages/PaymentMange/style.less
+1
-1
index.jsx
src/pages/ReconciliationQuery/index.jsx
+1
-1
index.jsx
src/pages/SettlementSheet/index.jsx
+1
-1
qiniu.js
src/services/qiniu.js
+2
-2
No files found.
config/env.config.js
View file @
682f20de
...
...
@@ -21,8 +21,10 @@ const prodApi = {
// goodsApi: 'https://sc-op-api.q-gp.com', // 测试环境打包域名,
goodsApi
:
'
https://sc-merchant-api.q-gp.com
'
,
// 线上环境打包域名
qiniuHost
:
'
https://appsync.lkbang.net
'
,
opapiHost
:
'
https://opapi.xyqb.com
'
,
querysApi
:
'
https://sc-settlement-api.q-gp.com
'
,
opapiHost
:
'
//talos.xyqb.com
'
,
// opapiHost: 'https://opapi.q-gp.com',
// querysApi: 'https://sc-settlement-api.q-gp.com',
querysApi
:
'
https://sc-merchant-api.q-gp.com/admin/merchant/sc-settlement
'
,
};
const
preProdApi
=
{
...
...
src/pages/GoodsManage/createModal/index.jsx
View file @
682f20de
...
...
@@ -349,9 +349,7 @@ class goodsManage extends Component {
if
(
validateSpuInfo
(
values
,
initData
,
editData
,
productType
))
return
;
editData
.
forEach
(
item
=>
{
item
.
productStockWarning
=
item
.
productStockWarning
<
0
?
0
:
item
.
productStockWarning
;
if
(
values
?.
imageList
)
{
item
.
imageList
=
values
?.
imageList
[
item
.
firstSpecValue
]
||
values
.
commonImageList
;
}
else
{
if
(
!
item
.
imageList
&&
!
item
.
imageList
.
length
)
{
item
.
imageList
=
values
.
commonImageList
||
[];
}
if
(
!
item
.
imageList
||
!
item
.
imageList
.
length
)
{
...
...
src/pages/PaymentMange/ToExamine/upload.jsx
View file @
682f20de
...
...
@@ -46,12 +46,14 @@ class PicturesWall extends React.Component {
};
customRequest
=
({
file
,
onError
,
onSuccess
})
=>
{
const
lastFile
=
file
.
name
.
split
(
'
.
'
);
const
index
=
lastFile
.
length
-
1
;
const
types
=
[
'
pdf
'
,
'
doc
'
,
'
docx
'
,
'
zip
'
,
'
rar
'
,
'
png
'
,
'
jpeg
'
];
if
(
!
types
.
includes
(
lastFile
[
index
]))
{
message
.
error
(
'
文件格式错误!
'
);
return
;
if
(
file
.
name
)
{
const
lastFile
=
file
.
name
.
split
(
'
.
'
);
const
index
=
lastFile
.
length
-
1
;
const
types
=
[
'
pdf
'
,
'
doc
'
,
'
docx
'
,
'
zip
'
,
'
rar
'
,
'
png
'
,
'
jpeg
'
];
if
(
!
types
.
includes
(
lastFile
[
index
]))
{
message
.
error
(
'
文件格式错误!
'
);
return
;
}
}
const
vm
=
this
;
const
name
=
file
.
name
+
file
.
uid
;
...
...
src/pages/PaymentMange/data.js
View file @
682f20de
...
...
@@ -141,11 +141,10 @@ export function columns(res, pages) {
{
title
:
'
操作
'
,
dataIndex
:
'
option
'
,
valueType
:
'
option
'
,
//
valueType: 'option',
key
:
'
option
'
,
align
:
'
center
'
,
fixed
:
'
right
'
,
width
:
80
,
render
:
(
_
,
row
)
=>
(
<
div
>
<
Button
...
...
src/pages/PaymentMange/index.jsx
View file @
682f20de
...
...
@@ -183,7 +183,7 @@ const PaymentMange = () => {
}
}
bordered
toolBarRender=
{
onToolBarRender
}
scroll=
{
{
x
:
'
1
700px
'
}
}
scroll=
{
{
x
:
'
1
00%
'
,
y
:
500
}
}
/>
<
ToExamineModal
...
...
src/pages/PaymentMange/service.js
View file @
682f20de
...
...
@@ -29,10 +29,13 @@ export async function query(params) {
}
export
async
function
qiniuToken
()
{
const
data
=
await
request
.
get
(
'
/upload/getToken
'
,
{
// const data = await request.get('/upload/getToken', {
// prefix: config.opapiHost,
// });
const
data
=
await
request
.
get
(
'
/api/kdsp/common/upload/token
'
,
{
prefix
:
config
.
opapiHost
,
});
return
data
?.
up
token
;
return
data
?.
data
?.
token
;
}
// 付款单导出
export
async
function
selfPaymentExport
(
params
)
{
...
...
src/pages/PaymentMange/style.less
View file @
682f20de
.button {
display: block;
margin
-bottom:
10px;
margin
: 0 auto
10px;
}
.uploadButton {
...
...
src/pages/ReconciliationQuery/index.jsx
View file @
682f20de
...
...
@@ -154,7 +154,7 @@ const ReconciliationQuery = () => {
rowSelection=
{
rowSelection
}
bordered
toolBarRender=
{
onToolBarRender
}
scroll=
{
{
x
:
'
100%
'
}
}
scroll=
{
{
x
:
'
100%
'
,
y
:
400
}
}
/>
</
PageHeaderWrapper
>
</
Spin
>
...
...
src/pages/SettlementSheet/index.jsx
View file @
682f20de
...
...
@@ -157,7 +157,7 @@ const SettlementSheet = () => {
rowSelection=
{
rowSelection
}
bordered
toolBarRender=
{
onToolBarRender
}
scroll=
{
{
x
:
'
100%
'
}
}
scroll=
{
{
x
:
'
100%
'
,
y
:
400
}
}
/>
</
PageHeaderWrapper
>
</
Spin
>
...
...
src/services/qiniu.js
View file @
682f20de
...
...
@@ -2,8 +2,8 @@ import request from '@/utils/request';
import
config
from
'
../../config/env.config
'
;
export
async
function
qiniuToken
()
{
const
data
=
await
request
.
get
(
'
/
upload/getT
oken
'
,
{
const
data
=
await
request
.
get
(
'
/
api/kdsp/common/upload/t
oken
'
,
{
prefix
:
config
.
opapiHost
,
});
return
data
?.
up
token
;
return
data
?.
data
?.
token
;
}
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