Commit e9ec6f33 by 前端

Merge branch 'v3.18.0' into 'master'

V3.18.0

See merge request !1
2 parents 914ca75a dad2a45c
Showing 179 changed files with 1214 additions and 40 deletions
{ {
"root": true, "root": true,
"env": { "env": {
"node": true "node": true
}, },
"extends": ["plugin:vue/essential", "@vue/prettier"], "globals": {
"rules": { "AMap": true
"no-console": "off", },
"no-unused-vars":"off", "extends": ["plugin:vue/essential", "@vue/prettier"],
"prettier.endOfLine": "crlf", "rules": {
"endOfLine":"auto" "no-console": "off",
}, "no-unused-vars":"off",
"parserOptions": { "prettier.endOfLine": "crlf",
"parser": "babel-eslint" "endOfLine":"auto"
},
"parserOptions": {
"parser": "babel-eslint"
}
} }
}
\ No newline at end of file \ No newline at end of file
{ {
"name": "microStore", "name": "store",
"version": "1.0.0", "version": "1.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
...@@ -1125,7 +1125,6 @@ ...@@ -1125,7 +1125,6 @@
"version": "7.19.0", "version": "7.19.0",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.0.tgz", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.0.tgz",
"integrity": "sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==", "integrity": "sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==",
"dev": true,
"requires": { "requires": {
"regenerator-runtime": "^0.13.4" "regenerator-runtime": "^0.13.4"
}, },
...@@ -1133,8 +1132,23 @@ ...@@ -1133,8 +1132,23 @@
"regenerator-runtime": { "regenerator-runtime": {
"version": "0.13.9", "version": "0.13.9",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
"integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
"dev": true }
}
},
"@babel/runtime-corejs3": {
"version": "7.22.15",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.22.15.tgz",
"integrity": "sha512-SAj8oKi8UogVi6eXQXKNPu8qZ78Yzy7zawrlTr0M+IuW/g8Qe9gVDhGcF9h1S69OyACpYoLxEzpjs1M15sI5wQ==",
"requires": {
"core-js-pure": "^3.30.2",
"regenerator-runtime": "^0.14.0"
},
"dependencies": {
"regenerator-runtime": {
"version": "0.14.0",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz",
"integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA=="
} }
} }
}, },
...@@ -4031,6 +4045,11 @@ ...@@ -4031,6 +4045,11 @@
"browserslist": "^4.21.3" "browserslist": "^4.21.3"
} }
}, },
"core-js-pure": {
"version": "3.32.2",
"resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.32.2.tgz",
"integrity": "sha512-Y2rxThOuNywTjnX/PgA5vWM6CZ9QB9sz9oGeCixV8MqXZO70z/5SHzf9EeBrEBK0PN36DnEBBu9O/aGWzKuMZQ=="
},
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
...@@ -13332,6 +13351,23 @@ ...@@ -13332,6 +13351,23 @@
"sortablejs": "1.10.2" "sortablejs": "1.10.2"
} }
}, },
"wangeditor": {
"version": "4.7.15",
"resolved": "https://registry.npmjs.org/wangeditor/-/wangeditor-4.7.15.tgz",
"integrity": "sha512-aPTdREd8BxXVyJ5MI+LU83FQ7u1EPd341iXIorRNYSOvoimNoZ4nPg+yn3FGbB93/owEa6buLw8wdhYnMCJQLg==",
"requires": {
"@babel/runtime": "^7.11.2",
"@babel/runtime-corejs3": "^7.11.2",
"tslib": "^2.1.0"
},
"dependencies": {
"tslib": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
}
}
},
"watchpack": { "watchpack": {
"version": "1.7.5", "version": "1.7.5",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.5.tgz", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.5.tgz",
......
{ {
"name": "microStore", "name": "store",
"version": "1.0.0", "version": "1.0.0",
"description": "A Vue.js project", "description": "A Vue.js project",
"private": true, "private": true,
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
"dayjs": "^1.10.7", "dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"glsx-common": "^2.0.4", "glsx-common": "^2.0.4",
"glsx-components": "^1.2.5" "glsx-components": "^1.2.5",
"wangeditor": "^4.7.15"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-plugin-babel": "^4.1.0",
......
...@@ -8,7 +8,7 @@ app.use(express.static('./dist')) ...@@ -8,7 +8,7 @@ app.use(express.static('./dist'))
app.get('/', function(req, res) { app.get('/', function(req, res) {
res.send('Hello jq') res.send('Hello jq')
}) })
const port = 6652 const port = 6665
app.listen(port) app.listen(port)
console.log(`服务已运行:\r\n http://127.0.0.1:${port}`) console.log(`服务已运行:\r\n http://127.0.0.1:${port}`)
import { http } from '@/main'
const defaultPath = 'scrm.api.shopmall.'
const getListApi = params => {
params.method = `${defaultPath}classify.page.curMerchant`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getClassifyInfoApi = params => {
params.method = `${defaultPath}classify.getById`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const insertClassifyApi = params => {
params.method = `${defaultPath}classify.insertOrUpdate`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const deleteClassifyApi = params => {
params.method = `${defaultPath}classify.delete`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const topClassifyApi = params => {
params.method = `${defaultPath}classify.updateToTop`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getListApi, getClassifyInfoApi, insertClassifyApi, deleteClassifyApi, topClassifyApi }
/* import {http, http_common, http2, http_merchant,http_upload} from '@/main'
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 14:46:30 const defaultPath = 'scrm.api.carlife.'
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2022-11-23 17:39:26 const getMerchantGoodsListApi = params => {
* @FilePath: \live\src\api\modules\common.js params.method = 'scrm.api.shopmall.goods.page.curMerchant'
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE return http({
*/ url: 'rop-scrm-shopmall/router',
import { http_common } from '@/main' method: 'GET',
data: params,
sign: true
})
}
const getGoodsListApi = params => {
// scrm.api.shopmall.goods.getGoodsList
params.method = 'scrm.api.shopmall.goods.getGoodsList'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
// 根据门店号获取员工列表
const getMerchantStaff = params => {
params.method = 'scrm.api.shopmall.crowd.funding.staff.get'
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const uploadImgApi = params => {
params.method = `${defaultPath}common.uploadImg`
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
const uploadMusicApi = params => {
params.method = 'scrm.api.carlife.common.uploadMusic'
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
const uploadVideoApi = params => {
params.method = `${defaultPath}common.uploadVideo`
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
const uploadFundingVideoApi = params => {
params.method = 'scrm.api.carlife.crowd.funding.uploadVideo'
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
const getMerchantList = params => {
params.method = `${defaultPath}merchant.listWithPageByCurMerchant`
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true
})
}
const getSimpleMerchantList = params => {
params.method = 'scrm.api.carlife.merchant.listWithPageSimpleByCurMerchant'
return http({
url: 'rop-scrm-carlife/router',
method: 'POST',
data: params,
sign: true
})
}
const getZoneListApi = params => {
params.method = 'scrm.api.shopmall.zoneInfo.listCurMerchantId'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const getClassifyListApi = params => {
params.method = 'scrm.api.shopmall.classify.list.curMerchant'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const pictureUpload = params => { const pictureUpload = params => {
params.method = 'glsx.accounts.biz.common.pictureUpload' params.method = 'glsx.accounts.biz.common.pictureUpload'
return http_common({ return http_common({
url: '/router?method=glsx.accounts.biz.common.pictureUpload', url: '/router?method=glsx.accounts.biz.common.pictureUpload',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
noSignAttr: ['file'] noSignAttr: ['file']
}) })
}
const compressPicture = params => {
return http_upload({
url: '/rpc-scrm-entmicro-container/picture/compression/upload',
method: 'POST',
data: params,
sign: false,
noSignAttr: ['file']
})
}
const compressVideo = params => {
// params.method = '/video/compression/upload'
// params.sessionId = session
// let paramsVideo = JSON.(params)
return http_upload({
url: '/rpc-scrm-entmicro-container/video/compression/upload',
method: 'POST',
data: params,
sign: false,
noSignAttr: ['file']
})
}
const querylabeltree = params => {
params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
// params.sessionId = session
return http2({
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
}
// 人群列表
const getCrowdTreeListApi = params => {
params.method = 'scrm.api.datahub.user.queryCrowdTree'
return http2({
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
}
// 跟进员工类型
const getStaffFollowerListApi = params => {
params.method = 'entmicro.api.staff.listEntFollowerType'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取商户信息
const getMerchantInfoApi = params => {
params.method = 'merchants.api.merchant.findMerchantBaseInfo'
return http_merchant({
url: '/rop-merchants/router',
method: 'POST',
data: params,
sign: true
})
}
// 根据商户号最上级工厂商户号
const getSuperMerchantApi = params => {
params.method = 'merchants.api.open.findSuperlativeMerchant'
return http_merchant({
url: '/rop-merchants/router',
method: 'POST',
data: params,
sign: true
})
}
/**众筹活动订单配置开关(SAAS)【控制众筹订单列表部分字段0:展示;1:隐藏;】 */
const getCrowdfundingOrderConfig = (params = {}) => {
params.method = 'scrm.api.shopmall.crowd.funding.order.config'
params.requestType = 0 //0:门店;1:运营版
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
} }
export default { export default {
pictureUpload getMerchantGoodsListApi,
getGoodsListApi,
uploadImgApi,
uploadMusicApi,
uploadVideoApi,
uploadFundingVideoApi,
getMerchantList,
getSimpleMerchantList,
getZoneListApi,
getClassifyListApi,
pictureUpload,
querylabeltree,
getCrowdTreeListApi,
getStaffFollowerListApi,
getMerchantInfoApi,
getSuperMerchantApi,
getCrowdfundingOrderConfig,
compressPicture,
compressVideo,
getMerchantStaff
} }
import { http } from '@/main'
const defaultPath = 'scrm.api.coupon.'
//优惠券列表
const getCouponListApi = params => {
params.method = 'scrm.backstage.coupon.list.merchant'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
//优惠券列表-导出
const couponExportApi = params => {
params.method = `${defaultPath}list.export`
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
//优惠券列表-集团-导出
const couponGroupExportApi = params => {
params.method = 'scrm.api.coupon.gh.group.list.export'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
//优惠券列表-门店-导出
const couponStoreExportApi = params => {
params.method = 'scrm.api.coupon.gh.store.list.export'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
//生效/失效
const effectiveCouponApi = params => {
params.method = `${defaultPath}effective`
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
//删除
const deleteCouponApi = params => {
params.method = `${defaultPath}delete`
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 核销记录-券来源
const getPackageListApi = params => {
params.method = 'scrm.api.equity.package.gh.list.with.page'
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
//核销记录列表
const getVerificationListApi = params => {
params.method = `${defaultPath}verification.code.verification.list`
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
// 核销详情-导出
const verificationExportApi = params => {
params.method = `${defaultPath}verification.code.export.list`
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
//领取记录列表
const getListReceiveRecordApi = params => {
params.method = `${defaultPath}listReceiveRecordByCouponId`
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
//导出领取记录列表
const exportReceiveRecordApi = params => {
params.method = `${defaultPath}exportReceiveRecordByCouponId`
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
//查看优惠券
const getCouponDetailApi = params => {
params.method = `${defaultPath}detail`
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
//优惠券核销
const codeVerificationApi = params => {
params.method = `${defaultPath}verification.code.verification`
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
//创建优惠券
const createCouponApi = params => {
params.method = `${defaultPath}create`
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
//修改优惠券
const updateCouponApi = params => {
params.method = `${defaultPath}update`
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
//获取当前门店自己增加的所有商品
const getAllGoodsApi = params => {
params.method = `scrm.api.shopmall.goods.page.curMerchant`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
// 优惠券-作废
const couponUserCancelApi = params => {
params.method = `scrm.api.coupon.user.cancel`
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getCouponListApi, couponExportApi, couponGroupExportApi, couponStoreExportApi, getPackageListApi, getVerificationListApi, verificationExportApi, effectiveCouponApi, codeVerificationApi, getCouponDetailApi, deleteCouponApi, createCouponApi, updateCouponApi, getAllGoodsApi, getListReceiveRecordApi, exportReceiveRecordApi, couponUserCancelApi }
import { http } from '@/main'
const getHomeInfoListApi = params => {
params.method = 'scrm.api.shopmall.homeConfig.get'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const updateHomeApi = params => {
params.method = 'scrm.api.shopmall.homeConfig.update'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 在线客服
const getConsultantListApi = params => {
params.method = 'scrm.api.carlife.config.consultant.list'
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
export default { getHomeInfoListApi, updateHomeApi, getConsultantListApi }
import { http } from '@/main'
const defaultPath = 'scrm.api.shopmall.'
const getListApi = params => {
params.method = `${defaultPath}order.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getCountApi = params => {
params.method = `${defaultPath}order.count`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getOrderDetailApi = params => {
params.method = `${defaultPath}order.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const orderExportApi = params => {
params.method = `${defaultPath}order.export`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
// 订单核销
const writeOffApi = params => {
params.method = `${defaultPath}order.verfication`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 众筹-订单核销
const crowdFundWriteOffApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.verfication'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 众筹-退款
const crowdFundRefundApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.refund'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 快递信息
const addDeliveryApi = params => {
params.method = `${defaultPath}order.addDelivery`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 退款审核 - 详情
const examineDetailApi = params => {
params.method = `${defaultPath}orderRefund.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
// 退款审核 - 提交
const examineAllowApi = params => {
params.method = `${defaultPath}orderRefund.allow`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 确认收货
const confirmReceiptGoodsApi = params => {
params.method = `${defaultPath}order.refund.confirmReceiptGoods`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 审计-特殊账号
const checkMerchartApi = params => {
params.method = 'scrm.api.shopmall.import.merchant.check'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//设置活动(通用)的指派人
const orderAppointer = params => {
params.method = 'scrm.api.shopmall.order.appointer.update'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//膨胀金订单详情
const orderDetail = params => {
params.method = 'scrm.api.shopmall.order.detail'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//膨胀金订单列表
const orderPage = params => {
params.method = 'scrm.api.shopmall.order.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//膨胀金订单退款
const goldRefund = params => {
params.method = 'scrm.api.shopmall.expanded.gold.refund'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const orderUpdate = params => {
params.method = 'scrm.api.shopmall.order.type.update'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const orderExport = params => {
params.method = 'scrm.api.shopmall.order.export'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { orderExport, orderUpdate, orderAppointer, goldRefund, orderPage, orderDetail, getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, checkMerchartApi }
import { http } from '@/main'
// const defaultPath = 'scrm.api.live.'
const getOrderListApi = params => {
// params.method = `scrm.api.equity.merchant.order.list.with.page`
params.method = 'scrm.api.equity.merchant.order.gh.list.with.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const getOrderPageDetail = params => {
params.method = `scrm.api.equity.merchant.order.select`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 订单列表-导出
const orderExportApi = params => {
params.method = 'scrm.api.equity.merchant.order.list.with.page.export'
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 门店订单申请退款
const orderRefund = params => {
params.method = 'scrm.api.equity.merchant.order.refund'
return http({
url: '/rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true,
returnAll: true
})
}
//套餐使用详情
const getCouponList = params => {
params.method = 'scrm.api.equity.merchant.order.package.coupon.list'
return http({
url: '/rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
// 集团套餐订单是否允许退款
const ordeRefundApi = params => {
params.method = 'scrm.api.equity.merchant.order.refund.check'
return http({
url: '/rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export { getOrderListApi, getOrderPageDetail, orderExportApi, orderRefund, getCouponList, ordeRefundApi }
import { http } from '@/main'
const defaultPath = 'scrm.api.shopmall.'
const getListApi = params => {
params.method = `${defaultPath}orderGoodsComment.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
// 发布/撤销评论
const changeCommentStatusApi = params => {
params.method = `${defaultPath}orderGoodsComment.changeStatus`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 删除评论
const deleteCommentApi = params => {
params.method = `${defaultPath}orderGoodsComment.remove`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const commentDetailApi = params => {
params.method = `${defaultPath}orderGoodsComment.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
export default { getListApi, changeCommentStatusApi, deleteCommentApi, commentDetailApi }
import { http } from '@/main'
const defaultPath = 'scrm.api.shopmall.'
const getListApi = params => {
params.method = `${defaultPath}order.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getCountApi = params => {
params.method = `${defaultPath}order.count`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getOrderDetailApi = params => {
params.method = `${defaultPath}order.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const orderExportApi = params => {
params.method = `${defaultPath}order.export`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
// 订单核销
const writeOffApi = params => {
params.method = `${defaultPath}order.verfication`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 众筹-订单核销
const crowdFundWriteOffApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.verfication'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 众筹-退款
const crowdFundRefundApi = params => {
params.method = 'scrm.api.shopmall.crowd.funding.order.refund'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 快递信息
const addDeliveryApi = params => {
params.method = `${defaultPath}order.addDelivery`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 退款审核 - 详情
const examineDetailApi = params => {
params.method = `${defaultPath}orderRefund.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
// 退款审核 - 提交
const examineAllowApi = params => {
params.method = `${defaultPath}orderRefund.allow`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 确认收货
const confirmReceiptGoodsApi = params => {
params.method = `${defaultPath}order.refund.confirmReceiptGoods`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 审计-特殊账号
const checkMerchartApi = params => {
params.method = 'scrm.api.shopmall.import.merchant.check'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
/**营销状态设为已完结 */
const finishOrderStatus = params => {
params.method = 'scrm.api.shopmall.weapp.order.status.finish'
return http({
url: '/rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi, writeOffApi, crowdFundWriteOffApi, crowdFundRefundApi, addDeliveryApi, examineDetailApi, examineAllowApi, confirmReceiptGoodsApi, checkMerchartApi, finishOrderStatus }
import {http} from '@/main'
const getListApi = params => {
params.method = `scrm.api.shopmall.integralorder.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const pointWriteOffExportApi = params => {
params.method = `scrm.api.shopmall.integralorder.export`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const pointWriteOffDetail = params => {
params.method = `scrm.api.shopmall.integralorder.detail`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default {getListApi, pointWriteOffExportApi, pointWriteOffDetail}
import { http } from '@/main'
const defaultPath = 'scrm.api.shopmall.goods.'
const getListApi = params => {
params.method = `${defaultPath}page.curMerchant`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getProShareApi = params => {
params.method = `${defaultPath}get.shared`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const topProApi = params => {
params.method = `${defaultPath}updateToTop`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const updateStatusProApi = params => {
params.method = `${defaultPath}updateStatus`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const deleteTakeProApi = params => {
params.method = `${defaultPath}deleteTakeGoods`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getProInfoApi = params => {
params.method = `${defaultPath}getById`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const insertOrUpdateProApi = params => {
params.method = `${defaultPath}insertOrUpdate`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const updateTakeProApi = params => {
params.method = `${defaultPath}updateTake`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getGoodsCommentListApi = params => {
params.method = 'scrm.api.shopmall.backstage.orderGoodsComment.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const getBusinessTypeByIdApi = params => {
params.method = 'scrm.api.shopmall.goods.getBusinessTypeById'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const deleteGoodsApi = params => {
params.method = 'scrm.api.shopmall.goods.deleteGoods'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getBusinessTypeByIdApi, getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi, deleteGoodsApi }
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-08-21 11:35:02
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-08-21 11:37:50
* @FilePath: \scrm-micro-marketing\src\api\modules\uploadApi.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import GlsxUpload from './glsxUpload'
const upload = new GlsxUpload({
params: {
data: { method: 'scrm.api.shopmall.tencentcloudmedia.uploadsignature' },
url: 'rop-scrm-shopmall/router'
}
})
export default upload
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!