|
|
|
@ -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>
|
|
|
|
|