Commit 269e175e authored by Bill's avatar Bill

Merge branch 'dev' of 10.0.0.22:lingxi/lingxi-business-paltform into dev

parents 5af97bb5 1913e34c
...@@ -627,7 +627,7 @@ const CommodityDetail = (props) => { ...@@ -627,7 +627,7 @@ const CommodityDetail = (props) => {
const sessionKey = `inquiry${selectCommodityId}${new Date().getTime()}` const sessionKey = `inquiry${selectCommodityId}${new Date().getTime()}`
updateOrderInfo(inquiryParam, sessionKey).then(() => { updateOrderInfo(inquiryParam, sessionKey).then(() => {
window.location.href = `/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/rfq?id=${id}&memberId=${memberId}&spam_id=${sessionKey}` window.location.href = `/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/rfq?id=${id}&memberId=${memberId}&spam_id=${sessionKey}&commodityId=${id}`
}) })
} }
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
margin: 0; margin: 0;
&_item { &_item {
position: relative;
padding-left: 20px; padding-left: 20px;
padding-top: 12px; padding-top: 12px;
height: 56px; height: 56px;
......
...@@ -237,6 +237,7 @@ const Category: React.FC<CategoryPropsType> = (props) => { ...@@ -237,6 +237,7 @@ const Category: React.FC<CategoryPropsType> = (props) => {
switch(layoutType) { switch(layoutType) {
case LAYOUT_TYPE.mall: case LAYOUT_TYPE.mall:
case LAYOUT_TYPE.shopList:
onFilter({ onFilter({
type: FILTER_TYPE.category, type: FILTER_TYPE.category,
key: selectedKeys, key: selectedKeys,
......
...@@ -149,6 +149,12 @@ ...@@ -149,6 +149,12 @@
background-color: var(--mall_main_color); background-color: var(--mall_main_color);
cursor: pointer; cursor: pointer;
&[disabled] {
background: #F4F5F7;
border-color: #F4F5F7;
color: rgba(0, 0, 0, 0.25);
}
&:hover { &:hover {
opacity: .9; opacity: .9;
} }
......
...@@ -70,7 +70,7 @@ const Order: React.FC<OrderPropsType> = (props) => { ...@@ -70,7 +70,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
const [contracErrorInfo, setContracErrorInfo] = useState<any>() const [contracErrorInfo, setContracErrorInfo] = useState<any>()
const [electronicContractId, setElectronicContractId] = useState<number>() const [electronicContractId, setElectronicContractId] = useState<number>()
const [agreeSingLoading, setAgreeSignLoading] = useState<boolean>(false) const [agreeSingLoading, setAgreeSignLoading] = useState<boolean>(false)
const [btnDisabled] = useState<boolean>(false) const [btnDisabled, setBtnDisable] = useState<boolean>(true)
const { storeId } = useStoreId(getLayoutType(layoutType, Number(type))) const { storeId } = useStoreId(getLayoutType(layoutType, Number(type)))
useEffect(() => { useEffect(() => {
...@@ -131,6 +131,7 @@ const Order: React.FC<OrderPropsType> = (props) => { ...@@ -131,6 +131,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
if (sessionStorage.getItem(`contract${spam_id}`)) { if (sessionStorage.getItem(`contract${spam_id}`)) {
setContractInfo(JSON.parse(sessionStorage.getItem(`contract${spam_id}`))) setContractInfo(JSON.parse(sessionStorage.getItem(`contract${spam_id}`)))
setIsElectronicContract(true) setIsElectronicContract(true)
setBtnDisable(false)
} else { } else {
// 根据电子合同模板id获取生成电子合同 // 根据电子合同模板id获取生成电子合同
const param: any = { const param: any = {
...@@ -155,12 +156,19 @@ const Order: React.FC<OrderPropsType> = (props) => { ...@@ -155,12 +156,19 @@ const Order: React.FC<OrderPropsType> = (props) => {
setContracErrorInfo(signRes.message) setContracErrorInfo(signRes.message)
} }
setIsElectronicContract(true) setIsElectronicContract(true)
setBtnDisable(false)
} }
} else {
setBtnDisable(false)
} }
} else {
setBtnDisable(false)
} }
} catch (error) { } catch (error) {
console.log("获取交易规则失败") console.log("获取交易规则失败")
} }
} else {
setBtnDisable(false)
} }
} }
...@@ -193,8 +201,6 @@ const Order: React.FC<OrderPropsType> = (props) => { ...@@ -193,8 +201,6 @@ const Order: React.FC<OrderPropsType> = (props) => {
setSpinningState(false) setSpinningState(false)
} }
const renderLogisticsInfo = (type, logisticsInfo) => { const renderLogisticsInfo = (type, logisticsInfo) => {
switch (type) { switch (type) {
case 1: case 1:
......
...@@ -74,7 +74,10 @@ const PayPage: React.FC<PayPagePropsType> = (props) => { ...@@ -74,7 +74,10 @@ const PayPage: React.FC<PayPagePropsType> = (props) => {
}, [query]) }, [query])
const fetchOrderInfo = () => { const fetchOrderInfo = () => {
PublicApi.getOrderOrderPayDetails({ id: query.orderId }).then(res => { const param: any = {
id: query.orderId
}
PublicApi.getOrderOrderPayDetails(param).then(res => {
message.destroy() message.destroy()
setLoading(false) setLoading(false)
if (res.code === 1000) { if (res.code === 1000) {
......
...@@ -103,7 +103,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => { ...@@ -103,7 +103,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
const tempResult = [] const tempResult = []
for(const tempItem of result) { for(const tempItem of result) {
if (tempItem.id === item.commodityUnitPrice.commodity.storeId) { if (tempItem.id === item.commodityUnitPrice.commodity.storeId) {
const tempPriceRange = [] let tempPriceRange = []
const unitPrice = item.commodityUnitPrice.unitPrice const unitPrice = item.commodityUnitPrice.unitPrice
let parameter: any = 1 let parameter: any = 1
const isMemberPrice = item.commodityUnitPrice.commodity.isMemberPrice const isMemberPrice = item.commodityUnitPrice.commodity.isMemberPrice
...@@ -122,7 +122,11 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => { ...@@ -122,7 +122,11 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
price: isMemberPrice ? Number(unitPrice[key]) * Number(parameter) : unitPrice[key] price: isMemberPrice ? Number(unitPrice[key]) * Number(parameter) : unitPrice[key]
}) })
}) })
try {
tempPriceRange = tempPriceRange.sort((a, b) => a.price < b.price ? 1: -1)
} catch (error) {
console.log(error)
}
item.commodityUnitPrice['priceRange'] = tempPriceRange item.commodityUnitPrice['priceRange'] = tempPriceRange
tempItem.orderList = [...tempItem.orderList, item] tempItem.orderList = [...tempItem.orderList, item]
tempResult.push(tempItem) tempResult.push(tempItem)
...@@ -137,7 +141,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => { ...@@ -137,7 +141,7 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
temp.memberId = item.commodityUnitPrice.commodity.memberId temp.memberId = item.commodityUnitPrice.commodity.memberId
temp.memberRoleId = item.commodityUnitPrice.commodity.memberRoleId temp.memberRoleId = item.commodityUnitPrice.commodity.memberRoleId
temp.shopname = item.commodityUnitPrice.commodity.memberName temp.shopname = item.commodityUnitPrice.commodity.memberName
const tempPriceRange = [] let tempPriceRange = []
const unitPrice = item.commodityUnitPrice.unitPrice const unitPrice = item.commodityUnitPrice.unitPrice
let parameter: any = 1 let parameter: any = 1
const isMemberPrice = item.commodityUnitPrice.commodity.isMemberPrice const isMemberPrice = item.commodityUnitPrice.commodity.isMemberPrice
...@@ -156,7 +160,11 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => { ...@@ -156,7 +160,11 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
price: isMemberPrice ? Number(unitPrice[key]) * Number(parameter) : unitPrice[key] price: isMemberPrice ? Number(unitPrice[key]) * Number(parameter) : unitPrice[key]
}) })
}) })
try {
tempPriceRange = tempPriceRange.sort((a, b) => a.price < b.price ? 1: -1)
} catch (error) {
console.log(error)
}
item.commodityUnitPrice['priceRange'] = tempPriceRange item.commodityUnitPrice['priceRange'] = tempPriceRange
temp.orderList = [item] temp.orderList = [item]
result.push(temp) result.push(temp)
......
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