This commit is contained in:
2023-10-18 14:12:28 +08:00
parent 7e6856e6a3
commit 22184528a6
2 changed files with 23 additions and 7 deletions

View File

@@ -39,7 +39,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 {getPressCode, groupmanual} from '@/utils/getData1.js' import {pressPointList, pressTask} from '@/utils/getData1.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -55,8 +55,7 @@
}; };
}, },
created () { created () {
this._getPressCode() this._pressPointList()
this._getVehicleType()
}, },
methods: { methods: {
change(e) { change(e) {
@@ -68,9 +67,9 @@
// selectChange2(e) { // selectChange2(e) {
// this.index2 = e // this.index2 = e
// }, // },
/** 获取点位编码下拉框 */ /** 获取下拉框 */
async _getPressCode () { async _pressPointList () {
let res = await getPressCode() let res = await pressPointList()
this.options2 = [...res] this.options2 = [...res]
}, },
/** 确定 */ /** 确定 */
@@ -81,7 +80,7 @@
return return
} }
try { try {
let res = await groupmanual(this.val1, this.index2, this.val2) let res = await pressTask(this.val1, this.index2, this.val2)
this.disabled1 = false this.disabled1 = false
this.val1 = '' this.val1 = ''
this.val2 = '' this.val2 = ''

View File

@@ -80,3 +80,20 @@ export const emptyDiskIntoStorageTask = () => request({
url:'api/pda/manualSorting/emptyDiskIntoStorageTask', url:'api/pda/manualSorting/emptyDiskIntoStorageTask',
data: {} data: {}
}) })
// 压机搬运
// 压机叫料
export const pressTask = (dcode, vcode, qty, id) => request({
url:'api/pda/pressSendMaterial/pressTask',
data: {
device_code: dcode,
vehicle_code: vcode,
qty: qty,
user_id: id
}
})
// 搬运起点
export const pressPointList = () => request({
url:'api/pda/pressSendMaterial/pressPointList',
data: {}
})