Merge branch 'develop' into 'test'

Develop

See merge request !84
This commit is contained in:
王夏晖
2021-08-16 08:32:05 +00:00
18 changed files with 2558 additions and 2213 deletions
@@ -538,7 +538,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="interpretationContent" prop="readContent"
label="解读内容" label="解读内容"
show-overflow-tooltip show-overflow-tooltip
> >
+16 -1
View File
@@ -2,7 +2,7 @@
<template> <template>
<div class="release"> <div class="release">
<ul> <ul>
<li v-for="item in standardReleaseList" :key="item.id" class="time-title"> <li v-for="item in standardReleaseList" :key="item.id" class="time-title" v-if="updateTime>=item.issueTime">
<a @click="handlePreview(item)" class="table-jump">{{ item.standName }}</a> <a @click="handlePreview(item)" class="table-jump">{{ item.standName }}</a>
<span class="time">{{item.issueTime }}</span> <span class="time">{{item.issueTime }}</span>
</li> </li>
@@ -19,6 +19,7 @@ export default {
return { return {
putTime: '', putTime: '',
standardReleaseList: [], //标准发布数据 standardReleaseList: [], //标准发布数据
updateTime:""
} }
}, },
computed: {}, computed: {},
@@ -26,8 +27,22 @@ export default {
mounted() { mounted() {
this.getDate() this.getDate()
this.getAdvice() this.getAdvice()
this.addDate()
}, },
methods: { methods: {
//获取当前年月日
addDate(){
const nowDate = new Date();
const date = {
year: nowDate.getFullYear(),
month: nowDate.getMonth() + 1,
date: nowDate.getDate(),
}
const newmonth = date.month>10?date.month:'0'+date.month
const day = date.date>10?date.date:'0'+date.date
this.updateTime = date.year + '-' + newmonth + '-' + day
console.log("当前时间"+this.updateTime)
},
// 点击查看 // 点击查看
handlePreview (item) { handlePreview (item) {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
@@ -407,8 +407,8 @@
arr = data.itemList arr = data.itemList
} }
arr.forEach(item => { arr.forEach(item => {
item.zxUserId = '' item.zxUserId = item.zxUserId || ''
item.zxUserIdName = '' item.zxUserIdName = item.zxUserIdName || ''
}) })
this.itemList = arr this.itemList = arr
this.loading = false this.loading = false
@@ -26,7 +26,7 @@
<el-form-item label="选择清单" prop="orgName" class="add-form-item form-item-disabled"> <el-form-item label="选择清单" prop="orgName" class="add-form-item form-item-disabled">
<el-radio-group v-model="listType" @change="selectionList"> <el-radio-group v-model="listType" @change="selectionList">
<el-radio label="country">国家/地区清单</el-radio> <el-radio label="country">国家/地区清单</el-radio>
<el-radio label="project">项目清单</el-radio> <el-radio label="project">车型类别清单</el-radio>
<el-radio label="other">其他清单</el-radio> <el-radio label="other">其他清单</el-radio>
</el-radio-group> </el-radio-group>
<el-button size="mini" type="primary" style="margin-left: 40px;" @click="choiceShow"> <el-button size="mini" type="primary" style="margin-left: 40px;" @click="choiceShow">
@@ -377,7 +377,7 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="projectName" prop="carType"
label="项目名称" label="项目名称"
align="center"> align="center">
</el-table-column> </el-table-column>
@@ -947,6 +947,20 @@ export default {
_this: this _this: this
}, res => { }, 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.total = res.data.total; this.total = res.data.total;
}, e => { }, e => {
}); });
@@ -1384,6 +1398,7 @@ export default {
this.$http.get("sys/dictype/getDicTypeListCode", {}, { this.$http.get("sys/dictype/getDicTypeListCode", {}, {
_this: this _this: this
}, res => { }, res => {
this.energyKindOptions = res.data.ENERGYTYPES //适用车型
this.countryOptions = res.data.COUNTRY; this.countryOptions = res.data.COUNTRY;
this.standStateOptions = res.data.WBZTCLASS; // 文本状态 this.standStateOptions = res.data.WBZTCLASS; // 文本状态
this.setMap(this.standStateOptions); this.setMap(this.standStateOptions);
@@ -26,7 +26,7 @@
<el-form-item label="选择清单" prop="orgName" class="add-form-item form-item-disabled"> <el-form-item label="选择清单" prop="orgName" class="add-form-item form-item-disabled">
<el-radio-group v-model="listType" @change="selectionList"> <el-radio-group v-model="listType" @change="selectionList">
<el-radio label="country">国家/地区清单</el-radio> <el-radio label="country">国家/地区清单</el-radio>
<el-radio label="project">项目清单</el-radio> <el-radio label="project">车型类别清单</el-radio>
<el-radio label="other">其他清单</el-radio> <el-radio label="other">其他清单</el-radio>
</el-radio-group> </el-radio-group>
<el-button size="mini" type="primary" style="margin-left: 40px;" @click="choiceShow"> <el-button size="mini" type="primary" style="margin-left: 40px;" @click="choiceShow">
@@ -380,8 +380,8 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="projectName" prop="carType"
label="项目名称" label="车型类别"
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -913,6 +913,20 @@ export default {
_this: this _this: this
}, res => { }, 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.total = res.data.total; this.total = res.data.total;
}, e => { }, e => {
}); });
@@ -994,8 +1008,6 @@ export default {
}, },
// 点击批量删除事件 // 点击批量删除事件
deleteList() { deleteList() {
console.log(this.selectList);
console.log(this.dataList);
if (this.selectList.length < 1) { if (this.selectList.length < 1) {
this.$message.warning("请选择一条数据进行删除"); this.$message.warning("请选择一条数据进行删除");
} else { } else {
@@ -1011,10 +1023,8 @@ export default {
index = this.dataList.findIndex(items => { index = this.dataList.findIndex(items => {
return items.id === item; return items.id === item;
}); });
console.log(index);
if (index > -1) { if (index > -1) {
this.dataList.splice(index, 1); this.dataList.splice(index, 1);
console.log(this.dataList);
} }
exits.push(item); exits.push(item);
}); });
@@ -1363,6 +1373,7 @@ export default {
this.$http.get("sys/dictype/getDicTypeListCode", {}, { this.$http.get("sys/dictype/getDicTypeListCode", {}, {
_this: this _this: this
}, res => { }, res => {
this.energyKindOptions = res.data.ENERGYTYPES //适用车型
this.countryOptions = res.data.COUNTRY; this.countryOptions = res.data.COUNTRY;
this.standStateOptions = res.data.WBZTCLASS; // 文本状态 this.standStateOptions = res.data.WBZTCLASS; // 文本状态
this.setMap(this.standStateOptions); this.setMap(this.standStateOptions);
@@ -122,6 +122,7 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="add-form-item form-item-disabled" style="margin-left: -210px"> <el-form-item class="add-form-item form-item-disabled" style="margin-left: -210px">
<el-button <el-button
type="primary" type="primary"
@@ -1456,9 +1457,13 @@
{ type: 'number', message: '年标准年份必须为数字值'} { type: 'number', message: '年标准年份必须为数字值'}
], ],
standName: [ standName: [
{ required: true, message: '请输入标准名称', trigger: 'blur' }, { required: true, message: '请输入标准中文名称', trigger: 'blur' },
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' } { min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' }
], ],
standEnName: [
{ required: true, message: '请输入标准英文名称', trigger: 'blur' },
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' }
],
standNature: [ standNature: [
{ required: true, message: '请选择标准性质', trigger: 'change' } { required: true, message: '请选择标准性质', trigger: 'change' }
], ],
@@ -30,7 +30,6 @@
<el-input <el-input
v-model="listForm.projectNumber" v-model="listForm.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -38,7 +37,6 @@
<el-input <el-input
v-model="listForm.projectName" v-model="listForm.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -68,8 +66,10 @@
label="标准号" label="标准号"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a> <a v-if="scope.row.standYear" class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSort
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }} {{ scope.row.standNumber }}</a> }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSort }}
{{ scope.row.standNumber }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -265,14 +265,12 @@
<el-input <el-input
v-model="projectSearch.projectNumber" v-model="projectSearch.projectNumber"
placeholder="请输入项目编号" placeholder="请输入项目编号"
disabled
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称" class="search-item search-item-last"> <el-form-item label="项目名称" class="search-item search-item-last">
<el-input <el-input
v-model="projectSearch.projectName" v-model="projectSearch.projectName"
placeholder="请输入项目名称" placeholder="请输入项目名称"
disabled
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
@@ -368,13 +366,13 @@ export default {
active: "1", //当前选中的type active: "1", //当前选中的type
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
commentText: '', commentText: "",
//表单的数据 //表单的数据
listForm: { listForm: {
projectNumber: "", //项目编号 projectNumber: "", //项目编号
projectName: "", //项目名称 projectName: "", //项目名称
dataList: [], //项目下的标准数据 dataList: [], //项目下的标准数据
breakdownList: [], //标准下的分解单数据 breakdownList: [] //标准下的分解单数据
}, },
dataList: [], //下面标准的数据 dataList: [], //下面标准的数据
breakdownList: [], //标准下的条款数据 breakdownList: [], //标准下的条款数据
@@ -461,8 +459,8 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.ProjectDatas = res.data.Maintenance.records; this.ProjectDatas = res.data.Maintenance.records;
this.total = res.data.Maintenance.total
}); });
}, },
//点击清空按钮事件 //点击清空按钮事件
clearSearch() { clearSearch() {
@@ -514,7 +512,7 @@ export default {
{ {
_this: this _this: this
}, res => { }, res => {
this.listForm.breakdownList = res.data this.listForm.breakdownList = res.data;
}); });
}, },
//标准的多选框改变 //标准的多选框改变
@@ -528,79 +526,83 @@ export default {
}, },
// 点击查看 // 点击查看
handlePreview (item) { handlePreview(item) {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails', name: "OtherStandardDetails",
params: { params: {
id: item.standId, id: item.standId,
pageType: 'INLAND_STAND' pageType: "INLAND_STAND"
} }
}) });
window.open(routeUrl.href, '_blank') window.open(routeUrl.href, "_blank");
}, },
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
}, },
//流程保存事件 //流程保存事件
handleSave(){ handleSave() {
this.saveLoading = true this.saveLoading = true;
let _formData = new FormData() let _formData = new FormData();
_formData.append('id', this.bpnId || '') _formData.append("id", this.bpnId || "");
_formData.append('createUser', this.$store.getters.userInfo.userId) _formData.append("createUser", this.$store.getters.userInfo.userId);
_formData.append('createUserName', this.$store.getters.userInfo.userName) _formData.append("createUserName", this.$store.getters.userInfo.userName);
_formData.append('prcType', '6') _formData.append("prcType", "6");
_formData.append('json', JSON.stringify({ _formData.append("json", JSON.stringify({
form: this.form, form: this.form,
roleForm: this.roleForm, roleForm: this.roleForm,
commentText: this.commentText commentText: this.commentText
})) }));
saveTaskFirst(_formData).then(res => { saveTaskFirst(_formData).then(res => {
this.saveLoading = false this.saveLoading = false;
this.$message.success('保存成功') this.$message.success("保存成功");
this.bpnId = res.result this.bpnId = res.result;
}).catch(e => { }).catch(e => {
this.saveLoading = false this.saveLoading = false;
}) });
}, },
//流程提交事件 //流程提交事件
handleSubmit(){ handleSubmit() {
this.listForm.commentText = this.commentText; if (this.listForm.dataList.length < 1) {
var json = Object.assign(this.listForm, this.roleForm) this.$message.warning("请选择带标准的项目");
json.prcCreateUser = this.$store.getters.userInfo.userId; } else {
json.prcCreateUserName = this.$store.getters.userInfo.uName; this.listForm.commentText = this.commentText;
json.standId = this.listForm.standId; var json = Object.assign(this.listForm, this.roleForm);
this.$refs['listForm'].validate((valid) => { json.prcCreateUser = this.$store.getters.userInfo.userId;
if (valid) { json.prcCreateUserName = this.$store.getters.userInfo.uName;
this.$refs['roleForm'].validate((valid) => { json.standId = this.listForm.standId;
if (valid) { this.$refs["listForm"].validate((valid) => {
this.isSubmit = true if (valid) {
this.$http.get("lawss/activiti/startProcess", { type: "6" }, { this.$refs["roleForm"].validate((valid) => {
_this: this if (valid) {
}, res => { this.isSubmit = true;
if (res.ok) { this.$http.get("lawss/activiti/startProcess", { type: "6" }, {
this.$http.post("lawss/activiti/completeTask", { _this: this
taskIds: res.data, }, res => {
userId: this.$store.getters.userInfo.userId, if (res.ok) {
json: JSON.stringify(json) this.$http.post("lawss/activiti/completeTask", {
}, { taskIds: res.data,
_this: this userId: this.$store.getters.userInfo.userId,
}, res => { json: JSON.stringify(json)
if (res.success) { }, {
this.$message.success(res.message); _this: this
this.$router.push("/processCenter"); }, res => {
} if (res.success) {
this.isSubmit = false this.$message.success(res.message);
}); this.$router.push("/processCenter");
} }
}); this.isSubmit = false;
} else { });
return this.$message.warning("请完善人员信息"); }
} });
}); } else {
} else { return this.$message.warning("请完善人员信息");
return this.$message.warning("请完善基础信息"); }
} });
}); } else {
return this.$message.warning("请完善基础信息");
}
});
}
}, },
choiceZRR(type, title, id) { choiceZRR(type, title, id) {
this.nodeList = []; this.nodeList = [];
@@ -450,10 +450,10 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
if(res.data === null){ if (res.data === null) {
this.ProjectDatas = '' this.ProjectDatas = "";
this.total = 0 this.total = 0;
}else{ } else {
this.ProjectDatas = res.data.Maintenance.records; this.ProjectDatas = res.data.Maintenance.records;
this.total = res.data.Maintenance.total; this.total = res.data.Maintenance.total;
} }
@@ -491,7 +491,6 @@ export default {
this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, { this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId }, {
_this: this _this: this
}, res => { }, res => {
console.log(res.data.records);
this.listForm.dataList = res.data.records; this.listForm.dataList = res.data.records;
this.dataList = res.data.records; this.dataList = res.data.records;
this.listForm.dataList.forEach(item => { this.listForm.dataList.forEach(item => {
@@ -525,7 +524,7 @@ export default {
{ {
_this: this _this: this
}, res => { }, res => {
this.listForm.breakdownList = res.data; this.listForm.breakdownList = res.data;
}); });
}, },
//标准的多选框改变 //标准的多选框改变
@@ -564,43 +563,47 @@ export default {
}, },
//流程提交事件 //流程提交事件
handleSubmit() { handleSubmit() {
this.listForm.commentText = this.commentText; if (this.listForm.dataList.length < 1) {
var json = Object.assign(this.listForm, this.roleForm); this.$message.warning("请选择带标准的项目");
json.prcCreateUser = this.$store.getters.userInfo.userId; } else {
json.prcCreateUserName = this.$store.getters.userInfo.uName; this.listForm.commentText = this.commentText;
json.standId = this.listForm.standId; var json = Object.assign(this.listForm, this.roleForm);
this.$refs["listForm"].validate((valid) => { json.prcCreateUser = this.$store.getters.userInfo.userId;
if (valid) { json.prcCreateUserName = this.$store.getters.userInfo.uName;
this.$refs["roleForm"].validate((valid) => { json.standId = this.listForm.standId;
if (valid) { this.$refs["listForm"].validate((valid) => {
this.isSubmit = true; if (valid) {
this.$http.get("lawss/activiti/startProcess", { type: "6" }, { this.$refs["roleForm"].validate((valid) => {
_this: this if (valid) {
}, res => { this.isSubmit = true;
if (res.ok) { this.$http.get("lawss/activiti/startProcess", { type: "6" }, {
this.$http.post("lawss/activiti/completeTask", { _this: this
taskIds: res.data, }, res => {
userId: this.$store.getters.userInfo.userId, if (res.ok) {
json: JSON.stringify(json) this.$http.post("lawss/activiti/completeTask", {
}, { taskIds: res.data,
_this: this userId: this.$store.getters.userInfo.userId,
}, res => { json: JSON.stringify(json)
if (res.success) { }, {
this.$message.success(res.message); _this: this
this.$router.push("/processCenter"); }, res => {
} if (res.success) {
this.isSubmit = false; this.$message.success(res.message);
}); this.$router.push("/processCenter");
} }
}); this.isSubmit = false;
} else { });
return this.$message.warning("请完善人员信息"); }
} });
}); } else {
} else { return this.$message.warning("请完善人员信息");
return this.$message.warning("请完善基础信息"); }
} });
}); } else {
return this.$message.warning("请完善基础信息");
}
});
}
}, },
// 点击查看 // 点击查看
handlePreview(item) { handlePreview(item) {
@@ -44,7 +44,8 @@
</process-title> </process-title>
<div class="tableTitle"> <div class="tableTitle">
<div class="tableButton"> <div class="tableButton">
<el-button plain class="common-button-primary" size="mini" @click="choiceZRRS('', 2, '')">批量分发责任人</el-button> <el-button plain class="common-button-primary" size="mini" @click="choiceZRRS('', 2, '')">批量分发责任人
</el-button>
</div> </div>
</div> </div>
<el-table <el-table
@@ -99,11 +100,11 @@
<el-input v-model="scope.row.workPeople" placeholder="请选择分发责任人" <el-input v-model="scope.row.workPeople" placeholder="请选择分发责任人"
@click.native="choiceZRRS(scope.row, 1, scope.$index)" /> @click.native="choiceZRRS(scope.row, 1, scope.$index)" />
</template> </template>
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <div :class="{'fileClass': !scope.row.workPeople}">--> <!-- <div :class="{'fileClass': !scope.row.workPeople}">-->
<!-- {{ scope.row.workPeople ? scope.row.workPeople : "" }}--> <!-- {{ scope.row.workPeople ? scope.row.workPeople : "" }}-->
<!-- </div>--> <!-- </div>-->
<!-- </template>--> <!-- </template>-->
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
@@ -259,7 +260,7 @@ export default {
userId: this.$store.getters.userInfo.userId, userId: this.$store.getters.userInfo.userId,
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId, pId: this.$route.query.prcId,
selectedId:'', selectedId: ""
}; };
}, },
methods: { methods: {
@@ -322,6 +323,7 @@ export default {
taskIds: this.taskIds, taskIds: this.taskIds,
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
console.log(res.mesg);
if (res) { if (res) {
const processForm = JSON.parse(res.mesg); const processForm = JSON.parse(res.mesg);
this.getFormFieldList(processForm); this.getFormFieldList(processForm);
@@ -413,9 +415,9 @@ export default {
}, e => { }, e => {
}); });
}, },
//批量分发按钮 //批量分发按钮
choiceZRRS(row, type, index) { choiceZRRS(row, type, index) {
this.selectedId=row.id this.selectedId = row.id;
this.type = type; this.type = type;
if (type === 1) { if (type === 1) {
this.drawerTitle = "选择责任人"; this.drawerTitle = "选择责任人";
@@ -458,36 +460,37 @@ export default {
//单选操作 //单选操作
if (this.type === 1) { if (this.type === 1) {
this.dataList.forEach(item => { this.dataList.forEach(item => {
if(item.children){ if (item.children) {
item.children.forEach(items => { item.children.forEach(items => {
if(items.id === this.selectedId){ if (items.id === this.selectedId) {
items.workPeople = data[0].name items.workPeople = data[0].name;
items.workPeopleId = data[0].id items.workPeopleId = data[0].id;
// this.$set(items,'workPeople',data[0].name) // this.$set(items,'workPeople',data[0].name)
//this.$set(items,'workPeopleId',data[0].id) //this.$set(items,'workPeopleId',data[0].id)
} }
}) });
} }
}) });
this.dataList = JSON.parse(JSON.stringify(this.dataList)) this.dataList = JSON.parse(JSON.stringify(this.dataList));
} else if (this.type === 2) { } else if (this.type === 2) {
this.selectList.forEach(item =>{ this.selectList.forEach(item => {
this.dataList.map(items=>{ this.dataList.map(items => {
if(item.id==items.id){ if (item.id == items.id) {
items.workPeople = data[0].name items.workPeople = "";
items.workPeopleId = data[0].id items.workPeopleId = "";
this.$message.warning('您只能针对条款进行分发')
} }
if(items.children.length){ if (items.children.length) {
items.children.map(childrenItem=>{ items.children.map(childrenItem => {
if(childrenItem.id==item.id){ if (childrenItem.id == item.id) {
childrenItem.workPeople = data[0].name childrenItem.workPeople = data[0].name;
childrenItem.workPeopleId = data[0].id childrenItem.workPeopleId = data[0].id;
} }
}) });
} }
}) });
}) });
this.dataList = JSON.parse(JSON.stringify(this.dataList)) this.dataList = JSON.parse(JSON.stringify(this.dataList));
} }
this.modalshowflag = false; this.modalshowflag = false;
}, },
@@ -64,7 +64,7 @@ export default {
continue; continue;
} else if (entity.id === "63e05705d0c8013162caa34f9fe52865") { } else if (entity.id === "63e05705d0c8013162caa34f9fe52865") {
list.push({ list.push({
label: "车辆类型清单", label: "车型类别清单",
name: "listProject" name: "listProject"
}); });
continue; continue;
@@ -177,8 +177,8 @@
prop="code" prop="code"
show-overflow-tooltip show-overflow-tooltip
fixed="left" fixed="left"
width="180px"
align="center" align="center"
width="180px"
label="标准号"> label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<span @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standNumber }}</span> <span @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standNumber }}</span>
@@ -641,6 +641,7 @@ export default {
zrbmOptions: [], // 责任部门 zrbmOptions: [], // 责任部门
categoryOptions: [], // 能源类型 categoryOptions: [], // 能源类型
energyKindOptions: [], // 能源种类list energyKindOptions: [], // 能源种类list
CycxOptions: [],
sycpxOptions: [], // 适用产品线 sycpxOptions: [], // 适用产品线
applyArcticOptions: [], // 基础车型 适用车型list applyArcticOptions: [], // 基础车型 适用车型list
/** ******************************/ /** ******************************/
@@ -900,7 +901,7 @@ export default {
// 责任部门数据字典 // 责任部门数据字典
this.zrbmOptions = res.data.ZRBMCLASS this.zrbmOptions = res.data.ZRBMCLASS
// 能源类型数据字典 // 能源类型数据字典
this.energyKindOptions = res.data.ENERGYTYPES this.CycxOptions = res.data.CLLX
// this.categoryOptions = res.data.NYLXCLASS // 能源类型 // this.categoryOptions = res.data.NYLXCLASS // 能源类型
// 适用车型数据字典 // 适用车型数据字典
this.applyArcticOptions = res.data.PRODUCTTYPE this.applyArcticOptions = res.data.PRODUCTTYPE
@@ -1235,10 +1236,10 @@ export default {
}, },
// 清单条目 table select事件 // 清单条目 table select事件
sarAccessInfoSelect (selectData) { sarAccessInfoSelect (selectData) {
this.sarAccessInfoListArry = selectData this.sarAccessInfoListArry = []
/* let sarAccessInfoListArryId = [] for (let i = 0; i < selectData.length; i++) {
for(let i=0; i<this.selectData.length; i++){ this.sarAccessInfoListArry.push(selectData[i].id);
}*/ }
}, },
// 点击取消按钮 返回事件 // 点击取消按钮 返回事件
backCancal () { backCancal () {
@@ -1493,10 +1494,10 @@ export default {
// 适用车型转换 // 适用车型转换
if (item.typeApplicable !== null) { if (item.typeApplicable !== null) {
let k = (item.typeApplicable || "").split(',') let k = (item.typeApplicable || "").split(',')
for (let i in this.energyKindOptions) { for (let i in this.CycxOptions) {
for (let m = 0; m< k.length; m++) { for (let m = 0; m< k.length; m++) {
if (this.energyKindOptions[i].value === k[m]) { if (this.CycxOptions[i].value === k[m]) {
k[m] = this.energyKindOptions[i].label k[m] = this.CycxOptions[i].label
} }
item.typeApplicable = k.join(',') item.typeApplicable = k.join(',')
} }
@@ -2039,6 +2040,7 @@ export default {
this.regionOptions = res.data.REGION // 基础信息 区域list this.regionOptions = res.data.REGION // 基础信息 区域list
this.applyArcticOptions = res.data.PRODUCTTYPE // 基础车型 适用车型list this.applyArcticOptions = res.data.PRODUCTTYPE // 基础车型 适用车型list
this.energyKindOptions = res.data.ENERGYTYPES // 能源种类list this.energyKindOptions = res.data.ENERGYTYPES // 能源种类list
this.CycxOptions = res.data.CLLX
this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list
this.applyOptions = res.data.COUNTRY //适用区域list this.applyOptions = res.data.COUNTRY //适用区域list
this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质 this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质
@@ -621,6 +621,7 @@ export default {
zrbmOptions: [], // 责任部门 zrbmOptions: [], // 责任部门
categoryOptions: [], // 能源类型 categoryOptions: [], // 能源类型
energyKindOptions: [], // 能源种类list energyKindOptions: [], // 能源种类list
CycxOptions: [],
sycpxOptions: [], // 适用产品线 sycpxOptions: [], // 适用产品线
applyArcticOptions: [], // 基础车型 适用车型list applyArcticOptions: [], // 基础车型 适用车型list
/** ******************************/ /** ******************************/
@@ -881,7 +882,7 @@ export default {
// 责任部门数据字典 // 责任部门数据字典
this.zrbmOptions = res.data.ZRBMCLASS this.zrbmOptions = res.data.ZRBMCLASS
// 能源类型数据字典 // 能源类型数据字典
this.energyKindOptions = res.data.ENERGYTYPES this.CycxOptions = res.data.CLLX
// this.categoryOptions = res.data.NYLXCLASS // 能源类型 // this.categoryOptions = res.data.NYLXCLASS // 能源类型
// 适用车型数据字典 // 适用车型数据字典
this.applyArcticOptions = res.data.PRODUCTTYPE this.applyArcticOptions = res.data.PRODUCTTYPE
@@ -1207,7 +1208,10 @@ export default {
}, },
// 清单条目 table select事件 // 清单条目 table select事件
sarAccessInfoSelect (selectData) { sarAccessInfoSelect (selectData) {
this.sarAccessInfoListArry = selectData this.sarAccessInfoListArry = []
for (let i = 0; i < selectData.length; i++) {
this.sarAccessInfoListArry.push(selectData[i].id);
}
}, },
// 点击取消按钮 返回事件 // 点击取消按钮 返回事件
backCancal () { backCancal () {
@@ -1461,10 +1465,10 @@ export default {
// 适用车型转换 // 适用车型转换
if (item.typeApplicable !== null) { if (item.typeApplicable !== null) {
let k = (item.typeApplicable || "").split(',') let k = (item.typeApplicable || "").split(',')
for (let i in this.energyKindOptions) { for (let i in this.CycxOptions) {
for (let m = 0; m< k.length; m++) { for (let m = 0; m< k.length; m++) {
if (this.energyKindOptions[i].value === k[m]) { if (this.CycxOptions[i].value === k[m]) {
k[m] = this.energyKindOptions[i].label k[m] = this.CycxOptions[i].label
} }
item.typeApplicable = k.join(',') item.typeApplicable = k.join(',')
} }
@@ -2018,6 +2022,7 @@ export default {
this.regionOptions = res.data.REGION // 基础信息 区域list this.regionOptions = res.data.REGION // 基础信息 区域list
this.applyArcticOptions = res.data.PRODUCTTYPE || [] // 基础车型 适用车型list this.applyArcticOptions = res.data.PRODUCTTYPE || [] // 基础车型 适用车型list
this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list
this.CycxOptions = res.data.CLLX // 能源种类list
this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list
this.applyOptions = res.data.COUNTRY //适用区域list this.applyOptions = res.data.COUNTRY //适用区域list
this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质 this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质
@@ -2032,10 +2037,6 @@ export default {
this.textStatusOptions = res.data.WBZTCLASS this.textStatusOptions = res.data.WBZTCLASS
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线 this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
this.setMap(this.textStatusOptions) this.setMap(this.textStatusOptions)
this.setMap(this.zrbmOptions)
this.setMap(this.categoryOptions)
this.setMap(this.sycpxOptions)
this.setMap(this.energyKindOptions)
this.getGzzOption() this.getGzzOption()
}, e => { }, e => {
}) })
@@ -18,7 +18,7 @@
size="small" size="small"
> >
<el-option <el-option
v-for="item in energyKindOptions" v-for="item in CycxOptions"
:value="item.value" :value="item.value"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
@@ -130,11 +130,12 @@
<el-select <el-select
v-model="sarAccessInfo.typeApplicable" v-model="sarAccessInfo.typeApplicable"
placeholder="请选择" placeholder="请选择"
clearable
filterable filterable
size="small" size="small"
> >
<el-option <el-option
v-for="item in energyKindOptions" v-for="item in CycxOptions"
:value="item.value" :value="item.value"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
@@ -145,6 +146,7 @@
<el-select <el-select
v-model="sarAccessInfo.syrz" v-model="sarAccessInfo.syrz"
placeholder="请选择" placeholder="请选择"
clearable
filterable filterable
size="small" size="small"
> >
@@ -284,7 +286,6 @@
<el-button <el-button
class="common-button-default delete-button" class="common-button-default delete-button"
size="mini" @click="deleteSelectSarAccessInfo" size="mini" @click="deleteSelectSarAccessInfo"
v-if="!disabledFlag"
v-btn-permission="''" v-btn-permission="''"
><i class="iconfont">&#xe61b;</i>删除</el-button> ><i class="iconfont">&#xe61b;</i>删除</el-button>
</div> </div>
@@ -670,6 +671,7 @@ export default {
zrbmOptions: [], // 责任部门 zrbmOptions: [], // 责任部门
categoryOptions: [], // 能源类型 categoryOptions: [], // 能源类型
energyKindOptions: [], // 能源种类list energyKindOptions: [], // 能源种类list
CycxOptions: [],
sycpxOptions: [], // 适用产品线 sycpxOptions: [], // 适用产品线
applyArcticOptions: [], // 基础车型 适用车型list applyArcticOptions: [], // 基础车型 适用车型list
syrzOptions: [], syrzOptions: [],
@@ -936,7 +938,7 @@ export default {
// 责任部门数据字典 // 责任部门数据字典
this.zrbmOptions = res.data.ZRBMCLASS this.zrbmOptions = res.data.ZRBMCLASS
// 能源类型数据字典 // 能源类型数据字典
this.energyKindOptions = res.data.ENERGYTYPES this.CycxOptions = res.data.ENERGYTYPES
// this.categoryOptions = res.data.NYLXCLASS // 能源类型 // this.categoryOptions = res.data.NYLXCLASS // 能源类型
// 适用车型数据字典 // 适用车型数据字典
this.applyArcticOptions = res.data.PRODUCTTYPE this.applyArcticOptions = res.data.PRODUCTTYPE
@@ -1058,8 +1060,10 @@ export default {
this.sarAccessInfoSearch.advanceSearchVOStr = '' this.sarAccessInfoSearch.advanceSearchVOStr = ''
// 国内标准法规可查字段 // 国内标准法规可查字段
if (val === 'INLAND_STAND'){ if (val === 'INLAND_STAND'){
this.selectLawsStands()
// 海外标准法规可查字段 // 海外标准法规可查字段
}else if (val === 'FOREIGN_STAND'){ }else if (val === 'FOREIGN_STAND'){
this.selectLawsStands()
// 国内外政策可查字段 // 国内外政策可查字段
} }
}, },
@@ -1180,7 +1184,10 @@ export default {
}, },
// 清单条目 table select事件 // 清单条目 table select事件
sarAccessInfoSelect (selectData) { sarAccessInfoSelect (selectData) {
this.sarAccessInfoListArry = selectData this.sarAccessInfoListArry = []
for (let i = 0; i < selectData.length; i++) {
this.sarAccessInfoListArry.push(selectData[i].id);
}
}, },
// 点击取消按钮 返回事件 // 点击取消按钮 返回事件
backCancal () { backCancal () {
@@ -1304,10 +1311,10 @@ export default {
// 适用车型转换 // 适用车型转换
if (item.typeApplicable !== null) { if (item.typeApplicable !== null) {
let k = (item.typeApplicable || "").split(',') let k = (item.typeApplicable || "").split(',')
for (let i in this.energyKindOptions) { for (let i in this.CycxOptions) {
for (let m = 0; m< k.length; m++) { for (let m = 0; m< k.length; m++) {
if (this.energyKindOptions[i].value === k[m]) { if (this.CycxOptions[i].value === k[m]) {
k[m] = this.energyKindOptions[i].label k[m] = this.CycxOptions[i].label
} }
item.typeApplicable = k.join(',') item.typeApplicable = k.join(',')
} }
@@ -1416,10 +1423,10 @@ export default {
// 高级查询-查询按钮 // 高级查询-查询按钮
selectBtn() { selectBtn() {
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
this.sarAccessInfoSearch.standType = 'INLAND' this.sarAccessInfo.standType = 'INLAND'
this.selectPage() this.selectPage()
} else { } else {
this.sarAccessInfoSearch.standType = 'FOREIGN' this.sarAccessInfo.standType = 'FOREIGN'
this.selectPage() this.selectPage()
} }
}, },
@@ -1860,29 +1867,7 @@ export default {
} }
}) })
this.sarAccessInfoSearchList.forEach(item => { this.sarAccessInfoSearchList.forEach(item => {
if (item.attrInfoMap === null) { this.addWord(item)
this.$set(item, 'zccssrqgj', '')
this.$set(item, 'xcxssrqgj', '')
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, '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)
}
}) })
}, e => { }, e => {
@@ -1929,6 +1914,7 @@ export default {
this.regionOptions = res.data.REGION // 基础信息 区域list this.regionOptions = res.data.REGION // 基础信息 区域list
this.applyArcticOptions = res.data.PRODUCTTYPE || [] // 基础车型 适用车型list this.applyArcticOptions = res.data.PRODUCTTYPE || [] // 基础车型 适用车型list
this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list
this.CycxOptions = res.data.ENERGYTYPES // 能源种类list
this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list
this.applyOptions = res.data.COUNTRY //适用区域list this.applyOptions = res.data.COUNTRY //适用区域list
this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质 this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质
File diff suppressed because it is too large Load Diff
@@ -341,24 +341,28 @@
: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" style="display: flex;flex-wrap: wrap"> <el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice"
style="display: flex;flex-wrap: wrap">
<!-- 标准号--> <!-- 标准号-->
<el-form-item :label="$t('m.standardNo')" class="serch-form-item"> <el-form-item :label="$t('m.standardNo')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable :maxlength="100" <el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable
:maxlength="100"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 标准名称--> <!-- 标准名称-->
<el-form-item :label="$t('m.standName')" class="serch-form-item"> <el-form-item :label="$t('m.standName')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable :maxlength="500" <el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable
:maxlength="500"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 标准英文名称--> <!-- 标准英文名称-->
<el-form-item :label="$t('m.standardEnglishName')" class="serch-form-item"> <el-form-item :label="$t('m.standardEnglishName')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.standEnName" :placeholder="$t('m.searchAccordingToStandardEnglishName')" clearable :maxlength="500" <el-input v-model="sarStandardsSearch.standEnName"
:placeholder="$t('m.searchAccordingToStandardEnglishName')" clearable :maxlength="500"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 标准类别--> <!-- 标准类别-->
<el-form-item :label="$t('m.standardCategory')" class="serch-form-item"> <el-form-item :label="$t('m.standardCategory')" class="serch-form-item">
<search-select <search-select
v-model="sarStandardsSearch.standSort" v-model="sarStandardsSearch.standSort"
:placeholder="$t('m.standardCategoryTips')" :placeholder="$t('m.standardCategoryTips')"
@@ -366,59 +370,88 @@
:options="standSortOptions" :options="standSortOptions"
clearable/> clearable/>
</el-form-item> </el-form-item>
<!-- 文本状态-->
<el-form-item :label="$t('m.standStateShow')" class="serch-form-item">
<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="$t('m.substituteStandardNumber')" class="serch-form-item"> <el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item">
<el-input v-model="sarStandardsSearch.dtbjh" :placeholder="$t('m.lookUpByAlternativeCriteria')" clearable :maxlength="100" <el-input v-model="sarStandardsSearch.replaceStandNum" :placeholder="$t('m.lookUpByAlternativeCriteria')"
clearable :maxlength="100"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 被代替标准号-->
<el-form-item label="被代替标准号">
<el-input v-model="sarStandardsSearch.replacedStandNum" clearable placeholder="根据被代替标准号查找"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 标准年份--> <!-- 标准年份-->
<el-form-item :label="$t('m.standardYear')" class="serch-form-item"> <el-form-item :label="$t('m.standardYear')" class="serch-form-item">
<el-input <el-input
v-model="sarStandardsSearch.standYear" v-model="sarStandardsSearch.standYear"
placeholder="根据标准年份查找"> placeholder="根据标准年份查找">
</el-input> </el-input>
</el-form-item> </el-form-item>
<!-- 标准发布日期--> <!-- 标准发布日期-->
<el-form-item label="标准发布日期" class="serch-form-item"> <el-form-item label="标准发布日期" class="serch-form-item">
<el-date-picker <el-date-picker
v-model="sarStandardsSearch.issueTime" v-model="sarStandardsSearch.issueTime"
type="date" type="date"
value-format="yyyy-MM-dd"
placeholder="根据标准发布日期查找"> placeholder="根据标准发布日期查找">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- 适用车型-->
<el-form-item :label="$t('m.applicableModels')" class="serch-form-item">
<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="是否纳入标准清单" class="serch-form-item">
<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="$t('m.standStateShow')" class="serch-form-item">
<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="$t('m.standNatureShow')" class="serch-form-item"> <el-form-item :label="$t('m.standNatureShow')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable <el-select v-model="sarStandardsSearch.standNature" placeholder="请选择标准性质" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option> <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value"
</el-select> :key="opt.value" :label="opt.label">{{ opt.label }}
</el-form-item> </el-option>
<!-- 是否纳入标准清单-->
<el-form-item label="是否纳入标准清单" class="serch-form-item">
<el-select v-model="sarStandardsSearch.isRelateAccess" placeholder="根据是否纳入标准清单查找">
<el-option value="yes" label="是"></el-option>
<el-option value="no" label="否"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 自定义属性-->
<!-- 实施日期--> <!-- 实施日期-->
<el-form-item label="实施日期"> <el-form-item label="实施日期">
<el-date-picker <el-date-picker
v-model="sarStandardsSearch.ssrq" v-model="advanceSearchMapping.SSRQ"
type="date" type="date"
value-format="yyyy-MM-dd"
placeholder="根据实施日期查找"> placeholder="根据实施日期查找">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- 新车型实施日期--> <!-- 新车型实施日期-->
<el-form-item title="新车型实施日期" label="新车型实施日期"> <el-form-item title="新车型实施日期" label="新车型实施日期">
<el-date-picker <el-date-picker
v-model="sarStandardsSearch.xcxssrq" value-format="yyyy-MM-dd"
v-model="advanceSearchMapping.XCXSSRQ"
type="date" type="date"
placeholder="根据新车型实施日期查找"> placeholder="根据新车型实施日期查找">
</el-date-picker> </el-date-picker>
@@ -426,139 +459,153 @@
<!-- 在产车实施日期--> <!-- 在产车实施日期-->
<el-form-item title="在产车实施日期" label="在产车实施日期"> <el-form-item title="在产车实施日期" label="在产车实施日期">
<el-date-picker <el-date-picker
v-model="sarStandardsSearch.zccssrq" v-model="advanceSearchMapping.ZCCSSRQ"
type="date" type="date"
value-format="yyyy-MM-dd"
placeholder="根据在产车实施日期查找"> placeholder="根据在产车实施日期查找">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<!-- 归口管理部门--> <!-- 归口管理部门-->
<el-form-item label="归口管理部门"> <el-form-item label="归口管理部门">
<el-select v-model="sarStandardsSearch.gkglbm" placeholder="归口管理部门" clearable <el-select v-model="advanceSearchMapping.GKDW" placeholder="归口管理部门" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @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-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-select>
</el-form-item> </el-form-item>
<!-- 起草单位--> <!-- 起草单位-->
<el-form-item label="起草单位"> <el-form-item label="起草单位">
<el-select v-model="sarStandardsSearch.qcdw" placeholder="根据起草单位查找" clearable <el-select v-model="advanceSearchMapping.QCDW" placeholder="根据起草单位查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @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-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-select>
</el-form-item> </el-form-item>
<!-- 我司参与深度--> <!-- 我司参与深度-->
<el-form-item label="我司参与深度"> <el-form-item label="我司参与深度">
<el-select v-model="sarStandardsSearch.wscysd" placeholder="请选择我司参与深度" clearable <el-select v-model="advanceSearchMapping.CYSD" placeholder="请选择我司参与深度" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @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-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-select>
</el-form-item> </el-form-item>
<!-- 能源类型--> <!-- 能源类型-->
<el-form-item label="能源类型"> <el-form-item label="能源类型">
<el-select v-model="sarStandardsSearch.nylx" placeholder="请选择能源类型" clearable <el-select v-model="advanceSearchMapping.NYLX" placeholder="请选择能源类型" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @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-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-form-item :label="$t('m.applicableModels')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.cllx" :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-select>
</el-form-item> </el-form-item>
<!-- 适用产品线新增字段--> <!-- 适用产品线新增字段-->
<el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item"> <el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.sycpx" :placeholder="$t('m.searchByApplicableProductLine')" clearable <el-select v-model="advanceSearchMapping.SYCPX" :placeholder="$t('m.searchByApplicableProductLine')"
clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @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-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-select>
</el-form-item> </el-form-item>
<!-- 适用认证--> <!-- 适用认证-->
<el-form-item label="适用认证"> <el-form-item label="适用认证">
<el-select v-model="sarStandardsSearch.syrz" placeholder="根据适用认证查找" clearable <el-select v-model="advanceSearchMapping.SYRZ" placeholder="根据适用认证查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @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-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-select>
</el-form-item> </el-form-item>
<!-- 责任部门--> <!-- 责任部门-->
<el-form-item label="责任部门"> <el-form-item label="责任部门">
<el-select v-model="sarStandardsSearch.zrbm" placeholder="根据责任部门查找" clearable <el-select v-model="advanceSearchMapping.ZRBM" placeholder="根据责任部门查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @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-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-select>
</el-form-item> </el-form-item>
<!-- 责任工程师--> <!-- 责任工程师-->
<el-form-item label="责任工程师"> <el-form-item label="责任工程师">
<el-select v-model="sarStandardsSearch.zrgcs" placeholder="根据责任工程师查找" clearable <el-select v-model="advanceSearchMapping.ZRGCS" placeholder="根据责任工程师查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @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-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-select>
</el-form-item> </el-form-item>
<!-- 关联模块-VPPS编码-->
<el-form-item title="关联模块-VPPS编码" label="关联模块-VPPS编码" prop="standNumber">
<el-input v-model="sarStandardsSearch.svpps" clearable
placeholder="根据关联模块-VPPS编码查找"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 代替标准号-->
<el-form-item label="代替标准号">
<el-input v-model="sarStandardsSearch.dtbjh" clearable placeholder="根据代替标准号查找"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 关联模块-中文名称-->
<el-form-item title="关联模块-中文名称" label="关联模块-中文名称" prop="standNumber">
<el-input v-model="sarStandardsSearch.standNumber" clearable
placeholder="根据关联模块-中文名称"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 采标编号--> <!-- 采标编号-->
<el-form-item label="采标编号" prop="nameShow"> <el-form-item label="采标编号" prop="nameShow">
<el-input v-model="sarStandardsSearch.cbbh" clearable placeholder="根据采标编号查找" <el-input v-model="advanceSearchMapping.CBBH" clearable placeholder="根据采标编号查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 采标程度--> <!-- 采标程度-->
<el-form-item label="采标程度" prop="standNumber"> <el-form-item label="采标程度" prop="standNumber">
<el-input v-model="sarStandardsSearch.cbcd" clearable <el-input v-model="advanceSearchMapping.CBCD" clearable
placeholder="根据采标程度查找" placeholder="根据采标程度查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 引用标准--> <!-- 引用标准-->
<el-form-item label="引用标准"> <el-form-item label="引用标准">
<el-input v-model="sarStandardsSearch.yybj" clearable placeholder="根据引用标准查找" <el-input v-model="advanceSearchMapping.YYBJ" clearable placeholder="根据引用标准查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 被引用标准--> <!-- 被引用标准-->
<el-form-item label="被引用标准"> <el-form-item label="被引用标准">
<el-input v-model="sarStandardsSearch.byybj" clearable <el-input v-model="advanceSearchMapping.BYYBJ" clearable
placeholder="根据被引用标准查找" placeholder="根据被引用标准查找"
@keyup.enter.native="btnSearch"></el-input> @keyup.enter.native="btnSearch"></el-input>
</el-form-item> </el-form-item>
<!-- 关联模块新增字段-->
<el-form-item :label="$t('m.associatedModule')" class="serch-form-item">
<el-select v-model="sarStandardsSearch.cycvppsbm" :placeholder="$t('m.SearchByAssociatedModule')" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}
</el-option>
</el-select>
</el-form-item>
<!-- 标记-->
<!-- 标签-->
<el-form-item label="标签">
<el-input v-model="sarStandardsSearch.gxhbq" clearable
placeholder="根据被标签查找"
@keyup.enter.native="btnSearch"></el-input>
</el-form-item>
<!-- 体系类别--> <!-- 体系类别-->
<el-form-item label="体系类别"> <el-form-item label="体系类别">
<el-select v-model="sarStandardsSearch.txlb" placeholder="根据体系类别查找" clearable <el-select v-model="advanceSearchMapping.TXLB" placeholder="根据体系类别查找" clearable
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"> @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-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-select>
</el-form-item> </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">
@@ -566,11 +613,13 @@
class="common-button-primary" class="common-button-primary"
icon="el-icon-check" icon="el-icon-check"
type="primary" type="primary"
@click="getDomesticStandardTableBtn(sarStandardsSearch)">搜索</el-button> @click="getDomesticStandardTableBtn(sarStandardsSearch)">搜索
</el-button>
<el-button <el-button
class="common-button-default" class="common-button-default"
icon="el-icon-close" icon="el-icon-close"
@click="clearAllSearch('sarStandardsSearch')">取消</el-button> @click="clearAllSearch('sarStandardsSearch')">取消
</el-button>
</div> </div>
</el-drawer> </el-drawer>
<!-- 新增海外标准 --> <!-- 新增海外标准 -->
@@ -622,8 +671,8 @@
</el-col> </el-col>
<template v-if="index === 0" > <template v-if="index === 0" >
<el-form-item label="国家/地区" prop="standSort" label-width="150px" class="add-form-item"> <el-form-item label="国家/地区" prop="" label-width="150px" class="add-form-item">
<el-select v-model="sarStandardsInfoEO.country" filterable> <el-select v-model="sarStandardsInfoEO.country" filterable clearable>
<el-option <el-option
v-for="item in countryOptions" v-for="item in countryOptions"
placeholder="请选择" placeholder="请选择"
@@ -1460,38 +1509,41 @@ export default {
validFlag: '0', validFlag: '0',
menuId: '', menuId: '',
country: '', country: '',
standNumber: '',// standNumber: '',//
standName: '',// standName: '',//
standEnName: '',//
standSort: '', //
replaceStandNum: '',//
replacedStandNum: '',//
standYear: '',//
issueTime: '',//
applyArctic: '',//
standState: '', standState: '',
standNature: '',// standNature: '',//
issueTime: '',//
// applyArctic: '',
dtbjh: '',//
// replaceStandNumCope: '',
// replaceStandNumList: [],
replacedStandNum: '',
synopsis: '', // synopsis: '', //
// category: '', // textStatus:''//
standSort: '', // },
txlbOption:'', // //
gxhbq:'', // advanceSearchMapping: {
wscysd:'', // txlbOption: '', //
gkglbm:'', // GXHBQ: '', //
ssrq:'',// CYSD: '', //
scxssrq:''// GKDW: '', //
,zccssrq:''// SSRQ: '',//
,qcdw:''// XCXSSRQ: ''//
,nylx:''// , ZCCSSRQ: ''//
,cllx:''// , QCDW: ''//
,syrz:''// , NYLX: ''//
,zrgcs:''// , SYRZ: ''//
,cbbh:''// , ZRGCS: ''//
,cbcd:''// , CBBH: ''//
,yybj:''// , CBCD: ''//
,byybj:''// , YYBJ: ''//
,txlb:''// , BYYBJ: ''//
, TXLB: ''//
},
}, // //
loading: false, loading: false,
isCollapse: true, isCollapse: true,
sideClose: false, // sideClose: false, //
@@ -2532,17 +2584,19 @@ export default {
this.getDomesticStandardTable() this.getDomesticStandardTable()
}, },
// //
getDomesticStandardTableBtn (sarStandardsSearch) { getDomesticStandardTableBtn (item) {
item.page = 1
this.standCommonlySearch.page = 1 this.standCommonlySearch.page = 1
this.standCommonlySearch.sarStandardsSearch = JSON.stringify(sarStandardsSearch) || '' this.standCommonlySearch.sarStandardsSearch = JSON.stringify(item) || ''
this.getDomesticStandardTable(2) this.getDomesticStandardTable(item)
}, },
// //
clearAllSearch (flag) { clearAllSearch (flag) {
if (flag === 'standCommonlySearch') {
this.standCommonlySearch.standSort = '' if (flag === 'sarStandardsSearch') {
this.standCommonlySearch.standNumber = '' this.sarStandardsSearch.standSort = ''
this.standCommonlySearch.page = 1 this.sarStandardsSearch.standNumber = ''
this.sarStandardsSearch.page = 1
this.getDomesticStandardTable() this.getDomesticStandardTable()
} else if (flag === 2) { } else if (flag === 2) {
// //
@@ -3167,12 +3221,22 @@ export default {
* 1普通检索 2高级检索 * 1普通检索 2高级检索
* */ * */
getDomesticStandardTable (item) { getDomesticStandardTable (item) {
let data = this.standCommonlySearch
if (item === 2) { // if (item === 2) {
data.standSort = '' // data.standSort = ''
data.standNumber = '' // data.standNumber = ''
} else { // } else {
data.sarStandardsSearch = '' // data.sarStandardsSearch = ''
// }
if (item !== '' && item !== null && item !== undefined) {
item.pageSize = this.$store.getters.userInfo.configContent
}
this.sarStandardsSearch.pageSize = this.$store.getters.userInfo.configContent
const data = item || this.standCommonlySearch || this.advanceSearchMapping
if (item) {
this.sarStandardsSearch.advanceSearchStr = item.advanceSearchStr
} }
const formData = {...data} const formData = {...data}
if (!item) { if (!item) {
@@ -3197,6 +3261,29 @@ export default {
} }
formData.standType = 'FOREIGN' formData.standType = 'FOREIGN'
formData.userId = this.$store.getters.userInfo.userId formData.userId = this.$store.getters.userInfo.userId
// //
//advanceSearchVOStr
const advanceSearchVOList = [];
for (let key in this.advanceSearchMapping) {
const value = this.advanceSearchMapping[key];
if (value !== null && value !== '') {
advanceSearchVOList.push({
connect: "and",
field: key || '',
type: 'like',
value: value
});
}
}
formData.advanceSearchVOStr = JSON.stringify(advanceSearchVOList);
console.log("======")
console.log(formData.advanceSearchVOStr);
this.SarExportSearchEo = formData this.SarExportSearchEo = formData
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, { this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, {
_this: this, loading: 'loading' _this: this, loading: 'loading'
@@ -3233,6 +3320,15 @@ export default {
this.stahndinfoList = [] this.stahndinfoList = []
this.total = 0 this.total = 0
}) })
//
for (let key in this.advanceSearchMapping) {
this.advanceSearchMapping[key] = ''
}
//
for (let key in this.sarStandardsSearch) {
this.sarStandardsSearch[key] = ''
}
}, },
// //
selectConfiguraStand () { selectConfiguraStand () {
@@ -188,7 +188,7 @@
<el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form"> <el-form :modal="sarSarAccessEOSearch" :inline="true" class="label-input-form">
<el-form-item label="车型类别" class="search-item search-item-last"> <el-form-item label="车型类别" class="search-item search-item-last">
<el-input <el-input
v-model="sarSarAccessEOSearch.projectName" v-model="sarSarAccessEOSearch.carType"
placeholder="请输入车型类别" placeholder="请输入车型类别"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -236,7 +236,7 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="projectName" prop="carType"
label="车型类别" label="车型类别"
align="center"> align="center">
</el-table-column> </el-table-column>
@@ -497,7 +497,7 @@ export default {
localProLib: {}, localProLib: {},
// //
sarSarAccessEOSearch: { sarSarAccessEOSearch: {
projectName: "", carType: "",
detailedListName: "", detailedListName: "",
}, },
takeingFlag: false, takeingFlag: false,
@@ -525,7 +525,7 @@ export default {
this.getStand() this.getStand()
}, },
clearSearchAccess(){ clearSearchAccess(){
this.sarSarAccessEOSearch.projectName = '' this.sarSarAccessEOSearch.carType = ''
this.sarSarAccessEOSearch.detailedListName = '' this.sarSarAccessEOSearch.detailedListName = ''
this.transfer() this.transfer()
}, },
@@ -593,6 +593,20 @@ export default {
_this: this _this: this
}, res => { }, 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.sarSarAccessEOSearch.page = 1
this.totalNo = res.data.total this.totalNo = res.data.total
this.detailedListModel = true this.detailedListModel = true
@@ -937,6 +951,7 @@ export default {
_this: this, _this: this,
loading: 'loading' loading: 'loading'
}, res => { }, res => {
this.energyKindOptions = res.data.ENERGYTYPES //
this.standSortOptions = res.data.STANDCLASSIFY // this.standSortOptions = res.data.STANDCLASSIFY //
this.setMap(this.zrbmMap, res.data.ZRBMCLASS) this.setMap(this.zrbmMap, res.data.ZRBMCLASS)
this.setMap(this.textStatusMap, res.data.WBZTCLASS) this.setMap(this.textStatusMap, res.data.WBZTCLASS)
@@ -270,6 +270,12 @@
width="150px" width="150px"
align="center" align="center"
label="不合规"> label="不合规">
<el-table-column
width="150px"
align="center"
prop="productionNonCompliance"
label="不合格项目">
</el-table-column>
<el-table-column <el-table-column
width="150px" width="150px"
align="center" align="center"
@@ -321,7 +327,8 @@ export default {
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
sarProStateEO: { sarProStateEO: {
productName: "", productName: "",
standId: "" standId: "",
type: ""
}, },
sarProStateTotal: 0, sarProStateTotal: 0,
sarProStateTotalPage: 1, sarProStateTotalPage: 1,
@@ -376,6 +383,7 @@ export default {
this.queryStandAndLaws(); this.queryStandAndLaws();
}, // }, //
handleProjectCompliance(row) { handleProjectCompliance(row) {
this.sarProStateEO.type = row.type
this.standId = row.standId; this.standId = row.standId;
this.querySarProStateZero(); this.querySarProStateZero();
}, // }, //
@@ -459,6 +459,7 @@ export default {
}, res => { }, res => {
this.myLoading.loadData = false this.myLoading.loadData = false
this.total = res.data.total this.total = res.data.total
this.pageNo = 1
this.nonList = res.data.records this.nonList = res.data.records
this.nonList.forEach(item => { this.nonList.forEach(item => {
// //