分切下料
This commit is contained in:
@@ -22,9 +22,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submitbar">
|
<view class="zd-row submitbar">
|
||||||
<button class="zd-col-5 btn-submit btn-default" @tap="clearUp">清空</button>
|
<button class="zd-col-6 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index}" :disabled="disabled" @tap="_downRolls">确认</button>
|
<button class="zd-col-15 btn-submit btn-success" :class="{'btn-info': !index}" :disabled="disabled" @tap="_downRolls">确认</button>
|
||||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index}" @tap="_querySlitterDeviceSubVolumeInfos">查询</button>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -76,6 +75,11 @@
|
|||||||
},
|
},
|
||||||
selectChange (e) {
|
selectChange (e) {
|
||||||
this.index = e
|
this.index = e
|
||||||
|
if (e) {
|
||||||
|
this._querySlitterDeviceSubVolumeInfos()
|
||||||
|
} else {
|
||||||
|
this.obj = {up: '-', down: '-', msg: '-'}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async _downRolls () {
|
async _downRolls () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
@@ -100,11 +104,12 @@
|
|||||||
this.options = []
|
this.options = []
|
||||||
},
|
},
|
||||||
async _querySlitterDeviceSubVolumeInfos () {
|
async _querySlitterDeviceSubVolumeInfos () {
|
||||||
if (!this.index) {
|
try {
|
||||||
return
|
let res = await querySlitterDeviceSubVolumeInfos(this.index)
|
||||||
|
this.obj = res.data
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
}
|
}
|
||||||
let res = await querySlitterDeviceSubVolumeInfos(this.index)
|
|
||||||
this.obj = res.data
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user