海外标准

This commit is contained in:
宋伟佳
2021-06-10 18:03:17 +08:00
parent 16f2fd367d
commit ae2c36b77a
3 changed files with 133 additions and 42 deletions
@@ -236,6 +236,69 @@
<el-button type="primary" size="mini" class="common-button-primary" icon="el-icon-check" @click="exportTestItem">提交</el-button>
</span>
</el-dialog>
<table-tools-bar v-model="isAdvancedSearch">
<div slot="content">
<el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice" style="display: flex;flex-wrap: wrap">
<!-- 标准号-->
<el-form-item :label="$t('m.standardNo')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable :maxlength="100"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!-- 标准名称-->
<el-form-item :label="$t('m.standName')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable :maxlength="500"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!-- 标准类别-->
<el-form-item :label="$t('m.standardCategory')" class="serch-form-item">
<search-select
v-model="sarStandardsSearch.standSort"
:placeholder="$t('m.standardCategoryTips')"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"
:options="standSortOptions"
clearable/>
</el-form-item>
<!-- 标准状态-->
<el-form-item :label="$t('m.standStateShow')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.standState" :placeholder="$t('m.lookupByStandardStatus')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
</el-select>
</el-form-item>
<!-- 代替标准号-->
<el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.replaceStandNum" :placeholder="$t('m.lookUpByAlternativeCriteria')" clearable :maxlength="100"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!-- 适用车型-->
<el-form-item :label="$t('m.applicableModels')" class="serch-form-item">
<search-select
v-model="sarStandardsSearch.applyArctic"
:placeholder="$t('m.searchAccordingToThApplicableModel')"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"
:options="applyArcticOptions"
clearable/>
</el-form-item>
<!-- 适用产品线新增字段-->
<el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item">
<search-select
v-model="sarStandardsSearch.category"
:placeholder="$t('m.searchByApplicableProductLine')"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"
:options="categoryOptions"
clearable/>
</el-form-item>
<!-- 关联模块新增字段-->
<el-form-item :label="$t('m.associatedModule')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.standNature" :placeholder="$t('m.SearchByAssociatedModule')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}
</el-option>
</el-select>
</el-form-item>
</el-form>
</div>
</table-tools-bar>
<!-- 新增海外标准 -->
<el-drawer
:title="modalshowtitle"
@@ -850,6 +913,7 @@ import CustomDatePickWithText, {formatText} from '@/components/CustomFormCompone
import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomRoleTree from '@/components/CustomFormComponents/roleTree'
import CustomDatePickWithText2 from '@/components/CustomFormComponents/DatePickerWithText2'
import { interfaceUrl } from "@/sysConfig";
export default {
name: 'foreignStandardsAndRegulations',
@@ -889,6 +953,27 @@ export default {
collectTitle: '',
collectType: ''
},
sarStandardsSearch: {
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
standType: 'INLAND',
validFlag: '0',
menuId: '',
country: '',
standNumber: '',
standName: '',
standState: '',
standNature: '',
issueTime: '',
// applyArctic: '',
replaceStandNum: '',
// replaceStandNumCope: '',
// replaceStandNumList: [],
replacedStandNum: '',
synopsis: '', // 内容摘要
// category: '', // 所属类别
standSort: '' // 标准类别
}, // 分页查询过程中用到的对象
loading: false,
isCollapse: true,
sideClose: false, // 边栏收展状态
@@ -1747,7 +1832,7 @@ export default {
// 查询二级菜单
selectMenu () {
return new Promise((resolve, reject) => {
this.$http.get('sarMenu/sar-menu/selectMenuByRole', {sorDivide: 'FOREIGN_STAND'}, {
this.$http.get('lawss/sarMenu/selectMenuByRole', {sorDivide: 'FOREIGN_STAND'}, {
_this: this
}, res => {
let treeNode = []
@@ -1924,8 +2009,11 @@ export default {
exportTestItem () {
if (this.saveExportType === 'apart') {
if (this.selectedList != null && this.selectedList !== '') {
window.open('/api/lawss/sarStandardsInfo/exportStandardsInfoExcel?exportType=' + this.saveExportType + '&exportContent=' + this.selectedList.join(',') + '&exportName=' + this.exportName + '&standType=' + this.standType)
const exportURL = interfaceUrl + 'sarStandardsInfo/sar-standards-info/exportStandardsInfoExcel?' +
'exportType' + this.saveExportType + '&exportContent=' + this.selectedList.join(',') + '&exportName=' + this.exportName + '&standType=' + this.standType
window.open(exportURL)
this.$message.success('导出信息成功')
}
} else if (this.saveExportType === 'all') {
let exportEOStr = JSON.stringify(this.SarExportSearchEo)
@@ -2067,7 +2155,7 @@ export default {
type: 'warning',
roundButton: false
}).then(() => {
this.$http.post('lawss/sarStandardsInfo/deleteSarStandards', {ids: itemid}, {
this.$http.post('sarStandardsInfo/sar-standards-info/deleteSarStandards', {ids: itemid}, {
_this: this,
loading: 'delLoading'
}, res => {
@@ -2099,7 +2187,7 @@ export default {
roundButton: false,
type: 'warning'
}).then(() => {
this.$http.post('lawss/sarStandardsInfo/deleteSarStandards', {ids: this.selectedList.join(',')}, {
this.$http.post('sarStandardsInfo/sar-standards-info/deleteSarStandards', {ids: this.selectedList.join(',')}, {
_this: this
}, res => {
this.getDomesticStandardTable(this.tableFlag)
@@ -2116,7 +2204,7 @@ export default {
},
// 模板下载
uploadImportModal (flag) {
window.open('/api/lawss/sarStandardsInfo/exportTemplate?standType=FOREIGN')
window.open('/api/sarStandardsInfo/sar-standards-info/exportTemplate?standType=FOREIGN')
// if (flag === 1) {
// } else {
// window.open('/api/lawss/sarStandardsInfo/exportTemplate?fileName=标准条目导入模板.xlsx')
@@ -2163,7 +2251,7 @@ export default {
validateStandNumber (standInfo) {
return new Promise((resolve, reject) => {
let obj = JSON.parse(JSON.stringify(standInfo))
this.$http.post('lawss/sarStandardsInfo/validateStandNumber', obj, {
this.$http.post('sarStandardsInfo/sar-standards-info/validateStandNumber', obj, {
_this: this
}, res => {
if (res.ok) {
@@ -3678,4 +3766,23 @@ export default {
::v-deep .el-drawer{
outline: none!important;
}
.label-input-form {
&.table-lattice{
/deep/.el-form-item__label {
width:100px;
height:30px;
border: 1px solid #DCDFE6;
border-right: none;
line-height:30px;
text-align: center;
margin-top: 6px;
background: #F9F9F9;
}
/deep/.el-input__inner {
height: 30px;
line-height: 30px;
border-radius: 0 !important;
}
}
}
</style>