From a54f85deb9d8c8778ec77ae115b8db4cabc934be Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期二, 10 九月 2024 15:24:29 +0800
Subject: [PATCH] #
---
zy-asrs-admin/src/components/orderOut/orderOutMergePreview/stockOut.vue | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/zy-asrs-admin/src/components/orderOut/orderOutMergePreview/stockOut.vue b/zy-asrs-admin/src/components/orderOut/orderOutMergePreview/stockOut.vue
index bf83378..6f777c4 100644
--- a/zy-asrs-admin/src/components/orderOut/orderOutMergePreview/stockOut.vue
+++ b/zy-asrs-admin/src/components/orderOut/orderOutMergePreview/stockOut.vue
@@ -21,6 +21,7 @@
let searchInput = ref(null);
let tableData = ref([]);
const operationPortList = ref([])
+const globalOperationPort = ref(null)
const open = ref(false);
const showWidth = ref("60%")
const records = ref([])
@@ -186,6 +187,7 @@
let defaultOperationPort = "";
if (operationPortList.value.length > 0) {
defaultOperationPort = operationPortList.value[0].value;
+ globalOperationPort.value = defaultOperationPort;
}
post('/api/out/orderOut/merge/loc/preview', data).then((resp) => {
@@ -238,6 +240,14 @@
})
}
+const handleGlobalOperationPortChange = () => {
+ if (tableData.value.length > 0) {
+ tableData.value.forEach((item) => {
+ item.operationPort = globalOperationPort.value;
+ })
+ }
+}
+
defineExpose({
open,
showWidth,
@@ -255,11 +265,16 @@
<div>
<a-modal v-model:open="open" :width="showWidth"
:title="formatMessage('page.orderOutPreview.preview', '棰勮鍚堝苟璁㈠崟鍑哄簱')" @ok="handleOk">
+ <div>
+ <span>浣滀笟鍙o細</span>
+ <a-select v-model:value="globalOperationPort" :options="operationPortList"
+ @change="handleGlobalOperationPortChange"></a-select>
+ </div>
<a-table :data-source="tableData" :loading="loading" :defaultExpandAllRows="false" :key="TABLE_KEY"
rowKey="index" :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns">
<template #bodyCell="{ column, text, record, index }">
<template v-if="column.dataIndex === 'locNo'">
- <div v-if="record.locId != null">
+ <div v-if="record.locId != null && record.anfme > 0">
<a-tag color="green">{{ record.locNo }}</a-tag>
</div>
<div v-else>
--
Gitblit v1.9.1