|
@@ -167,6 +167,15 @@
|
|
|
label="备注">
|
|
|
<template slot-scope="scope">{{ scope.row.memo ? scope.row.memo : '-' }}</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button v-if="scope.row.status != 'SUCCESS'"
|
|
|
+ v-permission="'order/getOrderStatus'"
|
|
|
+ @click="onGetOrderStatus(scope.row)"
|
|
|
+ type="text">查询订单状态</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<pagination :total="pageInfo.total"
|
|
|
:page.sync="pageInfo.page"
|
|
@@ -179,7 +188,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import pagination from '@/components/Pagination/index'
|
|
|
-import { orderQueryPage } from '@/api/orderManager'
|
|
|
+import { orderQueryPage, getOrderStatus } from '@/api/orderManager'
|
|
|
import { getEmployeeOrgan } from '@/api/buildTeam'
|
|
|
import store from '@/store'
|
|
|
import { orderStatus, dealStatus } from '@/utils/searchArray'
|
|
@@ -385,6 +394,17 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ onGetOrderStatus(row) {
|
|
|
+ this.$confirm("您确定查询该订单状态", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ getOrderStatus({ id: row.id }).then(res => {
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ }).catch(err => { })
|
|
|
+ },
|
|
|
searchOrderDate (value) {
|
|
|
if (value) {
|
|
|
this.searchForm.orderStartDate = value[0];
|