|
|
@@ -32,33 +32,33 @@
|
|
|
<block v-if="!$util.isEmpty(outData.itemInfo)">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
<t-tr header>
|
|
|
- <t-th v-for="(item, index) in columns" :key="index" :align="item.align">
|
|
|
- {{ item.name }}
|
|
|
- </t-th>
|
|
|
+ <t-th><view style="width:280upx;">名称</view></t-th>
|
|
|
+ <t-th>出库前剩余</t-th>
|
|
|
+ <t-th>出库数</t-th>
|
|
|
+ <t-th>成本</t-th>
|
|
|
</t-tr>
|
|
|
<t-tr v-for="(item, index) in outData.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" @click.stop="pageTo({url:'/admin/item/detail',query:{id: item.productId}})">
|
|
|
- <view class="icon-info">
|
|
|
- <view class="info-name">
|
|
|
- {{ item.itemName }}
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <t-td>
|
|
|
+ <view style="width:280upx;text-align:center;color:#333333;font-size:28upx;font-weight:bold;" @click.stop="pageTo({url:'/admin/item/detail',query:{id: item.productId}})">
|
|
|
+ {{ item.itemName }}
|
|
|
</view>
|
|
|
- <view v-else-if="column.custom == 'stock'">
|
|
|
+ </t-td>
|
|
|
+ <t-td>
|
|
|
+ <view style="color:#333333;font-size:28upx;">
|
|
|
<text v-if="Number(item.bigNumStock)>0"> {{ item.bigNumStock }}扎</text>
|
|
|
<text v-if="Number(item.smallNumStock)>0">{{ item.smallNumStock }}支</text>
|
|
|
</view>
|
|
|
- <view v-else-if="column.custom == 'put'">
|
|
|
+ </t-td>
|
|
|
+ <t-td>
|
|
|
+ <view style="color:#333333;font-size:28upx;">
|
|
|
<text v-if="Number(item.bigNum)>0"> {{ item.bigNum }}扎</text>
|
|
|
<text v-if="Number(item.smallNum)>0">{{ item.smallNum }}支</text>
|
|
|
</view>
|
|
|
- <view v-else-if="column.custom == 'itemPrice'">
|
|
|
+ </t-td>
|
|
|
+ <t-td>
|
|
|
+ <view style="color:#333333;font-size:28upx;">
|
|
|
<text> ¥{{ item.itemPrice?parseFloat(item.itemPrice):0 }}</text>
|
|
|
</view>
|
|
|
- <view v-else>
|
|
|
- {{ item[column.dataIndex] || "" }}
|
|
|
- </view>
|
|
|
</t-td>
|
|
|
</t-tr>
|
|
|
</t-table>
|
|
|
@@ -90,13 +90,7 @@ export default {
|
|
|
return {
|
|
|
OUT_STATUS,
|
|
|
orderSn: "",
|
|
|
- outData: {},
|
|
|
- columns: [
|
|
|
- { name: "名称", custom: "icon" },
|
|
|
- { name: "库存", custom: "stock", width: 120, align: "center" },
|
|
|
- { name: "出库数", custom: "put", width: 120, align: "center" },
|
|
|
- { name: "成本", custom: "itemPrice", width: 120, align: "center" }
|
|
|
- ]
|
|
|
+ outData: {}
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
@@ -219,30 +213,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .ex-table {
|
|
|
- /deep/.list-icon {
|
|
|
- display: flex;
|
|
|
- .icon-image {
|
|
|
- width: 80upx;
|
|
|
- height: 80upx;
|
|
|
- margin-right: 20upx;
|
|
|
- }
|
|
|
- .icon-info {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: space-around;
|
|
|
- .info-name {
|
|
|
- font-size: 28upx;
|
|
|
- font-weight: bold;
|
|
|
- color: #333333;
|
|
|
- }
|
|
|
- .info-type {
|
|
|
- font-size: 24upx;
|
|
|
- color: #666666;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
.bar-view {
|
|
|
display: flex;
|