Commit 7d8b1db8 authored by 高宇's avatar 高宇

关联企业 修复部分bug

parent e635fb90
......@@ -289,21 +289,21 @@
style="padding-left: 45px;"
:data="affiliateFrom.userEnterpriseOperateRelativeList"
>
<el-table-column width="178" label="年份" prop="year" :show-overflow-tooltip="true">
<el-table-column width="178" label="年份" prop="year">
<template slot-scope="scope">
<el-input
class="first-input"
style="width: 100%"
size="medium"
v-model.trim="scope.row.year"
oninput="this.value= this.value.replace(/[^0-9]/g,'')"
placeholder="请输入年份"
maxlength="10"
type="number"
/>
</template>
</el-table-column>
<el-table-column width="178" align="center" label="总资产(万元)" prop="assetTotal"
:show-overflow-tooltip="true">
<el-table-column width="178" align="center" label="总资产(万元)" prop="assetTotal">
<template slot-scope="scope">
<el-input
class="first-input"
......@@ -320,8 +320,7 @@
</el-input>
</template>
</el-table-column>
<el-table-column width="178" align="center" label="净利润(万元)" prop="netProfit"
:show-overflow-tooltip="true">
<el-table-column width="178" align="center" label="净利润(万元)" prop="netProfit">
<template slot-scope="scope">
<el-input
class="first-input"
......@@ -336,8 +335,7 @@
</el-input>
</template>
</el-table-column>
<el-table-column width="178" align="center" label="营业收入(万元)" prop="operatingIncome"
:show-overflow-tooltip="true">
<el-table-column width="178" align="center" label="营业收入(万元)" prop="operatingIncome">
<template slot-scope="scope">
<el-input
class="first-input"
......@@ -352,8 +350,7 @@
</el-input>
</template>
</el-table-column>
<el-table-column width="178" align="center" label="主营业收入(万元)" prop="mainBusinessIncome"
:show-overflow-tooltip="true">
<el-table-column width="178" align="center" label="主营业收入(万元)" prop="mainBusinessIncome">
<template slot-scope="scope">
<el-input
class="first-input"
......@@ -368,7 +365,7 @@
</el-input>
</template>
</el-table-column>
<el-table-column width="178" align="center" label="税收(万元)" prop="tax" :show-overflow-tooltip="true">
<el-table-column width="178" align="center" label="税收(万元)" prop="tax">
<template slot-scope="scope">
<el-input
class="first-input"
......@@ -383,8 +380,7 @@
</el-input>
</template>
</el-table-column>
<el-table-column width="178" align="center" label="研发投入(万元)" prop="researchInvestment"
:show-overflow-tooltip="true">
<el-table-column width="178" align="center" label="研发投入(万元)" prop="researchInvestment">
<template slot-scope="scope">
<el-input
class="first-input"
......@@ -535,6 +531,7 @@
class="first-input"
v-model.trim="scope.row.incubationCompanies"
oninput="this.value= this.value.replace(/[^0-9]/g,'')"
@blur="InputNumberFoment('incubationCompanies',3)"
maxlength="4"
placeholder="请输入"></el-input>
</template>
......@@ -545,6 +542,7 @@
class="first-input"
v-model.trim="scope.row.graduateCompanies"
oninput="this.value= this.value.replace(/[^0-9]/g,'')"
@blur="InputNumberFoment('graduateCompanies',3)"
maxlength="4"
placeholder="请输入"></el-input>
</template>
......@@ -923,18 +921,35 @@ export default {
this.ProjectInformation[0][val] = this.thousand.fmoney(this.ProjectInformation[0][val]); //千分位反格式化
}
} else if (flag === 3) {
// let number = this.VehicleInformation[0][val].substring(0,1)
// console.log('this.VehicleInformation[0][val]>>>',this.VehicleInformation[0][val])
// console.log("number===",number)
// console.log("1111111111",this.VehicleInformation[0][val].substring(1))
if (this.VehicleInformation[0][val].indexOf('.') !== -1) {
//截取整数
const integer = this.VehicleInformation[0][val].substring(0, this.VehicleInformation[0][val].indexOf('.'))
//截取小数
const decimal = this.VehicleInformation[0][val].substring(this.VehicleInformation[0][val].indexOf('.'), this.VehicleInformation[0][val].length)
this.VehicleInformation[0][val] = integer + decimal.substring(0, 3); //千分位反格式化
console.log("this.VehicleInformation[0][val]>>>>>>",this.VehicleInformation[0][val])
} else {
this.VehicleInformation[0][val] = this.VehicleInformation[0][val]
let number = this.VehicleInformation[0][val].substring(0,1)
if (number === '0') {
// console.log("number>>",number)
let strarr = this.VehicleInformation[0][val].split('')
// console.log("strarr",strarr)
let count = 0
for (var i=0;i<strarr.length;i++ ){
if (strarr[i] !=='0'){
count = i;
break
}
}
// console.log("count>>",count)
// console.log("1111111111",this.VehicleInformation[0][val].substring(count))
this.VehicleInformation[0][val] = this.VehicleInformation[0][val].substring(count)
}else {
this.VehicleInformation[0][val] = this.VehicleInformation[0][val]
}
}
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment