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

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

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

Loading…
Cancel
Save