feat: 审核开关

dev_ksck2.0
chenhc 1 year ago
parent b81dde75c8
commit e72c3871f0

@ -17,3 +17,11 @@ export function submitApprovalFlow(query) {
data: query
});
}
export function getSysApprovalFlowConfig(query) {
return axios({
url: BUSINESS_PRE+"/sysApprovalFlow/config",
method: "GET",
data: query
});
}

@ -138,7 +138,6 @@ export default {
},
getList() {
this.loading = true;
console.log(this.idQuery.approvalFlowId)
getDetailList(this.idQuery.approvalFlowId)
.then((response) => {
this.activities = response.data || [];

@ -417,10 +417,10 @@ export default {
update: "编辑领用单据",
},
statusMap: {
0: "草稿",
1: "未审核",
2: "已审核",
3: "已拒绝"
1: "草稿",
2: "未审核",
3: "已审核",
4: "已拒绝"
},
idQuery: {},
corpList: [],

@ -366,7 +366,7 @@
<script>
import {getOrderDetail, getReceiveOrder, printOrder} from "@/api/inout/receiveOrder";
import auditDetail from "@/views/inout/receive/receiveAuditDetail"
import auditDetail from "@/views/inout/receive/receiveAuditDetail";
import {
filterSub,
filterSubAllOptimize,
@ -395,10 +395,10 @@ export default {
targetInvCode: null,
},
statusMap: {
0: "草稿",
1: "未审核",
2: "已审核",
3: "已拒绝"
1: "草稿",
2: "未审核",
3: "已审核",
4: "已拒绝"
},
idQuery: null,
newSpDistributionVisible: false,

@ -1,23 +1,27 @@
<script src="../../../api/basic/sysApprovalFlow.js"></script>
<template>
<div>
<el-form :model="formData" ref="dataForm" label-width="100px">
<el-row type="flex" justify="end">
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px;margin-top: -5px">
<!-- <el-button-->
<!-- type="primary"-->
<!-- @click.native="saveOrder('3')"-->
<!-- :loading="loading"-->
<!-- >审核通过-->
<!-- </el-button-->
<!-- >-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- @click.native="saveOrder('4')"-->
<!-- :loading="loading"-->
<!-- >审核拒绝-->
<!-- </el-button-->
<!-- >-->
<el-button
v-show="!this.sysApprovalFlowConfig"
type="primary"
@click.native="saveOrder('3')"
:loading="loading"
>审核通过
</el-button
>
<el-button
v-show="!this.sysApprovalFlowConfig"
type="primary"
@click.native="saveOrder('4')"
:loading="loading"
>审核拒绝
</el-button
>
<el-button
v-show="this.sysApprovalFlowConfig"
type="primary"
@click.native="showApprovalFlowDetail()"
>审核过程
@ -112,6 +116,7 @@
import approvalFlowDetail from "@/components/ApprovalFlow/index";
import dialogInvProduct from "../DialogSelectInvProduct";
import {getAudit, getOrderDetail} from "@/api/inout/receiveOrder";
import {getSysApprovalFlowConfig} from "@/api/basic/sysApprovalFlow";
export default {
name: "idQuery",
@ -137,6 +142,7 @@ export default {
data() {
return {
idQuery: {},
sysApprovalFlowConfig: false,
approvalFlowDetailVisible: false,
showSearch: true,
code: "",
@ -151,9 +157,15 @@ export default {
dialogInvProduct,approvalFlowDetail
},
methods: {
closeDialog() {
this.approvalFlowDetailVisible = false;
getConfig(){
getSysApprovalFlowConfig().then((response) => {
this.sysApprovalFlowConfig = response.data;
}).catch(() => {
});
},
// closeDialog() {
// this.approvalFlowDetailVisible = false;
// },
handleClose() {
this.approvalFlowDetailVisible = false;
},
@ -189,15 +201,17 @@ export default {
this.$message.error(res.message);
}
}))
this.closeDialog()
}
},
filters: {},
mounted() {
},
created() {
console.log(this.idQuery)
// console.log(this.idQuery)
this.formData = this.idQuery;
this.handleDetail();
this.getConfig();
},
};
</script>

@ -419,11 +419,27 @@
></dialogNewReceive>
</el-dialog>
<el-dialog
title="审批详情"
:visible.sync="approvalFlowDetailVisible"
width="80%"
v-if="approvalFlowDetailVisible"
@close='closeDialog'
:close-on-click-modal="false"
:close-on-press-escape="false"
:before-close="handleClose"
>
<approvalFlowDetail
:isChang="false"
:closeDialog="closeDialog"
:idQuery="idQuery"
></approvalFlowDetail>
</el-dialog>
</div>
</template>
<script>
import approvalFlowDetail from "@/components/ApprovalFlow/index";
import {getOrderDetail, getReceiveOrder, printOrder} from "@/api/inout/receiveOrder";
import auditDetail from "@/views/inout/receive/receiveAuditDetail"
import {delReceive} from "@/api/thrsys/thrOrderReceive";
@ -454,16 +470,17 @@ export default {
invCode: null
},
statusMap: {
0: "草稿",
1: "未审核",
2: "已审核",
3: "已拒绝"
1: "草稿",
2: "未审核",
3: "已审核",
4: "已拒绝"
},
idQuery: {},
invList: [],
invCodebe: null,
newSpDistributionVisible: false,
pureApplyEditVisible: false,
approvalFlowDetailVisible: false,
total: 0,
tableHeader:[],
queryList:[],
@ -557,6 +574,13 @@ export default {
},
methods: {
handleClose() {
this.approvalFlowDetailVisible = false;
},
showApprovalFlowDetail(_this,row) {
_this.idQuery = row
_this.approvalFlowDetailVisible = true;
},
onReset() {
this.$router.push({
path: "",
@ -739,6 +763,7 @@ export default {
closeDialog() {
this.newSpDistributionVisible = false;
this.pureApplyEditVisible = false;
this.approvalFlowDetailVisible = false;
},
@ -754,7 +779,7 @@ export default {
},
components: {
auditDetail, dialogNewReceive
auditDetail, dialogNewReceive,approvalFlowDetail
},
mounted() {
},

@ -460,10 +460,10 @@ export default {
targetInvCode: null,
},
statusMap: {
0: "草稿",
1: "未审核",
2: "已审核",
3: "已拒绝"
1: "草稿",
2: "未审核",
3: "已审核",
4: "已拒绝"
},
idQuery: null,
invList: [],

@ -113,10 +113,10 @@ export default {
},
formName: null,
statusMap: {
0: "草稿",
1: "未审核",
2: "已审核",
3: "已拒绝"
1: "草稿",
2: "未审核",
3: "已审核",
4: "已拒绝"
},
ids: [],
idQuery: {},

Loading…
Cancel
Save