|
|
@ -196,7 +196,7 @@ |
|
|
|
getCurrentInstance |
|
|
|
} from 'vue' |
|
|
|
|
|
|
|
import * as inspectionOrderApi from "@/api/eam/spotcheck" |
|
|
|
import * as spotcheckOrderApi from "@/api/eam/spotcheck" |
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() |
|
|
|
const subList = ref([]) |
|
|
@ -294,7 +294,7 @@ |
|
|
|
proxy.$modal.confirm('是否完成?').then(() => { |
|
|
|
proxy.$modal.loading('加载中') |
|
|
|
loading.value = true |
|
|
|
inspectionOrderApi.spotcheckExecuteOrder(paramsData).then((res) => { |
|
|
|
spotcheckOrderApi.spotcheckExecuteOrder(paramsData).then((res) => { |
|
|
|
if (res.data) { |
|
|
|
proxy.$modal.showToast('操作成功') |
|
|
|
setTimeout(() => { |
|
|
@ -329,7 +329,7 @@ |
|
|
|
status: '4' |
|
|
|
} |
|
|
|
proxy.$modal.confirm("是否确认接单").then(()=>{ |
|
|
|
inspectionOrderApi.spotcheckUpdateOrder(datas).then((res) => { |
|
|
|
spotcheckOrderApi.spotcheckUpdateOrder(datas).then((res) => { |
|
|
|
if (res.data) { |
|
|
|
proxy.$modal.showToast('接单成功') |
|
|
|
setTimeout(() => { |
|
|
@ -356,7 +356,7 @@ |
|
|
|
status: '5' |
|
|
|
} |
|
|
|
proxy.$modal.confirm("是否确认执行").then(()=>{ |
|
|
|
inspectionOrderApi.spotcheckUpdateOrder(datas).then((res) => { |
|
|
|
spotcheckOrderApi.spotcheckUpdateOrder(datas).then((res) => { |
|
|
|
if (res.data) { |
|
|
|
proxy.$modal.showToast('执行成功') |
|
|
|
setTimeout(() => { |
|
|
@ -400,7 +400,7 @@ |
|
|
|
} |
|
|
|
formPopupValidate.value = false |
|
|
|
proxy.$modal.confirm("是否确认执行").then(()=>{ |
|
|
|
inspectionOrderApi.spotcheckOrderPassed(paramsData).then((res) => { |
|
|
|
spotcheckOrderApi.spotcheckOrderPassed(paramsData).then((res) => { |
|
|
|
console.log(res); |
|
|
|
proxy.$modal.showToast('执行成功') |
|
|
|
setTimeout(() => { |
|
|
@ -417,7 +417,7 @@ |
|
|
|
} |
|
|
|
formPopupValidate.value = false |
|
|
|
proxy.$modal.confirm("是否确认执行").then(()=>{ |
|
|
|
inspectionOrderApi.spotcheckOrderRejected(paramsData).then((res) => { |
|
|
|
spotcheckOrderApi.spotcheckOrderRejected(paramsData).then((res) => { |
|
|
|
console.log(res); |
|
|
|
proxy.$modal.showToast('执行成功') |
|
|
|
setTimeout(() => { |
|
|
@ -483,7 +483,7 @@ |
|
|
|
selectListByNumber() |
|
|
|
}) |
|
|
|
function selectDetail() { |
|
|
|
inspectionOrderApi.spotcheckOrder(id.value).then((res) => { |
|
|
|
spotcheckOrderApi.spotcheckOrder(id.value).then((res) => { |
|
|
|
if (res.data) { |
|
|
|
data.value = res.data |
|
|
|
} |
|
|
@ -494,7 +494,7 @@ |
|
|
|
const data = { |
|
|
|
masterId: id.value |
|
|
|
} |
|
|
|
inspectionOrderApi.spotcheckOrderDetail(data).then((res) => { |
|
|
|
spotcheckOrderApi.spotcheckOrderDetail(data).then((res) => { |
|
|
|
if (res.data) { |
|
|
|
subList.value = res.data |
|
|
|
} |
|
|
|