Browse Source

装箱单面料增加复制功能

jbb 2 years ago
parent
commit
5494eeb169
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/views/packing-list/packinglist-fabrics/addFabricDrawer.vue

+ 9 - 0
src/views/packing-list/packinglist-fabrics/addFabricDrawer.vue

@@ -110,6 +110,8 @@
                 <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record,index)">
                 <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record,index)">
                   <a href="javascript:void(0);" style="color:red;">删除</a>
                   <a href="javascript:void(0);" style="color:red;">删除</a>
                 </a-popconfirm>
                 </a-popconfirm>
+                <a-divider type="vertical"/> 
+                <a href="javascript:void(0);" @click="copy(record)">复制</a>
               </span>
               </span>
               
               
               <!-- 缸号 -->
               <!-- 缸号 -->
@@ -631,6 +633,13 @@ export default {
     handleDelete(record,index) {
     handleDelete(record,index) {
       this.addFabricData.splice(index, 1);
       this.addFabricData.splice(index, 1);
     },
     },
+
+    //操作 复制
+    copy(record){
+      var newRow = JSON.parse(JSON.stringify(record));
+      newRow.isAdd = 1
+      this.addFabricData.push(newRow)
+    },
     // -------------------------------------
     // -------------------------------------
 
 
     // 抽屉 取消
     // 抽屉 取消