Commit 5bcdbb84 by zhouzy

1

1 parent e539d99c
...@@ -92,14 +92,8 @@ ...@@ -92,14 +92,8 @@
</div> </div>
<div class="bottom"> <div class="bottom">
<el-button-group> <el-button-group>
<el-button <el-button type="primary" @click="search">查询</el-button>
type="primary" <el-button type="default" @click="reset">重置</el-button>
@click="search"
>查询</el-button>
<el-button
type="default"
@click="reset"
>重置</el-button>
</el-button-group> </el-button-group>
</div> </div>
</div> </div>
...@@ -109,22 +103,10 @@ ...@@ -109,22 +103,10 @@
@tab-click="handleClick" @tab-click="handleClick"
data-target="orderStatus" data-target="orderStatus"
> >
<el-tab-pane <el-tab-pane label="全部" name=""></el-tab-pane>
label="全部" <el-tab-pane label="待收货" name="1,2"></el-tab-pane>
name="" <el-tab-pane label="已完成" name="3"></el-tab-pane>
></el-tab-pane> <el-tab-pane label="退款丨售后" name="4,6"></el-tab-pane>
<el-tab-pane
label="待收货"
name="1,2"
></el-tab-pane>
<el-tab-pane
label="已完成"
name="3"
></el-tab-pane>
<el-tab-pane
label="退款丨售后"
name="4,6"
></el-tab-pane>
</el-tabs> </el-tabs>
<d2-table <d2-table
v-if="flag" v-if="flag"
...@@ -134,15 +116,10 @@ ...@@ -134,15 +116,10 @@
:getListApi="tableParams.getListApi" :getListApi="tableParams.getListApi"
:hasNum="false" :hasNum="false"
> >
<span <span slot="auth-button" slot-scope="scope" :data="scope.scope">
slot="auth-button" <el-button type="text" @click="jump(scope.scope, 'order')"
slot-scope="scope" >查看详情</el-button
:data="scope.scope" >
>
<el-button
type="text"
@click="jump(scope.scope,'order')"
>查看详情</el-button>
</span> </span>
</d2-table> </d2-table>
</div> </div>
...@@ -155,7 +132,7 @@ import { orderMixin, searchMixin } from '@/mixins' ...@@ -155,7 +132,7 @@ import { orderMixin, searchMixin } from '@/mixins'
export default { export default {
name: '', name: '',
mixins: [orderMixin, searchMixin], mixins: [orderMixin, searchMixin],
data () { data() {
return { return {
tabIndex: '', tabIndex: '',
flag: false, flag: false,
...@@ -168,64 +145,71 @@ export default { ...@@ -168,64 +145,71 @@ export default {
label: '商品信息', label: '商品信息',
minWidth: '300', minWidth: '300',
align: 'left', align: 'left',
formatter (cell) { formatter(cell) {
let str = cell.appearance == 2 ? `<div>${cell.productName}${cell.denomination}</div>` : `<div>${cell.productName}</div>` let str =
cell.appearance == 2
? `<div>${cell.productName}${cell.denomination}</div>`
: `<div>${cell.productName}</div>`
return `<div>订单编号:${cell.orderCode}</div><div>${cell.brandName}</div>${str}` return `<div>订单编号:${cell.orderCode}</div><div>${cell.brandName}</div>${str}`
} },
}, },
{ {
label: '订单门店', label: '订单门店',
minWidth: '200', minWidth: '200',
formatter (cell) { formatter(cell) {
return cell.merchantName || '' return cell.merchantName || ''
} },
}, },
{ {
label: '价格/数量', label: '价格/数量',
minWidth: '200', minWidth: '200',
formatter (cell) { formatter(cell) {
return `${cell.salePrices}元\n${cell.goodsQuality}张` return `${cell.salePrices}元\n${cell.goodsQuality}张`
} },
}, },
{ {
label: '实收金额', label: '实收金额',
prop: 'orderPrices', prop: 'orderPrices',
minWidth: '200' minWidth: '200',
}, },
{ {
label: '订单状态', label: '订单状态',
minWidth: '200', minWidth: '200',
formatter (cell) { formatter(cell) {
return cell.appearance == 1 ? window.vm.$children[0].statusEnum[cell.orderStatus] : window.vm.$children[0].qb_statusEnum[cell.orderStatus] return cell.appearance == 1
} ? window.vm.$children[0].statusEnum[cell.orderStatus]
: window.vm.$children[0].qb_statusEnum[cell.orderStatus]
},
}, },
{ {
label: '下单时间', label: '下单时间',
prop: 'validitDate', prop: 'validitDate',
minWidth: '200', minWidth: '200',
sortable: true, sortable: true,
formatter (cell) { formatter(cell) {
return cell.orderDate ? new Date(cell.orderDate).format('yyyy-MM-dd hh:mm:ss') : '- -' return cell.orderDate
} ? new Date(cell.orderDate).format('yyyy-MM-dd hh:mm:ss')
: '- -'
},
}, },
{ {
label: '用户信息', label: '用户信息',
minWidth: '200', minWidth: '200',
formatter (cell) { formatter(cell) {
return `${cell.accountName || ''}\n${cell.mobile || ''}` return `${cell.accountName || ''}\n${cell.mobile || ''}`
} },
}, },
{
label: '海威订单号',
] minWidth: '100',
} addHtml: 'thirdOrderCode',
},
],
},
} }
}, },
mounted () { mounted() {},
}, methods: {},
methods: {
}
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!