feat: There is no way the,

This commit is contained in:
super_liu
2021-11-10 13:16:33 +08:00
parent 17bd676c09
commit 1ae16146f8
7 changed files with 361 additions and 334 deletions
@@ -2204,6 +2204,16 @@ export default {
} }
} }
for (let i = 0; i < displayLocation.length; i++) {
// sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
displayLocation.splice(i,1)
}
}
}
const child = location.child || [] const child = location.child || []
const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM'] const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM']
const fieldsIsTextAreaOrFile = child.filter(field => { const fieldsIsTextAreaOrFile = child.filter(field => {
@@ -2214,15 +2224,7 @@ export default {
}) })
location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum')) location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum'))
}) })
for (let i = 0; i < displayLocation.length; i++) {
// sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
displayLocation.splice(i,1)
}
}
}
this.dynamicFormField = displayLocation this.dynamicFormField = displayLocation
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
this.loading = false this.loading = false
@@ -2112,6 +2112,16 @@ export default {
} }
} }
for (let i = 0; i < displayLocation.length; i++) {
// sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
displayLocation.splice(i,1)
}
}
}
const child = location.child || [] const child = location.child || []
const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM'] const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM']
const fieldsIsTextAreaOrFile = child.filter(field => { const fieldsIsTextAreaOrFile = child.filter(field => {
@@ -2123,16 +2133,6 @@ export default {
location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum')) location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum'))
}) })
for (let i = 0; i < displayLocation.length; i++) {
// sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
displayLocation.splice(i,1)
}
}
}
this.dynamicFormField = displayLocation this.dynamicFormField = displayLocation
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
this.loading = false this.loading = false
@@ -3136,6 +3136,16 @@
} }
} }
for (let i = 0; i < displayLocation.length; i++) {
// sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
displayLocation.splice(i,1)
}
}
}
const child = location.child || [] const child = location.child || []
const one = [] const one = []
const half = [] const half = []
@@ -3160,16 +3170,6 @@
location.showAll = false location.showAll = false
}) })
for (let i = 0; i < displayLocation.length; i++) {
// sss
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
displayLocation.splice(i,1)
}
}
}
this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list', { this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list', {
id: this.$route.params.id id: this.$route.params.id
}, { }, {
@@ -184,7 +184,7 @@
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="standSelectChange"> @selection-change="standSelectChange">
<el-table-column <el-table-column
v-if="isPermission('b17f1d035219c47344032e261342d87d,c09dc12531085e30e39bbdc6cb6116ba')>0" v-if="isPermission('b17f1d035219c47344032e261342d87d,c09dc12531085e30e39bbdc6cb6116ba,5aedea192a77b14c364f19bdcee3513a')>0"
type="selection" type="selection"
width="55" width="55"
align="center"> align="center">
@@ -1647,12 +1647,6 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 关联模块--乘用车VPPS编码-->
<el-form-item title="关联模块--乘用车VPPS编码" label=" 关联模块--乘用车VPPS编码" prop="standNumber" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.CYCVPPSBM" clearable
placeholder=" 关联模块--乘用车VPPS编码"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!--关联模块--卡车vpps中文名称--> <!--关联模块--卡车vpps中文名称-->
<el-form-item title="关联模块--卡车vpps中文名称" label="关联模块--卡车vpps中文名称" prop="standNumber" class="add-form-item form-item-disabled"> <el-form-item title="关联模块--卡车vpps中文名称" label="关联模块--卡车vpps中文名称" prop="standNumber" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.KCCVPPSCN" clearable <el-input v-model="advanceSearchMapping.KCCVPPSCN" clearable
@@ -3058,7 +3052,6 @@ export default {
getDomesticStandardTableBtn(item) { getDomesticStandardTableBtn(item) {
this.tableFlag = item this.tableFlag = item
item.page = 1 item.page = 1
item.sarStandardsSearch = ''
this.getDomesticStandardTable(item) this.getDomesticStandardTable(item)
}, },
// getDomesticStandardTableBtn (advancedSearch) { // getDomesticStandardTableBtn (advancedSearch) {
@@ -3086,10 +3079,9 @@ export default {
this.sarStandardsSearch.replacedPartStandNum = '' this.sarStandardsSearch.replacedPartStandNum = ''
this.sarStandardsSearch.synopsis = '' this.sarStandardsSearch.synopsis = ''
this.sarStandardsSearch.category = '' this.sarStandardsSearch.category = ''
this.pageChange(1) this.isAdvancedSearch = false
this.getDomesticStandardTable(this.sarStandardsSearch)
} else if (flag === 'standCommonlySearch') { } else if (flag === 'standCommonlySearch') {
this.standCommonlySearch.standSort = '' this.standCommonlySearch.standName = ''
this.standCommonlySearch.standNumber = '' this.standCommonlySearch.standNumber = ''
this.pageChange(1) this.pageChange(1)
this.getDomesticStandardTable(this.standCommonlySearch) this.getDomesticStandardTable(this.standCommonlySearch)
@@ -3114,7 +3106,7 @@ export default {
// 高级检索 // 高级检索
selectMoreBtn() { selectMoreBtn() {
this.isAdvancedSearch = true this.isAdvancedSearch = true
this.sarStandardsSearch = [] this.sarStandardsSearch = {}
}, },
treeCollapse() { treeCollapse() {
this.sideClose = !this.sideClose this.sideClose = !this.sideClose
@@ -3781,6 +3773,8 @@ export default {
item.pageSize = this.$store.getters.userInfo.configContent item.pageSize = this.$store.getters.userInfo.configContent
} }
this.sarStandardsSearch.pageSize = this.$store.getters.userInfo.configContent this.sarStandardsSearch.pageSize = this.$store.getters.userInfo.configContent
this.standCommonlySearch.standName = ''
this.standCommonlySearch.standNumber = ''
const data = item || this.sarStandardsSearch || this.advanceSearchMapping const data = item || this.sarStandardsSearch || this.advanceSearchMapping
if (item) { if (item) {
this.sarStandardsSearch.advanceSearchStr = item.advanceSearchStr this.sarStandardsSearch.advanceSearchStr = item.advanceSearchStr
@@ -5174,8 +5168,8 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
/deep/.contentTitle{ /deep/.contentTitle{
width: 100%; width: 100%;
} }
/deep/.el-drawer__container { /deep/.el-drawer__container {
.prc-content-border { .prc-content-border {
/*border: none;*/ /*border: none;*/
@@ -22,6 +22,7 @@
:data="treeList" :data="treeList"
highlight-current highlight-current
@node-click="treeClick" @node-click="treeClick"
:filter-node-method="filterNode"
default-expand-all default-expand-all
:expand-on-click-node="false"> :expand-on-click-node="false">
<span class="custom-tree-node" slot-scope="{ node, data }" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)"> <span class="custom-tree-node" slot-scope="{ node, data }" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
@@ -281,7 +282,7 @@
@selection-change="standSelectChange" @selection-change="standSelectChange"
> >
<el-table-column <el-table-column
v-if="isPermission('374205ce36a859a158ca4db196d151b7,784d26f527a659eefe84d5e5a53deb96')>0" v-if="isPermission('374205ce36a859a158ca4db196d151b7,784d26f527a659eefe84d5e5a53deb96,2d41ebdb6150ba1af52fd753086d77dc')>0"
type="selection" type="selection"
width="55" width="55"
align="center"> align="center">
@@ -419,7 +420,7 @@
<el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'dd4ea796dab7a01b105ba657b1968a84'">编辑</el-dropdown-item> <el-dropdown-item :command="[scope.row, '编辑']" v-btn-permission="'dd4ea796dab7a01b105ba657b1968a84'">编辑</el-dropdown-item>
<!-- <el-dropdown-item :command="[scope.row, '分享']" v-btn-permission="'ESPMBSD4ZP'">分享</el-dropdown-item>--> <!-- <el-dropdown-item :command="[scope.row, '分享']" v-btn-permission="'ESPMBSD4ZP'">分享</el-dropdown-item>-->
<!-- <el-dropdown-item :command="[scope.row, '授权']" v-btn-permission="'CWBPST294ZH7HSKD4452'" v-if="scope.row.attrInfoMap && scope.row.attrInfoMap.QBMJ === 'ACF675Z88W'">授权</el-dropdown-item>--> <!-- <el-dropdown-item :command="[scope.row, '授权']" v-btn-permission="'CWBPST294ZH7HSKD4452'" v-if="scope.row.attrInfoMap && scope.row.attrInfoMap.QBMJ === 'ACF675Z88W'">授权</el-dropdown-item>-->
<el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="a7a38a95ea374695fc3128037f6feccf">删除</el-dropdown-item> <el-dropdown-item :command="[scope.row, '删除']" v-btn-permission="'a7a38a95ea374695fc3128037f6feccf'">删除</el-dropdown-item>
<!-- <el-dropdown-item :command="[scope.row, '流程']">流程</el-dropdown-item>--> <!-- <el-dropdown-item :command="[scope.row, '流程']">流程</el-dropdown-item>-->
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@@ -3303,6 +3304,10 @@ export default {
}) })
} }
}, },
filterNode(value, data) {
if (!value) return true;
return data.menuName.indexOf(value) !== -1;
},
treeClick (treeNode) { treeClick (treeNode) {
this.selectSarMenu = treeNode // 记录当前选中的二级菜单 this.selectSarMenu = treeNode // 记录当前选中的二级菜单
this.sarBussionessSearch.menuId = treeNode.id this.sarBussionessSearch.menuId = treeNode.id
@@ -3400,8 +3405,6 @@ export default {
this.sarBussionessSearch.VPPSBMBUSS = '' this.sarBussionessSearch.VPPSBMBUSS = ''
this.sarBussionessSearch.advanceSearchVOStr = '' this.sarBussionessSearch.advanceSearchVOStr = ''
this.sarBussionessSearch.standEnName='' this.sarBussionessSearch.standEnName=''
this.pageChange(1)
this.getBussionStandTable(this.sarBussionessSearch)
this.isAdvancedSearch = false this.isAdvancedSearch = false
} else if (flag === 2) { } else if (flag === 2) {
// 标准条目搜索 // 标准条目搜索
@@ -10,8 +10,6 @@
</el-input> </el-input>
<div class="tree"> <div class="tree">
<el-card style="height: 100%;padding-right: 120px;"> <el-card style="height: 100%;padding-right: 120px;">
<el-tree <el-tree
ref="tree" ref="tree"
node-key="id" node-key="id"
@@ -22,6 +20,7 @@
:data="treeList" :data="treeList"
highlight-current highlight-current
@node-click="treeClick" @node-click="treeClick"
:filter-node-method="filterNode"
default-expand-all default-expand-all
:expand-on-click-node="false"> :expand-on-click-node="false">
<span class="custom-tree-node" slot-scope="{ node, data }" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)"> <span class="custom-tree-node" slot-scope="{ node, data }" @mouseenter="mouseenter(data)" @mouseleave="mouseleave(data)">
@@ -181,7 +180,7 @@
@selection-change="standSelectChange" @selection-change="standSelectChange"
> >
<el-table-column <el-table-column
v-if="isPermission('fd83032ae5f41a0021b00e93c88edbbj,fd83032ae5f41a0021b00e93c88edbbe')>0" v-if="isPermission('fd83032ae5f41a0021b00e93c88edbbj,fd83032ae5f41a0021b00e93c88edbbe,fd83032ae5f41a0021b00e93c88edbbd')>0"
type="selection" type="selection"
width="55" width="55"
@@ -3427,6 +3426,10 @@
}) })
} }
}, },
filterNode(value, data) {
if (!value) return true;
return data.menuName.indexOf(value) !== -1;
},
treeClick (treeNode) { treeClick (treeNode) {
this.selectSarMenu = treeNode // 记录当前选中的二级菜单 this.selectSarMenu = treeNode // 记录当前选中的二级菜单
this.lawsStandInfoSearch.menuId = treeNode.id this.lawsStandInfoSearch.menuId = treeNode.id
@@ -3540,9 +3543,6 @@
this.lawsStandInfoSearch.XGLC='' this.lawsStandInfoSearch.XGLC=''
this.lawsStandInfoSearch.CHJLLAWS='' this.lawsStandInfoSearch.CHJLLAWS=''
this.lawsStandInfoSearch.GLWJLAWS='' this.lawsStandInfoSearch.GLWJLAWS=''
this.pageChange(1)
this.lawsStandInfoSearch.page = page
this.getBussionStandTable(this.lawsStandInfoSearch)
this.isAdvancedSearch = false this.isAdvancedSearch = false
} else if (flag === 2) { } else if (flag === 2) {
// 标准条目搜索 // 标准条目搜索
@@ -181,7 +181,7 @@
@selection-change="standSelectChange" @selection-change="standSelectChange"
@sort-change="sortChange"> @sort-change="sortChange">
<el-table-column <el-table-column
v-if="isPermission('4d01342db0f56f01bfceaee7b46904f4,8871ed1be74cf65851659514880bb50a')>0" v-if="isPermission('4d01342db0f56f01bfceaee7b46904f4,8871ed1be74cf65851659514880bb50a,29bf24bbd156c06f136cc89b1c7b2bb0')>0"
type="selection" type="selection"
width="55" width="55"
align="center"> align="center">
@@ -457,271 +457,275 @@
:wrapperClosable="false" :wrapperClosable="false"
:visible.sync="isAdvancedSearch"> :visible.sync="isAdvancedSearch">
<div class="demo-drawer-content"> <div class="demo-drawer-content">
<el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice" <el-form
style="display: flex;flex-wrap: wrap"> :model="sarStandardsSearch"
<!-- 标准号--> :inline="true"
<el-form-item :label="$t('m.standardNo')" class="serch-form-item"> label-width="68px"
<el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable class="label-input-form table-lattice"
:maxlength="100" style="display: flex;flex-wrap: wrap">
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> <ProcessTitle>
</el-form-item> <template slot="title">基础信息</template>
<!-- 标准名称--> </ProcessTitle>
<el-form-item :label="$t('m.standName')" class="serch-form-item"> <div class="prc-content-border">
<el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable <el-row :gutter="24">
:maxlength="500" <el-col :span="12">
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> <!-- 标准号-->
</el-form-item> <el-form-item :label="$t('m.standardNo')" class="add-form-item form-item-disabled">
<!-- 标准英文名称--> <el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable
<el-form-item :label="$t('m.standardEnglishName')" class="serch-form-item"> :maxlength="100"
<el-input v-model="sarStandardsSearch.standEnName" @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
:placeholder="$t('m.searchAccordingToStandardEnglishName')" clearable :maxlength="500" </el-form-item>
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> <!-- 标准名称-->
</el-form-item> <el-form-item :label="$t('m.standName')" class="add-form-item form-item-disabled">
<!-- 标准类别--> <el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable
<el-form-item :label="$t('m.standardCategory')" class="serch-form-item"> :maxlength="500"
<search-select @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
v-model="sarStandardsSearch.standSort" </el-form-item>
:placeholder="$t('m.standardCategoryTips')" <!-- 标准年份-->
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)" <el-form-item :label="$t('m.standardYear')" class="add-form-item form-item-disabled">
:options="standSortOptions" <el-input
clearable/> v-model="sarStandardsSearch.standYear"
</el-form-item> placeholder="根据标准年份查找">
<!-- 代替标准号--> </el-input>
<el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item"> </el-form-item>
<el-input v-model="sarStandardsSearch.replaceStandNum" :placeholder="$t('m.lookUpByAlternativeCriteria')" <!-- 标准发布日期-->
clearable :maxlength="100" <el-form-item label="标准发布日期" title="标准发布日期" class="add-form-item form-item-disabled">
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> <el-date-picker
</el-form-item> v-model="sarStandardsSearch.issueTime"
<!-- 被代替标准号--> type="date"
<el-form-item label="被代替标准号"> value-format="yyyy-MM-dd"
<el-input v-model="sarStandardsSearch.replacedStandNum" clearable placeholder="根据被代替标准号查找" placeholder="根据标准发布日期查找">
@keyup.enter.native="btnSearch"></el-input> </el-date-picker>
</el-form-item> </el-form-item>
<!-- 标准年份--> <!-- 标准性质-->
<el-form-item :label="$t('m.standardYear')" class="serch-form-item"> <el-form-item :label="$t('m.standNatureShow')" class="add-form-item form-item-disabled">
<el-input <el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable
v-model="sarStandardsSearch.standYear" @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
placeholder="根据标准年份查找"> <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value"
</el-input> :key="opt.value" :label="opt.label">{{ opt.label }}
</el-form-item> </el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<!-- 标准类别-->
<el-form-item :label="$t('m.standardCategory')" class="add-form-item form-item-disabled">
<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.standardEnglishName')" class="add-form-item form-item-disabled">
<el-input v-model="sarStandardsSearch.standEnName"
:placeholder="$t('m.searchAccordingToStandardEnglishName')" clearable :maxlength="500"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!-- 文本状态-->
<el-form-item :label="$t('m.standStateShow')" class="add-form-item form-item-disabled">
<el-select v-model="sarStandardsSearch.textStatus" :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="是否纳入标准清单" title="是否纳入标准清单" class="add-form-item form-item-disabled">
<el-select v-model="sarStandardsSearch.isRelateAccess" placeholder="根据是否纳入标准清单查找">
<el-option value="1" label="是"></el-option>
<el-option value="0" label="否"></el-option>
</el-select>
</el-form-item>
<!-- 标记-->
<!-- 标签-->
<el-form-item label="标签" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.GXHBQ" clearable
placeholder="根据被标签查找"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
<!-- 标准发布日期--> <ProcessTitle>
<el-form-item label="标准发布日期" class="serch-form-item"> <template slot="title">实施日期</template>
<el-date-picker </ProcessTitle>
v-model="sarStandardsSearch.issueTime" <div class="prc-content-border">
type="date" <el-row :gutter="24">
value-format="yyyy-MM-dd" <el-col :span="12">
placeholder="根据标准发布日期查找"> <!-- 自定义属性-->
</el-date-picker> <!-- 实施日期-->
</el-form-item> <el-form-item label="实施日期" class="add-form-item form-item-disabled">
<!-- 适用车型--> <el-date-picker
<el-form-item :label="$t('m.applicableModels')" class="serch-form-item"> v-model="advanceSearchMapping.SSRQ"
<el-select v-model="sarStandardsSearch.applyArctic" type="date"
:placeholder="$t('m.searchAccordingToThApplicableModel')" clearable value-format="yyyy-MM-dd"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> placeholder="根据实施日期查找">
<el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value" </el-date-picker>
:key="opt.value" :label="opt.label">{{ opt.label }} </el-form-item>
</el-option> <!-- 在产车实施日期-->
</el-select> <el-form-item title="在产车实施日期" label="在产车实施日期" class="add-form-item form-item-disabled">
</el-form-item> <el-date-picker
v-model="advanceSearchMapping.ZCCSSRQ"
type="date"
value-format="yyyy-MM-dd"
placeholder="根据在产车实施日期查找">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<!-- 新车型实施日期-->
<el-form-item title="新车型实施日期" label="新车型实施日期" class="add-form-item form-item-disabled">
<el-date-picker
value-format="yyyy-MM-dd"
v-model="advanceSearchMapping.XCXSSRQ"
type="date"
placeholder="根据新车型实施日期查找">
</el-date-picker>
</el-form-item>
<!-- 是否纳入标准清单--> </el-col>
<el-form-item label="是否纳入标准清单" class="serch-form-item"> </el-row>
<el-select v-model="sarStandardsSearch.isRelateAccess" placeholder="根据是否纳入标准清单查找"> </div>
<el-option value="1" label="是"></el-option>
<el-option value="0" label="否"></el-option>
</el-select>
</el-form-item>
<ProcessTitle>
<template slot="title">适用范围</template>
</ProcessTitle>
<div class="prc-content-border">
<el-row :gutter="24">
<el-col :span="12">
<!-- 适用车型-->
<el-form-item :label="$t('m.applicableModels')" class="add-form-item form-item-disabled">
<el-select v-model="sarStandardsSearch.applyArctic"
:placeholder="$t('m.searchAccordingToThApplicableModel')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in applyArcticOptions" :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.applicableProductLine')" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.SYCPX" :placeholder="$t('m.searchByApplicableProductLine')"
clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in sycpxOptions" :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="体系类别" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.TXLB" placeholder="根据体系类别查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in txlbOptions" :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="责任工程师" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.ZRGCS" placeholder="根据责任工程师查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in zrgcsOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
</el-form-item>
<!-- 关联模块--乘用车vpps中文名称-->
<el-form-item title="关联模块--乘用车vpps中文名称" label="关联模块--乘用车vpps中文名称" prop="standNumber" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.CYCVPPSCN" clearable
placeholder="关联模块--乘用车vpps中文名称"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!--关联模块--卡车vpps中文名称-->
<el-form-item title="关联模块--卡车vpps中文名称" label="关联模块--卡车vpps中文名称" prop="standNumber" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.KCCVPPSCN" clearable
placeholder="关联模块--卡车vpps中文名称"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!-- 文本状态--> </el-col>
<el-form-item :label="$t('m.standStateShow')" class="serch-form-item"> <el-col :span="12">
<el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable <!-- 能源类型-->
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> <el-form-item label="能源类型" class="add-form-item form-item-disabled">
<el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value" <el-select v-model="advanceSearchMapping.NYLX" placeholder="请选择能源类型" clearable
:key="opt.value" :label="opt.label">{{ opt.label }} @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
</el-option> <el-option v-for="opt in nylxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
</el-select> :label="opt.label">{{ opt.label }}
</el-form-item> </el-option>
<!-- 标准性质--> </el-select>
<el-form-item :label="$t('m.standNatureShow')" class="serch-form-item"> </el-form-item>
<el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable <!-- 适用认证-->
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> <el-form-item label="适用认证" class="add-form-item form-item-disabled">
<el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" <el-select v-model="advanceSearchMapping.SYRZ" placeholder="根据适用认证查找" clearable
:key="opt.value" :label="opt.label">{{ opt.label }} @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
</el-option> <el-option v-for="opt in syrzOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
</el-select> :label="opt.label">{{ opt.label }}
</el-form-item> </el-option>
</el-select>
</el-form-item>
<!-- 责任部门-->
<el-form-item label="责任部门" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.ZRBM" placeholder="根据责任部门查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in zrbmOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
</el-form-item>
<!-- 关联模块--乘用车VPPS编码-->
<el-form-item title="关联模块--乘用车VPPS编码" label=" 关联模块--乘用车VPPS编码" prop="standNumber" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.CYCVPPSBM" clearable
placeholder=" 关联模块--乘用车VPPS编码"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
<!--关联模块--卡车VPPS编码-->
<el-form-item title="关联模块--卡车VPPS编码" label="关联模块--卡车VPPS编码" prop="standNumber" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.KCCVPPSBM" clearable
placeholder="关联模块--卡车VPPS编码"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
</el-col>
</el-row>
</div>
<!-- 自定义属性--> <ProcessTitle>
<!-- 实施日期--> <template slot="title">关联信息</template>
<el-form-item label="实施日期"> </ProcessTitle>
<el-date-picker <div class="prc-content-border">
v-model="advanceSearchMapping.SSRQ" <el-row :gutter="24">
type="date" <el-col :span="12">
value-format="yyyy-MM-dd" <!-- 代替标准号-->
placeholder="根据实施日期查找"> <el-form-item :label="$t('m.substituteStandardNumber')" class="add-form-item form-item-disabled">
</el-date-picker> <el-input v-model="sarStandardsSearch.replaceStandNum" :placeholder="$t('m.lookUpByAlternativeCriteria')"
</el-form-item> clearable :maxlength="100"
<!-- 新车型实施日期--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
<el-form-item title="新车型实施日期" label="新车型实施日期"> </el-form-item>
<el-date-picker <!-- 引用标准-->
value-format="yyyy-MM-dd" <el-form-item label="引用标准" class="add-form-item form-item-disabled">
v-model="advanceSearchMapping.XCXSSRQ" <el-input v-model="advanceSearchMapping.YYBJ" clearable placeholder="根据引用标准查找"
type="date" @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
placeholder="根据新车型实施日期查找"> </el-form-item>
</el-date-picker> </el-col>
</el-form-item> <el-col :span="12">
<!-- 在产车实施日期--> <!-- 被代替标准号-->
<el-form-item title="在产车实施日期" label="在产车实施日期"> <el-form-item label="被代替标准号" class="add-form-item form-item-disabled">
<el-date-picker <el-input v-model="sarStandardsSearch.replacedStandNum" clearable placeholder="根据被代替标准号查找"
v-model="advanceSearchMapping.ZCCSSRQ" @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
type="date" </el-form-item>
value-format="yyyy-MM-dd" <!-- 被引用标准-->
placeholder="根据在产车实施日期查找"> <el-form-item label="被引用标准" class="add-form-item form-item-disabled">
</el-date-picker> <el-input v-model="advanceSearchMapping.BYYBJ" clearable
</el-form-item> placeholder="根据被引用标准查找"
<!-- 归口管理部门--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
<el-form-item label="归口管理部门"> </el-form-item>
<el-select v-model="advanceSearchMapping.GKDW" placeholder="归口管理部门" clearable </el-col>
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> </el-row>
<el-option v-for="opt in gkglbmOptions" :value="opt.value === undefined ? '' :opt.value" </div>
:key="opt.value" :label="opt.label">{{ opt.label }}
</el-option>
</el-select>
</el-form-item>
<!-- 起草单位-->
<el-form-item label="起草单位">
<el-select v-model="advanceSearchMapping.QCDW" placeholder="根据起草单位查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in qcdwOptions" :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="我司参与深度">
<el-select v-model="advanceSearchMapping.CYSD" placeholder="请选择我司参与深度" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in cysdOptions" :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="能源类型">
<el-select v-model="advanceSearchMapping.NYLX" placeholder="请选择能源类型" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in nylxOptions" :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.applicableProductLine')" class="serch-form-item">
<el-select v-model="advanceSearchMapping.SYCPX" :placeholder="$t('m.searchByApplicableProductLine')"
clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in sycpxOptions" :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="适用认证">
<el-select v-model="advanceSearchMapping.SYRZ" placeholder="根据适用认证查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in syrzOptions" :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="责任部门">
<el-select v-model="advanceSearchMapping.ZRBM" placeholder="根据责任部门查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in zrbmOptions" :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="责任工程师">
<el-select v-model="advanceSearchMapping.ZRGCS" placeholder="根据责任工程师查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in zrgcsOptions" :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="采标编号" prop="nameShow">
<el-input v-model="advanceSearchMapping.CBBH" clearable placeholder="根据采标编号查找"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 采标程度-->
<el-form-item label="采标程度" prop="standNumber">
<el-input v-model="advanceSearchMapping.CBCD" clearable
placeholder="根据采标程度查找"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 引用标准-->
<el-form-item label="引用标准">
<el-input v-model="advanceSearchMapping.YYBJ" clearable placeholder="根据引用标准查找"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 被引用标准-->
<el-form-item label="被引用标准">
<el-input v-model="advanceSearchMapping.BYYBJ" clearable
placeholder="根据被引用标准查找"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 体系类别-->
<el-form-item label="体系类别">
<el-select v-model="advanceSearchMapping.TXLB" placeholder="根据体系类别查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in txlbOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
:label="opt.label">{{ opt.label }}
</el-option>
</el-select>
</el-form-item>
<!-- 关联模块--乘用车VPPS编码-->
<el-form-item title=" 关联模块--乘用车VPPS编码" label=" 关联模块--乘用车VPPS编码" prop="standNumber">
<el-input v-model="advanceSearchMapping.CYCVPPSBM" clearable
placeholder=" 关联模块--乘用车VPPS编码"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 关联模块--乘用车vpps中文名称-->
<el-form-item title="关联模块--乘用车vpps中文名称" label="关联模块--乘用车vpps中文名称" prop="standNumber">
<el-input v-model="advanceSearchMapping.CYCVPPSCN" clearable
placeholder="关联模块--乘用车vpps中文名称"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!--关联模块--卡车VPPS编码-->
<el-form-item title="关联模块--卡车VPPS编码" label="关联模块--卡车VPPS编码" prop="standNumber">
<el-input v-model="advanceSearchMapping.KCCVPPSBM" clearable
placeholder="关联模块--卡车VPPS编码"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!--关联模块--卡车vpps中文名称-->
<el-form-item title="关联模块--卡车vpps中文名称" label="关联模块--卡车vpps中文名称" prop="standNumber">
<el-input v-model="advanceSearchMapping.KCCVPPSCN" clearable
placeholder="关联模块--卡车vpps中文名称"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 标记-->
<!-- 标签-->
<el-form-item label="标签">
<el-input v-model="advanceSearchMapping.GXHBQ" clearable
placeholder="根据被标签查找"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
</el-form> </el-form>
</div> </div>
<div class="demo-drawer-footer"> <div class="demo-drawer-footer">
@@ -1318,7 +1322,7 @@
<el-button class="common-button-primary" type="primary" icon="el-icon-search" size="mini" @click="selectConfiguraStand"></el-button> <el-button class="common-button-primary" type="primary" icon="el-icon-search" size="mini" @click="selectConfiguraStand"></el-button>
</el-form-item> </el-form-item>
<el-form-item label="" class="search-item btn-box"> <el-form-item label="" class="search-item btn-box">
<el-button class="common-button-default" icon="el-icon-refresh-left" @click="clearAllSearch(3)" size="mini"></el-button> <el-button class="common-button-default" icon="el-icon-refresh-left" @click="clearAllSearch('standCommonlySearch')" size="mini"></el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@@ -1612,6 +1616,8 @@ import {interfaceUrl} from "@/sysConfig";
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';
import store from "@/store"; import store from "@/store";
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
export default { export default {
name: 'foreignStandardsAndRegulations', name: 'foreignStandardsAndRegulations',
@@ -1634,7 +1640,8 @@ export default {
MechanismTree, MechanismTree,
CustomDatePickWithText2, CustomDatePickWithText2,
TreeSelect, TreeSelect,
TreeSelectNew TreeSelectNew,
ProcessTitle
}, },
data() { data() {
return { return {
@@ -2834,17 +2841,42 @@ export default {
clearAllSearch(flag) { clearAllSearch(flag) {
if (flag === 'standCommonlySearch') { if (flag === 'standCommonlySearch') {
this.standCommonlySearch.standNumber = ''; this.standCommonlySearch.standNumber = '';
this.standCommonlySearch.standSort = ''; this.standCommonlySearch.standName = '';
this.standCommonlySearch.page = 1; this.standCommonlySearch.page = 1;
} }
this.getDomesticStandardTable(this.standCommonlySearch)
if (flag === 'sarStandardsSearch') { if (flag === 'sarStandardsSearch') {
this.sarStandardsSearch.standSort = '' this.sarStandardsSearch.standSort = ''
this.sarStandardsSearch.standNumber = '' this.sarStandardsSearch.standNumber = ''
this.sarStandardsSearch.page = 1 this.sarStandardsSearch.page = 1
this.getDomesticStandardTable() this.advanceSearchMapping.txlbOption= '' //标准体系
this.advanceSearchMapping.GXHBQ= '' //标签
this.advanceSearchMapping.CYSD= '' //我司参与深度
this.advanceSearchMapping.GKDW= '' //归口管理部门
this.advanceSearchMapping.SSRQ= ''//实施日期
this.advanceSearchMapping.XCXSSRQ= ''//新车型实施日期
this.advanceSearchMapping.ZCCSSRQ= ''//在产车实施日期
this.advanceSearchMapping.QCDW= ''//起草单位
this.advanceSearchMapping.NYLX= ''//能源类型
this.advanceSearchMapping.SYRZ= ''//适用认证
this.advanceSearchMapping.ZRGCS= ''//责任工程师
this.advanceSearchMapping.CBBH= ''//采标编号
this.advanceSearchMapping.CBCD= ''//采标程度
this.advanceSearchMapping.YYBJ= ''//引用标准
this.advanceSearchMapping.BYYBJ= ''//被引用标准
this.advanceSearchMapping.TXLB= ''//体系类别
this.advanceSearchMapping.CYCVPPSBM= '',
this.advanceSearchMapping.CYCVPPSCN= ''
this.advanceSearchMapping.KCCVPPSBM= ''
this.advanceSearchMapping.KCCVPPSCN= ''
this.advanceSearchMapping.DYBXH= ''
this.advanceSearchMapping.DYMC= ''
this.advanceSearchMapping.CYSD= ''
this.advanceSearchMapping.CLLX= ''
this.advanceSearchMapping.SYCPX= ''
this.advanceSearchMapping.ZRBM= ''
this.advanceSearchMapping.WSSMR= ''
this.isAdvancedSearch = false
} else if (flag === 2) { } else if (flag === 2) {
// 标准条目搜索 // 标准条目搜索
this.standItemSearch.responsibleUnit = '' this.standItemSearch.responsibleUnit = ''
@@ -4838,6 +4870,16 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
/deep/.contentTitle{
width: 100%;
}
/deep/.el-drawer__container {
.prc-content-border {
/*border: none;*/
width: 100%;
padding: 0 20px 0;
}
}
/deep/ .icon-tree { /deep/ .icon-tree {
margin: 0 5px 0 10px; margin: 0 5px 0 10px;
position: relative; position: relative;
@@ -5155,20 +5197,6 @@ export default {
.label-input-form { .label-input-form {
&.table-lattice { &.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;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis
}
/deep/ .el-input__inner { /deep/ .el-input__inner {
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;