Commit ef9cc178 authored by 赵振东's avatar 赵振东

Merge branch 'v2-test' into 'v2-test'

47357 47409 求购需求单- 增加外部状态 币种符号 See merge request project/gaohuaxue-mobile-app!90 (cherry picked from commit 0814c0d5) a3ecf7df fix: 47422 询价单详情页-提供者 修改显示为询价会员字段 04e9bef7 feat: 47399 placeholder区分消费者和提供者 a54ebcec 47357 47409 求购需求单- 增加外部状态 币种符号
parent 8c7f2cb1
...@@ -363,7 +363,8 @@ export default { ...@@ -363,7 +363,8 @@ export default {
'order.filterBar.quotationAsTime': '报价截止时间', 'order.filterBar.quotationAsTime': '报价截止时间',
//查看询价单 //查看询价单
'order.checkXun.placeholder': '询价单摘要/询价单会员', 'order.checkXun.placeholder': '询价单摘要/询价会员',
'order.checkXun.placeholder.1': '询价单号/询价单摘要',
'order.checkXun.memberName': '被询价会员', 'order.checkXun.memberName': '被询价会员',
'order.checkXun.memberName.1': '询价会员', 'order.checkXun.memberName.1': '询价会员',
'order.checkXun.commodityId': '商品ID:', 'order.checkXun.commodityId': '商品ID:',
......
...@@ -165,15 +165,20 @@ const CheckInquiryOrder = () => { ...@@ -165,15 +165,20 @@ const CheckInquiryOrder = () => {
<NavBar <NavBar
title={''} title={''}
extra={ extra={
<SearchFilter <SearchFilter
value={innerValue} value={innerValue}
customLeftIcon={searchImg} customLeftIcon={searchImg}
onChange={handleChange} onChange={handleChange}
onSearch = {handleSearchSubmit} onSearch={handleSearchSubmit}
onRightIcon = {handleFilterPress} onRightIcon={handleFilterPress}
customRightIcon={'filter'} customRightIcon={'filter'}
placeholder = {t('order.checkXun.placeholder', '询价单摘要/询价单会员')} placeholder={
/>} role?.roleType === roleType.provider
? t('order.checkXun.placeholder', '询价单摘要/询价会员')
: t('order.checkXun.placeholder.1', '询价单号/询价单摘要')
}
/>
}
/> />
{/* <OrderNavBar {/* <OrderNavBar
placeholder={t('order.checkXun.placeholder', '询价单号/询价单摘要')} placeholder={t('order.checkXun.placeholder', '询价单号/询价单摘要')}
......
import React, { useRef, useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { import {
View, View,
Text, Text,
...@@ -143,13 +143,13 @@ const InquiryOrderDetail: FcRoute<'InquiryOrderDetail', Param> = props => { ...@@ -143,13 +143,13 @@ const InquiryOrderDetail: FcRoute<'InquiryOrderDetail', Param> = props => {
return ( return (
<View style={myStyle['Mcell-content']}> <View style={myStyle['Mcell-content']}>
<View style={myStyle['Mcell-item']}> <View style={myStyle['Mcell-item']}>
<Text style={myStyle['Mcell-text']}>{title}</Text> <Text style={myStyle['Mcell-text']}>{title}</Text>
<Text style={{ color: '#252D37' }}> <Text style={{ color: '#252D37' }}>
{item.formatNum {item.formatNum
? formatNum(Goods?.[value], 6) ? formatNum(Goods?.[value], 6)
: Goods?.[value]} : Goods?.[value]}
</Text> </Text>
</View> </View>
</View> </View>
); );
}} }}
...@@ -168,7 +168,7 @@ const InquiryOrderDetail: FcRoute<'InquiryOrderDetail', Param> = props => { ...@@ -168,7 +168,7 @@ const InquiryOrderDetail: FcRoute<'InquiryOrderDetail', Param> = props => {
}, },
{ {
title: t('order.checkXun.memberName', '被询价会员'), title: t('order.checkXun.memberName', '被询价会员'),
value: orderData?.memberName, value: orderData?.memberName, //服务消费者
}, },
{ {
title: t('order.requireOrder.detail', '需求摘要'), title: t('order.requireOrder.detail', '需求摘要'),
...@@ -315,6 +315,12 @@ const InquiryOrderDetail: FcRoute<'InquiryOrderDetail', Param> = props => { ...@@ -315,6 +315,12 @@ const InquiryOrderDetail: FcRoute<'InquiryOrderDetail', Param> = props => {
</View> </View>
{basicInfoList.map((item, index) => { {basicInfoList.map((item, index) => {
if (item.value) { if (item.value) {
if (index === 1 && role?.roleType === roleType.provider) {
item = {
title: t('order.checkXun.memberName.1'),
value: orderData?.inquiryListMemberName,
};
}
return renderCommonList(item, index); return renderCommonList(item, index);
} }
return false; return false;
......
...@@ -20,9 +20,11 @@ const CommodityItem = props => { ...@@ -20,9 +20,11 @@ const CommodityItem = props => {
求购需求单号: 求购需求单号:
{item.askPurchaseNo} {item.askPurchaseNo}
</Text> </Text>
{item?.status ? ( {item?.status || item?.outerStatus ? (
<Text style={myStyle['box-top-text']}> <Text style={myStyle['box-top-text']}>
{RequireOrderStatusEnum.getLabelByValue(item?.status)} {RequireOrderStatusEnum.getLabelByValue(
item?.status || item?.outerStatus,
)}
</Text> </Text>
) : null} ) : null}
</View> </View>
......
...@@ -227,7 +227,10 @@ const RequireOrderDetail = ({ route, navigation }: IProp) => { ...@@ -227,7 +227,10 @@ const RequireOrderDetail = ({ route, navigation }: IProp) => {
}} }}
> >
<Text>期望单价: </Text> <Text>期望单价: </Text>
<Text> {formatNum(Goods?.expectedUnitPrice, 6)}</Text> <Text>
{`${Goods?.currencySymbol}\t`}
{formatNum(Goods?.expectedUnitPrice, 6)}
</Text>
</View> </View>
</View> </View>
); );
......
...@@ -57,7 +57,7 @@ const RequirePriceOrderDetail: FcRoute< ...@@ -57,7 +57,7 @@ const RequirePriceOrderDetail: FcRoute<
const [askPurchaseData, setAskPurchaseData] = useState<AskPurchaseDataType>(); const [askPurchaseData, setAskPurchaseData] = useState<AskPurchaseDataType>();
const [popupVisibal, setPopupVisibal] = useState<boolean>(false); const [popupVisibal, setPopupVisibal] = useState<boolean>(false);
const [modalVisible, setModalVisible] = useState<boolean>(false); const [modalVisible, setModalVisible] = useState<boolean>(false);
const [popupInfo, setPopupInfo] = useState<PopupInfo>(); const [popupInfo, setPopupInfo] = useState<any>();
const insets = useSafeAreaInsets(); const insets = useSafeAreaInsets();
const fetchData = async () => { const fetchData = async () => {
console.log(quoteNoId, 'paramsparams', askPurchaseId); console.log(quoteNoId, 'paramsparams', askPurchaseId);
...@@ -144,6 +144,7 @@ const RequirePriceOrderDetail: FcRoute< ...@@ -144,6 +144,7 @@ const RequirePriceOrderDetail: FcRoute<
</Text> </Text>
<Text> <Text>
{t('order.requireOrder.expectedUnitPrice', '期望单价:')} {t('order.requireOrder.expectedUnitPrice', '期望单价:')}
{`${Goods?.currencySymbol}\t`}
{formatNum(Goods.expectedUnitPrice, 6)} {formatNum(Goods.expectedUnitPrice, 6)}
</Text> </Text>
</View> </View>
...@@ -160,10 +161,7 @@ const RequirePriceOrderDetail: FcRoute< ...@@ -160,10 +161,7 @@ const RequirePriceOrderDetail: FcRoute<
<Text <Text
onPress={() => { onPress={() => {
setPopupVisibal(!popupVisibal); setPopupVisibal(!popupVisibal);
setPopupInfo({ setPopupInfo(item);
supplierQuote: item.supplierQuote,
manufacturerPrice: item.manufacturerPrice,
});
}} }}
style={{ color: '#00A98F' }} style={{ color: '#00A98F' }}
> >
...@@ -596,12 +594,14 @@ const RequirePriceOrderDetail: FcRoute< ...@@ -596,12 +594,14 @@ const RequirePriceOrderDetail: FcRoute<
{t('order.requireOrder.supplierQuotation', '供应商报价')} {t('order.requireOrder.supplierQuotation', '供应商报价')}
</Text> </Text>
<Text style={myStyle['Popup-text']}> <Text style={myStyle['Popup-text']}>
{`${popupInfo?.currencySymbol}\t`}
{formatNum(popupInfo?.supplierQuote, 6)} {formatNum(popupInfo?.supplierQuote, 6)}
</Text> </Text>
</View> </View>
<View style={myStyle['Popup-content']}> <View style={myStyle['Popup-content']}>
<Text>{t('order.requireOrder.factoryQuotation', '厂家报价')}</Text> <Text>{t('order.requireOrder.factoryQuotation', '厂家报价')}</Text>
<Text style={myStyle['Popup-text']}> <Text style={myStyle['Popup-text']}>
{`${popupInfo?.currencySymbol}\t`}
{formatNum(popupInfo?.manufacturerPrice, 6)} {formatNum(popupInfo?.manufacturerPrice, 6)}
</Text> </Text>
</View> </View>
......
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