|
|
@@ -78,7 +78,7 @@
|
|
|
focus() {
|
|
|
this.$refs.input.focus()
|
|
|
},
|
|
|
- focusSelect(){
|
|
|
+ focusSelect(event){
|
|
|
event.currentTarget.select();
|
|
|
},
|
|
|
changeType(type){
|
|
|
@@ -111,11 +111,10 @@
|
|
|
|
|
|
},
|
|
|
changeUnit(){
|
|
|
-
|
|
|
-
|
|
|
- this.selectItem.unitType = this.selectItem.unitType === 0?1:0
|
|
|
- this.selectItem.currentUnit = this.selectItem.unitType ===0?this.selectItem.bigUnit:this.selectItem.smallUnit
|
|
|
- this.$emit('update:selectItem', this.selectItem)
|
|
|
+ this.selectItem.unitType = this.selectItem.unitType === 0?1:0
|
|
|
+ this.selectItem.currentUnit = this.selectItem.unitType ===0?this.selectItem.bigUnit:this.selectItem.smallUnit
|
|
|
+ this.selectItem.currentUnitPrice = this.selectItem.unitType ===0?this.selectItem.bigPrice:this.selectItem.smallPrice
|
|
|
+ this.$emit('update:selectItem', this.selectItem)
|
|
|
|
|
|
|
|
|
}
|