From a75ed7b2ec701afa546895653903e9c1f35db2b1 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 26 十月 2023 12:09:51 +0800
Subject: [PATCH] 主数据添加 编码申请添加-ts时间戳bug

---
 Source/UBCS-WEB/src/views/code/code.vue |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/code/code.vue b/Source/UBCS-WEB/src/views/code/code.vue
index 8fe7297..0c65570 100644
--- a/Source/UBCS-WEB/src/views/code/code.vue
+++ b/Source/UBCS-WEB/src/views/code/code.vue
@@ -1,5 +1,5 @@
 <template>
-  <basic-container class="code-total" style="height: 100%">
+  <basic-container class="code-total" style=" height: 100%">
     <!-- 缂栫爜瑙勫垯淇℃伅灞曠ず鍖哄煙 -->
     <basic-container class="code-rule-container">
       <p
@@ -1647,6 +1647,7 @@
       if (JSON.stringify(conditionMaps) != "{}") {
         if (this.advancedQueryParam.currentOpen == "codeRule") {
           this.query = conditionMaps;
+          // console.log(this.query);
           this.onLoad(this.page);
         } else {
           this.sendGridCodeBasicSec(conditionMaps, true);
@@ -2303,6 +2304,12 @@
             queryField: "lcStatus",
             comboxKey: "codeSearchLCStatus",
           },
+          {
+            data: [],
+            title: "鎵�鏈夎��",
+            fieldType: "text",
+            queryField: "ownerText",
+          },
         ];
       } else {
         this.advancedQueryParam.options = [
@@ -2592,7 +2599,11 @@
     },
     onLoad(page, params = {}) {
       this.loading = true;
-      gridCodeRule(page.currentPage, page.pageSize, params).then((res) => {
+      gridCodeRule(
+        page.currentPage,
+        page.pageSize,
+        Object.assign({},params,this.query),
+      ).then((res) => {
         //console.log(res.data);
         const data = res.data.data;
         this.page.total = data.total;
@@ -2921,6 +2932,10 @@
     /** 鍩虹鐮佹鍒犻櫎*/
     deleteBasicCode() {
       if (!this.tipsMessage(this.selectionBasicList)) {
+        return;
+      }
+      if (this.selectionList.at(-1).lcStatus != "Editing") {
+        this.$message.warning('缂栫爜瑙勫垯鐘舵�佷笉鏄�"缂栬緫涓�"锛屼笉鍏佽鍒犻櫎鐮佹!');
         return;
       }
       let oid = this.selectionBasicList[0].oid;
@@ -3382,10 +3397,14 @@
     },
     // 鏈�澶ф祦姘村彿
     maxSerialNum() {
-      if (this.selectionList.length === 0) {
+      if (this.selectionList.length <= 0) {
         this.$message.warning("璇烽�夋嫨涓�鏉$紪鐮佽鍒欙紒");
         return;
       }
+      if(this.selectionList.length> 1){
+        this.$message.warning("鍙兘閫夋嫨涓�鏉$紪鐮佽鍒欙紒");
+        return;
+      }
       this.maxSerial.visible = true;
       this.maxSerial.ruleOid = this.selectionList[0]["oid"];
     },

--
Gitblit v1.9.3