From 377c0a70c094d024aeb0bb94f4b791c6d5530c1e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 06 八月 2026 10:21:55 +0800
Subject: [PATCH] 新疆_马铃薯 1.不合格管理添加拒收逻辑

---
 src/views/productManagement/productIdentifier/index.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/views/productManagement/productIdentifier/index.vue b/src/views/productManagement/productIdentifier/index.vue
index 2eceb31..dcb4936 100644
--- a/src/views/productManagement/productIdentifier/index.vue
+++ b/src/views/productManagement/productIdentifier/index.vue
@@ -117,7 +117,7 @@
                        v-if="scope.row.status === '宸插垎閰�'">閲嶆柊鍒嗛厤</el-button>
             <el-button link
                        type="danger"
-                       @click="handleDelete(scope.row)">鍒犻櫎</el-button>
+                       @click="handleDelete(scope.row)" v-hasPermi="['productManagement:productIdentifier:remove']">鍒犻櫎</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -240,7 +240,7 @@
           <span>{{ currentProduct.identifierType }}</span>
         </el-form-item>
         <el-form-item label="鍒涘缓鏃堕棿">
-          <el-date-picker v-model="createTime"
+          <el-date-picker v-model="createTimeDate"
                           type="date"
                           placeholder="閫夋嫨鏃ユ湡"
                           value-format="YYYY-MM-DD"
@@ -363,6 +363,7 @@
 
 <script setup>
   import { ref, reactive, computed } from "vue";
+  import dayjs from "dayjs";
   import { ElMessage, ElMessageBox } from "element-plus";
   import { Plus, Search, Loading, Download } from "@element-plus/icons-vue";
   import Pagination from "@/components/PIMTable/Pagination.vue";
@@ -449,7 +450,13 @@
   const generateQuantity = ref(1);
   const codeRule = ref("");
   const customPrefix = ref("");
-  const createTime = ref(new Date().toISOString().split('T')[0]);
+  const createTime = ref(dayjs().format("YYYY-MM-DD HH:mm:ss"));
+  const createTimeDate = computed({
+    get: () => (createTime.value ? String(createTime.value).split(" ")[0] : ""),
+    set: (value) => {
+      createTime.value = value ? `${value} ${dayjs().format("HH:mm:ss")}` : "";
+    },
+  });
   const newBatchNo = ref("");
   const reassignReason = ref("");
   const formRef = ref();

--
Gitblit v1.9.3