|
@@ -43,34 +43,35 @@
|
|
|
methods: {
|
|
|
// 提交本次任务
|
|
|
submitFun(){
|
|
|
- const _this = this;
|
|
|
- clzConfirm({
|
|
|
- title: '提示',
|
|
|
- content: '确定提交本次巡店?',
|
|
|
- success: function(res) {
|
|
|
- if (res.confirm || res.index == 0) {
|
|
|
- submitTask({
|
|
|
- id: _this.taskId,
|
|
|
- inspectorSign: _this.inspectorSign,
|
|
|
- storeManagerSign: _this.storeManagerSign
|
|
|
- }).then(ret=>{
|
|
|
- console.log(ret)
|
|
|
- if(ret.status == 200){
|
|
|
- // 关闭上页
|
|
|
- uni.$emit("closeTour",1)
|
|
|
- // 打开完成页面
|
|
|
- uni.redirectTo({
|
|
|
- url:"/pages/shopTourCompleted/shopTourCompleted?taskId="+_this.taskId
|
|
|
- })
|
|
|
- }
|
|
|
- uni.showToast({
|
|
|
- icon:'none',
|
|
|
- title: ret.message
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ const _this = this
|
|
|
+ console.log({inspectorSign: _this.inspectorSign, storeManagerSign: _this.storeManagerSign})
|
|
|
+ // clzConfirm({
|
|
|
+ // title: '提示',
|
|
|
+ // content: '确定提交本次巡店?',
|
|
|
+ // success: function(res) {
|
|
|
+ // if (res.confirm || res.index == 0) {
|
|
|
+ // submitTask({
|
|
|
+ // id: _this.taskId,
|
|
|
+ // inspectorSign: _this.inspectorSign,
|
|
|
+ // storeManagerSign: _this.storeManagerSign
|
|
|
+ // }).then(ret=>{
|
|
|
+ // console.log(ret)
|
|
|
+ // if(ret.status == 200){
|
|
|
+ // // 关闭上页
|
|
|
+ // uni.$emit("closeTour",1)
|
|
|
+ // // 打开完成页面
|
|
|
+ // uni.redirectTo({
|
|
|
+ // url:"/pages/shopTourCompleted/shopTourCompleted?taskId="+_this.taskId
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // uni.showToast({
|
|
|
+ // icon:'none',
|
|
|
+ // title: ret.message
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
},
|
|
|
}
|
|
|
}
|