Commit 5bcdbb84 by zhouzy

1

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