From 544f30e28a3d8ea41e5ea8c0add2ce77c1b6fb1a Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 07 五月 2024 17:48:31 +0800
Subject: [PATCH] 工种管理模块 编辑工种接口400的问题修改+增加如果启用不达标保底,则必须输入保底工资的逻辑

---
 src/views/systemSetting/silkPriceStandard/index.vue |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/views/systemSetting/silkPriceStandard/index.vue b/src/views/systemSetting/silkPriceStandard/index.vue
index d6957a9..c739e6e 100644
--- a/src/views/systemSetting/silkPriceStandard/index.vue
+++ b/src/views/systemSetting/silkPriceStandard/index.vue
@@ -54,7 +54,7 @@
       tableList: {},
       showCol: ["搴勫彛", "鐢熶笣绛夌骇", "钖叕鏍囧噯", "鍗曚綅", "澶囨敞"],
       tableColumn: [
-        { label: "搴勫彛", prop: "marketNumber",},
+        { label: "搴勫彛", prop: "marketName",},
         { label: "鐢熶笣绛夌骇", prop: "rawSilkGrade", },
         { label: "钖叕鏍囧噯", prop: "payStandard" },
         { label: "鍗曚綅", prop: "unit" },
@@ -86,9 +86,9 @@
     },
     // 鏂板
     addBtnClick() {
+      this.editConfig.infomitton={}
       this.editConfig.dialogTitle="鏂板"
       this.editConfig.visible=true
-      this.editConfig.infomitton={}
     },
     // 淇濆瓨
     saveBtnClick(){
@@ -157,22 +157,25 @@
       })
     },
     handleClick(row,type){
-      if(type==="鏌ョ湅"){
-        this.editConfig.infomitton=row
-        this.editConfig.dialogTitle=type
-        this.editConfig.visible=true
-      }else if(type==="淇敼"){
-        this.editConfig.infomitton=row
+      if(type!=="鍒犻櫎"){
+        this.editConfig.infomitton={
+            ...row,
+            market:{
+            ID:row.marketId,
+            name:row.marketName,
+          }
+        }
         this.editConfig.dialogTitle=type
         this.editConfig.visible=true
       }else if(type==="鍒犻櫎"){
-        this.$confirm(`纭鍒犻櫎${row.name}鍚�?`, '鎻愮ず', {
+        this.$confirm(`纭鍒犻櫎鍚�?`, '鎻愮ず', {
           confirmButtonText: '纭畾',
           cancelButtonText: '鍙栨秷',
           type: 'warning'
         }).then(() => {
           deletePriceStandard({id:row.ID}).then((res)=>{
             if(res&&res.code===200){
+              this.pagerOptions.currPage = 1;
               this.getData()
               this.$message({
                 type: 'success',
@@ -180,7 +183,9 @@
               });
             }
           })
-        })
+        }).catch(() => {
+          console.log("鍙栨秷鍒犻櫎")
+        });
       }
     }
   }

--
Gitblit v1.8.0