|
|
@@ -296,7 +296,7 @@
|
|
|
<el-col :span="1.5">
|
|
|
<el-button plain type="info" icon="el-icon-upload2" size="mini" @click="handleImport" v-hasPermi="['store:storeOrder:importExpress']">导入银行回单</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="success"
|
|
|
icon="el-icon-s-check"
|
|
|
@@ -306,7 +306,7 @@
|
|
|
v-hasPermi="['store:storeOrder:batchAudit']"
|
|
|
>确认审核
|
|
|
</el-button>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="warning"
|
|
|
@@ -602,6 +602,12 @@
|
|
|
@click="handleDetails(scope.row)"
|
|
|
v-hasPermi="['store:storeOrder:query']"
|
|
|
>查看</el-button>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="handleOrderAudit(scope.row)"
|
|
|
+ v-hasPermi="['store:storeOrder:batchAudit']"
|
|
|
+ >确认审核</el-button>
|
|
|
<!-- <el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
@@ -2329,17 +2335,19 @@ export default {
|
|
|
},
|
|
|
|
|
|
/** 订单确认审核 */
|
|
|
- handleOrderAudit(){
|
|
|
- if (this.ids.length === 0) {
|
|
|
- this.$message.warning('请至少勾选一条订单进行审核');
|
|
|
- return;
|
|
|
- }
|
|
|
- this.$confirm('是否确认审核选中的订单?', "提示", {
|
|
|
+ handleOrderAudit(row){
|
|
|
+ // if (this.ids.length === 0 && row) {
|
|
|
+ // this.$message.warning('请至少勾选一条订单进行审核');
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ const ids = [row.id];
|
|
|
+ //const ids = row.id || this.ids;
|
|
|
+ this.$confirm('是否确认审核订单号:'+row.orderCode+'?', "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
- return auditStoreOrder({ orderIds: this.ids, isAudit: 1 });
|
|
|
+ return auditStoreOrder({ orderIds: ids, isAudit: 1 });
|
|
|
}).then((response) => {
|
|
|
this.getList();
|
|
|
this.msgSuccess(response.msg || "审核成功");
|