|
@@ -162,14 +162,23 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'评估对象不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-select v-model="inputForm.assessmentObject" placeholder="请输入评估对象" clearable style="width: 100%;">
|
|
|
- <el-option
|
|
|
- v-for="item in $dictUtils.getDictList('project_assessment_object')"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <el-input v-model="inputForm.assessmentObject" placeholder="请输入评估对象" clearable></el-input>
|
|
|
+<!-- <el-select v-model="inputForm.assessmentObject" placeholder="请输入评估对象" clearable style="width: 100%;">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="item in $dictUtils.getDictList('project_assessment_object')"-->
|
|
|
+<!-- :key="item.value"-->
|
|
|
+<!-- :label="item.label"-->
|
|
|
+<!-- :value="item.value">-->
|
|
|
+<!-- </el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="评估范围" prop="assessmentRange"
|
|
|
+ :rules="[
|
|
|
+ {required: true, message:'评估范围不能为空', trigger:'blur'}
|
|
|
+ ]">
|
|
|
+ <el-input v-model="inputForm.assessmentRange" placeholder="请输入评估范围" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -460,6 +469,20 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
+ <el-form-item label="是否生成报告号" prop="generateReportNumber"
|
|
|
+ :rules="[
|
|
|
+ ]">
|
|
|
+ <el-switch
|
|
|
+ v-model="inputForm.generateReportNumber"
|
|
|
+ active-color="#13ce66"
|
|
|
+ active-text="是"
|
|
|
+ inactive-text="否"
|
|
|
+ >
|
|
|
+ </el-switch>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="12">
|
|
|
<el-form-item label="预计出报告时间" prop="reportingDate"
|
|
|
:rules="[
|
|
|
{required: true, message:'预计出报告时间不能为空', trigger:'blur'}
|
|
@@ -718,6 +741,7 @@
|
|
|
industry: '', // 所属行业
|
|
|
enterpriseType: '', // 企业类型
|
|
|
riskLevel: '', // 风险等级
|
|
|
+ generateReportNumber: true, // 是否生成报告号
|
|
|
projectSource: '', // 项目来源
|
|
|
estimate: '', // 预估收入(元)
|
|
|
planEndTime: '', // 计划完成时间
|
|
@@ -736,6 +760,7 @@
|
|
|
projectDevelopment: '', // 项目开发人
|
|
|
delegateProjectType: '', // 项目类型
|
|
|
assessmentObject: '', // 评估对象
|
|
|
+ assessmentRange: '', // 评估范围
|
|
|
workBeginAndEndDate: [], // 预计现场工作起止时间
|
|
|
workBeginDate: '', // 预计现场工作开始时间
|
|
|
workEndDate: '', // 预计现场工作结束时间
|
|
@@ -839,6 +864,7 @@
|
|
|
industry: '', // 所属行业
|
|
|
enterpriseType: '', // 企业类型
|
|
|
riskLevel: '', // 风险等级
|
|
|
+ generateReportNumber: '', // 是否生成报告号
|
|
|
projectSource: '', // 项目来源
|
|
|
estimate: '', // 预估收入(元)
|
|
|
planEndTime: '', // 计划完成时间
|
|
@@ -857,6 +883,7 @@
|
|
|
projectDevelopment: '', // 项目开发人
|
|
|
delegateProjectType: '', // 项目类型
|
|
|
assessmentObject: '', // 评估对象
|
|
|
+ assessmentRange: '', // 评估范围
|
|
|
workBeginAndEndDate: [], // 预计现场工作起止时间
|
|
|
workBeginDate: '', // 预计现场工作开始时间
|
|
|
workEndDate: '', // 预计现场工作结束时间
|
|
@@ -886,6 +913,11 @@
|
|
|
this.programProjectListInfoService.queryById(this.inputForm.id).then(({data}) => {
|
|
|
this.$refs.uploadComponent.clearUpload()
|
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
|
+ if (data.generateReportNumber === 'true') {
|
|
|
+ this.inputForm.generateReportNumber = true
|
|
|
+ } else if (data.generateReportNumber === 'false') {
|
|
|
+ this.inputForm.generateReportNumber = false
|
|
|
+ }
|
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
if (this.commonJS.isEmpty(this.inputForm.files)) {
|
|
|
this.inputForm.files = []
|
|
@@ -1026,6 +1058,7 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ console.log('this.inputForm.generateReportNumber', this.inputForm.generateReportNumber)
|
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
|
this.programProjectListInfoService.saveForm(this.inputForm).then(({data}) => {
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
@@ -1123,6 +1156,7 @@
|
|
|
this.loading = false
|
|
|
return
|
|
|
}
|
|
|
+ console.log('this.inputForm.generateReportNumber', this.inputForm.generateReportNumber)
|
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
|
this.programProjectListInfoService.saveForm(this.inputForm).then(({data}) => {
|
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
@@ -1301,6 +1335,7 @@
|
|
|
industry: '', // 所属行业
|
|
|
enterpriseType: '', // 企业类型
|
|
|
riskLevel: '', // 风险等级
|
|
|
+ generateReportNumber: '', // 是否生成报告号
|
|
|
projectSource: '', // 项目来源
|
|
|
estimate: '', // 预估收入(元)
|
|
|
planEndTime: '', // 计划完成时间
|
|
@@ -1319,6 +1354,7 @@
|
|
|
projectDevelopment: '', // 项目开发人
|
|
|
delegateProjectType: '', // 项目类型
|
|
|
assessmentObject: '', // 评估对象
|
|
|
+ assessmentRange: '', // 评估范围
|
|
|
workBeginAndEndDate: [], // 预计现场工作起止时间
|
|
|
workBeginDate: '', // 预计现场工作开始时间
|
|
|
workEndDate: '', // 预计现场工作结束时间
|
|
@@ -1441,8 +1477,55 @@
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
-<style scoped>
|
|
|
- /deep/ .el-input-number .el-input__inner {
|
|
|
+<style lang="scss">
|
|
|
+ .el-input-number .el-input__inner {
|
|
|
text-align: left;
|
|
|
}
|
|
|
+ /**
|
|
|
+ 设置框
|
|
|
+ */
|
|
|
+ .el-switch__core{
|
|
|
+ width: 70px!important;
|
|
|
+ height: 30px;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ 设置园
|
|
|
+ */
|
|
|
+ .el-switch__core::after{
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+ margin-top: -1px;
|
|
|
+ margin-bottom: 2px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-switch__label--left {
|
|
|
+ position: relative;
|
|
|
+ left: 45px;
|
|
|
+ color: #fff;
|
|
|
+ z-index: -1111;
|
|
|
+ }
|
|
|
+ .el-switch__core{
|
|
|
+ width: 50px !important;
|
|
|
+ }
|
|
|
+ .el-switch__label--right {
|
|
|
+ position: relative;
|
|
|
+ right: 46px;
|
|
|
+ color: #fff;
|
|
|
+ z-index: -1111;
|
|
|
+ }
|
|
|
+ .el-switch__label--right.is-active {
|
|
|
+ z-index: 1111;
|
|
|
+ color: #fff !important;
|
|
|
+ }
|
|
|
+ .el-switch__label--left.is-active {
|
|
|
+ z-index: 1111;
|
|
|
+ color: #9c9c9c !important;
|
|
|
+ }
|
|
|
+ .el-switch__label * {
|
|
|
+ line-height: 1;
|
|
|
+ font-size: 18px;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
</style>
|