From 8fc09566cc3ee8d0dae10992de31d0f09f257bb4 Mon Sep 17 00:00:00 2001
From: zhang_12370 <z2864490065@outlook.com>
Date: 星期二, 08 七月 2025 17:58:04 +0800
Subject: [PATCH] 1、删除通过审核进入正式库存的采购记录,页面弹出报错信息 2、开发首页模块 3、开发设备领用记录 4、调整生产明细不能为负数 5、修复采购登记人匹配问题

---
 src/views/salesOutbound/index.vue |   45 ++++++++++++++-------------------------------
 1 files changed, 14 insertions(+), 31 deletions(-)

diff --git a/src/views/salesOutbound/index.vue b/src/views/salesOutbound/index.vue
index 1c28393..7c26e44 100644
--- a/src/views/salesOutbound/index.vue
+++ b/src/views/salesOutbound/index.vue
@@ -1,28 +1,10 @@
 <template>
   <div class="app-container">
     <el-form :inline="true" :model="queryParams" class="search-form">
-      <el-form-item label="閿�鍞棩鏈�">
-        <el-date-picker
-            v-model="queryParams.saleDate"
-            type="date"
-            placeholder="璇烽�夋嫨"
-            value-format="YYYY-MM-DD"
-            format="YYYY-MM-DD"
-            clearable
-        />
-      </el-form-item>
-      <el-form-item label="瀹㈡埛">
+      <el-form-item label="鎼滅储">
         <el-input
-            v-model="queryParams.customer"
-            placeholder="璇疯緭鍏�"
-            clearable
-            :style="{ width: '100%' }"
-        />
-      </el-form-item>
-      <el-form-item label="鐓ょ">
-        <el-input
-            v-model="queryParams.coal"
-            placeholder="璇疯緭鍏�"
+            v-model="queryParams.searchAll"
+            placeholder="璇疯緭鍏ュ叧閿瓧"
             clearable
             :style="{ width: '100%' }"
         />
@@ -44,9 +26,9 @@
       </el-tabs>
       <!-- 鎿嶄綔鎸夐挳鍖� -->
       <el-space>
-        <el-button type="primary" :icon="Plus" @click="openDia()">鏂板缓</el-button>
+        <el-button type="primary" :icon="Plus" @click="openDia(undefined, 'add')">鏂板缓</el-button>
         <el-button type="danger" :icon="Delete" @click="handleDelete">鍒犻櫎</el-button>
-        <el-button type="info" plain :icon="Download" @click="handleExport">瀵煎嚭</el-button>
+        <!-- <el-button type="info" plain :icon="Download" @click="handleExport">瀵煎嚭</el-button> -->
       </el-space>
       <!-- 琛ㄦ牸缁勪欢 -->
       <div>
@@ -56,8 +38,11 @@
                 @selection-change="handleSelectionChange"
                 :show-selection="true"
                 :border="true"
-                :maxHeight="480"
-                @edit="openDia"></ETable>
+                :operations="operationsArr"
+                style="width: 100%;height: calc(100vh - 30em)"
+                @edit="(row) => openDia(row, 'edit')"
+                @viewRow="(row) => openDia(row, 'view')"
+        ></ETable>
       </div>
       <pagination
           v-if="total>0"
@@ -79,7 +64,7 @@
 import ETable from "@/components/Table/ETable.vue";
 import Pagination from "@/components/Pagination/index.vue";
 import FormDia from "@/views/salesOutbound/components/formDia.vue";
-import {delSalesRecord, salesRecordList} from "../../api/salesOutbound/index.js";
+import {delSalesRecord, salesRecordList} from "@/api/salesOutbound/index.js";
 
 const formDia = ref()
 const activeTab = ref("out");
@@ -88,6 +73,7 @@
   { name: "out", label: "閿�鍞嚭搴�" },
 ]);
 // 琛ㄦ牸鏁版嵁
+const operationsArr = ref(['edit', 'viewRow']);
 const tableLoading = ref(false);
 const tableData = ref([]);
 const columns = ref([
@@ -114,9 +100,7 @@
 const pageSize = ref(10);
 // 鏌ヨ鍙傛暟
 const queryParams = reactive({
-  saleDate: "",
-  customer: "",
-  coal: "",
+  searchAll: "",
 })
 onMounted(() => {
   handleQuery()
@@ -145,9 +129,8 @@
   handleQuery();
 };
 // 鏂板鍑哄簱
-const openDia = (row) => {
+const openDia = (row, type) => {
   console.log(row)
-  const type = row === undefined ? 'add' : 'edit'
   nextTick(() => {
     formDia.value?.openDialog(type, row)
   })

--
Gitblit v1.9.3