feat: 审核流程配置功能

dev_ksck2.0
chenhc 1 year ago
parent d37972bc83
commit fa33dc0f57

@ -123,7 +123,7 @@ export default {
}); });
}, },
approvalFlowUpdate(row) { approvalFlowUpdate(row) {
if (row.approvalStatus == 2){ if (row.approvalStatus == 2 && this.isChang){
this.approvalFlow.id = row.id this.approvalFlow.id = row.id
this.approvalFlowUpdateShow = !this.approvalFlowUpdateShow this.approvalFlowUpdateShow = !this.approvalFlowUpdateShow
} }
@ -138,7 +138,7 @@ export default {
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.idQuery.approvalFlowId console.log(this.idQuery.approvalFlowId)
getDetailList(this.idQuery.approvalFlowId) getDetailList(this.idQuery.approvalFlowId)
.then((response) => { .then((response) => {
this.activities = response.data || []; this.activities = response.data || [];

@ -254,9 +254,10 @@ export default {
deleteLoading: false, deleteLoading: false,
orderNo: null, orderNo: null,
statusMap: { statusMap: {
1: "草稿", 0: "草稿",
2: "未审核", 1: "未审核",
3: "已审核", 2: "已审核",
3: "已拒绝"
}, },
orderEditor: true, orderEditor: true,
iCount: 0, iCount: 0,

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

@ -354,6 +354,7 @@
v-if="newSpDistributionVisible" v-if="newSpDistributionVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:before-close="handleClose"
> >
<auditDetail <auditDetail
:closeDialog="closeDialog" :closeDialog="closeDialog"
@ -394,10 +395,10 @@ export default {
targetInvCode: null, targetInvCode: null,
}, },
statusMap: { statusMap: {
1: "草稿", 0: "草稿",
2: "未审核", 1: "未审核",
3: "已审核", 2: "已审核",
4: "已拒绝" 3: "已拒绝"
}, },
idQuery: null, idQuery: null,
newSpDistributionVisible: false, newSpDistributionVisible: false,
@ -463,6 +464,9 @@ export default {
}, },
methods: { methods: {
handleClose() {
this.closeDialog()
},
onReset() { onReset() {
this.$router.push({ this.$router.push({
path: "", path: "",

@ -3,20 +3,26 @@
<el-form :model="formData" ref="dataForm" label-width="100px"> <el-form :model="formData" ref="dataForm" label-width="100px">
<el-row type="flex" justify="end"> <el-row type="flex" justify="end">
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px;margin-top: -5px"> <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 <el-button
type="primary" type="primary"
@click.native="saveOrder('3')" @click.native="showApprovalFlowDetail()"
:loading="loading" >审核过程
>审核通过 </el-button>
</el-button
>
<el-button
type="primary"
@click.native="saveOrder('4')"
:loading="loading"
>审核拒绝
</el-button
>
</el-button-group> </el-button-group>
</el-row> </el-row>
<el-card style="margin-top: -5px;"> <el-card style="margin-top: -5px;">
@ -80,10 +86,30 @@
</el-table> </el-table>
</el-card> </el-card>
</el-form> </el-form>
<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> </div>
</template> </template>
<script> <script>
import approvalFlowDetail from "@/components/ApprovalFlow/index";
import dialogInvProduct from "../DialogSelectInvProduct"; import dialogInvProduct from "../DialogSelectInvProduct";
import {getAudit, getOrderDetail} from "@/api/inout/receiveOrder"; import {getAudit, getOrderDetail} from "@/api/inout/receiveOrder";
@ -104,11 +130,14 @@ export default {
billNo: null, billNo: null,
createTime: "", createTime: "",
billType: "", billType: "",
approvalFlowId: ""
}, },
codeArray: [], codeArray: [],
}, },
data() { data() {
return { return {
idQuery: {},
approvalFlowDetailVisible: false,
showSearch: true, showSearch: true,
code: "", code: "",
query: { query: {
@ -119,9 +148,19 @@ export default {
}; };
}, },
components: { components: {
dialogInvProduct dialogInvProduct,approvalFlowDetail
}, },
methods: { methods: {
closeDialog() {
this.approvalFlowDetailVisible = false;
},
handleClose() {
this.approvalFlowDetailVisible = false;
},
showApprovalFlowDetail() {
this.idQuery = this.formData
this.approvalFlowDetailVisible = true;
},
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },

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

@ -410,10 +410,29 @@
:idQuery="idQuery" :idQuery="idQuery"
></auditDetail> ></auditDetail>
</el-dialog> </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> </div>
</template> </template>
<script> <script>
import approvalFlowDetail from "@/components/ApprovalFlow/index";
import {getOrderDetail, getReceiveOrder, printOrder} from "@/api/inout/receiveOrder"; import {getOrderDetail, getReceiveOrder, printOrder} from "@/api/inout/receiveOrder";
import auditDetail from "@/views/inout/receive/receiveAuditDetail" import auditDetail from "@/views/inout/receive/receiveAuditDetail"
import {delReceive} from "@/api/thrsys/thrOrderReceive"; import {delReceive} from "@/api/thrsys/thrOrderReceive";
@ -441,15 +460,16 @@ export default {
targetInvCode: null, targetInvCode: null,
}, },
statusMap: { statusMap: {
1: "草稿", 0: "草稿",
2: "未审核", 1: "未审核",
3: "已审核", 2: "已审核",
4: "已拒绝" 3: "已拒绝"
}, },
idQuery: null, idQuery: null,
invList: [], invList: [],
invCodebe: null, invCodebe: null,
newSpDistributionVisible: false, newSpDistributionVisible: false,
approvalFlowDetailVisible: false,
total: 0, total: 0,
tableHeader:[], tableHeader:[],
queryList:[], queryList:[],
@ -543,6 +563,13 @@ export default {
}, },
methods: { methods: {
handleClose() {
this.approvalFlowDetailVisible = false;
},
showApprovalFlowDetail(_this,row) {
_this.idQuery = row
_this.approvalFlowDetailVisible = true;
},
onReset() { onReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
@ -715,6 +742,7 @@ export default {
}, },
closeDialog() { closeDialog() {
this.newSpDistributionVisible = false; this.newSpDistributionVisible = false;
this.approvalFlowDetailVisible = false;
}, },
executeFuc(row,type,clickFuc,value){ executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value); return executeFuc(this,row,type,clickFuc,value);
@ -727,7 +755,7 @@ export default {
} }
}, },
components: { components: {
auditDetail auditDetail,approvalFlowDetail
}, },
mounted() { mounted() {
}, },

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

Loading…
Cancel
Save