|
|
@@ -106,6 +106,7 @@
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="220">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" v-hasPermi="['his:guCoinOrder:query']" @click="handleDetail(scope.row)">详情</el-button>
|
|
|
+ <el-button size="mini" type="text" v-hasPermi="['his:guCoinOrder:audit']" @click="handleAudit(scope.row)" v-if="scope.row.status === 0">审核</el-button>
|
|
|
<el-button size="mini" type="text" v-hasPermi="['his:guCoinOrder:express']" @click="handleExpress(scope.row)" v-if="scope.row.deliverySn">查看物流</el-button>
|
|
|
<el-button size="mini" type="text" v-hasPermi="['his:guCoinOrder:edit']" @click="handleEdit(scope.row)">订单修改</el-button>
|
|
|
</template>
|
|
|
@@ -278,7 +279,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listGuCoinOrder, exportGuCoinOrder, getGuCoinOrder, updateGuCoinOrder, getGuCoinOrderExpress, syncGuCoinOrderExpress } from "@/api/hisStore/guCoinOrder";
|
|
|
+import { listGuCoinOrder, exportGuCoinOrder, getGuCoinOrder, updateGuCoinOrder, getGuCoinOrderExpress, syncGuCoinOrderExpress, auditGuCoinOrder } from "@/api/hisStore/guCoinOrder";
|
|
|
|
|
|
export default {
|
|
|
name: "GuCoinOrder",
|
|
|
@@ -317,8 +318,9 @@ export default {
|
|
|
},
|
|
|
// 字典
|
|
|
deliveryStatusOptions: [],
|
|
|
- // 1待发货 2待收货 3已完成 4待支付 5已取消
|
|
|
+ // 0待审核 1待发货 2待收货 3已完成 4待支付 5已取消
|
|
|
statusOptions: [
|
|
|
+ { value: 0, label: "待审核" },
|
|
|
{ value: 4, label: "待支付" },
|
|
|
{ value: 1, label: "待发货" },
|
|
|
{ value: 2, label: "待收货" },
|
|
|
@@ -408,6 +410,20 @@ export default {
|
|
|
default: return "-";
|
|
|
}
|
|
|
},
|
|
|
+ handleAudit(row) {
|
|
|
+ this.$confirm("确认审核该订单?审核后订单将变为待发货状态", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ auditGuCoinOrder(row.orderId).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("审核成功");
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }).catch(() => {});
|
|
|
+ },
|
|
|
handleDetail(row) {
|
|
|
getGuCoinOrder(row.orderId).then(response => {
|
|
|
this.detailData = response.data;
|