缓存线异常处理
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<script>
|
<script>
|
||||||
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 {queryInstraction, instOperation} from '@/utils/getData2.js'
|
import {cacheLineExcepOpt} from '@/utils/getData1.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -31,10 +31,6 @@
|
|||||||
return {
|
return {
|
||||||
options1: [],
|
options1: [],
|
||||||
index1: '',
|
index1: '',
|
||||||
val1: '',
|
|
||||||
val2: '',
|
|
||||||
dataList: [],
|
|
||||||
pkId: '',
|
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -43,17 +39,9 @@
|
|||||||
selectChange1(e) {
|
selectChange1(e) {
|
||||||
this.index1 = e
|
this.index1 = e
|
||||||
},
|
},
|
||||||
toSearch () {
|
async toSure (type) {
|
||||||
this.dataList = []
|
|
||||||
this._queryInstraction()
|
|
||||||
},
|
|
||||||
async _queryInstraction () {
|
|
||||||
let res = await queryInstraction()
|
|
||||||
this.dataList = [...res.data]
|
|
||||||
},
|
|
||||||
toSure () {
|
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.pkId) {
|
if (!this.index1) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请选择',
|
title: '请选择',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -61,14 +49,16 @@
|
|||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this._instOperation()
|
try {
|
||||||
},
|
let res = await _cacheLineExcepOpt()
|
||||||
async _instOperation () {
|
this.disabled = false
|
||||||
let res = await instOperation()
|
uni.showToast({
|
||||||
this.dataList = [...res.data]
|
title: res.message,
|
||||||
},
|
icon: 'none'
|
||||||
toRadio (e) {
|
})
|
||||||
this.pkId = this.pkId === e.instruct_uuid ? '' : e.instruct_uuid
|
} catch (e) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -76,6 +66,6 @@
|
|||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@import '../../common/style/mixin.styl';
|
@import '../../common/style/mixin.styl';
|
||||||
.grid-wrap
|
// .grid-wrap
|
||||||
height calc(100% - 526rpx)
|
// height calc(100% - 526rpx)
|
||||||
</style>
|
</style>
|
||||||
@@ -1 +1,38 @@
|
|||||||
import request from './request.js'
|
import request from './request.js'
|
||||||
|
|
||||||
|
/** 缓存线出箱异常 */
|
||||||
|
// 1.1缓存线异常处理:
|
||||||
|
export const cacheLineExcepOpt = (wcode, opttype) => request({
|
||||||
|
url:'/api/cacheLineHand/cacheLineExcepOpt',
|
||||||
|
data: {
|
||||||
|
form: {
|
||||||
|
wcsdevice_code: wcode,
|
||||||
|
opt_type: opttype
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
/** 缓存线异常处理 */
|
||||||
|
// 1.1缓存线出箱异常-查询:
|
||||||
|
export const cacheLineOutBoxExceptionQuery = (wcode, pcode) => request({
|
||||||
|
url:'/api/cacheLineHand/cacheLineOutBoxExceptionQuery',
|
||||||
|
data: {
|
||||||
|
form: {
|
||||||
|
wcsdevice_code: wcode,
|
||||||
|
position_code: pcode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// 1.2缓存线出箱异常-确认:
|
||||||
|
export const cacheLineOutBoxExceptionConfirm = (wcode, uuid, itype, vcode, pcode) => request({
|
||||||
|
url:'/api/cacheLineHand/cacheLineOutBoxExceptionConfirm',
|
||||||
|
data: {
|
||||||
|
form: {
|
||||||
|
wcsdevice_code: wcode,
|
||||||
|
instruct_uuid: uuid,
|
||||||
|
inOut_type: itype,
|
||||||
|
vehicle_code: vcode,
|
||||||
|
position_code: pcode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user