Browse Source

feat: update 质检和报工接口参数修改

master
TengXF 6 months ago
parent
commit
c8129be6eb
  1. 3
      src/pages/mes/workScheduling/waitQuality.vue
  2. 3
      src/pages/mes/workScheduling/workScheduling.vue

3
src/pages/mes/workScheduling/waitQuality.vue

@ -87,7 +87,7 @@
console.log(saveData.value) console.log(saveData.value)
workSchedulingListApi.qualityByProcess(saveData.value).then((res) => { workSchedulingListApi.qualityByProcess(saveData.value).then((res) => {
proxy.$modal.closeLoading() proxy.$modal.closeLoading()
if (res.data) { if (res.code == 0) {
proxy.$modal.showToast('成功') proxy.$modal.showToast('成功')
setTimeout(() => { setTimeout(() => {
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
@ -127,6 +127,7 @@
nodeInfo.value.processCode = paramData.value.nodeCode nodeInfo.value.processCode = paramData.value.nodeCode
saveData.value.processCode = paramData.value.nodeCode saveData.value.processCode = paramData.value.nodeCode
saveData.value.planDayCode = paramData.value.planNoDay saveData.value.planDayCode = paramData.value.planNoDay
saveData.value.id = paramData.value.id
} }
}) })
onShow(() => { onShow(() => {

3
src/pages/mes/workScheduling/workScheduling.vue

@ -317,9 +317,10 @@
// //
function nodeCodeFinish(item) { function nodeCodeFinish(item) {
console.log(item)
proxy.$modal.confirm("是否确认完成工序").then(() => { proxy.$modal.confirm("是否确认完成工序").then(() => {
proxy.$modal.loading('加载中') proxy.$modal.loading('加载中')
workSchedulingListApi.getWorkSchedulingProcessFinished(item.remark).then((res) => { workSchedulingListApi.getWorkSchedulingProcessFinished(item.id).then((res) => {
proxy.$modal.showToast('成功') proxy.$modal.showToast('成功')
tabsChange(3); tabsChange(3);
proxy.$modal.closeLoading() proxy.$modal.closeLoading()

Loading…
Cancel
Save