Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -88,11 +88,11 @@ export default {
|
||||
path: '/domesticStandardsAndRegulations',
|
||||
menuId: '3e3657498664beaa0dc1de1ecb3ae0da'
|
||||
},
|
||||
// {
|
||||
// title: '零部件编号申请',
|
||||
// path: '/partCodeApply',
|
||||
// menuId: ''
|
||||
// },
|
||||
{
|
||||
title: '零部件编号申请',
|
||||
path: '/partCodeApply',
|
||||
menuId: 'ad9db496772c075f78495382b7581fe9'
|
||||
},
|
||||
// {
|
||||
// title: '标准法规工作组数据统计',
|
||||
// path: '/dataStatisComments',
|
||||
@@ -310,11 +310,11 @@ export default {
|
||||
// path: '/convertDocView',
|
||||
// menuId: '3F52K25546'
|
||||
// },
|
||||
/*{
|
||||
title: '菜单管理',
|
||||
path: '/menuManage',
|
||||
menuId: '87b8b4f5817a7829696e63185c744d52'
|
||||
},*/
|
||||
// {
|
||||
// title: '菜单管理',
|
||||
// path: '/menuManage',
|
||||
// menuId: '87b8b4f5817a7829696e63185c744d52'
|
||||
// },
|
||||
{
|
||||
title: '链接管理',
|
||||
path: '/linkManage',
|
||||
|
||||
@@ -78,6 +78,21 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
|
||||
|
||||
<el-form-item v-if="form.standInData=='1'" label="国家/地区" prop="country" class="add-form-item form-item-disabled">
|
||||
<el-select :popper-append-to-body="false" v-model="form.country" placeholder="国家/地区">
|
||||
<el-option
|
||||
v-for="item in countryOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item label="标准类别" prop="standSort" class="add-form-item form-item-disabled">
|
||||
<el-select :popper-append-to-body="false" v-model="form.standSort" placeholder="请选择标准类别">
|
||||
<el-option
|
||||
@@ -1463,6 +1478,7 @@
|
||||
},
|
||||
zrUserIds: [], // 选择多个会签责任人
|
||||
userType:'', // 选择用户ID判断
|
||||
countryOptions:[],//国家地区
|
||||
standSortOptions: [], // 标准类别
|
||||
standNatureOptions: [], // 标准性质
|
||||
standStateOptions: [], // 文本状态
|
||||
@@ -2331,6 +2347,7 @@
|
||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.countryOptions=res.data.COUNTRY//国家地区
|
||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||
|
||||
@@ -30,6 +30,20 @@
|
||||
<el-radio label="1">海外标准入库</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item v-if="form.standInData=='1'" label="国家/地区" prop="country" class="add-form-item form-item-disabled">
|
||||
<el-select :popper-append-to-body="false" v-model="form.country" placeholder="国家/地区" disabled>
|
||||
<el-option
|
||||
v-for="item in countryOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="标准类别" prop="standSort" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standSort" placeholder="请选择标准类别" disabled>
|
||||
<el-option
|
||||
@@ -819,6 +833,7 @@
|
||||
children: 'children',
|
||||
label: 'model'
|
||||
},
|
||||
countryOptions:[],//国家地区
|
||||
busVppsOptions: [], // 车系体系架构
|
||||
modelOptions: [], // 模块体系架构
|
||||
standSortOptions: [], // 标准类别
|
||||
@@ -971,6 +986,8 @@
|
||||
this.zbjbdFileId = processForm.zbjbd
|
||||
this.getFormFieldList(processForm)
|
||||
console.log(processForm);
|
||||
console.log("processForm");
|
||||
|
||||
}
|
||||
}).catch(e => {
|
||||
})
|
||||
@@ -1073,6 +1090,7 @@
|
||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.countryOptions=res.data.COUNTRY//国家地区
|
||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||
|
||||
@@ -30,6 +30,20 @@
|
||||
<el-radio label="1">海外标准入库</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item v-if="form.standInData=='1'" label="国家/地区" prop="country" class="add-form-item form-item-disabled">
|
||||
<el-select :popper-append-to-body="false" v-model="form.country" placeholder="国家/地区" disabled>
|
||||
<el-option
|
||||
v-for="item in countryOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="标准类别" prop="standSort" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standSort" placeholder="请选择标准类别" disabled>
|
||||
<el-option
|
||||
@@ -792,6 +806,7 @@ export default {
|
||||
children: 'children',
|
||||
label: 'model'
|
||||
},
|
||||
countryOptions:[],//国家地区
|
||||
busVppsOptions: [], // 车系体系架构
|
||||
modelOptions: [], // 模块体系架构
|
||||
standSortOptions: [], // 标准类别
|
||||
@@ -1047,6 +1062,7 @@ export default {
|
||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.countryOptions=res.data.COUNTRY//国家地区
|
||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||
|
||||
@@ -31,6 +31,19 @@
|
||||
<el-radio label="1">海外标准入库</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.standInData=='1'" label="国家/地区" prop="country" class="add-form-item form-item-disabled">
|
||||
<el-select :popper-append-to-body="false" v-model="form.country" placeholder="国家/地区">
|
||||
<el-option
|
||||
v-for="item in countryOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item label="标准类别" prop="standSort" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.standSort" placeholder="请选择标准类别">
|
||||
<el-option
|
||||
@@ -1230,6 +1243,7 @@ export default {
|
||||
prcName:'',
|
||||
standType: '',
|
||||
}, // 标准信息
|
||||
countryOptions:[],//国家地区
|
||||
standSortOptions: [], // 标准类别
|
||||
standNatureOptions: [], // 标准性质
|
||||
standStateOptions: [], // 文本状态
|
||||
@@ -1753,6 +1767,7 @@ export default {
|
||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.countryOptions=res.data.COUNTRY//国家地区
|
||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||
|
||||
@@ -445,7 +445,7 @@ export default {
|
||||
},
|
||||
//获取项目数据
|
||||
getProjectData() {
|
||||
this.$http.get("sarStandProjectLibrary/queryProject", {
|
||||
this.$http.get("sarStandProjectLibrary/queryProjectWorkFlow", {
|
||||
...this.projectSearch
|
||||
}, {
|
||||
_this: this
|
||||
@@ -520,12 +520,7 @@ export default {
|
||||
{
|
||||
_this: this
|
||||
}, res => {
|
||||
if (!res.data.length) {
|
||||
this.dataList = []
|
||||
this.$message.warning("请选择带有分解单的标准");
|
||||
} else {
|
||||
this.listForm.breakdownList = res.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
//标准的多选框改变
|
||||
|
||||
@@ -64,7 +64,7 @@ export default {
|
||||
continue;
|
||||
} else if (entity.id === "63e05705d0c8013162caa34f9fe52865") {
|
||||
list.push({
|
||||
label: "项目类清单",
|
||||
label: "车辆类型清单",
|
||||
name: "listProject"
|
||||
});
|
||||
continue;
|
||||
|
||||
@@ -4,11 +4,20 @@
|
||||
<div class="search-area">
|
||||
<div class="left">
|
||||
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form">
|
||||
<el-form-item label="项目名称" class="search-item search-item-last">
|
||||
<el-input
|
||||
v-model="sarSarAccessEOSearch.projectName"
|
||||
placeholder="请输入项目名称"
|
||||
></el-input>
|
||||
<el-form-item label="车型类别" class="search-item search-item-last">
|
||||
<el-select
|
||||
v-model="sarSarAccessEOSearch.carType"
|
||||
placeholder="请选择"
|
||||
filterable
|
||||
size="small"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in energyKindOptions"
|
||||
:value="item.value"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="清单名称" class="search-item search-item-last">
|
||||
<el-input
|
||||
@@ -75,8 +84,8 @@
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="projectName"
|
||||
label="项目名称"
|
||||
prop="carType"
|
||||
label="车型类别"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -109,16 +118,6 @@
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column
|
||||
prop="applicationScope"
|
||||
label="适用领域"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span
|
||||
v-if="scope.row.applicationScope != null && scope.row.applicationScope !== ''">{{ scope.row.applicationScope
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<el-table-column
|
||||
prop="updateTime"
|
||||
label="更新时间"
|
||||
@@ -158,6 +157,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {dicTypeData} from "@/api/unqualProcess";
|
||||
|
||||
export default {
|
||||
name: "listProject",
|
||||
data() {
|
||||
@@ -169,6 +170,7 @@ export default {
|
||||
rows: 10,
|
||||
// 查询相关参数
|
||||
sarSarAccessEOSearch: {
|
||||
carType: '',
|
||||
projectName: "",
|
||||
detailedListName: "",
|
||||
},
|
||||
@@ -178,6 +180,7 @@ export default {
|
||||
selectedList: [],
|
||||
// 新增、编辑 准入信息字段
|
||||
sarAccessEO: {
|
||||
carType: '',
|
||||
country: "",
|
||||
applyArctic: "",
|
||||
energyKind: "",
|
||||
@@ -274,7 +277,21 @@ export default {
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.sarAccessListDatas = res.data.records;
|
||||
this.sarAccessListDatas = res.data.records
|
||||
this.sarAccessListDatas.forEach(item =>{
|
||||
// 适用车型转换
|
||||
if (item.carType !== null) {
|
||||
let k = (item.carType || "").split(',')
|
||||
for (let i in this.energyKindOptions) {
|
||||
for (let m = 0; m< k.length; m++) {
|
||||
if (this.energyKindOptions[i].value === k[m]) {
|
||||
k[m] = this.energyKindOptions[i].label
|
||||
}
|
||||
item.carType = k.join(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
this.sarSarAccessEOSearch.page = 1
|
||||
this.sarAccessListTotal = res.data.total
|
||||
}, e => {
|
||||
@@ -362,8 +379,39 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 分页查询数据
|
||||
this.searchSarAccess();
|
||||
dicTypeData().then(res => {
|
||||
// 车型类别数据字典
|
||||
this.energyKindOptions = res.data.ENERGYTYPES
|
||||
this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
|
||||
page: 1,
|
||||
pageSize: this.pageSize,
|
||||
...this.sarSarAccessEOSearch,
|
||||
sortKey: 2
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.sarAccessListDatas = res.data.records
|
||||
this.sarAccessListDatas.forEach(item =>{
|
||||
// 适用车型转换
|
||||
if (item.carType !== null) {
|
||||
let k = (item.carType || "").split(',')
|
||||
for (let i in this.energyKindOptions) {
|
||||
for (let m = 0; m< k.length; m++) {
|
||||
if (this.energyKindOptions[i].value === k[m]) {
|
||||
k[m] = this.energyKindOptions[i].label
|
||||
}
|
||||
item.carType = k.join(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
this.sarSarAccessEOSearch.page = 1
|
||||
this.sarAccessListTotal = res.data.total
|
||||
}, e => {
|
||||
});
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -501,7 +501,6 @@ export default {
|
||||
}
|
||||
})
|
||||
}, e => {
|
||||
|
||||
});
|
||||
},
|
||||
selectInfoMore() {
|
||||
|
||||
+175
-275
@@ -10,8 +10,20 @@
|
||||
<el-form-item label="清单名称" prop="detailedListName" class="search-item">
|
||||
<el-input v-model="sarAccessEO.detailedListName" :disabled="disabledFlag" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目名称" prop="projectName" class="search-item">
|
||||
<el-input v-model="sarAccessEO.projectName" :disabled="disabledFlag" placeholder="请输入"></el-input>
|
||||
<el-form-item label="车型类别" prop="carType" label-width="100px" class="search-item">
|
||||
<el-select
|
||||
v-model="sarAccessEO.carType"
|
||||
placeholder="请选择"
|
||||
filterable
|
||||
size="small"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in energyKindOptions"
|
||||
:value="item.value"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<br/><br/>
|
||||
<el-form-item label="清单说明" prop="remark" class="search-item max-search-item2">
|
||||
@@ -88,11 +100,7 @@
|
||||
@click="clearSearchLaws">清空</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" v-if="showSelectBox" class="common-button-primary" size="mini" @click="selectMoreBtn">
|
||||
<i class="iconfont"></i>
|
||||
高级查询
|
||||
</el-button>
|
||||
<el-button type="primary" v-if="!showSelectBox" class="common-button-primary" size="mini" @click="selectMoreBtn">
|
||||
<el-button type="primary" class="common-button-primary" size="mini" @click="selectMoreBtn">
|
||||
<i class="iconfont"></i>
|
||||
高级查询
|
||||
</el-button>
|
||||
@@ -118,6 +126,36 @@
|
||||
size="small"
|
||||
clearable/>
|
||||
</el-form-item>
|
||||
<el-form-item label="适用车型" class="labelBox1">
|
||||
<el-select
|
||||
v-model="sarAccessInfo.typeApplicable"
|
||||
placeholder="请选择"
|
||||
filterable
|
||||
size="small"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in energyKindOptions"
|
||||
:value="item.value"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="适用认证" class="labelBox1">
|
||||
<el-select
|
||||
v-model="sarAccessInfo.syrz"
|
||||
placeholder="请选择"
|
||||
filterable
|
||||
size="small"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in syrzOptions"
|
||||
:value="item.value"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button size="small" type="primary" @click="selectBtn">查询</el-button>
|
||||
</el-form-item>
|
||||
@@ -176,6 +214,16 @@
|
||||
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="typeApplicable"
|
||||
label="适用车型"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="syrz"
|
||||
label="适用认证"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="issueTime"
|
||||
sortable
|
||||
@@ -553,16 +601,15 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
textStatusMap: {},
|
||||
typeApplicableMap: {},
|
||||
nylxMap: {},
|
||||
zrbmMap: {},
|
||||
sycpxMap: {},
|
||||
selectSearch : [],
|
||||
// 新增、编辑 基础信息字段
|
||||
sarAccessEO: {
|
||||
id: '',
|
||||
carType: '',
|
||||
sortKey: 2,
|
||||
fileIds: '',
|
||||
syrz: '',
|
||||
typeApplicable: '',
|
||||
projectName: '',
|
||||
detailedListName: '',
|
||||
energyKind: '',
|
||||
@@ -582,6 +629,7 @@ export default {
|
||||
standSortShow:'',
|
||||
standEnName: '',
|
||||
typeApplicable: '',
|
||||
syrz: '',
|
||||
nylx: '',
|
||||
ssrq: '',
|
||||
zccssrqgj: '',
|
||||
@@ -614,6 +662,7 @@ export default {
|
||||
energyKindOptions: [], // 能源种类list
|
||||
sycpxOptions: [], // 适用产品线
|
||||
applyArcticOptions: [], // 基础车型 适用车型list
|
||||
syrzOptions: [],
|
||||
/** ******************************/
|
||||
regionOptions: [], // 基础信息 区域list
|
||||
drawerCountryOptions: [], // 基础信息 国家list
|
||||
@@ -638,6 +687,8 @@ export default {
|
||||
id: '',
|
||||
standName: '',
|
||||
askType: '', // 监管类型
|
||||
syrz: '',
|
||||
typeApplicable: '',
|
||||
dataSource: 'INLAND_STAND', // 数据来源
|
||||
page: 1,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
@@ -648,6 +699,8 @@ export default {
|
||||
id: '',
|
||||
standName: '',
|
||||
standNumber: '',
|
||||
syrz: '',
|
||||
typeApplicable: '',
|
||||
askType: '', // 监管类型
|
||||
dataSource: 'INLAND_STAND', // 数据来源
|
||||
page: 1,
|
||||
@@ -879,6 +932,8 @@ export default {
|
||||
this.applyArcticOptions = res.data.PRODUCTTYPE
|
||||
// 适用产品线数据字典
|
||||
this.sycpxOptions = res.data.SYCPXCLASS
|
||||
//适用认证数据字典
|
||||
this.syrzOptions = res.data.SYRZCLASS
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
@@ -993,91 +1048,8 @@ export default {
|
||||
this.sarAccessInfoSearch.advanceSearchVOStr = ''
|
||||
// 国内标准法规可查字段
|
||||
if (val === 'INLAND_STAND'){
|
||||
this.twoOptions=[
|
||||
{
|
||||
label: '适用车辆类型',
|
||||
value: 'CLLX',
|
||||
type: 'SEL_OPTION',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '标准编号',
|
||||
value: 'STAND_NUMBER',
|
||||
type: 'INPUT',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '中文名称',
|
||||
value: 'STAND_NAME',
|
||||
type: 'INPUT',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '标签',
|
||||
value: 'GXHBQXX',
|
||||
type: 'SEL_OPTION',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '新车型实施日期(文本)',
|
||||
value: 'XCXSSRQ',
|
||||
type: 'DATE_PIC_OPTS',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '在产车实施日期(文本)',
|
||||
value: 'ZCCSSRQ',
|
||||
type: 'DATE_PIC_OPTS',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '法规维护人',
|
||||
value: 'FGWHR',
|
||||
type: 'SEL_OPTION',
|
||||
selVal: "USERLIST",
|
||||
disabled: false
|
||||
}
|
||||
]
|
||||
// 海外标准法规可查字段
|
||||
}else if (val === 'FOREIGN_STAND'){
|
||||
this.twoOptions=[
|
||||
{
|
||||
label: '适用车辆类型',
|
||||
value: 'CLLX',
|
||||
type: 'SEL_OPTION',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '标准编号',
|
||||
value: 'STAND_NUMBER',
|
||||
type: 'INPUT',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '中文名称',
|
||||
value: 'STAND_NAME',
|
||||
type: 'INPUT',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '英文名称',
|
||||
value: 'STAND_EN_NAME',
|
||||
type: 'INPUT',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '标签',
|
||||
value: 'GXHBQXX',
|
||||
type: 'SEL_OPTION',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '新车型实施日期(文本)',
|
||||
value: 'XCXSSRQ',
|
||||
type: 'DATE_PIC_OPTS',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '在产车实施日期(文本)',
|
||||
value: 'ZCCSSRQ',
|
||||
type: 'DATE_PIC_OPTS',
|
||||
disabled: false
|
||||
}, {
|
||||
label: '法规维护人',
|
||||
value: 'FGWHR',
|
||||
type: 'SEL_OPTION',
|
||||
selVal: "USERLIST",
|
||||
disabled: false
|
||||
}
|
||||
]
|
||||
// 国内外政策可查字段
|
||||
}
|
||||
},
|
||||
@@ -1292,139 +1264,9 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
// 查询数据搜索 table 数据
|
||||
pageInfo() {
|
||||
StandardsInfoPage(this.sarAccessInfoSearch, this.sarAccessInfo).then(res =>{
|
||||
this.sarAccessInfoSearchList = res.data.list
|
||||
this.sarAccessInfoSearchList.forEach(item => {
|
||||
if (item.standYear === null) {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber
|
||||
} else {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||
}
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, 'zccssrqgj', '')
|
||||
this.$set(item, 'xcxssrqgj', '')
|
||||
this.$set(item, 'ssrq', '')
|
||||
this.$set(item, 'sycpx', '')
|
||||
this.$set(item, 'typeApplicable', '')
|
||||
this.$set(item, 'nylx', '')
|
||||
this.$set(item, 'zrbm', '')
|
||||
this.$set(item, 'cycvppsbm', '')
|
||||
this.$set(item, 'cycvppscn', '')
|
||||
this.$set(item, 'kccvppsbm', '')
|
||||
this.$set(item, 'kccvppscn', '')
|
||||
}else {
|
||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ)
|
||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ)
|
||||
this.$set(item, 'ssrq', item.attrInfoMap.SSRQ)
|
||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||
}
|
||||
})
|
||||
this.drawerTotal = res.data.count
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
selectLawsStands () {
|
||||
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
|
||||
this.sarAccessInfoSearch.standType = 'INLAND'
|
||||
this.pageInfo()
|
||||
} else {
|
||||
this.sarAccessInfoSearch.standType = 'FOREIGN'
|
||||
this.pageInfo()
|
||||
}
|
||||
},
|
||||
/** 高级查询查询按钮*/
|
||||
selectPage() {
|
||||
StandardsInfoPage(this.sarAccessInfo).then(res =>{
|
||||
this.sarAccessInfoSearchList = res.data.list
|
||||
this.sarAccessInfoSearchList.forEach(item => {
|
||||
if (item.standYear === null) {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber
|
||||
} else {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||
}
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, 'zccssrqgj', '')
|
||||
this.$set(item, 'xcxssrqgj', '')
|
||||
this.$set(item, 'ssrq', '')
|
||||
this.$set(item, 'sycpx', '')
|
||||
this.$set(item, 'typeApplicable', '')
|
||||
this.$set(item, 'nylx', '')
|
||||
this.$set(item, 'zrbm', '')
|
||||
this.$set(item, 'cycvppsbm', '')
|
||||
this.$set(item, 'cycvppscn', '')
|
||||
this.$set(item, 'kccvppsbm', '')
|
||||
this.$set(item, 'kccvppscn', '')
|
||||
}else {
|
||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ)
|
||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ)
|
||||
this.$set(item, 'ssrq', item.attrInfoMap.SSRQ)
|
||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||
}
|
||||
})
|
||||
this.drawerTotal = res.data.list.length
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
selectBtn() {
|
||||
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
|
||||
this.sarAccessInfoSearch.standType = 'INLAND'
|
||||
this.selectPage()
|
||||
} else {
|
||||
this.sarAccessInfoSearch.standType = 'FOREIGN'
|
||||
this.selectPage()
|
||||
}
|
||||
},
|
||||
// 数据搜索table判断checked状态
|
||||
selectable (row) {
|
||||
return row.isRelateAccess === '1'
|
||||
},
|
||||
// 数据搜索 table select事件
|
||||
sarAccessInfoSearchSelect (val) {
|
||||
this.selectedAccInfoSearchList = val
|
||||
this.selectedAccInfoSearchList.forEach(item => {
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, 'zccssrqgj', '')
|
||||
this.$set(item, 'xcxssrqgj', '')
|
||||
this.$set(item, 'ssrq', '')
|
||||
this.$set(item, 'sycpx', '')
|
||||
this.$set(item, 'typeApplicable', '')
|
||||
this.$set(item, 'nylx', '')
|
||||
this.$set(item, 'zrbm', '')
|
||||
this.$set(item, 'cycvppsbm', '')
|
||||
this.$set(item, 'cycvppscn', '')
|
||||
this.$set(item, 'kccvppsbm', '')
|
||||
this.$set(item, 'kccvppscn', '')
|
||||
}else {
|
||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ)
|
||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ)
|
||||
this.$set(item, 'ssrq', item.attrInfoMap.SSRQ)
|
||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||
}
|
||||
})
|
||||
this.selectedAccInfoSearchList.forEach(item => {
|
||||
// 字段转化
|
||||
changeText(val) {
|
||||
val.forEach(item => {
|
||||
// 责任部门转换
|
||||
if (item.zrbm !== null || item.zrbm !== "") {
|
||||
let k = (item.zrbm || "").split(',')
|
||||
@@ -1473,8 +1315,114 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
// 适用认证转换
|
||||
if (item.syrz !== null) {
|
||||
let k = (item.syrz || "").split(',')
|
||||
for (let i in this.syrzOptions) {
|
||||
for (let m = 0; m< k.length; m++) {
|
||||
if (this.syrzOptions[i].value === k[m]) {
|
||||
k[m] = this.syrzOptions[i].label
|
||||
}
|
||||
item.syrz = k.join(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 字段添加
|
||||
addWord(item) {
|
||||
if (item.attrInfoMap === null) {
|
||||
this.$set(item, 'zccssrqgj', '')
|
||||
this.$set(item, 'xcxssrqgj', '')
|
||||
this.$set(item, 'ssrq', '')
|
||||
this.$set(item, 'syrz', '')
|
||||
this.$set(item, 'sycpx', '')
|
||||
this.$set(item, 'typeApplicable', '')
|
||||
this.$set(item, 'nylx', '')
|
||||
this.$set(item, 'zrbm', '')
|
||||
this.$set(item, 'cycvppsbm', '')
|
||||
this.$set(item, 'cycvppscn', '')
|
||||
this.$set(item, 'kccvppsbm', '')
|
||||
this.$set(item, 'kccvppscn', '')
|
||||
}else {
|
||||
this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ)
|
||||
this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ)
|
||||
this.$set(item, 'ssrq', item.attrInfoMap.SSRQ)
|
||||
this.$set(item, 'syrz', item.attrInfoMap.SYRZ)
|
||||
this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
|
||||
this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
|
||||
this.$set(item, 'nylx', item.attrInfoMap.NYLX)
|
||||
this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
|
||||
this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
|
||||
this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
|
||||
this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
|
||||
this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
|
||||
}
|
||||
},
|
||||
// 查询数据搜索 table 数据
|
||||
pageInfo() {
|
||||
StandardsInfoPage(this.sarAccessInfoSearch).then(res =>{
|
||||
this.sarAccessInfoSearchList = res.data.list
|
||||
this.sarAccessInfoSearchList.forEach(item => {
|
||||
if (item.standYear === null) {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber
|
||||
} else {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||
}
|
||||
this.addWord(item)
|
||||
})
|
||||
this.changeText(this.sarAccessInfoSearchList)
|
||||
this.drawerTotal = res.data.count
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
selectLawsStands () {
|
||||
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
|
||||
this.sarAccessInfoSearch.standType = 'INLAND'
|
||||
this.pageInfo()
|
||||
} else {
|
||||
this.sarAccessInfoSearch.standType = 'FOREIGN'
|
||||
this.pageInfo()
|
||||
}
|
||||
},
|
||||
/** 高级查询查询按钮*/
|
||||
selectPage() {
|
||||
StandardsInfoPage(this.sarAccessInfo).then(res =>{
|
||||
this.sarAccessInfoSearchList = res.data.list
|
||||
this.sarAccessInfoSearchList.forEach(item => {
|
||||
if (item.standYear === null) {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber
|
||||
} else {
|
||||
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
|
||||
}
|
||||
this.addWord(item)
|
||||
})
|
||||
this.changeText(this.sarAccessInfoSearchList)
|
||||
this.drawerTotal = res.data.list.length
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
selectBtn() {
|
||||
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
|
||||
this.sarAccessInfoSearch.standType = 'INLAND'
|
||||
this.selectPage()
|
||||
} else {
|
||||
this.sarAccessInfoSearch.standType = 'FOREIGN'
|
||||
this.selectPage()
|
||||
}
|
||||
},
|
||||
// 数据搜索table判断checked状态
|
||||
selectable (row) {
|
||||
return row.isRelateAccess === '1'
|
||||
},
|
||||
// 数据搜索 table select事件
|
||||
sarAccessInfoSearchSelect (val) {
|
||||
this.selectedAccInfoSearchList = val
|
||||
this.selectedAccInfoSearchList.forEach(item => {
|
||||
this.addWord(item)
|
||||
})
|
||||
this.changeText(this.selectedAccInfoSearchList)
|
||||
},
|
||||
// 数据搜索 清单类型 table select事件
|
||||
accessSarTypeSelect (selectData) {
|
||||
this.accessSarTypeList = selectData
|
||||
@@ -1721,46 +1669,6 @@ export default {
|
||||
this.isSubmit = false
|
||||
this.$refs['addEntryForm'].resetFields()
|
||||
},
|
||||
/**
|
||||
* 赋值内容到入库标准抽屉内
|
||||
* item 清单行数据
|
||||
*/
|
||||
copyStandDrawer (item) {
|
||||
this.sarStandardsInfoEO.accessType = item.accessType
|
||||
this.sarStandardsInfoEO.standNumber = item.code // 标准编号
|
||||
this.sarStandardsInfoEO.standName = item.name // 中文名称
|
||||
this.sarStandardsInfoEO.standEnName = item.enName // 英文名称
|
||||
this.sarStandardsInfoEO.lawsNumber = item.code // 标准编号
|
||||
this.sarStandardsInfoEO.lawsName = item.name // 中文名称
|
||||
this.sarStandardsInfoEO.lawsEnName = item.enName // 英文名称
|
||||
this.sarStandardsInfoEO.synopsis = item.synopsis
|
||||
this.sarStandardsInfoEO.XCXSSRQ = item.newPutTime // 新车型实施日期(文本)
|
||||
this.sarStandardsInfoEO.XCXSSRQXM = item.newPutTextTime // 新车型实施日期(项目)
|
||||
this.sarStandardsInfoEO.ZCCSSRQ = item.prodPutTime // 在产车实施日期(文本)
|
||||
this.sarStandardsInfoEO.ZCCSSRQXM = item.prodPutTextTime // 在产车实施日期(项目)
|
||||
this.sarStandardsInfoEO.EOPSSRQ = item.eopPutTime // EOP实施日期(文本)
|
||||
this.sarStandardsInfoEO.EOPSSRQXM = item.eopPutTextTime // EOP实施日期(项目)
|
||||
this.sarStandardsInfoEO.ZRBMName = item.ZRBMName || item.zrbmname // 责任部门
|
||||
this.sarStandardsInfoEO.ZRBM = item.ZRBM || item.zrbm // 责任部门
|
||||
this.sarStandardsInfoEO.XGBMName = item.XGBMName || item.xgbmname // 相关部门
|
||||
this.sarStandardsInfoEO.XGBM = item.XGBM || item.xgbm // 相关部门
|
||||
this.sarStandardsInfoEO.FOName = item.FOName || item.foname // FO
|
||||
this.sarStandardsInfoEO.FO = item.FO || item.fo // FO
|
||||
this.sarStandardsInfoEO.XMPGJS = item.proEssessUserId // 项目评估人员
|
||||
this.sarStandardsInfoEO.XMPGJSName = item.proEssessUser // 项目评估人员
|
||||
this.sarStandardsInfoEO.standNature = item.natureId // 标准性质
|
||||
this.sarStandardsInfoEO.NRDBZFGQD = this.sarAccessEO.countryArea // 国家地区
|
||||
this.sarStandardsInfoEO.CLLX = item.applyArctic ? item.applyArctic.split(',') : []
|
||||
this.sarStandardsInfoEO.YQLX = item.askType
|
||||
this.sarStandardsInfoEO.GXHBQ = item.GXHBQ ? item.GXHBQ.split(',') : []
|
||||
this.sarStandardsInfoEO.ZRLX = item.askNature ? item.askNature.split(',') : []
|
||||
if (this.sarStandardsInfoEO.accessType === 'INLAND_STAND') {
|
||||
this.sarStandardsInfoEO.countryArea = 'CN'
|
||||
} else {
|
||||
this.sarStandardsInfoEO.countryArea = ''
|
||||
}
|
||||
this.uuid = item.uuid
|
||||
},
|
||||
/**
|
||||
* 获取新增弹框的表单
|
||||
*/
|
||||
@@ -1972,10 +1880,6 @@ export default {
|
||||
setMap(data){
|
||||
data.forEach(item => {
|
||||
this.$set(this.textStatusMap, item.value, item.label)
|
||||
this.$set(this.typeApplicableMap, item.value, item.label)
|
||||
this.$set(this.nylxMap, item.value, item.label)
|
||||
this.$set(this.zrbmMap, item.value, item.label)
|
||||
this.$set(this.sycpxMap, item.value, item.label)
|
||||
})
|
||||
},
|
||||
// 点击上传的文件进行下载
|
||||
@@ -2027,10 +1931,6 @@ export default {
|
||||
this.textStatusOptions = res.data.WBZTCLASS
|
||||
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
||||
this.setMap(this.textStatusOptions)
|
||||
this.setMap(this.zrbmOptions)
|
||||
this.setMap(this.categoryOptions)
|
||||
this.setMap(this.sycpxOptions)
|
||||
this.setMap(this.energyKindOptions)
|
||||
this.getGzzOption()
|
||||
}, e => {
|
||||
})
|
||||
|
||||
@@ -1302,11 +1302,10 @@
|
||||
</el-form-item>
|
||||
<!-- 标准年份-->
|
||||
<el-form-item :label="$t('m.standardYear')" class="serch-form-item">
|
||||
<el-date-picker
|
||||
<el-input
|
||||
v-model="sarStandardsSearch.standYear"
|
||||
type="date"
|
||||
placeholder="根据标准年份查找">
|
||||
</el-date-picker>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<!-- 标准发布日期-->
|
||||
<el-form-item label="标准发布日期" class="serch-form-item">
|
||||
@@ -1356,8 +1355,10 @@
|
||||
</el-form-item>
|
||||
<!-- 归口管理部门-->
|
||||
<el-form-item label="归口管理部门">
|
||||
<el-input v-model="sarStandardsSearch.gkglbm" clearable placeholder="根据归口管理部门查找"
|
||||
@keyup.enter.native="btnSearch"></el-input>
|
||||
<el-select v-model="sarStandardsSearch.gkglbm" placeholder="归口管理部门" clearable
|
||||
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
|
||||
<el-option v-for="opt in gkglbmOptions" :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="起草单位">
|
||||
@@ -1688,18 +1689,21 @@ export default {
|
||||
searching: false,
|
||||
stahndinfoList: [],
|
||||
tableFlag: '',
|
||||
// sycpxOptions: [], // 适用产品线
|
||||
syzrOptions: [], // 适用认证
|
||||
// zrgcsOptions: [], // 责任工程师
|
||||
|
||||
countryOptions: [],
|
||||
cysdOptions: [], // 我司参与深度下拉框
|
||||
regionOptions: [], // 区域
|
||||
standSortOptions: [], // 标准类别下拉框
|
||||
standSystemOptions: [], // 标准体系下拉框
|
||||
sycpxOptions: [], // 适用产品线下拉框
|
||||
zrbmOptions: [], // 责任部门下拉框
|
||||
zrgcsOptions: [], // 责任工程师下拉框
|
||||
txlbOptions: [], // 体系类别下拉框
|
||||
regionOptions: [], // 区域
|
||||
standSortOptions: [], // 标准类别下拉框
|
||||
standSortConfigOptions: [], // 标准类别下拉框
|
||||
applyArcticOptions: [], // 适用车型下拉框
|
||||
standStateOptions: [], // 文本状态下拉框
|
||||
standSystemOptions: [], // 标准体系下拉框
|
||||
standStateOptions: [], // 标准状态下拉框
|
||||
standNatureOptions: [], // 标准性质下拉框
|
||||
adoptExtentOptions: [], // 采标程度下拉框
|
||||
emergyKindOptions: [], // 能源种类下拉框
|
||||
@@ -1707,12 +1711,14 @@ export default {
|
||||
categoryOptions: [], // 所属类别下拉框
|
||||
categoryConfigOptions: [], // 所属类别下拉框
|
||||
assemClassOptions: [], // 总成分类下拉框
|
||||
qcdwOptions: [], // 起草单位
|
||||
nylxOptions: [], // 能源类型
|
||||
// sycpxOptions: [], // 适用产品线
|
||||
syzrOptions: [], // 适用认证
|
||||
// zrbmOptions: [], // 责任部门
|
||||
// zrgcsOptions: [], // 责任工程师
|
||||
qcdwOptions:[],//起草单位下拉框
|
||||
cysdOptions:[], //我司参与深度下拉框
|
||||
nylxOptions:[],//能源类型下拉框
|
||||
syrzOptions:[],//适用认证下拉框
|
||||
gkglbmOptions:[],//归口管理部门下拉框
|
||||
|
||||
|
||||
|
||||
standAttributeList: [],
|
||||
sarStandardsSearch: {
|
||||
page: 1,
|
||||
@@ -3008,52 +3014,59 @@ export default {
|
||||
},
|
||||
// 表格排序
|
||||
sortChange (sortObj) {
|
||||
console.log(sortObj.column.order+"======"+sortObj.column.property)
|
||||
console.log(sortObj, '升降序')
|
||||
if (sortObj.column.order !== 'normal') {
|
||||
switch (sortObj.prop) {
|
||||
this.nowOrder = ''
|
||||
this.orderBy = ''
|
||||
switch (sortObj.column.property) {
|
||||
case 'issueTime' :
|
||||
// 后台联调
|
||||
if(sortObj.order === null) {
|
||||
this.nowOrderBy = ''
|
||||
} else {
|
||||
this.nowOrderBy = '1'
|
||||
}
|
||||
break;
|
||||
case 'xcxssrq' :
|
||||
// 后台联调
|
||||
if(sortObj.order === null) {
|
||||
this.nowOrderBy = ''
|
||||
} else {
|
||||
this.nowOrderBy = '2'
|
||||
this.orderBy = 1;
|
||||
this.nowOrder = sortObj.column.order
|
||||
if (this.nowOrder === 'ascending') {
|
||||
this.nowOrder = 2
|
||||
} else if (this.nowOrder === 'descending') {
|
||||
this.nowOrder = 1
|
||||
}
|
||||
break;
|
||||
case 'zccssrq' :
|
||||
// 后台联调
|
||||
if(sortObj.order === null) {
|
||||
this.nowOrderBy = ''
|
||||
} else {
|
||||
this.nowOrderBy = '3'
|
||||
break
|
||||
case 'XCXSSRQ' :
|
||||
this.orderBy = 2;
|
||||
this.nowOrder = sortObj.column.order
|
||||
if (this.nowOrder === 'ascending') {
|
||||
this.nowOrder = 2
|
||||
} else if (this.nowOrder === 'descending') {
|
||||
this.nowOrder = 1
|
||||
}
|
||||
break;
|
||||
case 'textStatus' :
|
||||
// 后台联调
|
||||
if(sortObj.order === null) {
|
||||
this.nowOrderBy = ''
|
||||
} else {
|
||||
this.nowOrderBy = '4'
|
||||
}
|
||||
break;
|
||||
}
|
||||
switch (sortObj.order) {
|
||||
case 'ascending' :
|
||||
this.nowOrder = '2'
|
||||
break;
|
||||
case 'descending' :
|
||||
this.nowOrder = '1'
|
||||
break;
|
||||
default:
|
||||
this.nowOrder = ''
|
||||
break;
|
||||
break
|
||||
case 'ZCCSSRQ' :
|
||||
this.orderBy = 3;
|
||||
this.nowOrder = sortObj.column.order
|
||||
if (this.nowOrder === 'ascending') {
|
||||
this.nowOrder = 2
|
||||
} else if (this.nowOrder === 'descending') {
|
||||
this.nowOrder = 1
|
||||
}
|
||||
break
|
||||
case 'textStatus' :
|
||||
this.orderBy = 5;
|
||||
this.nowOrder = sortObj.column.order
|
||||
if (this.nowOrder === 'ascending') {
|
||||
this.nowOrder = 2
|
||||
} else if (this.nowOrder === 'descending') {
|
||||
this.nowOrder = 1
|
||||
}
|
||||
break
|
||||
case 'SSRQ' :
|
||||
this.orderBy = 6;
|
||||
this.nowOrder = sortObj.column.order
|
||||
if (this.nowOrder === 'ascending') {
|
||||
this.nowOrder = 2
|
||||
} else if (this.nowOrder === 'descending') {
|
||||
this.nowOrder = 1
|
||||
}
|
||||
break
|
||||
|
||||
}
|
||||
}
|
||||
this.getDomesticStandardTable(this.tableFlag)
|
||||
@@ -3486,8 +3499,8 @@ export default {
|
||||
}
|
||||
|
||||
// 排序
|
||||
formData.nowOrderBy = this.nowOrder ? this.orderBy : ''
|
||||
formData.nowOrder = this.nowOrder
|
||||
formData.nowOrderBy = this.nowOrderBy
|
||||
// formData.orderBy = this.orderBy
|
||||
console.log(this.selectSarMenu.id)
|
||||
// 处理我的收藏和个性化标签传参
|
||||
@@ -4743,7 +4756,6 @@ export default {
|
||||
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
||||
this.cysdOptions = res.data.WSCYSD // 我司参与深度
|
||||
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
||||
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
||||
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
||||
this.qcdwOptions = res.data.QCDW // 起草单位
|
||||
@@ -4752,6 +4764,7 @@ export default {
|
||||
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
||||
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||
this.syrzOptions = res.data.SYRZCLASS // 适用认证
|
||||
this.gkglbmOptions=res.data.GKGLBM;//归口管理部门
|
||||
this.getGzzOption()
|
||||
this.setMap(this.standStateOptions)
|
||||
}, e => {
|
||||
|
||||
@@ -185,6 +185,17 @@
|
||||
{{ formatIssueDate(scope.row.issueTime) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="SSRQ"
|
||||
sortable="custom"
|
||||
width="150px"
|
||||
label="实施日期">
|
||||
<template slot-scope="scope">
|
||||
<!-- {{ formatIssueDate(scope.row.putTime) }}-->
|
||||
<span>{{ scope.row.SSRQ ? scope.row.SSRQ.substring(0,10) : '-' }}</span>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="XCXSSRQ"
|
||||
sortable="custom"
|
||||
@@ -369,11 +380,10 @@
|
||||
</el-form-item>
|
||||
<!-- 标准年份-->
|
||||
<el-form-item :label="$t('m.standardYear')" class="serch-form-item">
|
||||
<el-date-picker
|
||||
<el-input
|
||||
v-model="sarStandardsSearch.standYear"
|
||||
type="date"
|
||||
placeholder="根据标准年份查找">
|
||||
</el-date-picker>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<!-- 标准发布日期-->
|
||||
<el-form-item label="标准发布日期" class="serch-form-item">
|
||||
@@ -423,8 +433,10 @@
|
||||
</el-form-item>
|
||||
<!-- 归口管理部门-->
|
||||
<el-form-item label="归口管理部门">
|
||||
<el-input v-model="sarStandardsSearch.gkglbm" clearable placeholder="根据归口管理部门查找"
|
||||
@keyup.enter.native="btnSearch"></el-input>
|
||||
<el-select v-model="sarStandardsSearch.gkglbm" placeholder="归口管理部门" clearable
|
||||
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
|
||||
<el-option v-for="opt in gkglbmOptions" :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="起草单位">
|
||||
@@ -608,7 +620,22 @@
|
||||
<el-col :span="24" :key="index">
|
||||
<div class="divider-line">{{ displayLocation.label }}</div>
|
||||
</el-col>
|
||||
|
||||
<template v-if="index === 0" >
|
||||
<el-form-item label="国家/地区" prop="standSort" label-width="150px" class="add-form-item">
|
||||
<el-select v-model="sarStandardsInfoEO.country" filterable>
|
||||
<el-option
|
||||
v-for="item in countryOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
|
||||
<el-form-item label="标准类别" prop="standSort" label-width="150px" class="add-form-item">
|
||||
<el-select v-model="sarStandardsInfoEO.standSort" filterable>
|
||||
<el-option
|
||||
@@ -1523,6 +1550,7 @@ export default {
|
||||
cysdOptions:[], //我司参与深度下拉框
|
||||
nylxOptions:[],//能源类型下拉框
|
||||
syrzOptions:[],//适用认证下拉框
|
||||
gkglbmOptions:[],//归口管理部门下拉框
|
||||
// 树形结构
|
||||
// tree function
|
||||
MoveTest: '',
|
||||
@@ -3065,6 +3093,7 @@ export default {
|
||||
},
|
||||
// 表格排序
|
||||
sortChange (sortObj) {
|
||||
|
||||
if (sortObj.column.order !== 'normal') {
|
||||
this.nowOrder = ''
|
||||
this.orderBy = ''
|
||||
@@ -3097,7 +3126,7 @@ export default {
|
||||
this.nowOrder=1
|
||||
}
|
||||
break
|
||||
case 'standStateShow' :
|
||||
case 'textStatus' :
|
||||
this.orderBy = 5;
|
||||
this.nowOrder = sortObj.column.order
|
||||
if (this.nowOrder === 'ascending'){
|
||||
@@ -3106,6 +3135,16 @@ export default {
|
||||
this.nowOrder=1
|
||||
}
|
||||
break
|
||||
case 'SSRQ' :
|
||||
this.orderBy = 6;
|
||||
this.nowOrder = sortObj.column.order
|
||||
if (this.nowOrder === 'ascending'){
|
||||
this.nowOrder=2
|
||||
}else if (this.nowOrder === 'descending') {
|
||||
this.nowOrder=1
|
||||
}
|
||||
break
|
||||
|
||||
}
|
||||
}
|
||||
this.getDomesticStandardTable()
|
||||
@@ -3180,6 +3219,10 @@ export default {
|
||||
if (res.data.list[i].attrInfoMap && res.data.list[i].attrInfoMap.ZCCSSRQ) {
|
||||
res.data.list[i].ZCCSSRQ = res.data.list[i].attrInfoMap.ZCCSSRQ.split(',')[0]
|
||||
}
|
||||
if (res.data.list[i].attrInfoMap && res.data.list[i].attrInfoMap.SSRQ) {
|
||||
res.data.list[i].SSRQ = res.data.list[i].attrInfoMap.SSRQ
|
||||
console.log(res.data.list[i].SSRQ);
|
||||
}
|
||||
}
|
||||
this.stahndinfoList = res.data.list
|
||||
this.total = res.data.count
|
||||
@@ -3845,12 +3888,12 @@ export default {
|
||||
type: 'SEL_OPTION',
|
||||
disabled: false
|
||||
},
|
||||
// {
|
||||
// label: '适用区域',
|
||||
// value: 'country',
|
||||
// type: 'SEL_OPTION',
|
||||
// disabled: false
|
||||
// },
|
||||
{
|
||||
label: '适用区域',
|
||||
value: 'country',
|
||||
type: 'SEL_OPTION',
|
||||
disabled: false
|
||||
},
|
||||
{
|
||||
label: '重要度',
|
||||
value: 'is_relate_access',
|
||||
@@ -4325,6 +4368,7 @@ export default {
|
||||
this.cysdOptions=res.data.WSCYSD;
|
||||
this.nylxOptions=res.data.NYLXCLASS;//能源类型
|
||||
this.syrzOptions=res.data.SYRZCLASS;//适用认证
|
||||
this.gkglbmOptions=res.data.GKGLBM;//归口管理部门
|
||||
|
||||
this.getGzzOption()
|
||||
this.setMap(this.standStateOptions)
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
</div>
|
||||
</el-card>
|
||||
<div class="action-bar">
|
||||
<el-button plain class="common-button-primary" v-btn-permission="''" size="mini" @click="addList">调取</el-button>
|
||||
<el-button plain class="common-button-primary" v-btn-permission="''" size="mini" @click="transfer">调取</el-button>
|
||||
<el-button plain class="common-button-primary" v-btn-permission="''" size="mini" @click="deleteList">批量删除
|
||||
</el-button>
|
||||
<el-button class="common-button-default export-button"
|
||||
@@ -174,9 +174,144 @@
|
||||
<!-- 调取弹窗 -->
|
||||
<el-drawer
|
||||
title="调取"
|
||||
:visible.sync="standModel"
|
||||
:visible.sync="detailedListModel"
|
||||
size="900px"
|
||||
custom-class="demo-drawer"
|
||||
>
|
||||
<div class="demo-drawer-content">
|
||||
<div style="position: absolute;bottom: 48px;top:16px;left: 0;right: 0">
|
||||
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
|
||||
<!-- 顶部工具栏 -->
|
||||
<table-tools-bar>
|
||||
<div slot="left">
|
||||
<div class="search-area">
|
||||
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form">
|
||||
<el-form-item label="车型类别" class="search-item search-item-last">
|
||||
<el-input
|
||||
v-model="sarSarAccessEOSearch.projectName"
|
||||
placeholder="请输入车型类别"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="清单名称" class="search-item search-item-last">
|
||||
<el-input
|
||||
v-model="sarSarAccessEOSearch.detailedListName"
|
||||
placeholder="请输入清单名称"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
type="primary"
|
||||
class="common-button-primary"
|
||||
size="small"
|
||||
@click="searchSarAccess">
|
||||
查询
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
class="common-button-default"
|
||||
size="small"
|
||||
@click="clearSearchAccess">清空
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</div>
|
||||
</table-tools-bar>
|
||||
<el-table
|
||||
:data="sarAccessListDatas"
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%"
|
||||
border
|
||||
height="100%"
|
||||
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}"
|
||||
@selection-change="selectOne"
|
||||
ref="selection"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="projectName"
|
||||
label="车型类别"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="detailedListName"
|
||||
label="清单名称"
|
||||
align="center"
|
||||
width="260px"
|
||||
>
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <a class="table-jump" @click.stop="showTable(scope.row)">{{ scope.row.detailedListName }}</a>-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="detailedListState"
|
||||
label="清单状态"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.detailedListState === '0'">未发布</span>
|
||||
<span v-if="scope.row.detailedListState === '1'">已发布</span>
|
||||
<span v-if="scope.row.detailedListState === '3'">审核中</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="detailedListVision"
|
||||
label="清单版本"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span
|
||||
v-if="scope.row.detailedListVision != null && scope.row.detailedListVision !== ''">{{ scope.row.detailedListVision
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="updateTime"
|
||||
label="更新时间"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div>{{ scope.row.updateTime ? $moment(scope.row.updateTime).format('YYYY-MM-DD') : scope.row.updateTime }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="updatePeople"
|
||||
label="更新人"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" size="mini" @click="getStandrd(scope.row)">获取标准</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<pagination
|
||||
:page="pageNo"
|
||||
:pageSize="pageSizeNo"
|
||||
:total="totalNo"
|
||||
@pageChange="pageChangeNo"
|
||||
@pageSizeChange="pageSizeChangeNo"
|
||||
style="position: absolute;"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="demo-drawer-footer">
|
||||
<el-button size="mini" @click="cancelDetailed">取消</el-button>
|
||||
</div>
|
||||
</el-drawer>
|
||||
<!-- 获取标准弹窗 -->
|
||||
<el-drawer
|
||||
title="获取标准"
|
||||
:visible.sync="standModel"
|
||||
size="900px"
|
||||
custom-class="demo-drawer"
|
||||
>
|
||||
<div class="demo-drawer-content">
|
||||
<div style="position: absolute;bottom: 48px;top:16px;left: 0;right: 0">
|
||||
@@ -204,16 +339,15 @@
|
||||
</el-formItem>
|
||||
<el-formItem class="search-item btn-box">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
class="common-button-primary"
|
||||
|
||||
@click="search">查询
|
||||
type="primary"
|
||||
size="mini"
|
||||
class="common-button-primary"
|
||||
@click="search">查询
|
||||
</el-button>
|
||||
<el-button
|
||||
class="common-button-default"
|
||||
size="mini"
|
||||
@click="clearSearch">清空
|
||||
class="common-button-default"
|
||||
size="mini"
|
||||
@click="clearSearch">清空
|
||||
</el-button>
|
||||
</el-formItem>
|
||||
</el-form>
|
||||
@@ -221,24 +355,24 @@
|
||||
</div>
|
||||
</table-tools-bar>
|
||||
<el-table
|
||||
:data="standardData"
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%"
|
||||
border
|
||||
ref="table"
|
||||
height="100%"
|
||||
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
||||
:data="standardData"
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%"
|
||||
border
|
||||
ref="table"
|
||||
height="100%"
|
||||
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}"
|
||||
@selection-change="selectThree"
|
||||
@selection-change="selectThree"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="code"
|
||||
label="标准号">
|
||||
prop="code"
|
||||
label="标准号">
|
||||
<template slot-scope="scope">
|
||||
<a v-if="scope.row.standYear" class="table-jump"
|
||||
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
|
||||
@@ -249,8 +383,8 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
label="标准名称"
|
||||
prop="standName"
|
||||
label="标准名称"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a class="table-jump"
|
||||
@@ -258,36 +392,28 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="issueTime"
|
||||
label="发布日期">
|
||||
prop="issueTime"
|
||||
label="发布日期">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="xcxssrq"
|
||||
label="新车型实施日期">
|
||||
prop="xcxssrqgj"
|
||||
label="新车型实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">
|
||||
{{
|
||||
scope.row.attrInfoCaseMap.xcxssrq ? $moment(scope.row.attrInfoCaseMap.xcxssrq).format('YYYY-MM-DD') : '-'
|
||||
}}
|
||||
</span>
|
||||
<span>{{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format('YYYY-MM-DD') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="zccssrq"
|
||||
label="在产车实施日期">
|
||||
show-overflow-tooltip
|
||||
prop="zccssrqgj"
|
||||
label="在产车实施日期">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">
|
||||
{{
|
||||
scope.row.attrInfoCaseMap.zccssrq ? $moment(scope.row.attrInfoCaseMap.zccssrq).format('YYYY-MM-DD') : '-'
|
||||
}}
|
||||
</span>
|
||||
<span>{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format('YYYY-MM-DD') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
show-overflow-tooltip
|
||||
prop="textStatus"
|
||||
label="文本状态">
|
||||
show-overflow-tooltip
|
||||
prop="textStatus"
|
||||
label="文本状态">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">
|
||||
{{ textStatusMap[scope.row.textStatus] }}
|
||||
@@ -297,12 +423,12 @@
|
||||
</el-table>
|
||||
</div>
|
||||
<pagination
|
||||
:page="pageNo"
|
||||
:pageSize="pageSizeNo"
|
||||
:total="totalNo"
|
||||
@pageChange="pageChangeNo"
|
||||
@pageSizeChange="pageSizeChangeNo"
|
||||
style="position: absolute;"
|
||||
:page="pageDo"
|
||||
:pageSize="pageSizeDo"
|
||||
:total="totalDo"
|
||||
@pageChange="pageChangeDo"
|
||||
@pageSizeChange="pageSizeChangeDo"
|
||||
style="position: absolute;"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -340,17 +466,25 @@ export default {
|
||||
standCommonlySearch: {
|
||||
standSort: '',
|
||||
standNumber: '',
|
||||
standType: ''
|
||||
standType: '',
|
||||
page: 1,
|
||||
Size: this.$store.getters.userInfo.configContent
|
||||
},
|
||||
//用来存放项目id
|
||||
sarAccessListDatas: [],
|
||||
proId: '',
|
||||
size: this.$store.getters.userInfo.configContent,
|
||||
pageSizeNo: this.$store.getters.userInfo.configContent,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
pageNo: 1,
|
||||
pageDo: 1,
|
||||
pageSizeDo: this.$store.getters.userInfo.configContent,
|
||||
standardData: [], //添加标准数据
|
||||
detailedId: '', //清单id
|
||||
totalNo: 0,
|
||||
totalDo: 0,
|
||||
standModel: false, // 选择标准抽屉状态
|
||||
detailedListModel: false, //调取清单的抽屉状态
|
||||
selectList: [], //选择标准的选择框
|
||||
selectList1: [], //选择标准的选择框
|
||||
dataList: [],//清单里的标准数据
|
||||
@@ -361,6 +495,11 @@ export default {
|
||||
Height: 0,
|
||||
localProEO: {},
|
||||
localProLib: {},
|
||||
// 查询相关参数
|
||||
sarSarAccessEOSearch: {
|
||||
projectName: "",
|
||||
detailedListName: "",
|
||||
},
|
||||
takeingFlag: false,
|
||||
exportModelFlag: false,
|
||||
exportName: '',
|
||||
@@ -373,18 +512,29 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 搜索
|
||||
//搜索清单
|
||||
searchSarAccess(){
|
||||
this.pageDo = 1
|
||||
this.pageSizeDo = this.$store.getters.userInfo.configContent;
|
||||
this.transfer()
|
||||
},
|
||||
// 搜索标准
|
||||
search() {
|
||||
this.pageNo = 1
|
||||
this.pageSizeNo = this.$store.getters.userInfo.configContent;
|
||||
this.addList()
|
||||
this.getStand()
|
||||
},
|
||||
clearSearchAccess(){
|
||||
this.sarSarAccessEOSearch.projectName = ''
|
||||
this.sarSarAccessEOSearch.detailedListName = ''
|
||||
this.transfer()
|
||||
},
|
||||
clearSearch() {
|
||||
this.pageNo = 1
|
||||
this.standCommonlySearch.standSort = ''
|
||||
this.standCommonlySearch.standNumber = ''
|
||||
this.standCommonlySearch.standType = ''
|
||||
this.addList()
|
||||
this.getStand()
|
||||
},
|
||||
pageChange(page) {
|
||||
this.page = page;
|
||||
@@ -396,36 +546,76 @@ export default {
|
||||
},
|
||||
pageChangeNo(page) {
|
||||
this.pageNo = page
|
||||
this.addList()
|
||||
this.getStand()
|
||||
},
|
||||
pageChangeDo(page){
|
||||
this.pageDo = page
|
||||
this.transfer()
|
||||
},
|
||||
pageSizeChangeDo(pageSize){
|
||||
this.pageDo = pageSize
|
||||
this.transfer()
|
||||
},
|
||||
pageSizeChangeNo(pageSize) {
|
||||
this.pageSizeNo = this.$store.getters.userInfo.configContent;
|
||||
this.addList()
|
||||
|
||||
this.pageSizeNo = pageSize
|
||||
this.getStand()
|
||||
},
|
||||
//添加标准select的改变
|
||||
selectThree(data) {
|
||||
this.standList = data;
|
||||
},
|
||||
//点击添加事件
|
||||
addList() {
|
||||
this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", {
|
||||
page: this.pageNo,
|
||||
pageSize: this.pageSizeNo,
|
||||
standSort: this.standCommonlySearch.standSort,
|
||||
standNumber: this.standCommonlySearch.standNumber,
|
||||
standType: this.standCommonlySearch.standType
|
||||
// 表格选择框
|
||||
selectOne(data) {
|
||||
this.selectedList = [];
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
this.selectedList.push(data[i].id);
|
||||
}
|
||||
},
|
||||
// 点击 table查看按钮 事件
|
||||
showTable(item) {
|
||||
sessionStorage.setItem("accessRow", JSON.stringify(item));
|
||||
this.$store.commit("setDetailMap", this.$route.path);
|
||||
this.$router.push({
|
||||
name: "AccessStandardDetails",
|
||||
params: {
|
||||
id: item.id
|
||||
}
|
||||
});
|
||||
},
|
||||
//点击获取项目清单
|
||||
transfer(){
|
||||
this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
|
||||
page: 1,
|
||||
pageSize: this.pageSize,
|
||||
...this.sarSarAccessEOSearch,
|
||||
sortKey: 2
|
||||
}, {
|
||||
_this: this,
|
||||
_this: this
|
||||
}, res => {
|
||||
console.log('res')
|
||||
console.log(res)
|
||||
this.standardData = res.data.list;
|
||||
this.totalNo = res.data.count
|
||||
this.sarAccessListDatas = res.data.records;
|
||||
this.sarSarAccessEOSearch.page = 1
|
||||
this.totalNo = res.data.total
|
||||
this.detailedListModel = true
|
||||
}, e => {
|
||||
});
|
||||
this.standModel = true;
|
||||
},
|
||||
//点击添加标准事件
|
||||
// addList() {
|
||||
// this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", {
|
||||
// page: this.pageNo,
|
||||
// pageSize: this.pageSizeNo,
|
||||
// standSort: this.standCommonlySearch.standSort,
|
||||
// standNumber: this.standCommonlySearch.standNumber,
|
||||
// standType: this.standCommonlySearch.standType
|
||||
// }, {
|
||||
// _this: this,
|
||||
// }, res => {
|
||||
// this.standardData = res.data.list;
|
||||
// this.totalNo = res.data.count
|
||||
// }, e => {
|
||||
// });
|
||||
// this.standModel = true;
|
||||
// },
|
||||
// 点击批量删除事件
|
||||
deleteList() {
|
||||
if (this.selectList.length < 1) {
|
||||
@@ -488,6 +678,10 @@ export default {
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
//调取清单取消事件
|
||||
cancelDetailed(){
|
||||
this.detailedListModel = false;
|
||||
},
|
||||
//添加标准取消事件
|
||||
cancelStand() {
|
||||
this.standModel = false;
|
||||
@@ -537,6 +731,23 @@ export default {
|
||||
_this.standModel = false;
|
||||
}
|
||||
},
|
||||
//获取标准
|
||||
getStandrd(data){
|
||||
this.detailedId = data.id
|
||||
this.getStand();
|
||||
},
|
||||
getStand(data){
|
||||
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", {
|
||||
id:this.detailedId,
|
||||
...this.standCommonlySearch,
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.standardData = res.data.records
|
||||
this.totalDo = res.data.total
|
||||
this.standModel = true;
|
||||
})
|
||||
},
|
||||
//选择清单确定事件
|
||||
OkDrawer() {
|
||||
if (this.selectList.length === 1) {
|
||||
@@ -587,7 +798,6 @@ export default {
|
||||
window.open(routeUrl.href, '_blank')
|
||||
},
|
||||
back() {
|
||||
console.log(this.$route.query.tabName);
|
||||
this.$router.push({
|
||||
path: this.$store.state.detailMap,
|
||||
query: {
|
||||
@@ -597,9 +807,7 @@ export default {
|
||||
this.$store.commit('setDetailMap', '')
|
||||
},
|
||||
showLocalProductData(item) {
|
||||
console.log(item)
|
||||
this.localProEO = JSON.parse(JSON.stringify(item))
|
||||
console.log(this.localProEO)
|
||||
this.proId = this.localProEO.id
|
||||
// 查询详情表格数据
|
||||
this.$http.get('sarStandProjectLibrary/queryStandInfo', {
|
||||
@@ -609,7 +817,6 @@ export default {
|
||||
loading: 'loading'
|
||||
}, res => {
|
||||
this.dataList = res.data.records
|
||||
console.log(res)
|
||||
this.total = res.data.total
|
||||
}, e => {
|
||||
})
|
||||
@@ -645,7 +852,6 @@ export default {
|
||||
}
|
||||
this.exportName = ''
|
||||
this.exportModelFlag = true
|
||||
console.log(this.saveExportType);
|
||||
},
|
||||
//取消导出
|
||||
cancal() {
|
||||
@@ -655,19 +861,16 @@ export default {
|
||||
exportTestItem() {
|
||||
if (this.saveExportType === 'apart') {
|
||||
if (this.selectList != null && this.selectList != '') {
|
||||
console.log(this.selectList);
|
||||
let ids = '\'' + this.selectList[0].standId + '\''
|
||||
for (let i = 1; i < this.selectList.length; i++) {
|
||||
ids += ',\'' + this.selectList[i].standId + '\''
|
||||
}
|
||||
const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' +
|
||||
'exportType' + this.saveExportType + '&ids=' + ids + '&exportName=' + this.exportName + '&id=' + this.localProEO.id
|
||||
console.log(exportURL, '_self')
|
||||
window.open(exportURL, '_self')
|
||||
this.$message.success('导出信息成功')
|
||||
}
|
||||
} else if (this.saveExportType === 'all') {
|
||||
console.log(this.selectList);
|
||||
let ids = ''
|
||||
if (this.dataList.length === 0) {
|
||||
this.$message.error('暂无导出数据')
|
||||
@@ -680,7 +883,6 @@ export default {
|
||||
}
|
||||
const exportURL = interfaceUrl + 'sarStandProjectLibrary/exportStandAttrInfoExcel?' +
|
||||
'exportType' + this.saveExportType + '&ids=' + ids + '&exportName=' + this.exportName + '&id=' + this.localProEO.id
|
||||
console.log(exportURL, '_self')
|
||||
window.open(exportURL, '_self')
|
||||
this.$message.success('导出信息成功')
|
||||
}
|
||||
@@ -733,7 +935,6 @@ export default {
|
||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||
this.setMap(this.zrbmMap, res.data.ZRBMCLASS)
|
||||
this.setMap(this.textStatusMap, res.data.WBZTCLASS)
|
||||
console.log(this.getLocalPro)
|
||||
this.showLocalProductData(this.getLocalPro)
|
||||
}, e => {
|
||||
})
|
||||
|
||||
+1
-1
@@ -198,7 +198,7 @@
|
||||
<el-table-column
|
||||
width="150px"
|
||||
align="center"
|
||||
prop="standardInfo"
|
||||
prop="clauseName"
|
||||
label="条款名称">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
||||
@@ -3,87 +3,287 @@
|
||||
<div class="partCodeApply" id="partCodeApply">
|
||||
<!--搜索区域-->
|
||||
<div class="search-area">
|
||||
<div class="content-top">
|
||||
<el-form inline class="label-input-form">
|
||||
<el-form-item label="子组号" class="search-item">
|
||||
<el-input placeholder="根据子组号查询" clearable :maxlength="100">
|
||||
<el-form inline class="label-input-form" v-model="searchFormData">
|
||||
<el-form-item label="子组号" class="search-item">
|
||||
<el-input placeholder="根据子组号查询" clearable :maxlength="100" v-model="searchFormData.subgroupNumber">
|
||||
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="分组号" class="search-item">
|
||||
<el-input placeholder="根据分组号查询" clearable :maxlength="100">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="分组代号" class="search-item">
|
||||
<el-input placeholder="根据分组代号查询" clearable :maxlength="100" v-model="searchFormData.groupCode">
|
||||
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="零件分类号" class="search-item">
|
||||
<el-input placeholder="根据零件分类号查询" clearable :maxlength="100">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="零件分类号" class="search-item">
|
||||
<el-input placeholder="根据零件分类代号查询" clearable :maxlength="100" v-model="searchFormData.partCategoryCode">
|
||||
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" size="mini" class="common-button-primary">
|
||||
查询
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button size="mini" class="common-button-default">
|
||||
清空
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" size="mini" v-btn-permission="'02424c2bc370ee846aa5a6d60c49a6a5'"
|
||||
class="common-button-primary" @click="getTableByPage('')">
|
||||
查询
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button size="mini" v-btn-permission="'c5b873fcb659afb230db133e7e4706c8'" class="common-button-default"
|
||||
@click="clearAllSearch">
|
||||
清空
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<!--操作区域-->
|
||||
<div class="operation_area">
|
||||
<div class="content-center">
|
||||
<el-button type="primary" size="mini" class="common-button-primary">
|
||||
<i class="iconfont"></i>
|
||||
导出
|
||||
</el-button>
|
||||
<el-button type="primary" size="mini" class="common-button-primary">
|
||||
<i class="iconfont"></i>
|
||||
删除
|
||||
</el-button>
|
||||
</div>
|
||||
<el-button type="primary" size="mini" class="common-button-primary" @click="exportPartInfo()"
|
||||
v-btn-permission="'2b196e3179b073436deb9c64251ddb3d'" title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项">
|
||||
<i class="iconfont"></i>
|
||||
导出
|
||||
</el-button>
|
||||
<el-button type="primary" size="mini" v-btn-permission="'9caea8a46be62a0ae0600de35bad6539'"
|
||||
class="common-button-primary" @click="deletePartCode('demore',null)">
|
||||
<i class="iconfont"></i>
|
||||
删除
|
||||
</el-button>
|
||||
</div>
|
||||
<!--表格区域-->
|
||||
<div class="table_area">
|
||||
<div class="container">
|
||||
<loading :loading="loading"></loading>
|
||||
<loading :loading="loading">数据获取中...</loading>
|
||||
<!--表头-->
|
||||
<div class="table-wrap">
|
||||
<div class="inner-wrap">
|
||||
<el-table>
|
||||
<el-table-column type="selection" align="center"></el-table-column>
|
||||
<el-table-column label="序号"></el-table-column>
|
||||
<el-table-column label="子组号"></el-table-column>
|
||||
<el-table-column label="子组结构号"></el-table-column>
|
||||
<el-table-column label="子组结构名称"></el-table-column>
|
||||
<el-table-column label="分组代号"></el-table-column>
|
||||
<el-table-column label="零部件分类名称"></el-table-column>
|
||||
<el-table-column label="零部件分类代号"></el-table-column>
|
||||
<el-table-column label="备注"></el-table-column>
|
||||
<el-table-column label="操作"></el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<el-table
|
||||
:data="partCodeList"
|
||||
tooltip-effect="dark"
|
||||
height="100%"
|
||||
border
|
||||
style="width: 99%"
|
||||
class="table"
|
||||
v-loading="tableLoading.loadData"
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||
fontWeight: 'bold', height: '48px'}"
|
||||
@selection-change="selectOne"
|
||||
ref="selection">
|
||||
<el-table-column type="selection" align="center"></el-table-column>
|
||||
<el-table-column label="子组号" prop="subgroupNumber" align="center"></el-table-column>
|
||||
<el-table-column label="子组结构号" prop="subgroupStructureNumber" align="center"></el-table-column>
|
||||
<el-table-column label="子组结构名称" prop="subgroupStructureName" align="center"></el-table-column>
|
||||
<el-table-column label="分组代号" prop="groupCode" align="center"></el-table-column>
|
||||
<el-table-column label="零部件分类名称" prop="partCategoryName" align="center"></el-table-column>
|
||||
<el-table-column label="零部件分类代号" prop="partCategoryCode" align="center"></el-table-column>
|
||||
<el-table-column label="备注" prop="remarks" align="center"></el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<!--表头-->
|
||||
</div>
|
||||
</div>
|
||||
<!--分页区域-->
|
||||
<div class="page_area">
|
||||
<pagination :page="pageNo" :total="total" @pageChange="pageChange"
|
||||
@pageSizeChange="pageSizeChange"></pagination>
|
||||
</div>
|
||||
<!--导出模态框区域-->
|
||||
<el-dialog :visible.sync="exportModelFlag" title="导出文件" width="300px">
|
||||
<el-form :inline="true" class="label-input-form search-area">
|
||||
<el-form-item label="导出名称" class="search-item">
|
||||
<el-input v-model="exportName" placeholder="请输入导出文件名称" :maxlength="30" clearable label="导出名称"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="demo-drawer-footer">
|
||||
<el-button size="mini" class="common-button-default" icon="el-icon-close" @click="cancal">取消</el-button>
|
||||
<el-button type="primary" size="mini" class="common-button-primary" icon="el-icon-check"
|
||||
@click="exportTestItem">提交</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {interfaceUrl} from "@/sysConfig";
|
||||
|
||||
export default {
|
||||
name: "partCodeApply",
|
||||
data() {
|
||||
return {
|
||||
loading: false
|
||||
//零部件编号表格数据
|
||||
partCodeList: [],
|
||||
//当前页数
|
||||
pageNo: 1,
|
||||
//总数
|
||||
total: 1,
|
||||
//搜索区域输入框的数据
|
||||
searchFormData: {
|
||||
//子组号
|
||||
subgroupNumber: "",
|
||||
//分组代号
|
||||
groupCode: "",
|
||||
//零件分类号
|
||||
partCategoryCode: ""
|
||||
},
|
||||
loading: false,
|
||||
tableLoading: {
|
||||
loadData: false
|
||||
},
|
||||
selectedList: [],//标准选中的数据
|
||||
saveExportType: '',// 导出文件模态框控制,和文件名称
|
||||
exportName: '',//导出文件的名称输入值
|
||||
exportModelFlag: false, //导出模态窗
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getTableByPage();
|
||||
},
|
||||
methods: {
|
||||
//导出
|
||||
exportPartInfo() {
|
||||
if (this.selectedList.length > 0) {
|
||||
this.saveExportType = 'apart'
|
||||
} else {
|
||||
this.saveExportType = 'all'
|
||||
}
|
||||
this.exportName = ''
|
||||
this.exportModelFlag = true
|
||||
console.log(this.saveExportType);
|
||||
},
|
||||
//取消导出
|
||||
cancal() {
|
||||
this.exportModelFlag = false
|
||||
},
|
||||
//确认导出
|
||||
exportTestItem() {
|
||||
if (this.saveExportType === 'apart') {
|
||||
if (this.selectedList != null && this.selectedList != '') {
|
||||
console.log(this.selectedList);
|
||||
const exportURL = interfaceUrl + 'sarStandPartCodeApply/exportPartInfoExcel?' +
|
||||
'exportType' + this.saveExportType + '&ids=' + this.selectedList.join(',') + '&exportName=' + this.exportName
|
||||
window.open(exportURL)
|
||||
this.$message.success('导出信息成功')
|
||||
}
|
||||
} else if (this.saveExportType === 'all') {
|
||||
console.log(this.selectedList);
|
||||
const exportURL = interfaceUrl + 'sarStandPartCodeApply/exportPartInfoExcel?' +
|
||||
'exportType' + this.saveExportType + '&ids=' + this.selectedList.join(',') + '&exportName=' + this.exportName
|
||||
window.open(exportURL)
|
||||
this.$message.success('导出信息成功')
|
||||
}
|
||||
this.exportModelFlag = false
|
||||
this.selectedList = []
|
||||
},
|
||||
// 表格选择框
|
||||
selectOne(data) {
|
||||
this.selectedList = [];
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
this.selectedList.push(data[i].id);
|
||||
}
|
||||
},
|
||||
// 批量删除
|
||||
deletePartCode(flag, id) {
|
||||
if (flag === 'delOne') {
|
||||
this.selectedList = [];
|
||||
this.selectedList[0] = id;
|
||||
}
|
||||
if (this.selectedList.length === 0) {
|
||||
this.$message.warning('请选择要删除的数据')
|
||||
} else {
|
||||
this.$confirm('确定删除这些数据?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
confirmButtonClass: 'common-button-primary',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
}).then(() => {
|
||||
const URL = `sarStandPartCodeApply/deleteListAll?idList=${this.selectedList.join(',')}`
|
||||
this.$http.postDelete(URL, {}, res => {
|
||||
this.getTableByPage();
|
||||
this.selectedList = [];
|
||||
this.$message.success('删除成功')
|
||||
}, e => {
|
||||
});
|
||||
}).catch(() => {
|
||||
|
||||
})
|
||||
}
|
||||
},
|
||||
// 查询零部件table列表
|
||||
getTableByPage() {
|
||||
this.tableLoading.loadData = true
|
||||
//后端的controller接口
|
||||
this.$http.get('sarStandPartCodeApply', {
|
||||
...this.searchFormData,
|
||||
current: this.pageNo,
|
||||
size: this.$store.getters.userInfo.configContent
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.tableLoading.loadData = false
|
||||
this.total = res.data.total
|
||||
this.partCodeList = res.data.records
|
||||
}, e => {
|
||||
this.tableLoading.loadData = false
|
||||
})
|
||||
},
|
||||
// 清空 查询条件
|
||||
clearAllSearch() {
|
||||
this.searchFormData = {
|
||||
//子组号
|
||||
subgroupNumber: "",
|
||||
//分组代号
|
||||
groupCode: "",
|
||||
//零件分类号
|
||||
partCategoryCode: ""
|
||||
}
|
||||
this.getTableByPage()
|
||||
},
|
||||
// 分页事件
|
||||
pageChange(page) {
|
||||
this.pageNo = page
|
||||
this.getTableByPage()
|
||||
},
|
||||
pageSizeChange(pageSize) {
|
||||
console.log(pageSize);
|
||||
this.getTableByPage()
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="less" scoped>
|
||||
#partCodeApply {
|
||||
height: 100%;
|
||||
background-color: #ffffff;
|
||||
padding-left: 10px;
|
||||
|
||||
.search-area {
|
||||
/deep/ .el-input__inner {
|
||||
width: 185px;
|
||||
}
|
||||
}
|
||||
|
||||
.table_area {
|
||||
display: flex;
|
||||
height: calc(100% - 115px);
|
||||
|
||||
.container {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
|
||||
.table-wrap {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.operation_area {
|
||||
padding: 4px 0 14px 10px;
|
||||
}
|
||||
|
||||
.page_area {
|
||||
// /deep/只在当前页面修改elementui的默认样式
|
||||
/deep/ .pagination-slot {
|
||||
padding-left: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user