Commit 132ec052 authored by anxixi's avatar anxixi

服务记录问题修改

parent eac8303c
......@@ -68,10 +68,10 @@
<div v-if="subprojectjson.competitorProduct===null">
<el-form-item label="竞争对手及主要产品">
</el-form-item>
<div v-for="item in competitorProduct" style="margin-top: -0.2rem;">
<div v-for="item in empIntroduction" style="margin-top: -0.2rem;">
<el-form-item label="">
<el-input v-model="item.competitorName" maxlength="36" placeholder="请输入竞争对手"></el-input>
<el-input v-model="item.competitorProduct" maxlength="300" placeholder="请输入历史投资方" type="textarea" :rows="6"></el-input>
<el-input v-model="item.empName" maxlength="36" placeholder="请输入竞争对手"></el-input>
<el-input v-model="item.empIntroduction" maxlength="300" placeholder="请输入历史投资方" style="margin-top: 0.2rem" type="textarea" :rows="6"></el-input>
</el-form-item>
</div>
<div>
......@@ -125,9 +125,9 @@
stockHolder:'',
stockProportion:'',
}],
competitorProduct:[{
competitorName:'',
competitorProduct:'',
empIntroduction:[{
empName:'',
empIntroduction:'',
}],
}
},
......@@ -157,26 +157,30 @@
this.projectjson.stockRight.push(this.stockRight[i])
}
}
for(let i in this.competitorProduct){
if(this.competitorProduct[i].competitorName!=''&&this.competitorProduct[i].competitorProduct!=''){
for(let i in this.empIntroduction){
if(this.empIntroduction[i].empName!=''&&this.empIntroduction[i].empIntroduction!=''){
if(this.projectjson.competitorProduct==null){
this.projectjson.competitorProduct = [];
}
this.projectjson.competitorProduct.push(this.competitorProduct[i])
this.projectjson.competitorProduct.push(this.empIntroduction[i])
}
}
api.fillDetail(this.projectjson).then(response => {
if(response.code == 0) {
this.$toast("完善成功");
this.$router.go(-1);
} else {
this.$message.error(response.msg);
}
})
.catch(error => {
console.log("提交出错");
return false;
})
this.$refs.projectjson.validate((valid) => {
if(valid) {
api.fillDetail(this.projectjson).then(response => {
if(response.code == 0) {
this.$toast("完善成功");
this.$router.go(-1);
} else {
this.$message.error(response.msg);
}
})
.catch(error => {
console.log("提交出错");
return false;
})
}
});
},
inputchange(){
this.$forceUpdate()
......@@ -249,9 +253,9 @@
stockProportion:'',});
},
addcompetitor(){
this.competitorProduct.push({
competitorName:'',
competitorProduct:'',});
this.empIntroduction.push({
empName:'',
empIntroduction:'',});
},
},
mounted(){
......
......@@ -202,8 +202,8 @@
</div>
</div>
<el-form-item v-if="subprojectjson.financingInvestor===null" label="本轮融资阶段">
<el-input @input="inputchange()" v-model="projectjson.financingInvestor" maxlength="36" placeholder="请输入本轮融资阶段"></el-input>
<el-form-item v-if="subprojectjson.currentFinancingTurn===null" label="本轮融资阶段">
<el-input @input="inputchange()" v-model="projectjson.currentFinancingTurn" maxlength="36" placeholder="请输入本轮融资阶段"></el-input>
</el-form-item>
<el-form-item v-if="subprojectjson.preValuation===null" label="当前投前估值 (单位:万)">
<el-input @input="inputchange()" v-model="projectjson.preValuation" type="number" maxlength="36" placeholder="请输入当前投前估值"></el-input>
......
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