|
@@ -471,7 +471,8 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
settle() {
|
|
settle() {
|
|
|
- if (!this.currService){
|
|
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ if (!that.currService){
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon: 'error',
|
|
icon: 'error',
|
|
|
duration: 2000,
|
|
duration: 2000,
|
|
@@ -479,14 +480,23 @@
|
|
|
});
|
|
});
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- this.previousServiceOrderId = this.currService.serviceObjectId
|
|
|
|
|
- this.$api.service.settle({
|
|
|
|
|
- orderServiceId: this.currService.orderServiceId
|
|
|
|
|
- }).then(res => {
|
|
|
|
|
- this.currServiceInfo()
|
|
|
|
|
- this.$refs.reminderPopup.open()
|
|
|
|
|
|
|
+ uni.showModal({
|
|
|
|
|
+ title:'温馨提示',
|
|
|
|
|
+ content:'是否确定结算',
|
|
|
|
|
+ editable:false,
|
|
|
|
|
+ success:(e)=>{
|
|
|
|
|
+ if (e.confirm){
|
|
|
|
|
+ that.previousServiceOrderId = that.currService.serviceObjectId
|
|
|
|
|
+ that.$api.service.settle({
|
|
|
|
|
+ orderServiceId: that.currService.orderServiceId
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ that.currServiceInfo()
|
|
|
|
|
+ that.$refs.reminderPopup.open()
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
start() {
|
|
start() {
|
|
|
this.$api.service.start({
|
|
this.$api.service.start({
|