分切暂存下料
This commit is contained in:
@@ -17,6 +17,9 @@
|
||||
<uni-data-select v-model="index" :searchInput="true" :localdata="newoptions" @change="selectChange" @handleChange="handleChange" @showSelector="showSelector"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="msg_item">暂存A位:{{obj.a_point}}</view>
|
||||
<view class="msg_item">暂存B位:{{obj.b_point}}</view>
|
||||
<view class="msg_item">状态:{{obj.status}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submitbar">
|
||||
@@ -29,7 +32,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import {queryProductArea} from '@/utils/getData2.js'
|
||||
import {getCutCacheAgvPoints, sendSubVolumeToNBJ} from '@/utils/getData3.js'
|
||||
import {getCutCacheAgvPoints, sendSubVolumeToNBJ, queryCacheDownSubVolumeInfos} from '@/utils/getData3.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar
|
||||
@@ -42,7 +45,8 @@
|
||||
newoptions: [],
|
||||
options2: [],
|
||||
index2: '',
|
||||
disabled: false
|
||||
disabled: false,
|
||||
obj: {a_point: '-', b_point: '-', status: '-'}
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
@@ -67,6 +71,11 @@
|
||||
},
|
||||
selectChange (e) {
|
||||
this.index = e
|
||||
if (e) {
|
||||
this._queryCacheDownSubVolumeInfos()
|
||||
} else {
|
||||
this.obj = {a_point: '-', b_point: '-', status: '-'}
|
||||
}
|
||||
},
|
||||
/** 模糊匹配 */
|
||||
selectMatchItem (lists, keyWord) {
|
||||
@@ -115,6 +124,15 @@
|
||||
this.index = ''
|
||||
this.index2 = ''
|
||||
this.options = []
|
||||
this.obj = {a_point: '-', b_point: '-', status: '-'}
|
||||
},
|
||||
async _queryCacheDownSubVolumeInfos () {
|
||||
try {
|
||||
let res = await queryCacheDownSubVolumeInfos(this.index)
|
||||
this.obj = res.data
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
this.index = ''
|
||||
this.index2 = ''
|
||||
this.options = []
|
||||
this.obj = {up: '-', down: '-', msg: '-'}
|
||||
},
|
||||
async _querySlitterDeviceSubVolumeInfos () {
|
||||
try {
|
||||
|
||||
@@ -178,6 +178,10 @@ export const sendSubVolumeToNBJ = (code) => request({
|
||||
url:'api/pda/slitter/sendSubVolumeToNBJ',
|
||||
data: {point_code: code}
|
||||
})
|
||||
export const queryCacheDownSubVolumeInfos = (code) => request({
|
||||
url:'api/pda/slitter/queryCacheDownSubVolumeInfos',
|
||||
data: {point_code: code}
|
||||
})
|
||||
export const toCleanCutCacheInventory = (code) => request({
|
||||
url:'api/pda/slitter/toCleanCutCacheInventory',
|
||||
data: {point_code: code}
|
||||
|
||||
Reference in New Issue
Block a user