shish 7 ヶ月 前
コミット
b9132978a1
1 ファイル変更14 行追加14 行削除
  1. 14 14
      ghsPad/src/mixins/product.js

+ 14 - 14
ghsPad/src/mixins/product.js

@@ -253,6 +253,18 @@ export default {
 				}
 			}
 
+			this.customData = copyObject(info)
+			this.$nextTick(()=>{
+				if(this.currentJobType == 'bill'){
+					if(info.action && info.action == 'update'){
+						//已选列表修改花材
+						this.customData.unitPrice =	this.customData.unitPrice;
+					}else{
+						this.customData.unitPrice =	this.customData.bigPrice;
+					}
+				}
+			})
+
 			//多颜色选项
 			if(info.variety == 1){
 				getSjXj({itemId:info.id}).then(res=>{
@@ -265,21 +277,9 @@ export default {
 						this.$refs.selectFlowerGridRef.open('center')
 					}
 				})
-				return true
+			}else{
+				this.$refs.selectNumPriceRef.open('center')
 			}
-
-			this.$refs.selectNumPriceRef.open('center')
-			this.customData = copyObject(info)
-			this.$nextTick(()=>{
-				if(this.currentJobType == 'bill'){
-					if(info.action && info.action == 'update'){
-						//已选列表修改花材
-						this.customData.unitPrice =	this.customData.unitPrice;
-					}else{
-						this.customData.unitPrice =	this.customData.bigPrice;
-					}
-				}
-			})
 		},
 		confirmAddItemModel(item) {
 			if (item.index === 0) {