|
|
@@ -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();
|