master
lynn 7 months ago
parent 4232330995
commit d5aee10b40

@ -2074,8 +2074,8 @@ export default {
// //
if (this.form.skipBeforeTemplate && !this.isEditMode) { if (this.form.skipBeforeTemplate && !this.isEditMode) {
// //
submitData.before_forms = ''; submitData.before_forms = this.form.before_forms;
submitData.before_other_data = []; submitData.before_other_data = this.form.before_contract_template.contract_template_fields;
} else if (this.form.before_contract_template) { } else if (this.form.before_contract_template) {
// //
submitData.before_forms = this.form.before_forms; submitData.before_forms = this.form.before_forms;
@ -2085,8 +2085,8 @@ export default {
// //
if (this.form.skipAfterTemplate && !this.isEditMode) { if (this.form.skipAfterTemplate && !this.isEditMode) {
// //
submitData.forms = ''; submitData.forms = this.form.forms;
submitData.other_data = []; submitData.other_data = this.form.contract_template.contract_template_fields;
} else if (this.form.contract_template) { } else if (this.form.contract_template) {
// //
submitData.forms = this.form.forms; submitData.forms = this.form.forms;
@ -3166,19 +3166,19 @@ export default {
if (res) { if (res) {
console.log("detail", res); console.log("detail", res);
// // //
if (res.before_contract_template) { // if (res.before_contract_template && res.before_forms.length === 0) {
// , // // ,
await this.handleEdit(row, true); // await this.handleEdit(row, true);
return; // return;
} // }
// // //
if (res.contract_template) { // if (res.contract_template && res.forms.length === 0) {
// , // // ,
await this.handleEdit(row, true); // await this.handleEdit(row, true);
return; // return;
} // }
// , // ,
this.$refs['paymentRegistration'].getContract(row); this.$refs['paymentRegistration'].getContract(row);

Loading…
Cancel
Save