Commit 191ced1a authored by anxixi's avatar anxixi

服务记录功能修改

parent 6c6be1ea
......@@ -1077,13 +1077,13 @@
let companyLabelList = [];
if(this.addData.companyLabelList.length !=0){
for(let i in this.addData.companyLabelList){
companyLabelList.push({key:i,value:this.addData.companyLabelList[i]})
companyLabelList.push({keyId:i,value:this.addData.companyLabelList[i]})
}
}
let customerLabelList = [];
if(this.addData.customerLabelList.length !=0){
for(let i in this.addData.customerLabelList){
customerLabelList.push({key:i,value:this.addData.customerLabelList[i]})
customerLabelList.push({keyId:i,value:this.addData.customerLabelList[i]})
}
}
let companyEventList = [];
......
......@@ -29,7 +29,7 @@
</div>
</div>
<div v-if="!isedit" class="content_data">
<editplanmentaion ref="child" :response="$route.query.response" :labName="labName" :serviceId="this.$route.query.serviceId" :ServicephasesId="ServicephasesId" :screenchildList="screenchildList"></editplanmentaion>
<editplanmentaion ref="child" :response="$route.query.response" :responseed="$route.query.response" :labName="labName" :serviceId="this.$route.query.serviceId" :ServicephasesId="ServicephasesId" :screenchildList="screenchildList"></editplanmentaion>
</div>
<div class="service_bottom">
<p v-if="isedit" @click="goto">下一步</p>
......@@ -68,7 +68,7 @@
},
methods:{
gotoed(){
this.$router.push({path:"/personalcenter",query:{serviceId:this.$route.query.response.serviceId}});
this.$router.push({path:"/personalcenter",query:{serviceId:this.$route.query.serviceId}});
},
submitplan(){
this.$refs.child.addedit();
......@@ -107,14 +107,35 @@
}
}
}
for(let i in response.result){
if(response.result[i].subFieldList){
for(let t in response.result[i].subFieldList){
if(this.$route.query.response){
for(let s in this.$route.query.response.fieldList){
if(response.result[i].subFieldList[t].fieldCode == this.$route.query.response.fieldList[s].fieldCode){
response.result[i].subFieldList[t].checked = true;
}
}
}
}
}
}
}else{
for(let i in response.result){
response.result[i].checked = false;
}
for(let i in response.result){
if(response.result[i]){
response.result[i].checked = false;
if(this.$route.query.response){
for(let s in this.$route.query.response.fieldList){
if(response.result[i].fieldCode == this.$route.query.response.fieldList[s].fieldCode){
response.result[i].checked = true;
}
}
}
}
}
}
this.screenchildList = response.result;
} else {
this.$message.error(response.msg);
......@@ -134,6 +155,11 @@
api.getServicePhases(window.sessionStorage.getItem("statechange")).then(response => {
if(response.code == 0) {
this.options = response.result;
if(this.$route.query.response){
this.cascadermodel.push(this.$route.query.response.phasePId)
this.cascadermodel.push(this.$route.query.response.phaseId)
this.cascader_lit(this.cascadermodel);
}
} else {
this.$message.error(response.msg);
}
......
......@@ -71,4 +71,20 @@ export default {
getRecordFieldDetail( params ) {
return api.fetchLoadingPost( '/business/service/getRecordFieldDetail', Qs.stringify(params));
},
selectNationList (){
return api.fetchGet('/business/geo/selectNationList');
},
selectCityList (params){
return api.fetchGet('/business/geo/selectCityList?geoId='+params);
},
selectProvinceList (params){
return api.fetchGet('/business/geo/selectProvinceList?geoId='+params);
},
selectBigBusinessLevelOne (){
return api.fetchGet('/business/industry/selectBigBusinessLevelOne');
},
editRecordDetail( params ) {
return api.fetchLoadingPost( '/business/service/editRecordDetail', params);
},
}
\ No newline at end of file
......@@ -386,7 +386,6 @@
},
//整合行业领域数据
industry(val){
this.$forceUpdate()
let arr = [];
for(let i=0;i<val.length;i++){
arr.push(val[i][1])
......
<template>
<div>
<div class="service_top">
<serviceTop :isHistory="false" :isrecord="true" :isSearch="true" recordtext="记录时间:--"></serviceTop>
<serviceTop :isHistory="false" :isrecord="true" :isSearch="true" :recordtext="$route.query.state?'':'记录时间:'+response.createdTime"></serviceTop>
</div>
<div>
<div class="record_div">
......@@ -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!='manageTeam'&&item.fieldCode!='coreTeam'&&item.fieldCode!='stockRight'&&item.fieldCode!='technologyTeam'">{{item.fieldValue}}</p>
<p v-if="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}}</p>
<p v-if="item.fieldCode!='projectPatent'&&item.fieldCode!='manageTeam'&&item.fieldCode!='coreTeam'&&item.fieldCode!='stockRight'&&item.fieldCode!='technologyTeam'&&item.previousValue">历史:{{item.previousValue}}</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>
......@@ -47,6 +47,19 @@
<el-table-column prop="stockProportion" label="占比" align="center">
</el-table-column>
</el-table>
<el-table v-if="item.fieldCode=='projectPatent'" :data="item.fieldValue" tooltip-effect="dark" class="projectTable1" style="margin-top: 0.2rem;">
<el-table-column prop="patentNumber" label="专利号" align="center">
</el-table-column>
<el-table-column prop="patentName" label="专利名称" align="center">
</el-table-column>
</el-table>
<span v-if="item.fieldCode=='projectPatent'&&item.previousValue">历史:</span>
<el-table v-if="item.fieldCode=='projectPatent'&&item.previousValue" :data="item.fieldValue" tooltip-effect="dark" class="projectTable1" style="margin-top: 0.2rem;">
<el-table-column prop="patentNumber" label="专利号" align="center">
</el-table-column>
<el-table-column prop="patentName" label="专利名称" align="center">
</el-table-column>
</el-table>
</div>
</div>
<div v-if="response.explication">
......@@ -81,7 +94,7 @@
},
methods:{
editgo(){
this.$router.push({path:"/addplanmentation",query:{response:this.response}});
this.$router.push({path:"/addplanmentation",query:{response:this.response,serviceId:this.response.serviceId}});
},
removeRecord(){
MessageBox.confirm('确定要删除吗?').then(action => {
......
......@@ -135,8 +135,11 @@
},
removeed(){
MessageBox.confirm('确定要删除吗?').then(action => {
this.recordjson.state = 1;
api.updateBSSsrviceById(this.recordjson).then(response => {
let params = {
recordId:this.recordjson.recordId,
state:1,
}
api.updateBSSsrviceById(params).then(response => {
if(response.code == 0) {
this.$toast("删除分析记录成功");
this.$router.go(-1)
......
......@@ -63,7 +63,7 @@
}else if(this.typeto == 1){
this.$router.push({path:"/workplandetails",query:{projectId:this.projectId,editstate:false}});
}else if(this.typeto == 2){
this.$router.push({path:"/addplanmentation",query:{serviceId:this.$route.query.serviceId}});
}
}else{
......
......@@ -70,7 +70,7 @@
},
releasetype(val){
this.$router.push({path:"/releasetype",query:{projectId:val.projectId}});
this.$router.push({path:"/releasetype",query:{projectId:val.projectId,serviceId:val.serviceId}});
},
searchinput(){
this.tableData = [];
......
......@@ -198,8 +198,11 @@
},
removeed(){
MessageBox.confirm('确定要删除吗?').then(action => {
this.recordjson.state = 1;
api.updateBSSsrviceById(this.recordjson).then(response => {
let params = {
recordId:this.recordjson.recordId,
state:1,
}
api.updateBSSsrviceById(params).then(response => {
if(response.code == 0) {
this.$toast("删除工作规划成功");
this.$router.go(-1)
......
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