{{ ldddw(dict.completeFlag, "id", scope.row.completeFlag, "displayName") }}
@@ -323,6 +341,8 @@
 import moment from "moment";
 import { mapState, mapActions } from "vuex";
 import { getapi, postapi, putapi, deletapi } from "@/api/api";
+import Sortable from "sortablejs"
+
 import { dddw, objCopy, arrayReduce, arrayExistObj, deepCopy } from "@/utlis/proFunc";
 
 import PatientRegisterEdit from "../../components/patientRegister/PatientRegisterEdit.vue";
@@ -374,6 +394,44 @@ export default {
         asbitemCurr: {},   //当前选中要删除的项目(批量调整)
       },
       quickAsb: [],        //可供快速选择的组合项目      
+
+      //动态列
+      headerCols:[
+        {
+          label: "体检进度",
+          prop: "completeFlag",
+          minWidth: 100,
+        },
+        {
+          label: "打印",
+          prop: "guidePrintTimes",
+          minWidth: 60,
+        },
+        {
+          label: "锁住",
+          prop: "isLock",
+          minWidth: 60,
+        },
+      ],
+
+      //拖动列
+      dropCol:[
+        {
+          label: "体检进度",
+          prop: "completeFlag",
+          minWidth: 100,
+        },
+        {
+          label: "打印",
+          prop: "guidePrintTimes",
+          minWidth: 60,
+        },
+        {
+          label: "锁住",
+          prop: "isLock",
+          minWidth: 60,
+        },
+      ],
     };
   },
 
@@ -386,7 +444,9 @@ export default {
 
   //挂载完成
   mounted() {
-    this.quickAsb = this.dict.asbItemAll;    
+    this.quickAsb = this.dict.asbItemAll; 
+
+    this.dropCol = this.columnDrop(this.dropCol);   
   },
   computed: {
     ...mapState(["window", "dict","elProgress","patientRegister", "customerOrg"]),
@@ -1246,6 +1306,24 @@ export default {
       }
     },
 
+    columnDrop(dropCol) {
+      //获取dom节点
+      const wrapperTr = document.querySelector(".el-table__header-wrapper tr");
+      Sortable.create(wrapperTr, {
+        animation: 180,
+        delay: 0,
+        onEnd: (evt) => {
+          const oldItem = dropCol[evt.oldIndex - 1];
+          dropCol.splice(evt.oldIndex - 1, 1);
+          dropCol.splice(evt.newIndex - 1, 0, oldItem);
+        },
+      });
+      return dropCol;
+    },
+
+    
+
+
   },
 
   //监听事件