|
@@ -192,7 +192,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
</el-form>
|
|
|
<audit-project v-if="auditVisible" ref="auditProject" @refreshData="getList()"></audit-project>
|
|
|
</div>
|
|
@@ -286,7 +286,10 @@ export default {
|
|
|
techFlag: false,
|
|
|
techInvest: undefined
|
|
|
},
|
|
|
- rules: {
|
|
|
+ rules: {
|
|
|
+ projectYear: [
|
|
|
+ { required: true, trigger: "change", message: "请选择申办加计年度"}
|
|
|
+ ],
|
|
|
totoalPersons: [
|
|
|
{ required: true, trigger: "blur", message: "请输入职工总人数" },
|
|
|
{ validator: validNumber, trigger: 'blur'}
|
|
@@ -382,9 +385,14 @@ export default {
|
|
|
this.$refs.auditProject.init(row.id)
|
|
|
})
|
|
|
},
|
|
|
+ //获取四个年度
|
|
|
getYears(){
|
|
|
let optionsArray = new Array();
|
|
|
let years= new Date().getFullYear();
|
|
|
+ if(this.type == 'year') {
|
|
|
+ this.form.projectYear = years
|
|
|
+ this.handleYear(years)
|
|
|
+ }
|
|
|
for(var i=years;i>=years-3;i--){
|
|
|
let anOption = {};
|
|
|
anOption.dictValue=i;
|
|
@@ -392,7 +400,6 @@ export default {
|
|
|
optionsArray.push(anOption);
|
|
|
}
|
|
|
this.yearsOptions = optionsArray;
|
|
|
- console.log(this.yearsOptions, "this.yearsOptions")
|
|
|
},
|
|
|
getLayDate(){
|
|
|
let _self = this
|
|
@@ -411,34 +418,20 @@ export default {
|
|
|
if(res.code == 200) {
|
|
|
if(e) {
|
|
|
this.form.projectYear = e
|
|
|
+ }else {
|
|
|
+ this.form.projectYear = new Date().getFullYear()
|
|
|
}
|
|
|
- console.log("$$$$$$$$$$$$")
|
|
|
+ let techScope = []
|
|
|
+ this.$set(this.form, 'techScopeArray', techScope)
|
|
|
this.form.entName = res.data.entName
|
|
|
this.form.linkName = res.data.linkName
|
|
|
this.form.linkPhone = res.data.linkPhone
|
|
|
this.form.linkMobile = res.data.linkMobile
|
|
|
- this.form.techFlag = res.data.techFlag
|
|
|
this.form.address = res.data.address
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getYearData(projectYear) {
|
|
|
- getYearDataApi(projectYear, this.entId).then(res => {
|
|
|
- this.form = res.data
|
|
|
- this.form.fileName = '高新证书'
|
|
|
- if(this.form.techStartDate && this.form.techEndDate) {
|
|
|
- this.form.licenseTime = this.form.techStartDate + ' 至 ' + this.form.techEndDate
|
|
|
- }
|
|
|
- if(this.form.techScope) {
|
|
|
- let techScope = this.form.techScope.split(',') || []
|
|
|
- this.$set(this.form, 'techScopeArray', techScope)
|
|
|
- }
|
|
|
- if(this.form.industry) {
|
|
|
- let industryArray = this.form.industry.split(',') || [];
|
|
|
- this.$set(this.form, 'industryArray', industryArray);
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ //获取申办加计年度信息
|
|
|
handleYear(e) {
|
|
|
getYearApi(e).then(res => {
|
|
|
if(res.data) {
|
|
@@ -460,6 +453,25 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //根据企业id获取年度信息
|
|
|
+ getYearData(projectYear) {
|
|
|
+ getYearDataApi(projectYear, this.entId).then(res => {
|
|
|
+ this.form = res.data
|
|
|
+ this.form.fileName = '高新证书'
|
|
|
+ if(this.form.techStartDate && this.form.techEndDate) {
|
|
|
+ this.form.licenseTime = this.form.techStartDate + ' 至 ' + this.form.techEndDate
|
|
|
+ }
|
|
|
+ if(this.form.techScope) {
|
|
|
+ let techScope = this.form.techScope.split(',') || []
|
|
|
+ this.$set(this.form, 'techScopeArray', techScope)
|
|
|
+ }
|
|
|
+ if(this.form.industry) {
|
|
|
+ let industryArray = this.form.industry.split(',') || [];
|
|
|
+ this.$set(this.form, 'industryArray', industryArray);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
getList(year) {
|
|
|
this.tableLoading = true;
|
|
|
let params = {
|