|
@@ -8,7 +8,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-cell">
|
|
<view class="info-cell">
|
|
|
<view class="cell-label"> 日期</view>
|
|
<view class="cell-label"> 日期</view>
|
|
|
- <view class="cell-value"> {{ dataInfo.updateTime || "" }}</view>
|
|
|
|
|
|
|
+ <view class="cell-value"> {{ dataInfo.updateTime ? dataInfo.updateTime.substr(5,11) : '' }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info-cell">
|
|
<view class="info-cell">
|
|
|
<view class="cell-label"> 状态</view>
|
|
<view class="cell-label"> 状态</view>
|
|
@@ -24,36 +24,38 @@
|
|
|
<view class="space-view ex-table">
|
|
<view class="space-view ex-table">
|
|
|
<t-table>
|
|
<t-table>
|
|
|
<t-tr header>
|
|
<t-tr header>
|
|
|
- <t-th><view style="width:245upx;">名称</view></t-th>
|
|
|
|
|
- <t-th><view>盘点前</view></t-th>
|
|
|
|
|
- <t-th><view>盘点后</view></t-th>
|
|
|
|
|
- <t-th><view>盈亏数</view></t-th>
|
|
|
|
|
|
|
+ <t-th><view style="width:245upx;text-align:left;">名称</view></t-th>
|
|
|
|
|
+ <t-th><view style="text-align:left;">盘点前</view></t-th>
|
|
|
|
|
+ <t-th><view style="text-align:left;">盘点后</view></t-th>
|
|
|
|
|
+ <t-th><view style="text-align:left;">盈亏数</view></t-th>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
<t-tr v-for="(item, index) in dataInfo.itemInfo || []" :key="index">
|
|
<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" />
|
|
|
|
|
- <view class="icon-info">
|
|
|
|
|
- <view class="info-name">
|
|
|
|
|
- {{ item.itemName }}
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <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 class="info-type"></view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
- <view v-else-if="column.custom == 'stock'">
|
|
|
|
|
- <text>{{ item.bigNumStock }}扎</text>
|
|
|
|
|
- <text>{{ item.smallNumStock }}支</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view v-else-if="column.custom == 'inventory'">
|
|
|
|
|
- <text>{{ item.bigNum }}扎</text>
|
|
|
|
|
- <text>{{ item.smallNum }}支</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view v-else-if="column.custom == 'profit'">
|
|
|
|
|
- <text>{{ item.bigNumProfitLoss }}扎</text>
|
|
|
|
|
- <text>{{ item.smallNumProfitLoss }}支</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view v-else>{{ item[column.dataIndex] || "" }}</view>
|
|
|
|
|
- </t-td>
|
|
|
|
|
|
|
+ <view v-else-if="column.custom == 'stock'" @click.stop="goToStockDetail(item.id)">
|
|
|
|
|
+ <text>{{ item.bigNumStock }}扎</text>
|
|
|
|
|
+ <text>{{ item.smallNumStock }}支</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else-if="column.custom == 'inventory'" @click.stop="goToStockDetail(item.id)">
|
|
|
|
|
+ <text>{{ item.bigNum }}扎</text>
|
|
|
|
|
+ <text>{{ item.smallNum }}支</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else-if="column.custom == 'profit'" @click.stop="goToStockDetail(item.id)">
|
|
|
|
|
+ <text>{{ item.bigNumProfitLoss }}扎</text>
|
|
|
|
|
+ <text>{{ item.smallNumProfitLoss }}支</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else @click.stop="goToStockDetail(item.id)">{{ item[column.dataIndex] || "" }}</view>
|
|
|
|
|
+ </t-td>
|
|
|
|
|
+
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
</t-table>
|
|
</t-table>
|
|
|
</view>
|
|
</view>
|
|
@@ -155,6 +157,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ goToStockDetail(id){
|
|
|
|
|
+ this.$util.pageTo({url: "/pagesStorehouse/stockWarn/detailed?id="+id})
|
|
|
|
|
+ },
|
|
|
async initData() {
|
|
async initData() {
|
|
|
try {
|
|
try {
|
|
|
const { data } = await getCheckOrderDetailApi(this.orderSn);
|
|
const { data } = await getCheckOrderDetailApi(this.orderSn);
|
|
@@ -220,6 +225,7 @@ export default {
|
|
|
width: 50upx;
|
|
width: 50upx;
|
|
|
height: 50upx;
|
|
height: 50upx;
|
|
|
margin-right: 20upx;
|
|
margin-right: 20upx;
|
|
|
|
|
+ border-radius: 8upx;
|
|
|
}
|
|
}
|
|
|
.icon-info {
|
|
.icon-info {
|
|
|
display: flex;
|
|
display: flex;
|