From 130832bb21ce4057eecbc095ed73819a7836e179 Mon Sep 17 00:00:00 2001
From: xushilin <1354769781@qq.com>
Date: Thu, 27 Mar 2025 17:29:47 +0800
Subject: [PATCH] =?UTF-8?q?init(projects):=20=E6=95=B4=E4=BD=93=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../drawingProcessCheckRecord/index.vue | 458 +++++++++---------
src/views/storage/rawProduceIn/index.vue | 43 +-
2 files changed, 249 insertions(+), 252 deletions(-)
diff --git a/src/views/quality/drawingProcessCheckRecord/index.vue b/src/views/quality/drawingProcessCheckRecord/index.vue
index 865ec35..2126a26 100644
--- a/src/views/quality/drawingProcessCheckRecord/index.vue
+++ b/src/views/quality/drawingProcessCheckRecord/index.vue
@@ -1,63 +1,63 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- {
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
searchForm.deviceName = item.label
}"
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/storage/rawProduceIn/index.vue b/src/views/storage/rawProduceIn/index.vue
index 4bf72b3..a47d8d1 100644
--- a/src/views/storage/rawProduceIn/index.vue
+++ b/src/views/storage/rawProduceIn/index.vue
@@ -69,8 +69,12 @@ import {
useEditBtn
} from '@/hooks/common/useBtn';
// import { download } from '@/service/request/helpers';
+import { useSocketStore } from '@/store/modules/socket/index';
import type { ModalType } from './components/table-action-modal.vue';
import TableActionModal from './components/table-action-modal.vue';
+
+const socketStore = useSocketStore();
+
const router = useRouter();
const { proxy } = getCurrentInstance() as any;
const { wms_item_recpt_status } = proxy.useDict('wms_item_recpt_status', 'wms_item_recpt_type');
@@ -265,6 +269,13 @@ const columns: Ref> = ref([
align: 'center',
render: row => {
console.log(wms_item_recpt_status.value, row.status, '----');
+ if (row.status === 'FINISHED') {
+ return (
+ print(row)}>
+ 补打标签
+
+ );
+ }
const Btn: JSX.Element[] = [];
if (row.status !== 'FINISHED') {
Btn.push(
@@ -280,29 +291,6 @@ const columns: Ref> = ref([
)
);
}
- // Btn.push(
- // useInfoBtn(
- // () => {
- // router.push({
- // name: 'storage_auxiliaryProduceinfo',
- // query: { id: row.recptId, warehouseId: row.warehouseId, info: 'true' }
- // });
- // },
- // 'tiny',
- // '查看详情'
- // )
- // );
-
- // Btn.push(
- // useDelBtn(() => {
- // delWmsItemRecpt(row.recptId as number).then(res => {
- // if (res.code === 200) {
- // window.$message?.success('删除成功');
- // init();
- // }
- // });
- // }, 'tiny')
- // );
return Btn;
}
}
@@ -328,6 +316,15 @@ function reset() {
getWmsItemRecptData();
}
+function print(row: wms.recptRawType.columns) {
+ socketStore.setMsg(
+ JSON.stringify({
+ templateType: 'YL-MB',
+ printValue: row.lineList
+ })
+ );
+ window.$message?.success('已发送打印命令');
+}
// async function handleEditTable(issueId: number) {
// console.log('执行部入库操作', issueId);
// }