1.修复单据类型切换选项导致控制按钮回显联动失效问题

prod
x_z 2 years ago
parent 50a9c3446b
commit 6cc1c28e74

@ -227,7 +227,8 @@ export default {
label: '特殊往来' label: '特殊往来'
}], }],
twoCheck: false, twoCheck: false,
settingDialogVisible: false settingDialogVisible: false,
oldData: {}
} }
}, },
methods: { methods: {
@ -261,6 +262,14 @@ export default {
} else { } else {
this.inputQuery.defaultUnit = null; this.inputQuery.defaultUnit = null;
} }
if (this.inputQuery.corpType !== 1) {
this.inputQuery.genUnit = false;
this.inputQuery.useDyCount = false;
} else {
this.inputQuery.genUnit = this.oldData.genUnit;
this.inputQuery.useDyCount = this.oldData.useDyCount;
}
}, },
// //
@ -321,6 +330,7 @@ export default {
} }
this.getList(); this.getList();
this.findSpecialMethod(); this.findSpecialMethod();
this.oldData = Object.assign({}, this.inputQuery);
}, },
}; };
</script> </script>

Loading…
Cancel
Save