搜索中心-表格添加入库日期、添加排序
This commit is contained in:
@@ -103,6 +103,7 @@
|
|||||||
tooltip-effect="dark"
|
tooltip-effect="dark"
|
||||||
border
|
border
|
||||||
style="width:100% !important;"
|
style="width:100% !important;"
|
||||||
|
@sort-change="sortChange"
|
||||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
fontWeight: 'bold', height: '48px'}"
|
fontWeight: 'bold', height: '48px'}"
|
||||||
height="100%"
|
height="100%"
|
||||||
@@ -132,9 +133,24 @@
|
|||||||
<a class="jumpColor" style="margin-left: 10px" @click="judgeRolePermiOnSar(scope.row, 1)">{{ selectIndex === 'laws' ? scope.row.lawsName : scope.row.nameshow }}</a>
|
<a class="jumpColor" style="margin-left: 10px" @click="judgeRolePermiOnSar(scope.row, 1)">{{ selectIndex === 'laws' ? scope.row.lawsName : scope.row.nameshow }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
min-width="12%"
|
||||||
|
align="center"
|
||||||
|
prop="warehousingTime"
|
||||||
|
sortable
|
||||||
|
label="入库日期">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div v-if="scope.row.warehousingTime !== null && scope.row.warehousingTime !== undefined">
|
||||||
|
{{ dateFormat2(scope.row.warehousingTime) }}
|
||||||
|
</div>
|
||||||
|
<div v-else></div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
min-width="12%"
|
min-width="12%"
|
||||||
align="center"
|
align="center"
|
||||||
|
prop="issueTime"
|
||||||
|
sortable
|
||||||
:label="$t('m.issueTime')">
|
:label="$t('m.issueTime')">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="scope.row.issueTime !== null && scope.row.issueTime !== undefined">
|
<div v-if="scope.row.issueTime !== null && scope.row.issueTime !== undefined">
|
||||||
@@ -146,6 +162,8 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
:label="(selectIndex === 'stand'||'bussstand') && selectIndex !== 'laws' ? $t('m.putTime') : '新车实施日期'"
|
:label="(selectIndex === 'stand'||'bussstand') && selectIndex !== 'laws' ? $t('m.putTime') : '新车实施日期'"
|
||||||
|
prop="putTime"
|
||||||
|
sortable
|
||||||
min-width="12%">
|
min-width="12%">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="selectIndex === 'stand' || selectIndex === 'bussstand' ? (scope.row.SSRQ !== null && scope.row.SSRQ !== undefined && scope.row.SSRQ !== '')
|
<div v-if="selectIndex === 'stand' || selectIndex === 'bussstand' ? (scope.row.SSRQ !== null && scope.row.SSRQ !== undefined && scope.row.SSRQ !== '')
|
||||||
@@ -159,6 +177,8 @@
|
|||||||
v-if="selectIndex !== 'msgdyinfo'"
|
v-if="selectIndex !== 'msgdyinfo'"
|
||||||
align="center"
|
align="center"
|
||||||
:label="selectIndex === 'stand'||'bussstand' ? $t('m.standStateShow') : (selectIndex === 'laws' ? $t('m.fileStatus') : $t('m.enterpriseStandardStatus'))"
|
:label="selectIndex === 'stand'||'bussstand' ? $t('m.standStateShow') : (selectIndex === 'laws' ? $t('m.fileStatus') : $t('m.enterpriseStandardStatus'))"
|
||||||
|
prop="textStatusName"
|
||||||
|
sortable
|
||||||
min-width="12%">
|
min-width="12%">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <span v-if="selectIndex === 'laws'">{{ getLawsState(scope.row.statecode) }}</span>-->
|
<!-- <span v-if="selectIndex === 'laws'">{{ getLawsState(scope.row.statecode) }}</span>-->
|
||||||
@@ -512,6 +532,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
sortChange(sortObj){
|
||||||
|
const search = {
|
||||||
|
sortField: sortObj.prop,
|
||||||
|
sortMode: sortObj.order || ''
|
||||||
|
}
|
||||||
|
this.searchSarBykey(search)
|
||||||
|
},
|
||||||
openStandSystemModel () {
|
openStandSystemModel () {
|
||||||
this.$refs.standSystemModelRef.open()
|
this.$refs.standSystemModelRef.open()
|
||||||
},
|
},
|
||||||
@@ -1062,7 +1089,6 @@
|
|||||||
}
|
}
|
||||||
nowdata[0].number = countAll
|
nowdata[0].number = countAll
|
||||||
console.log('aaaaa',nowdata)
|
console.log('aaaaa',nowdata)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1496,7 +1522,7 @@
|
|||||||
this.searchSarBykey()
|
this.searchSarBykey()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
searchSarBykey () {
|
searchSarBykey (searchObj) {
|
||||||
console.log(this.searchOptions)
|
console.log(this.searchOptions)
|
||||||
let searchCondition = this.searchCondition
|
let searchCondition = this.searchCondition
|
||||||
let condition = {}
|
let condition = {}
|
||||||
@@ -1531,6 +1557,7 @@
|
|||||||
}
|
}
|
||||||
condition.selectType = this.selectType
|
condition.selectType = this.selectType
|
||||||
condition.standSystem = this.standSystemKeys // 标准体系id
|
condition.standSystem = this.standSystemKeys // 标准体系id
|
||||||
|
condition = Object.assign(condition, searchObj)
|
||||||
this.$http.post('search/searchCenter/searchSarBykey', condition, {
|
this.$http.post('search/searchCenter/searchSarBykey', condition, {
|
||||||
_this: this,
|
_this: this,
|
||||||
loading: 'resultLoading'
|
loading: 'resultLoading'
|
||||||
|
|||||||
Reference in New Issue
Block a user