|
@@ -192,7 +192,7 @@
|
|
|
v-hasPermi="['store:storeOrder:exportItems']"
|
|
v-hasPermi="['store:storeOrder:exportItems']"
|
|
|
>导出订单明细</el-button>
|
|
>导出订单明细</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
|
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
<el-button
|
|
|
type="success"
|
|
type="success"
|
|
|
icon="el-icon-s-check"
|
|
icon="el-icon-s-check"
|
|
@@ -202,7 +202,7 @@
|
|
|
v-hasPermi="['store:storeOrder:batchAudit']"
|
|
v-hasPermi="['store:storeOrder:batchAudit']"
|
|
|
>确认审核
|
|
>确认审核
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- </el-col>
|
|
|
|
|
|
|
+ </el-col> -->
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-tabs type="card" v-model="activeName" @tab-click="handleClick">
|
|
<el-tabs type="card" v-model="activeName" @tab-click="handleClick">
|
|
@@ -319,6 +319,12 @@
|
|
|
@click="handleDetails(scope.row)"
|
|
@click="handleDetails(scope.row)"
|
|
|
v-hasPermi="['store:storeOrder:query']"
|
|
v-hasPermi="['store:storeOrder:query']"
|
|
|
>查看</el-button>
|
|
>查看</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ @click="handleOrderAudit(scope.row)"
|
|
|
|
|
+ v-hasPermi="['store:storeOrder:batchAudit']"
|
|
|
|
|
+ >确认审核</el-button>
|
|
|
<!-- <el-button
|
|
<!-- <el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
@@ -992,17 +998,18 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/** 订单确认审核 */
|
|
/** 订单确认审核 */
|
|
|
- handleOrderAudit(){
|
|
|
|
|
- if (this.ids.length === 0) {
|
|
|
|
|
- this.$message.warning('请至少勾选一条订单进行审核');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ handleOrderAudit(row){
|
|
|
|
|
+ // if (this.ids.length === 0) {
|
|
|
|
|
+ // this.$message.warning('请至少勾选一条订单进行审核');
|
|
|
|
|
+ // return;
|
|
|
|
|
+ // }
|
|
|
|
|
+ const ids = [row.id];
|
|
|
this.$confirm('是否确认审核选中的订单?', "提示", {
|
|
this.$confirm('是否确认审核选中的订单?', "提示", {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- return auditStoreOrder({ orderIds: this.ids, isAudit: 1 });
|
|
|
|
|
|
|
+ return auditStoreOrder({ orderIds: ids, isAudit: 1 });
|
|
|
}).then((response) => {
|
|
}).then((response) => {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
this.msgSuccess(response.msg || "审核成功");
|
|
this.msgSuccess(response.msg || "审核成功");
|