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