修改呼叫套轴、子卷装箱
This commit is contained in:
@@ -49,8 +49,9 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-6 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !index || !pkId}" :disabled="disabled" @tap="_doCallTubeShaft">确认</button>
|
||||
<button class="zd-col-5 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index}" @tap="_doCallTubeShaftShow">刷新</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index || !pkId}" :disabled="disabled" @tap="_doCallTubeShaft">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -81,7 +82,6 @@
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
this._queryProductArea()
|
||||
this._doCallTubeShaftShow()
|
||||
},
|
||||
methods: {
|
||||
selectChange2(e) {
|
||||
@@ -103,10 +103,18 @@
|
||||
},
|
||||
selectChange (e) {
|
||||
this.index = e
|
||||
if (e) {
|
||||
this._doCallTubeShaftShow(e)
|
||||
} else {
|
||||
this.dataList = []
|
||||
}
|
||||
},
|
||||
async _doCallTubeShaftShow () {
|
||||
async _doCallTubeShaftShow (e) {
|
||||
if (!this.index) {
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await doCallTubeShaftShow()
|
||||
let res = await doCallTubeShaftShow(e)
|
||||
if (res) {
|
||||
this.dataList = [...res]
|
||||
} else {
|
||||
@@ -133,8 +141,9 @@
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.clearUp()
|
||||
this._doCallTubeShaftShow()
|
||||
this.pkId = ''
|
||||
this.pkObj = {}
|
||||
this._doCallTubeShaftShow(this.index)
|
||||
}
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user