高级搜索的文本状态改为标准状态

This commit is contained in:
zhoulingpo
2023-12-06 16:33:21 +08:00
parent ddf84a6f9e
commit 3bb62ad584
4 changed files with 24 additions and 24 deletions
@@ -420,7 +420,7 @@
<p class="half"> <p class="half">
<label style=" margin-right: 156px;" <label style=" margin-right: 156px;"
title="“修订中”为现行有效版本;“已修订”标准的有效性需根据实际实施情况判定" title="“修订中”为现行有效版本;“已修订”标准的有效性需根据实际实施情况判定"
>文本状态</label><span>{{ sarStandardsInfoEO.textStatusBussShow || '-' }}</span> >标准状态</label><span>{{ sarStandardsInfoEO.textStatusBussShow || '-' }}</span>
</p> </p>
<p class="half"><label style=" margin-right: 157px;">发布日期</label><span>{{ sarStandardsInfoEO.issueTime || '-' }}</span></p> <p class="half"><label style=" margin-right: 157px;">发布日期</label><span>{{ sarStandardsInfoEO.issueTime || '-' }}</span></p>
<p class="half" style=""><label style=" margin-right: 122px;">企标实施日期</label><span>{{ sarStandardsInfoEO.putTime || '-' }}</span></p> <p class="half" style=""><label style=" margin-right: 122px;">企标实施日期</label><span>{{ sarStandardsInfoEO.putTime || '-' }}</span></p>
@@ -3113,7 +3113,7 @@ export default {
this.applyArcticOptions = res.data.ENERGYTYPES // 根据需求文档,产品类别对应标准属性中的“适用车型” this.applyArcticOptions = res.data.ENERGYTYPES // 根据需求文档,产品类别对应标准属性中的“适用车型”
this.emergyKindOptions = res.data.ENERGYTYPES this.emergyKindOptions = res.data.ENERGYTYPES
this.requestOptions = res.data.REQUESTTYPE this.requestOptions = res.data.REQUESTTYPE
this.textOptions = res.data.TEXTSTATUSBUSS //企标文本状态 this.textOptions = res.data.TEXTSTATUSBUSS //企标标准状态
this.mjOptions = res.data.MJ this.mjOptions = res.data.MJ
this.STANDSOURCEREVISION = res.data.STANDSOURCEREVISION this.STANDSOURCEREVISION = res.data.STANDSOURCEREVISION
}, e => { }, e => {
@@ -779,12 +779,12 @@
<el-input v-model="editForm.standNameSplit" :maxlength="100" placeholder="请输入标准名称/政策名称" clearable></el-input> <el-input v-model="editForm.standNameSplit" :maxlength="100" placeholder="请输入标准名称/政策名称" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="文本状态" label="标准状态"
class="add-form-item" class="add-form-item"
prop="fileType" prop="fileType"
label-width="140px" label-width="140px"
> >
<el-select v-model="editForm.fileType" placeholder="请选择文本状态" clearable> <el-select v-model="editForm.fileType" placeholder="请选择标准状态" clearable>
<el-option v-for="opt in standFileClassifyOptions" :key="opt.value" :value="opt.value" :label="opt.label"></el-option> <el-option v-for="opt in standFileClassifyOptions" :key="opt.value" :value="opt.value" :label="opt.label"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@@ -831,19 +831,19 @@ export default {
standId: '', standId: '',
standNumSplit: '', // 标准号/政策号 standNumSplit: '', // 标准号/政策号
standNameSplit: '', // 标准名称/政策名称 standNameSplit: '', // 标准名称/政策名称
fileType: '' // 文本状态 fileType: '' // 标准状态
}, },
editForm: { editForm: {
id: '', id: '',
standId: '', standId: '',
standNumSplit: '', // 标准号/政策号 standNumSplit: '', // 标准号/政策号
standNameSplit: '', // 标准名称/政策名称 standNameSplit: '', // 标准名称/政策名称
fileType: '' // 文本状态 fileType: '' // 标准状态
}, },
editFormRules: { editFormRules: {
standNumSplit: [{required: true, message: '标准号/政策号不能为空', trigger: 'blur'}], standNumSplit: [{required: true, message: '标准号/政策号不能为空', trigger: 'blur'}],
standNameSplit: [{required: true, message: '标准名称/政策名称不能为空', trigger: 'blur'}], standNameSplit: [{required: true, message: '标准名称/政策名称不能为空', trigger: 'blur'}],
fileType: [{ required: true, message: '文本状态不能为空', trigger: 'change' }] fileType: [{ required: true, message: '标准状态不能为空', trigger: 'change' }]
}, },
standFileClassifyOptions: [], standFileClassifyOptions: [],
openSubmitAndExamineVisible: false, openSubmitAndExamineVisible: false,
@@ -1023,7 +1023,7 @@
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
width="110" width="110"
label="文本状态"> label="标准状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止' " style="color: #F56C6C">{{ <span v-if="textStatusMap[scope.row.textStatus] === '废止' " style="color: #F56C6C">{{
textStatusMap[scope.row.textStatus] textStatusMap[scope.row.textStatus]
@@ -1138,7 +1138,7 @@
<el-table-column <el-table-column
prop="textStatus" prop="textStatus"
width="110" width="110"
label="文本状态"> label="标准状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="textStatusMap[scope.row.textStatus] === '废止'" style="color: #F56C6C">{{ <span v-if="textStatusMap[scope.row.textStatus] === '废止'" style="color: #F56C6C">{{
textStatusMap[scope.row.textStatus] textStatusMap[scope.row.textStatus]
@@ -1212,7 +1212,7 @@
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="standStatusShow" prop="standStatusShow"
label="文本状态" label="标准状态"
width="110" width="110"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -1309,7 +1309,7 @@ export default {
validFlag: '0', validFlag: '0',
menuId: 'nomenu' menuId: 'nomenu'
}, },
textStatusMap: {},// 文本状态id与name对应 textStatusMap: {},// 标准状态id与name对应
textState: [], textState: [],
standModel: false, standModel: false,
lawInfoTableLoading: true, lawInfoTableLoading: true,
@@ -1367,8 +1367,8 @@ export default {
_this: this, _this: this,
loading: "loading" loading: "loading"
}, res => { }, res => {
this.setMap(res.data.WBZTCLASS);// 文本状态 this.setMap(res.data.WBZTCLASS);// 标准状态
this.textState = res.data.WBZTCLASS // 文本状态 this.textState = res.data.WBZTCLASS // 标准状态
this.pubOptions = res.data.DYGGWT //问答公共问题 this.pubOptions = res.data.DYGGWT //问答公共问题
}, e => { }, e => {
}); });
@@ -1471,7 +1471,7 @@ export default {
}); });
window.open(routeUrl.href, "_blank"); window.open(routeUrl.href, "_blank");
}, },
// 将文本状态的id与name对应 // 将标准状态的id与name对应
setMap(data) { setMap(data) {
data.forEach(item => { data.forEach(item => {
this.$set(this.textStatusMap, item.value, item.label) this.$set(this.textStatusMap, item.value, item.label)
@@ -118,8 +118,8 @@
</el-row> </el-row>
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="文本状态" prop="textStatus"> <el-form-item label="标准状态" prop="textStatus">
<el-select :popper-append-to-body="false" v-model="standForm.textStatus" placeholder="请选择文本状态" clearable> <el-select :popper-append-to-body="false" v-model="standForm.textStatus" placeholder="请选择标准状态" clearable>
<el-option <el-option
v-for="item in standStateOptions" v-for="item in standStateOptions"
placeholder="请选择" placeholder="请选择"
@@ -447,10 +447,10 @@
</el-row> </el-row>
<el-row type="flex" justify="space-around" class="code-row-bg"> <el-row type="flex" justify="space-around" class="code-row-bg">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="文本状态" prop="lawsTextState"> <el-form-item label="标准状态" prop="lawsTextState">
<el-select v-model="standForm.lawsTextState" <el-select v-model="standForm.lawsTextState"
@keyup.enter.native="btnSearch" @keyup.enter.native="btnSearch"
placeholder="请选择文本状态" placeholder="请选择标准状态"
clearable> clearable>
<el-option <el-option
v-for="opt in lawsTextStateOptions" v-for="opt in lawsTextStateOptions"
@@ -715,9 +715,9 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="文本状态" prop="textStatusBuss"> <el-form-item label="标准状态" prop="textStatusBuss">
<el-select v-model="standForm.textStatusBuss" <el-select v-model="standForm.textStatusBuss"
placeholder="请选择文本状态" placeholder="请选择标准状态"
clearable> clearable>
<el-option <el-option
v-for="opt in textStatusOptions" v-for="opt in textStatusOptions"
@@ -1057,7 +1057,7 @@
<el-table-column <el-table-column
align="center" align="center"
width="180" width="180"
:label="selectIndex === 'INLAND_STAND' ? '文本状态' : (this.selectIndex === 'INLAND_LAWS' ? '文件状态' : '文本状态')"> :label="selectIndex === 'INLAND_STAND' ? '标准状态' : (this.selectIndex === 'INLAND_LAWS' ? '文件状态' : '标准状态')">
<template slot-scope="scope"> <template slot-scope="scope">
<div :style="selectIndex === 'BUSINESS_STAND' || selectIndex === 'INLAND_LAWS' ? (scope.row.textStatusBussName === '参考' || scope.row.textStatusBussName === '被代替' ? 'color: #E6A23C;' : <div :style="selectIndex === 'BUSINESS_STAND' || selectIndex === 'INLAND_LAWS' ? (scope.row.textStatusBussName === '参考' || scope.row.textStatusBussName === '被代替' ? 'color: #E6A23C;' :
(scope.row.textStatusBussName === '作废' || scope.row.lawsTextStateName === '作废' ? 'color: #F56C6C;' : '')) : ''"> (scope.row.textStatusBussName === '作废' || scope.row.lawsTextStateName === '作废' ? 'color: #F56C6C;' : '')) : ''">
@@ -1356,7 +1356,7 @@
itemsName: "", // 条款名称 itemsName: "", // 条款名称
parts: "", // 关联零部件 parts: "", // 关联零部件
// 基础信息 // 基础信息
textStatus: '', // 文本状态 textStatus: '', // 标准状态
standYear: '', // 标准年份 standYear: '', // 标准年份
standInData: '0', // 标准类型 standInData: '0', // 标准类型
standSort: '', // 标准类别 standSort: '', // 标准类别
@@ -2659,7 +2659,7 @@
// 设置高级搜索下拉框 // 设置高级搜索下拉框
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别 this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
this.standNatureOptions = res.data.SARPROPERTY // 标准性质 this.standNatureOptions = res.data.SARPROPERTY // 标准性质
this.standStateOptions = res.data.WBZTCLASS // 文本状态 this.standStateOptions = res.data.WBZTCLASS // 标准状态
// this.standSystemOptions = res.data.BZTXCLASS // 标准体系 // this.standSystemOptions = res.data.BZTXCLASS // 标准体系
this.standSystemOptions = res.data.TXLBBUSS // 标准体系 this.standSystemOptions = res.data.TXLBBUSS // 标准体系
this.standSystemBussOptions = res.data.TXLBBUSS // 企标体系 this.standSystemBussOptions = res.data.TXLBBUSS // 企标体系
@@ -2680,7 +2680,7 @@
this.bussBigClassOptions = res.data.BUSSBIGCLASS; this.bussBigClassOptions = res.data.BUSSBIGCLASS;
this.bussStandClassOptions = res.data.BUSSSTANDCLASS; this.bussStandClassOptions = res.data.BUSSSTANDCLASS;
this.regionOptions = res.data.REGION; // 区域 this.regionOptions = res.data.REGION; // 区域
this.textStatusOptions = res.data.TEXTSTATUSBUSS // 文本状态 this.textStatusOptions = res.data.TEXTSTATUSBUSS // 标准状态
this.qcdwOptions = res.data.QCDW // 起草单位 this.qcdwOptions = res.data.QCDW // 起草单位
this.qcrOptions = res.data.QCRBUSS // 起草人 this.qcrOptions = res.data.QCRBUSS // 起草人
this.syrzOptions = res.data.SYRZCLASS // 适用认证 this.syrzOptions = res.data.SYRZCLASS // 适用认证