|
|
@ -24,18 +24,18 @@ |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
/* 初始化 */ |
|
|
|
import { onShow } from '@dcloudio/uni-app' |
|
|
|
import { getCurrentInstance, ref } from 'vue' |
|
|
|
import { onShow } from "@dcloudio/uni-app" |
|
|
|
import { getCurrentInstance, ref } from "vue" |
|
|
|
/* 引入API */ |
|
|
|
import tags from '@components/tags/index.vue' |
|
|
|
import * as workSchedulingApi from '@/api/mes/workScheduling' |
|
|
|
import tags from "@components/tags/index.vue" |
|
|
|
import * as workSchedulingApi from "@/api/mes/workScheduling" |
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() |
|
|
|
|
|
|
|
tags.data = ref([ |
|
|
|
{ |
|
|
|
text: '1', |
|
|
|
value: '2' |
|
|
|
text: "1", |
|
|
|
value: "2" |
|
|
|
} |
|
|
|
]) |
|
|
|
const data = ref({ |
|
|
@ -57,18 +57,16 @@ async function getList() { |
|
|
|
if (status.value === 'nomore') return |
|
|
|
status.value = 'loading' |
|
|
|
proxy.$modal.loading('加载中') |
|
|
|
if (list.value.length == 0){ |
|
|
|
await workSchedulingApi |
|
|
|
.getConfigProcessWorker({ |
|
|
|
planDayCode: 'PO20240426-0022', |
|
|
|
processCode: 'FF-CY-002', |
|
|
|
teamCode: 'T01' |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
if (res.data.length > 0) { |
|
|
|
list.value = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
if (list.value.length == 0) { |
|
|
|
await workSchedulingApi.getConfigProcessWorker({ |
|
|
|
planDayCode: "PO20240426-0022", |
|
|
|
processCode: "FF-CY-002", |
|
|
|
teamCode: "T01" |
|
|
|
}).then((res) => { |
|
|
|
if (res.data.length > 0) { |
|
|
|
list.value = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
proxy.$modal.closeLoading() |
|
|
|
} |
|
|
|