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