固定搜索

This commit is contained in:
蔡玲
2024-12-18 14:02:59 +08:00
parent 732d60bf12
commit 04d6e922af
9 changed files with 74 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
<template>
<view class="content">
<nav-bar title="调拨维护"></nav-bar>
<view class="search-confirm-wrap">
<view class="sticky search-confirm-wrap">
<view class="zd-row">
<view class="zd-col-15 zd-row jcflexstart">
<view class="zd-col-10"><search-box placeholder="输入查询条件" v-model="val1" /></view>

View File

@@ -1,7 +1,7 @@
<template>
<view class="content">
<nav-bar title="盘点"></nav-bar>
<view class="search-confirm-wrap">
<view class="sticky search-confirm-wrap">
<view class="zd-row">
<view class="zd-row zd-col-14">
<view class="zd-col-12"><search-box placeholder="输入查询条件" v-model="val1" /></view>

View File

@@ -1,16 +1,19 @@
<template>
<view class="content">
<nav-bar :title="title"></nav-bar>
<view class="search-confirm-wrap">
<view class="sticky search-confirm-wrap">
<view class="zd-row">
<view class="zd-col-13 zd-row jcflexstart">
<view :class="crType === 'OUT' ? 'zd-col-10' : 'zd-col-16'"><search-box placeholder="输入查询条件" v-model="val1" /></view>
<view v-if="crType === 'OUT'" class="zd-col-6 select_wraper mgl10">
<zxz-uni-data-select placeholder="选择仓管员" v-model="value2" filterable :localdata="range2"></zxz-uni-data-select>
</view>
<view class="relative zd-col-8 mgl10">
<switch :checked="isChecked" color="#007de7"/>
<text @tap="setWStatus" style="position: absolute;display: inline-block;width: 75px; height: 26px;left: 0;"></text>
<view class="zd-col-8 mgl10 zd-row jcflexstart">
<view class="pop_label mgr1">全部数据</view>
<view class="relative">
<switch :checked="isChecked" color="#007de7"/>
<text @tap="setWStatus" style="position: absolute;display: inline-block;width: 75px; height: 26px;left: 0;"></text>
</view>
</view>
</view>
<view class="zd-col-11 zd-row jcflexend">
@@ -191,6 +194,7 @@
<uni-popup ref="alertDialog" type="dialog">
<uni-popup-dialog type="info" cancelText="关闭" confirmText="确定" title="提示" content="是否提交库存?" @confirm="_inWarehouseCommit"></uni-popup-dialog>
</uni-popup>
<up-top ref="UT" :scrollTop="top"></up-top>
</view>
</template>
@@ -200,6 +204,7 @@
import ScanInput from '@/components/ScanInput.vue'
import Pagination from '@/components/Pagination.vue'
import GridDetail from '@/components/GridDetail.vue'
import UpTop from '@/components/upTop.vue'
import {getWarehouseInfo, getUserInfo, easOutInBillPage, easOutInBillDetailPage, viewAssignDtl, inWarehouseAssignLocation, updateAssignDtl, addAssignDtl, inWarehouseCommit, easOutInBillUpdate, easOutInBillSync} from '@/utils/getData2.js'
// import {updateAssignDtl, addAssignDtl, inWarehouseCommit, easOutInBillUpdate, easOutInBillSync} from '@/utils/getData2.js'
// import {getWarehouseInfo, getUserInfo, easOutInBillPage, easOutInBillDetailPage, viewAssignDtl, inWarehouseAssignLocation} from '@/utils/mork2.js'
@@ -209,11 +214,13 @@
SearchBox,
ScanInput,
Pagination,
GridDetail
GridDetail,
UpTop
},
data() {
return {
title: '',
top: 0,
id: '',
crType: '',
val1: '', // 模糊查询
@@ -242,6 +249,9 @@
isChecked: false
}
},
onPageScroll(e) {
this.$refs.UT.topData(e.scrollTop)
},
onLoad (options) {
this.id = options.id
this.title = options.name

View File

@@ -1,7 +1,7 @@
<template>
<view class="content">
<nav-bar :title="title"></nav-bar>
<view class="search-confirm-wrap">
<view class="sticky search-confirm-wrap">
<view class="zd-row">
<view class="zd-col-13 zd-row jcflexstart">
<view :class="crType === 'OUT' ? 'zd-col-10' : 'zd-col-16'"><search-box placeholder="输入查询条件" v-model="val1" /></view>

View File

@@ -1,7 +1,7 @@
<template>
<view class="content">
<nav-bar title="移库"></nav-bar>
<view class="search-confirm-wrap">
<view class="sticky search-confirm-wrap">
<view class="zd-row">
<view class="zd-row zd-col-14">
<view class="zd-col-12"><search-box placeholder="输入查询条件" v-model="val1" /></view>

View File

@@ -1,7 +1,7 @@
<template>
<view class="content">
<nav-bar title="收货确认"></nav-bar>
<view class="search-confirm-wrap">
<view class="sticky search-confirm-wrap">
<view class="zd-row">
<view class="zd-col-14 zd-row jcflexstart">
<view class="zd-col-12"><search-box placeholder="请输入查询条件" v-model="val1" /></view>