|
|
@@ -5,20 +5,21 @@
|
|
|
<view style="padding:0 0upx 0 20upx;" >
|
|
|
<button class="admin-button-com middle blue"
|
|
|
style="background-color:green;border:1upx solid green;margin-right:60upx;"
|
|
|
- @click="allOutSelectShop(1)">全部出库并入库到</button>
|
|
|
+ @click="allOutSelectShop(1)">全部调拨出库</button>
|
|
|
<button class="admin-button-com middle default" @click="clearAll()">清空全部库存</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="top-bar" style="margin-left:110upx;">实时</view>
|
|
|
+ <view class="top-bar" style="margin-left:80upx;">实时库存</view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
<t-tr header>
|
|
|
- <t-th><view style="width:240upx;text-align:left;">花材</view></t-th>
|
|
|
+ <t-th><view style="width:200upx;text-align:left;">花材</view></t-th>
|
|
|
<t-th>库存</t-th>
|
|
|
- <t-th>大客价</t-th>
|
|
|
- <t-th>批发价</t-th>
|
|
|
- <t-th>零售价</t-th>
|
|
|
+ <t-th>路上</t-th>
|
|
|
+ <t-th>大客</t-th>
|
|
|
+ <t-th>批发</t-th>
|
|
|
+ <t-th>零售</t-th>
|
|
|
<t-th><view @click="clearAllStock()">成本</view></t-th>
|
|
|
</t-tr>
|
|
|
<block v-if="!$util.isEmpty(classItemData)">
|
|
|
@@ -26,50 +27,55 @@
|
|
|
<block v-if="classItem.child && !$util.isEmpty(classItem.child)">
|
|
|
<t-tr>
|
|
|
<t-td>
|
|
|
- <text style="color:#3385FF;font-weight:bold;width:280upx;text-align:left;">
|
|
|
+ <text style="color:#3385FF;font-weight:bold;width:200upx;text-align:left;">
|
|
|
{{ classItem.className }}
|
|
|
</text>
|
|
|
</t-td>
|
|
|
<t-td></t-td>
|
|
|
<t-td></t-td>
|
|
|
+ <t-td></t-td>
|
|
|
+ <t-td></t-td>
|
|
|
+ <t-td></t-td>
|
|
|
+ <t-td></t-td>
|
|
|
</t-tr>
|
|
|
<template v-if="classItem.child && !$util.isEmpty(classItem.child)">
|
|
|
<block v-for="(productItem, productIndex) in classItem.child" :key="productIndex">
|
|
|
<t-tr>
|
|
|
<t-td>
|
|
|
- <view style="width:240upx;text-align:left;color:#333333;font-size:30upx;
|
|
|
- overflow: hidden; white-space: nowrap; text-overflow: ellipsis;"
|
|
|
- @click="pageTo({url:'/admin/item/detail',query:{id: productItem.id}})">
|
|
|
+ <view style="width:200upx;text-align:left;color:#333333;font-size:29upx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
{{productItem.name}}
|
|
|
</view>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view style="color:#333333;font-weight:bold;font-size:30upx;"
|
|
|
- @click="pageTo({url:'/admin/item/detail',query:{id: productItem.id}})">
|
|
|
- {{productItem.stock?parseFloat(productItem.stock):0}}
|
|
|
- </view>
|
|
|
+ <view style="color:#333333;font-weight:bold;font-size:29upx;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
+ {{productItem.stock?parseFloat(productItem.stock):0}}
|
|
|
+ </view>
|
|
|
+ </t-td>
|
|
|
+ <t-td>
|
|
|
+ <text v-if="Number(productItem.onStock)>0" style="color:#0a97a9;font-size:30upx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id,})">
|
|
|
+ {{productItem.onStock}}
|
|
|
+ </text>
|
|
|
+ <text v-else style="color:#0a97a9;font-size:30upx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id,})">
|
|
|
+ -
|
|
|
+ </text>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view style="font-size:30upx;"
|
|
|
- @click="pageTo({url:'/admin/item/detail',query:{id: productItem.id}})">
|
|
|
+ <view style="font-size:28upx;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
¥{{productItem.hjPrice?parseFloat(productItem.hjPrice):0}}
|
|
|
</view>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view style="color:#333333;font-weight:bold;font-size:30upx;"
|
|
|
- @click="pageTo({url:'/admin/item/detail',query:{id: productItem.id}})">
|
|
|
+ <view style="color:#3385FF;font-size:30upx;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
¥{{productItem.price?parseFloat(productItem.price):0}}
|
|
|
</view>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view style="font-size:30upx;"
|
|
|
- @click="pageTo({url:'/admin/item/detail',query:{id: productItem.id}})">
|
|
|
+ <view style="font-size:28upx;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
¥{{productItem.skPrice?parseFloat(productItem.skPrice):0}}
|
|
|
</view>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view style="font-size:30upx;"
|
|
|
- @click="pageTo({url:'/admin/item/detail',query:{id: productItem.id}})">
|
|
|
+ <view style="font-size:28upx;color:red;" @click="pageTo({url:'/admin/item/detail?id='+productItem.id})">
|
|
|
¥{{productItem.cost?parseFloat(productItem.cost):0}}
|
|
|
</view>
|
|
|
</t-td>
|