|
|
@@ -44,11 +44,11 @@
|
|
|
v-loading="fetchingData"
|
|
|
>
|
|
|
<el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
|
|
|
- <el-table-column prop="id" label="订单编号" width="100"> </el-table-column>
|
|
|
- <el-table-column prop="userId" label="用户ID"> </el-table-column>
|
|
|
- <el-table-column prop="phone" label="手机号"> </el-table-column>
|
|
|
- <el-table-column prop="mintActivityId" label="铸造活动ID"> </el-table-column>
|
|
|
- <el-table-column prop="mintActivity" label="活动名称"></el-table-column>
|
|
|
+ <el-table-column prop="id" label="订单编号" width="80"> </el-table-column>
|
|
|
+ <el-table-column prop="userId" label="用户ID" min-width="80"> </el-table-column>
|
|
|
+ <el-table-column prop="phone" label="手机号" min-width="90"> </el-table-column>
|
|
|
+ <el-table-column prop="mintActivityId" label="铸造活动ID" min-width="80"> </el-table-column>
|
|
|
+ <el-table-column prop="mintActivity" label="活动名称" min-width="120"></el-table-column>
|
|
|
<!-- <el-table-column prop="createdAt" label="铸造时间" min-width="120"> </el-table-column> -->
|
|
|
<el-table-column prop="material" label="铸造材料详情" min-width="120">
|
|
|
<template slot-scope="{ row }">
|
|
|
@@ -61,7 +61,7 @@
|
|
|
<el-tag type="info" v-else>否</el-tag>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column label="收件人信息">
|
|
|
+ <el-table-column label="收件人信息" min-width="120" show-overflow-tooltip>
|
|
|
<template slot-scope="{ row }">
|
|
|
<span>{{ row.contactName }}</span>
|
|
|
<span style="margin-left: 10px">{{ row.contactPhone }}</span
|
|
|
@@ -69,20 +69,23 @@
|
|
|
<span>{{ row.address }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="payAt" label="支付时间"></el-table-column>
|
|
|
+ <el-table-column prop="payAt" label="支付时间" min-width="120" show-overflow-tooltip></el-table-column>
|
|
|
<!-- <el-table-column prop="payMethod" label="支付方式" :formatter="payMethodFormatter"> </el-table-column>
|
|
|
- <el-table-column prop="payAt" label="支付时间"> </el-table-column>
|
|
|
- <el-table-column prop="contactName" label="收货人"> </el-table-column>
|
|
|
- <el-table-column prop="contactPhone" label="收货电话"> </el-table-column>
|
|
|
- <el-table-column prop="address" label="收货地址"> </el-table-column>
|
|
|
<el-table-column prop="gasPrice" label="gas费"> </el-table-column> -->
|
|
|
<el-table-column prop="status" label="状态" :formatter="statusFormatter"> </el-table-column>
|
|
|
- <el-table-column label="操作" align="right" fixed="right" width="160">
|
|
|
+ <el-table-column label="操作" align="left" fixed="right" width="160">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-button @click="finish(row)" type="warning" size="mini" plain v-if="row.status == 'AIR_DROP'"
|
|
|
+ <el-button @click="editRow(row)" type="primary" size="mini" plain>查看</el-button>
|
|
|
+ <el-button @click="finish(row)" type="success" size="mini" plain v-if="row.status == 'AIR_DROP'"
|
|
|
>已空投</el-button
|
|
|
>
|
|
|
- <el-button @click="editRow(row)" type="primary" size="mini" plain>查看</el-button>
|
|
|
+ <el-button @click="delivery(row)" type="warning" size="mini" plain v-if="row.status == 'DELIVERY'"
|
|
|
+ >已发货</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="finish(row)" type="success" size="mini" plain v-if="row.status == 'RECEIVE'"
|
|
|
+ >已收货</el-button
|
|
|
+ >
|
|
|
+
|
|
|
<!-- <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -246,6 +249,27 @@ export default {
|
|
|
console.log(e.error);
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+ delivery(row) {
|
|
|
+ this.$prompt('请输入快递单号', '快递单号', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消'
|
|
|
+ })
|
|
|
+ .then(({ value }) => {
|
|
|
+ return this.$http.get('/mintOrder/delivery', {
|
|
|
+ id: row.id,
|
|
|
+ courierId: value
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getData();
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '取消输入'
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|