|
@ -24,11 +24,12 @@ |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
/* 初始化 */ |
|
|
/* 初始化 */ |
|
|
import { onShow } from "@dcloudio/uni-app" |
|
|
import { onLoad, onShow } from "@dcloudio/uni-app" |
|
|
import { getCurrentInstance, ref } from "vue" |
|
|
import { getCurrentInstance, ref } from "vue" |
|
|
/* 引入API */ |
|
|
/* 引入API */ |
|
|
import tags from "@components/tags/index.vue" |
|
|
import tags from "@components/tags/index.vue" |
|
|
import * as workSchedulingApi from "@/api/mes/workScheduling" |
|
|
import * as workSchedulingApi from "@/api/mes/workScheduling" |
|
|
|
|
|
import * as workSchedulingListApi from "@/api/mes/workScheduling" |
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() |
|
|
const { proxy } = getCurrentInstance() |
|
|
|
|
|
|
|
@ -39,6 +40,9 @@ tags.data = ref([ |
|
|
} |
|
|
} |
|
|
]) |
|
|
]) |
|
|
const data = ref({ |
|
|
const data = ref({ |
|
|
|
|
|
planDayCode: '', |
|
|
|
|
|
processCode: '', |
|
|
|
|
|
teamCode: '', |
|
|
searchValue: '' |
|
|
searchValue: '' |
|
|
}) |
|
|
}) |
|
|
let show = false |
|
|
let show = false |
|
@ -47,17 +51,13 @@ let checked = [] |
|
|
const status = ref('loadmore') |
|
|
const status = ref('loadmore') |
|
|
/* 列表数据集 */ |
|
|
/* 列表数据集 */ |
|
|
const list = ref([]) |
|
|
const list = ref([]) |
|
|
function checkChange(checkedArray: string | any[]) { |
|
|
|
|
|
if (checkedArray.length == 0){ |
|
|
|
|
|
show = true |
|
|
|
|
|
} |
|
|
|
|
|
checked = checkedArray |
|
|
|
|
|
} |
|
|
|
|
|
/* 列表调用API方法 */ |
|
|
/* 列表调用API方法 */ |
|
|
async function getList() { |
|
|
async function getList() { |
|
|
if (status.value === 'nomore') return |
|
|
if (status.value === 'nomore') return |
|
|
status.value = 'loading' |
|
|
status.value = 'loading' |
|
|
proxy.$modal.loading('加载中') |
|
|
proxy.$modal.loading('加载中') |
|
|
|
|
|
// "{"status":"1","remark":null,"planMasterCode":"PO20240429-0015","schedulingCode":"9bb4ab0cfcc14e3284833506b5041571","productCode":"015.886-117","productName":null,"workroomCode":"work1","lineCode":"work1-line1","prouteCode":"015.886-117","planCount":25,"finishCount":0,"qualifiedCount":null,"unqualifiedCount":null,"flagDo":"0","planSubCode":null,"workingNode":"QD_HJ_01","workingTaskSort":1,"formType":"BATCH","workSort":0,"currentWorkstation":null,"planStartTime":null,"planEndTime":1714388234000,"realStartTime":null,"realFinishedTime":null,"qualityFormNo":null,"reason":null,"planNoDay":null,"batchCode":"M015.886-117-001","id":61,"createTime":1714370517000,"creator":"1"}" |
|
|
await workSchedulingApi.getConfigProcessWorker({ |
|
|
await workSchedulingApi.getConfigProcessWorker({ |
|
|
planDayCode: "PO20240429-0008", |
|
|
planDayCode: "PO20240429-0008", |
|
|
processCode: "DLJ_CY_01", |
|
|
processCode: "DLJ_CY_01", |
|
@ -76,7 +76,9 @@ async function getList() { |
|
|
}) |
|
|
}) |
|
|
proxy.$modal.closeLoading() |
|
|
proxy.$modal.closeLoading() |
|
|
} |
|
|
} |
|
|
|
|
|
function checkChange(checkedArray) { |
|
|
|
|
|
checked = checkedArray |
|
|
|
|
|
} |
|
|
/* 打开详情页 */ |
|
|
/* 打开详情页 */ |
|
|
function openDetail(item: any) { |
|
|
function openDetail(item: any) { |
|
|
console.log(item) |
|
|
console.log(item) |
|
@ -89,11 +91,19 @@ onShow(() => { |
|
|
getList() |
|
|
getList() |
|
|
}) |
|
|
}) |
|
|
function onSubmit() { |
|
|
function onSubmit() { |
|
|
|
|
|
if (checked.length == 0){ |
|
|
|
|
|
show = true |
|
|
|
|
|
} |
|
|
uni.setStorageSync("processReportList", checked) |
|
|
uni.setStorageSync("processReportList", checked) |
|
|
uni.redirectTo({ |
|
|
uni.redirectTo({ |
|
|
url: "./processReportForm" |
|
|
url: "./processReportForm" |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
onLoad((option) => { |
|
|
|
|
|
debugger |
|
|
|
|
|
data.value = JSON.parse(option.params) |
|
|
|
|
|
debugger |
|
|
|
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|