Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
zhutianqi
2021-08-05 18:01:58 +08:00
@@ -14,7 +14,8 @@
<el-col :span="5" :push="1">项目编号: <span class="valueColor">{{ localProEO.projectNumber }}</span></el-col> <el-col :span="5" :push="1">项目编号: <span class="valueColor">{{ localProEO.projectNumber }}</span></el-col>
<el-col :span="5" :push="2">项目名称: <span class="valueColor">{{ localProEO.projectName }}</span></el-col> <el-col :span="5" :push="2">项目名称: <span class="valueColor">{{ localProEO.projectName }}</span></el-col>
<!-- <el-col :span="5" :push="2">车型系列:<span class="valueColor">{{ localProEO.productSet }}</span></el-col>--> <!-- <el-col :span="5" :push="2">车型系列:<span class="valueColor">{{ localProEO.productSet }}</span></el-col>-->
<el-col :span="4" :push="3">项目分类:<span class="valueColor">{{ localProEO.projectClassification }}</span></el-col> <el-col :span="4" :push="3">项目分类:<span class="valueColor">{{ localProEO.projectClassification }}</span>
</el-col>
</el-row> </el-row>
<el-row style="margin-top: 10px"> <el-row style="margin-top: 10px">
<el-col :span="5">项目状态: <span class="valueColor">{{ localProEO.projectStatus }} </span></el-col> <el-col :span="5">项目状态: <span class="valueColor">{{ localProEO.projectStatus }} </span></el-col>
@@ -24,20 +25,24 @@
</el-row> </el-row>
<el-row style="margin-top: 10px"> <el-row style="margin-top: 10px">
<el-col :span="5">项目经理: <span class="valueColor">{{ localProEO.projectManager }} </span></el-col> <el-col :span="5">项目经理: <span class="valueColor">{{ localProEO.projectManager }} </span></el-col>
<el-col :span="5" :push="1"> 项目计划开始时间: <span class="valueColor">{{ $moment(localProEO.projectStartDate).format('YYYY-MM-DD')}}</span></el-col> <el-col :span="5" :push="1"> 项目计划开始时间: <span
<el-col :span="5" :push="2">项目计划完成时间: <span class="valueColor">{{ $moment(localProEO.projectEndDate).format('YYYY-MM-DD') }} </span></el-col> class="valueColor">{{ $moment(localProEO.projectStartDate).format('YYYY-MM-DD') }}</span></el-col>
<el-col :span="5" :push="2">项目计划完成时间: <span
class="valueColor">{{ $moment(localProEO.projectEndDate).format('YYYY-MM-DD') }} </span></el-col>
</el-row> </el-row>
</div> </div>
</el-card> </el-card>
<div class="action-bar"> <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="addList">调取</el-button>
<el-button plain class="common-button-primary" v-btn-permission="''" size="mini" @click="deleteList">批量删除</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" <el-button class="common-button-default export-button"
size="mini" @click="exportStandard" size="mini" @click="exportStandard"
v-btn-permission="''" v-btn-permission="''"
title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项" title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项"
icon="export" icon="export"
>导出</el-button> >导出
</el-button>
</div> </div>
<!-- <el-tabs type="border-card">--> <!-- <el-tabs type="border-card">-->
<!-- <el-tab-pane :label="localProEO.productName" class="details-panel-tabs-item">--> <!-- <el-tab-pane :label="localProEO.productName" class="details-panel-tabs-item">-->
@@ -65,7 +70,10 @@
width="260px" width="260px"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.standSort+ ' ' + scope.row.standNumber + '-' + scope.row.standYear}}</span> <span
style="margin-left: 10px">{{
scope.row.standSort + ' ' + scope.row.standNumber + '-' + scope.row.standYear
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -86,7 +94,9 @@
sortable sortable
label="标准实施日期"> label="标准实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.ssrq ? $moment(scope.row.ssrq).format('YYYY-MM-DD') : '-' }}</span> <span style="margin-left: 10px">{{
scope.row.ssrq ? $moment(scope.row.ssrq).format('YYYY-MM-DD') : '-'
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -94,7 +104,9 @@
width="190px" width="190px"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="margin-left: 10px">{{scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format('YYYY-MM-DD') : '-' }}</span> <span style="margin-left: 10px">{{
scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format('YYYY-MM-DD') : '-'
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -103,7 +115,9 @@
width="190px" width="190px"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format('YYYY-MM-DD') : '-' }}</span> <span style="margin-left: 10px">{{
scope.row.zccssrq ? $moment(scope.row.zccssrq).format('YYYY-MM-DD') : '-'
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -171,7 +185,8 @@
</el-formItem> </el-formItem>
<el-formItem label="标准类别" prop="standSort" class="search-item"> <el-formItem label="标准类别" prop="standSort" class="search-item">
<el-select v-model="standCommonlySearch.standSort" placeholder="根据标准类别查找" clearable> <el-select v-model="standCommonlySearch.standSort" placeholder="根据标准类别查找" clearable>
<el-option v-for="opt in standSortOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label }} <el-option v-for="opt in standSortOptions" :value="opt.value === undefined ? '' :opt.value"
:key="opt.value" :label="opt.label">{{ opt.label }}
</el-option> </el-option>
</el-select> </el-select>
</el-formItem> </el-formItem>
@@ -187,11 +202,13 @@
size="mini" size="mini"
class="common-button-primary" class="common-button-primary"
@click="search">查询</el-button> @click="search">查询
</el-button>
<el-button <el-button
class="common-button-default" class="common-button-default"
size="mini" size="mini"
@click="clearSearch">清空</el-button> @click="clearSearch">清空
</el-button>
</el-formItem> </el-formItem>
</el-form> </el-form>
</div> </div>
@@ -218,7 +235,8 @@
label="标准号"> label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump" <a v-if="scope.row.standYear" class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{ scope.row.standNumber @click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
scope.row.standNumber
}}-{{ scope.row.standYear }}</a> }}-{{ scope.row.standYear }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }} <a v-else @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standSortShow }}
{{ scope.row.standNumber }}</a> {{ scope.row.standNumber }}</a>
@@ -238,7 +256,9 @@
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="margin-left: 10px"> <span style="margin-left: 10px">
{{scope.row.attrInfoCaseMap.xcxssrq ? $moment(scope.row.attrInfoCaseMap.xcxssrq).format('YYYY-MM-DD') : '-'}} {{
scope.row.attrInfoCaseMap.xcxssrq ? $moment(scope.row.attrInfoCaseMap.xcxssrq).format('YYYY-MM-DD') : '-'
}}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
@@ -248,7 +268,9 @@
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="margin-left: 10px"> <span style="margin-left: 10px">
{{scope.row.attrInfoCaseMap.zccssrq ? $moment(scope.row.attrInfoCaseMap.zccssrq).format('YYYY-MM-DD') : '-'}} {{
scope.row.attrInfoCaseMap.zccssrq ? $moment(scope.row.attrInfoCaseMap.zccssrq).format('YYYY-MM-DD') : '-'
}}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
@@ -285,7 +307,8 @@
<div slot="footer"> <div slot="footer">
<el-button class="common-button-primary" icon="el-icon-check" type="primary" <el-button class="common-button-primary" icon="el-icon-check" type="primary"
title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项" title="不勾选时默认导出所有筛选项;勾选时仅导出勾选项"
@click="exportTestItem">导出</el-button> @click="exportTestItem">导出
</el-button>
<el-button class="common-button-default" icon="el-icon-close" @click="cancal">取消</el-button> <el-button class="common-button-default" icon="el-icon-close" @click="cancal">取消</el-button>
</div> </div>
</el-dialog> </el-dialog>
@@ -295,6 +318,7 @@
import {mapGetters} from 'vuex' import {mapGetters} from 'vuex'
import LawsTreeView from '@/components/ProjectRelatedPersonnel/view' import LawsTreeView from '@/components/ProjectRelatedPersonnel/view'
import {interfaceUrl} from "@/sysConfig"; import {interfaceUrl} from "@/sysConfig";
export default { export default {
name: 'Details', name: 'Details',
components: { components: {
@@ -308,6 +332,8 @@ export default {
standNumber: '', standNumber: '',
standType: '' standType: ''
}, },
//用来存放项目id
proId: '',
size: this.$store.getters.userInfo.configContent, size: this.$store.getters.userInfo.configContent,
pageSizeNo: this.$store.getters.userInfo.configContent, pageSizeNo: this.$store.getters.userInfo.configContent,
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
@@ -416,9 +442,14 @@ export default {
for (let i = 0; i < this.selectList.length; i++) { for (let i = 0; i < this.selectList.length; i++) {
this.selectList1.push(this.selectList[i].standId) this.selectList1.push(this.selectList[i].standId)
} }
this.id=this.selectList1.join(',') let deleteTagList = []
this.selectList1.forEach(item => {
//项目id-标准id,项目id-标准id
deleteTagList.push( this.proId + '-' + item )
})
this.id = deleteTagList.join(',')
this.$http.post('sarStandProjectLibrary/deleteByIds', { this.$http.post('sarStandProjectLibrary/deleteByIds', {
id:this.id id: this.id,
}, { }, {
_this: this, _this: this,
loading: 'loading' loading: 'loading'
@@ -556,7 +587,9 @@ export default {
this.$store.commit('setDetailMap', '') this.$store.commit('setDetailMap', '')
}, },
showLocalProductData(item) { showLocalProductData(item) {
console.log(item)
this.localProEO = JSON.parse(JSON.stringify(item)) this.localProEO = JSON.parse(JSON.stringify(item))
this.proId = this.localProEO.id
// 查询详情表格数据 // 查询详情表格数据
this.$http.get('sarStandProjectLibrary/queryStandInfo', { this.$http.get('sarStandProjectLibrary/queryStandInfo', {
id: this.localProEO.id id: this.localProEO.id
@@ -590,7 +623,8 @@ export default {
}) })
this.selectTableDataList() this.selectTableDataList()
}, },
resetTakeingForm() {}, resetTakeingForm() {
},
//导出 //导出
exportStandard() { exportStandard() {
if (this.selectList.length > 0) { if (this.selectList.length > 0) {
@@ -642,9 +676,12 @@ export default {
} }
this.exportModelFlag = false this.exportModelFlag = false
}, },
exportProducdata() {}, exportProducdata() {
deleteStandLawsForProduct() {}, },
selectStandLawsForProduct() {}, deleteStandLawsForProduct() {
},
selectStandLawsForProduct() {
},
pageChangeLaws(page) { pageChangeLaws(page) {
this.page = page this.page = page
this.getDataList() this.getDataList()
@@ -700,17 +737,21 @@ export default {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
.iconClass { .iconClass {
width: 18px; width: 18px;
height: 18px; height: 18px;
} }
.iconClassDia { .iconClassDia {
width: 30px; width: 30px;
height: 30px; height: 30px;
} }
.picBorder { .picBorder {
border: 1px solid #409eff; border: 1px solid #409eff;
} }
.add-border { .add-border {
/*width: 80px;*/ /*width: 80px;*/
height: 80px; height: 80px;
@@ -719,6 +760,7 @@ export default {
align-items: center; align-items: center;
cursor: pointer cursor: pointer
} }
.laws-details-header { .laws-details-header {
background: #fff; background: #fff;
// height: 30px; // height: 30px;
@@ -729,6 +771,7 @@ export default {
display: inline-block; display: inline-block;
margin-right: 10px; margin-right: 10px;
} }
.title { .title {
display: inline-block; display: inline-block;
font-weight: bold; font-weight: bold;
@@ -738,39 +781,49 @@ export default {
text-align: center; text-align: center;
} }
} }
.contaiiner { .contaiiner {
height: calc(~'100% - 55px'); height: calc(~'100% - 55px');
background: #fff; background: #fff;
padding: 5px 10px; padding: 5px 10px;
.el-card__body { .el-card__body {
.el-row { .el-row {
line-height: 1.5; line-height: 1.5;
font-size: 14px; font-size: 14px;
} }
} }
.details-panel-tabs-item { .details-panel-tabs-item {
height: 100%; height: 100%;
.table-wrapper { .table-wrapper {
height: 100%; height: 100%;
} }
} }
} }
.pagination { .pagination {
position: unset; position: unset;
} }
.el-steps.el-steps--simple { .el-steps.el-steps--simple {
padding: 13px; padding: 13px;
} }
.el-step.is-simple { .el-step.is-simple {
flex-basis: auto; flex-basis: auto;
width: 269px; width: 269px;
} }
.valueColor { .valueColor {
color: #999; color: #999;
} }
.el-steps.el-steps--horizontal { .el-steps.el-steps--horizontal {
margin-left: 30px; margin-left: 30px;
} }
@media screen and (min-width: 1920px) { @media screen and (min-width: 1920px) {
/deep/ .el-step__main { /deep/ .el-step__main {
position: relative; position: relative;
@@ -792,18 +845,22 @@ export default {
text-align: center; text-align: center;
} }
} }
/deep/ .el-step__icon { /deep/ .el-step__icon {
width: 18px; width: 18px;
height: 18px; height: 18px;
font-size: 12px; font-size: 12px;
} }
/deep/ .el-step__title { /deep/ .el-step__title {
font-size: 12px; font-size: 12px;
} }
} }
/deep/ .el-drawer__body { /deep/ .el-drawer__body {
position: relative; position: relative;
} }
.wx-drawer-content { .wx-drawer-content {
position: absolute; position: absolute;
top: 0; top: 0;
@@ -812,6 +869,7 @@ export default {
right: 0; right: 0;
height: unset !important; height: unset !important;
} }
/deep/ .relateClass { /deep/ .relateClass {
& > button { & > button {
height: 30px; height: 30px;
@@ -820,6 +878,7 @@ export default {
padding: 0 10px; padding: 0 10px;
font-family: 'Microsoft Yahei', '\5FAE\8F6F\96C5\9ED1', Arial, sans-serif !important; font-family: 'Microsoft Yahei', '\5FAE\8F6F\96C5\9ED1', Arial, sans-serif !important;
} }
& i { & i {
display: inline-block; display: inline-block;
margin-right: 3px; margin-right: 3px;
@@ -830,37 +889,46 @@ export default {
background-position: center center; background-position: center center;
vertical-align: text-bottom; vertical-align: text-bottom;
} }
.relation-btn { .relation-btn {
color: #409EFF; color: #409EFF;
border: 1px solid #409EFF; border: 1px solid #409EFF;
background: rgba(64, 158, 255, 0.1); background: rgba(64, 158, 255, 0.1);
.icon-relation { .icon-relation {
background-image: url("~assets/images/shangqi/standardDetails/relation.png"); background-image: url("~assets/images/shangqi/standardDetails/relation.png");
} }
} }
} }
::v-deep .el-drawer__header { ::v-deep .el-drawer__header {
& > span:first-child { & > span:first-child {
outline: none !important; outline: none !important;
} }
} }
::v-deep .el-drawer { ::v-deep .el-drawer {
outline: none !important; outline: none !important;
} }
/deep/ .leftTable { /deep/ .leftTable {
.el-table th > .cell { .el-table th > .cell {
font-size: 11px; font-size: 11px;
} }
.el-table th { .el-table th {
padding: 0; padding: 0;
} }
.el-table__body-wrapper { .el-table__body-wrapper {
height: 44px; height: 44px;
} }
} }
/deep/ .el-tabs__content { /deep/ .el-tabs__content {
padding-bottom: 0; padding-bottom: 0;
} }
/deep/ .el-card__body { /deep/ .el-card__body {
padding: 0; padding: 0;
} }
@@ -868,15 +936,18 @@ export default {
<style lang="less"> <style lang="less">
.localProductDetails { .localProductDetails {
height: 100%; height: 100%;
.el-tabs__content { .el-tabs__content {
min-height: 412px; min-height: 412px;
} }
} }
.leftTable { .leftTable {
.el-table--enable-row-transition .el-table__body td { .el-table--enable-row-transition .el-table__body td {
cursor: pointer; cursor: pointer;
} }
} }
.demo-drawer-content { .demo-drawer-content {
margin-top: 10px; margin-top: 10px;
} }