夏滨修改
This commit is contained in:
parent
ed6dcdeaef
commit
cd03a8aaba
@ -1,3 +1,4 @@
|
||||
|
||||
import { createWebHistory, createRouter } from 'vue-router'
|
||||
/* Layout */
|
||||
import Layout from '@/layout'
|
||||
@ -92,13 +93,35 @@ export const constantRoutes = [
|
||||
component: () => import('@/views/goods/goodsManage/editGoods'),
|
||||
name: 'editGoods',
|
||||
meta: { title: '编辑商品', icon: '' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/goods/goodsReview/auditGoods/:activeTab?',
|
||||
component: () => import('@/views/goods/goodsReview/auditGoods'),
|
||||
name: 'auditGoods',
|
||||
meta: { title: '审核商品', icon: '' }
|
||||
}
|
||||
path: '/order',
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
redirect: 'noredirect',
|
||||
children: [
|
||||
{
|
||||
path: 'order/sendGoodsInfo/:activeTab?',
|
||||
component: () => import('@/views/order/sendGoodsInfo'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "去发货",
|
||||
icon: "star",
|
||||
},
|
||||
name: "sendGoodsInfo",
|
||||
},
|
||||
{
|
||||
path: 'order/orderDetails/:activeTab?',
|
||||
component: () => import('@/views/order/orderDetails'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "订单详情",
|
||||
icon: "star",
|
||||
},
|
||||
name: "orderDetails",
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -192,31 +215,7 @@ export const constantRoutes = [
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'goods/contrabandManage',
|
||||
component: () => import('@/views/goods/contrabandManage/index'),
|
||||
name: 'contrabandManage',
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "违禁物品管理",
|
||||
icon: "",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'goods/goodsReview',
|
||||
component: () => import('@/views/goods/goodsReview/index'),
|
||||
name: 'goodsReview',
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "上架审核设置",
|
||||
icon: "",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
},
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
@ -328,63 +327,122 @@ export const constantRoutes = [
|
||||
name: "brand",
|
||||
component: Layout,
|
||||
hidden: false,
|
||||
alwaysShow: true,
|
||||
redirect: 'noredirect',
|
||||
children: [
|
||||
{
|
||||
path: 'brand/index',
|
||||
component: () => import('@/views/brand/index'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
icon: "money",
|
||||
link: null,
|
||||
noCache: false,
|
||||
title: "公共品牌",
|
||||
icon: "star",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
name: "index",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/order',
|
||||
name: "order",
|
||||
component: Layout,
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "订单列表",
|
||||
icon: "documentation",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'brand/informationManagement',
|
||||
component: () => import('@/views/brand/informationManagement/index'),
|
||||
path: 'order/obligation',
|
||||
component: () => import('@/views/order/obligation'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "信息管理",
|
||||
icon: "",
|
||||
title: "待付款",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
name: "informationManagement",
|
||||
name: "obligation",
|
||||
},
|
||||
{
|
||||
path: 'brand/applicationReview',
|
||||
component: () => import('@/views/brand/applicationReview/index'),
|
||||
path: 'order/sendGoods',
|
||||
component: () => import('@/views/order/sendGoods'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "申请审核",
|
||||
icon: "",
|
||||
title: "待发货",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
name: "applicationReview",
|
||||
name: "sendGoods",
|
||||
},
|
||||
{
|
||||
path: 'brand/renewal',
|
||||
component: () => import('@/views/brand/renewal/index'),
|
||||
path: 'order/shipped',
|
||||
component: () => import('@/views/order/shipped'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "续期",
|
||||
icon: "",
|
||||
title: "已发货",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
name: "renewal",
|
||||
name: "shipped",
|
||||
},
|
||||
{
|
||||
path: 'brand/management',
|
||||
component: () => import('@/views/brand/management/index'),
|
||||
path: 'order/receivedGoods',
|
||||
component: () => import('@/views/order/receivedGoods'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "管理制度上传",
|
||||
icon: "",
|
||||
title: "已收货",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
name: "management",
|
||||
name: "receivedGoods",
|
||||
},
|
||||
{
|
||||
path: 'order/completed',
|
||||
component: () => import('@/views/order/completed'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "已完成",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
name: "completed",
|
||||
},
|
||||
{
|
||||
path: 'order/cancelled',
|
||||
component: () => import('@/views/order/cancelled'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "已取消",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
name: "cancelled",
|
||||
},
|
||||
{
|
||||
path: 'order/salesService',
|
||||
component: () => import('@/views/order/salesService'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "退货/退款",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
name: "salesService",
|
||||
},
|
||||
{
|
||||
path: 'order/refunded',
|
||||
component: () => import('@/views/order/refunded'),
|
||||
hidden: false,
|
||||
meta: {
|
||||
title: "已退货/退款",
|
||||
noCache: false,
|
||||
link: null,
|
||||
},
|
||||
name: "refunded",
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
]
|
||||
|
@ -194,9 +194,9 @@
|
||||
"
|
||||
class="order-list-warp-right-list"
|
||||
>
|
||||
<div>退款理由</div>
|
||||
<div>申请退款原因</div>
|
||||
<div style="color: #000000">
|
||||
{{ detailsData.totalQuantity }}
|
||||
{{ detailsData.refundReason }}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
@ -206,9 +206,31 @@
|
||||
"
|
||||
class="order-list-warp-right-list"
|
||||
>
|
||||
<div>退款描述</div>
|
||||
<div>申请退款时间</div>
|
||||
<div style="color: #000000">
|
||||
{{ detailsData.totalQuantity }}
|
||||
{{ detailsData.refundApproveTime }}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
detailsData.orderStatus == '10' ||
|
||||
detailsData.orderStatus == '11'
|
||||
"
|
||||
class="order-list-warp-right-list"
|
||||
>
|
||||
<div style="color: red">申请退款金额</div>
|
||||
<div style="color: red">¥{{ detailsData.payableAmount }}</div>
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
detailsData.orderStatus == '10' &&
|
||||
detailsData.refundAuditResult
|
||||
"
|
||||
class="order-list-warp-right-list"
|
||||
>
|
||||
<div style="color: red">拒绝退款原因</div>
|
||||
<div style="color: red">
|
||||
{{ detailsData.refundFailReason }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="order-list-warp-right-list">
|
||||
@ -311,6 +333,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ElMessage } from "element-plus";
|
||||
import { ref, reactive, computed, onMounted, onBeforeUnmount } from "vue";
|
||||
import {
|
||||
createLogisticOrder,
|
||||
@ -418,17 +441,22 @@ const submit = () => {
|
||||
refund(
|
||||
refundState.value == "1"
|
||||
? {
|
||||
id: detailsData.value.id,
|
||||
orderId: detailsData.value.id,
|
||||
approveStatus: refundState.value,
|
||||
refundAmount: refundPrice.value,
|
||||
}
|
||||
: {
|
||||
id: detailsData.value.id,
|
||||
orderId: detailsData.value.id,
|
||||
approveStatus: refundState.value,
|
||||
refuseReason: rejectReason.value,
|
||||
}
|
||||
).then((res) => {
|
||||
dialogVisible.value = false;
|
||||
ElMessage({
|
||||
message: "操作成功",
|
||||
type: "success",
|
||||
plain: true,
|
||||
});
|
||||
getOrderDetails();
|
||||
});
|
||||
};
|
||||
|
@ -280,7 +280,7 @@ const router = useRouter();
|
||||
const preserveExpanded = ref(true);
|
||||
const formInline = reactive({
|
||||
orderNo: "",
|
||||
orderStatus: "3",
|
||||
orderStatus: "11",
|
||||
current: 1,
|
||||
size: 10,
|
||||
receiverName: "",
|
||||
|
@ -285,10 +285,10 @@
|
||||
<!-- 自定义-操作 -->
|
||||
<template #action="slotProps">
|
||||
<div @click="goSend(slotProps.row)" class="send-button">去发货</div>
|
||||
<div @click="upAddress(slotProps.row)" class="send-button">
|
||||
<div @click="upAddress(slotProps.row.id)" class="send-button">
|
||||
修改收货地址
|
||||
</div>
|
||||
<div @click="goSends(slotProps.row)" class="send-buttons-info">
|
||||
<div @click="goSends(slotProps.row.id)" class="send-buttons-info">
|
||||
查看详情
|
||||
</div>
|
||||
<!-- <el-tooltip effect="dark" placement="bottom-end">
|
||||
@ -418,10 +418,10 @@ const resetForm = () => {
|
||||
searchForm.value.resetFields();
|
||||
};
|
||||
|
||||
const goSends = (id) => {
|
||||
const goSends = (data) => {
|
||||
router.push({
|
||||
path: "/order/order/orderDetails",
|
||||
query: { data: id },
|
||||
query: { data: data },
|
||||
});
|
||||
};
|
||||
|
||||
@ -532,7 +532,7 @@ const generateMockData = () => {
|
||||
const upAddress = (data) => {
|
||||
dialogVisible.value = true;
|
||||
console.log("31231");
|
||||
upid.value = data.id;
|
||||
upid.value = data;
|
||||
|
||||
// router.push({
|
||||
// path: "/order/order/sendGoodsInfo",
|
||||
|
@ -134,6 +134,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ElMessage } from "element-plus";
|
||||
import { ref, reactive, computed, onMounted, onBeforeUnmount } from "vue";
|
||||
import { createLogisticOrder } from "../../api/order/list";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
@ -142,7 +143,6 @@ const router = useRouter();
|
||||
const tableData = ref([]);
|
||||
const radio1 = ref("2");
|
||||
onMounted(() => {
|
||||
// console.log(JSON.parse(route.query.data));
|
||||
tableData.value = JSON.parse(route.query.data).orderItemInfos;
|
||||
});
|
||||
|
||||
@ -150,7 +150,6 @@ watch(
|
||||
() => route.query.data,
|
||||
(newSearch) => {
|
||||
if (route.query.data) {
|
||||
console.log(JSON.parse(route.query.data));
|
||||
tableData.value = JSON.parse(route.query.data).orderItemInfos;
|
||||
}
|
||||
}
|
||||
@ -219,6 +218,11 @@ const send = async () => {
|
||||
});
|
||||
console.log(response);
|
||||
if (response.code == 200) {
|
||||
ElMessage({
|
||||
message: "发货成功",
|
||||
type: "success",
|
||||
plain: true,
|
||||
});
|
||||
router.back();
|
||||
}
|
||||
} catch (error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user