|
@@ -18,7 +18,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'请选择合同情况', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-radio-group v-model="inputForm.contractStatus" @change="changeStatus" class="ml-4">
|
|
|
+ <el-radio-group v-model="inputForm.contractStatus" @change="changeStatus" :disabled="inputForm.contractStatus == '1'" class="ml-4">
|
|
|
<el-radio label="1" size="large">有合同</el-radio> <el-radio label="0" size="large">无合同</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
@@ -95,7 +95,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'项目名称不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-input maxlength="64" v-model="inputForm.name" placeholder="请输入项目名称" clearable></el-input>
|
|
|
+ <el-input maxlength="64" :disabled="true" v-model="inputForm.name" placeholder="请输入项目名称" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -113,6 +113,7 @@
|
|
|
url="/system-server/sys/area/treeData"
|
|
|
:value="inputForm.projectPlace"
|
|
|
:clearable="true"
|
|
|
+ :disabled="true"
|
|
|
size="large"
|
|
|
:accordion="true"
|
|
|
@getValue="(value) => {inputForm.projectPlace=value}"
|
|
@@ -144,7 +145,7 @@
|
|
|
<el-form-item label="建设地点" prop="buildPlace"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-input v-model="inputForm.buildPlace" placeholder="请输入建设地点" clearable></el-input>
|
|
|
+ <el-input :disabled="true" v-model="inputForm.buildPlace" placeholder="请输入建设地点" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -163,6 +164,7 @@
|
|
|
:url="`/system-server/sys/user/treeUserDataJyOffice?type=2`"
|
|
|
:value="inputForm.projectLeader"
|
|
|
:clearable="true"
|
|
|
+ :disabled="true"
|
|
|
:accordion="true"
|
|
|
@getValue="(value) => {inputForm.projectLeader=value}"/>
|
|
|
</el-form-item>
|
|
@@ -186,14 +188,14 @@
|
|
|
<el-form-item label="工程概况" prop="projectOverview"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-input type="textarea" v-model="inputForm.projectOverview" maxlength="500" placeholder="请输入工程概况" show-word-limit></el-input>
|
|
|
+ <el-input :disabled="true" type="textarea" v-model="inputForm.projectOverview" maxlength="500" placeholder="请输入工程概况" show-word-limit></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="特殊要求" prop="special"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-input type="textarea" v-model="inputForm.special" maxlength="500" placeholder="请输入特殊要求" show-word-limit></el-input>
|
|
|
+ <el-input :disabled="true" type="textarea" v-model="inputForm.special" maxlength="500" placeholder="请输入特殊要求" show-word-limit></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -648,7 +650,7 @@
|
|
|
if (this.formReadOnly) {
|
|
|
method = 'view'
|
|
|
}
|
|
|
- this.$refs.uploadComponent.newUpload('view', this.inputForm.files, 'jyProject', null, null, null, null, null)
|
|
|
+ this.$refs.uploadComponent.newUpload('edit', this.inputForm.files, 'jyProject', null, null, null, null, null)
|
|
|
// this.$refs.archiveFile.newUpload('view', [], 'cwWorkContract', null, null, null, null, false)
|
|
|
this.loading = false
|
|
|
})
|
|
@@ -694,12 +696,20 @@
|
|
|
},
|
|
|
// 表单提交
|
|
|
doSubmit () {
|
|
|
- console.log('12312321321')
|
|
|
+ console.log('12312321321',this.inputForm.contractStatus)
|
|
|
this.loading = true
|
|
|
if (this.$refs.uploadComponent.checkProgress()) {
|
|
|
this.loading = false
|
|
|
return
|
|
|
}
|
|
|
+ if (this.inputForm.contractStatus == '1'){
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.contractName)){
|
|
|
+ this.loading = false
|
|
|
+ this.$message.error('请选择合同')
|
|
|
+ throw new Error()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
console.log('this.inputForm', this.inputForm)
|
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
|
JSON
|