diff --git a/src/views/emis/emisWaybillAjustApply/InvoiceCancellationForm.vue b/src/views/emis/emisWaybillAjustApply/InvoiceCancellationForm.vue index 5656b138..877ff2d0 100644 --- a/src/views/emis/emisWaybillAjustApply/InvoiceCancellationForm.vue +++ b/src/views/emis/emisWaybillAjustApply/InvoiceCancellationForm.vue @@ -70,7 +70,7 @@ export default { }, data() { return { - isFormDisabled: null, + // isFormDisabled: null, form: {}, invoiceList: [], fileList: [], @@ -106,9 +106,14 @@ export default { created() { this.initData(); }, + computed: { + isFormDisabled() { + return this.openType === "view"; + } + }, methods: { async initData() { - this.isFormDisabled = (this.openType === "view"); // 查看详情时,表单禁用 + // this.isFormDisabled = (this.openType === "view"); // 查看详情时,表单禁用 if (this.id) { let res = await getEmisInvoiceCancellation(this.id); let data= res.data || {};