Commit 0bf1b9f6 authored by 李晓兵's avatar 李晓兵

Merge branch 'develop' of https://hel.hand-china.com/xugong/hls-xcmg-vue-app into develop

parents 588597e3 9d0319eb
Pipeline #4457 canceled with stages
...@@ -577,31 +577,27 @@ export default { ...@@ -577,31 +577,27 @@ export default {
} }
}) })
}, },
isComputedCheck () { async isComputedCheck () {
let vm = this let vm = this
let url = process.env.basePath + 'prj_product_cal_status' let url = process.env.basePath + 'prj_product_cal_status'
let param = { let param = {
master: { project_id: vm.saveInfo.project_id,
project_id: vm.saveInfo.product_id,
},
} }
hlsPopup.showLoading('请稍候') // hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) { let res = await vm.$post(url, param)
vm.hlsPopup.hideLoading() if (res.result === 'S') {
if (res.result === 'S') { if (res.info.success_flag === 'Y') {
if (res.info.success_flag === 'Y') { return true
vm.isComputed = true
} else {
vm.isComputed = false
}
} else { } else {
hlsPopup.showLongCenter(res.message) return false
} }
}) } else {
hlsPopup.showLongCenter(res.message)
}
}, },
next () { async next () {
let vm = this let vm = this
vm.isComputedCheck() vm.isComputed = await vm.isComputedCheck()
if (vm.isReadOnly) { if (vm.isReadOnly) {
vm.$router.push({ vm.$router.push({
name: 'CreateEnclosureInfo', name: 'CreateEnclosureInfo',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment