|
@@ -72,6 +72,7 @@ export default {
|
|
|
COMMODITY_TYPE,
|
|
COMMODITY_TYPE,
|
|
|
// isAllActive: false,
|
|
// isAllActive: false,
|
|
|
// isAllFocus: false,
|
|
// isAllFocus: false,
|
|
|
|
|
+ isAlterMoney:false,
|
|
|
isAloneAllActive: false,
|
|
isAloneAllActive: false,
|
|
|
isAloneAllFocus: false,
|
|
isAloneAllFocus: false,
|
|
|
|
|
|
|
@@ -98,8 +99,26 @@ export default {
|
|
|
moveAllInput(e){
|
|
moveAllInput(e){
|
|
|
this.isAloneAllActive=false;
|
|
this.isAloneAllActive=false;
|
|
|
this.isAloneAllFocus=false;
|
|
this.isAloneAllFocus=false;
|
|
|
- if(e==''){return}
|
|
|
|
|
- this.changeAutoPrice = e;
|
|
|
|
|
|
|
+ // if(e==''){return}
|
|
|
|
|
+ this.changeAutoPrice = e?e:0;
|
|
|
|
|
+ if(this.isAlterMoney){
|
|
|
|
|
+ this.isAlterMoney = false;
|
|
|
|
|
+ // let self = this
|
|
|
|
|
+ changePriceByIdApi({
|
|
|
|
|
+ productId: this.info.id,
|
|
|
|
|
+ price: this.changeAutoPrice
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ this.showPrice = res.data.price
|
|
|
|
|
+ this.isShowSucceed = true
|
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
|
+ this.isShowSucceed = false
|
|
|
|
|
+ },1000)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.$msg(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
addEvents() {
|
|
addEvents() {
|
|
|
this.animationFun('add');
|
|
this.animationFun('add');
|
|
@@ -115,23 +134,10 @@ export default {
|
|
|
this.animationFun('del');
|
|
this.animationFun('del');
|
|
|
this.$emit("del", this.info);
|
|
this.$emit("del", this.info);
|
|
|
},
|
|
},
|
|
|
- async changePriceEvent(event) {
|
|
|
|
|
|
|
+ changePriceEvent(event) {
|
|
|
this.isFocus = false;
|
|
this.isFocus = false;
|
|
|
- let self = this
|
|
|
|
|
- await changePriceByIdApi({
|
|
|
|
|
- productId: this.info.id,
|
|
|
|
|
- price: this.changeAutoPrice
|
|
|
|
|
- }).then(res => {
|
|
|
|
|
- if(res.code == 1){
|
|
|
|
|
- this.showPrice = res.data.price
|
|
|
|
|
- this.isShowSucceed = true
|
|
|
|
|
- setTimeout(()=>{
|
|
|
|
|
- this.isShowSucceed = false
|
|
|
|
|
- },1000)
|
|
|
|
|
- }else{
|
|
|
|
|
- self.$msg(res.msg)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.isAlterMoney = true;
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
customNum() {
|
|
customNum() {
|
|
|
// if(!this.info.bigCount){
|
|
// if(!this.info.bigCount){
|