From 7ca6e58cb69cb1fa88df4b8779ad0de8ff01a210 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 01 四月 2026 17:42:40 +0800
Subject: [PATCH] 军泰伟业 1.军泰伟业-库存管理增加库位 2.军泰伟业-生产入库要审核,加个入库审核菜单,入库数量,库位,通过不通过

---
 src/views/procurementManagement/procurementLedger/index.vue |   73 +++++++++++++++++++++---------------
 1 files changed, 42 insertions(+), 31 deletions(-)

diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue
index ea4304b..8ee2f15 100644
--- a/src/views/procurementManagement/procurementLedger/index.vue
+++ b/src/views/procurementManagement/procurementLedger/index.vue
@@ -84,7 +84,7 @@
                                width="60" />
               <el-table-column label="浜у搧澶х被"
                                prop="productCategory" />
-              <el-table-column label="瑙勬牸鍨嬪彿"
+              <el-table-column label="鍥剧焊缂栧彿"
                                prop="specificationModel" />
               <el-table-column label="鍗曚綅"
                                prop="unit" />
@@ -403,7 +403,7 @@
                            width="60" />
           <el-table-column label="浜у搧澶х被"
                            prop="productCategory" />
-          <el-table-column label="瑙勬牸鍨嬪彿"
+          <el-table-column label="鍥剧焊缂栧彿"
                            prop="specificationModel" />
           <el-table-column label="鍗曚綅"
                            prop="unit"
@@ -539,32 +539,25 @@
                ref="productFormRef">
         <el-row :gutter="30">
           <el-col :span="24">
-            <el-form-item label="浜у搧澶х被锛�"
-                          prop="productId">
-              <el-tree-select v-model="productForm.productId"
-                              placeholder="璇烽�夋嫨"
-                              clearable
-                              check-strictly
-                              @change="getModels"
-                              :data="productOptions"
-                              :render-after-expand="false"
-                              style="width: 100%" />
+            <el-form-item label="浜у搧閫夋嫨锛�"
+                          prop="productSelect">
+              <div style="display: flex; gap: 10px;">
+                <el-input
+                  v-model="productForm.productCategory"
+                  placeholder="璇烽�夋嫨浜у搧"
+                  disabled
+                  style="flex: 1;"
+                />
+                <el-button type="primary" @click="openProductSelectDialog">閫夋嫨</el-button>
+              </div>
             </el-form-item>
           </el-col>
         </el-row>
         <el-row :gutter="30">
           <el-col :span="24">
-            <el-form-item label="瑙勬牸鍨嬪彿锛�"
-                          prop="productModelId">
-              <el-select v-model="productForm.productModelId"
-                         placeholder="璇烽�夋嫨"
-                         clearable
-                         @change="getProductModel">
-                <el-option v-for="item in modelOptions"
-                           :key="item.id"
-                           :label="item.model"
-                           :value="item.id" />
-              </el-select>
+            <el-form-item label="鍥剧焊缂栧彿锛�"
+                          prop="specificationModel">
+              <el-input v-model="productForm.specificationModel" placeholder="璇疯緭鍏ュ浘绾哥紪鍙�" disabled />
             </el-form-item>
           </el-col>
         </el-row>
@@ -693,11 +686,19 @@
       v-model="fileListDialogVisible"
       title="闄勪欢鍒楄〃"
     />
+
+    <!-- 浜у搧閫夋嫨瀵硅瘽妗� -->
+    <ProductSelectDialog
+      v-model="productSelectVisible"
+      :single="true"
+      @confirm="handleProductSelect"
+    />
   </div>
 </template>
 
 <script setup>
   import { getToken } from "@/utils/auth";
+  import ProductSelectDialog from "@/views/basicData/product/ProductSelectDialog.vue";
   import pagination from "@/components/PIMTable/Pagination.vue";
   import {
     ref,
@@ -946,6 +947,7 @@
   const productOperationType = ref("");
   const productOperationIndex = ref("");
   const currentId = ref("");
+  const productSelectVisible = ref(false);
   const productFormData = reactive({
     productForm: {
       productId: "",
@@ -1550,6 +1552,7 @@
       return Promise.resolve([]);
     }
   };
+
   const getProductModel = value => {
     const index = modelOptions.value.findIndex(item => item.id === value);
     if (index !== -1) {
@@ -1665,6 +1668,22 @@
     proxy.resetForm("productFormRef");
     productFormVisible.value = false;
   };
+
+  // 鎵撳紑浜у搧閫夋嫨瀵硅瘽妗�
+  const openProductSelectDialog = () => {
+    productSelectVisible.value = true;
+  };
+
+  // 澶勭悊浜у搧閫夋嫨
+  const handleProductSelect = (selectedProducts) => {
+    if (selectedProducts && selectedProducts.length > 0) {
+      const product = selectedProducts[0];
+      productForm.value.productCategory = product.productName;
+      productForm.value.specificationModel = product.model;
+      productForm.value.unit = product.unit;
+    }
+  };
+
   // 瀵煎嚭
   const handleOut = () => {
     ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
@@ -1683,14 +1702,6 @@
   const handleDelete = () => {
     let ids = [];
     if (selectedRows.value.length > 0) {
-      // 妫�鏌ユ槸鍚︽湁浠栦汉缁存姢鐨勬暟鎹�
-      const unauthorizedData = selectedRows.value.filter(
-        item => item.recorderName !== userStore.nickName
-      );
-      if (unauthorizedData.length > 0) {
-        proxy.$modal.msgWarning("涓嶅彲鍒犻櫎浠栦汉缁存姢鐨勬暟鎹�");
-        return;
-      }
       ids = selectedRows.value.map(item => item.id);
     } else {
       proxy.$modal.msgWarning("璇烽�夋嫨鏁版嵁");

--
Gitblit v1.9.3