diff --git a/src/views/accounting/attachment/index.vue b/src/views/accounting/attachment/index.vue index a5043c04..e7bffe12 100644 --- a/src/views/accounting/attachment/index.vue +++ b/src/views/accounting/attachment/index.vue @@ -183,6 +183,7 @@ :rules="rules" label-width="140px" style="margin-top: 20px" + :disabled="this.title === '查看会计附件'" > diff --git a/src/views/accounting/bankSlip/index.vue b/src/views/accounting/bankSlip/index.vue index 80200342..84932ffa 100644 --- a/src/views/accounting/bankSlip/index.vue +++ b/src/views/accounting/bankSlip/index.vue @@ -329,7 +329,13 @@
将文件拖到此处,或点击上传
--> - + - + diff --git a/src/views/accounting/flow/index.vue b/src/views/accounting/flow/index.vue index 8c437e3d..068d0538 100644 --- a/src/views/accounting/flow/index.vue +++ b/src/views/accounting/flow/index.vue @@ -193,6 +193,7 @@ :rules="rules" label-width="130px" style="margin-top: 20px" + :disabled="this.title === '查看审批流程'" > diff --git a/src/views/accounting/invoices/index.vue b/src/views/accounting/invoices/index.vue index 01aa1ba9..608b1f7f 100644 --- a/src/views/accounting/invoices/index.vue +++ b/src/views/accounting/invoices/index.vue @@ -384,7 +384,13 @@ 只能上传图片,PDF,OFD文件 --> - + diff --git a/src/views/accounting/report/index.vue b/src/views/accounting/report/index.vue index 7955a927..89d2e75b 100644 --- a/src/views/accounting/report/index.vue +++ b/src/views/accounting/report/index.vue @@ -210,7 +210,13 @@ width="1000px" append-to-body > - + - + @@ -310,7 +316,13 @@ 记账凭证 - + @@ -440,6 +452,7 @@ :model="form" label-width="140px" style="margin-top: 20px" + :disabled="this.title === '查看会计凭证'" > @@ -515,6 +528,7 @@ :model="form" label-width="130px" style="margin-top: 20px" + :disabled="this.title === '查看会计凭证'" > @@ -588,7 +602,12 @@ width="1200px" append-to-body > - + 发票信息 @@ -936,7 +955,12 @@ width="1200px" append-to-body > - + 银行回单信息 diff --git a/src/views/accounting/voucherDetails/index.vue b/src/views/accounting/voucherDetails/index.vue index 152639ff..e392d1a9 100644 --- a/src/views/accounting/voucherDetails/index.vue +++ b/src/views/accounting/voucherDetails/index.vue @@ -244,7 +244,12 @@ - + diff --git a/src/views/ea/electronicAssets/index.vue b/src/views/ea/electronicAssets/index.vue index 1e0289e6..fe64f25b 100644 --- a/src/views/ea/electronicAssets/index.vue +++ b/src/views/ea/electronicAssets/index.vue @@ -285,6 +285,7 @@ name="multipartFile" :multiple="false" :accept="imgType" + v-show="uploadDisabled" >
将文件拖到此处,或点击上传
@@ -296,6 +297,7 @@ :rules="rules" label-width="98px" style="margin-top: 20px" + :disabled="this.title === '查看资产档案'" > @@ -326,6 +328,7 @@ :clearable="true" placeholder="请选择归属部门" :normalizer="normalizer" + :disabled="treeDisabled" />
@@ -524,6 +527,8 @@ export default { Authorization: "Bearer " + getAccessToken(), "tenant-id": getTenantId(), }, // 设置上传的请求头 + uploadDisabled: undefined, + treeDisabled: undefined, fileList: [], // 文件列表 // 部门树选项 deptOptions: undefined, @@ -759,11 +764,15 @@ export default { this.fileList = []; this.open = true; this.optType = "add"; + this.treeDisabled = false; + this.uploadDisabled = true; this.title = "添加资产档案"; }, /** 查看按钮操作 */ handleView(row) { this.reset(); + this.treeDisabled = true; + this.uploadDisabled = false; this.optType = "view"; const id = row.id; getElectronicAssets(id).then((response) => { @@ -776,6 +785,8 @@ export default { handleUpdate(row) { this.reset(); const id = row.id; + this.treeDisabled = false; + this.uploadDisabled = true; this.optType = "edit"; getElectronicAssets(id).then((response) => { this.form = response.data; diff --git a/src/views/ea/electronicConsultation/index.vue b/src/views/ea/electronicConsultation/index.vue index a3ee1ae3..d7ab6fdc 100644 --- a/src/views/ea/electronicConsultation/index.vue +++ b/src/views/ea/electronicConsultation/index.vue @@ -335,6 +335,7 @@ name="multipartFile" :multiple="false" :accept="imgType" + v-show="uploadDisabled" >
将文件拖到此处,或点击上传
@@ -346,6 +347,7 @@ :rules="rules" label-width="98px" style="margin-top: 20px" + :disabled="this.title === '查看咨询档案'" > @@ -376,6 +378,7 @@ :clearable="true" placeholder="请选择归属部门" :normalizer="normalizer" + :disabled="treeDisabled" />
@@ -591,6 +594,8 @@ export default { Authorization: "Bearer " + getAccessToken(), "tenant-id": getTenantId(), }, // 设置上传的请求头 + uploadDisabled: undefined, + treeDisabled: undefined, fileList: [], // 文件列表 // 部门树选项 deptOptions: undefined, @@ -818,12 +823,16 @@ export default { this.fileList = []; this.open = true; this.optType = "add"; + this.treeDisabled = false; + this.uploadDisabled = true; this.title = "添加咨询档案"; }, /** 查看按钮操作 */ handleView(row) { this.reset(); this.optType = "view"; + this.treeDisabled = true; + this.uploadDisabled = false; const id = row.id; getElectronicConsultation(id).then((response) => { this.form = response.data; @@ -835,6 +844,8 @@ export default { handleUpdate(row) { this.reset(); this.optType = "edit"; + this.treeDisabled = false; + this.uploadDisabled = true; const id = row.id; getElectronicConsultation(id).then((response) => { this.form = response.data; diff --git a/src/views/ea/electronicContracts/index.vue b/src/views/ea/electronicContracts/index.vue index 048ca329..abbbe164 100644 --- a/src/views/ea/electronicContracts/index.vue +++ b/src/views/ea/electronicContracts/index.vue @@ -349,8 +349,9 @@ :visible.sync="open" width="1000px" append-to-body + > -
将文件拖到此处,或点击上传
@@ -371,7 +373,9 @@ :rules="rules" label-width="98px" style="margin-top: 20px" + :disabled='this.title==="查看合同档案"' > + @@ -401,6 +405,7 @@ :clearable="true" placeholder="请选择归属部门" :normalizer="normalizer" + :disabled = "treeDisabled" /> @@ -637,6 +642,8 @@ export default { fileList: [], // 文件列表 getFileUrl: process.env.VUE_APP_BASE_API + "/admin-api/infra/file/", imgs: null, + uploadDisabled:undefined, + treeDisabled:undefined, // 部门树选项 deptOptions: undefined, // 非单个禁用 @@ -908,6 +915,8 @@ export default { this.reset(); this.open = true; this.optType = "add"; + this.treeDisabled = false; + this.uploadDisabled = true; this.title = "添加合同档案"; }, /** 查看附件按钮操作 */ @@ -918,6 +927,8 @@ export default { handleView(row) { this.reset(); this.optType = "view"; + this.treeDisabled = true; + this.uploadDisabled = false; const id = row.id; getElectronicContracts(id).then((response) => { this.form = response.data; @@ -931,6 +942,8 @@ export default { handleUpdate(row) { this.reset(); this.optType = "edit"; + this.treeDisabled = false; + this.uploadDisabled = true; const id = row.id; getElectronicContracts(id).then((response) => { this.form = response.data; diff --git a/src/views/ea/electronicCustomerComplaint/index.vue b/src/views/ea/electronicCustomerComplaint/index.vue index da71bb0d..415bb013 100644 --- a/src/views/ea/electronicCustomerComplaint/index.vue +++ b/src/views/ea/electronicCustomerComplaint/index.vue @@ -340,6 +340,7 @@ name="multipartFile" :multiple="false" :accept="imgType" + v-show="uploadDisabled" >
将文件拖到此处,或点击上传
@@ -350,6 +351,7 @@ :rules="rules" label-width="98px" style="margin-top: 20px" + :disabled="this.title === '查看客诉档案'" >