Commit a9db52c8 authored by anxixi's avatar anxixi

服务记录问题修改

parent b4a5b55b
......@@ -260,7 +260,10 @@
<el-input @input="inputchange()" v-model="projectjson.cooperationWay" maxlength="36" placeholder="请输入合作方式"></el-input>
</el-form-item>
<el-form-item v-if="subprojectjson.companyScale===null" label="目前公司规模">
<el-input @input="inputchange()" v-model="projectjson.companyScale" maxlength="36" placeholder="请输入目前公司规模"></el-input>
<el-select style="width:100%;" @change="inputchange()" v-model="projectjson.companyScale" :placeholder="$t('releasejson.plcompanyScale')">
<el-option v-for="item in companyScaleData" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey">
</el-option>
</el-select>
</el-form-item>
<el-form-item v-if="subprojectjson.contactEmpName===null" label="项目联系人">
<el-input @input="inputchange()" v-model="projectjson.contactEmpName" maxlength="36" placeholder="请输入项目联系人"></el-input>
......@@ -306,6 +309,7 @@
projectphaseData:[],
latestFinancingTurnData:[],
companyIndustryEditList:[],
companyScaleData:[],
countryData:[],//获取国家列表
provinceData:[],//获取省份列表
cityData:[],//获取城市列表
......@@ -566,6 +570,20 @@
return false;
})
},
//公司规模
companyScaleDataed(){
api.selectDictList('project_company_scale').then(response => {
if(response.code == 0) {
this.companyScaleData = response.result;
} else {
this.$message.error(response.msg);
}
})
.catch(error => {
console.log("提交出错");
return false;
})
},
//国家select触发
countryChang(val){
if(val){
......@@ -867,6 +885,7 @@
this.$forceUpdate()
this.projectphaselist();
this.getNationList();
this.companyScaleDataed();
this.smallbusinessselect();
this.projectformlist();
this.selectBigBusinessLevelect();
......
......@@ -15,8 +15,8 @@
<p>{{item.createdTime}}</p>
<p v-if="$route.query.state">阶段:<span>{{$route.query.state?item.phaseName:item.fieldName}}</span></p>
<p :class="$route.query.state?'':'fieldName'">{{item.fieldName}}</p>
<p v-if="item.fieldCode!='projectPatent'&&item.fieldCode!='manageTeam'&&item.fieldCode!='coreTeam'&&item.fieldCode!='stockRight'&&item.fieldCode!='technologyTeam'">{{item.fieldValue}}</p>
<p v-if="item.fieldCode!='projectPatent'&&item.fieldCode!='manageTeam'&&item.fieldCode!='coreTeam'&&item.fieldCode!='stockRight'&&item.fieldCode!='technologyTeam'&&item.previousValue">历史:{{item.previousValue}}</p>
<p v-if="item.fieldCode!='projectPatent'&&item.fieldCode!='manageTeam'&&item.fieldCode!='coreTeam'&&item.fieldCode!='stockRight'&&item.fieldCode!='technologyTeam'">{{item.fieldValue===1?'是':item.fieldValue===0?'否':item.fieldValue}}</p>
<p v-if="item.fieldCode!='projectPatent'&&item.fieldCode!='manageTeam'&&item.fieldCode!='coreTeam'&&item.fieldCode!='stockRight'&&item.fieldCode!='technologyTeam'&&item.previousValue">历史:{{item.fieldValue===1?'是':item.fieldValue===0?'否':item.fieldValue}}</p>
<el-table v-if="item.fieldCode=='manageTeam'||item.fieldCode=='coreTeam'||item.fieldCode=='technologyTeam'" :data="item.fieldValue" tooltip-effect="dark" class="projectTable1" style="margin-top: 0.2rem;">
<el-table-column prop="empName" label="姓名" align="center" width="80">
</el-table-column>
......
......@@ -110,8 +110,12 @@
};
api.insertBSSsrvice(params).then(response => {
if(response.code == 0) {
if(this.isproject){
this.$router.push({path:"/serviceenterprise",query:{}});
}else{
this.$router.go(-1)
}
this.$toast("创建分析记录成功");
this.$router.go(-1)
} else {
this.$message.error(response.msg);
}
......@@ -158,6 +162,7 @@
},
},
mounted(){
this.isproject = this.$route.query.isproject;
this.addeditif = this.$route.query.editstate;
if(this.$route.query.editstate){
let params = {
......
......@@ -59,11 +59,11 @@
}
if(num){
if(this.typeto == 0){
this.$router.push({path:"/recorddetails",query:{projectId:this.projectId,editstate:false}});
this.$router.push({path:"/recorddetails",query:{projectId:this.projectId,editstate:false,isproject:true}});
}else if(this.typeto == 1){
this.$router.push({path:"/workplandetails",query:{projectId:this.projectId,editstate:false}});
this.$router.push({path:"/workplandetails",query:{projectId:this.projectId,editstate:false,isproject:true}});
}else if(this.typeto == 2){
this.$router.push({path:"/addplanmentation",query:{serviceId:this.$route.query.serviceId}});
this.$router.push({path:"/addplanmentation",query:{serviceId:this.$route.query.serviceId,isproject:true}});
}
}else{
......
......@@ -173,8 +173,12 @@
};
api.insertBSSsrvice(params).then(response => {
if(response.code == 0) {
if(this.isproject){
this.$router.push({path:"/serviceenterprise",query:{}});
}else{
this.$router.go(-1)
}
this.$toast("创建工作规划成功");
this.$router.go(-1)
} else {
this.$message.error(response.msg);
}
......@@ -221,6 +225,7 @@
},
},
mounted(){
this.isproject = this.$route.query.isproject;
this.addeditif = this.$route.query.editstate;
if(this.$route.query.editstate){
let params = {
......
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