|
|
@@ -44,7 +44,7 @@
|
|
|
<el-descriptions :column="2" size="large" direction="vertical" class="mt10" border>
|
|
|
<el-descriptions-item>
|
|
|
<template #label>支付金额(元)</template>
|
|
|
- <div class="price" v-if="formData.discount > 0">
|
|
|
+ <div class="price" v-if="formData.money > formData.discount">
|
|
|
{{ $TOOL.money(formData.discount) }}
|
|
|
<div class="del">{{ $TOOL.money(formData.money) }}</div>
|
|
|
</div>
|
|
|
@@ -63,7 +63,18 @@
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
<el-table :data="tableData" style="width: 100%" border class="mt10">
|
|
|
- <el-table-column label="文件名" prop="name" width="260" fixed="left"></el-table-column>
|
|
|
+ <el-table-column label="文件名" prop="name" width="180" fixed="left"></el-table-column>
|
|
|
+ <el-table-column label="状态" prop="name">
|
|
|
+ <template #default="scope">
|
|
|
+ <span v-if="scope.row.status==0">转码中</span>
|
|
|
+ <span v-if="scope.row.status==1">待打印</span>
|
|
|
+ <span v-if="scope.row.status==2">打印中</span>
|
|
|
+ <span v-if="scope.row.status==3">已打印</span>
|
|
|
+ <span v-if="scope.row.status==4">退款中</span>
|
|
|
+ <span v-if="scope.row.status==5">退款失败</span>
|
|
|
+ <span v-if="scope.row.status==6">已退款</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="页数" prop="page" align="center"></el-table-column>
|
|
|
<el-table-column label="纸张" prop="paper_size"></el-table-column>
|
|
|
<el-table-column label="颜色" prop="name">
|
|
|
@@ -95,12 +106,7 @@
|
|
|
<el-table-column label="操作" width="160" align="right" fixed="right">
|
|
|
<template #default="scope">
|
|
|
<el-button-group>
|
|
|
- <el-button text type="warning" size="small" @click="table_edit(scope.row)">预览/下载</el-button>
|
|
|
- <el-popconfirm title="确定要退款吗?" @confirm="table_del(scope.row, scope.$index)" v-if="scope.row.status > 0">
|
|
|
- <template #reference>
|
|
|
- <el-button text type="danger" size="small">退款</el-button>
|
|
|
- </template>
|
|
|
- </el-popconfirm>
|
|
|
+ <el-button text type="warning" size="small" @click="table_edit(scope.row)">预览/下载</el-button>
|
|
|
</el-button-group>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -144,6 +150,9 @@ export default {
|
|
|
this.formData = data;
|
|
|
this.tableData = data.detail;
|
|
|
},
|
|
|
+ table_edit(data){
|
|
|
+ console.log(data.path)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|