|
|
|
@ -148,11 +148,8 @@ import { useLoading } from '~/src/hooks';
|
|
|
|
import { getOutputLog } from '~/src/service/api/produre/workRecords/index';
|
|
|
|
import { getOutputLog } from '~/src/service/api/produre/workRecords/index';
|
|
|
|
import { formatDate } from '~/src/utils/form/rule';
|
|
|
|
import { formatDate } from '~/src/utils/form/rule';
|
|
|
|
import { useResetSearch } from '~/src/utils/common/searchReset';
|
|
|
|
import { useResetSearch } from '~/src/utils/common/searchReset';
|
|
|
|
import { useSocketStore } from '@/store/modules/socket';
|
|
|
|
|
|
|
|
const { loading, startLoading, endLoading } = useLoading();
|
|
|
|
const { loading, startLoading, endLoading } = useLoading();
|
|
|
|
|
|
|
|
|
|
|
|
const socketStore = useSocketStore();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { searchForm, reset } = useResetSearch({
|
|
|
|
const { searchForm, reset } = useResetSearch({
|
|
|
|
taskSn: '', // 生产工单号
|
|
|
|
taskSn: '', // 生产工单号
|
|
|
|
workstationId: null, // 机台
|
|
|
|
workstationId: null, // 机台
|
|
|
|
@ -481,6 +478,8 @@ function selectTaskType(value: number) {
|
|
|
|
|
|
|
|
|
|
|
|
function printTemp(row: any) {
|
|
|
|
function printTemp(row: any) {
|
|
|
|
let printData = row.printObj;
|
|
|
|
let printData = row.printObj;
|
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
if (window.hiwebSocket?.opened) {
|
|
|
|
if (window.hiwebSocket?.opened) {
|
|
|
|
if (!printData) {
|
|
|
|
if (!printData) {
|
|
|
|
window.$message?.error('补打数据为空,不可打印!');
|
|
|
|
window.$message?.error('补打数据为空,不可打印!');
|
|
|
|
|