|
@@ -3,7 +3,7 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
|
|
|
- <el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="formReadOnly"
|
|
|
|
|
|
+ <el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="status === 'audit' || status === 'taskFormDetail'"
|
|
label-width="110px" @submit.native.prevent>
|
|
label-width="110px" @submit.native.prevent>
|
|
<el-row :gutter="15">
|
|
<el-row :gutter="15">
|
|
<!-- <el-col :span="12">-->
|
|
<!-- <el-col :span="12">-->
|
|
@@ -26,7 +26,7 @@
|
|
:rules="[
|
|
:rules="[
|
|
]">
|
|
]">
|
|
<el-input :disabled="true" v-model="inputForm.cwProjectRecordsDTO.projectName" placeholder="请填写项目名称" clearable>
|
|
<el-input :disabled="true" v-model="inputForm.cwProjectRecordsDTO.projectName" placeholder="请填写项目名称" clearable>
|
|
-<!-- <el-button slot="append" :disabled="formReadOnly" @click="openChooseProject" icon="el-icon-search"></el-button>-->
|
|
|
|
|
|
+<!-- <el-button slot="append" :disabled="status === 'audit' || status === 'taskFormDetail'" @click="openChooseProject" icon="el-icon-search"></el-button>-->
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -52,7 +52,7 @@
|
|
{required: true, message:'被审计单位不能为空', trigger:'change'}
|
|
{required: true, message:'被审计单位不能为空', trigger:'change'}
|
|
]">
|
|
]">
|
|
<el-input :readonly="true" v-model="inputForm.auditedUnitsName" @focus="openChooseClient" placeholder="请填写被审计单位" clearable>
|
|
<el-input :readonly="true" v-model="inputForm.auditedUnitsName" @focus="openChooseClient" placeholder="请填写被审计单位" clearable>
|
|
- <el-button slot="append" :disabled="formReadOnly" @click="openChooseClient" icon="el-icon-search"></el-button>
|
|
|
|
|
|
+ <el-button slot="append" :disabled="status === 'audit' || status === 'taskFormDetail'" @click="openChooseClient" icon="el-icon-search"></el-button>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -180,7 +180,7 @@
|
|
:rules="[
|
|
:rules="[
|
|
]">
|
|
]">
|
|
<el-input :disabled="true" v-model="inputForm.reportNo" placeholder="请填写报告文号" clearable>
|
|
<el-input :disabled="true" v-model="inputForm.reportNo" placeholder="请填写报告文号" clearable>
|
|
-<!-- <el-button slot="append" :disabled="formReadOnly" @click="openReportChoose" icon="el-icon-search"></el-button>-->
|
|
|
|
|
|
+<!-- <el-button slot="append" :disabled="status === 'audit' || status === 'taskFormDetail'" @click="openReportChoose" icon="el-icon-search"></el-button>-->
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -450,7 +450,7 @@
|
|
if (this.commonJS.isEmpty(this.inputForm.reportNum)) {
|
|
if (this.commonJS.isEmpty(this.inputForm.reportNum)) {
|
|
this.inputForm.reportNum = 0
|
|
this.inputForm.reportNum = 0
|
|
}
|
|
}
|
|
- if (this.formReadOnly) {
|
|
|
|
|
|
+ if (this.status === 'audit' || this.status === 'taskFormDetail') {
|
|
this.method = 'view'
|
|
this.method = 'view'
|
|
}
|
|
}
|
|
this.$refs.uploadComponent.newUpload(this.method, this.inputForm.workAttachmentDtoList, 'cw_project_archive', null, null, null, null, false)
|
|
this.$refs.uploadComponent.newUpload(this.method, this.inputForm.workAttachmentDtoList, 'cw_project_archive', null, null, null, null, false)
|