no message

main
HUOJIN\92525 2025-12-31 18:02:54 +08:00
parent 0d0005a4df
commit cce44a49a8
4 changed files with 27 additions and 10 deletions

View File

@ -13,7 +13,7 @@ enum Api {
exportXls = '/agvTask/exportXls', exportXls = '/agvTask/exportXls',
taskReporter = '/api/robot/reporter/task', taskReporter = '/api/robot/reporter/task',
callBackTask = '/tes/apiv2/callBackTask', callBackTask = '/tes/apiv2/callBackTask',
cancelTes = '/tes/apiv2/cancelTes', cancelTes = '/tes/cancelTes',
cancelAgv = '/api/robot/cancelAgv', cancelAgv = '/api/robot/cancelAgv',
resendTes = '/tes/apiv2/resendTes', resendTes = '/tes/apiv2/resendTes',
resendAgv = '/api/robot/resendAgv', resendAgv = '/api/robot/resendAgv',
@ -113,11 +113,11 @@ export const callBackTask = (params) => {
/** /**
* TES * TES
* @param params * @param tesId
*/ */
export const cancelTes = (params) => { export const cancelTes = (id) => {
return defHttp.post( return defHttp.get(
{ url: Api.cancelTes, params }, { url: Api.cancelTes, params: { id } },
{ {
isTransformResponse: false, isTransformResponse: false,
} }

View File

@ -2,6 +2,12 @@ import {BasicColumn} from '/@/components/Table';
import { render } from '@/utils/common/renderUtils'; import { render } from '@/utils/common/renderUtils';
//列表数据 //列表数据
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{
title: 'TES任务ID',
align: "center",
width: '100px',
dataIndex: 'tesId'
},
{ {
title: '任务ID', title: '任务ID',
align: "center", align: "center",
@ -41,13 +47,13 @@ export const columns: BasicColumn[] = [
{ {
title: '起点', title: '起点',
align: "center", align: "center",
width: '120px', width: '130px',
dataIndex: 'startCode' dataIndex: 'startCode'
}, },
{ {
title: '终点', title: '终点',
align: "center", align: "center",
width: '120px', width: '130px',
dataIndex: 'endCode' dataIndex: 'endCode'
}, },
{ {

View File

@ -1,8 +1,8 @@
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '/@/utils/http/axios';
enum Api { enum Api {
showConveyorLine = '/api/conveyorLine/showConveyorLine', showConveyorLine = '/conveyorLine/showConveyorLine',
scanTray='/api/conveyorLine/scanTray', scanTray='/conveyorLine/scanTray',
} }
export const showConveyorLine = (conveyorLine) => { export const showConveyorLine = (conveyorLine) => {

View File

@ -106,7 +106,18 @@
} }
confirmLoading.value = true; confirmLoading.value = true;
try { try {
const res = await scanTray(formData); //messageID
const params = {
messageID: new Date().getTime(),
messageType: 50,
content: {
stationCode: formData.station,
signal: {
barCode: formData.stockCode,
},
},
};
const res = await scanTray(params);
if (res && res.code === 200) { if (res && res.code === 200) {
createMessage.success('操作成功'); createMessage.success('操作成功');
emit('ok'); emit('ok');