|
@@ -1,67 +1,70 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <view class="ex-page">
|
|
|
|
|
- <view class="main-view overscroll">
|
|
|
|
|
- <view class="space-view ex-info">
|
|
|
|
|
- <view class="info-cell">
|
|
|
|
|
- <view class="cell-label"> 操作</view>
|
|
|
|
|
- <view class="cell-value"> {{ dataInfo.adminName || "" }}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="info-cell">
|
|
|
|
|
- <view class="cell-label"> 日期</view>
|
|
|
|
|
- <view class="cell-value"> {{ dataInfo.updateTime ? dataInfo.updateTime.substr(5,11) : '' }}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="info-cell">
|
|
|
|
|
- <view class="cell-label"> 状态</view>
|
|
|
|
|
- <view class="cell-value"> {{ getItemStatusName(dataInfo.status) || "" }}</view >
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="info-cell">
|
|
|
|
|
- <view class="cell-label"> 备注</view>
|
|
|
|
|
- <view class="cell-value">
|
|
|
|
|
- {{ dataInfo.remark || "" }}
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+<view class="ex-page">
|
|
|
|
|
+ <view class="main-view overscroll">
|
|
|
|
|
+ <view class="space-view ex-info">
|
|
|
|
|
+ <view class="info-cell">
|
|
|
|
|
+ <view class="cell-label"> 操作</view>
|
|
|
|
|
+ <view class="cell-value"> {{ dataInfo.adminName || "" }}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="info-cell">
|
|
|
|
|
+ <view class="cell-label"> 日期</view>
|
|
|
|
|
+ <view class="cell-value"> {{ dataInfo.updateTime ? dataInfo.updateTime.substr(5,11) : '' }}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="info-cell">
|
|
|
|
|
+ <view class="cell-label"> 状态</view>
|
|
|
|
|
+ <view class="cell-value"> {{ getItemStatusName(dataInfo.status) || "" }}</view >
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="info-cell">
|
|
|
|
|
+ <view class="cell-label"> 备注</view>
|
|
|
|
|
+ <view class="cell-value">
|
|
|
|
|
+ {{ dataInfo.remark || "" }}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="space-view ex-table">
|
|
|
|
|
- <t-table>
|
|
|
|
|
- <t-tr header>
|
|
|
|
|
- <t-th><view style="width:245upx;text-align:left;color: #333333;">名称</view></t-th>
|
|
|
|
|
- <t-th><view style="text-align:left;color: #333333;">盘点前</view></t-th>
|
|
|
|
|
- <t-th><view style="text-align:left;color: #333333;">盘点后</view></t-th>
|
|
|
|
|
- <t-th><view style="text-align:left;color: #333333;">盈亏数</view></t-th>
|
|
|
|
|
- </t-tr>
|
|
|
|
|
- <t-tr v-for="(item, index) in dataInfo.itemInfo || []" :key="index">
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="space-view ex-table">
|
|
|
|
|
+ <t-table>
|
|
|
|
|
+ <t-tr header>
|
|
|
|
|
+ <t-th><view style="width:245upx;text-align:left;color: #333333;">名称</view></t-th>
|
|
|
|
|
+ <t-th><view style="text-align:left;color: #333333;">盘点前</view></t-th>
|
|
|
|
|
+ <t-th><view style="text-align:left;color: #333333;">盘点后</view></t-th>
|
|
|
|
|
+ <t-th><view style="text-align:left;color: #333333;">盈亏数</view></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" style="width:245upx;">
|
|
|
|
|
- <image class="icon-image" :src="item.itemCover" @click.stop="goToStockDetail(item.id)" />
|
|
|
|
|
- <view class="icon-info" @click.stop="goToStockDetail(item.id)">
|
|
|
|
|
- <view class="info-name"> {{ item.itemName }} </view>
|
|
|
|
|
- <view class="info-type"></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view v-else-if="column.custom == 'stock'" @click.stop="goToStockDetail(item.id)" style="color: #333333;">
|
|
|
|
|
- <text>{{ item.bigNumStock }}扎</text>
|
|
|
|
|
- <text v-if="Number(item.smallNumStock)>0">{{ item.smallNumStock }}支</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view v-else-if="column.custom == 'inventory'" @click.stop="goToStockDetail(item.id)" style="color: #333333;">
|
|
|
|
|
- <text>{{ item.bigNum }}扎</text>
|
|
|
|
|
- <text v-if="Number(item.smallNum)>0">{{ item.smallNum }}支</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view v-else-if="column.custom == 'profit'" @click.stop="goToStockDetail(item.id)" style="color: #333333;">
|
|
|
|
|
- <text>{{ item.bigNumProfitLoss }}扎</text>
|
|
|
|
|
- <text v-if="Number(item.smallNumProfitLoss)>0">{{ item.smallNumProfitLoss }}支</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view v-else @click.stop="goToStockDetail(item.id)" style="color: #333333;">{{ item[column.dataIndex] || "" }}</view>
|
|
|
|
|
- </t-td>
|
|
|
|
|
|
|
+ <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" style="width:245upx;">
|
|
|
|
|
+ <image class="icon-image" :src="item.itemCover" @click.stop="goToStockDetail(item.id)" />
|
|
|
|
|
+ <view class="icon-info" @click.stop="goToStockDetail(item.id)">
|
|
|
|
|
+ <view class="info-name"> {{ item.itemName }} </view>
|
|
|
|
|
+ <view class="info-type"></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else-if="column.custom == 'stock'" @click.stop="goToStockDetail(item.id)"
|
|
|
|
|
+ :class="[ item.bigNumProfitLoss == 0 ? 'normal-show' : 'error-show']">
|
|
|
|
|
+ <text>{{ item.bigNumStock }}扎</text>
|
|
|
|
|
+ <text v-if="Number(item.smallNumStock)>0">{{ item.smallNumStock }}支</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else-if="column.custom == 'inventory'" @click.stop="goToStockDetail(item.id)"
|
|
|
|
|
+ :class="[ item.bigNumProfitLoss == 0 ? 'normal-show' : 'error-show']">
|
|
|
|
|
+ <text>{{ item.bigNum }}扎</text>
|
|
|
|
|
+ <text v-if="Number(item.smallNum)>0">{{ item.smallNum }}支</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else-if="column.custom == 'profit'" @click.stop="goToStockDetail(item.id)"
|
|
|
|
|
+ :class="[ item.bigNumProfitLoss == 0 ? 'normal-show' : 'error-show']">
|
|
|
|
|
+ <text>{{ item.bigNumProfitLoss }}扎</text>
|
|
|
|
|
+ <text v-if="Number(item.smallNumProfitLoss)>0">{{ item.smallNumProfitLoss }}支</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else @click.stop="goToStockDetail(item.id)" style="color: #333333;">{{ item[column.dataIndex] || "" }}</view>
|
|
|
|
|
+ </t-td>
|
|
|
|
|
|
|
|
- </t-tr>
|
|
|
|
|
- </t-table>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="bar-view">
|
|
|
|
|
- <view class="info-view"> 盈亏合计 <text class="price-item"> {{ sumCount }}扎 </text> </view>
|
|
|
|
|
|
|
+ </t-tr>
|
|
|
|
|
+ </t-table>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="bar-view">
|
|
|
|
|
+ <view class="info-view"> 盈亏合计 <text class="price-item"> {{ sumCount }}扎 </text> </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import { getCheckOrderDetailApi } from "@/api/inventory/index";
|
|
import { getCheckOrderDetailApi } from "@/api/inventory/index";
|
|
@@ -267,5 +270,13 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ .normal-show{
|
|
|
|
|
+ color: #333333;
|
|
|
|
|
+ }
|
|
|
|
|
+ .error-show{
|
|
|
|
|
+ color: red;
|
|
|
|
|
+ font-weight:bold;
|
|
|
|
|
+ font-size:25upx;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|