缓存线异常处理
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {queryInstraction, instOperation} from '@/utils/getData2.js'
|
||||
import {cacheLineExcepOpt} from '@/utils/getData1.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -31,10 +31,6 @@
|
||||
return {
|
||||
options1: [],
|
||||
index1: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
dataList: [],
|
||||
pkId: '',
|
||||
disabled: false
|
||||
};
|
||||
},
|
||||
@@ -43,17 +39,9 @@
|
||||
selectChange1(e) {
|
||||
this.index1 = e
|
||||
},
|
||||
toSearch () {
|
||||
this.dataList = []
|
||||
this._queryInstraction()
|
||||
},
|
||||
async _queryInstraction () {
|
||||
let res = await queryInstraction()
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
toSure () {
|
||||
async toSure (type) {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
if (!this.index1) {
|
||||
uni.showToast({
|
||||
title: '请选择',
|
||||
icon: 'none'
|
||||
@@ -61,14 +49,16 @@
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
this._instOperation()
|
||||
},
|
||||
async _instOperation () {
|
||||
let res = await instOperation()
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
toRadio (e) {
|
||||
this.pkId = this.pkId === e.instruct_uuid ? '' : e.instruct_uuid
|
||||
try {
|
||||
let res = await _cacheLineExcepOpt()
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -76,6 +66,6 @@
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
@import '../../common/style/mixin.styl';
|
||||
.grid-wrap
|
||||
height calc(100% - 526rpx)
|
||||
// .grid-wrap
|
||||
// height calc(100% - 526rpx)
|
||||
</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