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

商品ID优化

上级 866321bb
......@@ -112,4 +112,14 @@ export const getCheckPackageIdList = (storeId) => {
method: 'post',
description: '',
})
};
\ No newline at end of file
};
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;
import BreadCrumb from "@/components/breadcrumb.vue";
import { getExpressFee, createOrModifyExpressFee, getFreightConfig, saveFreightConfig } from "@/utils/freight";
import {closeLoading, openLoading} from "../../utils/utils";
import { getGoodsList} from '@/utils/goods';
import { getGoodsIdList } from '@/utils/goods';
export default {
components: {
BreadCrumb
......@@ -343,7 +343,6 @@ export default {
this.storeId = this.$route.query.storeId;
// this.getExpressFeeInfo();
this.getFreightConfig();
this.tableData = [{goodsIdList: [{goodsId:119895},{goodsId:119894}], condition:"满3件包邮",desc:"单品满3件包邮"}];
},
methods: {
......@@ -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) {
this.searchForm = {
goodsIdList:[],
goodsName :val,
goodsIdList:[],
goodIdStr :val,
goodsType :'',
pageNo:1,
pageSize: 10,
......@@ -609,7 +577,7 @@ export default {
};
if (val.length >= 2) {
// console.log('搜索',val)
getGoodsList(this.searchForm)
getGoodsIdList(this.searchForm)
// this.GET(`/diagnose/commission/downDoctor/doctorInfoByNameLike?name=${val}`)
.then(function (res) {
if (res.code == '000000') {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册