|
|
@@ -29,45 +29,60 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="space-view ex-table">
|
|
|
- <Tabel :columns="columns" :dataList="dataInfo.itemInfo || []">
|
|
|
- <template v-slot="{ row, column }">
|
|
|
- <view v-if="column.custom == 'icon'" class="list-icon">
|
|
|
- <image class="icon-image" :src="row.itemCover" alt="商品图" />
|
|
|
- <view class="icon-info">
|
|
|
- <view class="info-name">
|
|
|
- {{ row.itemName }}
|
|
|
- </view>
|
|
|
- <view class="info-type">
|
|
|
- B级
|
|
|
+ <t-table>
|
|
|
+ <t-tr header>
|
|
|
+ <t-th v-for="(item, index) in columns" :key="index" :align="item.align">
|
|
|
+ {{ item.name }}
|
|
|
+ </t-th>
|
|
|
+ </t-tr>
|
|
|
+ <t-tr v-for="(item, index) in dataInfo.itemInfo || []" :key="index">
|
|
|
+ <t-td
|
|
|
+ v-for="(column, colIndex) in columns"
|
|
|
+ :key="colIndex"
|
|
|
+ :align="column.align"
|
|
|
+ :color="column.color"
|
|
|
+ >
|
|
|
+ <view v-if="column.custom == 'icon'" class="list-icon">
|
|
|
+ <image class="icon-image" :src="item.itemCover" alt="商品图" />
|
|
|
+ <view class="icon-info">
|
|
|
+ <view class="info-name">
|
|
|
+ {{ item.itemName }}
|
|
|
+ </view>
|
|
|
+ <view class="info-type">
|
|
|
+ B级
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view v-else-if="column.custom == 'stock'">
|
|
|
- <text v-if="row.bigNum > 0">
|
|
|
- {{ `${row.bigNum}/` }}
|
|
|
- </text>
|
|
|
- <text>
|
|
|
- {{ row.smallNum }}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <view v-else-if="column.custom == 'inventory'">
|
|
|
- <text v-if="row.bigNumStock > 0">
|
|
|
- {{ `${row.bigNumStock}/` }}
|
|
|
- </text>
|
|
|
- <text>
|
|
|
- {{ row.smallNumStock }}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <view v-else-if="column.custom == 'profit'">
|
|
|
- <text v-if="row.bigNumProfitLoss > 0">
|
|
|
- {{ `${row.bigNumProfitLoss}/` }}
|
|
|
- </text>
|
|
|
- <text>
|
|
|
- {{ row.smallNumProfitLoss }}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </Tabel>
|
|
|
+ <view v-else-if="column.custom == 'stock'">
|
|
|
+ <text v-if="item.bigNum > 0">
|
|
|
+ {{ `${item.bigNum}/` }}
|
|
|
+ </text>
|
|
|
+ <text>
|
|
|
+ {{ item.smallNum }}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view v-else-if="column.custom == 'inventory'">
|
|
|
+ <text v-if="item.bigNumStock > 0">
|
|
|
+ {{ `${item.bigNumStock}/` }}
|
|
|
+ </text>
|
|
|
+ <text>
|
|
|
+ {{ item.smallNumStock }}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view v-else-if="column.custom == 'profit'">
|
|
|
+ <text v-if="item.bigNumProfitLoss > 0">
|
|
|
+ {{ `${item.bigNumProfitLoss}/` }}
|
|
|
+ </text>
|
|
|
+ <text>
|
|
|
+ {{ item.smallNumProfitLoss }}
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view v-else>
|
|
|
+ {{ item[column.dataIndex] || "" }}
|
|
|
+ </view>
|
|
|
+ </t-td>
|
|
|
+ </t-tr>
|
|
|
+ </t-table>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bar-view">
|
|
|
@@ -82,12 +97,11 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import Tabel from "@/components/app-table";
|
|
|
import { getCheckOrderDetailApi } from "@/api/inventory/index";
|
|
|
import { INVENTORY_STATUS } from "@/utils/declare";
|
|
|
|
|
|
export default {
|
|
|
- components: { Tabel },
|
|
|
+ components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
INVENTORY_STATUS,
|