diff --git a/.env.development b/.env.development index 1940fd8..2bc26f5 100644 --- a/.env.development +++ b/.env.development @@ -3,11 +3,11 @@ ENV = 'development' # http://192.168.1.43:8324/admin # http://mer.crmeb.net/admin # base api -VUE_APP_BASE_API = 'http://192.168.1.32:8080' +VUE_APP_BASE_API = 'http://192.168.1.199:8080' # VUE_APP_BASE_API = 'https://plus.hwms.shop' # socket 连接地址 -VUE_APP_WS_URL = 'ws://192.168.1.32:8080' +VUE_APP_WS_URL = 'ws://192.168.1.199:8080' # VUE_APP_WS_URL = 'ws://plus.hwms.shop' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/src/api/order.js b/src/api/order.js index e3f2e5e..3d44721 100644 --- a/src/api/order.js +++ b/src/api/order.js @@ -33,6 +33,18 @@ export function refundorderLogApi(id) { export function refundorderStatusApi(id) { return request.get(`order/refund/status/${id}/form`) } +/** + * @description 开启强制退款订单 -- 审核from + */ +export function refundorderOpenApi(id) { + return request.get(`order/refund/open/${id}/form`) +} +/** + * @description 退款单获取物流信息 + */ +export function refundorderExpressApi(id) { + return request.get(`order/express/${id}`) +} /** * @description 开启退款 */ diff --git a/src/api/product.js b/src/api/product.js index 17c1a94..f9b510e 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -114,32 +114,32 @@ export function brandStatusApi(id, status) { /** * @description 标签 -- 新增表单 */ - export function labelCreateApi() { - return request.get('product/label/create/form') +export function labelCreateApi() { + return request.get('product/label/create/form') } /** * @description 标签 -- 编辑表单 */ - export function labelUpdateApi(id) { - return request.get(`product/label/update/${id}/form`) - } +export function labelUpdateApi(id) { + return request.get(`product/label/update/${id}/form`) +} /** * @description 标签 -- 列表 */ - export function labelListApi(data) { - return request.get('product/label/lst', data) +export function labelListApi(data) { + return request.get('product/label/lst', data) } /** * @description 标签 -- 删除 */ - export function labelDeleteApi(id) { - return request.delete(`product/label/delete/${id}`) +export function labelDeleteApi(id) { + return request.delete(`product/label/delete/${id}`) } /** * @description 标签列表 -- 修改状态 */ - export function labelStatusApi(id, status) { - return request.post(`product/label/status/${id}`, { status }) +export function labelStatusApi(id, status) { + return request.post(`product/label/status/${id}`, { status }) } /** * @description 商品列表 -- 列表 @@ -178,7 +178,19 @@ export function seckillProductDetailApi(id) { return request.get(`seckill/product/detail/${id}`) } /** - * @description 商品审核 -- 表单提交 + * @description 商品审核 -- 初步审核 + */ +export function productStatusFirstApi(data) { + return request.post(`store/product/status_first`, data) +} +/** + * @description 商品审核 -- 二次审核 + */ +export function productStatusSecondApi(data) { + return request.post(`store/product/status_second`, data) +} +/** + * @description 商品审核 -- 最终审核 */ export function productStatusApi(data) { return request.post(`store/product/status`, data) @@ -300,8 +312,8 @@ export function presellProDetailApi(id) { /** * @description 预售商品 -- 编辑 */ -export function presellUpdateApi(id,data) { - return request.post(`store/product/presell/update/${id}`,data) +export function presellUpdateApi(id, data) { + return request.post(`store/product/presell/update/${id}`, data) } /** * @description 预售商品审核 -- 表单提交 @@ -325,7 +337,7 @@ export function preSellAgreeInfo() { * @description 申请管理 -- 预售协议保存 */ export function preSellAgreeUpdate(data) { - return request.post(`agreement/sys_product_presell_agree`,data) + return request.post(`agreement/sys_product_presell_agree`, data) } /** * @description 助力 -- 列表 @@ -386,79 +398,79 @@ export function assistReviewDetailApi(id) { /** * @description 助力商品 -- 详情(编辑和查看) */ -export function assistProductUpdateApi(id,data) { - return request.post(`store/product/assist/update/${id}`,data) +export function assistProductUpdateApi(id, data) { + return request.post(`store/product/assist/update/${id}`, data) } /** * @description 服务保障 -- 添加 */ export function guaranteeAddApi() { - return request.get(`guarantee/create/form`) + return request.get(`guarantee/create/form`) } /** * @description 服务保障 -- 列表 */ export function guaranteeLstApi(data) { - return request.get(`guarantee/lst`,data) + return request.get(`guarantee/lst`, data) } /** * @description 服务保障 -- 编辑排序 */ -export function guaranteeSortApi(id,data) { - return request.post(`guarantee/sort/${id}`,data) +export function guaranteeSortApi(id, data) { + return request.post(`guarantee/sort/${id}`, data) } /** * @description 服务保障 -- 修改显示状态 */ export function guaranteeStatusApi(id, status) { - return request.post(`guarantee/status/${id}`, status ) + return request.post(`guarantee/status/${id}`, status) } /** * @description 服务保障 -- 编辑 */ export function guaranteeUpdateApi(id) { - return request.get(`guarantee/update/${id}/form`) + return request.get(`guarantee/update/${id}/form`) } /** * @description 服务保障 -- 删除 */ export function guaranteeDeleteApi(id) { - return request.delete(`guarantee/delete/${id}`) + return request.delete(`guarantee/delete/${id}`) } /** * @description 商品列表 -- 编辑排序 */ export function productSort(id, data) { - return request.post(`store/reply/sort/${id}`,data) + return request.post(`store/reply/sort/${id}`, data) } /** 商品列表 -- 获取标签项 */ export function getProductLabelApi() { - return request.get(`product/label/option`) + return request.get(`product/label/option`) } /** 商品列表 -- 编辑标签 */ export function updatetProductLabel(id, data) { - return request.post(`store/product/labels/${id}`, data) + return request.post(`store/product/labels/${id}`, data) } /** 秒杀列表 -- 编辑标签 */ export function updatetSeckillLabel(id, data) { - return request.post(`seckill/product/labels/${id}`, data) + return request.post(`seckill/product/labels/${id}`, data) } /** 预售列表 -- 编辑标签 */ - export function updatetPresellLabel(id, data) { - return request.post(`store/product/presell/labels/${id}`, data) +export function updatetPresellLabel(id, data) { + return request.post(`store/product/presell/labels/${id}`, data) } /** 助力列表 -- 编辑标签 */ export function updatetAssistLabel(id, data) { - return request.post(`store/product/assist/labels/${id}`, data) + return request.post(`store/product/assist/labels/${id}`, data) } /** 拼团列表 -- 编辑标签 */ export function updatetCombinationLabel(id, data) { - return request.post(`store/product/group/labels/${id}`, data) + return request.post(`store/product/group/labels/${id}`, data) } /** * @description 上传视频 */ - export function productGetTempKeysApi() { +export function productGetTempKeysApi() { return request.get(`upload/temp_key`) } /** 商品列表 -- 批量设置标签 */ @@ -491,15 +503,15 @@ export function deletePriceRuleApi(id) { } /** 价格说明 -- 是否显示 */ export function priceRuleStatusApi(id, status) { - return request.post(`price_rule/status/${id}`,status) + return request.post(`price_rule/status/${id}`, status) } /** 参数模板 -- 添加 */ export function productSpecs(data) { - return request.post(`store/params/temp/create`,data) + return request.post(`store/params/temp/create`, data) } /** 参数模板 -- 编辑 */ export function specsUpdate(id, data) { - return request.post(`store/params/temp/update/${id}`,data) + return request.post(`store/params/temp/update/${id}`, data) } /** 参数模板 -- 详情 */ export function productSpecsInfo(id) { @@ -525,6 +537,6 @@ export function merProductLstApi(data) { return request.get(`store/product/list`, data) } /** 商品列表 -- 商品操作记录 */ -export function operateRecordList(id,data) { - return request.get(`store/product/get_operate_list/${id}`,data) +export function operateRecordList(id, data) { + return request.get(`store/product/get_operate_list/${id}`, data) } \ No newline at end of file diff --git a/src/views/merchant/deposit/index.vue b/src/views/merchant/deposit/index.vue index cf9708e..885c31f 100644 --- a/src/views/merchant/deposit/index.vue +++ b/src/views/merchant/deposit/index.vue @@ -303,7 +303,7 @@ type="text" size="small" @click="offline(scope.row.mer_id)" - >线下付款财务审核 diff --git a/src/views/merchant/list/index.vue b/src/views/merchant/list/index.vue index 0ba9b11..584e4a3 100644 --- a/src/views/merchant/list/index.vue +++ b/src/views/merchant/list/index.vue @@ -105,7 +105,7 @@ highlight-current-row > - + {{scope.row.is_huimei == 1 ? '是' : '否'}} diff --git a/src/views/order/list/index.vue b/src/views/order/list/index.vue index 143c958..d38e8b4 100644 --- a/src/views/order/list/index.vue +++ b/src/views/order/list/index.vue @@ -219,11 +219,11 @@ {{scope.row.user&&scope.row.user.nickname +'/'+ scope.row.uid}} - + @@ -290,7 +290,7 @@ {{ scope.row.create_time }} - + 详情 + 开启强制退款 @@ -346,7 +347,7 @@ // +---------------------------------------------------------------------- // | Author: CRMEB Team // +---------------------------------------------------------------------- -import { orderListApi, chartApi, cardListApi, exportOrderApi,openRefundApi } from "@/api/order"; +import { refundorderOpenApi,orderListApi, chartApi, cardListApi, exportOrderApi,openRefundApi } from "@/api/order"; import { merSelectApi } from "@/api/product"; import userDetails from '../../user/list/userDetails'; import orderDetail from './orderDetails.vue'; @@ -564,6 +565,10 @@ export default { this.drawer = true; // this.$refs.orderDetail.onOrderDetails(id); // this.$refs.orderDetail.onOrderLog(id); + }, + // 开启强制退款 + onOrderOpen(id) { + this.$modalForm(refundorderOpenApi(id)).then(() => this.getList('')) }, // 开启退款 // onOrderOpenRefund(id) { diff --git a/src/views/order/list/orderDetails.vue b/src/views/order/list/orderDetails.vue index 847ad36..51f7e5f 100644 --- a/src/views/order/list/orderDetails.vue +++ b/src/views/order/list/orderDetails.vue @@ -393,6 +393,10 @@ 商户类别: {{ orderDetailList.merchant.is_trader ? '自营' : '非自营' }} + + 店铺电话: + {{ orderDetailList.merchant.service_phone }} + diff --git a/src/views/order/logistics.vue b/src/views/order/logistics.vue new file mode 100644 index 0000000..e1b3504 --- /dev/null +++ b/src/views/order/logistics.vue @@ -0,0 +1,112 @@ + + + + + + 物流公司:{{ logisticsName ? orderDatalist.delivery_type : orderDatalist.delivery_name }} + 物流单号:{{ orderDatalist.delivery_id }} + + + + + + + + + + + + + + + + + + diff --git a/src/views/order/orderCancellate/index.vue b/src/views/order/orderCancellate/index.vue index 4393e1e..984385e 100644 --- a/src/views/order/orderCancellate/index.vue +++ b/src/views/order/orderCancellate/index.vue @@ -82,11 +82,11 @@ 用户已删除 - + {{ scope.row.merchant.mer_name }} diff --git a/src/views/order/refund/index.vue b/src/views/order/refund/index.vue index 040e8a0..b856674 100644 --- a/src/views/order/refund/index.vue +++ b/src/views/order/refund/index.vue @@ -174,6 +174,20 @@ + + + @@ -192,21 +206,24 @@ import { orderUpdateApi, refundorderStatusApi, refundorderDetailApi, + refundorderExpressApi, orderDeliveryApi, exportRefundOrderApi } from "@/api/order"; import createWorkBook from '@/utils/newToExcel.js'; import detailsFrom from './refundDetail' +import logisticsFrom from '../logistics' import { fromList } from "@/libs/constants.js"; import fileList from '@/components/exportFile/fileList' import { roterPre } from "@/settings"; import timeOptions from '@/utils/timeOptions'; export default { - components: { fileList,detailsFrom }, + components: { fileList,detailsFrom,logisticsFrom }, name: "OrderRefund", data() { return { pickerOptions: timeOptions, orderId: 0, + logisticsName: 'refund', roterPre: roterPre, tableData: { data: [], diff --git a/src/views/product/productExamine/index.vue b/src/views/product/productExamine/index.vue index df63af8..ed72dce 100644 --- a/src/views/product/productExamine/index.vue +++ b/src/views/product/productExamine/index.vue @@ -1,7 +1,7 @@ - + @@ -43,8 +43,8 @@ - - + + @@ -67,6 +67,12 @@ clearable /> + + + + + + 搜索 重置 @@ -78,7 +84,7 @@ - 批量审核 + 批量强制下架 批量不显示 批量显示 @@ -118,7 +124,11 @@ - + + + {{ productTypeList[scope.row.audit_type].label }} + + @@ -136,10 +146,10 @@ {{ scope.row.merchant ? scope.row.merchant.mer_name : '' }} - + - {{ scope.row.is_soldier ? '是' : '否' }} + {{ scope.row.is_huimei ? '是' : '否' }} @@ -147,7 +157,7 @@ - {{scope.row.is_audited?'上架商品修改':'首次提报'}} + {{ auditedList[scope.row.is_audited] }} @@ -169,10 +179,10 @@ - + 详情 - 审核 + {{ getStatusName(scope.row.status) }} 预览 @@ -418,6 +428,7 @@ export default { { label: "2星", value: 2 }, { label: "1星", value: 1 } ], + auditedList:['首次提报','非首次提报','首次修改'], recommend: proOptions, recommendList: [{ name: '热门榜单', @@ -454,9 +465,9 @@ export default { { label: "平台关闭", value: -1 }, ], productTypeList: [ - { label: '普通商品', value: 0 }, - { label: '虚拟商品', value: 1 }, - { label: '卡密商品', value: 2 } + { label: '食品及保健品', value: 0 }, + { label: '化妆品及日化品', value: 1 }, + { label: '其他品类', value: 2 } ], fullscreenLoading: false, isShow: false, @@ -474,6 +485,7 @@ export default { sys_labels: '', pid: '', store_name: '', + audit_type:'', type: '6', mer_id: '', keyword: '', @@ -511,6 +523,16 @@ export default { this.getLabelLst() }, methods: { + getStatusName(val){ + switch (val) { + case 0: + return '初始审核'; + case 10: + return '二次审核'; + case 11: + return '最终审核'; + } + }, // 具体日期 onchangeTime(e) { this.timeVal = e diff --git a/src/views/product/productExamine/info.vue b/src/views/product/productExamine/info.vue index 9f2ce58..e15eb3f 100644 --- a/src/views/product/productExamine/info.vue +++ b/src/views/product/productExamine/info.vue @@ -444,7 +444,7 @@ // +---------------------------------------------------------------------- // | Author: CRMEB Team // +---------------------------------------------------------------------- -import { productDetailApi, productStatusApi } from '@/api/product' +import { productDetailApi, productStatusApi,productStatusFirstApi,productStatusSecondApi } from '@/api/product' const defaultObj = { image: '', slider_image: [], @@ -634,11 +634,29 @@ export default { }, tit); }, onSubmit() { - console.log(this.isShow); + console.log(this.projectData); + let mode = { + 0: { + 'api': productStatusFirstApi, + 'status':10 + }, + 10: { + 'api': productStatusSecondApi, + 'status':11 + }, + 11: { + 'api': productStatusApi, + 'status':1 + } + } this.$refs.ruleForm.validate(valid=>{ if(valid){ this.isShow ? this.ruleForm.id = this.proId : this.ruleForm.id = this.ids - productStatusApi(this.ruleForm).then(res => { + let params = { + ...this.ruleForm, + status: this.ruleForm.status==-1?-1:mode[this.projectData.status].status, + } + mode[this.projectData.status].api(params).then(res => { this.$message.success(res.message) this.dialogVisible = false this.activeNames = 'first' @@ -659,7 +677,8 @@ export default { this.loading = true this.ruleForm.status_img = [] productDetailApi(id).then(res => { - this.projectData = res.data + this.projectData = res.data, + this.ruleForm.status_img = res.data.status_img let qualification={ production_name: '', businessList: [],