提交 84000d3c 编写于 作者: vino's avatar vino

商品ID优化

上级 866321bb
...@@ -113,3 +113,13 @@ export const getCheckPackageIdList = (storeId) => { ...@@ -113,3 +113,13 @@ export const getCheckPackageIdList = (storeId) => {
description: '', description: '',
}) })
}; };
export const getGoodsIdList = (params) => {
return fetch({
headers,
url: getBaseUrl(`store/goods/query/v2`),
method: 'post',
data: params,
description: '商品ID列表查询',
})
};
...@@ -242,7 +242,7 @@ let vm = null; ...@@ -242,7 +242,7 @@ let vm = null;
import BreadCrumb from "@/components/breadcrumb.vue"; import BreadCrumb from "@/components/breadcrumb.vue";
import { getExpressFee, createOrModifyExpressFee, getFreightConfig, saveFreightConfig } from "@/utils/freight"; import { getExpressFee, createOrModifyExpressFee, getFreightConfig, saveFreightConfig } from "@/utils/freight";
import {closeLoading, openLoading} from "../../utils/utils"; import {closeLoading, openLoading} from "../../utils/utils";
import { getGoodsList} from '@/utils/goods'; import { getGoodsIdList } from '@/utils/goods';
export default { export default {
components: { components: {
BreadCrumb BreadCrumb
...@@ -343,7 +343,6 @@ export default { ...@@ -343,7 +343,6 @@ export default {
this.storeId = this.$route.query.storeId; this.storeId = this.$route.query.storeId;
// this.getExpressFeeInfo(); // this.getExpressFeeInfo();
this.getFreightConfig(); this.getFreightConfig();
this.tableData = [{goodsIdList: [{goodsId:119895},{goodsId:119894}], condition:"满3件包邮",desc:"单品满3件包邮"}];
}, },
methods: { methods: {
...@@ -566,41 +565,10 @@ export default { ...@@ -566,41 +565,10 @@ export default {
}) })
}, },
getLists(){
openLoading(this);
// searchForm: {
// goodsIdList:[],
// goodsName :'',
// goodsType :'',
// pageNo:1,
// pageSize: 10,
// storeId:0,
// commissionType: 0
// },
getGoodsList(this.searchForm).then((res)=>{
if(res.code != '000000'){
return this.$message({
message: res.message,
type: 'error'
});
}
closeLoading(this);
if(res.data == null){
return this.$message({
message: '分页数据加载失败',
type: 'error'
});
}
this.tableData = res.data.goodsList;
this.totalRows = res.data.totalCount;
this.isSSO = res.data.isSSO;
})
},
remoteMethod(val) { remoteMethod(val) {
this.searchForm = { this.searchForm = {
goodsIdList:[], goodsIdList:[],
goodsName :val, goodIdStr :val,
goodsType :'', goodsType :'',
pageNo:1, pageNo:1,
pageSize: 10, pageSize: 10,
...@@ -609,7 +577,7 @@ export default { ...@@ -609,7 +577,7 @@ export default {
}; };
if (val.length >= 2) { if (val.length >= 2) {
// console.log('搜索',val) // console.log('搜索',val)
getGoodsList(this.searchForm) getGoodsIdList(this.searchForm)
// this.GET(`/diagnose/commission/downDoctor/doctorInfoByNameLike?name=${val}`) // this.GET(`/diagnose/commission/downDoctor/doctorInfoByNameLike?name=${val}`)
.then(function (res) { .then(function (res) {
if (res.code == '000000') { if (res.code == '000000') {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册