feat: There is no way the,buss product process

This commit is contained in:
super_liu
2021-12-28 15:55:59 +08:00
parent 49df61637d
commit a320e58bed
4 changed files with 54 additions and 7 deletions
@@ -85,8 +85,6 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="汇总评审意见文件" prop="summaryFileName" class="add-form-item form-item-disabled">
<el-input
@@ -154,6 +154,7 @@
:BZSMBUSSFileList = "BZSMBUSSFileList"
:QTWJBUSSFileList = "QTWJBUSSFileList"
:GLWJBUSSFileList = "GLWJBUSSFileList"
:summaryFileList = "summaryFileList"
:disabledState = "disabledState"
:verifySarStandard = "verifySarStandard"
:opinionsShow = "true"
@@ -154,6 +154,7 @@
:BZSMBUSSFileList = "BZSMBUSSFileList"
:QTWJBUSSFileList = "QTWJBUSSFileList"
:GLWJBUSSFileList = "GLWJBUSSFileList"
:summaryFileList = "summaryFileList"
:disabledState = "disabledState"
:verifySarStandard = "verifySarStandard"
:opinionsShow = "true"
@@ -39,11 +39,11 @@
<template slot="title">意见信息</template>
</ProcessTitle>
<template>
<div class="prc-content-border" style="height: 66vh;position: relative;">
<div class="prc-content-border" style="height: auto;position: relative;">
<el-table
ref="selection"
tooltip-effect="dark"
style="width: 100%;margin-bottom: 20px;overflow-y:auto;height:56vh;border-bottom: 1px solid #EBEEF5;"
style="width: 100%;margin-bottom: 20px;overflow-y:auto;height:auto;border-bottom: 1px solid #EBEEF5;"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="handleSelectionChange"
@@ -85,6 +85,36 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="汇总评审意见文件" prop="summaryFileName" class="add-form-item form-item-disabled">
<el-input
disabled
style="display: none;"
v-model="form.summaryFileName"
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div v-for="(item,index) in summaryFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
<span style="width: 20%;margin-left: 15px;">
<el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
</span>
</div>
</div>
<div style="width: 20%;">
<el-button
type="primary"
class="common-button-primary"
size="mini"
style="margin-left: 10px; margin-top: 11px; float: right;"
@click="fileUpload('summaryFile')">
<i class="el-icon-upload"></i>
</el-button>
</div>
</div>
</el-form-item>
</el-col>
</el-row>
</div>
</template>
@@ -326,7 +356,7 @@
</el-form-item>
<el-form-item label="编号/名称" class="search-item">
<el-input
v-model="replaceLawsNumForm.standNumber"
v-model="replaceLawsNumForm.numberName"
placeholder="根据编号/名称查找"
clearable
:maxlength="100"></el-input>
@@ -719,6 +749,7 @@
LSBBBUSSFileList: [],
QTWJBUSSFileList: [],
GLWJBUSSFileList: [],
summaryFileList: [],
caFileList: [],
FBGBJBDFileList: [],
xgdFileList: [],
@@ -861,6 +892,8 @@
opinionsAdopted:'', // 汇总意见是否采纳
footFile:'',
footFileName:'',
summaryFile:'',
summaryFileName:'',
// 基础信息
country:[],
// 基础信息
@@ -1365,6 +1398,7 @@
this.LSBBBUSSFileList=this.assemble(this.form.LSBBBUSS,this.form.LSBBBUSSName);
this.QTWJBUSSFileList=this.assemble(this.form.QTWJBUSS,this.form.QTWJBUSSName);
this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName);
this.summaryFileList=this.assemble(this.form.summaryFile,this.form.summaryFileName);
this.roleForm = mes.roleForm
this.commentText = mes.commentText
this.formKey++
@@ -2021,6 +2055,10 @@
this.GLWJBUSSFileList = this.GLWJBUSSFileList.filter ( item => item.response === undefined);
this.GLWJBUSSFileList.push(fileObj)
break;
case 'summaryFile':
this.summaryFileList = this.summaryFileList.filter ( item => item.response === undefined);
this.summaryFileList.push(fileObj)
break;
default : ;
}
this.formKey++
@@ -2057,6 +2095,9 @@
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
case 'summaryFile':
this.fileList=this.summaryFileList
break;
default : ;
}
this.fileMadel = true;
@@ -2081,6 +2122,9 @@
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
case 'summaryFile':
this.summaryFileList = fileList
break;
default : ;
}
this.formKey++
@@ -2272,6 +2316,9 @@
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",")
this.form.summaryFile=this.summaryFileList.map(item => item.id).join(",")
this.form.summaryFileName=this.summaryFileList.map(item => item.name).join(",")
},
// 删除方法
deletedId(data, ids) {
@@ -2480,9 +2527,9 @@
this.FBGBUSSFileList=this.assemble(processForm.FBGBUSS,processForm.FBGBUSSName);
this.BZSMBUSSFileList=this.assemble(processForm.BZSMBUSS,processForm.BZSMBUSSName);
this.LSBBBUSSFileList=this.assemble(processForm.LSBBBUSS,processForm.LSBBBUSSName);
console.log(this.LSBBBUSSFileList)
this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName);
this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName);
this.summaryFileList=this.assemble(processForm.summaryFile,processForm.summaryFileName);
this.formKey++
}
}).catch(e => {
@@ -2535,7 +2582,7 @@
this.energyKindOptions = res.data.ENERGYTYPES
this.standGeneraOptions = res.data.BUSSBIGCLASS
this.standSubclassOptions = res.data.BUSSFINECLASS
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
this.standSortOptions = res.data.BUSSSTANDCLASS // 标准类别
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
this.standStateOptions = res.data.TEXTSTATUSBUSS // 文本状态
this.standSystemOptions = res.data.TXLBBUSS // 标准体系