Commit 191ced1a authored by anxixi's avatar anxixi

服务记录功能修改

parent 6c6be1ea
...@@ -1077,13 +1077,13 @@ ...@@ -1077,13 +1077,13 @@
let companyLabelList = []; let companyLabelList = [];
if(this.addData.companyLabelList.length !=0){ if(this.addData.companyLabelList.length !=0){
for(let i in this.addData.companyLabelList){ 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 = []; let customerLabelList = [];
if(this.addData.customerLabelList.length !=0){ if(this.addData.customerLabelList.length !=0){
for(let i in this.addData.customerLabelList){ 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 = []; let companyEventList = [];
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
</div> </div>
<div v-if="!isedit" class="content_data"> <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>
<div class="service_bottom"> <div class="service_bottom">
<p v-if="isedit" @click="goto">下一步</p> <p v-if="isedit" @click="goto">下一步</p>
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
}, },
methods:{ methods:{
gotoed(){ 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(){ submitplan(){
this.$refs.child.addedit(); this.$refs.child.addedit();
...@@ -107,14 +107,35 @@ ...@@ -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{ }else{
for(let i in response.result){ for(let i in response.result){
if(response.result[i]){
response.result[i].checked = false; response.result[i].checked = false;
} }
for(let i in response.result){
if(response.result[i]){
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; this.screenchildList = response.result;
} else { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
...@@ -134,6 +155,11 @@ ...@@ -134,6 +155,11 @@
api.getServicePhases(window.sessionStorage.getItem("statechange")).then(response => { api.getServicePhases(window.sessionStorage.getItem("statechange")).then(response => {
if(response.code == 0) { if(response.code == 0) {
this.options = response.result; 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 { } else {
this.$message.error(response.msg); this.$message.error(response.msg);
} }
......
...@@ -71,4 +71,20 @@ export default { ...@@ -71,4 +71,20 @@ export default {
getRecordFieldDetail( params ) { getRecordFieldDetail( params ) {
return api.fetchLoadingPost( '/business/service/getRecordFieldDetail', Qs.stringify(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 @@ ...@@ -386,7 +386,6 @@
}, },
//整合行业领域数据 //整合行业领域数据
industry(val){ industry(val){
this.$forceUpdate()
let arr = []; let arr = [];
for(let i=0;i<val.length;i++){ for(let i=0;i<val.length;i++){
arr.push(val[i][1]) arr.push(val[i][1])
......
<template> <template>
<div> <div>
<div class="service_top"> <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> <div>
<div class="record_div"> <div class="record_div">
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<p>{{item.createdTime}}</p> <p>{{item.createdTime}}</p>
<p v-if="$route.query.state">阶段:<span>{{$route.query.state?item.phaseName:item.fieldName}}</span></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 :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!='projectPatent'&&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.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 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 prop="empName" label="姓名" align="center" width="80">
</el-table-column> </el-table-column>
...@@ -47,6 +47,19 @@ ...@@ -47,6 +47,19 @@
<el-table-column prop="stockProportion" label="占比" align="center"> <el-table-column prop="stockProportion" label="占比" align="center">
</el-table-column> </el-table-column>
</el-table> </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> </div>
<div v-if="response.explication"> <div v-if="response.explication">
...@@ -81,7 +94,7 @@ ...@@ -81,7 +94,7 @@
}, },
methods:{ methods:{
editgo(){ editgo(){
this.$router.push({path:"/addplanmentation",query:{response:this.response}}); this.$router.push({path:"/addplanmentation",query:{response:this.response,serviceId:this.response.serviceId}});
}, },
removeRecord(){ removeRecord(){
MessageBox.confirm('确定要删除吗?').then(action => { MessageBox.confirm('确定要删除吗?').then(action => {
......
...@@ -135,8 +135,11 @@ ...@@ -135,8 +135,11 @@
}, },
removeed(){ removeed(){
MessageBox.confirm('确定要删除吗?').then(action => { MessageBox.confirm('确定要删除吗?').then(action => {
this.recordjson.state = 1; let params = {
api.updateBSSsrviceById(this.recordjson).then(response => { recordId:this.recordjson.recordId,
state:1,
}
api.updateBSSsrviceById(params).then(response => {
if(response.code == 0) { if(response.code == 0) {
this.$toast("删除分析记录成功"); this.$toast("删除分析记录成功");
this.$router.go(-1) this.$router.go(-1)
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
}else if(this.typeto == 1){ }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}});
}else if(this.typeto == 2){ }else if(this.typeto == 2){
this.$router.push({path:"/addplanmentation",query:{serviceId:this.$route.query.serviceId}});
} }
}else{ }else{
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
}, },
releasetype(val){ releasetype(val){
this.$router.push({path:"/releasetype",query:{projectId:val.projectId}}); this.$router.push({path:"/releasetype",query:{projectId:val.projectId,serviceId:val.serviceId}});
}, },
searchinput(){ searchinput(){
this.tableData = []; this.tableData = [];
......
...@@ -198,8 +198,11 @@ ...@@ -198,8 +198,11 @@
}, },
removeed(){ removeed(){
MessageBox.confirm('确定要删除吗?').then(action => { MessageBox.confirm('确定要删除吗?').then(action => {
this.recordjson.state = 1; let params = {
api.updateBSSsrviceById(this.recordjson).then(response => { recordId:this.recordjson.recordId,
state:1,
}
api.updateBSSsrviceById(params).then(response => {
if(response.code == 0) { if(response.code == 0) {
this.$toast("删除工作规划成功"); this.$toast("删除工作规划成功");
this.$router.go(-1) 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