/* HTTP API 供应商业务模块 * Copyright 2020, CAIMEI365 * Date 2020/06/16 * auther ZHJY */ var SupplierApi = { ShopBaikeProductDelete: function(params, callback){ // 百科商品/仪器 删除 Http.AjaxService({ url:'/user/shop/baike/product/delete', type:'post', data:params, json:false, }) .then(function(res){ callback(res); }); }, ShopBaikeProductTypeList: function(params, callback){ // 百科商品/仪器分类列表 Http.AjaxService({ url:'/user/shop/baike/product/type/list', type:'get', data:params, json:false, }) .then(function(res){ callback(res); }); }, ShopBaikeProductStatusUpdate: function(params, callback){ // 供应商百科商品/仪器状态更新 Http.AjaxService({ url:'/user/shop/baike/product/status/update', type:'post', data:params, json:false, }) .then(function(res){ callback(res); }); }, ShopBaikeProductSave: function(params, callback){ // 供应商百科商品/仪器信息保存 Http.AjaxService({ url:'/user/shop/baike/product/save', type:'post', data:params, json:false, }) .then(function(res){ callback(res); }); }, GetShopBaikeProductList: function(params, callback){ // 供应商百科商品/仪器列表 Http.AjaxService({ url:'/user/shop/baike/product/list', type:'get', data:params, json:false, }) .then(function(res){ callback(res); }); }, GetShopBaikeProductForm: function(params, callback){ // 供应商百科商品表单数据(回显数据) Http.AjaxService({ url:'/user/shop/baike/product/form', type:'get', data:params, json:false, }) .then(function(res){ callback(res); }); }, UploadFile: function(params, callback){ // 供应商文章上传图片 Http.AjaxService({ url:'/tools/image/upload/ckeditor', type:'post', data:params, json:false, }) .then(function(res){ callback(res); }); }, GetArticleList: function(params, callback){ //供应商文章列表 Http.AjaxService({ url:'/user/shop/article/list', type:'get', data:params, json:false, }) .then(function(res){ callback(res); }); }, GetArticleForm: function(params, callback){ //供应商文章信息回显 Http.AjaxService({ url:'/user/shop/article/form', type:'get', data:params, json:false, }) .then(function(res){ callback(res); }); }, ArticleSubmitSave: function(params, callback){ //供应商文章保存 Http.AjaxService({ url:'/user/shop/article/save', type:'post', data:params, json:false, }) .then(function(res){ callback(res); }); }, ArticleStatusChange: function(params, callback){ //供应商文章状态修改 Http.AjaxService({ url:'/user/shop/article/status/update', type:'post', data:params, json:false, }) .then(function(res){ callback(res); }); }, ArticleRemove: function(params, callback){ //供应商文章状态修改 Http.AjaxService({ url:'/user/shop/article/delete', type:'post', data:params, json:false, }) .then(function(res){ callback(res); }); }, ArticleCategory: function(params, callback){ Http.AjaxService({ url:'/user/shop/article/type/list', type:'get', data:params, json:false, }) .then(function(res){ callback(res); }); }, GetSearchShopList:function (params, callback) {//搜索供应商列表查询 Http.AjaxService({ url:'/commodity/search/query/shop', type:'get', data:params, json:true, isHost:true }) .then(function(res){ callback(res); }); }, ShipmentsInfo: function (params, callback) {//发货商品初始化 Http.AjaxService({ url:'/order/shop/ship/info', type:'GET', data:params, json:true, isHost:true }) .then(function(res){ callback(res); }); }, MyOrderList: function (params, callback) {//供应商订单列表 Http.AjaxService({ url:'/order/shop/list', type:'GET', data:params, json:true, isHost:true }) .then(function(res){ callback(res); }); }, uploadimg: function (params, callback) {//供应商添加物流上传图片 Http.uploadImage({ url:'/tools/image/upload/multi', data:params},callback) }, GetMyProductList: function (params, callback) {//供应商商品列表 Http.AjaxService({ url:'/commodity/shop/product/list', type:'GET', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, SwitchFeatured: function (params, callback) {//供应商商品增加删除 主推商品标志 Http.AjaxService({ url:'/commodity/shop/featured/switch', type:'POST', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, SupplierSoldOut: function (params, callback) {//供应商商品下架(批量下架,单个商品下架) Http.AjaxService({ url:'/commodity/shop/product/offline', type:'POST', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, brandList: function (params, callback) {//品牌管理列表 Http.AjaxService({ url:'/commodity/shop/brand/list', type:'GET', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, addLogistics: function (params, callback) {//发货/添加物流页 确定提交订单列表 Http.AjaxService({ url:'/order/shop/ship/delivery', type:'post', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, shipmentsRecord: function (params, callback) {//发货/添加物流页 确定提交订单列表 Http.AjaxService({ url:'/order/shop/ship/delivery/record', type:'GET', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, GetBrandAssociation: function (params, callback) {//发布商品品牌联想 Http.AjaxService({ url:'/commodity/shop/brand/select', type:'GET', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, logisticsInfo: function (params, callback) {//记录的查看物流 Http.AjaxService({ url:'/order/shop/ship/logistics/info', type:'GET', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, AddSupplierBrand: function (params, callback) {//发布商品提交新品牌 Http.AjaxService({ url:'/commodity/shop/brand/add', type:'post', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, CheckSupplierBrandDetection: function (params, callback) {//发布商品检查是否品牌 Http.AjaxService({ url:'/commodity/shop/brand/check', type:'get', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, AddSupplierReleaseProduct: function (params, callback) {//提交发布商品 Http.AjaxService({ url:'/commodity/shop/product/release', type:'post', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, UpdateSearchManageProduct: function (params, callback) {//编辑商品更新搜索索引 Http.AjaxService({ url:'/commodity/search/index/update/product', type:'post', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, SupplierViewShop: function (params, callback) {//查看店铺 Http.AjaxService({ url:'/supplier/viewShop', type:'get', data:params, json:false }) .then(function(res){ callback(res); }); }, SupplierViewShopProduct: function (params, callback) {//查看店铺供应商产品 Http.AjaxService({ url:'/supplier/product', type:'get', data:params, json:false }) .then(function(res){ callback(res); }); }, SupplierViewShopInfo: function (params, callback) {//获取登录供应商信息 Http.AjaxService({ url:'/user/shop/info', type:'get', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, EditReleaseProductInfo: function (params, callback) {//编辑我的商品回显数据 Http.AjaxService({ url:'/commodity/shop/product/form', type:'get', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, GetSupplierLogisticsRecord: function (params, callback) {//发货-添加商品资质初始化查询商品 Http.AjaxService({ url:'/order/shop/ship/logistics/record', type:'get', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, GetSupplierQualificationData: function (params, callback) {//发货-商品资质回显 Http.AjaxService({ url:'/order/shop/qualification/list', type:'get', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, GetSupplierQualificationUpdata: function (params, callback) {//发货-保存商品资质 Http.AjaxService({ url:'/order/shop/qualification/save', type:'post', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, shopInfo: function (params, callback) {//资料信息 回显数据 Http.AjaxService({ url:'/user/shop/info', type:'GET', data:params, json:false , isHost:true }) .then(function(res){ callback(res); }); }, kdList: function ( callback) {//快递公司 Http.AjaxService({ url:'/order/shop/ship/company', type:'GET', json:false, isHost:true }) .then(function(res){ callback(res); }); }, addLogisticsInfo: function (params, callback) {//追加物流 Http.AjaxService({ url:'/order/shop/ship/logistics/add', type:'post', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, cancelShipment: function (params, callback) {//查看物流/撤销发货 Http.AjaxService({ url:'/order/shop/ship/delivery/cancel', type:'post', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, shopOrderDetails: function (params, callback) {//我的订单/查看详情 Http.AjaxService({ url:'/order/shop/detail', type:'GET', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, modifiedData: function (params, callback) {//资料信息提交 Http.AjaxService({ url:'/user/shop/info/update', type:'post', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, homePageData: function (params, callback) {//供应商 首页个人中心 Http.AjaxService({ url:'/user/shop/personal/data', type:'get', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, uploadAvatar: function (params, callback) {//供应商 首页上传头像成功后调用 Http.AjaxService({ url:'/user/center/avatar/save', type:'post', data:params, json:false }) .then(function(res){ callback(res); }); }, dressUpList : function(params,callback) {//装扮主页列表 Http.AjaxService({ url:'/user/shop/home/images', type:'get', data:params, json:true }) .then(function(res){ callback(res); }); }, ShopBanner : function(params,callback) {//装扮主页修改与添加 Http.AjaxService({ url:'/user/shop/home/images/update', type:'POST', data:params, json:false }) .then(function(res){ callback(res); }); }, deleteShopBanner : function(params,callback) {//装扮主页删除广告 Integer shopBannerId Http.AjaxService({ url:'/user/shop/home/images/delete', type:'POST', data:params, json:false }) .then(function(res){ callback(res); }); }, settlementList : function(params,callback) {//结算管理列表 Http.AjaxService({ url:'/order/shop/settlement/list', type:'get', data:params, json:true, isHost:true }) .then(function(res){ callback(res); }); }, GetMymessageList : function(params,callback) {//个人中心消息列表 Http.AjaxService({ url:'/user/center/messages', type:'get', data:params, json:true }) .then(function(res){ callback(res); }); }, salesList : function(params,callback) {//售货清单 Http.AjaxService({ url:'/order/shop/sales/list', type:'get', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, GetShopProductMain : function(params,callback) {//售货清单 Http.AjaxService({ url:'/commodity/shop/product/main', type:'get', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, GetSearchQueryProductSupplier : function(params,callback) {//售货清单 Http.AjaxService({ url:'/commodity/search/query/product/shop', type:'get', data:params, json:false, isHost:true }) .then(function(res){ callback(res); }); }, getAuthShopMessageCount: function (params, callback) {//供应商消息通知中心未读消息数量 Http.AjaxService({ url: '/user/login/auth/shopMessageCount', type:'get', data:params, json:false, isHost:true }).then(function (res) { callback(res); }); }, getAuthShopMessageList: function (params, callback) {//供应商消息通知列表 Http.AjaxService({ url: '/user/login/auth/shopMessageList', type:'get', data:params, json:false, isHost:true }).then(function (res) { callback(res); }); }, authDeleteMessage: function (params, callback) {//删除通知消息 Http.AjaxService({ url: '/user/login/auth/deleteMessage', type:'post', data:params, json:false, isHost:true }).then(function (res) { callback(res); }); }, authUpdateRead: function (params, callback) {//标记通知消息 Http.AjaxService({ url: '/user/login/auth/updateRead', type:'post', data:params, json:false, isHost:true }).then(function (res) { callback(res); }); }, };