接口
This commit is contained in:
@@ -153,6 +153,10 @@
|
|||||||
})
|
})
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -78,6 +78,10 @@
|
|||||||
})
|
})
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -105,8 +105,6 @@
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await mdGruopDick(this.dataList, this.val1, this.val2)
|
let res = await mdGruopDick(this.dataList, this.val1, this.val2)
|
||||||
if (res.code === '200') {
|
|
||||||
}
|
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
|||||||
@@ -63,6 +63,10 @@
|
|||||||
})
|
})
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -40,7 +40,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 {pdaPalletIostorinvOut} from '@/utils/getData2.js'
|
import {targetPoint, pdaPalletIostorinvOut} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -52,15 +52,14 @@
|
|||||||
options1: [{text:'堆叠托盘', value:'22222222'},{text:'料箱',value: '11111111'}],
|
options1: [{text:'堆叠托盘', value:'22222222'},{text:'料箱',value: '11111111'}],
|
||||||
index1: '',
|
index1: '',
|
||||||
qty: '',
|
qty: '',
|
||||||
options2: [{text:'1309', value:'1309'}],
|
options2: [],
|
||||||
index2: '',
|
index2: '',
|
||||||
disabled: false
|
disabled: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
this._targetPoint()
|
||||||
created () {
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selectChange1 (e) {
|
selectChange1 (e) {
|
||||||
@@ -69,6 +68,13 @@
|
|||||||
selectChange2 (e) {
|
selectChange2 (e) {
|
||||||
this.index2 = e
|
this.index2 = e
|
||||||
},
|
},
|
||||||
|
async _targetPoint () {
|
||||||
|
let res = await targetPoint()
|
||||||
|
this.options2 = [...res]
|
||||||
|
this.options2.map(el => {
|
||||||
|
this.$set(el, 'text', el.label)
|
||||||
|
})
|
||||||
|
},
|
||||||
clearUp () {
|
clearUp () {
|
||||||
this.qty = ''
|
this.qty = ''
|
||||||
this.index1 = ''
|
this.index1 = ''
|
||||||
@@ -90,6 +96,10 @@
|
|||||||
})
|
})
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
} else {
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -49,6 +49,10 @@ export const pdaPalletIostorinvIn = (code, id) => request({
|
|||||||
/**
|
/**
|
||||||
* 托盘出库
|
* 托盘出库
|
||||||
*/
|
*/
|
||||||
|
export const targetPoint = () => request({
|
||||||
|
url:'api/pdaPalletIostorinv/targetPoint',
|
||||||
|
method: 'GET'
|
||||||
|
})
|
||||||
export const pdaPalletIostorinvOut = (id, qty, point) => request({
|
export const pdaPalletIostorinvOut = (id, qty, point) => request({
|
||||||
url:'api/pdaPalletIostorinv/out',
|
url:'api/pdaPalletIostorinv/out',
|
||||||
data: {material_id: id, qty: qty, pcsn: '1', target_point: point}
|
data: {material_id: id, qty: qty, pcsn: '1', target_point: point}
|
||||||
|
|||||||
Reference in New Issue
Block a user