Browse Source

feat: update 完工

master
TengXF 4 months ago
parent
commit
cfd1d21168
  1. 39
      src/pages/mes/workScheduling/workScheduling.vue

39
src/pages/mes/workScheduling/workScheduling.vue

@ -465,25 +465,26 @@
}
// ->
function finished(item) {
console.log(item)
nodeInfo.value.planDayCode = item.planMasterCode
nodeInfo.value.processCode = item.workingNode
workSchedulingListApi.getNodePosition(nodeInfo.value).then((res) => {
proxy.$modal.closeLoading()
if (res.data != null && res.data == "end") {
proxy.$modal.confirm('确定提交完工吗?').then(() => {
submitFinish(item)
})
} else {
_toast("当前不是最后工序,不允许完工")
// proxy.$modal.loading("")
// setTimeout(() => {
// proxy.$modal.closeLoading()
// }, 1000)
}
}).catch(() => {
proxy.$modal.closeLoading()
})
submitFinish(item)
// console.log(item)
// nodeInfo.value.planDayCode = item.planMasterCode
// nodeInfo.value.processCode = item.workingNode
// workSchedulingListApi.getNodePosition(nodeInfo.value).then((res) => {
// proxy.$modal.closeLoading()
// if (res.data != null && res.data == "end") {
// proxy.$modal.confirm('?').then(() => {
// submitFinish(item)
// })
// } else {
// _toast("")
// // proxy.$modal.loading("")
// // setTimeout(() => {
// // proxy.$modal.closeLoading()
// // }, 1000)
// }
// }).catch(() => {
// proxy.$modal.closeLoading()
// })
}
// ->
function submitFinish(item) {

Loading…
Cancel
Save