Browse Source

feat: update 搜索按钮失败问题

master
TengXF 6 months ago
parent
commit
51a5bfdebc
  1. 17
      src/pages/mes/orderDayPlan/orderDayPlan.vue
  2. 2
      src/pages/mes/workScheduling/workScheduling.vue

17
src/pages/mes/orderDayPlan/orderDayPlan.vue

@ -2,8 +2,8 @@
<view class="container"> <view class="container">
<view class="list"> <view class="list">
<view> <view>
<u-search :show-action="true" v-model="searchValue" action-text="搜索" input-align="left" height="65" <u-search :show-action="true" v-model="tabParams.planNoDay" action-text="搜索" input-align="left" height="65"
border-color=#5599FF @search="searchTable()"> border-color=#5599FF @search="searchTable()" @custom="searchTable()" >
</u-search> </u-search>
<u-tabs :animation="true" active-color="#5599FF" ref="tabs1" :list="list1" :current="current" <u-tabs :animation="true" active-color="#5599FF" ref="tabs1" :list="list1" :current="current"
@change="tabsChange" :is-scroll="false"> @change="tabsChange" :is-scroll="false">
@ -129,7 +129,8 @@ const tabParams = ref({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
status: '', status: '',
flag: null flag: null,
planNoDay:''
}) })
function stopPlan(item){ function stopPlan(item){
@ -248,14 +249,10 @@ const searchTableParams = ref({
flag: null flag: null
}) })
async function searchTable() { function searchTable() {
list.value = [] list.value = []
searchTableParams.value.planNoDay = this.searchValue tabParams.value.pageNo = 1
await orderDayPlanListApi.getOrderDayPage(searchTableParams.value).then((res) => { getTabsList()
if (res.data.list.length > 0) {
list.value = list.value.concat(res.data.list)
}
})
} }
</script> </script>

2
src/pages/mes/workScheduling/workScheduling.vue

@ -398,7 +398,7 @@
switch (index) { switch (index) {
case 0: case 0:
tabParams.value.status = ''; tabParams.value.status = '';
tabParams.value.planMasterCode = '' // tabParams.value.planMasterCode = ''
break; break;
case 1: case 1:
tabParams.value.status = '-1'; tabParams.value.status = '-1';

Loading…
Cancel
Save