From 6472e7cb3babd991e0e10e8de6bafee4dafdf76e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 12 六月 2025 15:52:00 +0800
Subject: [PATCH] 1.销售出库页面联调
---
src/views/production/components/ProductionDialog.vue | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/views/production/components/ProductionDialog.vue b/src/views/production/components/ProductionDialog.vue
index 7ce8482..035d75a 100644
--- a/src/views/production/components/ProductionDialog.vue
+++ b/src/views/production/components/ProductionDialog.vue
@@ -1,4 +1,4 @@
-<template>
+div<template>
<el-dialog
v-model="dialogVisible"
:title="dialogType === 'add' ? '鏂板鐢熶骇鍔犲伐' : '缂栬緫鐢熶骇鍔犲伐'"
@@ -17,9 +17,9 @@
@row-click="handleRowClick"
:editableColumns="['used']"
/>
- <div v-if="tableData.length > 0" class="empty-table">
+ <div class="empty-table">
<h1>鐢熶骇鏄庣粏</h1>
- <el-row :gutter="10">
+ <el-row :gutter="10" v-if="tableData.length > 0">
<el-col :span="2">
<el-button type="primary" @click="addNewRow">
<el-icon>
@@ -45,6 +45,7 @@
</el-col> -->
</el-row>
<ProductionDetailsTable
+ v-if="tableData.length > 0"
v-model="detailsTableData"
:border="false"
:show-operations="true"
@@ -52,8 +53,9 @@
@input-change="handleDetailsChange"
@delete-row="handleDeleteRow"
/>
- </div>
<div style="margin-top: 20px;" v-else>鏆傛棤鏁版嵁锛岃閫夋嫨閰嶇疆鏁版嵁</div>
+
+ </div>
<template #footer>
<div class="dialog-footer">
@@ -452,4 +454,7 @@
.el-row > .el-col > h1 {
font-weight: bolder;
}
+.empty-table > .el-row{
+ margin-bottom: 12px;
+}
</style>
--
Gitblit v1.9.3