shish 3 лет назад
Родитель
Сommit
938cc4bcc1

+ 1 - 1
hdApp/src/admin/goods/add.vue

@@ -35,7 +35,7 @@
         </tui-list-cell>
         </tui-list-cell>
 
 
         <tui-list-cell class="line-cell" :hover="false">
         <tui-list-cell class="line-cell" :hover="false">
-          <view class="tui-title">花支数</view>
+          <view class="tui-title">花支数</view>
           <input v-model="form.flowerNum" placeholder-class="phcolor" class="tui-input" name="flowerNum" placeholder="用于判断花束大小" maxlength="50" type="number" />
           <input v-model="form.flowerNum" placeholder-class="phcolor" class="tui-input" name="flowerNum" placeholder="用于判断花束大小" maxlength="50" type="number" />
         </tui-list-cell>
         </tui-list-cell>
 
 

+ 1 - 1
hdApp/src/admin/goods/detail.vue

@@ -69,7 +69,7 @@
         </tui-list-cell>
         </tui-list-cell>
 
 
         <tui-list-cell class="line-cell" :hover="false" v-if="form.flower == 1">
         <tui-list-cell class="line-cell" :hover="false" v-if="form.flower == 1">
-          <view class="tui-title">花支数</view>
+          <view class="tui-title">花支数</view>
           <input v-model="form.flowerNum" @focus="form.flowerNum=''" placeholder-class="phcolor" class="tui-input" name="flowerNum" placeholder="支数" maxlength="50" type="number" />
           <input v-model="form.flowerNum" @focus="form.flowerNum=''" placeholder-class="phcolor" class="tui-input" name="flowerNum" placeholder="支数" maxlength="50" type="number" />
         </tui-list-cell>
         </tui-list-cell>
 
 

+ 160 - 0
hdApp/src/admin/stat/kindLz.vue

@@ -0,0 +1,160 @@
+<template>
+<view class="app-content">
+	<view class="ex-page">
+		<view class="top-bar">
+			<DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
+		</view>
+		<scroll-view scroll-y scroll-with-animation class="main-view">
+			<view class="space-view ex-table">
+				<block>
+					<t-table :headerBackgroundColor="'#F0F2F6'">
+						<t-tr header>
+							<t-th><view style="color:black;">类型</view></t-th>
+							<t-th><view style="color:black;">采购数量</view></t-th>
+							<t-th><view style="color:black;">销售数量</view></t-th>
+						</t-tr>
+						<t-tr v-for="(item, inIndex) in profit.kindStat" :key="inIndex">
+							<t-td><view style="color:black;font-size:25upx;">{{item.kindName}}</view></t-td>
+							<t-td><view style="color:black;font-size:25upx;">{{item.cgNum}}</view></t-td>
+							<t-td><view style="color:black;font-size:25upx;">{{item.saleNum}}</view></t-td>
+						</t-tr>
+						<t-tr>
+							<t-td><view style="text-align:right;font-size:30upx;">111122</view></t-td>
+						</t-tr>
+
+					</t-table>
+				</block>
+			</view>
+		</scroll-view>
+	</view>
+</view>
+</template>
+<script>
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
+import SelectList from "@/components/plugin/selectList";
+import { getKindLzStatProfit } from "@/api/stat";
+import { list } from "@/mixins";
+import ShopSelect from "@/components/module/shopSelect";
+import DateSelect from "@/components/module/dateSelect";
+import {mapActions, mapGetters} from "vuex";
+export default {
+	components: { SelectList, AppWrapperEmpty,ShopSelect,DateSelect},
+	mixins: [list],
+	computed: {		
+		...mapGetters(["getDictionariesInfo","getLoginInfo"])
+	},
+	data() {
+		return {
+			params:{
+				searchTime:'',
+				startTime: "",
+				endTime: "",
+			},
+			profit:[],
+		};
+	},
+	onPullDownRefresh() {
+		this.resetList();
+		this.getStatList().then(res => {
+			uni.stopPullDownRefresh();
+		});
+	},
+	methods: {
+		...mapActions(['setUserShopAll']),
+		selectDateFn(val) {
+			this.params = {...this.params,...val}
+			this.init();			
+		},
+		init() {
+			this.getStatList();
+		},
+		getStatList() {
+			let that = this
+			getKindLzStatProfit(this.params).then(res => {
+				that.profit = res.data
+			});
+		}
+	}
+};
+</script>
+<style lang="scss" scoped>
+.ex-page {
+	background: white;
+	height: 100%;
+	display: flex;
+	flex-direction: column;
+	.top-bar {
+		position: absolute;
+		left: 0;
+		display: flex;
+		width: 100%;
+		top:20upx;
+		z-index: 20;
+		.bar{
+			width: 50%;
+			height: 100%;
+			text-align: center;
+			&:nth-child(1){
+				border-right: 1upx solid #eeeeec;
+			}
+		}
+	}
+	.main-view {
+		margin-top: 80upx;
+		flex: 1;
+		background-color: #f9fbfc;
+		.space-view {
+			background-color: #fff;
+		}
+		.ex-info {
+			padding: 30upx;
+			.info-cell {
+				display: flex;
+				align-items: center;
+				font-size: 28upx;
+				&:not(:first-child) {
+					margin-top: 20upx;
+				}
+				.cell-label {
+					width: 110upx;
+					color: #666666;
+				}
+				.cell-value {
+					margin-left: 40upx;
+					color: #333;
+					&.warning {
+						color: #ffaf1d;
+					}
+					&.success {
+						color: #27c325;
+					}
+				}
+			}
+		}
+		.ex-table {
+			/deep/.icon-info {
+				color: #333333;
+			}
+		}
+	}
+	.bar-view {
+		display: flex;
+		justify-content: space-between;
+		align-items: center;
+		padding: 0 30upx;
+		width: 100%;
+		height: 100upx;
+
+		box-shadow: 0upx -1upx 6upx 0upx rgba(4, 0, 0, 0.06);
+		.info-view {
+			font-size: 26upx;
+		}
+		.btn-view {
+			display: flex;
+			.admin-button-com {
+				margin: 0 10upx;
+			}
+		}
+	}
+}
+</style>

+ 2 - 2
hdApp/src/admin/work/add.vue

@@ -24,8 +24,8 @@
         </tui-list-cell>
         </tui-list-cell>
 
 
         <tui-list-cell class="line-cell" :arrow="true">
         <tui-list-cell class="line-cell" :arrow="true">
-          <view class="tui-title">花支数</view>
-          <input v-model="form.flowerNum" placeholder-class="phcolor" class="tui-input" name="flowerNum" @focus="form.flowerNum=''" placeholder="请填写花支数" maxlength="50" type="number" />
+          <view class="tui-title">花支数</view>
+          <input v-model="form.flowerNum" placeholder-class="phcolor" class="tui-input" name="flowerNum" @focus="form.flowerNum=''" placeholder="请填写花支数" maxlength="50" type="number" />
         </tui-list-cell>
         </tui-list-cell>
 
 
       </view>
       </view>

+ 4 - 0
hdApp/src/api/stat/index.js

@@ -1,5 +1,9 @@
 import https from '@/plugins/luch-request_0.0.7/request'
 import https from '@/plugins/luch-request_0.0.7/request'
 
 
+export const getKindLzStatProfit = data => {
+	return https.get('/stat-kind/lz-profile', data)
+}
+
 export const getKindStatProfit = data => {
 export const getKindStatProfit = data => {
 	return https.get('/stat-kind/profile', data)
 	return https.get('/stat-kind/profile', data)
 }
 }