|
|
@@ -6,7 +6,7 @@
|
|
|
{{scope.row.order_sn}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="下单用户" prop="openid" width="220"></el-table-column>
|
|
|
+ <el-table-column label="下单用户" prop="openid" width="240"></el-table-column>
|
|
|
<el-table-column label="订单状态" prop="certificate_id" width="120">
|
|
|
<template #default="scope">
|
|
|
{{ status[scope.row.status] }}
|
|
|
@@ -44,7 +44,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="取件号" prop="package_sn" width="120"></el-table-column>
|
|
|
- <el-table-column label="失败原因" prop="money" width="220">
|
|
|
+ <el-table-column label="失败原因" prop="money" width="180">
|
|
|
<template #default="scope">
|
|
|
{{ scope.row.reason?scope.row.reason:'-' }}
|
|
|
</template>
|
|
|
@@ -79,20 +79,19 @@
|
|
|
</el-table-column>
|
|
|
</scTable>
|
|
|
<formMain ref="formMain" @success="handleSuccess"></formMain>
|
|
|
+ <refundMain ref="refundMain" @success="handleSuccess"></refundMain>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import formMain from "./detail";
|
|
|
+import refundMain from "./refund";
|
|
|
export default {
|
|
|
components: {
|
|
|
- formMain
|
|
|
+ formMain,refundMain
|
|
|
},
|
|
|
props: {
|
|
|
type: { type: String, default: "1" }
|
|
|
},
|
|
|
- components: {
|
|
|
- formMain
|
|
|
- },
|
|
|
data(){
|
|
|
return {
|
|
|
colorData:['','彩色','黑白'],
|
|
|
@@ -122,14 +121,17 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
table_del(data){
|
|
|
- this.$confirm("确定要对整笔订单进行退款吗","退款确认",{type: 'warning'}).then(async ()=>{
|
|
|
- var resp = await this.$API.mOrder.refund.post({"id":data.id});
|
|
|
- if (resp.code == 0) {
|
|
|
- return this.$message.error(resp.msg)
|
|
|
- }
|
|
|
- this.$message.success(resp.msg)
|
|
|
- this.$refs.table.refresh()
|
|
|
- }).catch(()=>{});
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.refundMain.open("edit").setData(data)
|
|
|
+ })
|
|
|
+ // this.$confirm("确定要对整笔订单进行退款吗","退款确认",{type: 'warning'}).then(async ()=>{
|
|
|
+ // var resp = await this.$API.mOrder.refund.post({"id":data.id});
|
|
|
+ // if (resp.code == 0) {
|
|
|
+ // return this.$message.error(resp.msg)
|
|
|
+ // }
|
|
|
+ // this.$message.success(resp.msg)
|
|
|
+ // this.$refs.table.refresh()
|
|
|
+ // }).catch(()=>{});
|
|
|
},
|
|
|
refresh(){
|
|
|
this.$refs.table.refresh()
|