master
lion 3 years ago
commit 2b8d4b8370

@ -245,6 +245,7 @@ export default {
header-align={item.headerAlign ?? 'center'} header-align={item.headerAlign ?? 'center'}
label={item.label} label={item.label}
prop={item.prop} prop={item.prop}
fixed={item.fixed || false}
scopedSlots={{ scopedSlots={{
default(scope) { default(scope) {
return item.customFn(scope.row,scope) return item.customFn(scope.row,scope)

@ -57,11 +57,11 @@ export const constantRoutes = [{
}, },
{ {
path: '/dashboard', path: '/',
component: Layout, component: Layout,
redirect: '/dashboard', redirect: '/dashboard',
children: [{ children: [{
path: '', path: 'dashboard',
name: '系统首页', name: '系统首页',
component: () => import('@/views/dashboard/index'), component: () => import('@/views/dashboard/index'),
meta: { meta: {

@ -8,9 +8,20 @@
<div style="display: flex;align-items: center;"> <div style="display: flex;align-items: center;">
<div style="margin-right: 10px;">是否包含历史记录</div> <div style="margin-right: 10px;">是否包含历史记录</div>
<el-switch v-model="select.show_history" :active-value="1" :inactive-value="0"></el-switch> <el-switch v-model="select.show_history" :active-value="1" :inactive-value="0" style="margin-right: 10px;"></el-switch>
<Button type="primary" @click="getList" style="margin-left: 10px">查询</Button> <div style="margin-right: 10px;">订单状态</div>
<el-select size="mini" placeholder="请选择状态" v-model="select.state" style="width: 140px;margin-right: 10px;">
<el-option v-for="(item,index) in status" :key="index" :label="item.label" :value="item.value">
</el-option>
</el-select>
<div style="margin-right: 10px;">关键词</div>
<el-input size="mini" placeholder="请输入关键词" v-model="select.keyword" style="width: 160px;margin-right: 10px;"></el-input>
<el-button size="medium" type="primary" @click="getList" style="margin-left: 10px">查询</el-button>
</div> </div>
</slot> </slot>
</LxHeader> </LxHeader>
@ -58,8 +69,48 @@ export default {
select:{ select:{
page:1, page:1,
rows:10, rows:10,
show_history:0 show_history:0,
state:'',
keyword:''
},
status:[
{
label:'待处理',
value:'pending'
},
{
label:'已分发',
value:'assigned'
},
{
label:'已退回',
value:'returned'
},
{
label:'已接收',
value:'accepted'
},
{
label:'确认有效',
value:'confirmed'
},
{
label:'用户申请取消',
value:'canceled_by_user'
},
{
label:'商家标注无效单',
value:'canceled_by_merchant'
}, },
{
label:'已完成',
value:'finished'
},
{
label:'已取消',
value:'canceled'
},
],
total:0, total:0,
data:[], data:[],
logs:[], logs:[],
@ -93,25 +144,37 @@ export default {
label:'客户姓名', label:'客户姓名',
sortable:false, sortable:false,
prop:'member_name', prop:'member_name',
width:160 width:140
}, },
{ {
label:'客户电话', label:'客户电话',
sortable:false, sortable:false,
prop:'member_phone', prop:'member_phone',
width: 200 width: 180
}, },
{ {
label:'预产期', label:'预产期',
sortable:false, sortable:false,
prop:'member_due_date', prop:'member_due_date',
width: 180 width: 160
}, },
{ {
label:'产品类型', label:'产品类型',
sortable:false, sortable:false,
prop:'product_type.name', prop:'product_type.name',
width: 180 width: 140
},
{
prop:'order.serial',
label:'订单编号',
width:180,
sortable:false,
},
{
prop:'order.created_at',
label:'订单创建时间',
width:180,
sortable:false,
}, },
{ {
label:'状态', label:'状态',
@ -123,6 +186,8 @@ export default {
label:'操作', label:'操作',
sortable:false, sortable:false,
align:'left', align:'left',
fixed:'right',
minWidth:200,
customFn:row => { customFn:row => {
const _this = this const _this = this
let map = new Map([ let map = new Map([
@ -218,4 +283,7 @@ export default {
//::v-deep .el-button + .el-button{ //::v-deep .el-button + .el-button{
// margin-left: 0 !important; // margin-left: 0 !important;
//} //}
::v-deep .el-button{
padding: 5px 8px !important;
}
</style> </style>

@ -24,7 +24,7 @@ module.exports = {
* In most cases please use '/' !!! * In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: '/admin/', publicPath: '/merchant/',
outputDir: '/Users/liuxiangyu/Work/yunyubang/yunyubang-service/public/merchant', outputDir: '/Users/liuxiangyu/Work/yunyubang/yunyubang-service/public/merchant',
assetsDir: 'static', assetsDir: 'static',
css: { css: {

Loading…
Cancel
Save