Commit 73b21deb by liangzhen

评估材料自动获取

1 parent 7a9ac276
......@@ -74,6 +74,11 @@ export function updProjectInfo(params) {
export function evaluationMaterials(params) {
return post(`/api/evaluationMaterials/`, params)
}
//上传
export function ossupload(params) {
return post(`/api/oss/upload`, params)
}
//查询材料清单
export function clqdevaluationMaterials(params) {
return post(`/api/evaluationMaterials/clqd`, params)
......
......@@ -44,7 +44,7 @@
<img class="buttonIcon" src="../../assets/cz.png" />重置</el-button
>
<el-button @click="submitNexts()"
><i class="el-icon-finished"></i> 确认问题清单</el-button
><i class="el-icon-finished"></i>&nbsp;&nbsp;确认问题清单</el-button
>
</el-form-item>
</el-form>
......
......@@ -15,9 +15,9 @@
</el-form-item>
<el-form-item label="后评估状态:" prop="postEvalState" class="fromItem">
<el-select v-model="ruleForm.postEvalState" placeholder="请选择">
<el-option label="未下发" value="0"></el-option>
<el-option label="已下发" value="1"></el-option>
<el-option label="已撤回" value="2"></el-option>
<el-option label="已确认" value="3"></el-option>
<el-option label="未确认" value="1"></el-option>
<el-option label="已撤回" value="4"></el-option>
</el-select>
</el-form-item>
<el-form-item class="button">
......@@ -88,6 +88,7 @@
width="90%"
:modal-append-to-body="false"
:append-to-body="false"
close="closeXQ"
>
<div class="dialog">
<el-form
......@@ -265,7 +266,7 @@
</el-table-column>
<el-table-column fixed="right" label="操作" width="auto">
<template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="text" size="small">删除</el-button>
<el-button @click="handleClick(scope.row,scope.$index,addtableData)" type="text" size="small">删除</el-button>
</template>
</el-table-column>
......@@ -325,7 +326,7 @@
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="省公司计划文件号:" prop="字段待确认" class="fromItem">
<!-- <el-form-item label="省公司计划文件号:" prop="字段待确认" class="fromItem">
<el-input
v-model="ruleFormZJ.fullName"
placeholder="请输入"
......@@ -336,7 +337,7 @@
v-model="ruleFormZJ.fullName"
placeholder="请输入"
></el-input>
</el-form-item>
</el-form-item> -->
<el-form-item label="建设形式:" prop="projectCategory" class="fromItem">
<el-select v-model="ruleFormZJ.projectCategory" placeholder="请选择">
<el-option label="2024年" value="2024"></el-option>
......@@ -362,7 +363,7 @@
ref="multipleTableZJ"
:data="zjtableData"
tooltip-effect="dark"
style="width: 100%"
style="width: 100%;height: 100% "
header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName"
......@@ -383,16 +384,16 @@
</el-table-column>
<el-table-column prop="projectStatus" label="项目建设阶段" width="200">
</el-table-column>
<el-table-column prop="字段待确认" label="历史核查状态" width="200">
<!-- <el-table-column prop="字段待确认" label="历史核查状态" width="200">
</el-table-column>
<el-table-column prop="字段待确认" label="是否处于正在执行批次" width="200">
</el-table-column>
<el-table-column prop="字段待确认" label="计划文号" width="300">
</el-table-column> -->
<!-- <el-table-column prop="字段待确认" label="计划文号" width="300">
<el-table-column prop="expertLevel" label="省公司" width="auto">
</el-table-column>
<el-table-column prop="expertLevel" label="信通公司" width="auto">
</el-table-column>
</el-table-column>
</el-table-column> -->
<el-table-column label="总投资计划(万元)" width="300">
<el-table-column prop=" costAmountTotal" label="成本金" width="auto">
</el-table-column>
......@@ -408,9 +409,9 @@
<el-table-column prop="department" label="部门" width="200">
</el-table-column>
<el-table-column prop="字段待确认" label="承建单位" width="200">
<el-table-column prop="department" label="承建单位" width="200">
</el-table-column>
<el-table-column prop="字段待确认" label="项目经理" width="200">
<el-table-column prop="personCharge" label="项目经理" width="200">
</el-table-column>
<el-table-column prop="projectInfo" label="项目内容" width="200">
</el-table-column>
......@@ -546,13 +547,12 @@ export default {
this.tableData = res.data.records;
this.tableData.forEach(item=>{
if (item.postEvalState==''||item.postEvalState==null){
// this.$set( item,'postEvalState','')
}else if (item.postEvalState=='0'){
this.$set( item,'postEvalState','未下发')
}else if(item.postEvalState=='2'){
}else if (item.postEvalState=='3'){
this.$set( item,'postEvalState','已确认')
}else if(item.postEvalState=='4'){
this.$set( item,'postEvalState','已撤回')
}else{
this.$set( item,'postEvalState','已下发')
this.$set( item,'postEvalState','未确认')
}
})
this.total = res.data.total * 1;
......@@ -574,14 +574,15 @@ export default {
this.dialogXQ = true;
this.ruleFormdialogBJ=this.checkedList[0]
let params={
// current:1,
// pageSize:10,
current:1,
pageSize:10,
batchId:this.checkedList[0].batchId
}
Object.assign(params, this.ruleFormdialogAdd);
let res=await joinProjectInfo(params)
if (res.code == "200") {
this.tableData = res.data.records;
// this.total = res.data.total * 1;
this.addtableData = res.data.records;
this.addtotal = res.data.total * 1;
}
},
......@@ -592,11 +593,16 @@ export default {
this.$message("请选择");
return;
}
if(this.checkedList[0].postEvalState=='已确认'){
this.$message("该项目已确认");
return;
}
this.ruleFormdialogBJ=this.checkedList[0]
this.dialogAdd=true
let params={
current:this.addcurrentPage,
pageSize:this.pageSizeAdd,
batchId:this.checkedList[0].batchId
}
Object.assign(params, this.ruleFormdialogAdd);
let res=await joinProjectInfo(params)
......@@ -605,6 +611,9 @@ export default {
this.addtotal = res.data.total * 1;
}
},
closeXQ(){
console.log('关闭详情')
},
//表格颜色
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
......@@ -655,7 +664,12 @@ export default {
this.$message("请选择项目");
return;
}
this.addtableData=this.addZJList;
this.addtableData=[...this.addtableData,...this.addZJList]
this.addtableData = this.addtableData.filter((obj, index, self)=>{
return index == self.findIndex(t =>t.projectId == obj.projectId)
})
console.log(this.addtableData, "addtableData");
this.addtotal = this.addtableData.length;
this.dialogAddzj = false;
......@@ -689,23 +703,20 @@ export default {
}
console.log(this.addZJList, "this.addZJList");
// 确认发布入参
let expertIdList = [];
let expertStr='';
this.addtableData.forEach((item) => {
expertIdList.push(item.projectId);
let expertIdList ="";
if(this.addZJList.length>0){
this.addZJList.forEach((item) => {
expertIdList= expertIdList.concat(item.projectId+',')
});
}
expertStr = JSON.stringify(expertIdList).slice(1, -1);
console.log(expertStr,'expertStexpertSt')
let params = {
expertStr: expertStr,
expertStr:expertIdList,
};
params.batchId=this.ruleFormdialogBJ.batchId
params.prjsOfExpert=this.ruleFormdialogBJ.prjsOfExpert
// this.ruleFormdialogBJ.expertStr={...expertIdList}
// Object.assign(this.ruleFormdialogBJ,params,);
console.log(params, "222");
fbProjectInfo(params).then((res) => {
this.dialogAdd = false;
......@@ -730,12 +741,14 @@ export default {
console.log(this.$refs.multipleTableZJ.selection, "2222");
},
//点击删除
async handleClick(index, row) {
console.log("删除",index, row)
async handleClick(row,index,rows) {
console.log("删除",row)
rows.splice(index, 1);
let params={
projectId:row.projectId,
batchId:this.checkedList[0].batchId
}
let res = await delProjectInfo(row);
let res = await delProjectInfo(params);
// this.configs()
},
//点击撤回
......@@ -745,7 +758,14 @@ export default {
this.$message("请选择");
return;
}
let res= await chProjectInfo(this.checkedList[0])
if(this.checkedList[0].postEvalState=='已撤回'){
this.$message("该项目已撤回");
return;
}
let res= await chProjectInfo({batchId:this.checkedList[0].batchId})
if(res.code='200'){
this.resetForm()
}
},
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!