From 78107d72e15a2ba43eceb15be0eaa262f44ff541 Mon Sep 17 00:00:00 2001
From: yangzifeng <2547435354@qq.com>
Date: Mon, 2 Feb 2026 17:17:48 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wisdom/bill/index.vue | 41 +++++++++++------------------
src/views/wisdom/outbound/index.vue | 8 +++---
src/views/wisdom/record/index.vue | 2 +-
3 files changed, 21 insertions(+), 30 deletions(-)
diff --git a/src/views/wisdom/bill/index.vue b/src/views/wisdom/bill/index.vue
index 5bc3d9f..7a96e58 100644
--- a/src/views/wisdom/bill/index.vue
+++ b/src/views/wisdom/bill/index.vue
@@ -40,7 +40,7 @@
新增入库
导出
- 图片上传
+
@@ -51,8 +51,8 @@
tableInfoRowClick(row, billTableRef)" :row-class-name="tableBillRowClassName" @row-dblclick="billClick"
- @current-change="uploadSelectionChange">
-
+ @selection-change="billSelectionChange">
+
@@ -1090,7 +1090,7 @@ const bizTypeList = ref([
{ value: 0, label: "已入库", elTagType: "success", elTagClass: null },
{ value: 1, label: "已出库", elTagType: "warning", elTagClass: null },
{ value: 2, label: "借料出库", elTagType: "danger", elTagClass: null },
- { value: 3, label: "还料入库", elTagType: "primary", elTagClass: null },
+ { value: 3, label: "已归还", elTagType: "primary", elTagClass: null },
]);
const dictTagData = () => {
return bizTypeList.value.map((item) => ({
@@ -1149,6 +1149,14 @@ function billClick(row, type, status) {
detailList(type);
}
+const billSelectionChange = (selection) => {
+ console.log(selection);
+ if (selection.length > 1) {
+ proxy.$modal.msgError("只能选择一条数据");
+ return;
+ }
+}
+
const checkStockList = ref([]); //移库、调度 多选框选中数据
//移库 多选框选中数据 生成调度任务多选
function printSelectionChange(selection) {
@@ -1605,23 +1613,6 @@ function tableRowClassName({ row, rowIndex }) {
return "";
}
-//上传、修改 单选 选中数据
-function uploadSelectionChange(selection) {
- if (selection) {
- uploadParams.value.photoType = selection.isChuku;
- uploadParams.value.billNo = selection.billNo;
- uploadParams.value.typeName = selection.rkTypeName;
-
- if (selection.isChuku == "3" || selection.isChuku == "1") {
- uploadParams.value.photoType = 1;
- uploadParams.value.billNo = selection.billNoCk;
- uploadParams.value.typeName = selection.ckTypeName;
- }
-
- uploadParams.value.gysMc = selection.gysMc;
- uploadParams.value.xmMs = selection.xmMs;
- }
-}
//入库上传图片按钮
function rkUpload() {
@@ -1663,11 +1654,11 @@ const submitDelStock = () => {
};
/** 导出按钮操作 */
function handleExport() {
+ let obj = JSON.parse(JSON.stringify(queryParams.value));
+ obj.bizTypeList = [0, 3];
proxy.download(
- "wisdom/stock/export",
- {
- ...queryParams.value,
- },
+ "/wisdom/record/export",
+ obj,
`stock_${new Date().getTime()}.xlsx`
);
}
diff --git a/src/views/wisdom/outbound/index.vue b/src/views/wisdom/outbound/index.vue
index e3783b8..b39c9d8 100644
--- a/src/views/wisdom/outbound/index.vue
+++ b/src/views/wisdom/outbound/index.vue
@@ -1084,7 +1084,7 @@ const bizTypeList = ref([
{ value: 0, label: "已入库", elTagType: "success", elTagClass: null },
{ value: 1, label: "已出库", elTagType: "warning", elTagClass: null },
{ value: 2, label: "借料出库", elTagType: "danger", elTagClass: null },
- { value: 3, label: "还料入库", elTagType: "primary", elTagClass: null },
+ { value: 3, label: "已归还", elTagType: "primary", elTagClass: null },
]);
const dictTagData = () => {
return bizTypeList.value.map((item) => ({
@@ -1249,11 +1249,11 @@ function submitForm() {
/** 导出按钮操作 */
function handleExport() {
+ let obj = JSON.parse(JSON.stringify(queryParams.value));
+ obj.bizTypeList = [1, 2];
proxy.download(
"wisdom/stock/export",
- {
- ...queryParams.value,
- },
+ obj,
`stock_${new Date().getTime()}.xlsx`
);
}
diff --git a/src/views/wisdom/record/index.vue b/src/views/wisdom/record/index.vue
index 800d974..ba4fae4 100644
--- a/src/views/wisdom/record/index.vue
+++ b/src/views/wisdom/record/index.vue
@@ -172,7 +172,7 @@ const isChukuList = ref([
{ value: 0, label: "已入库", elTagType: "success", elTagClass: null },
{ value: 1, label: "已出库", elTagType: "warning", elTagClass: null },
{ value: 2, label: "借料出库", elTagType: "danger", elTagClass: null },
- { value: 3, label: "还料入库", elTagType: "primary", elTagClass: null },
+ { value: 3, label: "已归还", elTagType: "primary", elTagClass: null },
])
const data = reactive({