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

Loading…
Cancel
Save