瀏覽代碼

零售端开单优化

jiangfeng 5 年之前
父節點
當前提交
7198325a9e

+ 1 - 1
hdApp/src/admin/billing/index.vue

@@ -32,7 +32,7 @@
 						<template v-for="(data,j) in res.child">
 						<template v-for="(data,j) in res.child">
 							<view :id="`class_${res.classId}_${data.id}`" :key="j" >
 							<view :id="`class_${res.classId}_${data.id}`" :key="j" >
 								<GoodsCommondity
 								<GoodsCommondity
-									:info="data"
+									:info.sync="data"
 									:bigCount="getSelectItemById(data.id, res.classId).bigCount"
 									:bigCount="getSelectItemById(data.id, res.classId).bigCount"
 									:smallCount="getSelectItemById(data.id, res.classId).smallCount"
 									:smallCount="getSelectItemById(data.id, res.classId).smallCount"
 									@addGoodsEvent="addGoodsEvent"
 									@addGoodsEvent="addGoodsEvent"

+ 6 - 1
hdApp/src/components/module/app-goods-commodity-style.vue

@@ -151,7 +151,11 @@ export default {
 	bigCount: {
 	bigCount: {
 		type: Number,
 		type: Number,
 		default: 0
 		default: 0
-	}
+	},
+		goodsStyleSelect: {
+		type: Number,
+		default: 0
+	},
 	},
 	},
 	data() {
 	data() {
 		return {
 		return {
@@ -161,6 +165,7 @@ export default {
 	},
 	},
 	created() {},
 	created() {},
 	mounted() {
 	mounted() {
+		this.goodsStyleSelectIndex = this.goodsStyleSelect;
 		this.bigCountNum = this.bigCount;
 		this.bigCountNum = this.bigCount;
 	},
 	},
 	methods: {
 	methods: {

+ 6 - 4
hdApp/src/components/module/app-goods-commodity.vue

@@ -22,7 +22,7 @@
 				</view>
 				</view>
 			</view>
 			</view>
 		</view>
 		</view>
-		<goodsCommodityStyle v-if="isGoodsStyle" :bigCount="bigCount" :info="info" @cancel="isGoodsStyle=false" @ok="ok"></goodsCommodityStyle>
+		<goodsCommodityStyle v-if="isGoodsStyle" :bigCount="bigCount" :goodsStyleSelect="goodsStyleSelect" :info="info" @cancel="isGoodsStyle=false" @ok="ok"></goodsCommodityStyle>
 	</view>
 	</view>
 </template>
 </template>
 
 
@@ -66,12 +66,13 @@ export default {
 			isShowSucceed:false,
 			isShowSucceed:false,
 			changeAutoPrice:'',
 			changeAutoPrice:'',
 			showPrice:0.00,
 			showPrice:0.00,
-			ifFocus:false
+			ifFocus:false,
+			goodsStyleSelect:0,
 		};
 		};
 	},
 	},
 	created() {},
 	created() {},
 	mounted() {
 	mounted() {
-		// console.log(this.info,'this.info')
+
 		// if(this.info.priceLabel == 2){
 		// if(this.info.priceLabel == 2){
 		// 	this.changeAutoPrice = this.info.price
 		// 	this.changeAutoPrice = this.info.price
 		// }
 		// }
@@ -87,8 +88,9 @@ export default {
 				goodsStyleSelectIndex: index,
 				goodsStyleSelectIndex: index,
 				bigCount: bigCount
 				bigCount: bigCount
 			};
 			};
+			this.goodsStyleSelect = index
+			this.info.goodsStyleSelectIndex = index;
 			this.$emit("addGoodsEvent",params);
 			this.$emit("addGoodsEvent",params);
-			console.log(params,'console.log(this.bigCountNum)');
 			this.isGoodsStyle = false;
 			this.isGoodsStyle = false;
 		},
 		},
 		addEvents() {
 		addEvents() {

+ 1 - 0
hdApp/src/mixins/product.js

@@ -772,6 +772,7 @@ export default {
 			* 多风格-添加商品
 			* 多风格-添加商品
 			*/
 			*/
 		addGoodsEvent(item) {
 		addGoodsEvent(item) {
+			console.log(item,'itemitem')
 			const list = this.selectList;
 			const list = this.selectList;
 			//过滤空数据
 			//过滤空数据
 			// if(item.bigCount==0||!item.bigCount){return}
 			// if(item.bigCount==0||!item.bigCount){return}