diff --git a/pages-warehouse/home/home.vue b/pages-warehouse/home/home.vue index 9f6a0fc..80671fd 100644 --- a/pages-warehouse/home/home.vue +++ b/pages-warehouse/home/home.vue @@ -139,6 +139,7 @@ export default { pageSize: 10, query: null, type: "01", + isBack: false, }, //配件单列表 ticketWares: [], diff --git a/pages-warehouse/inOutWarehouse/inOutWarehouse.vue b/pages-warehouse/inOutWarehouse/inOutWarehouse.vue index 634d6e9..ac8d742 100644 --- a/pages-warehouse/inOutWarehouse/inOutWarehouse.vue +++ b/pages-warehouse/inOutWarehouse/inOutWarehouse.vue @@ -6,6 +6,14 @@ + + + + 搜索 + + @@ -65,7 +73,8 @@ export default { //父组件传入的数据 formData: {}, active: '', - isToBeReviewed: true + isToBeReviewed: true, + query: null }; }, onLoad(data) { @@ -82,12 +91,16 @@ export default { computed: {}, methods: { + handleSearch(){ + this.init() + }, /** * 初始化配件数据 */ init() { const params = { - twId: this.formData.id + twId: this.formData.id, + query: this.query } request({ url: '/admin-api/repair/twi/list', @@ -381,4 +394,29 @@ export default { margin-left: 20rpx; } } + +.body-top { + //width: 686rpx; + background: #FFFFFF; + border-radius: 8rpx 8rpx 8rpx 8rpx; + margin: 30rpx 30rpx 0; + + .body-top-search { + height: 84rpx; + background: #F3F5F7; + border-radius: 12rpx 12rpx 12rpx 12rpx; + margin: 0 auto; + padding: 0 30rpx; + font-size: 28rpx; + + display: flex; + align-items: center; + column-gap: 10rpx; + + .body-top-search-input { + flex: 1; + width: 0; + } + } +}