|
@ -22,7 +22,12 @@ |
|
|
align="left" |
|
|
align="left" |
|
|
prop="remark" |
|
|
prop="remark" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
/> |
|
|
> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span v-if="scope.row.remark">是</span> |
|
|
|
|
|
<span v-else>否</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
label="申报管理区划" |
|
|
label="申报管理区划" |
|
|
align="left" |
|
|
align="left" |
|
@ -85,13 +90,23 @@ |
|
|
align="left" |
|
|
align="left" |
|
|
prop="validityPeriod" |
|
|
prop="validityPeriod" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
/> |
|
|
> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span v-if="scope.row.status == '3'"> |
|
|
|
|
|
{{addYearsToDate(scope.row.bonusPointBegin,scope.row.validity)}} |
|
|
|
|
|
</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
label="状态" |
|
|
label="状态" |
|
|
align="left" |
|
|
align="left" |
|
|
prop="status" |
|
|
prop="status" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
/> |
|
|
> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
{{statusFormat(scope.row)}} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
label="水行政主管部门" |
|
|
label="水行政主管部门" |
|
|
align="left" |
|
|
align="left" |
|
@ -264,7 +279,7 @@ |
|
|
@close="handleClose" |
|
|
@close="handleClose" |
|
|
> |
|
|
> |
|
|
|
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="140px"> |
|
|
<el-form ref="form1" :model="form" :rules="rules" label-width="140px"> |
|
|
<el-row :gutter="15"> |
|
|
<el-row :gutter="15"> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="是否是水利项目" prop="isWaterCon"> |
|
|
<el-form-item label="是否是水利项目" prop="isWaterCon"> |
|
@ -963,9 +978,11 @@ import {getFileStream} from "@/api/system/upload"; |
|
|
import {getAreasData} from "@/api/areas/index"; |
|
|
import {getAreasData} from "@/api/areas/index"; |
|
|
import {regionData, codeToText, TextToCode} from "element-china-area-data"; |
|
|
import {regionData, codeToText, TextToCode} from "element-china-area-data"; |
|
|
import {listInfo} from "@/api/build/projectInfo"; |
|
|
import {listInfo} from "@/api/build/projectInfo"; |
|
|
|
|
|
import Template from "@/views/message/options/template/index.vue"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "newGoodCredit", |
|
|
name: "newGoodCredit", |
|
|
|
|
|
components: {Template}, |
|
|
props: ["enterpriseId"], |
|
|
props: ["enterpriseId"], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -1049,7 +1066,36 @@ export default { |
|
|
}, |
|
|
}, |
|
|
isOptions: [], |
|
|
isOptions: [], |
|
|
// 表单参数 |
|
|
// 表单参数 |
|
|
form: {}, |
|
|
form: { |
|
|
|
|
|
id: null, |
|
|
|
|
|
validity: null, |
|
|
|
|
|
publishUnit: null, |
|
|
|
|
|
isWaterCon: null, |
|
|
|
|
|
fillOnYear: null, |
|
|
|
|
|
enterpriseId: null, |
|
|
|
|
|
projectName: null, |
|
|
|
|
|
qualificationCategory: null, |
|
|
|
|
|
declarationManagementZones: null, |
|
|
|
|
|
behavior: null, |
|
|
|
|
|
goodBehavior: null, |
|
|
|
|
|
commendationLevel: null, |
|
|
|
|
|
authority: null, |
|
|
|
|
|
bonusPoints: null, |
|
|
|
|
|
validityPeriod: null, |
|
|
|
|
|
awardAnnouncementWebsite: null, |
|
|
|
|
|
evaluationDate: null, |
|
|
|
|
|
trustworthyPerformance: null, |
|
|
|
|
|
attachment: null, |
|
|
|
|
|
status: null, |
|
|
|
|
|
type: null, |
|
|
|
|
|
badBehavior: null, |
|
|
|
|
|
createUid: null, |
|
|
|
|
|
updateUid: null, |
|
|
|
|
|
createTime: null, |
|
|
|
|
|
updateTime: null, |
|
|
|
|
|
owerDept: null, |
|
|
|
|
|
remark: null, |
|
|
|
|
|
}, |
|
|
disabled: false, |
|
|
disabled: false, |
|
|
fillOnYearDisabled: false, |
|
|
fillOnYearDisabled: false, |
|
|
remakeDisable: false, |
|
|
remakeDisable: false, |
|
@ -1378,6 +1424,14 @@ export default { |
|
|
statusFormat(row, column) { |
|
|
statusFormat(row, column) { |
|
|
return this.selectDictLabel(this.statusOptions, row.status); |
|
|
return this.selectDictLabel(this.statusOptions, row.status); |
|
|
}, |
|
|
}, |
|
|
|
|
|
addYearsToDate(dateString, yearsString) { |
|
|
|
|
|
const [year, month, day] = dateString.split('-'); |
|
|
|
|
|
const newYear = Number(year) + Number(yearsString); |
|
|
|
|
|
|
|
|
|
|
|
const newDateString = `${newYear}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`; |
|
|
|
|
|
return newDateString; |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 取消按钮 |
|
|
// 取消按钮 |
|
|
cancel() { |
|
|
cancel() { |
|
|
this.open = false; |
|
|
this.open = false; |
|
@ -1605,7 +1659,8 @@ export default { |
|
|
|
|
|
|
|
|
/** 提交按钮 */ |
|
|
/** 提交按钮 */ |
|
|
submitForm() { |
|
|
submitForm() { |
|
|
this.$refs["form"].validate((valid) => { |
|
|
console.log("111",this.form) |
|
|
|
|
|
this.$refs["form1"].validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.form.enterpriseId = this.enterpriseId; |
|
|
this.form.enterpriseId = this.enterpriseId; |
|
|
this.form.attachment = JSON.stringify(this.fileList); |
|
|
this.form.attachment = JSON.stringify(this.fileList); |
|
@ -1622,6 +1677,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.form.type = "1"; |
|
|
this.form.type = "1"; |
|
|
this.form.status = "0"; |
|
|
this.form.status = "0"; |
|
|
|
|
|
console.log("222",this.form) |
|
|
addCredit(this.form).then((response) => { |
|
|
addCredit(this.form).then((response) => { |
|
|
if (response.code === 200) { |
|
|
if (response.code === 200) { |
|
|
this.msgSuccess("新增成功"); |
|
|
this.msgSuccess("新增成功"); |
|
|