|
|
@@ -154,6 +154,12 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="是否审核" prop="isAudit">
|
|
|
+ <el-select v-model="queryParams.isAudit" placeholder="请选择" clearable size="small" >
|
|
|
+ <el-option key="1" label="是" value="1" />
|
|
|
+ <el-option key="0" label="否" value="0" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
@@ -186,6 +192,17 @@
|
|
|
v-hasPermi="['store:storeOrder:exportItems']"
|
|
|
>导出订单明细</el-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ icon="el-icon-s-check"
|
|
|
+ size="mini"
|
|
|
+ :disabled="multiple"
|
|
|
+ @click="handleOrderAudit"
|
|
|
+ v-hasPermi="['store:storeOrder:batchAudit']"
|
|
|
+ >确认审核
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
<el-tabs type="card" v-model="activeName" @tab-click="handleClick">
|
|
|
@@ -270,6 +287,13 @@
|
|
|
<span v-else class="no-products">暂无商品</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="是否审核" align="center" prop="isAudit" width="100px">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag :type="scope.row.isAudit == 1 ? 'success' : 'info'" size="small">
|
|
|
+ {{ scope.row.isAudit == 1 ? '是' : '否' }}
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="状态" align="center" prop="status" >
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag prop="status" v-for="(item, index) in statusOptions" v-if="scope.row.status==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
@@ -472,7 +496,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {exportStoreOrderItems, createUserOrder,listStoreOrder, getStoreOrder, delStoreOrder, addStoreOrder, updateStoreOrder, exportStoreOrder } from "@/api/hisStore/storeOrder";
|
|
|
+import {exportStoreOrderItems, createUserOrder,listStoreOrder, getStoreOrder, delStoreOrder, addStoreOrder, updateStoreOrder, exportStoreOrder, auditStoreOrder } from "@/api/hisStore/storeOrder";
|
|
|
import { getUserList } from "@/api/users/user";
|
|
|
import { getAddressList } from "@/api/users/userAddress";
|
|
|
import { getTcmScheduleList } from "@/api/company/tcmScheduleReport";
|
|
|
@@ -609,7 +633,8 @@ export default {
|
|
|
shippingType: null,
|
|
|
isChannel: null,
|
|
|
isRemind: null,
|
|
|
- isSysDel: null
|
|
|
+ isSysDel: null,
|
|
|
+ isAudit:null,
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {
|
|
|
@@ -964,7 +989,27 @@ export default {
|
|
|
}).then(response => {
|
|
|
this.download(response.msg);
|
|
|
}).catch(function() {});
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ /** 订单确认审核 */
|
|
|
+ handleOrderAudit(){
|
|
|
+ if (this.ids.length === 0) {
|
|
|
+ this.$message.warning('请至少勾选一条订单进行审核');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.$confirm('是否确认审核选中的订单?', "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ return auditStoreOrder({ orderIds: this.ids, isAudit: 1 });
|
|
|
+ }).then((response) => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess(response.msg || "审核成功");
|
|
|
+ }).catch(() => {
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
</script>
|