分切下料
This commit is contained in:
@@ -16,11 +16,15 @@
|
|||||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</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>
|
</view>
|
||||||
<view class="zd-row submitbar">
|
<view class="zd-row submitbar">
|
||||||
<button class="zd-col-6 btn-submit btn-default" @tap="clearUp">清空</button>
|
<button class="zd-col-5 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-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>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -29,7 +33,7 @@
|
|||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {queryProductArea} from '@/utils/getData2.js'
|
import {queryProductArea} from '@/utils/getData2.js'
|
||||||
import {slitterDevices, downRolls} from '@/utils/getData3.js'
|
import {slitterDevices, downRolls, querySlitterDeviceSubVolumeInfos} from '@/utils/getData3.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -42,7 +46,8 @@
|
|||||||
index: '',
|
index: '',
|
||||||
options2: [],
|
options2: [],
|
||||||
index2: '',
|
index2: '',
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
obj: {up: '-', down: '-', msg: '-'}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
@@ -93,6 +98,10 @@
|
|||||||
this.index = ''
|
this.index = ''
|
||||||
this.index2 = ''
|
this.index2 = ''
|
||||||
this.options = []
|
this.options = []
|
||||||
|
},
|
||||||
|
async _querySlitterDeviceSubVolumeInfos () {
|
||||||
|
let res = await querySlitterDeviceSubVolumeInfos()
|
||||||
|
this.obj = res.data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -135,6 +135,11 @@ export const downRolls = (code) => request({
|
|||||||
url:'api/pda/slitter/downRolls',
|
url:'api/pda/slitter/downRolls',
|
||||||
data: {device_code: code}
|
data: {device_code: code}
|
||||||
})
|
})
|
||||||
|
export const querySlitterDeviceSubVolumeInfos = () => request({
|
||||||
|
url:'api/pda/slitter/querySlitterDeviceSubVolumeInfos',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 穿拔轴初始化
|
* 穿拔轴初始化
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user