Explorar o código

作业票删除接口对接

wangyani hai 1 ano
pai
achega
0862fa7927
Modificáronse 1 ficheiros con 9 adicións e 5 borrados
  1. 9 5
      src/views/mes/job/jobm/index.vue

+ 9 - 5
src/views/mes/job/jobm/index.vue

@@ -258,7 +258,11 @@
 </template>
 
 <script>
-import { getJobTicketInfo, listJobTicket } from "@/api/mes/job/job";
+import {
+  getJobTicketInfo,
+  listJobTicket,
+  deleteIsJobTicket,
+} from "@/api/mes/job/job";
 import {
   workshoplistAll,
   getIsWorkareaList,
@@ -459,7 +463,7 @@ export default {
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
-      this.ids = selection.map((item) => item.teamId);
+      this.ids = selection.map((item) => item.ticketId);
       this.single = selection.length !== 1;
       this.multiple = !selection.length;
     },
@@ -517,11 +521,11 @@ export default {
     },
     /** 删除按钮操作 */
     handleDelete(row) {
-      const teamIds = row.teamId || this.ids;
+      const teamIds = row.ticketId || this.ids;
       this.$modal
-        .confirm('是否确认删除班组编号为"' + teamIds + '"的数据项?')
+        .confirm('是否确认删除作业票编号为"' + teamIds + '"的数据项?')
         .then(function () {
-          return delTeam(teamIds);
+          return deleteIsJobTicket(teamIds);
         })
         .then(() => {
           this.getList();