| | |
| | | |
| | | <HxlhTable |
| | | style="width: 100%" |
| | | :virtualYConfig="virtualYConfig" |
| | | :columns="columns" |
| | | :data="LogList" |
| | | :loading="loading" |
| | |
| | | </template> |
| | | |
| | | <script setup name="ApsWorkOrderJobLog"> |
| | | import { list, get, sync } from "@/api/mainPlan/workOrderJobLog"; |
| | | import { list, get, syncWorkOrder,syncProcess } from "@/api/mainPlan/workOrderJobLog"; |
| | | import {ref} from "vue"; |
| | | import HxlhTable from "@/components/HxlhTable/index.vue"; |
| | | |
| | | const { proxy } = getCurrentInstance(); |
| | | const height = ref(document.documentElement.clientHeight - 270 + "px;") |
| | | |
| | | const virtualYConfig = { |
| | | enabled: true, |
| | | gt: 0 |
| | | }; |
| | | const LogList = ref([]); |
| | | const open = ref(false); |
| | | const loading = ref(true); |
| | |
| | | if (form.value.id != null) { |
| | | debugger; |
| | | if(form.value.bizType==="work_order"){ |
| | | sync(form.value).then(response => { |
| | | syncWorkOrder(form.value).then(response => { |
| | | proxy.$modal.msgSuccess("同步成功"); |
| | | open.value = false; |
| | | getList(); |
| | | }); |
| | | }else { |
| | | }else if(form.value.bizType==="work_order_process") { |
| | | syncProcess(form.value).then(response => { |
| | | proxy.$modal.msgSuccess("同步成功"); |
| | | open.value = false; |
| | | getList(); |
| | | }); |
| | | |
| | | }else{ |
| | | proxy.$modal.msgSuccess("暂未实现"); |
| | | } |
| | | } |