jf 5 лет назад
Родитель
Сommit
6b950cc8af

+ 1 - 1
ghsApp/src/admin/billing/affirm.vue

@@ -43,7 +43,7 @@
 								重选花材
 							</view>
 							<view class="describe-view">
-								共{{ allCount }}种,
+								共{{ selectList.length }}种,
 								<!-- 共16扎9支, -->
 								合计 ¥<text class="price">{{ allPrice }}</text>
 							</view>

+ 1 - 4
ghsApp/src/mixins/product.js

@@ -88,7 +88,6 @@ export default {
 		},
 		//选择商品总数
 		allCount() {
-			// console.log(444444, this.selectList);
 			let bigLength = 0;
 			let smallLength = 0;
 			if (this.selectList) {
@@ -98,7 +97,6 @@ export default {
 				}
 			}
 			return {bigLength:bigLength,smallLength:smallLength,};
-			// return this.selectList.length;
 		},
 		/**
 		 * 当前选中商品列表中是否有没有库存的商品
@@ -419,13 +417,12 @@ export default {
 			for (let index = 0; index < list.length; index++) {
 				const element = list[index];
 				if (element.id == item.id ) {
-
 					list.splice(index, 1);
-
 					break;
 				}
 			}
 			this.setSelectInfoByType({ type: this.pageType, info: list });
+			console.log('this.selectList',this.selectList)
 		},
 		// /**
 		//  * 删除商品

+ 1 - 0
ghsApp/src/pagesPurchase/add.vue

@@ -227,6 +227,7 @@ export default {
 			this.isAloneAllActive=false;
 			this.isAloneAllFocus=false;
 			this.$nextTick(()=>{
+				console.log('customData',this.customData);
 				if(this.customData.bigCount==0 && this.customData.smallCount==0){
 					this.delAllEvent(this.customData)}
 

+ 1 - 1
ghsApp/src/pagesPurchase/details.vue

@@ -47,7 +47,7 @@
 								重选花材
 							</view>
 							<view class="describe-view">
-								共{{ allCount }}种,
+								共{{ selectList.length }}种,
 								<!-- 共16扎9支, -->
 								合计 ¥<text class="price">{{ allPrice }}</text>
 							</view>

+ 5 - 5
ghsApp/src/pagesStorehouse/inventory/details.vue

@@ -53,18 +53,18 @@
 							</view>
 							<view v-else-if="column.custom == 'stock'">
 								<text v-if="item.bigNum > 0">
-									{{ `${item.bigNum}/` }}
+									{{ `${item.bigNumStock}/` }}
 								</text>
 								<text>
-									{{ item.smallNum }}
+									{{ item.smallNumStock }}
 								</text>
 							</view>
 							<view v-else-if="column.custom == 'inventory'">
-								<text v-if="item.bigNumStock > 0">
-									{{ `${item.bigNumStock}/` }}
+								<text v-if="item.bigNum > 0">
+									{{ `${item.bigNum}/` }}
 								</text>
 								<text>
-									{{ item.smallNumStock }}
+									{{ item.smallNum }}
 								</text>
 							</view>
 							<view v-else-if="column.custom == 'profit'">