Quellcode durchsuchen

【修改】 bug

Howie vor 3 Jahren
Ursprung
Commit
bf63367bb7
2 geänderte Dateien mit 18 neuen und 11 gelöschten Zeilen
  1. 8 7
      src/views/basic_data/material/price_list.vue
  2. 10 4
      src/views/supply/price/price_list.vue

+ 8 - 7
src/views/basic_data/material/price_list.vue

@@ -140,16 +140,17 @@
               >删除</el-button
             >
           </el-popconfirm>
+          <el-button
+        type="primary"
+        style="margin-left:10px"
+              size="mini"
+          @click="handleRevokeAll"
+        >批量作废</el-button>
 <!--        <el-button type="primary" size="mini">导出</el-button>-->
         <!-- <el-button type="primary" size="mini">打印</el-button> -->
       </div>
       <div class="fl">
-        <el-button
-          slot="reference"
-          type="text"
-          size="mini"
-          @click="handleRevokeAll"
-        >批量作废</el-button>
+        
         </div>
     </div>
     <div class="mymain-container">
@@ -473,7 +474,7 @@ export default {
       })
     },
     handleRevoke(id) {
-      handlePriceRevoke({ ids:id.join('') }).then((res) => {
+      handlePriceRevoke({ ids:id }).then((res) => {
         this.$successMsg('操作成功')
         this.getList()
       })

+ 10 - 4
src/views/supply/price/price_list.vue

@@ -140,11 +140,17 @@
               >删除</el-button
             >
           </el-popconfirm>
+          <el-button
+        type="primary"
+        style="margin-left:10px"
+              size="mini"
+          @click="handleRevokeAll"
+        >批量作废</el-button>
 <!--        <el-button type="primary" size="mini">导出</el-button>-->
         <!-- <el-button type="primary" size="mini">打印</el-button> -->
       </div>
       <div class="fl">
-        <el-popconfirm
+        <!-- <el-popconfirm
                 style="margin-right: 10px"
                 title="批量作废吗?"
                 @onConfirm="handleRevokeAll"
@@ -155,7 +161,7 @@
                   size="mini"
                 >批量作废</el-button>
 
-                </el-popconfirm>
+                </el-popconfirm> -->
         </div>
     </div>
            
@@ -482,13 +488,13 @@ export default {
       })
     },
     handleRevoke(id) {
-      handlePriceRevoke({ ids:id.join('') }).then((res) => {
+      handlePriceRevoke({ ids:id }).then((res) => {
         this.$successMsg('操作成功')
         this.getList()
       })
     },
     handleRevokeAll() {
-      handlePriceRevoke({ ids:this.join('') }).then((res) => {
+      handlePriceRevoke({ ids:this.ids.join('') }).then((res) => {
         this.$successMsg('操作成功')
         this.getList()
       })