分切下料
This commit is contained in:
@@ -22,9 +22,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<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}" :disabled="disabled" @tap="_downRolls">确认</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" :class="{'btn-info': !index}" @tap="_querySlitterDeviceSubVolumeInfos">查询</button>
|
||||
<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}" :disabled="disabled" @tap="_downRolls">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -76,6 +75,11 @@
|
||||
},
|
||||
selectChange (e) {
|
||||
this.index = e
|
||||
if (e) {
|
||||
this._querySlitterDeviceSubVolumeInfos()
|
||||
} else {
|
||||
this.obj = {up: '-', down: '-', msg: '-'}
|
||||
}
|
||||
},
|
||||
async _downRolls () {
|
||||
this.disabled = true
|
||||
@@ -100,11 +104,12 @@
|
||||
this.options = []
|
||||
},
|
||||
async _querySlitterDeviceSubVolumeInfos () {
|
||||
if (!this.index) {
|
||||
return
|
||||
try {
|
||||
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