|
@@ -19,10 +19,13 @@
|
|
:loading="loading"
|
|
:loading="loading"
|
|
>
|
|
>
|
|
<template slot="customize">
|
|
<template slot="customize">
|
|
- <el-button @click="batchAudit" type="primary"> 批量审核 </el-button>
|
|
|
|
- <el-button @click="batchExport" type="info" plain>
|
|
|
|
|
|
+ <el-button @click="batchAudit(1)" type="primary"> 批量审核 </el-button>
|
|
|
|
+ <el-button v-if="isTj" @click="batchAudit(-1)" type="warning"
|
|
|
|
+ >批量审核不通过</el-button
|
|
|
|
+ >
|
|
|
|
+ <!-- <el-button @click="batchExport" type="info" plain>
|
|
导出excel
|
|
导出excel
|
|
- </el-button>
|
|
|
|
|
|
+ </el-button> -->
|
|
</template>
|
|
</template>
|
|
<template slot="payStatus" slot-scope="props">
|
|
<template slot="payStatus" slot-scope="props">
|
|
<div>
|
|
<div>
|
|
@@ -69,7 +72,7 @@
|
|
:disabled="
|
|
:disabled="
|
|
props.scope.row.payStatus !== 2 || getRoles(props.scope.row.roleId)
|
|
props.scope.row.payStatus !== 2 || getRoles(props.scope.row.roleId)
|
|
"
|
|
"
|
|
- @click="batchAudit(props.scope.row)"
|
|
|
|
|
|
+ @click="openDialog({ ...props.scope.row, isEdit: 1 })"
|
|
>
|
|
>
|
|
审核
|
|
审核
|
|
</el-button>
|
|
</el-button>
|
|
@@ -102,6 +105,7 @@
|
|
<!-- 订单列表 -->
|
|
<!-- 订单列表 -->
|
|
<dislogOrderList
|
|
<dislogOrderList
|
|
:info="activeOrderInfo"
|
|
:info="activeOrderInfo"
|
|
|
|
+ @search="search"
|
|
:dialogVisible.sync="orderDialogVisible"
|
|
:dialogVisible.sync="orderDialogVisible"
|
|
/>
|
|
/>
|
|
<dislog-set
|
|
<dislog-set
|
|
@@ -114,6 +118,12 @@
|
|
:activeData="activeOrderInfo"
|
|
:activeData="activeOrderInfo"
|
|
:dialogVisible.sync="printDialogVisible"
|
|
:dialogVisible.sync="printDialogVisible"
|
|
/>
|
|
/>
|
|
|
|
+ <!-- 审核 -->
|
|
|
|
+ <dislog-batch-audit
|
|
|
|
+ :info="activeOrderInfo"
|
|
|
|
+ @search="search"
|
|
|
|
+ :dialogVisible.sync="auditDialogVisible"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -122,6 +132,7 @@ import dislogSet from "../../components/audit/dislogSet.vue";
|
|
import dislogOrderList from "../components/dislogOrderList";
|
|
import dislogOrderList from "../components/dislogOrderList";
|
|
import pictureList from "@/components/Comon/pictureList.vue";
|
|
import pictureList from "@/components/Comon/pictureList.vue";
|
|
import dislogPrint from "../components/dislogPrint.vue";
|
|
import dislogPrint from "../components/dislogPrint.vue";
|
|
|
|
+import dislogBatchAudit from "../components/dislogBatchAudit";
|
|
import { exportFn } from "@/utils/index.js";
|
|
import { exportFn } from "@/utils/index.js";
|
|
import { companyList, tenantExport, countOrderNum } from "@/api/financed/index";
|
|
import { companyList, tenantExport, countOrderNum } from "@/api/financed/index";
|
|
|
|
|
|
@@ -132,6 +143,7 @@ export default {
|
|
dislogSet,
|
|
dislogSet,
|
|
dislogOrderList,
|
|
dislogOrderList,
|
|
dislogPrint,
|
|
dislogPrint,
|
|
|
|
+ dislogBatchAudit,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -244,6 +256,7 @@ export default {
|
|
orderDialogVisible: false,
|
|
orderDialogVisible: false,
|
|
printDialogVisible: false,
|
|
printDialogVisible: false,
|
|
examineDialogVisible: false,
|
|
examineDialogVisible: false,
|
|
|
|
+ auditDialogVisible: false,
|
|
activeOrderInfo: { type: 1 },
|
|
activeOrderInfo: { type: 1 },
|
|
activeOrderInfoArray: [],
|
|
activeOrderInfoArray: [],
|
|
activeList: [],
|
|
activeList: [],
|
|
@@ -268,9 +281,12 @@ export default {
|
|
data.forEach((e) => (e.checkFrom = 2));
|
|
data.forEach((e) => (e.checkFrom = 2));
|
|
this.activeOrderInfoArray = data;
|
|
this.activeOrderInfoArray = data;
|
|
} else {
|
|
} else {
|
|
|
|
+ data.checkFrom = 2;
|
|
this.activeOrderInfo = data;
|
|
this.activeOrderInfo = data;
|
|
}
|
|
}
|
|
- this[["order", "examine", "print"][type] + "DialogVisible"] = true;
|
|
|
|
|
|
+ this[
|
|
|
|
+ ["order", "examine", "print", "audit"][type] + "DialogVisible"
|
|
|
|
+ ] = true;
|
|
},
|
|
},
|
|
batchExport() {
|
|
batchExport() {
|
|
tenantExport(this.formData).then((res) => {
|
|
tenantExport(this.formData).then((res) => {
|
|
@@ -358,24 +374,19 @@ export default {
|
|
this.statisticsList[2].value = deductMoneyTotal + unDeductMoneyTotal;
|
|
this.statisticsList[2].value = deductMoneyTotal + unDeductMoneyTotal;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- batchAudit(e) {
|
|
|
|
- let ids = e.id
|
|
|
|
- ? [e.id]
|
|
|
|
- : this.$refs.tableList.allCheckData.map((e) => e.id);
|
|
|
|
- if (ids.length === 0) {
|
|
|
|
|
|
+ batchAudit(checkResult = 1) {
|
|
|
|
+ const divideLogIds = this.$refs.tableList.allCheckData.map((e) => e.id);
|
|
|
|
+ if (divideLogIds.length === 0) {
|
|
this.$message.error("请先勾选待审核数据");
|
|
this.$message.error("请先勾选待审核数据");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- this.$confirm("审核通过不可撤销,确定审核通过吗?", "提示", {
|
|
|
|
- confirmButtonText: "确定通过",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "warning",
|
|
|
|
- }).then(() => {
|
|
|
|
- this.$message({
|
|
|
|
- type: "success",
|
|
|
|
- message: "批量审核成功!",
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
|
|
+ this.openDialog(
|
|
|
|
+ {
|
|
|
|
+ divideLogIds,
|
|
|
|
+ checkResult,
|
|
|
|
+ },
|
|
|
|
+ 3
|
|
|
|
+ );
|
|
},
|
|
},
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -474,6 +485,9 @@ export default {
|
|
rolesId() {
|
|
rolesId() {
|
|
return this.$store.state.user.rolesId;
|
|
return this.$store.state.user.rolesId;
|
|
},
|
|
},
|
|
|
|
+ isTj() {
|
|
|
|
+ return this.$store.state.user.roles.includes("统计");
|
|
|
|
+ },
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
"formData.billType": {
|
|
"formData.billType": {
|