liudan 10 months ago
parent 4211f7bae6
commit 61459c2ae9
  1. 28
      view/admin/src/views/order/list/orderDetails.vue
  2. 19
      view/admin/src/views/order/orderCancellate/index.vue
  3. 44
      view/mer/src/router/index.js
  4. 7
      view/mer/src/store/modules/user.js

@ -292,15 +292,15 @@
<ul class="list"> <ul class="list">
<li class="item"> <li class="item">
<div>商户名称</div> <div>商户名称</div>
<div class="value"></div> <div class="value">{{orderDetailList.merchant?orderDetailList.merchant.mer_name:''}}</div>
</li> </li>
<li class="item"> <li class="item">
<div>商户类型</div> <div>商户类型</div>
<div class="value"></div> <div class="value">{{orderDetailList.merchant?getLable(orderDetailList.merchant.category_id):''}}</div>
</li> </li>
<li class="item"> <li class="item">
<div>商户类别</div> <div>商户类别</div>
<div class="value"></div> <div class="value">{{orderDetailList.merchant?orderDetailList.merchant.type_name:''}}</div>
</li> </li>
</ul> </ul>
</div> </div>
@ -389,6 +389,9 @@ import {
orderLogApi, orderLogApi,
getChildrenOrderApi getChildrenOrderApi
} from '@/api/order'; } from '@/api/order';
import {
getMerCateApi
} from "@/api/merchant";
export default { export default {
props: { props: {
drawer: { drawer: {
@ -435,9 +438,16 @@ export default {
}, },
}, },
orderImg: require('@/assets/images/order_icon.png'), orderImg: require('@/assets/images/order_icon.png'),
merCateList:[]
}; };
}, },
mounted(){
getMerCateApi().then(res => {
this.merCateList = res.data
}).catch(res => {
this.$message.error(res.message)
})
},
filters: { filters: {
}, },
methods: { methods: {
@ -469,6 +479,16 @@ export default {
toSendGoods() { toSendGoods() {
this.sendGoods = true; this.sendGoods = true;
}, },
getLable(id){
let arr = this.merCateList.filter(item=>{
return item.value==id
})
if(arr.length>0){
return arr[0].label
}else{
return ''
}
},
getDelivery() { getDelivery() {
orderDeliveryApi(this.orderId) orderDeliveryApi(this.orderId)
.then((res) => { .then((res) => {

@ -159,6 +159,15 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="verify_time" label="核销时间" min-width="150" /> <el-table-column prop="verify_time" label="核销时间" min-width="150" />
<el-table-column label="操作" min-width="90" fixed="right" align="center">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click="onOrderDetail(scope.row)"
>订单详情</el-button>
</template>
</el-table-column>
</el-table> </el-table>
<div class="block"> <div class="block">
<el-pagination <el-pagination
@ -254,6 +263,16 @@ export default {
this.getList(''); this.getList('');
}, },
methods: { methods: {
//
onOrderDetail(row) {
this.$router.push({
name: "OrderList",
query: {
order_sn: row.order_sn,
},
});
},
// //
exportOrder() { exportOrder() {
exportOrderApi({ exportOrderApi({

@ -81,31 +81,31 @@ export const constantRoutes = [
} }
] ]
}, },
{ // {
path: roterPre, // path: roterPre,
component: Layout, // component: Layout,
redirect: `${roterPre}/dashboard`, // redirect: `${roterPre}/dashboard`,
children: [ // children: [
{ // {
path: `${roterPre}/dashboard`, // path: `${roterPre}/dashboard`,
component: () => import('@/views/dashboard/index'), // component: () => import('@/views/dashboard/index'),
name: 'Dashboard', // name: 'Dashboard',
meta: { title: '控制台', icon: 'dashboard', affix: true } // meta: { title: '控制台', icon: 'dashboard', affix: true }
} // }
] // ]
}, // },
{ {
path: '/', path: '/',
component: Layout, component: Layout,
redirect: `${roterPre}/dashboard`, redirect: `${roterPre}/product/list`,
children: [ // children: [
{ // {
path: `${roterPre}/dashboard`, // path: `${roterPre}/dashboard`,
component: () => import('@/views/dashboard/index'), // component: () => import('@/views/dashboard/index'),
name: 'Dashboard', // name: 'Dashboard',
meta: { title: '控制台', icon: 'dashboard', affix: true } // meta: { title: '控制台', icon: 'dashboard', affix: true }
} // }
] // ]
}, },
{ {
path: `${roterPre}/login`, path: `${roterPre}/login`,

@ -69,8 +69,11 @@ const actions = {
getMenus({ commit }) { getMenus({ commit }) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
getMenusApi().then(response => { getMenusApi().then(response => {
commit('SET_MENU_LIST', response.data) let menus = response.data.filter(item=>{
localStorage.setItem('MenuList', JSON.stringify(response.data)) return item.route.indexOf('/merchant/dashboard')==-1
})
commit('SET_MENU_LIST', menus)
localStorage.setItem('MenuList', JSON.stringify(menus))
resolve(response) resolve(response)
}).catch(error => { }).catch(error => {
this.$message.error(error.message) this.$message.error(error.message)

Loading…
Cancel
Save