|
@@ -6,12 +6,13 @@
|
|
|
<input class="nav-bar-input" type="text" v-model="keywords" placeholder="输入搜索关键词" />
|
|
|
</view>
|
|
|
<view class="search" @click="handleSearch">搜索</view>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
<view v-if="listData.length == 0" style="color: #999;margin: 50% auto;">
|
|
|
<text>暂无生产计划</text>
|
|
|
</view>
|
|
|
<view v-else style="height: calc(100% - 100rpx); overflow: auto;">
|
|
|
- <view v-for="(item, index) in listData" :key="index" @click="handleToBatchReporting(item)" class="list-item">
|
|
|
+ <view v-for="(item, index) in listData" :key="index" @click="handleToBatchReporting(item)"
|
|
|
+ class="list-item">
|
|
|
<view class="title-container uni-row">
|
|
|
<view class="title uni-row">
|
|
|
<text class="label">生产计划单号</text>
|
|
@@ -46,7 +47,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
- import { getPlanDetailsList } from '@/api/business/planDetails.js'
|
|
|
+ import {
|
|
|
+ getPlanDetailsList
|
|
|
+ } from '@/api/business/planDetails.js'
|
|
|
import {
|
|
|
ref
|
|
|
} from 'vue'
|
|
@@ -75,7 +78,7 @@
|
|
|
// dayworkItem数据更改后刷新数据
|
|
|
// uni.$on('dayworkItemUpdate', reflush);
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
onShow(() => {
|
|
|
reflush();
|
|
|
})
|
|
@@ -88,11 +91,21 @@
|
|
|
/**
|
|
|
* 监听下拉刷新
|
|
|
*/
|
|
|
- // onPullDownRefresh(() => {
|
|
|
- // setTimeout(function() {
|
|
|
- // uni.stopPullDownRefresh();
|
|
|
- // }, 3000);
|
|
|
- // })
|
|
|
+ onPullDownRefresh(() => {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ reflush();
|
|
|
+ // getPlanDetailsList({
|
|
|
+ // deptId: Number(store.curDeptDetails.deptId),
|
|
|
+ // keywords: keywords.value
|
|
|
+ // }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // listData.value = res.data;
|
|
|
+ // uni.stopPullDownRefresh();
|
|
|
+ // }
|
|
|
+ // uni.stopPullDownRefresh();
|
|
|
+ // })
|
|
|
+
|
|
|
+ })
|
|
|
|
|
|
function reflush() {
|
|
|
init();
|
|
@@ -104,9 +117,9 @@
|
|
|
});
|
|
|
getPlanDetailsList({
|
|
|
deptId: Number(store.curDeptDetails.deptId),
|
|
|
- keywords:keywords.value
|
|
|
+ keywords: keywords.value
|
|
|
}).then(res => {
|
|
|
- if(res.code == 200){
|
|
|
+ if (res.code == 200) {
|
|
|
listData.value = res.data;
|
|
|
uni.hideLoading();
|
|
|
}
|
|
@@ -149,7 +162,7 @@
|
|
|
border-radius: 15rpx;
|
|
|
padding: 0 15rpx;
|
|
|
flex-wrap: nowrap;
|
|
|
- margin:0 10rpx 20rpx;
|
|
|
+ margin: 0 10rpx 20rpx;
|
|
|
line-height: $nav-height;
|
|
|
|
|
|
.input-uni-icon {
|