提交 844b2aa8 作者: e

feat: 优化产销列表页面

上级 bcb186bc
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
], ],
}) })
// 获取采购需求列表 // 获取采购需求列表
function getPurchaseList() { function getSupplyList() {
pageData.loading = true pageData.loading = true
ChanxiaoAPI.purchaseList(pageData.search) ChanxiaoAPI.purchaseList(pageData.search)
.then((res) => { .then((res) => {
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
}) })
} }
// 获取供应信息列表 // 获取供应信息列表
function getSupplyList() { function getPurchaseList() {
pageData.loading = true pageData.loading = true
ChanxiaoAPI.supplyList(pageData.search) ChanxiaoAPI.supplyList(pageData.search)
.then((res) => { .then((res) => {
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
</view> --> </view> -->
<view <view
v-if="pageData.currentTransactionTab === 2 && pageData.supplyInfos.length === 0" v-if="pageData.currentTransactionTab === 1 && pageData.supplyInfos.length === 0"
style="height: 528rpx" style="height: 528rpx"
> >
<fui-empty src="/static/images/no-data.png" title="暂无数据" /> <fui-empty src="/static/images/no-data.png" title="暂无数据" />
...@@ -348,7 +348,7 @@ ...@@ -348,7 +348,7 @@
<!-- 供应信息列表 --> <!-- 供应信息列表 -->
<template v-for="(info, index) in pageData.supplyInfos" :key="info.id"> <template v-for="(info, index) in pageData.supplyInfos" :key="info.id">
<view <view
v-show="pageData.currentTransactionTab === 2" v-show="pageData.currentTransactionTab === 1"
class="codefun-flex-row" class="codefun-flex-row"
:class="[index === 0 ? 'group_10' : 'group_12']" :class="[index === 0 ? 'group_10' : 'group_12']"
@click="onSupplyInfoClick(info)" @click="onSupplyInfoClick(info)"
...@@ -403,7 +403,7 @@ ...@@ -403,7 +403,7 @@
<!-- 采购需求列表 --> <!-- 采购需求列表 -->
<view <view
v-if="pageData.currentTransactionTab === 1 && pageData.purchaseDemands.length === 0" v-if="pageData.currentTransactionTab === 2 && pageData.purchaseDemands.length === 0"
style="height: 528rpx" style="height: 528rpx"
> >
<fui-empty src="/static/images/no-data.png" title="暂无数据" /> <fui-empty src="/static/images/no-data.png" title="暂无数据" />
...@@ -411,7 +411,7 @@ ...@@ -411,7 +411,7 @@
<view v-else> <view v-else>
<template v-for="(demand, index) in pageData.purchaseDemands" :key="demand.id"> <template v-for="(demand, index) in pageData.purchaseDemands" :key="demand.id">
<view <view
v-show="pageData.currentTransactionTab === 1" v-show="pageData.currentTransactionTab === 2"
class="codefun-flex-row codefun-items-center my-3" class="codefun-flex-row codefun-items-center my-3"
:class="[index === 0 ? 'group_2' : '', index === 1 ? 'group_6' : '']" :class="[index === 0 ? 'group_2' : '', index === 1 ? 'group_6' : '']"
@click="onPurchaseDemandClick(demand)" @click="onPurchaseDemandClick(demand)"
...@@ -460,7 +460,7 @@ ...@@ -460,7 +460,7 @@
</view> </view>
</view> </view>
<view <view
v-show="pageData.currentTransactionTab === 1" v-show="pageData.currentTransactionTab === 2"
class="codefun-flex-row codefun-justify-between codefun-items-center" class="codefun-flex-row codefun-justify-between codefun-items-center"
:class="[index === 0 ? 'group_5' : '', index === 1 ? 'group_9' : '']" :class="[index === 0 ? 'group_5' : '', index === 1 ? 'group_9' : '']"
> >
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论