feat: There is no way the, buss2

This commit is contained in:
super_liu
2022-01-11 22:56:01 +08:00
parent a9174eb291
commit a076d1914c
12 changed files with 1370 additions and 787 deletions
@@ -398,7 +398,7 @@ export default {
prcType: row.prcType prcType: row.prcType
} }
}) })
}else if (row.taskInfo === '总院标准法规部产品标准工程师/各事业部标准化员发布'){ }else if (row.taskInfo === '总院标准法规部产品标准工程师发布'){
this.$router.push({ this.$router.push({
name: 'bussLibraryProduct13', name: 'bussLibraryProduct13',
query: { query: {
@@ -17,6 +17,11 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<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>
</el-form-item>
<el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled"> <el-form-item label="中文名称" prop="standName" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.standName" v-model="form.standName"
@@ -68,10 +73,9 @@
<!-- clearable--> <!-- clearable-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="英文名称" prop="standEnName" 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 <el-input
v-model="form.standEnName" v-model="form.standCode" :disabled="disabledState"
placeholder="请输入英文名称"
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -82,6 +86,13 @@
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
></el-datePicker> ></el-datePicker>
</el-form-item> </el-form-item>
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
<el-input
v-model="form.standEnName"
placeholder="请输入英文名称"
clearable
></el-input>
</el-form-item>
<!-- <el-form-item v-show="verifySarStandard" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-show="verifySarStandard" label="发布日期" prop="issueTime" class="add-form-item form-item-disabled">-->
<!-- <el-datePicker v-model="form.issueTime"--> <!-- <el-datePicker v-model="form.issueTime"-->
<!-- :editable="false"--> <!-- :editable="false"-->
@@ -114,7 +125,7 @@
<div style="width: 80%;"> <div style="width: 80%;">
<div v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass"> <div v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span> <span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
<span style="width: 20%;margin-left: 15px;"> <span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
<el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button> <el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
</span> </span>
</div> </div>
@@ -142,7 +153,7 @@
<div style="width: 80%;"> <div style="width: 80%;">
<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="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span> <span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
<span style="width: 20%;margin-left: 15px;"> <span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
<el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button> <el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
</span> </span>
</div> </div>
@@ -172,7 +183,7 @@
<div style="width: 80%;"> <div style="width: 80%;">
<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="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span> <span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
<span style="width: 20%;margin-left: 15px;"> <span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
<el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button> <el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
</span> </span>
</div> </div>
@@ -200,7 +211,7 @@
<div style="width: 80%;"> <div style="width: 80%;">
<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="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span> <span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
<span style="width: 20%;margin-left: 15px;"> <span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
<el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button> <el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
</span> </span>
</div> </div>
@@ -254,15 +265,15 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车VPPS中文名称" title="关联模块--乘用车VPPS中文名称" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;乘用车VPPS中文名称" title="关联模块&#45;&#45;乘用车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-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>-->
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;卡车VPPS编码" title="关联模块&#45;&#45;卡车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-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>-->
<el-form-item label="模块结构单元变型号" title="模块结构单元变型号" class="add-form-item form-item-disabled"> <!-- <el-form-item label="模块结构单元变型号" title="模块结构单元变型号" class="add-form-item form-item-disabled">-->
<el-input v-model="form.DYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号" @click.native="choiceZRR4('dybxhbuss', '模块结构单元', form.DYBXHBUSS,false)"></el-input> <!-- <el-input v-model="form.DYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号" @click.native="choiceZRR4('dybxhbuss', '模块结构单元', form.DYBXHBUSS,false)"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="体系类别" prop="TXLBBUSS" class="add-form-item form-item-disabled"> <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-form-item>
@@ -298,15 +309,15 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;乘用车vpps中文名称" prop="CYCVPPSCNBUSS" class="add-form-item form-item-disabled">-->
<el-input v-model="form.CYCVPPSCNBUSS" placeholder="请输入模块中文名称" clearable :disabled="true"></el-input> <!-- <el-input v-model="form.CYCVPPSCNBUSS" placeholder="请输入模块中文名称" clearable :disabled="true"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="关联模块--卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled">-->
<el-input v-model="form.KCVPPSCNBUSS" placeholder="关联模块--卡车VPPS编码" clearable :disabled="true"></el-input> <!-- <el-input v-model="form.KCVPPSCNBUSS" placeholder="关联模块&#45;&#45;卡车VPPS编码" clearable :disabled="true"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="模块结构单元名称" prop="DYMCBUSS" class="add-form-item form-item-disabled"> <!-- <el-form-item label="模块结构单元名称" prop="DYMCBUSS" class="add-form-item form-item-disabled">-->
<el-input v-model="form.DYMCBUSS" placeholder="模块结构单元名称" clearable :disabled="true"></el-input> <!-- <el-input v-model="form.DYMCBUSS" placeholder="模块结构单元名称" clearable :disabled="true"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -330,33 +341,33 @@
@click="selectLaws('DTQBBHBUSS'),config.attrName = '代替企标编号'" @click="selectLaws('DTQBBHBUSS'),config.attrName = '代替企标编号'"
>{{'手动查找'}}</el-button> >{{'手动查找'}}</el-button>
</el-form-item> </el-form-item>
<el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="采用标准" prop="CYBZ" class="add-form-item form-item-disabled">
<el-input <el-input
disabled v-model="form.CYBZ"
style="display: none;" placeholder="请输入采用标准"
v-model="form.GLWJBUSSName"
clearable clearable
></el-input> ></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div v-for="(item,index) in GLWJBUSSFileList" :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 <el-button
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
style="margin-left: 10px; margin-top: 11px; float: right;" style="position:absolute;top: 10px;right: 0;"
@click="fileUpload('GLWJBUSS')"> @click="selectLaws('CYBZ'),config.attrName = '采用标准'"
<i class="el-icon-upload"></i> >{{'手动查找'}}</el-button>
</el-button> </el-form-item>
</div> <el-form-item label="引用标准" prop="YYBZ" class="add-form-item form-item-disabled">
</div> <el-input
v-model="form.YYBZ"
placeholder="请输入引用标准"
clearable
></el-input>
<el-button
type="primary"
class="common-button-primary"
size="mini"
style="position:absolute;top: 10px;right: 0;"
@click="selectLaws('YYBZ'),config.attrName = '引用标准'"
>{{'手动查找'}}</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@@ -382,9 +393,178 @@
:disabled="true" :disabled="true"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="采标程度" prop="CBCD" class="add-form-item form-item-disabled">
<el-select v-model="form.CBCD" filterable clearable
placeholder="请先选择采标程度"
>
<el-option
v-for="item in cbcdOptions"
:key="item.value"
:value="item.value"
:label="item.label"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled">
<el-input
disabled
style="display: none;"
v-model="form.GLWJBUSSName"
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;">
<div v-for="(item,index) in GLWJBUSSFileList" :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;" v-if="item.id !== ''">
<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('GLWJBUSS')">
<i class="el-icon-upload"></i>
</el-button>
</div>
</div>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<ProcessTitle v-show="opinionsShow">
<template slot="title">意见信息</template>
</ProcessTitle>
<div class="prc-content-border" v-show="opinionsShow">
<el-table
ref="selection"
tooltip-effect="dark"
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'}"
row-key="id"
:data="form.infoList"
border
default-expand-all>
<el-table-column
label="序号"
min-width="5%"
align="center">
<template slot-scope="scope">
{{scope.$index + 1}}
</template>
</el-table-column>
<el-table-column
prop="modelNum"
label="条款号"
min-width="8%"
align="center"
>
</el-table-column>
<el-table-column
prop="modelUpdBefore"
label="修改前"
align="center"
min-width="20%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.modelUpdBefore" :title="scope.row.modelUpdBefore" :disabled="scope.row.disabled" placeholder="请维护章节修改前内容" @blur="modelNameFunc1(scope.row)"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="modelUpdAfter"
label="修改后"
align="center"
min-width="20%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.modelUpdAfter" :title="scope.row.modelUpdAfter" :disabled="scope.row.disabled" placeholder="请维护章节修改后内容" @blur="modelNameFunc2(scope.row)"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="modelContent"
label="修改理由"
align="center"
min-width="20%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.modelContent" :disabled="scope.row.disabled" placeholder="请填写修改理由"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="zrDeptIdName"
label="提出部门"
align="center"
min-width="15%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.zrDeptIdName" disabled placeholder="请选择提出人自动带入部门"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="zrUserIdName"
label="责任人"
min-width="15%"
align="center">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.zrUserIdName" v-if="scope.row.pid === '0'" placeholder="请选择责任人" disabled />-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
label="意见是否采纳"
min-width="15%"
align="center">
<template slot-scope="scope">
{{filterOp(scope.row.opinionsAdopted)}}
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-select style="margin-left: -223px;" v-model="scope.row.opinionsAdopted" filterable clearable :disabled="disabledState">-->
<!-- <el-option-->
<!-- v-for="item in opinionsAdoptedOptions"-->
<!-- :key="item.value"-->
<!-- :value="item.value"-->
<!-- :label="item.label"-->
<!-- ></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
</template>
</el-table-column>
<el-table-column
prop="opinionsAdoptedCont"
label="采纳理由"
align="center"
min-width="15%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.opinionsAdoptedCont" clearable placeholder="请选择提出人自动带入部门"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
</el-table>
</div>
</form> </form>
</template> </template>
@@ -423,6 +603,14 @@
type: Array, type: Array,
required: true required: true
}, },
summaryFileListSub: {
type: Array,
required: false
},
madelSubListSub: {
type: Array,
required: false
},
disabledState: { disabledState: {
type: Boolean, type: Boolean,
default: false default: false
@@ -431,10 +619,18 @@
type: Boolean, type: Boolean,
default: false default: false
}, },
fbNode: {
type: Boolean,
default: false
},
fileMadelSub: { fileMadelSub: {
type: Boolean, type: Boolean,
default: false default: false
}, },
opinionsShow: {
type: Boolean,
default: false
},
fbgDown: { fbgDown: {
type: Boolean, type: Boolean,
default: false default: false
@@ -476,6 +672,8 @@
LSBBBUSSFileList: [], LSBBBUSSFileList: [],
QTWJBUSSFileList: [], QTWJBUSSFileList: [],
GLWJBUSSFileList: [], GLWJBUSSFileList: [],
summaryFileList: [],
madelSubList: [],
countryOptions:[],//国家地区 countryOptions:[],//国家地区
standSortOptions: [], // 标准类别 standSortOptions: [], // 标准类别
standNatureOptions: [], // 标准性质 standNatureOptions: [], // 标准性质
@@ -514,6 +712,16 @@
...mapGetters(['userInfo']) ...mapGetters(['userInfo'])
}, },
methods: { methods: {
filterOp(data){
if(!data){
return ""
}
const map = new Map();
map.set("1","采纳");
map.set("2","部分采纳");
map.set("3","不采纳");
return map.get(data)
},
choiceZRR1(type, title, id) { choiceZRR1(type, title, id) {
this.$emit('formChoiceZRR1',type,title,id) this.$emit('formChoiceZRR1',type,title,id)
}, },
@@ -587,10 +795,14 @@
case 'GLWJBUSS': case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList this.fileList=this.GLWJBUSSFileList
break; break;
case 'madelSub':
this.fileList=this.madelSubList
break;
default : ; default : ;
} }
this.fileMadel = true; this.fileMadel = true;
this.$emit('formCancel', this.form, this.FBGBUSSFileList,this.LSBBBUSSFileList,this.BZSMBUSSFileList,this.QTWJBUSSFileList,this.GLWJBUSSFileList,this.fileMadel,this.fileList,fileType); console.log(this.madelSubList)
this.$emit('formCancel', this.form, this.FBGBUSSFileList,this.LSBBBUSSFileList,this.BZSMBUSSFileList,this.QTWJBUSSFileList,this.GLWJBUSSFileList,this.fileMadel,this.fileList,fileType,this.madelSubList);
}, },
filePreview(){ filePreview(){
this.$preview(this.fileId) this.$preview(this.fileId)
@@ -647,11 +859,14 @@
}, },
mounted () { mounted () {
this.form = this.formSub, this.form = this.formSub,
console.log(this.form)
this.FBGBUSSFileList= this.FBGBUSSFileListSub, this.FBGBUSSFileList= this.FBGBUSSFileListSub,
this.BZSMBUSSFileList= this.BZSMBUSSFileListSub, this.BZSMBUSSFileList= this.BZSMBUSSFileListSub,
this.LSBBBUSSFileList= this.LSBBBUSSFileListSub, this.LSBBBUSSFileList= this.LSBBBUSSFileListSub,
this.QTWJBUSSFileList= this.QTWJBUSSFileListSub, this.QTWJBUSSFileList= this.QTWJBUSSFileListSub,
this.GLWJBUSSFileList= this.GLWJBUSSFileListSub, this.GLWJBUSSFileList= this.GLWJBUSSFileListSub,
this.summaryFileList= this.summaryFileListSub,
this.madelSubList= this.madelSubListSub,
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this _this: this
}, res => { }, res => {
@@ -680,6 +895,7 @@
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师 this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
this.gkglbmOptions=res.data.GKGLBM;//归口管理部门 this.gkglbmOptions=res.data.GKGLBM;//归口管理部门
this.cbcdOptions=res.data.DEGREESTANDARD;//采标程度
this.setMap(this.standStateOptions) this.setMap(this.standStateOptions)
}) })
this.busVsFunc() this.busVsFunc()
@@ -689,7 +905,7 @@
form: { form: {
handler: function (val) { handler: function (val) {
if(val){ if(val){
this.$emit('formCancel', this.form, this.FBGBUSSFileList,this.LSBBBUSSFileList,this.BZSMBUSSFileList,this.QTWJBUSSFileList,this.GLWJBUSSFileList,this.fileMadel); this.$emit('formCancel', this.form, this.FBGBUSSFileList,this.LSBBBUSSFileList,this.BZSMBUSSFileList,this.QTWJBUSSFileList,this.GLWJBUSSFileList,this.fileMadel,this.fileList,'',this.madelSubList);
} }
}, },
deep: true //对象的深度验证 deep: true //对象的深度验证
@@ -32,6 +32,7 @@
<!-- ></el-option>--> <!-- ></el-option>-->
<!-- </el-select>--> <!-- </el-select>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- <el-form-item v-show="verifySarStandard" label="复审日期" prop="FSRQBUSS" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-show="verifySarStandard" label="复审日期" prop="FSRQBUSS" class="add-form-item form-item-disabled">-->
<!-- <el-datePicker v-model="form.FSRQBUSS"--> <!-- <el-datePicker v-model="form.FSRQBUSS"-->
<!-- :editable="false"--> <!-- :editable="false"-->
@@ -58,16 +59,16 @@
<!-- clearable--> <!-- clearable-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<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>
<el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled"> <el-form-item label="英文名称" prop="standEnName" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.standEnName" :disabled="disabledState" v-model="form.standEnName" :disabled="disabledState"
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<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>
<!-- <el-form-item v-show="verifySarStandard" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">--> <!-- <el-form-item v-show="verifySarStandard" label="标准年份" prop="standYear" class="add-form-item form-item-disabled">-->
<!-- <el-input v-model="form.standYear" :disabled="disabledState"--> <!-- <el-input v-model="form.standYear" :disabled="disabledState"-->
<!-- clearable></el-input>--> <!-- clearable></el-input>-->
@@ -93,42 +94,54 @@
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="发布稿" prop="FBGBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="发布稿" prop="FBGBUSSName" class="add-form-item form-item-disabled">
<div v-if="FBGBUSSFileList.length>0" v-for="(value,index) in this.FBGBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)"> <div v-if="FBGBUSSFileList.length > 0" v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<!-- {{ value.name }} --> <span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
{{value.name}} <span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
</div> <el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
<div v-else> </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>
<el-form-item label="历史版本" prop="LSBBBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="历史版本" prop="LSBBBUSSName" class="add-form-item form-item-disabled">
<div v-if="LSBBBUSSFileList.length>0" v-for="(value,index) in this.LSBBBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)"> <div v-if="LSBBBUSSFileList.length > 0" v-for="(item,index) in LSBBBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<!-- {{ value.name }} --> <span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
{{value.name}} <span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
</div> <el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
<div v-else> </span>
- -
</div> </div>
<!-- <div v-if="LSBBBUSSFileList.length>0" v-for="(value,index) in this.LSBBBUSSFileList" :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>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="编制说明" prop="BZSMBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="编制说明" prop="BZSMBUSSName" class="add-form-item form-item-disabled">
<div v-if="BZSMBUSSFileList.length>0" v-for="(value,index) in this.BZSMBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)"> <div v-if="BZSMBUSSFileList.length > 0" v-for="(item,index) in BZSMBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<!-- {{ value.name }} --> <span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
{{value.name}} <span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
</div> <el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
<div v-else> </span>
- -
</div> </div>
<!-- <div v-if="BZSMBUSSFileList.length>0" v-for="(value,index) in this.BZSMBUSSFileList" :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>
<el-form-item label="其他文件" prop="QTWJBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="其他文件" prop="QTWJBUSSName" class="add-form-item form-item-disabled">
<div v-if="QTWJBUSSFileList.length>0" v-for="(value,index) in this.QTWJBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)"> <div v-if="QTWJBUSSFileList.length > 0" v-for="(item,index) in QTWJBUSSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
<!-- {{ value.name }} --> <span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
{{value.name}} <span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
</div> <el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
<div v-else> </span>
- -
</div> </div>
<!-- <div v-if="QTWJBUSSFileList.length>0" v-for="(value,index) in this.QTWJBUSSFileList" :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>
</el-col> </el-col>
</el-row> </el-row>
@@ -159,22 +172,22 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车VPPS中文名称" title="关联模块--乘用车VPPS中文名称" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;乘用车VPPS中文名称" title="关联模块&#45;&#45;乘用车VPPS中文名称" class="add-form-item form-item-disabled">-->
<el-input v-model="form.CYCVPPSBMBUSS" :disabled="disabledState"></el-input> <!-- <el-input v-model="form.CYCVPPSBMBUSS" :disabled="disabledState"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;卡车VPPS编码" title="关联模块&#45;&#45;卡车VPPS编码" class="add-form-item form-item-disabled">-->
<el-input v-model="form.KCVPPSBMBUSS" :disabled="disabledState"></el-input> <!-- <el-input v-model="form.KCVPPSBMBUSS" :disabled="disabledState"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="模块结构单元变型号" title="模块结构单元变型号" class="add-form-item form-item-disabled"> <!-- <el-form-item label="模块结构单元变型号" title="模块结构单元变型号" class="add-form-item form-item-disabled">-->
<el-input v-model="form.DYBXHBUSS" :disabled="disabledState"></el-input> <!-- <el-input v-model="form.DYBXHBUSS" :disabled="disabledState"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="体系类别" prop="TXLBBUSS" class="add-form-item form-item-disabled"> <el-form-item label="体系类别" prop="TXLBBUSS" class="add-form-item form-item-disabled">
<el-input v-model="form.TXLBBUSS" :disabled="disabledState" clearable></el-input> <el-input v-model="form.TXLBBUSS" :disabled="disabledState" clearable></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="起草人" prop="QCRBUSS" class="add-form-item form-item-disabled"> <el-form-item label="起草人" prop="QCRBUSS" class="add-form-item form-item-disabled">
<el-input v-model="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>
<el-form-item label="适用车型" prop="SYCXCLASS" class="add-form-item form-item-disabled"> <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>
@@ -196,15 +209,15 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;乘用车vpps中文名称" prop="CYCVPPSCNBUSS" class="add-form-item form-item-disabled">-->
<el-input v-model="form.CYCVPPSCNBUSS" clearable :disabled="true"></el-input> <!-- <el-input v-model="form.CYCVPPSCNBUSS" clearable :disabled="true"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="关联模块--卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled">-->
<el-input v-model="form.KCVPPSCNBUSS" clearable :disabled="true"></el-input> <!-- <el-input v-model="form.KCVPPSCNBUSS" clearable :disabled="true"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="模块结构单元名称" prop="DYMCBUSS" class="add-form-item form-item-disabled"> <!-- <el-form-item label="模块结构单元名称" prop="DYMCBUSS" class="add-form-item form-item-disabled">-->
<el-input v-model="form.DYMCBUSS" clearable :disabled="true"></el-input> <!-- <el-input v-model="form.DYMCBUSS" clearable :disabled="true"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -220,14 +233,17 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="关联文件" prop="GLWJBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="采用标准" prop="CYBZ" class="add-form-item form-item-disabled">
<div v-if="GLWJBUSSFileList.length>0" v-for="(value,index) in this.GLWJBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)"> <el-input
<!-- {{ value.name }} --> v-model="form.CYBZ" :disabled="disabledState"
{{value.name}} clearable
</div> ></el-input>
<div v-else> </el-form-item>
- - <el-form-item label="引用标准" prop="YYBZ" class="add-form-item form-item-disabled">
</div> <el-input
v-model="form.YYBZ" :disabled="disabledState"
clearable
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@@ -244,6 +260,28 @@
:disabled="true" :disabled="true"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="采标程度" prop="CBCD" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.CBCD" placeholder="" :disabled="disabledState" multiple>
<el-option
v-for="item in cbcdOptions"
:key="item.value"
:value="item.value"
:label="item.label"
></el-option>
</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" class="fileClass">
<span style="width: 80%;" @click="handleFilePreview(item,'preview')">{{ item.name }}</span>
<span style="width: 20%;margin-left: 15px;" v-if="item.id !== ''">
<el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview(item,'down')"></el-button>
</span>
</div>
<!-- <div v-if="GLWJBUSSFileList.length>0" v-for="(value,index) in this.GLWJBUSSFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">-->
<!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;-->
<!-- {{value.name}}-->
<!-- </div>-->
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -263,76 +301,118 @@
default-expand-all> default-expand-all>
<el-table-column <el-table-column
label="序号" label="序号"
min-width="15%" min-width="5%"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.$index + 1}} {{scope.$index + 1}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="userName" prop="modelNum"
label="会签人" label="条款号"
min-width="8%"
align="center"
>
</el-table-column>
<el-table-column
prop="modelUpdBefore"
label="修改前"
align="center"
min-width="20%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.modelUpdBefore" :title="scope.row.modelUpdBefore" :disabled="scope.row.disabled" placeholder="请维护章节修改前内容" @blur="modelNameFunc1(scope.row)"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="modelUpdAfter"
label="修改后"
align="center"
min-width="20%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.modelUpdAfter" :title="scope.row.modelUpdAfter" :disabled="scope.row.disabled" placeholder="请维护章节修改后内容" @blur="modelNameFunc2(scope.row)"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="modelContent"
label="修改理由"
align="center"
min-width="20%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.modelContent" :disabled="scope.row.disabled" placeholder="请填写修改理由"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="zrDeptIdName"
label="提出部门"
align="center" align="center"
min-width="15%"> min-width="15%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.zrDeptIdName" disabled placeholder="请选择提出人自动带入部门"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="commentText" prop="zrUserIdName"
label="会签意见" label="责任人"
min-width="35%" min-width="15%"
align="center"> align="center">
</el-table-column> <!-- <template slot-scope="scope">-->
<el-table-column <!-- <el-form-item-->
prop="commentText" <!-- style="margin-left: 0;margin-bottom:0;"-->
label="会签意见文件" <!-- >-->
min-width="35%" <!-- <el-input v-model="scope.row.zrUserIdName" v-if="scope.row.pid === '0'" placeholder="请选择责任人" disabled />-->
align="left"> <!-- </el-form-item>-->
<template slot-scope="scope"> <!-- </template>-->
<el-form-item
style="margin-left: 0;margin-bottom:0;"
>
<div v-if="scope.row.summaryList.length>0" v-for="(value,index) in scope.row.summaryList" :title="value.name" :key="index" style="margin-left: -210px;cursor: pointer;color: #00b7ee" @click="downloadFile(value)">
<!-- {{ value.name }} -->
{{value.name | ellipsis}}
</div>
<div v-else>
- -
</div>
</el-form-item>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="意见是否采纳" label="意见是否采纳"
min-width="15%" min-width="15%"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-form-item {{filterOp(scope.row.opinionsAdopted)}}
style="margin-left: 0;margin-bottom:0;" <!-- <el-form-item-->
> <!-- style="margin-left: 0;margin-bottom:0;"-->
<el-select style="margin-left: -223px;" v-model="scope.row.opinionsAdopted" filterable clearable :disabled="disabledState"> <!-- >-->
<el-option <!-- <el-select style="margin-left: -223px;" v-model="scope.row.opinionsAdopted" filterable clearable :disabled="disabledState">-->
v-for="item in opinionsAdoptedOptions" <!-- <el-option-->
:key="item.value" <!-- v-for="item in opinionsAdoptedOptions"-->
:value="item.value" <!-- :key="item.value"-->
:label="item.label" <!-- :value="item.value"-->
></el-option> <!-- :label="item.label"-->
</el-select> <!-- ></el-option>-->
</el-form-item> <!-- </el-select>-->
<!-- </el-form-item>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="opinionsAdoptedCont"
label="采纳理由"
align="center"
min-width="15%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.opinionsAdoptedCont" clearable placeholder="请选择提出人自动带入部门"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
</el-table> </el-table>
<!-- <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="(value,index) in this.summaryFileList" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile(value)">-->
<!-- &lt;!&ndash; {{ value.name }} &ndash;&gt;-->
<!-- {{value.name}}-->
<!-- </div>-->
<!-- <div v-else>-->
<!-- - - -->
<!-- </div>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
</div> </div>
</form> </form>
</template> </template>
@@ -388,6 +468,10 @@
type: Boolean, type: Boolean,
default: false default: false
}, },
fileShow: {
type: Boolean,
default: false
},
}, },
filters: { filters: {
ellipsis (value) { ellipsis (value) {
@@ -402,7 +486,8 @@
return { return {
opinionsAdoptedOptions:[ opinionsAdoptedOptions:[
{value: '1',label: '采纳'}, {value: '1',label: '采纳'},
{value: '2',label: '不采纳'}, {value: '2',label: '部分采纳'},
{value: '3',label: '不采纳'},
], ],
countryOptions:[],//国家地区 countryOptions:[],//国家地区
standSortOptions: [], // 标准类别 standSortOptions: [], // 标准类别
@@ -442,6 +527,34 @@
...mapGetters(['userInfo']) ...mapGetters(['userInfo'])
}, },
methods: { methods: {
filterOp(data){
if(!data){
return ""
}
const map = new Map();
map.set("1","采纳");
map.set("2","部分采纳");
map.set("3","不采纳");
return map.get(data)
},
// 文件预览及下载
handleFilePreview(file,type) {
let attId = ""
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
if (type === 'down') {
if (attId) {
window.open('/api/att/attFile/downloadFileForSar?fileId=' + attId)
} else {
this.$message.warning('文件不存在,下载失败')
}
} else {
this.$preview(attId)
}
},
downloadFile (data) { downloadFile (data) {
//文件id中出现了','字符,去除掉 //文件id中出现了','字符,去除掉
window.open('/api/att/attFile/downloadFileForSar?fileId=' + data.id) window.open('/api/att/attFile/downloadFileForSar?fileId=' + data.id)
@@ -470,6 +583,8 @@
}, },
}, },
mounted () { mounted () {
console.log(this.form.infoList)
console.log(this.form)
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this _this: this
}, res => { }, res => {
@@ -498,6 +613,7 @@
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师 this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
this.gkglbmOptions=res.data.GKGLBM;//归口管理部门 this.gkglbmOptions=res.data.GKGLBM;//归口管理部门
this.cbcdOptions=res.data.DEGREESTANDARD;//采标程度
this.setMap(this.standStateOptions) this.setMap(this.standStateOptions)
}) })
this.busVsFunc() this.busVsFunc()
@@ -179,7 +179,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="编制说明" prop="BZSMBUSSName" class="add-form-item form-item-disabled"> <el-form-item label="修改单" prop="BZSMBUSSName" class="add-form-item form-item-disabled">
<el-input <el-input
disabled disabled
style="display: none;" style="display: none;"
@@ -262,15 +262,15 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车VPPS中文名称" title="关联模块--乘用车VPPS中文名称" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;乘用车VPPS中文名称" title="关联模块&#45;&#45;乘用车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-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>-->
<el-form-item label="关联模块--卡车VPPS编码" title="关联模块--卡车VPPS编码" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;卡车VPPS编码" title="关联模块&#45;&#45;卡车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-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>-->
<el-form-item label="模块结构单元变型号" title="模块结构单元变型号" class="add-form-item form-item-disabled"> <!-- <el-form-item label="模块结构单元变型号" title="模块结构单元变型号" class="add-form-item form-item-disabled">-->
<el-input v-model="form.DYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号" @click.native="choiceZRR4('dybxhbuss', '模块结构单元', form.DYBXHBUSS,false)"></el-input> <!-- <el-input v-model="form.DYBXHBUSS" readonly="readonly" placeholder="选择模块结构单元变型号" @click.native="choiceZRR4('dybxhbuss', '模块结构单元', form.DYBXHBUSS,false)"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="体系类别" prop="TXLBBUSS" class="add-form-item form-item-disabled"> <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-form-item>
@@ -306,15 +306,15 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="关联模块--乘用车vpps中文名称" prop="CYCVPPSCNBUSS" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;乘用车vpps中文名称" prop="CYCVPPSCNBUSS" class="add-form-item form-item-disabled">-->
<el-input v-model="form.CYCVPPSCNBUSS" placeholder="请输入模块中文名称" clearable :disabled="true"></el-input> <!-- <el-input v-model="form.CYCVPPSCNBUSS" placeholder="请输入模块中文名称" clearable :disabled="true"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="关联模块--卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled"> <!-- <el-form-item label="关联模块&#45;&#45;卡车VPPS编码" prop="KCVPPSCNBUSS" class="add-form-item form-item-disabled">-->
<el-input v-model="form.KCVPPSCNBUSS" placeholder="关联模块--卡车VPPS编码" clearable :disabled="true"></el-input> <!-- <el-input v-model="form.KCVPPSCNBUSS" placeholder="关联模块&#45;&#45;卡车VPPS编码" clearable :disabled="true"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="模块结构单元名称" prop="DYMCBUSS" class="add-form-item form-item-disabled"> <!-- <el-form-item label="模块结构单元名称" prop="DYMCBUSS" class="add-form-item form-item-disabled">-->
<el-input v-model="form.DYMCBUSS" placeholder="模块结构单元名称" clearable :disabled="true"></el-input> <!-- <el-input v-model="form.DYMCBUSS" placeholder="模块结构单元名称" clearable :disabled="true"></el-input>-->
</el-form-item> <!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -598,23 +598,23 @@
<el-timeline-item timestamp="发布" prop="bussUser13Name" placement="top" :color="roleForm.bussUser13Name ? '#66b1ff' : ''"> <el-timeline-item timestamp="发布" prop="bussUser13Name" placement="top" :color="roleForm.bussUser13Name ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="bussUser13Name" style="margin-bottom: 0"> <el-form-item prop="bussUser13Name" style="margin-bottom: 0">
<h4>总院标准法规部产品标准工程师/各事业部标准化员</h4> <h4>总院标准法规部产品标准工程师</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.bussUser13Name" readonly="readonly" placeholder="选择总院标准法规部产品标准工程师/各事业部标准化员" @click.native="choiceZRR('bussUser13', '选择总院标准法规部产品标准工程师/各事业部标准化员', roleForm.bussUser13)"></el-input> <el-input v-model="roleForm.bussUser13Name" readonly="readonly" placeholder="选择总院标准法规部产品标准工程师" @click.native="choiceZRR('bussUser13', '选择总院标准法规部产品标准工程师', roleForm.bussUser13)"></el-input>
</div>
</el-form-item>
</el-card>
</el-timeline-item>
<el-timeline-item timestamp="抄送" prop="bussUser14Name" placement="top" :color="roleForm.pxUserName ? '#66b1ff' : ''">
<el-card>
<el-form-item prop="bussUser14Name" style="margin-bottom: 0">
<h4>抄送人员</h4>
<div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.bussUser14Name" readonly="readonly" placeholder="选择抄送人员" @click.native="choiceZRR('bussUser14', '选择标抄送人员', roleForm.bussUser14)"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-card> </el-card>
</el-timeline-item> </el-timeline-item>
<!-- <el-timeline-item timestamp="抄送" prop="bussUser14Name" placement="top" :color="roleForm.pxUserName ? '#66b1ff' : ''">-->
<!-- <el-card>-->
<!-- <el-form-item prop="bussUser14Name" style="margin-bottom: 0">-->
<!-- <h4>抄送人员</h4>-->
<!-- <div style="margin-top: 10px;width: 300px;">-->
<!-- <el-input v-model="roleForm.bussUser14Name" readonly="readonly" placeholder="选择抄送人员" @click.native="choiceZRR('bussUser14', '选择标抄送人员', roleForm.bussUser14)"></el-input>-->
<!-- </div>-->
<!-- </el-form-item>-->
<!-- </el-card>-->
<!-- </el-timeline-item>-->
</el-form> </el-form>
</el-timeline> </el-timeline>
</div> </div>
@@ -968,6 +968,7 @@
/> />
<!-- 组件树--> <!-- 组件树-->
<tree-select-new <tree-select-new
:key="key"
:multiple=false :multiple=false
:lazy=false :lazy=false
:modalShowFlag="modalShowFlag1" :modalShowFlag="modalShowFlag1"
@@ -1670,6 +1671,10 @@
// } // }
// this.modalshowflag2 = true // this.modalshowflag2 = true
// }, // },
unique(newArr) {
const res = new Map();
return newArr.filter((newArr) => !res.has(newArr) && res.set(newArr, 1));
},
checkedRole2 (data) { checkedRole2 (data) {
let idList = '' let idList = ''
let nameList = '' let nameList = ''
@@ -1691,6 +1696,13 @@
this.form.QCRBUSSID=idList; this.form.QCRBUSSID=idList;
this.form.QCRBUSS=nameList; this.form.QCRBUSS=nameList;
} }
if(data && data.length > 0){
const institutionIdList = this.unique(data.map(item => item.institutionId)).join(",")
const institutionNameList = this.unique(data.map(item => item.institutionName)).join(",")
this.form.QCDWID = institutionIdList
this.form.QCDW = institutionNameList
}
}, },
checkedRole (data) { checkedRole (data) {
if (this.type === 0) { if (this.type === 0) {
@@ -2643,7 +2655,6 @@
this.isSubmit = true this.isSubmit = true
this.saveLoading = true this.saveLoading = true
this.form.country=this.countryArr; this.form.country=this.countryArr;
this.form.standCode = this.form.standSort + ' ' + this.form.standNumber + ( this.form.standYear === '' ? '' : '-' + this.form.standYear) +' X'
var json = Object.assign(this.form, this.roleForm) var json = Object.assign(this.form, this.roleForm)
json.zrUserId = this.form.zrUserId json.zrUserId = this.form.zrUserId
json.jlUserId = this.form.jlUserId json.jlUserId = this.form.jlUserId
@@ -2,12 +2,11 @@
<!-- 标准入库流程--> <!-- 标准入库流程-->
<ProcessHeader toggle> <ProcessHeader toggle>
<template slot="proName">企标制修订-产品标准</template> <template slot="proName">企标制修订-产品标准</template>
<template slot="proNode">总院标准法规部产品标准工程师/各事业部标准化员发布</template> <template slot="proNode">总院标准法规部产品标准工程师发布</template>
</ProcessHeader> </ProcessHeader>
<div class="headerTabs"> <div class="headerTabs">
<!-- <div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">复审评分</div>-->
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div> <div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
<!-- <div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">模块信息</div>--> <!-- <div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">模块信息</div>-->
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div> <div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
</div> </div>
<div class="content"> <div class="content">
@@ -19,17 +18,31 @@
label-width="210px" label-width="210px"
> >
<div style="flex: auto;" v-show="active === '1'"> <div style="flex: auto;" v-show="active === '1'">
<formListIn <formEditList
:form = "form" :key = "formKey"
:FBGBUSSFileList = "FBGBUSSFileList" :formSub = "form"
:LSBBBUSSFileList = "LSBBBUSSFileList" :FBGBUSSFileListSub = "FBGBUSSFileList"
:BZSMBUSSFileList = "BZSMBUSSFileList" :LSBBBUSSFileListSub = "LSBBBUSSFileList"
:QTWJBUSSFileList = "QTWJBUSSFileList" :BZSMBUSSFileListSub = "BZSMBUSSFileList"
:GLWJBUSSFileList = "GLWJBUSSFileList" :QTWJBUSSFileListSub = "QTWJBUSSFileList"
:GLWJBUSSFileListSub = "GLWJBUSSFileList"
:summaryFileListSub = "summaryFileList"
:madelSubListSub = "madelSubList"
:disabledState = "disabledState" :disabledState = "disabledState"
:verifySarStandard = "verifySarStandard" :verifySarStandard = "verifySarStandard"
:fileMadelSub = "fileMadel"
:fbgDown = "false"
:opinionsShow = "true" :opinionsShow = "true"
></formListIn> :fbNode = "true"
@formCancel="formCancel"
@formSelectLawsCancel = "formSelectLawsCancel"
@formChoiceZRRListCancel = "formChoiceZRRListCancel"
@formChoiceQCDW = "formChoiceQCDW"
@formChoiceZRR1 = "formChoiceZRR1"
@formChoiceZRR2 = "formChoiceZRR2"
@formChoiceZRR3 = "formChoiceZRR3"
@formChoiceZRR4 = "formChoiceZRR4"
/>
<div> <div>
<el-collapse accordion v-model="activeName"> <el-collapse accordion v-model="activeName">
<el-collapse-item title="审批意见" name = "1"> <el-collapse-item title="审批意见" name = "1">
@@ -38,6 +51,14 @@
ref="formTongGuo" ref="formTongGuo"
:model="formTongGuo" :model="formTongGuo"
:rules="rules"> :rules="rules">
<!-- <el-form-item-->
<!-- prop="approvalOpinion"-->
<!-- >-->
<!-- <el-select @change="getRule" v-model="formTongGuo.approvalOpinion" placeholder="请审批" style="margin-bottom: 20px;">-->
<!-- <el-option label="驳回" value="1"></el-option>-->
<!-- <el-option label="通过" value="0"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item <el-form-item
prop="commentText" prop="commentText"
> >
@@ -55,85 +76,85 @@
</el-collapse> </el-collapse>
</div> </div>
</div> </div>
<!-- <div class="block" id="active2" v-show="active === '2'">--> <!-- <div class="block" id="active2" v-show="active === '2'">-->
<!-- <ProcessTitle>--> <!-- <ProcessTitle>-->
<!-- <template slot="title">模块信息</template>--> <!-- <template slot="title">模块信息</template>-->
<!-- </ProcessTitle>--> <!-- </ProcessTitle>-->
<!-- <template>--> <!-- <template>-->
<!-- <div class="prc-content-border" style="height: 66vh;position: relative;">--> <!-- <div class="prc-content-border" style="height: 66vh;position: relative;">-->
<!-- <div class="action-bar">--> <!-- <div class="action-bar">-->
<!-- <el-button type="primary" class="common-button-primary add-button" size="mini" @click="choiceZRRS('', 2, '')">--> <!-- <el-button type="primary" class="common-button-primary add-button" size="mini" @click="choiceZRRS('', 2, '')">-->
<!-- 批量编辑--> <!-- 批量编辑-->
<!-- </el-button>--> <!-- </el-button>-->
<!-- <el-button--> <!-- <el-button-->
<!-- type="primary"--> <!-- type="primary"-->
<!-- size="mini"--> <!-- size="mini"-->
<!-- class="common-button-primary add-button"--> <!-- class="common-button-primary add-button"-->
<!-- @click="createRow"--> <!-- @click="createRow"-->
<!-- >创建模块</el-button>--> <!-- >创建模块</el-button>-->
<!-- </div>--> <!-- </div>-->
<!-- <el-table--> <!-- <el-table-->
<!-- ref="selection"--> <!-- ref="selection"-->
<!-- tooltip-effect="dark"--> <!-- 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:56vh;border-bottom: 1px solid #EBEEF5;"-->
<!-- :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',--> <!-- :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',-->
<!-- fontWeight: 'bold', height: '48px'}"--> <!-- fontWeight: 'bold', height: '48px'}"-->
<!-- @selection-change="handleSelectionChange"--> <!-- @selection-change="handleSelectionChange"-->
<!-- row-key="id"--> <!-- row-key="id"-->
<!-- :data="form.modelData"--> <!-- :data="form.modelData"-->
<!-- border--> <!-- border-->
<!-- default-expand-all--> <!-- default-expand-all-->
<!-- :tree-props="{children: 'children', hasChildren: 'hasChildren'}">--> <!-- :tree-props="{children: 'children', hasChildren: 'hasChildren'}">-->
<!-- <el-table-column type="selection" min-width="5%" :selectable="checkSelect" align="center"/>--> <!-- <el-table-column type="selection" min-width="5%" :selectable="checkSelect" align="center"/>-->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- prop="modelNum"--> <!-- prop="modelNum"-->
<!-- label="序号"--> <!-- label="序号"-->
<!-- min-width="15%"--> <!-- min-width="15%"-->
<!-- align="center"--> <!-- align="center"-->
<!-- :tree-props="{children: 'children', hasChildren: 'hasChildren'}">--> <!-- :tree-props="{children: 'children', hasChildren: 'hasChildren'}">-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- label="名称"--> <!-- label="名称"-->
<!-- align="center"--> <!-- align="center"-->
<!-- min-width="30%">--> <!-- min-width="30%">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-form-item--> <!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"--> <!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >--> <!-- >-->
<!-- <el-input v-model="scope.row.modelName" :disabled="scope.row.disabled" placeholder="请维护模块名称" @blur="modelNameFunc(scope.row)"/>--> <!-- <el-input v-model="scope.row.modelName" :disabled="scope.row.disabled" placeholder="请维护模块名称" @blur="modelNameFunc(scope.row)"/>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- label="责任人"--> <!-- label="责任人"-->
<!-- min-width="15%"--> <!-- min-width="15%"-->
<!-- align="center">--> <!-- align="center">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-form-item--> <!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"--> <!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >--> <!-- >-->
<!-- <el-input v-model="scope.row.zrUserIdName" v-if="scope.row.pid === '0'" placeholder="请选择责任人" @click.native="choiceZRRS(scope.row.zrUserId, 1, scope.$index)"/>--> <!-- <el-input v-model="scope.row.zrUserIdName" v-if="scope.row.pid === '0'" placeholder="请选择责任人" @click.native="choiceZRRS(scope.row.zrUserId, 1, scope.$index)"/>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- <el-table-column label="操作" align="center" min-width="5%">--> <!-- <el-table-column label="操作" align="center" min-width="5%">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <div @click.stop style="display: inline-block">--> <!-- <div @click.stop style="display: inline-block">-->
<!-- <el-dropdown trigger="click" @command="handleCommand">--> <!-- <el-dropdown trigger="click" @command="handleCommand">-->
<!-- <i class="iconfont">&#xe61e;</i>--> <!-- <i class="iconfont">&#xe61e;</i>-->
<!-- <el-dropdown-menu slot="dropdown">--> <!-- <el-dropdown-menu slot="dropdown">-->
<!-- <el-dropdown-item :command="[scope.$index,scope.row, '新增']" v-btn-permission="''">新增</el-dropdown-item>--> <!-- <el-dropdown-item :command="[scope.$index,scope.row, '新增']" v-btn-permission="''">新增</el-dropdown-item>-->
<!-- <el-dropdown-item :command="[scope.$index,scope.row, '维护']" v-btn-permission="''">维护</el-dropdown-item>--> <!-- <el-dropdown-item :command="[scope.$index,scope.row, '维护']" v-btn-permission="''">维护</el-dropdown-item>-->
<!-- <el-dropdown-item :command="[scope.$index,scope.row, '删除']" v-btn-permission="''">删除</el-dropdown-item>--> <!-- <el-dropdown-item :command="[scope.$index,scope.row, '删除']" v-btn-permission="''">删除</el-dropdown-item>-->
<!-- </el-dropdown-menu>--> <!-- </el-dropdown-menu>-->
<!-- </el-dropdown>--> <!-- </el-dropdown>-->
<!-- </div>--> <!-- </div>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<!-- </el-table>--> <!-- </el-table>-->
<!-- </div>--> <!-- </div>-->
<!-- </template>--> <!-- </template>-->
<!-- </div>--> <!-- </div>-->
<div class="block" style="padding-top: 20px;" v-show="active === '3'"> <div class="block" style="padding-top: 20px;" v-show="active === '3'">
<div class="flow-list"> <div class="flow-list">
<el-table <el-table
@@ -208,8 +229,11 @@
<!-- 保存||提交--> <!-- 保存||提交-->
<ProcessFooter <ProcessFooter
v-show="verifySarStandard" v-show="verifySarStandard"
show-save
show-submit show-submit
:saveLoading="saveLoading"
:submitLoading="isSubmit" :submitLoading="isSubmit"
@save="handleSave"
@submit="handleSubmit" @submit="handleSubmit"
> >
</ProcessFooter> </ProcessFooter>
@@ -349,6 +373,12 @@
@checkedRole="checkedRole" @checkedRole="checkedRole"
:nodeList="nodeList" :nodeList="nodeList"
></Role-tree> ></Role-tree>
<Mechanism-tree
is-title="选择部门信息"
:is-visible.sync="modalShowFlagZRBM"
:nodeList="nodeListZRBM"
@checkedRole="drawerCheckZRBM"
/>
<!-- <el-drawer--> <!-- <el-drawer-->
<!-- :title="drawerTitle"--> <!-- :title="drawerTitle"-->
<!-- :visible.sync="modalShowFlag"--> <!-- :visible.sync="modalShowFlag"-->
@@ -553,12 +583,11 @@
</template> </template>
<script> <script>
import formListIn from './common/formListIn.vue' import formEditList from './common/formEditList.vue'
import ProcessHeader from '../../components/ProcessHeader' import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail,processCreateBuss,evaluationHisList} from "api/process"; import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail,processCreateBuss,evaluationHisList} from "api/process";
import {getEvaluationIndex} from "api/businessApi";
import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue'; import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
let Base64 = require('js-base64').Base64; let Base64 = require('js-base64').Base64;
@@ -566,7 +595,7 @@
export default { export default {
name: "bussLibraryProduct13", name: "bussLibraryProduct13",
components: { components: {
formListIn, formEditList,
ProcessHeader, ProcessHeader,
ProcessFooter, ProcessFooter,
ProcessTitle, ProcessTitle,
@@ -574,25 +603,6 @@
TreeSelectNew TreeSelectNew
}, },
data () { data () {
const numberCodeNot = (rule, value, callback) => {
let pattern = /^[1]*$/
if (!pattern.test(value)) {
return callback(new Error('评分分值只可为1分'))
} else {
callback()
}
};
const numberCode = (rule, value, callback) => {
if(value === undefined || value === ''){
return callback(new Error('评分分值不可为空'))
}
let pattern = /^[0-9]*$/
if (!pattern.test(value)) {
return callback(new Error('只能输入数字'))
} else {
callback()
}
};
const validateZrUserIdName = (rule, value, callback) => { const validateZrUserIdName = (rule, value, callback) => {
if(this.FBGBUSSFileList.length === 0){ if(this.FBGBUSSFileList.length === 0){
callback(new Error('请上传发布稿文件!')) callback(new Error('请上传发布稿文件!'))
@@ -648,7 +658,6 @@
}, },
loading: false, loading: false,
disabledState: true, disabledState: true,
taskInfo:'标准法规工程师复审',
userId:this.$store.getters.userInfo.userId, userId:this.$store.getters.userInfo.userId,
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId, pId: this.$route.query.prcId,
@@ -662,6 +671,8 @@
LSBBBUSSFileList: [], LSBBBUSSFileList: [],
QTWJBUSSFileList: [], QTWJBUSSFileList: [],
GLWJBUSSFileList: [], GLWJBUSSFileList: [],
summaryFileList: [],
madelSubList: [],
caFileList: [], caFileList: [],
FBGBJBDFileList: [], FBGBJBDFileList: [],
xgdFileList: [], xgdFileList: [],
@@ -754,6 +765,8 @@
children: 'children', children: 'children',
label: 'model' label: 'model'
}, },
modalShowFlagZRBM: false,
nodeListZRBM: [],
nodeList: [], nodeList: [],
nodeList2: [], nodeList2: [],
zrType: '', zrType: '',
@@ -764,6 +777,7 @@
children: 'children', children: 'children',
label: 'name' label: 'name'
}, },
formKey:1,
key:1, key:1,
key1:2, key1:2,
key2:3, key2:3,
@@ -794,77 +808,18 @@
countryArr:'', countryArr:'',
commentCycleDate:'', commentCycleDate:'',
form: { form: {
planId:'',
planStatus:'',
reviseStatus:'', reviseStatus:'',
standSn:'', standSn:'',
evaluationData:[],
modelData:[], modelData:[],
modelDataNameVerify:[], modelDataNameVerify:[],
modelDataZrUserVerify:[], modelDataZrUserVerify:[],
// 基础信息 summaryFile:'',
summaryFileName:'',
madelSub:'',
madelSubName:'',
country:[], country:[],
textStatus: '', // 文本状态
standInData: '0', // 标准类型
standNumber: '', // 标准编号
standNature: '', // 标准性质
signFlag: '1', // 是否需要会签
standSystem: '',// 标准体系
standSystemName: '',// 标准体系名称
gxhbq: '', // 标签
// 实施日期
ssrq: '', // 实施日期(标准文本)
xcxssrq: '', // 新车型实施日期(标准文本)
zccssrq: '', // 在产车实施日期(标准文本)
ssrqgj: '', // 实施日期(国际)
xcxssrqgj: '', // 新车型实施日期(国际)
zccssrqgj: '', // 在产车实施日期(国际)
// 文本信息
ca: '', // 草案
FBGBJBD: '', // 发布稿
xgd: '', // 修改单
bpg: '', // 报批稿
ssg: '', // 送审稿
zqyjg: '', // 征求意见稿
jdwj: '', // 解读文件
zbjbd: '', // 增补件
kwj: '', // 勘 误件
caName: '', // 草案
fbgbjbdName: '', // 发布稿
xgdName: '', // 修改单
bpgName: '', // 报批稿
ssgName: '', // 送审稿
zqyjgName: '', // 征求意见稿
jdwjName: '', // 解读文件
zbjbdName: '', // 增补件
kwjName: '', // 勘误件
glwjName: '', // 关联文件
// 适用范围
txlb: '', // 体系类别
gkdw: '', // 归口管理部门
qcdw: [], // 起草单位
wssmr: [], // 我司署名人
cysd: '', // 我司参与深度
cllx: [], // 适用车型
nylx: [],// 能源类型
sycpx: [],// 适用产品线
syrz: [], // 适用认证
zrbm: [], // 责任部门
zrgcs: [], // 责任工程师
cycvppsbm: '', // 关联模块--乘用车VPPS编码
cycvppscn: '', // 关联模块--乘用车vpps中文名称
kccvppsbm: '', // 关联模块--卡车VPPS编码
kccvppscn: '', // 关联模块--卡车vpps中文名称
dybxh: '', // 模块结构单元变型号
dymc: '', // 模块结构单元名称
// 关联信息
dtbjh: '', // 代替标准号
cbbh: '', // 采标编号
cbcd: '', // 采标程度
yybj: '', // 引用标准
bfbdtbzh: '', // 部分代替标准号
byybj: '', // 被引用标准
glwj: '', // 关联文件
xglc: '', // 相关流程
chjl: '', // 参会记录
// 基础信息 // 基础信息
standSort: '', standSort: '',
standCode: '', standCode: '',
@@ -896,6 +851,12 @@
TXLBBUSS: '', TXLBBUSS: '',
VPPSBMBUSS: '', VPPSBMBUSS: '',
VPPSCNBUSS: '', VPPSCNBUSS: '',
KCVPPSBMBUSS: '',
KCVPPSCNBUSS: '',
CYCVPPSBMBUSS: '',
CYCVPPSCNBUSS: '',
DYBXHBUSS: '',
DYMCBUSS: '',
// 关联信息 // 关联信息
DTQBBHBUSS: '', DTQBBHBUSS: '',
BDTQBBHBUSS: '', BDTQBBHBUSS: '',
@@ -904,6 +865,16 @@
GLWJBUSS: '', GLWJBUSS: '',
GLWJBUSSName: '', GLWJBUSSName: '',
XCSJBUSS: '', XCSJBUSS: '',
//流程信息
topId:'',
prcNum:'',
commentText:'',
prcName:'',
standType: '',
CBCD:'',
CYBZ:'',
YYBZ:'',
standNum:'',
}, // 标准信息 }, // 标准信息
roleForm:{ roleForm:{
hzUserId: this.$store.getters.userInfo.userId, hzUserId: this.$store.getters.userInfo.userId,
@@ -912,6 +883,8 @@
xdUserName: this.$store.getters.userInfo.userName, xdUserName: this.$store.getters.userInfo.userName,
pxUserId: this.$store.getters.userInfo.userId, pxUserId: this.$store.getters.userInfo.userId,
pxUserName: this.$store.getters.userInfo.userName, pxUserName: this.$store.getters.userInfo.userName,
fbUserId: '',
fbUserName: '',
qcUserId: '', // 多实例 qcUserId: '', // 多实例
qcUserName:'', // 多实例 qcUserName:'', // 多实例
bzhUserId:'', bzhUserId:'',
@@ -972,15 +945,6 @@
], ],
}, },
rules:{ rules:{
scoreNot:[
{required: false, validator: numberCodeNot, trigger: 'blur'},
],
score: [
{required: true, validator: numberCode, trigger: 'blur'},
{ type: 'number',min: 0, max: 10, message: '分值 0 ~ 10 分 ', trigger: 'blur' },
],
reason: [{ required: true, message: '请填写扣分理由', trigger: 'blur' }],
reasonNot:[],
commentText: [{ required: true, message: '请输入意见', trigger: 'blur' }], commentText: [{ required: true, message: '请输入意见', trigger: 'blur' }],
approvalOpinion: [{ required: true, message: '请选择审批意见', trigger: 'change' }], approvalOpinion: [{ required: true, message: '请选择审批意见', trigger: 'change' }],
zrUserIdName: [ zrUserIdName: [
@@ -1111,82 +1075,75 @@
}, },
}, },
methods: { methods: {
filterData2(){ drawerCheckZRBM(data) {
let spanOneArr = [] let idList = ''
let concatOne = 0 let nameList = ''
this.form.evaluationData.forEach((item,index)=>{//循环后端查询出来的数据(orderdata) data.forEach(item => {
if(index === 0){ // if (item.hasChild === '0') {
spanOneArr.push(1) if (nameList.length > 0) {
}else{ nameList += ','
//name 修改 idList += ','
if(item.twoIndexTitle === this.form.evaluationData[index - 1].twoIndexTitle){ //第一列需合并相同内容的字段
spanOneArr[concatOne] += 1
spanOneArr.push(0)
}else{
spanOneArr.push(1)
concatOne = index
}
} }
idList += item.id
nameList += item.name
// }
}) })
return { this.form.QCDW = nameList
one: spanOneArr, this.form.QCDWID = idList
} // if(this.form.QCDWID !== undefined && this.form.QCDWID && this.form.QCDWID.length > 0){
// this.$http.get('SarInstitution/institution/getInstitutionIdToDept', {institutionIds:this.form.QCDWID}, {
// _this: this,
// }, res=> {
// if(res){
// this.form.QCRBUSSID = res.map(item => item.id).join(",")
// this.form.QCRBUSS = res.map(item => item.name).join(",")
// }
// })
// }
this.formKey++
}, },
setScoreMin(row){ choiceQCDW(type, title, id) {
return row.scoreMin = ((row.score === undefined || row.score === '') ? '' : row.valueType === 'add' ? row.score : (row.score / 10).toFixed(1)) this.nodeListZRBM = []
if(this.form.QCDWID.length > 0){
this.nodeListZRBM = this.form.QCDWID.split(',')
}
this.drawerTitle = title
this.modalShowFlagZRBM = true
}, },
getSummaries(param) { formChoiceZRR1(type, title, id){
const { columns, data } = param; this.choiceZRR1(type, title, id)
const sums = [];
columns.forEach((column, index) => {
if (index === 3) {
sums[index] = '合计:';
return;
}else if(index === 6){
sums[index] = '';
return;
}
const values = data.map(item => Number(item[column.property]));
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr);
if (!isNaN(value)) {
return prev + curr;
} else {
return prev;
}
}, 0);
sums[index] += ' ';
} else {
sums[index] = '';
}
if(sums[index] !== '' && sums[index].indexOf(".") !== -1){
sums[index] = parseFloat(sums[index]).toFixed(1);
}
});
return sums;
}, },
objectSpanMethod({ row, column, rowIndex, columnIndex },value) { formChoiceZRR2(type,title,id,flag){
if (columnIndex === 0) { this.choiceZRR2(type,title,id,flag)
if (rowIndex === 0) { },
return { formChoiceZRR3(type, title, id){
rowspan: value.length, this.choiceZRR3(type, title, id)
colspan: 1 },
}; formChoiceZRR4(type, title, id){
} else { this.choiceZRR4(type, title, id)
return { },
rowspan: 0, formChoiceQCDW(type, title, id){
colspan: 0 this.choiceQCDW(type, title, id)
}; },
} formChoiceZRRListCancel(type, title, id){
}else if(columnIndex === 1 ) { this.choiceZRRList(type, title, id)
const _row = (this.filterData2(this.form.evaluationData).one)[rowIndex] },
const _col = _row > 0 ? 1 : 0 formSelectLawsCancel(replaceLawsNumModel,replaceLawType){
return { this.replaceLawsNumModel = replaceLawsNumModel
rowspan: _row, this.replaceLawType = replaceLawType
colspan: _col this.getReplaceLawsNumRow()
} },
formCancel (form, list1,list2,list3,list4,list5,fileMadel,fileList,fileType,list6) {
this.form = form
this.FBGBUSSFileList = list1
this.LSBBBUSSFileList = list2
this.BZSMBUSSFileList = list3
this.QTWJBUSSFileList = list4
this.GLWJBUSSFileList = list5
this.madelSubList = list6
if(fileMadel){
this.fileType = fileType
this.fileUpload(fileType)
} }
}, },
modelProp(row,index){ modelProp(row,index){
@@ -1391,13 +1348,17 @@
let mes = JSON.parse(res.mes) let mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD')) mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form this.form = mes.form
this.footFileList=this.assemble(this.form.footFile,this.form.footFileName);
this.FBGBUSSFileList=this.assemble(this.form.FBGBUSS,this.form.FBGBUSSName); this.FBGBUSSFileList=this.assemble(this.form.FBGBUSS,this.form.FBGBUSSName);
this.BZSMBUSSFileList=this.assemble(this.form.BZSMBUSS,this.form.BZSMBUSSName); this.BZSMBUSSFileList=this.assemble(this.form.BZSMBUSS,this.form.BZSMBUSSName);
this.LSBBBUSSFileList=this.assemble(this.form.LSBBBUSS,this.form.LSBBBUSSName); this.LSBBBUSSFileList=this.assemble(this.form.LSBBBUSS,this.form.LSBBBUSSName);
this.QTWJBUSSFileList=this.assemble(this.form.QTWJBUSS,this.form.QTWJBUSSName); this.QTWJBUSSFileList=this.assemble(this.form.QTWJBUSS,this.form.QTWJBUSSName);
this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName); this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName);
this.summaryFileList=this.assemble(this.form.summaryFile,this.form.summaryFileName);
this.madelSubList=this.assemble(this.form.madelSub,this.form.madelSubName);
this.roleForm = mes.roleForm this.roleForm = mes.roleForm
this.commentText = mes.commentText this.commentText = mes.commentText
this.formKey++
}) })
}else { }else {
this.form.XCSJBUSS = this.dateFormatter() this.form.XCSJBUSS = this.dateFormatter()
@@ -1484,6 +1445,7 @@
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : [] this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : [] this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : [] this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.topId = this.pid
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
this.form['id'] = bringData.id this.form['id'] = bringData.id
@@ -1694,7 +1656,19 @@
}, },
choiceZRRList (type, title, id) { choiceZRRList (type, title, id) {
this.nodeList = [] this.nodeList = []
this.nodeList.push(id) if(type === 'qcUserId'){
if ( this.roleForm.qcUserId.length > 0) {
this.nodeList2 = this.roleForm.qcUserId.split(',')
}
}else if(type === 'hqUserId'){
if ( this.roleForm.hqUserId.length > 0) {
this.nodeList2 = this.roleForm.hqUserId.split(',')
}
}else if(type === 'QCRBUSS'){
if ( this.form.QCRBUSSID.length > 0) {
this.nodeList2 = this.form.QCRBUSSID.split(',')
}
}
this.userType = type this.userType = type
this.drawerTitle = title this.drawerTitle = title
this.modalShowRoleFlag = true this.modalShowRoleFlag = true
@@ -1744,14 +1718,15 @@
this.modalShowFlag1 = true this.modalShowFlag1 = true
this.key++ this.key++
}, },
choiceZRR2 (type, title, id) { choiceZRR2 (type, title, id,flag) {
this.drawerTitle = title this.drawerTitle = title
this.modalShowFlag2 = true this.modalShowFlag2 = true
this.multipleFlag2 = flag
this.url = '' this.url = ''
this.urlChild = '' this.urlChild = ''
this.type = type
this.url="sarVppsTree/list" this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList" this.urlChild="sarVppsTree/childByList"
this.key1++
}, },
choiceZRR3 (type, title, id) { choiceZRR3 (type, title, id) {
this.drawerTitle = title this.drawerTitle = title
@@ -1760,7 +1735,6 @@
this.urlChild = '' this.urlChild = ''
this.url="sarVppsTree/list" this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList" this.urlChild="sarVppsTree/childByList"
this.key2++
}, },
choiceZRR4 (type, title, id) { choiceZRR4 (type, title, id) {
this.drawerTitle = title this.drawerTitle = title
@@ -1769,7 +1743,6 @@
this.urlChild = '' this.urlChild = ''
this.url="sarModelTree/list" this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList" this.urlChild="sarModelTree/childByList"
this.key3++
}, },
getTree () { getTree () {
this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> {
@@ -2019,25 +1992,41 @@
// this.fileList = fileList.splice(0, 1) // this.fileList = fileList.splice(0, 1)
// } // }
if (response.ok) { if (response.ok) {
const fileObj = {}
fileObj.id = file.response.data.id
fileObj.name = file.response.data.name
switch (this.fileType){ switch (this.fileType){
case 'FBGBUSS': case 'FBGBUSS':
this.FBGBUSSFileList = fileList this.FBGBUSSFileList = this.FBGBUSSFileList.filter ( item => item.response === undefined);
this.FBGBUSSFileList.push(fileObj)
break; break;
case 'BZSMBUSS' : case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList this.BZSMBUSSFileList = this.BZSMBUSSFileList.filter ( item => item.response === undefined);
this.BZSMBUSSFileList.push(fileObj)
break; break;
case 'LSBBBUSS': case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList this.LSBBBUSSFileList = this.LSBBBUSSFileList.filter ( item => item.response === undefined);
this.LSBBBUSSFileList.push(fileObj)
break; break;
case 'GLWJLAWS': case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList this.GLWJLAWSFileList = this.GLWJLAWSFileList.filter ( item => item.response === undefined);
this.GLWJLAWSFileList.push(fileObj)
break; break;
case 'GLWJBUSS': case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList 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;
case 'madelSub':
this.madelSubList = this.madelSubList.filter ( item => item.response === undefined);
this.madelSubList.push(fileObj)
break; break;
default : ; default : ;
} }
this.formKey++
this.$message({ this.$message({
showClose: true, showClose: true,
message: response.message, message: response.message,
@@ -2071,10 +2060,15 @@
case 'GLWJBUSS': case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList this.fileList=this.GLWJBUSSFileList
break; break;
case 'summaryFile':
this.fileList=this.summaryFileList
break;
case 'madelSub':
this.fileList=this.madelSubList
break;
default : ; default : ;
} }
this.fileMadel = true; this.fileMadel = true;
}, },
removeOneFile(file, fileList) { removeOneFile(file, fileList) {
@@ -2094,6 +2088,12 @@
case 'GLWJBUSS': case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList this.GLWJBUSSFileList = fileList
break; break;
case 'summaryFile':
this.summaryFileList = fileList
break;
case 'madelSub':
this.madelSubList = fileList
break;
default : ; default : ;
} }
}, },
@@ -2220,21 +2220,27 @@
fileInfoHandle(){ fileInfoHandle(){
//拼接文件名和id 提交到流程Activity //拼接文件名和id 提交到流程Activity
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",") this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.id).join(",")
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",") this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",")
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",") this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.id).join(",")
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",") this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",")
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",") this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.id).join(",")
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",") this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",") this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.id).join(",")
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",") this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",")
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",") this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).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(",")
this.form.madelSub=this.madelSubList.map(item => item.id).join(",")
this.form.madelSubName=this.madelSubList.map(item => item.name).join(",")
}, },
// 删除方法 // 删除方法
deletedId(data, ids) { deletedId(data, ids) {
@@ -2310,7 +2316,7 @@
} }
}, },
handleSubmit() { handleSubmit() {
this.getRule() // this.getRule()
// const val= this.form.country; // const val= this.form.country;
// if (val !== '' && val !== null && typeof (val) !== 'undefined') { // if (val !== '' && val !== null && typeof (val) !== 'undefined') {
// if (val instanceof Array) { // if (val instanceof Array) {
@@ -2321,14 +2327,13 @@
// } else if (val === '') { // } else if (val === '') {
// this.form.country = [] // this.form.country = []
// } // }
this.$refs['form'].validate((valid) => { this.fileInfoHandle()
if (valid) {
this.$refs['formTongGuo'].validate((valid) => { this.$refs['formTongGuo'].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
this.saveLoading = true
this.form.commentText = this.formTongGuo.commentText this.form.commentText = this.formTongGuo.commentText
this.form.approvalOpinion = this.formTongGuo.approvalOpinion this.form.approvalOpinion = this.formTongGuo.approvalOpinion
this.form.topId = this.pId
const json = JSON.stringify(this.form); const json = JSON.stringify(this.form);
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
@@ -2338,12 +2343,10 @@
_this: this _this: this
}, res => { }, res => {
if (res.success) { if (res.success) {
this.$message.success(res.message) // this.$message.success(res.message)
// 流程提交之后,应该流转至待办任务页面 // 流程提交之后,应该流转至待办任务页面
this.isSubmit = false this.isSubmit = false
this.saveLoading = false
this.processCreateBuss(json) this.processCreateBuss(json)
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
// if(this.formTongGuo.approvalOpinion === '1'){ // if(this.formTongGuo.approvalOpinion === '1'){
// this.$message.warning("驳回成功") // this.$message.warning("驳回成功")
// this.isSubmit = false // this.isSubmit = false
@@ -2357,8 +2360,6 @@
} }
}) })
}}) }})
}
})
}, },
/** /**
* @description: 流程入库 * @description: 流程入库
@@ -2370,8 +2371,15 @@
processCreateBuss(_formData).then(res => { processCreateBuss(_formData).then(res => {
if (res.result === '操作成功' || res.data === '入库成功') { if (res.result === '操作成功' || res.data === '入库成功') {
this.$message.success(res.data) this.$message.success(res.data)
const planForm = {}
planForm.id = this.form.planId
planForm.planStatus = '4'
this.$http.post("esRevisePlan/es-revise-plan/modPlan", planForm, {
_this: this
}, res => {
this.submitLoading = false this.submitLoading = false
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
})
} else { } else {
this.$message.warning(res.message) this.$message.warning(res.message)
this.isSubmit = false this.isSubmit = false
@@ -2408,12 +2416,13 @@
getFormFieldList (item) { getFormFieldList (item) {
this.$nextTick(() => { this.$nextTick(() => {
this.form = JSON.parse(JSON.stringify(item)) this.form = JSON.parse(JSON.stringify(item))
this.form.evaluationData = [] this.form.topId = this.pId
// this.getEvaluation()
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
this.form.issueTime = this.dateFormatter()
this.form['id'] = item.id this.form['id'] = item.id
this.getStandInfoByReviseStatus() this.getStandInfoByReviseStatus()
this.formKey++
}) })
}, },
assemble(ids,names){ assemble(ids,names){
@@ -2426,28 +2435,6 @@
return list; return list;
}, },
getEvaluation() {
return new Promise((resolve, reject) => {
getEvaluationIndex({
indexType: 'quality'
}).then(res => {
if (res) {
const evalList = []
res.data.forEach(item =>{
item.score = ''
item.scoreMin = ''
item.reason = ''
item.userId = this.userId
item.processNode = this.taskInfo
evalList.push(item)
})
this.form.evaluationData = evalList
this.$forceUpdate()
}
}).catch(e => {
})
})
},
getData() { getData() {
if(this.taskIds && this.pId){ if(this.taskIds && this.pId){
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
@@ -2470,26 +2457,57 @@
this.LSBBBUSSFileList=this.assemble(processForm.LSBBBUSS,processForm.LSBBBUSSName); this.LSBBBUSSFileList=this.assemble(processForm.LSBBBUSS,processForm.LSBBBUSSName);
this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName); this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName);
this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName); this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName);
this.summaryFileList=this.assemble(processForm.summaryFile,processForm.summaryFileName);
this.madelSubList=this.assemble(processForm.madelSub,processForm.madelSubName);
this.formKey++
} }
}).catch(e => { }).catch(e => {
}) })
}) })
} }
}, },
getEvaluationHisList() {
if(this.pId){
return new Promise((resolve, reject) => {
evaluationHisList({
pId: this.pId
}).then(res => {
if (res) {
}
}).catch(e => {
})
})
}
},
regDate(data){
if(this.form.DTQBBHBUSS !== undefined && this.form.DTQBBHBUSS !== null && this.form.DTQBBHBUSS.indexOf(data) !== -1){
data = data + ' X'
}
return data
},
getStandInfoByReviseStatus() { getStandInfoByReviseStatus() {
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:this.form.reviseStatus}, { let date = new Date();
let year = date.getFullYear();
if(this.form.reviseStatus === '2'){
this.form.standSn = this.form.standNum
this.form.standNumber = this.form.standNum
this.form.standYear = this.regDate(year)
this.form.standCode = this.form.standSort + ' ' + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
}else {
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss2_'+this.form.reviseStatus}, {
_this: this _this: this
}, res => { }, res => {
const obj = res.data const obj = res.data
let standSn = (obj === null || obj.newStandSn === null) ? '001' : obj.newStandSn let standSn = (obj === null || obj.newStandSn === null) ? '2280' : obj.newStandSn
let date = new Date();
let year = date.getFullYear();
this.form.standSn = standSn this.form.standSn = standSn
this.form.standNumber = standSn this.form.standNumber = standSn
this.form.standYear = this.form.reviseStatus === '2' ? (year + ' X') : year // 待带入立项标准 this.form.standYear = year // 待带入立项标准
this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear ) this.form.standCode = this.form.standSort + ' ' + standSn + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
}, e => { }, e => {
}) })
}
}, },
processTable () { processTable () {
this.$nextTick(() => { this.$nextTick(() => {
@@ -2565,15 +2583,9 @@
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/styles/style'; @import '~@/assets/styles/style';
/deep/ .column1{
font-size: 18px !important;
}
/deep/ .el-input__suffix{ /deep/ .el-input__suffix{
display: none !important; display: none !important;
} }
/deep/ #active1 .el-form-item__content{
margin-left: 0px !important;
}
/deep/ #active2 .el-form-item__content{ /deep/ #active2 .el-form-item__content{
margin-left: 0px !important; margin-left: 0px !important;
} }
@@ -600,6 +600,7 @@
</el-drawer> </el-drawer>
<!-- 组件树--> <!-- 组件树-->
<tree-select-new <tree-select-new
:key="key"
:multiple=false :multiple=false
:lazy=false :lazy=false
:modalShowFlag="modalShowFlag1" :modalShowFlag="modalShowFlag1"
@@ -1293,6 +1294,13 @@
this.form.QCRBUSS=nameList; this.form.QCRBUSS=nameList;
this.formKey++ this.formKey++
} }
if(data && data.length > 0){
const institutionIdList = this.unique(data.map(item => item.institutionId)).join(",")
const institutionNameList = this.unique(data.map(item => item.institutionName)).join(",")
this.form.QCDWID = institutionIdList
this.form.QCDW = institutionNameList
}
}, },
checkedRole (data) { checkedRole (data) {
if (this.type === 0) { if (this.type === 0) {
@@ -1922,11 +1930,11 @@
var fileSuffix = filename.substring(index1, index2) var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名 // const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式 // 判断上传文件格式
this.FBGBUSSFileList = this.FBGBUSSFileList.filter ( item => item.response === undefined && item.raw === undefined); // this.FBGBUSSFileList = this.FBGBUSSFileList.filter ( item => item.response === undefined && item.raw === undefined);
if(this.fileType === 'FBGBUSS' && this.FBGBUSSFileList && this.FBGBUSSFileList.length === 1){ // if(this.fileType === 'FBGBUSS' && this.FBGBUSSFileList && this.FBGBUSSFileList.length === 1){
this.$message.error('文件限制只可上传一个') // this.$message.error('文件限制只可上传一个')
return false // return false
} // }
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') { if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true return true
} else { } else {
@@ -7,7 +7,7 @@
<div class="headerTabs"> <div class="headerTabs">
<!-- <div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">会签评分</div>--> <!-- <div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">会签评分</div>-->
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div> <div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
<!-- <div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">模块信息</div>--> <div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">会签意见</div>
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div> <div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
</div> </div>
<div class="content"> <div class="content">
@@ -30,7 +30,7 @@
:verifySarStandard = "verifySarStandard"></formList> :verifySarStandard = "verifySarStandard"></formList>
<div> <div>
<el-collapse accordion v-model="activeName"> <el-collapse accordion v-model="activeName">
<el-collapse-item title="会签意见" name = "1"> <el-collapse-item title="审批意见" name = "1">
<div style="margin: 0;"> <div style="margin: 0;">
<el-form <el-form
ref="formTongGuo" ref="formTongGuo"
@@ -44,34 +44,34 @@
<!-- <el-option label="通过" value="0"></el-option>--> <!-- <el-option label="通过" value="0"></el-option>-->
<!-- </el-select>--> <!-- </el-select>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="会签意见文件" prop="summaryName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="会签意见文件" prop="summaryName" class="add-form-item form-item-disabled">-->
<el-input <!-- <el-input-->
disabled <!-- disabled-->
style="display: none;" <!-- style="display: none;"-->
v-model="form.summaryName" <!-- v-model="form.summaryName"-->
clearable <!-- clearable-->
></el-input> <!-- ></el-input>-->
<div style="display: flex;justify-content: left;margin-top: 5px;padding-left: 20px;"> <!-- <div style="display: flex;justify-content: left;margin-top: 5px;padding-left: 20px;">-->
<div style="width: 30%;"> <!-- <div style="width: 30%;">-->
<div v-for="(item,index) in summaryList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass"> <!-- <div v-for="(item,index) in summaryList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">-->
<span style="width: 80%;" @click="handleFilePreview2(item,'preview')">{{ item.name }}</span> <!-- <span style="width: 80%;" @click="handleFilePreview2(item,'preview')">{{ item.name }}</span>-->
<span style="width: 20%;margin-left: 15px;"> <!-- <span style="width: 20%;margin-left: 15px;">-->
<el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview2(item,'down')"></el-button> <!-- <el-button type="primary" size="mini" plain icon="el-icon-download" @click="handleFilePreview2(item,'down')"></el-button>-->
</span> <!-- </span>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div style="width: 20%;"> <!-- <div style="width: 20%;">-->
<el-button <!-- <el-button-->
type="primary" <!-- type="primary"-->
class="common-button-primary" <!-- class="common-button-primary"-->
size="mini" <!-- size="mini"-->
style="margin-top: 6px; float: left;" <!-- style="margin-top: 6px; float: left;"-->
@click="fileUpload('summary')"> <!-- @click="fileUpload('summary')">-->
<i class="el-icon-upload"></i> <!-- <i class="el-icon-upload"></i>-->
</el-button> <!-- </el-button>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item <el-form-item
prop="commentText" prop="commentText"
> >
@@ -89,85 +89,133 @@
</el-collapse> </el-collapse>
</div> </div>
</div> </div>
<!-- <div class="block" id="active2" v-show="active === '2'">--> <div class="block" id="active3" v-show="active === '2'">
<!-- <ProcessTitle>--> <ProcessTitle>
<!-- <template slot="title">模块信息</template>--> <template slot="title">条款信息</template>
<!-- </ProcessTitle>--> </ProcessTitle>
<!-- <template>--> <template>
<!-- <div class="prc-content-border" style="height: 66vh;position: relative;">--> <div class="prc-content-border" style="height: 66vh;position: relative;">
<!-- <div class="action-bar">--> <div class="action-bar">
<!-- <el-button type="primary" class="common-button-primary add-button" size="mini" @click="choiceZRRS('', 2, '')">--> <!-- <el-button type="primary" class="common-button-primary add-button" size="mini" @click="choiceZRRS('', 2, '')">-->
<!-- 批量编辑--> <!-- 批量编辑-->
<!-- </el-button>--> <!-- </el-button>-->
<!-- <el-button--> <el-button
<!-- type="primary"--> type="primary"
<!-- size="mini"--> size="mini"
<!-- class="common-button-primary add-button"--> class="common-button-primary add-button"
<!-- @click="createRow"--> @click="createRow"
<!-- >创建模块</el-button>--> >创建条款</el-button>
<!-- </div>--> </div>
<!-- <el-table--> <el-table
<!-- ref="selection"--> ref="selection"
<!-- tooltip-effect="dark"--> 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:56vh;border-bottom: 1px solid #EBEEF5;"
<!-- :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',--> :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
<!-- fontWeight: 'bold', height: '48px'}"--> fontWeight: 'bold', height: '48px'}"
<!-- @selection-change="handleSelectionChange"--> @selection-change="handleSelectionChange"
<!-- row-key="id"--> row-key="id"
<!-- :data="form.modelData"--> :data="form.modelData"
<!-- border--> border
<!-- default-expand-all--> default-expand-all>
<!-- :tree-props="{children: 'children', hasChildren: 'hasChildren'}">--> <!-- <el-table-column type="selection" min-width="5%" :selectable="checkSelect" align="center"/>-->
<!-- <el-table-column type="selection" min-width="5%" :selectable="checkSelect" align="center"/>--> <el-table-column
<!-- <el-table-column--> label="序号"
<!-- prop="modelNum"--> min-width="5%"
<!-- label="序号"--> align="center">
<!-- min-width="15%"--> <template slot-scope="scope">
<!-- align="center"--> {{scope.$index + 1}}
<!-- :tree-props="{children: 'children', hasChildren: 'hasChildren'}">--> </template>
<!-- </el-table-column>--> </el-table-column>
<!-- <el-table-column--> <el-table-column
<!-- label="名称"--> prop="modelNum"
<!-- align="center"--> label="条款号"
<!-- min-width="30%">--> min-width="12%"
<!-- <template slot-scope="scope">--> align="center"
<!-- <el-form-item--> >
<!-- style="margin-left: 0;margin-bottom:0;"--> <template slot-scope="scope">
<!-- >--> <el-input v-model="scope.row.modelNum" :title="scope.row.modelNum" placeholder="请填写条款号"/>
<!-- <el-input v-model="scope.row.modelName" :disabled="scope.row.disabled" placeholder="请维护模块名称" @blur="modelNameFunc(scope.row)"/>--> </template>
<!-- </el-form-item>--> </el-table-column>
<!-- </template>--> <el-table-column
<!-- </el-table-column>--> label="修改前"
<!-- <el-table-column--> align="center"
<!-- label="责任人"--> min-width="20%">
<!-- min-width="15%"--> <template slot-scope="scope">
<!-- align="center">--> <el-form-item
<!-- <template slot-scope="scope">--> style="margin-left: 0;margin-bottom:0;"
<!-- <el-form-item--> >
<!-- style="margin-left: 0;margin-bottom:0;"--> <el-input v-model="scope.row.modelUpdBefore" :title="scope.row.modelUpdBefore" :disabled="scope.row.disabled" placeholder="请填写章节修改前内容"/>
<!-- >--> </el-form-item>
<!-- <el-input v-model="scope.row.zrUserIdName" v-if="scope.row.pid === '0'" placeholder="请选择责任人" @click.native="choiceZRRS(scope.row.zrUserId, 1, scope.$index)"/>--> </template>
<!-- </el-form-item>--> </el-table-column>
<!-- </template>--> <el-table-column
<!-- </el-table-column>--> label="修改后"
<!-- <el-table-column label="操作" align="center" min-width="5%">--> align="center"
<!-- <template slot-scope="scope">--> min-width="20%">
<!-- <div @click.stop style="display: inline-block">--> <template slot-scope="scope">
<!-- <el-dropdown trigger="click" @command="handleCommand">--> <el-form-item
<!-- <i class="iconfont">&#xe61e;</i>--> style="margin-left: 0;margin-bottom:0;"
<!-- <el-dropdown-menu slot="dropdown">--> >
<!-- <el-dropdown-item :command="[scope.$index,scope.row, '新增']" v-btn-permission="''">新增</el-dropdown-item>--> <el-input v-model="scope.row.modelUpdAfter" :title="scope.row.modelUpdAfter" :disabled="scope.row.disabled" placeholder="请填写章节修改后内容"/>
<!-- <el-dropdown-item :command="[scope.$index,scope.row, '维护']" v-btn-permission="''">维护</el-dropdown-item>--> </el-form-item>
<!-- <el-dropdown-item :command="[scope.$index,scope.row, '删除']" v-btn-permission="''">删除</el-dropdown-item>--> </template>
<!-- </el-dropdown-menu>--> </el-table-column>
<!-- </el-dropdown>--> <el-table-column
<!-- </div>--> label="修改理由"
<!-- </template>--> align="center"
<!-- </el-table-column>--> min-width="20%">
<!-- </el-table>--> <template slot-scope="scope">
<!-- </div>--> <el-form-item
<!-- </template>--> style="margin-left: 0;margin-bottom:0;"
<!-- </div>--> >
<el-input v-model="scope.row.modelContent" :disabled="scope.row.disabled" placeholder="请填写修改理由"/>
</el-form-item>
</template>
</el-table-column>
<el-table-column
prop="zrDeptIdName"
label="提出部门"
align="center"
min-width="15%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.zrDeptIdName" disabled placeholder="请选择提出人自动带入部门"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="zrUserIdName"
label="责任人"
min-width="15%"
align="center">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.zrUserIdName" v-if="scope.row.pid === '0'" placeholder="请选择责任人" disabled />-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column label="操作" align="center" min-width="5%">
<template slot-scope="scope">
<div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown">
<!-- <el-dropdown-item :command="[scope.$index,scope.row, '新增']" v-btn-permission="''">新增</el-dropdown-item>-->
<!-- <el-dropdown-item :command="[scope.$index,scope.row, '维护']" v-btn-permission="''">维护</el-dropdown-item>-->
<el-dropdown-item :command="[scope.$index,scope.row, '删除']" v-btn-permission="''">删除</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</template>
</el-table-column>
</el-table>
</div>
</template>
</div>
<div class="block" style="padding-top: 20px;" v-show="active === '3'"> <div class="block" style="padding-top: 20px;" v-show="active === '3'">
<div class="flow-list"> <div class="flow-list">
<el-table <el-table
@@ -694,6 +742,8 @@
prcNum: this.$route.query.prcNum, prcNum: this.$route.query.prcNum,
prcName: this.$route.query.prcName, prcName: this.$route.query.prcName,
detailData: [], detailData: [],
summary:'',
summaryName:'',
fileList: [], fileList: [],
summaryList: [], summaryList: [],
FBGBUSSFileList: [], FBGBUSSFileList: [],
@@ -833,6 +883,9 @@
countryArr:'', countryArr:'',
commentCycleDate:'', commentCycleDate:'',
form: { form: {
planId:'',
planStatus:'',
reviseStatus:'',
evaluationData:[], evaluationData:[],
modelData:[], modelData:[],
modelDataNameVerify:[], modelDataNameVerify:[],
@@ -870,6 +923,12 @@
TXLBBUSS: '', TXLBBUSS: '',
VPPSBMBUSS: '', VPPSBMBUSS: '',
VPPSCNBUSS: '', VPPSCNBUSS: '',
KCVPPSBMBUSS: '',
KCVPPSCNBUSS: '',
CYCVPPSBMBUSS: '',
CYCVPPSCNBUSS: '',
DYBXHBUSS: '',
DYMCBUSS: '',
// 关联信息 // 关联信息
DTQBBHBUSS: '', DTQBBHBUSS: '',
BDTQBBHBUSS: '', BDTQBBHBUSS: '',
@@ -878,6 +937,10 @@
GLWJBUSS: '', GLWJBUSS: '',
GLWJBUSSName: '', GLWJBUSSName: '',
XCSJBUSS: '', XCSJBUSS: '',
CBCD:'',
CYBZ:'',
YYBZ:'',
standNum:'',
}, // 标准信息 }, // 标准信息
roleForm:{ roleForm:{
hzUserId: this.$store.getters.userInfo.userId, hzUserId: this.$store.getters.userInfo.userId,
@@ -886,6 +949,8 @@
xdUserName: this.$store.getters.userInfo.userName, xdUserName: this.$store.getters.userInfo.userName,
pxUserId: this.$store.getters.userInfo.userId, pxUserId: this.$store.getters.userInfo.userId,
pxUserName: this.$store.getters.userInfo.userName, pxUserName: this.$store.getters.userInfo.userName,
fbUserId: '',
fbUserName: '',
qcUserId: '', // 多实例 qcUserId: '', // 多实例
qcUserName:'', // 多实例 qcUserName:'', // 多实例
bzhUserId:'', bzhUserId:'',
@@ -990,6 +1055,9 @@
issueTime: [ issueTime: [
{ required: false, message: '请选择企标发布日期', trigger: 'change'} { required: false, message: '请选择企标发布日期', trigger: 'change'}
], ],
putTime: [
{ required: true, message: '请选择企标实施日期', trigger: 'change' }
],
FBGBUSSName: [ FBGBUSSName: [
{ required: true, message: '请上传发布稿',validator: validateFBGBUSS, trigger: 'blur' } { required: true, message: '请上传发布稿',validator: validateFBGBUSS, trigger: 'blur' }
], ],
@@ -1190,6 +1258,16 @@
row.disabled = true row.disabled = true
} }
}, },
modelNameFunc1(row){
if(row.modelUpdateBefore && row.modelUpdateBefore !== ''){
row.disabled1 = true
}
},
modelNameFunc2(row){
if(row.modelUpdateAfter && row.modelUpdateAfter !== ''){
row.disabled2 = true
}
},
//判断是否可选 //判断是否可选
checkSelect (row,index) { checkSelect (row,index) {
let isChecked = true; let isChecked = true;
@@ -1201,8 +1279,6 @@
return isChecked return isChecked
}, },
handleDelete(val, row) { handleDelete(val, row) {
console.log(row)
console.log(this.form.modelData)
// 模态框删除按钮 // 模态框删除按钮
this.$confirm("是否确认删除本条数据?", "提示", { this.$confirm("是否确认删除本条数据?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
@@ -1210,10 +1286,10 @@
type: "info" type: "info"
}).then(() => { }).then(() => {
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据 // 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
const ids = [] // const ids = []
ids.push(row.id) // ids.push(row.id)
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids)) // this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
console.log(this.form.modelData) this.form.modelData.splice(val,1)
this.$message({ this.$message({
message: "删除成功", message: "删除成功",
type: "success", type: "success",
@@ -1240,19 +1316,54 @@
// } // }
const list = { const list = {
id: this.form.modelData.length + 1, id: this.form.modelData.length + 1,
modelNum: this.form.modelData.length + 1+'', modelNum: '',
orderNum: this.form.modelData.length + 1, // orderNum为新创建行的索引 orderNum: this.form.modelData.length + 1, // orderNum为新创建行的索引
pid: '0', pid: '0',
modelIndex: this.form.modelData.length, modelIndex: this.form.modelData.length,
disabled: false, disabled1: false,
disabled2: false,
modelName: "", modelName: "",
modelUpdBefore: "",
modelUpdAfter: "",
modelContent: "", modelContent: "",
zrUserId:"", zrUserId:this.$store.getters.userInfo.userId,
zrUserIdName:"", zrUserIdName:this.$store.getters.userInfo.userName,
zrDeptId:this.$store.getters.userInfo.institutionId,
zrDeptIdName:this.$store.getters.userInfo.institutionName,
children:[], children:[],
}; };
this.form.modelData.push(list); this.form.modelData.push(list);
}, },
// createRow() {
// // 创建行
// // if (this.diaTable.length >= 6) { // 判断当前表格是否可继续创建
// // this.$message({
// // message: "超出数量,无法创建",
// // type: "info",
// // duration: 2000
// // });
// // return false;
// // }
// const list = {
// id: this.form.modelData.length + 1,
// modelNum: this.form.modelData.length + 1+'',
// orderNum: this.form.modelData.length + 1, // orderNum为新创建行的索引
// pid: '0',
// modelIndex: this.form.modelData.length,
// disabled1: false,
// disabled2: false,
// modelName: "",
// modelUpdBefore: "",
// modelUpdAfter: "",
// modelContent: "",
// zrUserId:this.$store.getters.userInfo.userId,
// zrUserIdName:this.$store.getters.userInfo.userName,
// zrDeptId:this.$store.getters.userInfo.institutionId,
// zrDeptIdName:this.$store.getters.userInfo.institutionName,
// children:[],
// };
// this.form.modelData.push(list);
// },
createChildRow(index,row) { createChildRow(index,row) {
// 创建行 // 创建行
// if (this.diaTable.length >= 6) { // 判断当前表格是否可继续创建 // if (this.diaTable.length >= 6) { // 判断当前表格是否可继续创建
@@ -1269,14 +1380,20 @@
orderNum: row.children.length + 1, // orderNum为新创建行的索引 orderNum: row.children.length + 1, // orderNum为新创建行的索引
pid: row.modelNum, pid: row.modelNum,
modelIndex: row.children.length, modelIndex: row.children.length,
disabled: false, disabled1: false,
disabled2: false,
modelName: "", modelName: "",
modelUpdBefore: "",
modelUpdAfter: "",
modelContent: "", modelContent: "",
zrUserId:"", zrUserId:this.$store.getters.userInfo.userId,
zrUserIdName:"", zrUserIdName:this.$store.getters.userInfo.userName,
zrDeptId:this.$store.getters.userInfo.institutionId,
zrDeptIdName:this.$store.getters.userInfo.institutionName,
children:[], children:[],
}; };
row.children.push(list) // row.children.push(list)
row.push(list)
}, },
dateFormatter () { dateFormatter () {
//默认返回yyyy-MM-dd HH-mm-ss //默认返回yyyy-MM-dd HH-mm-ss
@@ -1374,7 +1491,7 @@
this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName); this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName);
this.summaryList=this.assemble(mes.summary,mes.summaryName); this.summaryList=this.assemble(mes.summary,mes.summaryName);
this.roleForm = mes.roleForm this.roleForm = mes.roleForm
this.commentText = mes.commentText this.formTongGuo.commentText = mes.commentText
}) })
}else { }else {
this.form.XCSJBUSS = this.dateFormatter() this.form.XCSJBUSS = this.dateFormatter()
@@ -1961,6 +2078,23 @@
}) })
}) })
}, },
handleFilePreview2(file,type) {
let attId = ""
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
if (type === 'down') {
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
} else {
this.$preview(attId)
}
},
// 文件预览及下载 // 文件预览及下载
handleFilePreview(file) { handleFilePreview(file) {
const attId = file.response.data.id const attId = file.response.data.id
@@ -1993,7 +2127,7 @@
importFileSuccess (response, file,fileList) { importFileSuccess (response, file,fileList) {
// 上传成功后判断是否是两条数据是的话替换掉旧数据 // 上传成功后判断是否是两条数据是的话替换掉旧数据
// if (fileList.length > 1) { // if (fileList.length > 1) {
// this.fileList = fileList.splice(0, 1) // fileList = fileList.splice(0, 1)
// } // }
if (response.ok) { if (response.ok) {
const fileObj = {} const fileObj = {}
@@ -2189,6 +2323,7 @@
// if(item.country !== undefined && item.country !== null){ // if(item.country !== undefined && item.country !== null){
// this.sarStandardsInfoEO.country = item.country.split(","); // this.sarStandardsInfoEO.country = item.country.split(",");
// } // }
this.summary=this.summaryList.map(item => item.id).join(",") this.summary=this.summaryList.map(item => item.id).join(",")
this.summaryName=this.summaryList.map(item => item.name).join(",") this.summaryName=this.summaryList.map(item => item.name).join(",")
@@ -2198,12 +2333,15 @@
_formData.append('createUser', this.$store.getters.userInfo.userId) _formData.append('createUser', this.$store.getters.userInfo.userId)
_formData.append('createUserName', this.$store.getters.userInfo.uName) _formData.append('createUserName', this.$store.getters.userInfo.uName)
_formData.append('prcType', 'buss2') _formData.append('prcType', 'buss2')
_formData.append('prcName', '企标制修订-产品标准') _formData.append('prcName', '企标制修订-技术标准')
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
prcNum:this.prcNum,
summary: this.summary,
summaryName: this.summaryName,
taskInfo: this.taskInfo, taskInfo: this.taskInfo,
form: this.form, form: this.form,
roleForm: this.roleForm, roleForm: this.roleForm,
commentText: this.commentText commentText: this.formTongGuo.commentText
})) }))
saveTaskFirst(_formData).then(res => { saveTaskFirst(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -2306,7 +2444,7 @@
} }
}, },
handleSubmit() { handleSubmit() {
this.getRule() // this.getRule()
// const val= this.form.country; // const val= this.form.country;
// if (val !== '' && val !== null && typeof (val) !== 'undefined') { // if (val !== '' && val !== null && typeof (val) !== 'undefined') {
// if (val instanceof Array) { // if (val instanceof Array) {
@@ -2328,19 +2466,8 @@
this.summaryName=this.summaryList.map(item => item.name).join(",") this.summaryName=this.summaryList.map(item => item.name).join(",")
this.form.commentText = this.formTongGuo.commentText this.form.commentText = this.formTongGuo.commentText
this.form.approvalOpinion = this.formTongGuo.approvalOpinion // this.form.approvalOpinion = this.formTongGuo.approvalOpinion
// 会签意见存储 // 会签意见存储
const infoList = []
const maryList=this.assemble(this.summary,this.summaryName);
const info = {}
info.userId = this.userId
info.userName = this.userName
info.commentText = this.formTongGuo.commentText
info.summary = this.summary
info.summaryName = this.summaryName
info.summaryList = maryList
infoList.push(info)
this.form.infoList = infoList
const json = JSON.stringify(this.form); const json = JSON.stringify(this.form);
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds, taskIds: this.taskIds,
@@ -2401,7 +2528,7 @@
getFormFieldList (item) { getFormFieldList (item) {
this.$nextTick(() => { this.$nextTick(() => {
this.form = JSON.parse(JSON.stringify(item)) this.form = JSON.parse(JSON.stringify(item))
// this.getEvaluation() this.getEvaluation()
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
this.form['id'] = item.id this.form['id'] = item.id
@@ -2409,12 +2536,13 @@
}, },
assemble(ids,names){ assemble(ids,names){
let list= new Array(); let list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(','); let idArray=ids.split(',');
let nameArray=names.split(','); let nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){ for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]}); list.push({id:idArray[i],name:nameArray[i]});
} }
}
return list; return list;
}, },
getEvaluation() { getEvaluation() {
@@ -2463,7 +2591,6 @@
this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName); this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName);
this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName); this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName);
this.summaryList=this.assemble(processForm.summary,processForm.summaryName); this.summaryList=this.assemble(processForm.summary,processForm.summaryName);
} }
}).catch(e => { }).catch(e => {
}) })
@@ -2502,6 +2629,7 @@
}, },
}, },
mounted () { mounted () {
console.log(this.$store.getters.userInfo)
this.getTaskId() this.getTaskId()
this.getData() this.getData()
this.processTable() this.processTable()
@@ -2556,6 +2684,10 @@
/deep/ #active2 .el-form-item__content{ /deep/ #active2 .el-form-item__content{
margin-left: 0px !important; margin-left: 0px !important;
} }
/deep/ #active3 .el-form-item__content{
margin-left: 0px !important;
}
.bzrkStep1 { .bzrkStep1 {
/deep/.el-drawer__container { /deep/.el-drawer__container {
.prc-content-border { .prc-content-border {
@@ -34,6 +34,10 @@
@formSelectLawsCancel = "formSelectLawsCancel" @formSelectLawsCancel = "formSelectLawsCancel"
@formChoiceZRRListCancel = "formChoiceZRRListCancel" @formChoiceZRRListCancel = "formChoiceZRRListCancel"
@formChoiceQCDW = "formChoiceQCDW" @formChoiceQCDW = "formChoiceQCDW"
@formChoiceZRR1 = "formChoiceZRR1"
@formChoiceZRR2 = "formChoiceZRR2"
@formChoiceZRR3 = "formChoiceZRR3"
@formChoiceZRR4 = "formChoiceZRR4"
/> />
<ProcessTitle> <ProcessTitle>
<template slot="title">意见信息</template> <template slot="title">意见信息</template>
@@ -46,59 +50,96 @@
style="width: 100%;margin-bottom: 20px;overflow-y:auto;height:auto;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', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="handleSelectionChange"
row-key="id" row-key="id"
:data="form.infoList" :data="form.infoList"
border border
default-expand-all> default-expand-all>
<el-table-column <el-table-column
label="序号" label="序号"
min-width="15%" min-width="5%"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.$index + 1}} {{scope.$index + 1}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="userName" prop="modelNum"
label="会签人" label="条款号"
min-width="8%"
align="center"
>
</el-table-column>
<el-table-column
prop="modelUpdBefore"
label="修改前"
align="center"
min-width="20%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.modelUpdBefore" :title="scope.row.modelUpdBefore" :disabled="scope.row.disabled" placeholder="请维护章节修改前内容" @blur="modelNameFunc1(scope.row)"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="modelUpdAfter"
label="修改后"
align="center"
min-width="20%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.modelUpdAfter" :title="scope.row.modelUpdAfter" :disabled="scope.row.disabled" placeholder="请维护章节修改后内容" @blur="modelNameFunc2(scope.row)"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="modelContent"
label="修改理由"
align="center"
min-width="20%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.modelContent" :disabled="scope.row.disabled" placeholder="请填写修改理由"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column>
<el-table-column
prop="zrDeptIdName"
label="提出部门"
align="center" align="center"
min-width="15%"> min-width="15%">
<!-- <template slot-scope="scope">-->
<!-- <el-form-item-->
<!-- style="margin-left: 0;margin-bottom:0;"-->
<!-- >-->
<!-- <el-input v-model="scope.row.zrDeptIdName" disabled placeholder="请选择提出人自动带入部门"/>-->
<!-- </el-form-item>-->
<!-- </template>-->
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="commentText" prop="zrUserIdName"
label="会签意见" label="责任人"
min-width="35%" min-width="15%"
align="center"> align="center">
</el-table-column> <!-- <template slot-scope="scope">-->
<el-table-column <!-- <el-form-item-->
prop="commentText" <!-- style="margin-left: 0;margin-bottom:0;"-->
label="会签意见文件" <!-- >-->
min-width="35%" <!-- <el-input v-model="scope.row.zrUserIdName" v-if="scope.row.pid === '0'" placeholder="请选择责任人" disabled />-->
align="left"> <!-- </el-form-item>-->
<template slot-scope="scope"> <!-- </template>-->
<el-form-item
style="margin-left: 0;margin-bottom:0;"
>
<div v-if="scope.row.summaryList.length>0" v-for="(value,index) in scope.row.summaryList" :title="value.name" :key="index" style="margin-left: -210px;cursor: pointer;color: #00b7ee" @click="downloadFile(value)">
<!-- {{ value.name }} -->
{{value.name | ellipsis}}
</div>
<div v-else>
- -
</div>
</el-form-item>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="意见是否采纳" label="意见是否采纳"
min-width="15%" min-width="15%"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-form-item <el-select v-model="scope.row.opinionsAdopted" filterable clearable :disabled="disabledState">
style="margin-left: 0;margin-bottom:0;"
>
<el-select style="margin-left: -223px;" v-model="scope.row.opinionsAdopted" filterable clearable>
<el-option <el-option
v-for="item in opinionsAdoptedOptions" v-for="item in opinionsAdoptedOptions"
:key="item.value" :key="item.value"
@@ -106,7 +147,15 @@
:label="item.label" :label="item.label"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </template>
</el-table-column>
<el-table-column
prop="opinionsAdoptedCont"
label="采纳理由"
align="center"
min-width="15%">
<template slot-scope="scope">
<el-input v-model="scope.row.opinionsAdoptedCont" clearable placeholder="请填写采纳理由"/>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -621,6 +670,7 @@
</el-drawer> </el-drawer>
<!-- 组件树--> <!-- 组件树-->
<tree-select-new <tree-select-new
:key="key"
:multiple=false :multiple=false
:lazy=false :lazy=false
:modalShowFlag="modalShowFlag1" :modalShowFlag="modalShowFlag1"
@@ -1149,6 +1199,18 @@
formChoiceQCDW(type, title, id){ formChoiceQCDW(type, title, id){
this.choiceQCDW(type, title, id) this.choiceQCDW(type, title, id)
}, },
formChoiceZRR1(type, title, id){
this.choiceZRR1(type, title, id)
},
formChoiceZRR2(type,title,id,flag){
this.choiceZRR2(type,title,id,flag)
},
formChoiceZRR3(type, title, id){
this.choiceZRR3(type, title, id)
},
formChoiceZRR4(type, title, id){
this.choiceZRR4(type, title, id)
},
formChoiceZRRListCancel(type, title, id){ formChoiceZRRListCancel(type, title, id){
this.choiceZRRList(type, title, id) this.choiceZRRList(type, title, id)
}, },
@@ -1322,6 +1384,13 @@
this.form.QCRBUSS=nameList; this.form.QCRBUSS=nameList;
this.formKey++ this.formKey++
} }
if(data && data.length > 0){
const institutionIdList = this.unique(data.map(item => item.institutionId)).join(",")
const institutionNameList = this.unique(data.map(item => item.institutionName)).join(",")
this.form.QCDWID = institutionIdList
this.form.QCDW = institutionNameList
}
}, },
checkedRole (data) { checkedRole (data) {
if (this.type === 0) { if (this.type === 0) {
@@ -1951,11 +2020,11 @@
var fileSuffix = filename.substring(index1, index2) var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名 // const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式 // 判断上传文件格式
this.FBGBUSSFileList = this.FBGBUSSFileList.filter ( item => item.response === undefined && item.raw === undefined); // this.FBGBUSSFileList = this.FBGBUSSFileList.filter ( item => item.response === undefined && item.raw === undefined);
if(this.fileType === 'FBGBUSS' && this.FBGBUSSFileList && this.FBGBUSSFileList.length === 1){ // if(this.fileType === 'FBGBUSS' && this.FBGBUSSFileList && this.FBGBUSSFileList.length === 1){
this.$message.error('文件限制只可上传一个') // this.$message.error('文件限制只可上传一个')
return false // return false
} // }
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') { if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true return true
} else { } else {
@@ -2508,7 +2577,6 @@
this.FBGBUSSFileList=this.assemble(processForm.FBGBUSS,processForm.FBGBUSSName); this.FBGBUSSFileList=this.assemble(processForm.FBGBUSS,processForm.FBGBUSSName);
this.BZSMBUSSFileList=this.assemble(processForm.BZSMBUSS,processForm.BZSMBUSSName); this.BZSMBUSSFileList=this.assemble(processForm.BZSMBUSS,processForm.BZSMBUSSName);
this.LSBBBUSSFileList=this.assemble(processForm.LSBBBUSS,processForm.LSBBBUSSName); this.LSBBBUSSFileList=this.assemble(processForm.LSBBBUSS,processForm.LSBBBUSSName);
console.log(this.LSBBBUSSFileList)
this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName); this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName);
this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName); this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName);
this.formKey++ this.formKey++
@@ -590,7 +590,7 @@
let Base64 = require('js-base64').Base64; let Base64 = require('js-base64').Base64;
export default { export default {
name: "bussLibrary12", name: "bussLibrary13",
components: { components: {
formEditList, formEditList,
ProcessHeader, ProcessHeader,
@@ -2502,7 +2502,7 @@
_this: this _this: this
}, res => { }, res => {
const obj = res.data const obj = res.data
let standSn = (obj === null || obj.newStandSn === null) ? '2280' : obj.newStandSn let standSn = (obj === null || obj.newStandSn === null) ? '001' : obj.newStandSn
this.form.standSn = standSn this.form.standSn = standSn
this.form.standNumber = standSn this.form.standNumber = standSn
this.form.standYear = year // 待带入立项标准 this.form.standYear = year // 待带入立项标准
@@ -225,7 +225,7 @@
<el-table-column <el-table-column
prop="modelNum" prop="modelNum"
label="条款号" label="条款号"
min-width="8%" min-width="12%"
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -644,7 +644,7 @@ export default {
prcType: row.prcType prcType: row.prcType
} }
}) })
}else if (row.taskInfo === '总院标准法规部产品标准工程师/各事业部标准化员发布'){ }else if (row.taskInfo === '总院标准法规部产品标准工程师发布'){
this.$router.push({ this.$router.push({
name: 'bussLibraryProduct13', name: 'bussLibraryProduct13',
query: { query: {
@@ -485,6 +485,16 @@ export default {
verifySarStandard: true, verifySarStandard: true,
} }
}) })
}else if (mes.taskInfo === '会签征求意见'){
this.$router.push({
name: 'bussLibraryProduct5',
query: {
type: 'buss2',
processName: mes.taskInfo,
bpnId: id,
verifySarStandard: true,
}
})
}else if (mes.taskInfo === '意见汇总及标准修改'){ }else if (mes.taskInfo === '意见汇总及标准修改'){
this.$router.push({ this.$router.push({
name: 'bussLibraryProduct6', name: 'bussLibraryProduct6',
@@ -505,6 +515,16 @@ export default {
verifySarStandard: true, verifySarStandard: true,
} }
}) })
}else if (mes.taskInfo === '总院标准法规部产品标准工程师发布'){
this.$router.push({
name: 'bussLibraryProduct13',
query: {
type: 'buss2',
processName: mes.taskInfo,
bpnId: id,
verifySarStandard: true,
}
})
} }
}else { }else {
this.$router.push({ this.$router.push({