shish 3 жил өмнө
parent
commit
4c2a61f78d

+ 8 - 28
ghsApp/src/admin/staff/achieve.vue

@@ -9,16 +9,16 @@
 				<block v-if="!$util.isEmpty(list.data)">
 					<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>名称</t-th>
+							<t-th>批发</t-th>
+							<t-th>零售</t-th>
+							<t-th>合计</t-th>
 						</t-tr>
 						<t-tr v-for="(item, index) in list.data" :key="index">
-							<t-td v-for="(column, colIndex) in columns" :key="colIndex" :align="column.align" :color="column.color">
-								<view>
-									{{ item[column.dataIndex] || "" }}
-								</view>
-							</t-td>
+							<t-td> <view> {{item.name}} </view> </t-td>
+							<t-td> <view> {{item.pfNum||0}}笔&nbsp;¥{{item.pfAmount?parseFloat(item.pfAmount):0}} </view> </t-td>
+							<t-td> <view> {{item.lsNum||0}}笔&nbsp;¥{{item.lsAmount?parseFloat(item.lsAmount):0}} </view> </t-td>
+							<t-td> <view> {{item.num||0}}笔&nbsp;¥{{item.amount?parseFloat(item.amount):0}} </view> </t-td>
 						</t-tr>
 					</t-table>
 				</block>
@@ -52,26 +52,6 @@ export default {
 			showTimeDropdown: false,
 			nowShop: "",
 			showShopDropdown: false,
-			columns: [
-				{
-					name: "姓名",
-					dataIndex: "name",
-					color: "info"
-				},
-				{
-					name: "开单额",
-					dataIndex: "amount",
-					color: "info",
-					width: 120,
-					align: "center"
-				},
-				{
-					name: "开单数",
-					dataIndex: "num",
-					color: "info",
-					align: "center"
-				}
-			],
 			dataList: [],
 			params:{
 				itemId: '',