Commit a44c4882 authored by Damon's avatar Damon

完工校验

parent e26f4273
...@@ -161,7 +161,8 @@ ...@@ -161,7 +161,8 @@
completeCheckResult: [], completeCheckResult: [],
waitHandlerPanelIndex: 0, waitHandlerPanelIndex: 0,
waitHandlerGroupIndex: 0, waitHandlerGroupIndex: 0,
waitHandlerEleIndex: 0, waitHandlerEleIndex: 0,
pass: false,
} }
}, },
components: { components: {
...@@ -311,8 +312,8 @@ ...@@ -311,8 +312,8 @@
return pass return pass
}, },
confirm(){// 检查结果窗口 确认回调 confirm(){// 检查结果窗口 确认回调
uni.navigateTo({ uni.switchTab({
url: 'pages/index/order' url: '/pages/index/order'
}) })
}, },
closeCheckResult(){// 检查结果窗口取消回调 closeCheckResult(){// 检查结果窗口取消回调
...@@ -333,11 +334,12 @@ ...@@ -333,11 +334,12 @@
}, },
orderFinish(){ orderFinish(){
let self = this let self = this
let pass = this.checkCompleteItem() let pass = this.checkCompleteItem()
if(!pass){ if(!pass){
self.completeCheckStatus = true self.completeCheckStatus = true
}else{ }else{
console.log("完工"); console.log("完工");
this.pass = pass
if(self.inGuaranteePeriod === 'Y'){ if(self.inGuaranteePeriod === 'Y'){
self.$u.api.inOrderFinish(self.orderId).then((res)=>{ self.$u.api.inOrderFinish(self.orderId).then((res)=>{
console.log(res) console.log(res)
......
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