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() this.clearUp()
} else { } else {
uni.showToast({
title: res.msg,
icon: 'none'
})
this.disabled = false this.disabled = false
} }
} catch (e) { } catch (e) {

View File

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

View File

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

View File

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

View File

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

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({ 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}