供应商及甲方角色添加当前状态筛选
parent
89d56b6e32
commit
6cdc368756
|
|
@ -54,6 +54,20 @@
|
|||
<div class="search-select-suffixIcon"></div>
|
||||
</template>
|
||||
</a-select>
|
||||
<a-select
|
||||
v-if="user == 2 || user == 3"
|
||||
mode="multiple"
|
||||
:max-tag-count="3"
|
||||
style="width: 275px;"
|
||||
class="search-select"
|
||||
v-model:value="params.nowstatus"
|
||||
:options="currentTenderStatusOptions"
|
||||
placeholder="当前状态"
|
||||
>
|
||||
<template #suffixIcon>
|
||||
<div class="search-select-suffixIcon"></div>
|
||||
</template>
|
||||
</a-select>
|
||||
<a-button class="search-button search" type="primary" @click="query()">
|
||||
<template #icon>
|
||||
<div class="search-icon"></div>
|
||||
|
|
@ -219,7 +233,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from "vue"
|
||||
import { ref, onMounted, computed } from "vue"
|
||||
import { yearOptions, proxyColumns, supplierColumns, proprietorColumns, biddingformOptions, biddingtypeOptions, nowStatusOptions } from './util'
|
||||
import { SearchOutlined, PlusOutlined, DownOutlined } from '@ant-design/icons-vue'
|
||||
import InsertModal from './InsertModal/index.vue'
|
||||
|
|
@ -239,6 +253,7 @@ const params = ref({
|
|||
projectnum: null,
|
||||
biddingtype: null,
|
||||
biddingform: null,
|
||||
nowstatus: []
|
||||
})
|
||||
const fromValue = ref({
|
||||
id: null,
|
||||
|
|
@ -260,6 +275,13 @@ const modalType = ref('')
|
|||
const showInfo = ref({})
|
||||
|
||||
const selectedList = ref([])
|
||||
const currentTenderStatusOptions = computed(() => {
|
||||
if(user.value == 2){
|
||||
return params.value.type == 0? nowStatusOptions.filter(item => ['正常'].includes(item.label)): nowStatusOptions
|
||||
}else{
|
||||
return params.value.type == 0? nowStatusOptions.filter(item => ['待审核','正常','超期'].includes(item.label)): nowStatusOptions
|
||||
}
|
||||
})
|
||||
|
||||
const rowSelection = {
|
||||
onChange: (selectedRowKeys, selectedRows) => {
|
||||
|
|
@ -272,7 +294,6 @@ const rowSelection = {
|
|||
}),
|
||||
};
|
||||
const changeTabs = (type) => {
|
||||
|
||||
params.value.type = type
|
||||
query()
|
||||
}
|
||||
|
|
@ -305,7 +326,7 @@ const query = () => {
|
|||
}
|
||||
let requestParams = {
|
||||
...params.value,
|
||||
nowstatus: nowstatus,
|
||||
nowstatus: params.value.nowstatus.length > 0? params.value.nowstatus.join(','): nowstatus ,
|
||||
page: page.value,
|
||||
limit: limit.value
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue