From 1ecac2d4f21c7733d8c280fef7e3e3168a664026 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?=
<9634538+git_rabbit@user.noreply.gitee.com>
Date: Thu, 21 Mar 2024 10:35:06 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E9=87=8F=E6=8A=A5=E8=A1=A8=EF=BC=9A?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4=EF=BC=8C=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD=20=E5=87=BA=E5=BA=93?=
=?UTF-8?q?=E5=8D=95=EF=BC=9A=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4=EF=BC=8C?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=87=BA=E5=BA=93=E6=89=93=E5=8D=B0=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD=EF=BC=88=E6=9C=AA=E5=85=A8=E9=83=A8=E5=AE=8C=E6=88=90?=
=?UTF-8?q?=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 2 +
.../qualityManagement/qualityStatistics_V2.js | 16 +-
src/components/Print/出库单.vue | 276 ++++++++++++
src/main.js | 8 +-
.../FQC/qualityStatistics.vue | 403 +++++++++++-------
src/views/wmsManagement/WmOutOrder.vue | 54 ++-
vue.config.js | 6 +-
7 files changed, 593 insertions(+), 172 deletions(-)
create mode 100644 src/components/Print/出库单.vue
diff --git a/package.json b/package.json
index 6daa693..c982727 100644
--- a/package.json
+++ b/package.json
@@ -47,6 +47,7 @@
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
+ "print-js": "^1.6.0",
"quill": "1.3.7",
"save": "^2.9.0",
"screenfull": "4.2.0",
@@ -55,6 +56,7 @@
"vue-count-to": "1.0.13",
"vue-cropper": "0.4.9",
"vue-easytable": "^2.27.1",
+ "vue-qr": "^4.0.9",
"vue-router": "3.4.9",
"vue-seamless-scroll": "^1.1.23",
"vuedraggable": "^2.20.0",
diff --git a/src/api/qualityManagement/qualityStatistics_V2.js b/src/api/qualityManagement/qualityStatistics_V2.js
index 9e9cb2a..d1a046f 100644
--- a/src/api/qualityManagement/qualityStatistics_V2.js
+++ b/src/api/qualityManagement/qualityStatistics_V2.js
@@ -1,5 +1,5 @@
import request from '@/utils/request'
-
+// 获取首检表
export function GetQualityStatisticsTable_first(query) {
return request({
url: 'mes/qc/statistics/queryQualityStatisticsTable_first',
@@ -7,7 +7,7 @@ export function GetQualityStatisticsTable_first(query) {
params: query,
})
}
-
+//获取二检表
export function GetQualityStatisticsTable_again(query) {
return request({
url: 'mes/qc/statistics/queryQualityStatisticsTable_again',
@@ -15,7 +15,7 @@ export function GetQualityStatisticsTable_first(query) {
params: query,
})
}
-
+// 获取包装表
export function GetQualityStatisticsTable_final(query) {
return request({
url: 'mes/qc/statistics/queryQualityStatisticsTable_final',
@@ -23,11 +23,19 @@ export function GetQualityStatisticsTable_first(query) {
params: query,
})
}
-
+// 获取总表
export function GetQualityStatisticsTable_total(query) {
return request({
url: 'mes/qc/statistics/queryQualityStatisticsTable_total',
method: 'get',
params: query,
})
+ }
+ // 删除一条记录
+ export function deleteStatisticsTable(query) {
+ return request({
+ url: 'mes/qc/statistics/delete_statisticsTable',
+ method: 'get',
+ params: query,
+ })
}
\ No newline at end of file
diff --git a/src/components/Print/出库单.vue b/src/components/Print/出库单.vue
new file mode 100644
index 0000000..6de99ff
--- /dev/null
+++ b/src/components/Print/出库单.vue
@@ -0,0 +1,276 @@
+
+
+
+
+
+
出库单 {{ printData.shipmentNum }}
+
+
+
+
+ 时间:{{ printData.year + '年' + printData.week + '周' + printData.date + '日' }}
+
+
+ 客户编号:{{ printData.customNo }}
+ 客户名称:{{ printData.customName }}
+
+
+ 客户地址:{{ printData.customAddress }}
+
+
+ 备注:{{ printData.remarks }}
+
+
+
+
+
+
+
+
+
+
需求物料清单
+
+
+
+ | 物料号 |
+ 描述 |
+ 需求零件数 |
+ 库存箱数 |
+ 库存零件数 |
+
+
+
+
+ | {{ item.partnumber }} |
+ {{ item.description }} |
+ {{ item.requireOutNum }} |
+ 20 |
+ 200 |
+
+
+
+
+
+
+
+
+
计划出库批次清单
+
+
+
+ | 批次号 |
+ 物料号 |
+ 所属仓库 |
+ 批次箱数 |
+ 批次零件数 |
+ 需求零件数 |
+ 批次时间 |
+ 出库顺序 |
+
+
+
+
+ | {{ item.package_code_client }} |
+ {{ item.partnumber }} |
+ {{ item.location_code }} |
+ {{ item.count }} |
+ {{ item.goods_num_action_count }} |
+ {{ item.outhouse_num }} |
+ {{ item.time }} |
+ {{ item.sort }} |
+
+
+ |
+
+
+
+
+
+
+
+ 取消
+ 确认打印
+
+
+
+
+
+
diff --git a/src/main.js b/src/main.js
index 06edbc9..30bea92 100644
--- a/src/main.js
+++ b/src/main.js
@@ -38,6 +38,10 @@ import UploadFile from '@/components/FileUpload/index';
// 字典数据组件
import DictData from '@/components/DictData';
+// 二维码与打印组件相关 KrPrintDesigner+VueQr
+import VueQr from 'vue-qr'
+import printJS from 'print-js'
+
// VXE-Table相关组件
@@ -85,7 +89,8 @@ Vue.component('DictTag', DictTag)
Vue.component('Editor', Editor)
Vue.component('UploadImage', UploadImage)
Vue.component('UploadFile', UploadFile)
-
+Vue.component('VueQr', VueQr)
+// Vue.use(printJS);
Vue.use(permission)
Vue.use(plugins)
Vue.use(Element, {
@@ -96,7 +101,6 @@ Vue.use(VXETable)
Vue.use(dataV)
Vue.use(AFTableColumn)
-
DictData.install()
Vue.config.productionTip = false
diff --git a/src/views/qualityManagement/FQC/qualityStatistics.vue b/src/views/qualityManagement/FQC/qualityStatistics.vue
index f8861a7..6036fbf 100644
--- a/src/views/qualityManagement/FQC/qualityStatistics.vue
+++ b/src/views/qualityManagement/FQC/qualityStatistics.vue
@@ -4,31 +4,45 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -38,18 +52,44 @@
-
-
+
-
{{ reportType_options[search.reportType].label }} 共 {{realTotal}} 条
+
+ {{ reportType_options[search.reportType].label }} 共 {{ realTotal }} 条
+
-
+
-
+
@@ -170,24 +210,24 @@
-
-
\ No newline at end of file
+
diff --git a/src/views/wmsManagement/WmOutOrder.vue b/src/views/wmsManagement/WmOutOrder.vue
index d1d2dbd..cdc35e3 100644
--- a/src/views/wmsManagement/WmOutOrder.vue
+++ b/src/views/wmsManagement/WmOutOrder.vue
@@ -25,10 +25,15 @@
-
+
+
+
+
+
+
搜索
重置
@@ -91,7 +96,7 @@
弃用
-
+
启用
停用
@@ -105,12 +110,12 @@
-
+
+ 出库计划
@@ -222,7 +232,7 @@
-
+
{{
item.dictLabel
@@ -238,14 +248,14 @@
添加物料
- 批量删除
+ >批量移除 -->
-
+
@@ -279,7 +289,7 @@
type="danger"
icon="el-icon-delete"
@click="handlerDeleteMaterial([scope.row.id])"
- >删除此物料移除此物料
@@ -291,20 +301,25 @@
确定
+