页面优化

This commit is contained in:
2026-01-26 15:11:40 +08:00
parent 23a636c439
commit 7c4d2c46b8
7 changed files with 37 additions and 14 deletions

View File

@@ -30,6 +30,15 @@
/>
</view>
</view>
<view class="zd-row border-bottom">
<view class="zd-col-6">
<span class="filter_label">物料编码</span>
</view>
<view class="zd-col-13">
<search-box v-model="materialData.material_code"/>
</view>
<button class="mini-btn" type="primary" @tap="toJump('material?title=物料维护')">查询</button>
</view>
</view>
<view class="zd_wrapper grid-wraper">
<view class="slide_new">
@@ -82,6 +91,7 @@
num: null,
val1: '',
val2: '',
materialData: {},
allCheck: false,
checkedArr: [],
dataList: [],
@@ -92,7 +102,18 @@
onLoad (options) {
this.title = options.title
},
onShow () {
if (this.$store.getters.publicObj !== '') {
this.materialData = this.$store.getters.publicObj
this.$store.dispatch('setPublicObj', '')
}
},
methods: {
toJump (name) {
uni.navigateTo({
url: `/pages/hdyy/wbc/${name}`
})
},
toEmpty () {
this.val1 = ''
this.val2 = ''
@@ -139,7 +160,7 @@
},
async _queryTransferDtl () {
try {
let res = await queryTransferDtl(this.val1)
let res = await queryTransferDtl(this.val1, this.materialData.material_code)
if (res && res.data.length > 0) {
this.dataList = [...res.data]
this.dataList.forEach(e => {