Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into master_hella

hella_vue3
niexiting 7 months ago
parent
commit
c1bb7601b0
  1. 1
      src/pages/count/record/countRecord.vue
  2. 89
      src/pages/index/index.vue
  3. 2
      src/pages/inspect/coms/comInspectDetailCard.vue
  4. 2
      src/pages/query/coms/comItemDetailCard.vue

1
src/pages/count/record/countRecord.vue

@ -74,7 +74,6 @@
import comBlankView from '@/mycomponents/common/comBlankView.vue' import comBlankView from '@/mycomponents/common/comBlankView.vue'
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue"
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import CountQtyEdit from '@/mycomponents/qty/CountQtyEdit.vue'
export default { export default {
name: 'receipt_detail', name: 'receipt_detail',

89
src/pages/index/index.vue

@ -1,11 +1,30 @@
<template> <template>
<view class="u-wrap"> <view class="u-wrap">
<!-- <view class="u-search-box"> --> <view class="serch txt-16">
<!-- <view class="u-search-inner"> <uni-search-bar class="flex1" placeholder="请输入菜单名称" @confirm="search" @input="input" cancelButton="none"
<u-icon name="search" color="#909399" :size="28"></u-icon> @clear="clearfilterlist">
<text class="u-search-text">搜索</text> </uni-search-bar>
</view> --> <button class="mini-btn" type="primary" size="mini" style="margin-right:15rpx; font-size: 16px;"
<!-- </view> --> @click="search">搜索</button>
</view>
<view class="item-container" style="align-items: center; width: 100%;">
<view class="thumb-box" v-for="(item1, index1) in filterList" :key="index1" @click="openCheck(item1.path)"
style="text-align: center; ">
<view class="" style="position: relative; ">
<image class="item-menu-image" :src="'/static/menus/'+item1.componentName" mode="">
</image>
<view class="">
<text class="item-menu-name">{{item1.name}}</text>
</view>
</view>
</view>
<view v-if="serchval.length >0 && nomore == true" class="nomore"
style=" width: 100%; justify-content: center; margin: 20rpx;">
<text style="font-size: 35rpx;">暂无数据</text>
</view>
</view>
<view class="u-menu-wrap"> <view class="u-menu-wrap">
<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop" <scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop"
:scroll-into-view="itemId"> :scroll-into-view="itemId">
@ -75,7 +94,9 @@
count: 1, count: 1,
position: [-10, -10], position: [-10, -10],
timer: null, timer: null,
menusCount: {} menusCount: {},
filterList: [],
serchval: ""
} }
}, },
onLoad() { onLoad() {
@ -346,6 +367,7 @@
uni.navigateTo({ uni.navigateTo({
url: "/" + url url: "/" + url
}); });
this.filterList = []
}, },
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showMessage(message, res => { this.$refs.comMessage.showMessage(message, res => {
@ -354,6 +376,36 @@
} }
}); });
}, },
search() {
let that = this
that.filterList = []
that.nomore = false
if (that.serchval.length !== 0) {
this.tabbar.forEach((v) => {
v.children.forEach((i) => {
if (i.name.indexOf(that.serchval) !== -1) {
// console.log("dddd", i)
that.filterList.push(i)
}
})
})
if (that.filterList == 0) {
that.nomore = true
}
}
},
clearfilterlist() {
let that = this;
that.filterList = [];
},
input(v) {
console.log("222", v)
this.serchval = v
this.nomore = false
if (this.serchval == "") {
this.clearfilterlist()
}
},
} }
} }
</script> </script>
@ -501,4 +553,27 @@
line-height: 36rpx; line-height: 36rpx;
border-radius: 50%; border-radius: 50%;
} }
.serch {
width: 100%;
display: flex;
/* height: 130upx; */
align-items: center;
}
.flex1 {
flex: 1;
font-size: 18px;
}
.menu {
width: 100%;
}
.nomore {
font-size: 30rpx;
color: #666;
text-align: center;
align-items: center;
}
</style> </style>

2
src/pages/inspect/coms/comInspectDetailCard.vue

@ -33,7 +33,6 @@
</template> </template>
<script> <script>
import Batch from "@/mycomponents/Batch/Batch.vue"
import itemQty from '@/mycomponents/item/itemQty.vue' import itemQty from '@/mycomponents/item/itemQty.vue'
import recommend from '@/mycomponents/recommend/recommend.vue' import recommend from '@/mycomponents/recommend/recommend.vue'
import inspectQtyEdit from '@/mycomponents/qty/inspectQtyEdit.vue' import inspectQtyEdit from '@/mycomponents/qty/inspectQtyEdit.vue'
@ -49,7 +48,6 @@
export default { export default {
components: { components: {
Batch,
itemQty, itemQty,
recommend, recommend,
inspectQtyEdit, inspectQtyEdit,

2
src/pages/query/coms/comItemDetailCard.vue

@ -18,7 +18,6 @@
} from '@/common/directory.js'; } from '@/common/directory.js';
import comEmptyView from '@/mycomponents/common/comEmptyView.vue' import comEmptyView from '@/mycomponents/common/comEmptyView.vue'
import Batch from "@/mycomponents/Batch/Batch.vue"
import location from '@/mycomponents/location/location.vue' import location from '@/mycomponents/location/location.vue'
import comItemBalance from '@/pages/query/coms/comItemBalance.vue' import comItemBalance from '@/pages/query/coms/comItemBalance.vue'
import bussinessType from '@/mycomponents/balance/bussinessType.vue' import bussinessType from '@/mycomponents/balance/bussinessType.vue'
@ -28,7 +27,6 @@
name: "comdetail", name: "comdetail",
components: { components: {
comEmptyView, comEmptyView,
Batch,
location, location,
bussinessType, bussinessType,
comItemBalance comItemBalance

Loading…
Cancel
Save