diff --git a/fe/PDA/api/index.js b/fe/PDA/api/index.js index a135708b9..0d5f75717 100644 --- a/fe/PDA/api/index.js +++ b/fe/PDA/api/index.js @@ -1400,4 +1400,24 @@ export const getPlasticsList = (params) => request( method: 'get', data: params }); + +//空器具呼叫 +export const containerRequest = (params) => request( + devUrl + "/api/pda/store/container-request", { // + data: params, + method: "post" + }) +//空器具库移列表 +export const getContainerList = (params) => request( + devUrl + "/api/pda/job/container/list", { + method: 'get', + data: params + }); + +//空器具库移完成 +export const finshContainerJob = (id, params) => request( + devUrl + "/api/pda/job/container/finish/" + id, { // + data: params, + method: "post" + }) diff --git a/fe/PDA/common/basic.js b/fe/PDA/common/basic.js index 8d8b5d725..f02cc7c2b 100644 --- a/fe/PDA/common/basic.js +++ b/fe/PDA/common/basic.js @@ -170,7 +170,7 @@ export function getLocationType(val) { else if (val == 8) return 'noc' else if (val == 9) return 'overflow' else if (val == 10) return 'customer' - else return 'other' + else return 'other' } //获取库位类型描述 @@ -204,6 +204,32 @@ export function getJobType(val) { else return 'Other' } +export function getContainerTypeArray() { + let array = [{ + name: '内物流', + value: "InLogistics", + }, { + name: '外物流', + value: "OutLogistics", + + }]; + return array; +} + +export function getContainerTypeName(val) { + let array = [{ + name: '内物流', + value: "InLogistics", + }, { + name: '外物流', + value: "OutLogistics", + + }]; + + let item = array.find(r => r.value == val); + return item.name; +} + //提示是否消息 export function showConfirmMsg(content, callback) { uni.showModal({ @@ -332,8 +358,8 @@ export function setRootFontSize(fontSize) { export function scanErrorAudio() { var music = null; music = uni.createInnerAudioContext(); //创建播放器对象 - music.src ="../../static/video/error.wav"; - music.volume=1; + music.src = "../../static/video/error.wav"; + music.volume = 1; music.play(); //执行播放 music.onEnded(() => { //播放结束 @@ -345,8 +371,8 @@ export function scanErrorAudio() { export function newMessageAudio() { var music = null; music = uni.createInnerAudioContext(); //创建播放器对象 - music.src ="../../static/video/error.wav"; - music.volume=1; + music.src = "../../static/video/error.wav"; + music.volume = 1; music.play(); //执行播放 music.onEnded(() => { //播放结束 @@ -357,8 +383,8 @@ export function newMessageAudio() { export function vibrate() { uni.vibrateLong({ - success:function(){ - + success: function() { + } }) } diff --git a/fe/PDA/pages/container/containerCall.vue b/fe/PDA/pages/container/containerCall.vue index 43bb429ab..5719f9fc0 100644 --- a/fe/PDA/pages/container/containerCall.vue +++ b/fe/PDA/pages/container/containerCall.vue @@ -1,7 +1,7 @@