master
lion 1 month ago
parent f10876fac5
commit 65f038f8c2

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

Loading…
Cancel
Save