运费模板 品牌 计量单位刷新成功提醒

master
15386982806 2024-01-16 11:12:07 +08:00
parent 185d675abf
commit 71c629cb06
1 changed files with 24 additions and 7 deletions

View File

@ -688,12 +688,12 @@ export default {
// //
refresh(v){ refresh(v){
if( v == 'template'){ if( v == 'template'){
this.GET_ShipTemplate() this.GET_ShipTemplate('localRefresh');
}else if( v == 'goodsUnit'){ }else if( v == 'goodsUnit'){
this.goodsUnitList = [] this.goodsUnitList = []
this.GET_GoodsUnit() this.GET_GoodsUnit('localRefresh');
}else{ }else{
this.getGoodsBrandList() this.getGoodsBrandList('localRefresh');
} }
}, },
getImages(v) { getImages(v) {
@ -942,21 +942,33 @@ export default {
}, },
/** 查询商品品牌列表 */ /** 查询商品品牌列表 */
getGoodsBrandList() { getGoodsBrandList(type) {
API_GOODS.getCategoryBrandListDataSeller(this.categoryId).then( API_GOODS.getCategoryBrandListDataSeller(this.categoryId).then(
(response) => { (response) => {
this.brandList = response; this.brandList = response;
if(type === 'localRefresh') {
this.$Message.success("刷新成功");
}
} }
); ).catch(() => {
if(type === 'localRefresh') {
this.$Message.error("刷新失败,请重试");
}
});
}, },
// //
GET_GoodsUnit() { GET_GoodsUnit(type) {
API_GOODS.getGoodsUnitList(this.params).then((res) => { API_GOODS.getGoodsUnitList(this.params).then((res) => {
if (res.success) { if (res.success) {
this.goodsUnitList.push(...res.result.records.map((i) => i.name)); this.goodsUnitList.push(...res.result.records.map((i) => i.name));
this.total = res.result.total; this.total = res.result.total;
} }
if (type === 'localRefresh' && res.success) {
this.$Message.success("刷新成功");
} else if(type === 'localRefresh') {
this.$Message.error("刷新失败,请重试");
}
}); });
}, },
// //
@ -1809,12 +1821,17 @@ export default {
} }
}); });
}, },
GET_ShipTemplate(){ GET_ShipTemplate(type){
// //
API_Shop.getShipTemplate().then((res) => { API_Shop.getShipTemplate().then((res) => {
if (res.success) { if (res.success) {
this.logisticsTemplate = res.result; this.logisticsTemplate = res.result;
} }
if (type === 'localRefresh' && res.success) {
this.$Message.success("刷新成功");
} else if(type === 'localRefresh') {
this.$Message.error("刷新失败,请重试");
}
}); });
} }
}, },