Browse Source

feat: update 完工

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

35
src/pages/mes/workScheduling/workScheduling.vue

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

Loading…
Cancel
Save