shish 3 سال پیش
والد
کامیت
0a7de3db45
3فایلهای تغییر یافته به همراه19 افزوده شده و 13 حذف شده
  1. 11 2
      hdApp/src/admin/billing/index.vue
  2. 3 6
      hdApp/src/admin/item/components/Item.vue
  3. 5 5
      hdApp/src/admin/item/list.vue

+ 11 - 2
hdApp/src/admin/billing/index.vue

@@ -1,8 +1,13 @@
 <!--姜枫 2021.04.11-->
 <template>
 	<view class="billing_box_bg">
-		<view class="input-wrap">
-			<app-search-module v-model="py" placeholder="输拼音首字母也可以搜" @input="searchFn" />
+		<view class="input-wrap" >
+			<view class="search-bar">
+				<app-search-module v-model="py" placeholder="输入拼音首字母搜索" @input="searchFn" />
+			</view>
+			<view style="float:right">
+				<button class="admin-button-com middle blue" @click="removeFromSave(0)">清除花材</button>
+			</view>
 		</view>
 		<view class="scroll-middle_bx">
 
@@ -197,6 +202,10 @@ export default {
 	flex-direction: column;
 	.input-wrap {
 		padding: 22upx 20upx 22upx 30upx;
+		.search-bar {
+			display:inline-block;
+			width:530upx;
+		}
 	}
 	.scroll-middle_bx {
 		flex: 1;

+ 3 - 6
hdApp/src/admin/item/components/ItemStock.vue → hdApp/src/admin/item/components/Item.vue

@@ -20,12 +20,9 @@
 			</view>
 		</view>
 	</view>
+	<text class="bottom-button" @click.stop="moreToDo(info)">更多</text>
 	<text class="bottom-button" @click.stop="goToOrderDetail(info.id)">销售记录</text>
 	<text class="bottom-button" @click.stop="goToStockDetail(info.id)">库存变动</text>
-	<!-- #ifdef MP-WEIXIN -->
-	<!-- <text class="bottom-button" @click.stop="goToProduct(info.id)">分享</text> -->
-	<!-- #endif -->
-	<text class="bottom-button" @click.stop="moreToDo(info)">更多</text>
 </view>
 </template>
 <script>
@@ -90,9 +87,9 @@ export default {
 .bottom-button{
 	font-weight:normal;
 	border:2upx solid #cccccc;
-	font-size:22upx;
+	font-size:24upx;
 	border-radius: 20upx;
-	padding:6upx 22upx 6upx 22upx;
+	padding:13upx 23upx 13upx 23upx;
 	margin:0 15upx 0 0;
 	float:right;
 	color:#aaa9a9;

+ 5 - 5
hdApp/src/admin/item/list.vue

@@ -26,8 +26,8 @@
 						<view class="item_list_title"> {{ classItem.className }}</view>
 						<view v-if="classItem.child && !$util.isEmpty(classItem.child)">
 							<template v-for="(productItem, productIndex) in classItem.child">
-								<view style="height:240upx" :id="`class_${classIndex}`" :key="productIndex">
-									<ItemStock v-if="classItem.isActive" :isPrice="false" :info="productItem" @goToProduct="goToProduct" @moreToDo="moreToDo" ></ItemStock>
+								<view style="height:255upx" :id="`class_${classIndex}`" :key="productIndex">
+									<ItemComponent v-if="classItem.isActive" :isPrice="false" :info="productItem" @goToProduct="goToProduct" @moreToDo="moreToDo" ></ItemComponent>
 								</view>
 							</template>
 						</view>
@@ -51,17 +51,17 @@
 <script>
 import AppSearchModule from "@/components/module/app-search";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
-import ItemStock from "./components/ItemStock";
+import ItemComponent from "./components/Item";
 import productMins from "@/mixins/product";
 import { mapGetters } from "vuex";
 import { getWeixinId } from "@/api/invite/index";
 import { generatePriceTable,generateBarcodeTable,print } from '@/api/product'
 export default {
-	name: "item_list",
+	name: "list",
 	components: {
 		AppSearchModule,
 		AppWrapperEmpty,
-		ItemStock
+		ItemComponent
 	},
 	mixins: [productMins],
 	data() {