This commit is contained in:
2024-08-15 09:02:56 +08:00
parent 615af3a957
commit 00b698500f
6 changed files with 30 additions and 6 deletions

View File

@@ -153,6 +153,10 @@
})
this.clearUp()
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
this.disabled = false
}
} catch (e) {

View File

@@ -78,6 +78,10 @@
})
this.clearUp()
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
this.disabled = false
}
} catch (e) {

View File

@@ -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,

View File

@@ -63,6 +63,10 @@
})
this.clearUp()
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
this.disabled = false
}
} catch (e) {

View File

@@ -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) {

View File

@@ -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}