修改呼叫套轴、子卷装箱

This commit is contained in:
2025-07-11 14:05:30 +08:00
parent b53324d8ca
commit 7228eeb9ff
4 changed files with 54 additions and 19 deletions

View File

@@ -51,11 +51,11 @@
<view class="msg_wrapper" :class="show ? 'popshow' : 'pophide'">
<view class="pop-line"></view>
<view class="zd_wrapper-2">
<view class="zd-row filter_item">
<view :class="!disabled ? 'zd-col-18' : 'zd-col-24'">
<input type="text" placeholder="输入关键字搜索" class="filter_input" :class="{'filter_input_disabled': disabled}" :disabled="disabled" v-model="val2">
<view class="filter_item">
<view class="filter_label">木箱描述</view>
<view class="filter_input_wraper">
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
</view>
<view v-show="!disabled" class="zd-col-5"><button class="btn-submit btn-success" @tap="_queryBoxSpec">查询</button></view>
</view>
</view>
<view class="msg_content msg_content_1 pdb110">
@@ -129,7 +129,7 @@
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import UpTop from '@/components/upTop.vue'
import {queryContainerNameBySaleOrder, queryBoxSpec, updateEntityList} from '@/utils/getData3.js'
import {queryContainerNameBySaleOrder, getSameBoxList, queryBoxSpec, updateEntityList} from '@/utils/getData3.js'
export default {
components: {
NavBar,
@@ -145,7 +145,8 @@
popData: [],
show: false,
disabled: false,
val2: '',
options: [],
index: '',
pkId: '',
pkObj: {},
paper: '',
@@ -238,11 +239,28 @@
}
}
this.disabled = code !== ''
this.val2 = code
this._queryBoxSpec()
this._getSameBoxList(code)
},
async _queryBoxSpec () {
let res = await queryBoxSpec(this.val2)
async _getSameBoxList (e) {
let res = await getSameBoxList(e)
if (res && res.length) {
this.options = [...res]
if (this.options.length > 0) {
this.index = this.options[0].value
this._queryBoxSpec(this.index)
}
}
},
selectChange (e) {
this.index = e
if (e) {
this._queryBoxSpec(e)
} else {
this.popData = []
}
},
async _queryBoxSpec (e) {
let res = await queryBoxSpec(e)
if (res.code === 200) {
this.popData = [...res.content]
this.show = true