MrShi
2025-07-19 edb50cb0dc65061d5ce9f8d4ff26fcee12b09eee
调接口
已修改6个文件
48 ■■■■■ 文件已修改
small-program/pages/demand-hall/demand-hall.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/freight/freight.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/index/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/packaging-worker/packaging-worker.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/sorting/sorting.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/using-workers/using-workers.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/demand-hall/demand-hall.vue
@@ -273,12 +273,15 @@
            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) {
@@ -310,11 +313,14 @@
                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) {
small-program/pages/freight/freight.vue
@@ -302,6 +302,7 @@
                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]
@@ -312,6 +313,7 @@
                    }
                    if (!this.form.wayInfoDTOList) {
                        this.form.wayInfoDTOList = []
                        }
                    }
                })
            } else {
@@ -414,23 +416,31 @@
                        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) {
small-program/pages/index/index.vue
@@ -467,6 +467,7 @@
            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
@@ -474,6 +475,7 @@
                            this.orderList = []
                            this.getOrderList()
                        }, 2000)
                        }
                    })
            },
            clickSort(id) {
@@ -620,7 +622,9 @@
                        priceNum1: that.form.days,
                        type: 2
                    }).then(res => {
                        if (res.code === 200) {
                        that.form.estimatedAccount = res.data
                        }
                    })
                }
            },
@@ -758,14 +762,17 @@
            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 => {
@@ -776,6 +783,7 @@
                            })
                        })
                        this.orderFood = res.data
                        }
                    })
            }
        }
small-program/pages/packaging-worker/packaging-worker.vue
@@ -211,6 +211,7 @@
                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]
@@ -221,6 +222,8 @@
                        this.form.multifileList = []
                    }
                    // this.clickType()
                    }
                })
            } else {
                this.form.linkPhone = this.userInfo.telephone
@@ -283,7 +286,10 @@
                        type: this.form.type,
                        workType: this.form.workType
                    }).then(res => {
                        if (res.code === 200) {
                        this.form.estimatedAccount = res.data
                        }
                    })
                }
            },
@@ -320,7 +326,9 @@
                this.$u.api.getCategoryList({
                    type: 0
                }).then(res => {
                    if (res.code === 200) {
                    this.cateList = [res.data]
                    }
                })
            },
            uploadImg() {
small-program/pages/sorting/sorting.vue
@@ -201,6 +201,7 @@
                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]
@@ -210,6 +211,8 @@
                    if (!this.form.multifileList) {
                        this.form.multifileList = []
                    }
                    }
                })
            } else {
                this.form.linkPhone = this.userInfo.telephone
@@ -271,7 +274,10 @@
                        type: this.form.type,
                        workType: this.form.workType
                    }).then(res => {
                        if (res.code === 200) {
                        this.form.estimatedAccount = res.data
                        }
                    })
                }
            },
@@ -300,7 +306,10 @@
                this.$u.api.getCategoryList({
                    type: 0
                }).then(res => {
                    if (res.code === 200) {
                    this.cateList = [res.data]
                    }
                })
            },
            uploadImg() {
small-program/pages/using-workers/using-workers.vue
@@ -195,6 +195,7 @@
                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]
@@ -204,6 +205,8 @@
                    if (!this.form.multifileList) {
                        this.form.multifileList = []
                    }
                    }
                })
            } else {
                this.form.linkPhone = this.userInfo.telephone
@@ -271,8 +274,10 @@
                        type: this.form.type,
                        workType: this.form.workType
                    }).then(res => {
                        if (res.code === 200) {
                        this.modify = true
                        this.form.estimatedAccount = res.data
                        }
                    })
                }
            },
@@ -300,7 +305,9 @@
                this.$u.api.getCategoryList({
                    type: 0
                }).then(res => {
                    if (res.code === 200) {
                    this.cateList = [res.data]
                    }
                })
            },
            uploadImg() {