瀏覽代碼

库存展示优化

shish 3 年之前
父節點
當前提交
0a286d7c8f
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      ghsApp/src/admin/stat/stock.vue

+ 6 - 5
ghsApp/src/admin/stat/stock.vue

@@ -13,21 +13,22 @@
 			<scroll-view scroll-y scroll-with-animation class="main-view">
 			<scroll-view scroll-y scroll-with-animation class="main-view">
 				<view class="space-view ex-table">
 				<view class="space-view ex-table">
 					<t-table :headerBackgroundColor="'#F0F2F6'">
 					<t-table :headerBackgroundColor="'#F0F2F6'">
-						<t-tr header><t-th>花材</t-th><t-th>库存</t-th><t-th>操作</t-th></t-tr>
+						<t-tr header><t-th><view style="width:240upx;text-align:left;">花材</view></t-th><t-th>库存</t-th><t-th>花店价</t-th><t-th>散客价</t-th></t-tr>
 						<block v-if="!$util.isEmpty(classItemData)">
 						<block v-if="!$util.isEmpty(classItemData)">
 							<block v-for="(classItem,classIndex) in classItemData" :key="classIndex">
 							<block v-for="(classItem,classIndex) in classItemData" :key="classIndex">
 								<block v-if="classItem.child && !$util.isEmpty(classItem.child)">
 								<block v-if="classItem.child && !$util.isEmpty(classItem.child)">
 									<t-tr>
 									<t-tr>
-										<t-td><text style="color:#3385FF;font-weight:bold;">{{ classItem.className }}</text></t-td>
+										<t-td><text style="color:#3385FF;font-weight:bold;width:240upx;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-tr>
 									</t-tr>
 									<template v-if="classItem.child && !$util.isEmpty(classItem.child)">
 									<template v-if="classItem.child && !$util.isEmpty(classItem.child)">
 										<block v-for="(productItem, productIndex) in classItem.child" :key="productIndex">
 										<block v-for="(productItem, productIndex) in classItem.child" :key="productIndex">
 											<t-tr>
 											<t-tr>
-												<t-td><view>{{productItem.name}}</view></t-td>
-												<t-td><view>{{productItem.stock?parseFloat(productItem.stock):0}}</view></t-td>
-												<t-td></t-td>
+												<t-td><view style="width:240upx;text-align:left;">{{productItem.name}}</view></t-td>
+												<t-td><view style="color:#333333;font-weight:bold;">{{productItem.stock?parseFloat(productItem.stock):0}}</view></t-td>
+												<t-td><view>{{productItem.price?parseFloat(productItem.price):0}}</view></t-td>
+												<t-td><view>{{productItem.skPrice?parseFloat(productItem.skPrice):0}}</view></t-td>
 											</t-tr>
 											</t-tr>
 										</block>
 										</block>
 									</template>
 									</template>