|
|
@@ -54,19 +54,20 @@
|
|
|
</CellGroup>
|
|
|
</Form>
|
|
|
<div class="goods-details__content">
|
|
|
- <div class="">
|
|
|
+ <div class="submitbar">
|
|
|
<Button type="primary" @click="formRef?.submit" round block>采购下单</Button>
|
|
|
</div>
|
|
|
- <div class="" v-if="selectedDate">
|
|
|
+ <div class="titlebar" v-if="selectedDate">
|
|
|
<span>参考价(元/{{ getGoodsUnitName(details.goodsinfo?.unitid) }})</span>
|
|
|
<span>{{ selectedDate.unitprice }}</span>
|
|
|
</div>
|
|
|
<Divider>历史价格走势</Divider>
|
|
|
- <div class="">
|
|
|
- 走势图
|
|
|
+ <div class="chart">
|
|
|
+ <component :is="componentMap.get('chart')" :loading="loading" :data-list="chartData"
|
|
|
+ style="height:200px" />
|
|
|
</div>
|
|
|
<Divider>商品详情</Divider>
|
|
|
- <div class="">
|
|
|
+ <div class="gallery">
|
|
|
<template v-for="(url, index) in goodsImages" :key="index">
|
|
|
<img :src="url" alt="" />
|
|
|
</template>
|
|
|
@@ -92,6 +93,7 @@ import Long from 'long'
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['address', defineAsyncComponent(() => import('./components/address/index.vue'))],
|
|
|
+ ['chart', defineAsyncComponent(() => import('@mobile/components/modules/echarts-line/index.vue'))],
|
|
|
])
|
|
|
|
|
|
const { componentRef, componentId, openComponent, closeComponent, closeComponentEach } = useComponent()
|
|
|
@@ -100,7 +102,7 @@ const { getQueryStringToNumber, beforeRouteLeave } = useNavigation()
|
|
|
const wrstandardid = getQueryStringToNumber('wrstandardid')
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
|
|
|
-const { details, getWrstandardDetails } = useWrstandardDetails(wrstandardid)
|
|
|
+const { loading, details, chartData, getWrstandardDetails } = useWrstandardDetails(wrstandardid)
|
|
|
const { formData, formSubmit } = usePurchaseOrderDesting()
|
|
|
|
|
|
// 交割日期列表
|