修改onlyoffice传参

This commit is contained in:
范强强
2023-02-15 17:54:27 +08:00
parent cd1125e349
commit 4eeb7cbb81
11 changed files with 3097 additions and 2727 deletions
@@ -24,7 +24,8 @@
clearable
></el-input>
</el-form-item>
<el-form-item v-show="fbNode" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">
<el-form-item v-show="fbNode" label="发布日期" prop="issueTime"
class="add-form-item form-item-disabled">
<el-datePicker v-model="form.issueTime" :disabled="disabledState"
:editable="false"
></el-datePicker>
@@ -32,8 +33,10 @@
<el-form-item label="制修订类型" prop="reviseStatus" class="add-form-item form-item-disabled">
<template>
<div style="padding-left: 10px; color: #666666;" v-if="form.reviseStatus === '1'">制定</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订
</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改
</div>
<div style="padding-left: 10px; color: #666666;" v-else></div>
</template>
</el-form-item>
@@ -81,7 +84,8 @@
<!-- clearable-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<el-form-item v-show="fbNode" label="企业标准号" prop="standCode" class="add-form-item form-item-disabled">
<el-form-item v-show="fbNode" label="企业标准号" prop="standCode"
class="add-form-item form-item-disabled">
<el-input
v-model="form.standCode" :disabled="disabledState"
clearable
@@ -94,7 +98,8 @@
clearable
></el-input>
</el-form-item>
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime" class="add-form-item form-item-disabled">
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime"
class="add-form-item form-item-disabled">
<el-datePicker v-model="form.putTime"
:editable="false"
placeholder="请选择企标实施日期"
@@ -130,10 +135,39 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<div style="width: 80%;margin-top: 13px" v-if="isTrue">
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer"
class="fileClass fileClassName">
<span style="width: 80%;"
v-if="index == 0"
@click="handleFilePreviewOne(item,'preview')">
{{ item.name }}
</span>
<span v-else @click="handleFilePreview(item,'preview')">
{{ item.name }}
</span>
<span style="width: 20%;margin-left: 15px;"
v-if="item.id !== '' && index == 0">
<el-button type="primary" size="mini"
plain icon="el-icon-edit"
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
</span>
<span style="margin-left: 7px;" v-if="item.id !== '' && index != 0">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span>
</div>
</div>
<div style="width: 80%;margin-top: 13px" v-if="!isTrue">
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;"
class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')"
:title="item.name">
{{ item.name }}
</span>
<span style="margin-left: 7px;"
v-if="item.id !== '' && item.name != form.standName">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span>
</div>
@@ -159,7 +193,8 @@
></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in LSBBBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<div v-for="(item,index) in LSBBBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -189,7 +224,8 @@
></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in BZSMBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<div v-for="(item,index) in BZSMBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -217,7 +253,8 @@
></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in QTWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<div v-for="(item,index) in QTWJBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -263,7 +300,8 @@
></el-input>
</el-form-item>
<el-form-item label="能源类型" prop="NYLXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.NYLXCLASS" placeholder="请选择能源类型" multiple>
<el-select :popper-append-to-body="false" v-model="form.NYLXCLASS" placeholder="请选择能源类型"
multiple>
<el-option
v-for="item in categoryOptions"
placeholder="请选择"
@@ -273,11 +311,15 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="关联模块--乘用车VPPS编码" title="关联模块--乘用车VPPS编码" class="add-form-item form-item-disabled">
<el-input v-model="form.CYCVPPSBMBUSS" readonly="readonly" placeholder="选择关联模块--乘用车VPPS编码" @click.native="choiceZRR2('car', '关联模块--乘用车VPPS编码', form.CYCVPPSBMBUSS,true)"></el-input>
<el-form-item label="关联模块--乘用车VPPS编码" title="关联模块--乘用车VPPS编码"
class="add-form-item form-item-disabled">
<el-input v-model="form.CYCVPPSBMBUSS" readonly="readonly" placeholder="选择关联模块--乘用车VPPS编码"
@click.native="choiceZRR2('car', '关联模块--乘用车VPPS编码', form.CYCVPPSBMBUSS,true)"></el-input>
</el-form-item>
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码" class="add-form-item form-item-disabled">
<el-input v-model="form.KCVPPSBMBUSS" readonly="readonly" placeholder="选择关联模块--卡车VPPS编码" @click.native="choiceZRR3('struck', '关联模块--卡车VPPS编码', form.KCVPPSBMBUSS,false)"></el-input>
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码"
class="add-form-item form-item-disabled">
<el-input v-model="form.KCVPPSBMBUSS" readonly="readonly" placeholder="选择关联模块--卡车VPPS编码"
@click.native="choiceZRR3('struck', '关联模块--卡车VPPS编码', form.KCVPPSBMBUSS,false)"></el-input>
</el-form-item>
<!-- <el-form-item label="模块结构单元变型号(卡车)" title="模块结构单元变型号(卡车)" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.DYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号(卡车)" @click.native="choiceZRR4('TRUCK', '模块结构单元变型号(卡车)', form.DYBXHBUSS,false)"></el-input>-->
@@ -286,7 +328,8 @@
<!-- <el-input v-model="form.CYCDYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号(乘用车)" @click.native="choiceZRR5('CAR', '模块结构单元变型号(乘用车)', form.CYCDYBXHBUSS,false)"></el-input>-->
<!-- </el-form-item>-->
<el-form-item label="体系类别" prop="TXLBBUSS" class="add-form-item form-item-disabled">
<el-input v-model="form.TXLBBUSS" placeholder="选择体系类别" clearable @click.native="choiceZRR1('TXLBBUSS', '体系类别', form.TXLBBUSS)"></el-input>
<el-input v-model="form.TXLBBUSS" placeholder="选择体系类别" clearable
@click.native="choiceZRR1('TXLBBUSS', '体系类别', form.TXLBBUSS)"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -299,7 +342,8 @@
</el-input>
</el-form-item>
<el-form-item label="适用车型" prop="SYCXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.SYCXCLASS" placeholder="请选择适用车型" multiple>
<el-select :popper-append-to-body="false" v-model="form.SYCXCLASS" placeholder="请选择适用车型"
multiple>
<el-option
v-for="item in applyArcticOptions"
placeholder="请选择"
@@ -310,7 +354,8 @@
</el-select>
</el-form-item>
<el-form-item label="适用产品线" prop="SYCPXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.SYCPXCLASS" placeholder="请选择适用认证" multiple>
<el-select :popper-append-to-body="false" v-model="form.SYCPXCLASS" placeholder="请选择适用认证"
multiple>
<el-option
v-for="item in sycpxOptions"
placeholder="请选择"
@@ -320,11 +365,13 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS" class="add-form-item form-item-disabled">
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS"
class="add-form-item form-item-disabled">
<el-input v-model="form.CYCVPPSCNBUSS" placeholder="请输入模块中文名称" clearable disabled></el-input>
</el-form-item>
<el-form-item label="关联模块--卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled">
<el-input v-model="form.KCVPPSCNBUSS" placeholder="关联模块--卡车VPPS编码" clearable disabled></el-input>
<el-input v-model="form.KCVPPSCNBUSS" placeholder="关联模块--卡车VPPS编码" clearable
disabled></el-input>
</el-form-item>
<!-- <el-form-item label="模块结构单元名称(卡车)" prop="DYMCBUSS" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.DYMCBUSS" placeholder="模块结构单元名称(卡车)" clearable disabled></el-input>-->
@@ -356,7 +403,8 @@
size="mini"
style="position:absolute;top: 10px;right: 0;"
@click="selectLaws('DTQBBHBUSS','代替企标编号')"
>{{'手动查找'}}</el-button>
>{{'手动查找'}}
</el-button>
</el-form-item>
<el-form-item label="采用标准" prop="CYBZ" class="add-form-item form-item-disabled">
<el-input
@@ -370,7 +418,8 @@
size="mini"
style="position:absolute;top: 10px;right: 0;"
@click="selectLaws('CYBZ','采用标准')"
>{{'手动查找'}}</el-button>
>{{'手动查找'}}
</el-button>
</el-form-item>
<el-form-item label="引用标准" prop="YYBZ" class="add-form-item form-item-disabled">
<el-input
@@ -384,7 +433,8 @@
size="mini"
style="position:absolute;top: 10px;right: 0;"
@click="selectLaws('YYBZ','引用标准')"
>{{'手动查找'}}</el-button>
>{{'手动查找'}}
</el-button>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -431,7 +481,8 @@
></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in GLWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<div v-for="(item,index) in GLWJBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -584,7 +635,8 @@
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="汇总评审意见文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
<div v-if="summaryFileList.length > 0" v-for="(item,index) in summaryFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<div v-if="summaryFileList.length > 0" v-for="(item,index) in summaryFileList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -609,7 +661,8 @@
></el-input>
<div style="display: flex;justify-content: left;margin-top: 5px;padding-left: 20px;">
<div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in madelSubList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<div v-for="(item,index) in madelSubList" :key="index"
style="color: #409eff;cursor:pointer" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
<span style="margin-left: 7px;">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -701,6 +754,10 @@ export default {
type: Boolean,
default: false
},
isTrue: {
type: Boolean,
default: false
},
},
filters: {
ellipsis(value) {
@@ -884,7 +941,8 @@ export default {
case 'madelSub':
this.fileList = this.madelSubList
break;
default : ;
default :
;
}
this.fileMadel = true;
this.$emit('formCancel', this.form, this.FBGBUSSFileList, this.LSBBBUSSFileList, this.BZSMBUSSFileList, this.QTWJBUSSFileList, this.GLWJBUSSFileList, this.fileMadel, this.fileList, fileType, this.madelSubList);
@@ -905,6 +963,22 @@ export default {
} else {
attId = file.response.data.id
}
if (file.name == this.form.standName) {
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName + '-企业标准'
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
let form = JSON.parse(JSON.stringify(this.form))
form.standCode = ''
form.issueDate = ''
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
return
}
if (type === 'down') {
if (attId) {
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
@@ -915,6 +989,31 @@ export default {
this.$preview(attId)
}
},
handleFilePreviewOne(file, type) {
let id = ""
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName + '-企业标准'
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
if (file && file.id) {
id = file.id
} else {
id = file.response.data.id
}
let form = JSON.parse(JSON.stringify(this.form))
form.standCode = ''
form.issueDate = ''
if (type === 'preview') {
this.$onlineEditPreview(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
} else {
this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
}
},
downloadFile(data) {
//文件id中出现了','字符,去除掉
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + data.id
@@ -984,6 +1083,17 @@ export default {
})
})
},
assemble(ids, names) {
let list = new Array();
if (ids && ids !== '' && names && names !== '') {
let idArray = ids.split(',');
let nameArray = names.split(',');
for (let i = 0; i < idArray.length; i++) {
list.push({id: idArray[i], name: nameArray[i]});
}
}
return list;
},
},
mounted() {
if (this.formSub && this.formSub.standSort && this.formSub.standSort !== '') {
@@ -1031,6 +1141,20 @@ export default {
madelSubListSub: function (val) {
this.madelSubList = val
},
'form.standName': {
handler: function (val) {
console.log(val);
if (val && val !== '') {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = val
}
} else {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = '企业标准'
}
}
}
},
}
}
</script>
@@ -1039,6 +1163,7 @@ export default {
/deep/ .fileClass {
line-height: 22px !important;
}
.process-manuscript /deep/ .el-form-item__error {
right: 45px !important;
}
@@ -131,10 +131,38 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between;margin-left: 12px;">
<div style="width: 80%;margin-top: 13px">
<div v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<div style="width: 80%;margin-top: 13px" v-if="isTrue">
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer"
class="fileClass fileClassName">
<span style="width: 80%;"
v-if="index == 0"
@click="handleFilePreviewOne(item,'preview')">
{{ item.name }}
</span>
<span v-else @click="handleFilePreview(item,'preview')">
{{ item.name }}
</span>
<span style="width: 20%;margin-left: 15px;"
v-if="item.id !== '' && index == 0">
<el-button type="primary" size="mini"
plain icon="el-icon-edit"
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
</span>
<span style="margin-left: 7px;" v-if="item.id !== '' && index != 0">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span>
</div>
</div>
<div style="width: 80%;margin-top: 13px" v-if="!isTrue">
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;"
class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')"
:title="item.name">
{{ item.name }}
</span>
<span style="margin-left: 7px;" v-if="item.id !== '' && item.name != form.standName">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span>
</div>
@@ -702,6 +730,10 @@ export default {
type: Boolean,
default: false
},
isTrue: {
type: Boolean,
default: false
},
},
filters: {
ellipsis (value) {
@@ -905,6 +937,22 @@ export default {
attId = file.id
}else {
attId = file.response.data.id
}
if (file.name == this.form.standName) {
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName + '-企业标准'
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
let form = JSON.parse(JSON.stringify(this.form))
form.standCode = ''
form.issueDate = ''
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
return
}
if (type === 'down') {
if (attId) {
@@ -916,6 +964,31 @@ export default {
this.$preview(attId)
}
},
handleFilePreviewOne(file, type) {
let id = ""
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName + '-企业标准'
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
if (file && file.id) {
id = file.id
} else {
id = file.response.data.id
}
if (this.form.issueTime){
this.form.issueTime = this.form.issueTime.slice(0,10)
}
if (type === 'preview') {
this.$onlineEditPreview(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, this.form)
} else {
this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, this.form)
}
},
downloadFile (data) {
//文件id中出现了','字符,去除掉
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + data.id
@@ -1010,6 +1083,20 @@ export default {
},
deep: true //对象的深度验证
},
'form.standName': {
handler: function (val) {
console.log(val);
if (val && val !== '') {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = val
}
} else {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = '企业标准'
}
}
}
},
}
}
</script>
@@ -7,7 +7,8 @@
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="企标类别" prop="standSort" class="add-form-item form-item-disabled">
<el-select v-model="form.standSort" filterable clearable placeholder="" :disabled="disabledState" style="appearance: none">
<el-select v-model="form.standSort" filterable clearable placeholder=""
:disabled="disabledState" style="appearance: none">
<el-option
v-for="item in standSortOptions"
:key="item.value"
@@ -25,8 +26,10 @@
<el-form-item label="制修订类型" prop="reviseStatus" class="add-form-item form-item-disabled">
<template>
<div style="padding-left: 10px; color: #666666;" v-if="form.reviseStatus === '1'">制定</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '2'">修订
</div>
<div style="padding-left: 10px; color: #666666;" v-else-if="form.reviseStatus === '3'">修改
</div>
<div style="padding-left: 10px; color: #666666;" v-else></div>
</template>
</el-form-item>
@@ -67,7 +70,8 @@
<!-- clearable-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime" class="add-form-item form-item-disabled">
<el-form-item v-show="verifySarStandard" label="企标实施日期" prop="putTime"
class="add-form-item form-item-disabled">
<el-datePicker v-model="form.putTime" :disabled="disabledState"
:editable="false"></el-datePicker>
</el-form-item>
@@ -102,19 +106,50 @@
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="发布稿" prop="FBGBUSSName" class="add-form-item form-item-disabled">
<div v-if="FBGBUSSFileList.length > 0" v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<div style="width: 80%;margin-top: 13px" v-if="isTrue">
<div v-if="FBGBUSSFileList.length > 0"
v-for="(item,index) in FBGBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;"
class="fileClass fileClassName">
<span style="width: 80%;"
v-if="index == 0"
@click="handleFilePreviewOne(item,'preview')">
{{ item.name }}
</span>
<span v-else @click="handleFilePreview(item,'preview')">
{{ item.name }}
</span>
<span style="width: 20%;margin-left: 15px;"
v-if="item.id !== '' && index == 0">
<el-button type="primary" size="mini"
plain icon="el-icon-edit"
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
</span>
<span style="margin-left: 7px;" v-if="item.id !== '' && index != 0">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span>
</div>
</div>
<div style="width: 80%;margin-top: 13px" v-if="!isTrue">
<div v-if="FBGBUSSFileList.length > 0" v-for="(item,index) in FBGBUSSFileList"
:key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;"
class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== '' && item.name != form.standName">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
</span>
</div>
</div>
<!-- <div v-if="FBGBUSSFileList.length>0" v-for="(value,index) in this.FBGBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">-->
<!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;-->
<!-- {{value.name}}-->
<!-- </div>-->
</el-form-item>
<el-form-item label="历史版本" prop="LSBBBUSSName" class="add-form-item form-item-disabled">
<div v-if="LSBBBUSSFileList.length > 0" v-for="(item,index) in LSBBBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<div v-if="LSBBBUSSFileList.length > 0" v-for="(item,index) in LSBBBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -128,7 +163,8 @@
</el-col>
<el-col :span="12">
<el-form-item label="编制说明" prop="BZSMBUSSName" class="add-form-item form-item-disabled">
<div v-if="BZSMBUSSFileList.length > 0" v-for="(item,index) in BZSMBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<div v-if="BZSMBUSSFileList.length > 0" v-for="(item,index) in BZSMBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -140,7 +176,8 @@
<!-- </div>-->
</el-form-item>
<el-form-item label="其他文件" prop="QTWJBUSSName" class="add-form-item form-item-disabled">
<div v-if="QTWJBUSSFileList.length > 0" v-for="(item,index) in QTWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<div v-if="QTWJBUSSFileList.length > 0" v-for="(item,index) in QTWJBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -171,7 +208,8 @@
></el-input>
</el-form-item>
<el-form-item label="能源类型" prop="NYLXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.NYLXCLASS" placeholder="" :disabled="disabledState" multiple>
<el-select :popper-append-to-body="false" v-model="form.NYLXCLASS" placeholder=""
:disabled="disabledState" multiple>
<el-option
v-for="item in categoryOptions"
:key="item.value"
@@ -180,10 +218,12 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="关联模块--乘用车VPPS中文名称" title="关联模块--乘用车VPPS中文名称" class="add-form-item form-item-disabled">
<el-form-item label="关联模块--乘用车VPPS中文名称" title="关联模块--乘用车VPPS中文名称"
class="add-form-item form-item-disabled">
<el-input v-model="form.CYCVPPSBMBUSS" :disabled="disabledState"></el-input>
</el-form-item>
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码" class="add-form-item form-item-disabled">
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码"
class="add-form-item form-item-disabled">
<el-input v-model="form.KCVPPSBMBUSS" :disabled="disabledState"></el-input>
</el-form-item>
<!-- <el-form-item label="模块结构单元变型号(卡车)" title="模块结构单元变型号(卡车)" class="add-form-item form-item-disabled">-->
@@ -198,10 +238,12 @@
</el-col>
<el-col :span="12">
<el-form-item label="起草人" prop="QCRBUSS" class="add-form-item form-item-disabled">
<el-input v-model="form.QCRBUSS" :title="form.QCRBUSS" :disabled="disabledState" clearable></el-input>
<el-input v-model="form.QCRBUSS" :title="form.QCRBUSS" :disabled="disabledState"
clearable></el-input>
</el-form-item>
<el-form-item label="适用车型" prop="SYCXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.SYCXCLASS" placeholder="" :disabled="disabledState" multiple>
<el-select :popper-append-to-body="false" v-model="form.SYCXCLASS" placeholder=""
:disabled="disabledState" multiple>
<el-option
v-for="item in applyArcticOptions"
:key="item.value"
@@ -211,7 +253,8 @@
</el-select>
</el-form-item>
<el-form-item label="适用产品线" prop="SYCPXCLASS" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.SYCPXCLASS" placeholder="" :disabled="disabledState" multiple>
<el-select :popper-append-to-body="false" v-model="form.SYCPXCLASS" placeholder=""
:disabled="disabledState" multiple>
<el-option
v-for="item in sycpxOptions"
:key="item.value"
@@ -220,7 +263,8 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS" class="add-form-item form-item-disabled">
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS"
class="add-form-item form-item-disabled">
<el-input v-model="form.CYCVPPSCNBUSS" clearable disabled></el-input>
</el-form-item>
<el-form-item label="关联模块--卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled">
@@ -286,7 +330,8 @@
</el-select>
</el-form-item>
<el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
<div v-if="GLWJBUSSFileList.length > 0" v-for="(item,index) in GLWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<div v-if="GLWJBUSSFileList.length > 0" v-for="(item,index) in GLWJBUSSFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -434,7 +479,8 @@
<el-row :gutter="24">
<el-col :span="12">
<el-form-item label="汇总评审意见文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
<div v-if="summaryFileList.length > 0" v-for="(item,index) in summaryFileList" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<div v-if="summaryFileList.length > 0" v-for="(item,index) in summaryFileList" :key="index"
style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
<span style="margin-left: 7px;" v-if="item.id !== ''">
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
@@ -503,6 +549,10 @@ export default {
type: Boolean,
default: false
},
isTrue: {
type: Boolean,
default: false
},
},
filters: {
ellipsis(value) {
@@ -571,6 +621,22 @@ export default {
computed: {
...mapGetters(['userInfo'])
},
watch:{
'form.standName': {
handler: function (val) {
console.log(val);
if (val && val !== '') {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = val
}
} else {
if (this.FBGBUSSFileList.length > 0) {
this.FBGBUSSFileList[0].name = '企业标准'
}
}
}
},
},
methods: {
filterOp(data) {
if (!data) {
@@ -590,6 +656,22 @@ export default {
} else {
attId = file.response.data.id
}
if (file.name == this.form.standName) {
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName + '-企业标准'
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
let form = JSON.parse(JSON.stringify(this.form))
form.standCode = ''
form.issueDate = ''
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
return
}
if (type === 'down') {
if (attId) {
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
@@ -600,6 +682,31 @@ export default {
this.$preview(attId)
}
},
handleFilePreviewOne(file, type) {
let id = ""
let fileName = ""
let fileNam2 = ""
if (this.form.standName && this.form.standName !== '') {
fileName = this.form.standName + '-企业标准.docx'
fileNam2 = this.form.standName + '-企业标准'
} else {
fileName = '企业标准.docx'
fileNam2 = '企业标准'
}
if (file && file.id) {
id = file.id
} else {
id = file.response.data.id
}
let form = JSON.parse(JSON.stringify(this.form))
form.standCode = ''
form.issueDate = ''
if (type === 'preview') {
this.$onlineEditPreview(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
} else {
this.$onlineEdit(id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
}
},
downloadFile(data) {
//文件id中出现了','字符,去除掉
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + data.id)
@@ -2131,8 +2131,6 @@ export default {
}, res => {
this.form.standEnName = res.data.standEnName
this.form.putTime = res.data.putTime
this.form.issueTime = res.data.issueTime
this.form.standCode = res.data.standCode
this.form.QCDW = res.data.attrInfoMap.QCDW
this.form.WJSCRYBUSSName = res.data.attrInfoMap.WJSCRYBUSS
this.form.NYLXCLASS = res.data.attrInfoMap.NYLXCLASS.split(',')
@@ -21,6 +21,7 @@
<formEditList
:key = "formKey"
:formSub = "form"
:isTrue="true"
:FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
:BZSMBUSSFileListSub = "BZSMBUSSFileList"
@@ -21,6 +21,7 @@
<formEditList
:key = "formKey"
:formSub = "form"
:isTrue="true"
:FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
:BZSMBUSSFileListSub = "BZSMBUSSFileList"
@@ -20,6 +20,7 @@
<div style="flex: auto;" v-show="active === '1'">
<formList
:form = "form"
:isTrue="true"
:FBGBUSSFileList = "FBGBUSSFileList"
:LSBBBUSSFileList = "LSBBBUSSFileList"
:BZSMBUSSFileList = "BZSMBUSSFileList"
@@ -1,4 +1,5 @@
<template><div class="bzrkStep1">
<template>
<div class="bzrkStep1">
<!-- 标准入库流程-->
<ProcessHeader toggle>
<template slot="proName">企标制修订-技术标准</template>
@@ -65,7 +66,8 @@
width='100'
>
<template slot-scope="scope">
{{scope.row.valueType === 'number' ? scope.row.weight * 100 : '加分项('+scope.row.weight+'分)'}}
{{scope.row.valueType === 'number' ? scope.row.weight * 100 :
'加分项('+scope.row.weight+'分)'}}
</template>
</el-table-column>
</el-table-column>
@@ -102,7 +104,8 @@
align="center"
label="简述扣分理由(不合格<6分,必填)"
>
<template slot-scope="scope" v-if="(scope.row.valueType !== 'add' && scope.row.score !== undefined && scope.row.score !== '' && scope.row.score < 10)">
<template slot-scope="scope"
v-if="(scope.row.valueType !== 'add' && scope.row.score !== undefined && scope.row.score !== '' && scope.row.score < 10)">
<el-form-item
:prop="'evaluationData.'+scope.$index + '.reason'"
:rules="scope.row.score < 6 ? rules.reason : rules.reasonNot">
@@ -151,6 +154,7 @@
<div style="flex: auto;" v-show="active === '2'">
<formList
:form="form"
:isTrue=true
:FBGBUSSFileList="FBGBUSSFileList"
:LSBBBUSSFileList="LSBBBUSSFileList"
:BZSMBUSSFileList="BZSMBUSSFileList"
@@ -351,7 +355,8 @@
>
<div class="search-area">
<div class="left">
<el-form :modal="replaceLawsNumForm" :inline="true" class="label-input-form" @keyup.enter.native="getReplaceLawsNumRowFirst">
<el-form :modal="replaceLawsNumForm" :inline="true" class="label-input-form"
@keyup.enter.native="getReplaceLawsNumRowFirst">
<el-form-item label="标准来源" class="search-item" v-if="dataSource">
<el-select
:popper-append-to-body="false"
@@ -407,8 +412,10 @@
<el-table-column
label="标准编号">
<template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
<a v-else class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort }} {{ scope.row.standNumber }}</a>
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{
scope.row.standSort }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
<a v-else class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort }} {{
scope.row.standNumber }}</a>
</template>
</el-table-column>
<el-table-column
@@ -419,7 +426,9 @@
prop="issueTime"
label="发布日期"
width="130">
<template slot-scope="scope">{{ scope.row.issueTime ? $moment(scope.row.issueTime).format('YYYY-MM-DD') : '' }}</template>
<template slot-scope="scope">{{ scope.row.issueTime ?
$moment(scope.row.issueTime).format('YYYY-MM-DD') : '' }}
</template>
</el-table-column>
<el-table-column
prop="textStatus"
@@ -439,8 +448,12 @@
@pageChange="pageChangeReplace"
@pageSizeChange="pageSizeChangeReplace"></pagination>
<div slot="footer" class="demo-drawer-footer">
<el-button class="common-button-default" round icon="el-icon-close" @click="replaceLawsNumModel = false">取消</el-button>
<el-button type="primary" round class="common-button-primary" icon="el-icon-check" @click="replaceLawsNumModelBt">提交</el-button>
<el-button class="common-button-default" round icon="el-icon-close"
@click="replaceLawsNumModel = false">取消
</el-button>
<el-button type="primary" round class="common-button-primary" icon="el-icon-check"
@click="replaceLawsNumModelBt">提交
</el-button>
</div>
</el-dialog>
<Role-tree
@@ -530,7 +543,8 @@
:maxlength="100"></el-input>
</el-form-item>
<el-formItem label="文本状态" prop="lawsTextState" class="search-item">
<el-select v-model="standardSearchForm.lawsTextState" placeholder="" filterable clearable>
<el-select v-model="standardSearchForm.lawsTextState" placeholder="" filterable
clearable>
<el-option
v-for="item in standStateOptions"
:key="item.value"
@@ -629,18 +643,21 @@
class="common-button-primary"
icon="el-icon-check"
type="primary"
@click="handleProcessStandardNext(1)">新增</el-button>
@click="handleProcessStandardNext(1)">新增
</el-button>
<el-button
round
class="common-button-primary"
icon="el-icon-check"
type="primary"
@click="handleProcessStandardNext(2)">带入</el-button>
@click="handleProcessStandardNext(2)">带入
</el-button>
<el-button
round
class="common-button-default"
icon="el-icon-close"
@click="handleProcessStandardNext(3)">取消</el-button>
@click="handleProcessStandardNext(3)">取消
</el-button>
</div>
</el-drawer>
<!-- 组件树-->
@@ -673,10 +690,19 @@
import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {saveTaskForPub,saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail,changeAssigneeNew,evaluationHisListByOne} from "api/process";
import {
saveTaskForPub,
saveTaskFirst,
queryTaskFirst,
getBusStandFileByAttId,
inboundLiaisonDetail,
changeAssigneeNew,
evaluationHisListByOne
} from "api/process";
import {getEvaluationIndex} from "api/businessApi";
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
let Base64 = require('js-base64').Base64;
export default {
@@ -1661,7 +1687,8 @@
case 'glwj':
this.getFileList(value, this.glwjFileList);
break;
default: ;
default:
;
}
}, getFileList(fileIds, defaultFileList) {
@@ -2149,7 +2176,8 @@
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
default :
;
}
this.$message({
// showClose: true,
@@ -2184,7 +2212,8 @@
case 'GLWJBUSS':
this.fileList = this.GLWJBUSSFileList
break;
default : ;
default :
;
}
this.fileMadel = true;
@@ -2207,7 +2236,8 @@
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
default :
;
}
},
popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) {
@@ -2686,18 +2716,23 @@
<style lang="less" scoped>
@import '~@/assets/styles/style';
/deep/ .column1 {
font-size: 18px !important;
}
/deep/ .el-input__suffix {
display: none !important;
}
/deep/ #active1 .el-form-item__content {
margin-left: 0px !important;
}
/deep/ #active2 .el-form-item__content {
margin-left: 0px !important;
}
.bzrkStep1 {
/deep/ .el-drawer__container {
.prc-content-border {
@@ -2705,8 +2740,10 @@
padding: 0 20px 0;
}
}
position: relative;
height: 100%;
.headerTabs {
height: 52px;
display: flex;
@@ -2714,6 +2751,7 @@
position: absolute;
top: 0;
right: 10px;
.headerTabsItem {
border: 1px solid #c1c1c1;
padding: 0 5px;
@@ -2721,18 +2759,21 @@
line-height: 30px;
cursor: pointer;
}
.active {
border: 1px solid #E6A23C;
color: #fff;
background: #E6A23C;
}
}
.content {
display: flex;
flex-direction: column;
justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto;
.tableTitle {
margin-bottom: 10px;
height: 30px;
@@ -2740,6 +2781,7 @@
position: relative;
font-size: 13px;
font-weight: bold;
.tableButton {
position: absolute;
right: 0;
@@ -2748,20 +2790,25 @@
}
}
}
.standard-content {
height: 100%;
padding: 10px 0 0;
.content {
height: 100%;
display: flex;
flex-direction: column;
padding: 0 10px;
.standard-table-wrap {
flex: auto;
overflow-y: auto;
}
.pagination {
position: static;
/deep/ .pagination-slot {
padding: 0;
}
@@ -145,6 +145,7 @@
<formEditList
:key = "formKey"
:formSub = "form"
:is-true="true"
:FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
:BZSMBUSSFileListSub = "BZSMBUSSFileList"
@@ -21,6 +21,7 @@
<formEditList
:key = "formKey"
:formSub = "form"
:isTrue="true"
:FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
:BZSMBUSSFileListSub = "BZSMBUSSFileList"
@@ -150,6 +150,7 @@
<formEditList
:key = "formKey"
:formSub = "form"
:is-true="true"
:FBGBUSSFileListSub = "FBGBUSSFileList"
:LSBBBUSSFileListSub = "LSBBBUSSFileList"
:BZSMBUSSFileListSub = "BZSMBUSSFileList"