|
|
|
@ -105,10 +105,21 @@ const onRefresherrefresh = async () => {
|
|
|
|
|
// 关闭动画
|
|
|
|
|
isTriggered.value = false
|
|
|
|
|
}
|
|
|
|
|
const searchVal = ref('')
|
|
|
|
|
const searchVal = ref()
|
|
|
|
|
// const dataListDefault = ref([])
|
|
|
|
|
const handleSearch = async () => {
|
|
|
|
|
queryParams.projectSubCodeOrName=undefined
|
|
|
|
|
const code = searchVal.value
|
|
|
|
|
|
|
|
|
|
console.log('搜索',searchVal.value)
|
|
|
|
|
if (searchVal.value == '') {
|
|
|
|
|
searchVal.value = undefined
|
|
|
|
|
}else{
|
|
|
|
|
queryParams.projectSubCodeOrName = code
|
|
|
|
|
}
|
|
|
|
|
queryParams.pageNo = 1
|
|
|
|
|
queryParams.pageSize = 5
|
|
|
|
|
dataList.value = []
|
|
|
|
|
queryParams.projectSubCodeOrName = code
|
|
|
|
|
getListData()
|
|
|
|
|
}
|
|
|
|
@ -194,10 +205,10 @@ const handleOk = async () => {
|
|
|
|
|
</script>
|
|
|
|
|
<template>
|
|
|
|
|
<view class="cont">
|
|
|
|
|
<view class="search" v-if="total > 5">
|
|
|
|
|
<!-- <view class="search">
|
|
|
|
|
<input class="uni-input" v-model="searchVal" @change="handleSearch" placeholder="根据产品编码/名称搜索" />
|
|
|
|
|
<uni-icons type="search" size="30" class="icons" @click="handleSearch"></uni-icons>
|
|
|
|
|
</view>
|
|
|
|
|
</view> -->
|
|
|
|
|
<view class="selects" v-if="props.orderState == '0,1'">
|
|
|
|
|
<!-- 多选-->
|
|
|
|
|
<view style="display: flex" @click="flag = !flag">
|
|
|
|
|