分切下料
This commit is contained in:
@@ -16,11 +16,15 @@
|
||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="msg_item">上轴子卷号:{{obj.up}}</view>
|
||||
<view class="msg_item">下轴子卷号:{{obj.down}}</view>
|
||||
<view class="msg_item">提示:{{obj.msg}}</view>
|
||||
</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}" :disabled="disabled" @tap="_downRolls">确认</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}" :disabled="disabled" @tap="_downRolls">确认</button>
|
||||
<button class="zd-col-8 btn-submit btn-success" @tap="_querySlitterDeviceSubVolumeInfos">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -29,7 +33,7 @@
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {queryProductArea} from '@/utils/getData2.js'
|
||||
import {slitterDevices, downRolls} from '@/utils/getData3.js'
|
||||
import {slitterDevices, downRolls, querySlitterDeviceSubVolumeInfos} from '@/utils/getData3.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -42,7 +46,8 @@
|
||||
index: '',
|
||||
options2: [],
|
||||
index2: '',
|
||||
disabled: false
|
||||
disabled: false,
|
||||
obj: {up: '-', down: '-', msg: '-'}
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
@@ -93,6 +98,10 @@
|
||||
this.index = ''
|
||||
this.index2 = ''
|
||||
this.options = []
|
||||
},
|
||||
async _querySlitterDeviceSubVolumeInfos () {
|
||||
let res = await querySlitterDeviceSubVolumeInfos()
|
||||
this.obj = res.data
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user