Commit 682f20de authored by 张子雨's avatar 张子雨

Merge branch 'master' into feat/password

* master:
  Fix/goods
  Feat/settlement
parents 91ae5a71 eeae264d
...@@ -21,8 +21,10 @@ const prodApi = { ...@@ -21,8 +21,10 @@ const prodApi = {
// goodsApi: 'https://sc-op-api.q-gp.com', // 测试环境打包域名, // goodsApi: 'https://sc-op-api.q-gp.com', // 测试环境打包域名,
goodsApi: 'https://sc-merchant-api.q-gp.com', // 线上环境打包域名 goodsApi: 'https://sc-merchant-api.q-gp.com', // 线上环境打包域名
qiniuHost: 'https://appsync.lkbang.net', qiniuHost: 'https://appsync.lkbang.net',
opapiHost: 'https://opapi.xyqb.com', opapiHost: '//talos.xyqb.com',
querysApi: 'https://sc-settlement-api.q-gp.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 = { const preProdApi = {
......
...@@ -349,9 +349,7 @@ class goodsManage extends Component { ...@@ -349,9 +349,7 @@ class goodsManage extends Component {
if (validateSpuInfo(values, initData, editData, productType)) return; if (validateSpuInfo(values, initData, editData, productType)) return;
editData.forEach(item => { editData.forEach(item => {
item.productStockWarning = item.productStockWarning < 0 ? 0 : item.productStockWarning; item.productStockWarning = item.productStockWarning < 0 ? 0 : item.productStockWarning;
if (values?.imageList) { if (!item.imageList && !item.imageList.length) {
item.imageList = values?.imageList[item.firstSpecValue] || values.commonImageList;
} else {
item.imageList = values.commonImageList || []; item.imageList = values.commonImageList || [];
} }
if (!item.imageList || !item.imageList.length) { if (!item.imageList || !item.imageList.length) {
......
...@@ -46,6 +46,7 @@ class PicturesWall extends React.Component { ...@@ -46,6 +46,7 @@ class PicturesWall extends React.Component {
}; };
customRequest = ({ file, onError, onSuccess }) => { customRequest = ({ file, onError, onSuccess }) => {
if (file.name) {
const lastFile = file.name.split('.'); const lastFile = file.name.split('.');
const index = lastFile.length - 1; const index = lastFile.length - 1;
const types = ['pdf', 'doc', 'docx', 'zip', 'rar', 'png', 'jpeg']; const types = ['pdf', 'doc', 'docx', 'zip', 'rar', 'png', 'jpeg'];
...@@ -53,6 +54,7 @@ class PicturesWall extends React.Component { ...@@ -53,6 +54,7 @@ class PicturesWall extends React.Component {
message.error('文件格式错误!'); message.error('文件格式错误!');
return; return;
} }
}
const vm = this; const vm = this;
const name = file.name + file.uid; const name = file.name + file.uid;
const observable = qiniu.upload(file, file.name, token); const observable = qiniu.upload(file, file.name, token);
......
...@@ -141,11 +141,10 @@ export function columns(res, pages) { ...@@ -141,11 +141,10 @@ export function columns(res, pages) {
{ {
title: '操作', title: '操作',
dataIndex: 'option', dataIndex: 'option',
valueType: 'option', // valueType: 'option',
key: 'option', key: 'option',
align: 'center', align: 'center',
fixed: 'right', fixed: 'right',
width: 80,
render: (_, row) => ( render: (_, row) => (
<div> <div>
<Button <Button
......
...@@ -183,7 +183,7 @@ const PaymentMange = () => { ...@@ -183,7 +183,7 @@ const PaymentMange = () => {
}} }}
bordered bordered
toolBarRender={onToolBarRender} toolBarRender={onToolBarRender}
scroll={{ x: '1700px' }} scroll={{ x: '100%', y: 500 }}
/> />
<ToExamineModal <ToExamineModal
......
...@@ -29,10 +29,13 @@ export async function query(params) { ...@@ -29,10 +29,13 @@ export async function query(params) {
} }
export async function qiniuToken() { 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, prefix: config.opapiHost,
}); });
return data?.uptoken; return data?.data?.token;
} }
// 付款单导出 // 付款单导出
export async function selfPaymentExport(params) { export async function selfPaymentExport(params) {
......
.button { .button {
display: block; display: block;
margin-bottom: 10px; margin: 0 auto 10px;
} }
.uploadButton { .uploadButton {
......
...@@ -154,7 +154,7 @@ const ReconciliationQuery = () => { ...@@ -154,7 +154,7 @@ const ReconciliationQuery = () => {
rowSelection={rowSelection} rowSelection={rowSelection}
bordered bordered
toolBarRender={onToolBarRender} toolBarRender={onToolBarRender}
scroll={{ x: '100%' }} scroll={{ x: '100%', y: 400 }}
/> />
</PageHeaderWrapper> </PageHeaderWrapper>
</Spin> </Spin>
......
...@@ -157,7 +157,7 @@ const SettlementSheet = () => { ...@@ -157,7 +157,7 @@ const SettlementSheet = () => {
rowSelection={rowSelection} rowSelection={rowSelection}
bordered bordered
toolBarRender={onToolBarRender} toolBarRender={onToolBarRender}
scroll={{ x: '100%' }} scroll={{ x: '100%', y: 400 }}
/> />
</PageHeaderWrapper> </PageHeaderWrapper>
</Spin> </Spin>
......
...@@ -2,8 +2,8 @@ import request from '@/utils/request'; ...@@ -2,8 +2,8 @@ import request from '@/utils/request';
import config from '../../config/env.config'; import config from '../../config/env.config';
export async function qiniuToken() { export async function qiniuToken() {
const data = await request.get('/upload/getToken', { const data = await request.get('/api/kdsp/common/upload/token', {
prefix: config.opapiHost, prefix: config.opapiHost,
}); });
return data?.uptoken; return data?.data?.token;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment