|
|
|
@ -4,8 +4,28 @@
|
|
|
|
|
<el-form :model="formData" :rules="formRules" ref="dataForm" label-width="120px">
|
|
|
|
|
<el-row type="flex" justify="end" v-if="editType == 1">
|
|
|
|
|
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px">
|
|
|
|
|
<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()"
|
|
|
|
|
>审核过程
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
@ -168,10 +188,31 @@
|
|
|
|
|
:purType="1"
|
|
|
|
|
></purPlanProducts>
|
|
|
|
|
</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="true"
|
|
|
|
|
:closeDialog="closeDialog"
|
|
|
|
|
:idQuery="idQuery"
|
|
|
|
|
></approvalFlowDetail>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import approvalFlowDetail from "@/components/ApprovalFlow/index";
|
|
|
|
|
import {getSysApprovalFlowConfig} from "@/api/basic/sysApprovalFlow";
|
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
|
import purPlanProducts from "@/views/purchase/purPlan/purOrderSelectProduct";
|
|
|
|
|
import {auditOrder, delOrderDetail, listOrderDetail} from "@/api/purchase/purOrder";
|
|
|
|
@ -231,6 +272,7 @@ export default {
|
|
|
|
|
1: "草稿",
|
|
|
|
|
2: "未审核",
|
|
|
|
|
3: "已审核",
|
|
|
|
|
4: "拒绝",
|
|
|
|
|
},
|
|
|
|
|
typeMap: {
|
|
|
|
|
1: "预入库",
|
|
|
|
@ -244,6 +286,8 @@ export default {
|
|
|
|
|
busTypes: [],
|
|
|
|
|
currentRow: {},
|
|
|
|
|
selectedIndex: "",
|
|
|
|
|
sysApprovalFlowConfig: false,
|
|
|
|
|
approvalFlowDetailVisible: false,
|
|
|
|
|
selectProductVisible: false,
|
|
|
|
|
thisData: {},
|
|
|
|
|
subInvList: [],
|
|
|
|
@ -255,9 +299,24 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
draggable,
|
|
|
|
|
purPlanProducts,
|
|
|
|
|
purPlanProducts, approvalFlowDetail
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
methods: { getConfig(){
|
|
|
|
|
getSysApprovalFlowConfig().then((response) => {
|
|
|
|
|
this.sysApprovalFlowConfig = response.data;
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// closeDialog() {
|
|
|
|
|
// this.approvalFlowDetailVisible = false;
|
|
|
|
|
// },
|
|
|
|
|
handleClose() {
|
|
|
|
|
this.approvalFlowDetailVisible = false;
|
|
|
|
|
},
|
|
|
|
|
showApprovalFlowDetail() {
|
|
|
|
|
this.idQuery = this.formData
|
|
|
|
|
this.approvalFlowDetailVisible = true;
|
|
|
|
|
},
|
|
|
|
|
saveOrder(status) {
|
|
|
|
|
let tip = "";
|
|
|
|
|
if (status == "3") {
|
|
|
|
@ -494,6 +553,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.findTargetSubInvs();
|
|
|
|
|
this.codeArray = [];
|
|
|
|
|
this.getConfig();
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|