This commit is contained in:
Vinjor 2024-11-18 20:02:25 +08:00
commit 956d19e70d
2 changed files with 41 additions and 2 deletions

View File

@ -139,6 +139,7 @@ export default {
pageSize: 10, pageSize: 10,
query: null, query: null,
type: "01", type: "01",
isBack: false,
}, },
// //
ticketWares: [], ticketWares: [],

View File

@ -6,6 +6,14 @@
<!-- {{ item.name }}--> <!-- {{ item.name }}-->
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<view class="body-top">
<view class="body-top-search">
<input class="body-top-search-input" v-model="query" placeholder="配件名称"
placeholder-style="font-size: 28rpx"
type="text">
<text @click="handleSearch">搜索</text>
</view>
</view>
<view class="listBox"> <view class="listBox">
<view class="list"> <view class="list">
<view v-for="(item, index) in wares" :key="index" class="listItem"> <view v-for="(item, index) in wares" :key="index" class="listItem">
@ -65,7 +73,8 @@ export default {
// //
formData: {}, formData: {},
active: '', active: '',
isToBeReviewed: true isToBeReviewed: true,
query: null
}; };
}, },
onLoad(data) { onLoad(data) {
@ -82,12 +91,16 @@ export default {
computed: {}, computed: {},
methods: { methods: {
handleSearch(){
this.init()
},
/** /**
* 初始化配件数据 * 初始化配件数据
*/ */
init() { init() {
const params = { const params = {
twId: this.formData.id twId: this.formData.id,
query: this.query
} }
request({ request({
url: '/admin-api/repair/twi/list', url: '/admin-api/repair/twi/list',
@ -381,4 +394,29 @@ export default {
margin-left: 20rpx; 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;
}
}
}
</style> </style>