master
lion 1 month ago
parent f10876fac5
commit 65f038f8c2

@ -1838,6 +1838,14 @@ export default {
if (this.form.hasOwnProperty(key)) {
this.form[key] = defaultJSON[key];
}
if(this.form.flow_mod_id){
this.showEdit = true;
this.showTypes = false;
this.isWeixiu = true;
this.myPurchaseType = 1;
this.form.is_common_purchase = 0;
this.step = 2;
}
}
} catch (e) {
console.error(e);
@ -1950,16 +1958,6 @@ 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;
}
@ -2466,7 +2464,8 @@ export default {
this.getSh()
},
beforeRouteEnter(to, from, next) {
const { contractId, myPurchaseType,flowModId } = to.query;
const { contractId, myPurchaseType } = to.query;
console.log('to.query',to)
if (contractId) {
next((vm) => {
vm.contractId = contractId;
@ -2488,17 +2487,6 @@ 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;
@ -2544,6 +2532,7 @@ export default {
}
&-types {
width: 30%;
margin-left:15px;
.el-button {
margin-bottom: 10px;
}

Loading…
Cancel
Save