| | |
| | | startJobs(orderId) { |
| | | this.$u.api.begin({ orderId }) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | this.status = '' |
| | | this.commentStatus = '' |
| | | this.orderList = [] |
| | | this.next = true |
| | | this.page = 1 |
| | | this.getOrderList() |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | jumpDesc(item) { |
| | |
| | | this.$u.api.cancelOrder({ |
| | | orderId: this.orderId |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.show = false |
| | | this.orderList = [] |
| | | this.next = true |
| | | this.page = 1 |
| | | this.getOrderList() |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | phoneCall(phoneNumber) { |
| | |
| | | this.$u.api.getDetail({ |
| | | orderId: option.id |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.info = res.data |
| | | for (const key in this.form) { |
| | | this.form[key] = res.data[key] |
| | |
| | | } |
| | | if (!this.form.wayInfoDTOList) { |
| | | this.form.wayInfoDTOList = [] |
| | | } |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | priceNum2: this.form.priceNum2, |
| | | type: 1 |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.form.estimatedAccount = res.data |
| | | } |
| | | |
| | | }) |
| | | } |
| | | }, |
| | | getCategoryLists() { |
| | | this.$u.api.getCategoryList({ type: 1 }) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | this.car = [res.data] |
| | | res.data.forEach(item => { |
| | | if (item.id === this.form.categoryId) { |
| | | this.carArr = [item.detailList] |
| | | } |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | this.$u.api.getCategoryList({ type: 0 }) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | this.variety = [res.data] |
| | | } |
| | | }) |
| | | }, |
| | | confirmCategary(e) { |
| | |
| | | getaccept(e, orderId, index) { |
| | | this.$u.api.accept({ orderId }) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: '抢单成功!', icon: 'success', duration: 2000 }) |
| | | setTimeout(() => { |
| | | this.page = 1 |
| | |
| | | this.orderList = [] |
| | | this.getOrderList() |
| | | }, 2000) |
| | | } |
| | | }) |
| | | }, |
| | | clickSort(id) { |
| | |
| | | priceNum1: that.form.days, |
| | | type: 2 |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | that.form.estimatedAccount = res.data |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | |
| | | getCategoryLists() { |
| | | this.$u.api.getCategoryList({ type: 1 }) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | this.car = res.data |
| | | this.form.categoryId = res.data[0].id |
| | | this.form.categoryName = res.data[0].name |
| | | this.carRemark = res.data[0].remark |
| | | this.carImage = res.data[0].iconFull |
| | | } |
| | | }) |
| | | this.$u.api.getCategoryList({ type: 2 }) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | res.data.forEach(item => { |
| | | item.num = '' |
| | | item.list = item.detailList.map(child => { |
| | |
| | | }) |
| | | }) |
| | | this.orderFood = res.data |
| | | } |
| | | }) |
| | | } |
| | | } |
| | |
| | | this.$u.api.getDetail({ |
| | | orderId: option.id |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.info = res.data |
| | | for (const key in this.form) { |
| | | this.form[key] = res.data[key] |
| | |
| | | this.form.multifileList = [] |
| | | } |
| | | // this.clickType() |
| | | } |
| | | |
| | | }) |
| | | } else { |
| | | this.form.linkPhone = this.userInfo.telephone |
| | |
| | | type: this.form.type, |
| | | workType: this.form.workType |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.form.estimatedAccount = res.data |
| | | } |
| | | |
| | | }) |
| | | } |
| | | }, |
| | |
| | | this.$u.api.getCategoryList({ |
| | | type: 0 |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.cateList = [res.data] |
| | | } |
| | | }) |
| | | }, |
| | | uploadImg() { |
| | |
| | | this.$u.api.getDetail({ |
| | | orderId: option.id |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.info = res.data |
| | | for (const key in this.form) { |
| | | this.form[key] = res.data[key] |
| | |
| | | if (!this.form.multifileList) { |
| | | this.form.multifileList = [] |
| | | } |
| | | } |
| | | |
| | | }) |
| | | } else { |
| | | this.form.linkPhone = this.userInfo.telephone |
| | |
| | | type: this.form.type, |
| | | workType: this.form.workType |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.form.estimatedAccount = res.data |
| | | } |
| | | |
| | | }) |
| | | } |
| | | }, |
| | |
| | | this.$u.api.getCategoryList({ |
| | | type: 0 |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.cateList = [res.data] |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | uploadImg() { |
| | |
| | | this.$u.api.getDetail({ |
| | | orderId: option.id |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.info = res.data |
| | | for (const key in this.form) { |
| | | this.form[key] = res.data[key] |
| | |
| | | if (!this.form.multifileList) { |
| | | this.form.multifileList = [] |
| | | } |
| | | } |
| | | |
| | | }) |
| | | } else { |
| | | this.form.linkPhone = this.userInfo.telephone |
| | |
| | | type: this.form.type, |
| | | workType: this.form.workType |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.modify = true |
| | | this.form.estimatedAccount = res.data |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | |
| | | this.$u.api.getCategoryList({ |
| | | type: 0 |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.cateList = [res.data] |
| | | } |
| | | }) |
| | | }, |
| | | uploadImg() { |