穿拔轴初始化
This commit is contained in:
@@ -407,6 +407,14 @@
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/SecondPhase/slitting/DoInitShaft",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
// "pageOrientation": "landscape",
|
||||
|
||||
66
pages/SecondPhase/slitting/DoInitShaft.vue
Normal file
66
pages/SecondPhase/slitting/DoInitShaft.vue
Normal file
@@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<nav-bar title="穿拔轴初始化"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="filter_item">
|
||||
<view class="filter_label">载具类型</view>
|
||||
<view class="filter_input_wraper">
|
||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
<button class="zd-col-22 btn-submit btn-success" :class="{'btn-info': !index}" :disabled="disabled" @tap="_doInitShaftPoint">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {getShaftPoint, doInitShaftPoint} from '@/utils/getData3.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
SearchBox
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
options: [],
|
||||
index: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this._getShaftPoint()
|
||||
},
|
||||
methods: {
|
||||
async _getShaftPoint () {
|
||||
let res = await getShaftPoint()
|
||||
this.options = [...res]
|
||||
},
|
||||
selectChange (e) {
|
||||
this.index = e
|
||||
},
|
||||
async _doInitShaftPoint () {
|
||||
this.disabled = true
|
||||
if (!this.index) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await doInitShaftPoint(this.index)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -134,3 +134,16 @@ export const downRolls = (code) => request({
|
||||
url:'api/pda/slitter/downRolls',
|
||||
data: {device_code: code}
|
||||
})
|
||||
/**
|
||||
* 穿拔轴初始化
|
||||
*/
|
||||
// 下拉框数据
|
||||
export const getShaftPoint = () => request({
|
||||
url:'api/pda/slitter/getShaftPoint',
|
||||
data: {}
|
||||
})
|
||||
// 确定
|
||||
export const doInitShaftPoint = (code) => request({
|
||||
url:'api/pda/slitter/doInitShaftPoint',
|
||||
data: {point_code: code}
|
||||
})
|
||||
@@ -79,6 +79,7 @@ export const authority = () => {
|
||||
{menu_id: '3', title: '空轴配送', path: '/pages/SecondPhase/slitting/ZjDelivery'},
|
||||
{menu_id: '4', title: '空轴进站', path: '/pages/SecondPhase/slitting/ZjInStore'},
|
||||
{menu_id: '5', title: '子卷出站', path: '/pages/SecondPhase/slitting/ZjOutStore'},
|
||||
{menu_id: '7', title: '穿拔轴初始化', path: '/pages/SecondPhase/slitting/DoInitShaft'}
|
||||
]},
|
||||
{menu_id: '6', path: 'RF04', title: '点位管理', sonTree: [
|
||||
{menu_id: '1', title: '点位管理', path: '/pages/SecondPhase/point/PointManage'},
|
||||
@@ -111,3 +112,7 @@ export const twoPdaIvtbBoxDtlQuery = (no) => {
|
||||
}
|
||||
return res
|
||||
}
|
||||
export const getShaftPoint = () => {
|
||||
let res = [{"text":"穿拔轴点位1","value":"B_CBJ01"},{"text":"穿拔轴点位2","value":"B_CBJ02"},{"text":"穿拔轴点位3","value":"B_CBJ03"},{"text":"穿拔轴点位4","value":"B_CBJ04"}]
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user