From 3d73201f0830320c703cfb3d36b47976eb3d94e7 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 11 五月 2023 17:34:21 +0800
Subject: [PATCH] 1.生产进度报表提交

---
 src/views/systemSettings/codingRules.vue |   42 +++++++++++++++++++++++++++++-------------
 1 files changed, 29 insertions(+), 13 deletions(-)

diff --git a/src/views/systemSettings/codingRules.vue b/src/views/systemSettings/codingRules.vue
index 02a125a..f159583 100644
--- a/src/views/systemSettings/codingRules.vue
+++ b/src/views/systemSettings/codingRules.vue
@@ -1,7 +1,7 @@
 <template>
   <div>
     <div class="body" :style="{height:mainHeight+'px'}">
-      <div class="bodyTopFormGroup">
+      <div class="bodyTopFormGroup" style="margin-top: 10px;">
         <el-form
           ref="form"
           :model="form"
@@ -126,7 +126,11 @@
             <template slot-scope="{row}">
               <div class="operationClass">
                 <el-tooltip class="item" effect="dark" content="缂栬緫" placement="top">
-                  <i class="el-icon-edit-outline" :style="{color:$store.state.settings.theme}" @click="edit('edit',row)" />
+                  <i
+                    class="el-icon-edit-outline"
+                    :style="{color:$store.state.settings.theme}"
+                    @click="edit('edit',row)"
+                  />
                 </el-tooltip>
                 <!--                <el-button v-waves type="text" @click="edit('edit',row)">缂栬緫</el-button>-->
                 <!--                <el-button v-waves type="text" @click="del(row)">鍒犻櫎</el-button>-->
@@ -205,7 +209,7 @@
 
 <script>
 import Pagination from '@/components/Pagination'
-import { EncodingRules, SaveEncodingRules } from '@/api/xtsz'
+import { EncodingRules, SaveEncodingRules } from '@/api/systemSettings'
 import elDragDialog from '@/directive/el-drag-dialog'
 import waves from '@/directive/waves'
 
@@ -264,7 +268,8 @@
         // OrgName: [
         //   { required: true, message: '璇疯緭鍏ュ悕绉�', trigger: ['blur', 'change'] }
         // ]
-      }
+      },
+      oldIncbit: 0// 鑷浣嶆暟  淇敼鍓嶇殑鍊�
 
     }
   },
@@ -345,6 +350,8 @@
         this.dialogForm.filingdate = this.dateType.find(item => item.label === row.filingdate).value
         this.dialogForm.incbit = row.incbit
         this.dialogForm.prefix = row.prefix
+
+        this.oldIncbit = row.incbit
       })
     },
     // 鍒犻櫎鎸夐挳
@@ -371,6 +378,7 @@
       this.dialogForm.filingdate = ''
       this.dialogForm.incbit = ''
       this.dialogForm.prefix = ''
+      this.oldIncbit = 0
       this.$refs.dialogForm.clearValidate()
     },
     // 瀵硅瘽妗嗗彇娑�
@@ -381,6 +389,10 @@
     dialogVisibleConfirm() {
       this.$refs.dialogForm.validate(valid => {
         if (valid) {
+          if (this.dialogForm.incbit <= this.oldIncbit) {
+            return this.$message.info('鑷浣嶆暟鐨勪慨鏀瑰�间竴瀹氳澶т簬褰撳墠鍊硷紒')
+          }
+
           const data = {
             rightcode: this.dialogForm.rightcode,
             rightname: this.dialogForm.rightname,
@@ -406,7 +418,7 @@
     getHeight() {
       this.$nextTick(() => {
         this.mainHeight = window.innerHeight - 85
-        this.tableHeight = this.mainHeight - 135
+        this.tableHeight = this.mainHeight - 145
         this.$refs.tableDataRef.doLayout()
       })
     }
@@ -417,7 +429,7 @@
 <style lang="scss" scoped>
 $main_color: #42b983;
 
-::v-deep .el-input-number__decrease,::v-deep .el-input-number__increase {
+::v-deep .el-input-number__decrease, ::v-deep .el-input-number__increase {
   background-color: $main_color;
   color: #FFFFFF;
   line-height: 31px;
@@ -430,11 +442,12 @@
 <!--鍏叡椤甸潰鏍峰紡-->
 <style lang="scss" scoped>
 $main_color: #42b983;
-.el-icon-share ,.el-icon-delete,.el-icon-edit-outline{
+.el-icon-share, .el-icon-delete, .el-icon-edit-outline {
   color: $main_color;
   cursor: pointer;
 }
-.el-icon-edit-outline{
+
+.el-icon-edit-outline {
   margin-right: 15px;
 }
 
@@ -495,8 +508,8 @@
   background-color: #f8f8fa;
 }
 
-::v-deep .el-table__body .el-table__row.hover-row td{
-  background-color: #eaecef ;
+::v-deep .el-table__body .el-table__row.hover-row td {
+  background-color: #eaecef;
 }
 
 ::v-deep .el-form--inline .el-form-item__label {
@@ -512,14 +525,17 @@
 .body ::v-deep .el-form-item {
   margin-bottom: 0;
 }
+
 .userDialogVisible ::v-deep .el-form-item {
   margin-bottom: 0;
 }
-.tableFixed{
-  ::v-deep .el-table__fixed-right{
+
+.tableFixed {
+  ::v-deep .el-table__fixed-right {
     height: 100% !important;
   }
-  ::v-deep .el-table__fixed{
+
+  ::v-deep .el-table__fixed {
     height: 100% !important;
   }
 }

--
Gitblit v1.9.3