Authored by 李奇

价格未变更调用接口排除

... ... @@ -256,7 +256,7 @@
this.setOnSale(skns);
},
changePrice(row) {
editPrice(row) {
row.changePrice = true;
},
updatePrice(row, newSalesPrice) {
... ... @@ -264,6 +264,11 @@
const salesPrice = newSalesPrice;
const productSkn = row.productSkn;
if(newSalesPrice === row.salesPrice) {
row.changePrice = false;
return;
}
const params = {
salesPrice,
productSkn
... ...
... ... @@ -175,7 +175,7 @@ let tableCols = [
render(row, column, index) {
row.lineIndex = index;
return `<cell-price
@click-change="changePrice(row)"
@click-change="editPrice(row)"
@click-save="updatePrice"
:can-change="true"
:current-row="row"
... ...
... ... @@ -246,7 +246,7 @@
this.setOffSale(skns);
},
changePrice(row) {
editPrice(row) {
row.changePrice = true;
},
updatePrice(row, newSalesPrice) {
... ... @@ -254,6 +254,11 @@
const salesPrice = newSalesPrice;
const productSkn = row.productSkn;
if(newSalesPrice === row.salesPrice) {
row.changePrice = false;
return;
}
const params = {
salesPrice,
productSkn
... ...
... ... @@ -154,7 +154,7 @@ let tableCols = [
render(row, column, index) {
row.lineIndex = index;
return `<cell-price
@click-change="changePrice(row)"
@click-change="editPrice(row)"
@click-save="updatePrice"
:can-change="true"
:current-row="row"
... ...
... ... @@ -3,8 +3,8 @@
* @author: qi.li <qi.li@yoho.cn>
* @date: 2017/04/13
*/
const axios = require('axios');
import _ from 'lodash';
import axios from 'axios';
const apiUrl = {
brand: '/platform/getSellerBrandInfo',
... ...