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