diff --git a/src/views/contract/contractEdit.vue b/src/views/contract/contractEdit.vue index 6af6f79..a88ad79 100644 --- a/src/views/contract/contractEdit.vue +++ b/src/views/contract/contractEdit.vue @@ -327,7 +327,7 @@ @@ -1230,7 +1230,7 @@ >
- 维修相关 + >采购事项类别 --> + + +
预算计划支出直接支付
@@ -1727,6 +1742,14 @@ export default { }; }, methods: { + handlePurchaseTypeChange(id) { + this.showTypes = false; + this.myPurchaseType = 1; + this.isWeixiu = true; + this.form.is_common_purchase = 0; + this.step = 2; + this.showEdit = true; +}, // 查看OA流程 viewOaFlow(flowId) { // 调用本地的toOaDetail方法 @@ -1927,6 +1950,16 @@ export default { ...data, }; }); + const { flowModId } = this.$route.query; + if(flowModId){ + this.form.flow_mod_id = parseInt(flowModId); + this.showTypes = false; + this.isWeixiu = true; + this.myPurchaseType = 1; + this.form.is_common_purchase = 0; + this.step = 2; + this.showEdit = true; + } } catch (e) { this.flowIds = copy; } @@ -2433,7 +2466,7 @@ export default { this.getSh() }, beforeRouteEnter(to, from, next) { - const { contractId, myPurchaseType } = to.query; + const { contractId, myPurchaseType,flowModId } = to.query; if (contractId) { next((vm) => { vm.contractId = contractId; @@ -2455,6 +2488,17 @@ export default { vm.form.is_common_purchase = 1; } }); + }else if(flowModId){ + next((vm) => { + vm.form.flow_mod_id = parseInt(flowModId); + vm.showTypes = false; + vm.isWeixiu = true; + vm.myPurchaseType = 1; + vm.form.is_common_purchase = 0; + vm.step = 2; + vm.showEdit = true; + }); + } else { next((vm) => { vm.showTypes = true;