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

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

@@ -173,10 +173,6 @@ export default {
 		},
 		countAllPrices(e){
 			this.allPrices = this.allPrices+Number(this.form.sendCost)
-			console.log('e',e)
-			console.log('this.form.sendCost',Number(this.form.sendCost))
-			console.log('this.form.sendCost',this.form.sendCost)
-			console.log('this.allPrices',this.allPrices)
 		},
 
 		// api
@@ -208,6 +204,9 @@ export default {
       this.dorm.debt = 0
 		},
 		confirmFn(options) {
+			if(options.sendType==2){
+				options.sendCost = '';
+			}
 			createOrder(options).then(res => {
 				// this.$msg("下单成功");
 				this.resetSelectInfoByType(this.pageType);
@@ -239,6 +238,7 @@ export default {
 		async formSubmit(e) {
 			try {
 				// 进行表单检查
+				this.form
 				let formData = this.form;
 
 				const product = this.selectList.map(ele => {

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
hdApp/dist/build/mp-weixin/admin/billing/affirmGhs.js


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
hdApp/dist/build/mp-weixin/admin/billing/affirmGhs.wxml


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
hdApp/dist/build/mp-weixin/admin/billing/affirmGhs.wxss


+ 2 - 2
hdApp/dist/build/mp-weixin/admin/home/components/module/operate-line.json

@@ -1,4 +1,4 @@
 {
-  "usingComponents": {},
-  "component": true
+  "component": true,
+  "usingComponents": {}
 }

+ 2 - 2
hdApp/dist/build/mp-weixin/admin/order/components/card-name.json

@@ -1,4 +1,4 @@
 {
-  "component": true,
-  "usingComponents": {}
+  "usingComponents": {},
+  "component": true
 }

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
hdApp/dist/build/mp-weixin/common/vendor.js


+ 2 - 2
hdApp/dist/build/mp-weixin/components/app-date-picker.json

@@ -1,4 +1,4 @@
 {
-  "usingComponents": {},
-  "component": true
+  "component": true,
+  "usingComponents": {}
 }

+ 2 - 2
hdApp/dist/build/mp-weixin/components/app-img.json

@@ -1,4 +1,4 @@
 {
-  "usingComponents": {},
-  "component": true
+  "component": true,
+  "usingComponents": {}
 }

+ 2 - 2
hdApp/dist/build/mp-weixin/components/module/app-close.json

@@ -1,4 +1,4 @@
 {
-  "usingComponents": {},
-  "component": true
+  "component": true,
+  "usingComponents": {}
 }

+ 2 - 2
hdApp/dist/build/mp-weixin/components/module/app-order-list.json

@@ -1,4 +1,4 @@
 {
-  "usingComponents": {},
-  "component": true
+  "component": true,
+  "usingComponents": {}
 }

+ 2 - 2
hdApp/dist/build/mp-weixin/components/module/app-search.json

@@ -1,4 +1,4 @@
 {
-  "usingComponents": {},
-  "component": true
+  "component": true,
+  "usingComponents": {}
 }

+ 2 - 2
hdApp/dist/build/mp-weixin/components/plugin/badge.json

@@ -1,4 +1,4 @@
 {
-  "usingComponents": {},
-  "component": true
+  "component": true,
+  "usingComponents": {}
 }

+ 2 - 2
hdApp/dist/build/mp-weixin/components/plugin/fab.json

@@ -1,4 +1,4 @@
 {
-  "usingComponents": {},
-  "component": true
+  "component": true,
+  "usingComponents": {}
 }

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

@@ -422,7 +422,7 @@ export default {
 			let parameter = {
 				getType:this.form.sendType,
 				sendTime:this.sendTime,
-				sendCost:this.form.sendCost,
+				sendCost:this.form.sendType==2?'':this.form.sendCost,
 				remark:this.remark,
 				product:JSON.stringify(product),
 				ghsId:this.ghsMsg.id,

+ 50 - 49
hdApp/src/mixins/product.js

@@ -75,25 +75,32 @@ export default {
 		suitFilterProductInfo() {
 			let list = copyObject(this.suitInfo);
 			if (this.py) {
-				let commonList = list.find(ele => {
+				let commonChildList = [];
+				list.forEach(ele => {
 					//在常用中过滤
-					return ele.classId != -2;
-				});
-				if (commonList) {
-					let commonChildList = [];
-					if (!this.$util.isEmpty(commonList.child)) {
-						commonList.child.forEach(ele => {
-							let hasName = ele.goodsName && ele.goodsName.indexOf(this.py) >= 0;
-							let elePy = (ele.py && ele.py.toLocaleUpperCase()) || "";
-							let hasPy = elePy.indexOf(this.py.toLocaleUpperCase()) >= 0;
-							if (hasName || hasPy) {
-								commonChildList.push(ele);
-							}
-						});
+					if(ele.classId != -2){
+						ele.child.forEach(obj => {
+								let hasName = obj.goodsName && obj.goodsName.indexOf(this.py) >= 0;
+								let elePy = (obj.py && obj.py.toLocaleUpperCase()) || "";
+								let hasPy = elePy.indexOf(this.py.toLocaleUpperCase()) >= 0;
+								if (hasName || hasPy) {
+									if(commonChildList==''){
+										commonChildList = [...commonChildList,{classId: ele.classId, className: ele.className,child:[obj]}];
+									}else{
+										commonChildList.forEach(res => {
+											if(res.classId==ele.classId){
+												res.child.push(obj)
+											}else{
+												commonChildList = [...commonChildList,{classId: ele.classId, className: ele.className,child:[obj]}];
+											}
+										})
+									}
+								}
+							});
 					}
-					commonList.child = commonChildList;
-					list = [commonList];
-				}
+				});
+				list = commonChildList
+				this.suitClassIndex = 0;
 			}
 			return list;
 		},
@@ -387,38 +394,32 @@ export default {
 				const element = list[index];
 				if (element.id == item.id && element.classId == item.classId) {
 					has = true;
-					if(this.offVerifyRepertory){//去除库存验证
-						if(this.isSmallCount){
-							list[index] = { ...element, smallCount: ++element.smallCount };
-						}else{
-							list[index] = { ...element, bigCount: ++element.bigCount };
-						}
-					}else {
-						if (this.isLimit) {
-							if (element.bigCount < item.bigNum) {
-								if(!this.isSmallCount){
-									list[index] = { ...element, bigCount: ++element.bigCount };
-								}
-							}else{this.$msg("库存不足");}
-							if(element.smallCount < item.smallNum) {
-								if(this.isSmallCount){
-									list[index] = { ...element, smallCount: ++element.smallCount };
-								}
-							}else{this.$msg("库存不足");}
-						}
-
-						if (this.isLimit) {
-							const {bigCount, smallCount} = list[index];
-							//超过库存时 设置为库存最大值
-							const ratio = Number(item.ratio);
-							if (
-								Number(bigCount) * ratio + Number(smallCount) >
-								Number(item.bigNum) * ratio + Number(item.smallNum)
-							) {
-								list[index].bigCount = Number(item.bigNum);
-								list[index].smallCount = Number(item.smallNum);
-								this.$msg("库存不足");
-							}
+					// if(this.offVerifyRepertory){//去除库存验证
+					// 	if(this.isSmallCount){
+					// 		list[index] = { ...element, smallCount: ++element.smallCount };
+					// 	}else{
+					// 		list[index] = { ...element, bigCount: ++element.bigCount };
+					// 	}
+					// }else {
+					//
+					// }
+					if(!this.isSmallCount){
+						list[index] = { ...element, bigCount: ++element.bigCount };
+					}
+					if(this.isSmallCount){
+						list[index] = { ...element, smallCount: ++element.smallCount };
+					}
+					if (this.isLimit) {
+						const {bigCount, smallCount} = list[index];
+						//超过库存时 设置为库存最大值
+						const ratio = Number(item.ratio);
+						if (
+							Number(bigCount) * ratio + Number(smallCount) >
+							Number(item.bigNum) * ratio + Number(item.smallNum)
+						) {
+							list[index].bigCount = Number(item.bigNum);
+							list[index].smallCount = Number(item.smallNum);
+							this.$msg("库存不足");
 						}
 					}
 					break;

Некоторые файлы не были показаны из-за большого количества измененных файлов