删除无用代码
This commit is contained in:
@ -240,38 +240,6 @@
|
|||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<!-- <el-table-column
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="操作"
|
|
||||||
width="150"
|
|
||||||
>
|
|
||||||
<template slot-scope="{ row, $index }">
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
v-if="!showEdit[$index]"
|
|
||||||
@click="showUpdate($index, row)"
|
|
||||||
type="primary"
|
|
||||||
>
|
|
||||||
修改
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
v-if="showEdit[$index]"
|
|
||||||
@click="submit($index, row)"
|
|
||||||
type="success"
|
|
||||||
>确定</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
v-if="showEdit[$index]"
|
|
||||||
@click="cancelUpdate($index)"
|
|
||||||
type="warning"
|
|
||||||
>取消</el-button
|
|
||||||
>
|
|
||||||
</template>
|
|
||||||
</el-table-column> -->
|
|
||||||
</el-table>
|
</el-table>
|
||||||
<!-- 人力资源 -->
|
<!-- 人力资源 -->
|
||||||
<p v-if="tableData.length">三、人力资源</p>
|
<p v-if="tableData.length">三、人力资源</p>
|
||||||
@ -328,19 +296,6 @@
|
|||||||
<el-radio :label="3">受让、受赠和并购</el-radio>
|
<el-radio :label="3">受让、受赠和并购</el-radio>
|
||||||
<el-radio :label="6">自主研发</el-radio>
|
<el-radio :label="6">自主研发</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<!-- <el-select
|
|
||||||
v-model="formA.propertyMode"
|
|
||||||
placeholder="请选择"
|
|
||||||
size="mini"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in propertyModeOption"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
>
|
|
||||||
</el-option>
|
|
||||||
</el-select> -->
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
class="mb0"
|
class="mb0"
|
||||||
@ -412,17 +367,6 @@
|
|||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- (单位:万元) -->
|
|
||||||
<!-- <p>七、企业成长性</p>
|
|
||||||
<el-form-item
|
|
||||||
class="mb0"
|
|
||||||
label="净资产增长率赋值(其中合肥市高新区企业,政策兑现要求上一年度净资产达40万元以上)"
|
|
||||||
>
|
|
||||||
<el-input-number v-model="formA.assetGrowth"></el-input-number>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="销售收入增长率赋值">
|
|
||||||
<el-input-number v-model="formA.sellGrowth"></el-input-number>
|
|
||||||
</el-form-item> -->
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- 提交 -->
|
<!-- 提交 -->
|
||||||
<el-button
|
<el-button
|
||||||
@ -638,20 +582,6 @@ export default {
|
|||||||
item.newTime = this.myYear + item.time;
|
item.newTime = this.myYear + item.time;
|
||||||
item.label = this.myYear + '年' + item.labelCopy;
|
item.label = this.myYear + '年' + item.labelCopy;
|
||||||
});
|
});
|
||||||
const thu = new Date(`${this.myYear}-04-01 00:00:00`).getTime(); // 当前年份的四月时间戳
|
|
||||||
const jul = new Date(`${this.myYear}-07-01 00:00:00`).getTime(); // 当前年份的七月时间戳
|
|
||||||
// const now = new Date(this.parseTime(new Date(), '{y}-{m}')).getTime();
|
|
||||||
const past = new Date(newVal).getTime();
|
|
||||||
const difference = thu - past;
|
|
||||||
// console.log(difference);
|
|
||||||
const oneYear = 1000 * 60 * 60 * 24 * 365; // 一年时间戳
|
|
||||||
const twoYear = 1000 * 60 * 60 * 24 * 365 * 2; // 两年时间戳
|
|
||||||
|
|
||||||
// if (difference < oneYear) {
|
|
||||||
// console.log('时间不到一年');
|
|
||||||
// } else if (difference >= oneYear && difference < twoYear) {
|
|
||||||
// console.log('满一年不到2年');
|
|
||||||
// }
|
|
||||||
} else {
|
} else {
|
||||||
this.planOption.forEach(item => {
|
this.planOption.forEach(item => {
|
||||||
item.isShow = true;
|
item.isShow = true;
|
||||||
@ -701,65 +631,6 @@ export default {
|
|||||||
this.twoMenuList = data;
|
this.twoMenuList = data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//点击修改
|
|
||||||
showUpdate(index, row) {
|
|
||||||
this.array[index] = Object.assign({}, row);
|
|
||||||
this.showEdit[index] = true;
|
|
||||||
this.$set(this.showEdit, index, true); //这里要用$set方法,否则页面状态不更新
|
|
||||||
},
|
|
||||||
// //取消修改
|
|
||||||
// cancelUpdate(index) {
|
|
||||||
// this.$confirm('取消修改?', '提示', {
|
|
||||||
// confirmButtonText: '确定',
|
|
||||||
// cancelButtonText: '取消',
|
|
||||||
// type: 'warning'
|
|
||||||
// })
|
|
||||||
// .then(() => {
|
|
||||||
// this.$set(this.tableData, index, this.array[index]);
|
|
||||||
// this.$set(this.showEdit, index, false);
|
|
||||||
// this.$set(this.showName, index, '');
|
|
||||||
// this.$set(this.showAge, index, '');
|
|
||||||
// })
|
|
||||||
// .catch(() => {});
|
|
||||||
// },
|
|
||||||
//提交修改
|
|
||||||
submit(index, row) {
|
|
||||||
// this.$message({
|
|
||||||
// message: '操作成功',
|
|
||||||
// type: 'success',
|
|
||||||
// duration: 1000
|
|
||||||
// });
|
|
||||||
// console.log(row);
|
|
||||||
// for (let key in row) {
|
|
||||||
// if (row[key] === '') {
|
|
||||||
// return this.msgError('请输入每一项');
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// this.$set(this.showEdit, index, false);
|
|
||||||
//发送请求,隐藏输入框
|
|
||||||
// this.axios({
|
|
||||||
// url: 'XXXXXXX',
|
|
||||||
// method: 'GET',
|
|
||||||
// params: {
|
|
||||||
// id: row.id,
|
|
||||||
// name: this.showName[index],
|
|
||||||
// age: this.showAge[index]
|
|
||||||
// }
|
|
||||||
// }).then(({ data }) => {
|
|
||||||
// if (data && data.code === 0) {
|
|
||||||
// this.$message({
|
|
||||||
// message: '操作成功',
|
|
||||||
// type: 'success',
|
|
||||||
// duration: 1500,
|
|
||||||
// onClose: () => {
|
|
||||||
// this.$set(this.showEdit, index, false);
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// } else {
|
|
||||||
// this.$message.error(data.msg);
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
},
|
|
||||||
// 提交
|
// 提交
|
||||||
submitFormA(formName) {
|
submitFormA(formName) {
|
||||||
if (!this.formA.hasIntellectualProperty) {
|
if (!this.formA.hasIntellectualProperty) {
|
||||||
@ -777,28 +648,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
item.isA = false;
|
item.isA = false;
|
||||||
}
|
}
|
||||||
// sale_income 销售收入
|
|
||||||
// r_d_expenses 研发费用
|
|
||||||
// net_assets 净资产
|
|
||||||
if (item.sale_income <= 5000) {
|
|
||||||
if ((item.r_d_expenses / item.sale_income) * 100 >= 5) {
|
|
||||||
item.isB = true;
|
|
||||||
} else {
|
|
||||||
item.isB = false;
|
|
||||||
}
|
|
||||||
} else if (item.sale_income <= 200000000) {
|
|
||||||
if ((item.r_d_expenses / item.sale_income) * 100 >= 4) {
|
|
||||||
item.isC = true;
|
|
||||||
} else {
|
|
||||||
item.isC = false;
|
|
||||||
}
|
|
||||||
} else if (item.sale_income > 200000000) {
|
|
||||||
if ((item.r_d_expenses / item.sale_income) * 100 >= 3) {
|
|
||||||
item.isD = true;
|
|
||||||
} else {
|
|
||||||
item.isD = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
if (!this.tableData[this.tableData.length - 1].isA) {
|
if (!this.tableData[this.tableData.length - 1].isA) {
|
||||||
this.formA.badSeason.push(
|
this.formA.badSeason.push(
|
||||||
@ -900,6 +749,9 @@ export default {
|
|||||||
this.formA.score += 4;
|
this.formA.score += 4;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// sale_income 销售收入
|
||||||
|
// r_d_expenses 研发费用
|
||||||
|
// net_assets 净资产
|
||||||
// 4.1 净资产增长率
|
// 4.1 净资产增长率
|
||||||
let assetsRate = 0;
|
let assetsRate = 0;
|
||||||
// 4.2 销售收入增长率
|
// 4.2 销售收入增长率
|
||||||
|
Reference in New Issue
Block a user