|
@@ -32,29 +32,29 @@
|
|
|
<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" >
|
|
<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;" @click.stop="goToStockDetail(item.id)">
|
|
|
|
|
|
|
+ <view v-if="column.custom == 'icon'" class="list-icon" style="width:245upx;" @click.stop="goToStockDetail(item)">
|
|
|
<image class="icon-image" :src="item.itemCover" />
|
|
<image class="icon-image" :src="item.itemCover" />
|
|
|
<view class="icon-info">
|
|
<view class="icon-info">
|
|
|
<view class="info-name"> {{ item.itemName }} </view>
|
|
<view class="info-name"> {{ item.itemName }} </view>
|
|
|
<view class="info-type"></view>
|
|
<view class="info-type"></view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-else-if="column.custom == 'stock'" @click.stop="goToStockDetail(item.id)"
|
|
|
|
|
|
|
+ <view v-else-if="column.custom == 'stock'" @click.stop="goToStockDetail(item)"
|
|
|
:class="[ item.bigNumProfitLoss == 0 ? 'normal-show' : 'error-show']">
|
|
:class="[ item.bigNumProfitLoss == 0 ? 'normal-show' : 'error-show']">
|
|
|
<text>{{ item.bigNumStock }}扎</text>
|
|
<text>{{ item.bigNumStock }}扎</text>
|
|
|
<text v-if="Number(item.smallNumStock)>0">{{ item.smallNumStock }}支</text>
|
|
<text v-if="Number(item.smallNumStock)>0">{{ item.smallNumStock }}支</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-else-if="column.custom == 'inventory'" @click.stop="goToStockDetail(item.id)"
|
|
|
|
|
|
|
+ <view v-else-if="column.custom == 'inventory'" @click.stop="goToStockDetail(item)"
|
|
|
:class="[ item.bigNumProfitLoss == 0 ? 'normal-show' : 'error-show']">
|
|
:class="[ item.bigNumProfitLoss == 0 ? 'normal-show' : 'error-show']">
|
|
|
<text>{{ item.bigNum }}扎</text>
|
|
<text>{{ item.bigNum }}扎</text>
|
|
|
<text v-if="Number(item.smallNum)>0">{{ item.smallNum }}支</text>
|
|
<text v-if="Number(item.smallNum)>0">{{ item.smallNum }}支</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-else-if="column.custom == 'profit'" @click.stop="goToStockDetail(item.id)"
|
|
|
|
|
|
|
+ <view v-else-if="column.custom == 'profit'" @click.stop="goToStockDetail(item)"
|
|
|
:class="[ item.bigNumProfitLoss == 0 ? 'normal-show' : 'error-show']">
|
|
:class="[ item.bigNumProfitLoss == 0 ? 'normal-show' : 'error-show']">
|
|
|
<text>{{ item.bigNumProfitLoss }}扎</text>
|
|
<text>{{ item.bigNumProfitLoss }}扎</text>
|
|
|
<text v-if="Number(item.smallNumProfitLoss)>0">{{ item.smallNumProfitLoss }}支</text>
|
|
<text v-if="Number(item.smallNumProfitLoss)>0">{{ item.smallNumProfitLoss }}支</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-else @click.stop="goToStockDetail(item.id)" style="color: #333333;">{{ item[column.dataIndex] || "" }}</view>
|
|
|
|
|
|
|
+ <view v-else @click.stop="goToStockDetail(item)" style="color: #333333;">{{ item[column.dataIndex] || "" }}</view>
|
|
|
</t-td>
|
|
</t-td>
|
|
|
|
|
|
|
|
</t-tr>
|
|
</t-tr>
|
|
@@ -158,8 +158,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- goToStockDetail(id){
|
|
|
|
|
- this.$util.pageTo({url: "/pagesStorehouse/stockWarn/detailed?id="+id})
|
|
|
|
|
|
|
+ goToStockDetail(item){
|
|
|
|
|
+ this.$util.pageTo({url: "/pagesStorehouse/stockWarn/detailed?id="+item.id+'&name='+item.itemName})
|
|
|
},
|
|
},
|
|
|
async initData() {
|
|
async initData() {
|
|
|
try {
|
|
try {
|