CD配唱片
2025-05-08 e3e17a37d85f50bace525ed019ee0cd8d39143eb
src/views/mainPlan/workOrderJobLog/index.vue
@@ -99,6 +99,7 @@
    <HxlhTable
        style="width: 100%"
        :virtualYConfig="virtualYConfig"
        :columns="columns"
        :data="LogList"
        :loading="loading"
@@ -148,13 +149,16 @@
</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);
@@ -282,12 +286,19 @@
      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("暂未实现");
        }
      }