Commit 307b468a authored by XieZhiXiong's avatar XieZhiXiong
parents 0e90bf24 42bc3820
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
background-color: #fff; background-color: #fff;
border-radius: 8px; border-radius: 8px;
height: 361px; height: 361px;
overflow-y: scroll;
.header { .header {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
...@@ -32,7 +34,7 @@ ...@@ -32,7 +34,7 @@
.date { .date {
margin-right: 16px; margin-right: 16px;
padding: 2px 6px; // padding: 2px 6px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
text-align: center; text-align: center;
......
import React, { useRef } from 'react'; import React, { useRef } from 'react';
import Table from '@/pages/transaction/components/tableLayout'; import Table from '@/pages/transaction/components/tableLayout';
import { history } from 'umi'; import { history } from 'umi';
import { Tag, Button } from 'antd'; import { Tag, Button, Modal } from 'antd';
import { ColumnType } from 'antd/lib/table/interface'; import { ColumnType } from 'antd/lib/table/interface';
import EyePreview from '@/components/EyePreview'; import EyePreview from '@/components/EyePreview';
import moment from 'moment'; import moment from 'moment';
...@@ -31,7 +31,7 @@ const InquirySearch = () => { ...@@ -31,7 +31,7 @@ const InquirySearch = () => {
setTimeout(() => { setTimeout(() => {
window.location.replace(`/memberCenter/tranactionAbility/productInquiry/waitAddInquiry/two?id=${id}`); window.location.replace(`/memberCenter/tranactionAbility/productInquiry/waitAddInquiry/two?id=${id}`);
}, 800); }, 800);
}).catch(err => {}) }).catch(err => { })
} }
const columns: ColumnType<any>[] = [ const columns: ColumnType<any>[] = [
...@@ -84,9 +84,19 @@ const InquirySearch = () => { ...@@ -84,9 +84,19 @@ const InquirySearch = () => {
{record.isShowQuote && ( {record.isShowQuote && (
<Button onClick={() => history.push(`/memberCenter/tranactionAbility/inquiryOffer/waitAddOffer/offer?id=${record.id}`)} type='link'>报价</Button> <Button onClick={() => history.push(`/memberCenter/tranactionAbility/inquiryOffer/waitAddOffer/offer?id=${record.id}`)} type='link'>报价</Button>
)} )}
{(record.isShowSecondInquiry) && ( {(record.isShowSecondInquiry === true) && (
<Button type='link' onClick={() => secondInquiry(record.id)}>二次询价</Button> <Button type='link' onClick={() => secondInquiry(record.id)}>二次询价</Button>
)} )}
{(record.isShowSecondInquiry === false) && (
<Button
type='link'
onClick={() => Modal.info({
content: '当前询价单商品中存在不同的上游供应商不可直接转二次询价,请手工进行询价!'
})}
>
二次询价
</Button>
)}
</> </>
} }
]; ];
......
...@@ -13,13 +13,13 @@ export type RemindLayoutProps = { ...@@ -13,13 +13,13 @@ export type RemindLayoutProps = {
export const remindLayout = (int, giveType?, giftType?) => { export const remindLayout = (int, giveType?, giftType?) => {
const give = (giveType === 1 ? '满额': '买商品'); const give = (giveType === 1 ? '满额': '买商品');
const gift = (giftType === 1 ? '赠商品' : '赠优惠券'); const gift = (giftType === 1 ? '商品' : '优惠券');
switch(int) { switch(int) {
case 6: case 6:
return { return {
type: 'limitValue', type: 'limitValue',
modalTitle: `设置赠品-${give}${gift}`, modalTitle: `设置赠品-${give}${gift}`,
buttonTitle: '添加赠送商品', buttonTitle: `添加赠送${gift}`,
listTitle: `${give}${gift}`, listTitle: `${give}${gift}`,
label: { label: {
1: '优惠门槛', 1: '优惠门槛',
......
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