Procházet zdrojové kódy

增加修改订单状态

Yannay před 2 měsíci
rodič
revize
3f8ef82cf5

+ 1 - 1
manifest.json

@@ -124,7 +124,7 @@
124 124
         },
125 125
         "nativePlugins" : {
126 126
             "lemonjk-FileSelect" : {
127
-                "appid_android" : "uni.UNI0C0EF72",
127
+                "appid_android" : "uni.UNIDDAE2E0",
128 128
                 "__plugin_info__" : {
129 129
                     "name" : "FileSelect",
130 130
                     "description" : "文件选取插件",

+ 36 - 22
pages/orderDetailNew/components/pageFour.vue

@@ -400,31 +400,45 @@ export default {
400 400
         },
401 401
 
402 402
         // 确认入库方法
403
-        async confirmWarehouseEntry() {
403
+        confirmWarehouseEntry() {
404 404
 
405
+            console.log('确认入库', this.orderDetail.id)
405 406
 
406
-            //上传物流表单数据
407
-            this.$emit('confirmInterStore', {
408
-                warehouseInfo: this.warehouseInfo,
407
+            uni.showModal({
408
+                title: '确认入库',
409
+                content: `是否确认入库改订单:${this.orderDetail.item}?`,
410
+                success: async (res) => {
411
+                    if (res.confirm) {
412
+                        await uni.$u.api.oderForm({
413
+                            status: "3",
414
+                            id: this.orderDetail.id,
415
+                        });
416
+
417
+                        //上传物流表单数据
418
+                        this.$emit('confirmInterStore', {
419
+                            warehouseInfo: this.warehouseInfo,
420
+                        })
421
+
422
+                        //上传分成数据
423
+                        await this.addShare()
424
+
425
+                        this.$refs.uToast.show({
426
+                            type: "success",
427
+                            message: "入库成功",
428
+                            iconUrl: "https://uviewui.com/demo/toast/success.png",
429
+                            complete() {
430
+                                uni.navigateTo({
431
+                                    url: '/pages/pagereceivecenter/pagereceivecenter',
432
+                                })
433
+                            },
434
+                        });
435
+
436
+                    } else if (res.cancel) {
437
+                        // 用户点击了取消,不执行任何操作
438
+                        uni.$u.toast('已取消入库');
439
+                    }
440
+                }
409 441
             })
410
-
411
-            //上传分成数据
412
-            await this.addShare()
413
-
414
-            this.$refs.uToast.show({
415
-                type: "success",
416
-                message: "入库成功",
417
-                iconUrl: "https://uviewui.com/demo/toast/success.png",
418
-                complete() {
419
-                    uni.navigateTo({
420
-                        url: '/pages/pagereceivecenter/pagereceivecenter',
421
-                    })
422
-                },
423
-            });
424
-
425
-            //跳转接单
426
-
427
-
428 442
         },
429 443
 
430 444
         // 获取分成人名单

+ 5 - 0
pages/orderDetailNew/components/pageThree.vue

@@ -395,6 +395,11 @@ export default {
395 395
                 orderId: this.orderId,
396 396
                 content: `未收评分_${this.unpaidRating}`,
397 397
             })
398
+            await uni.$u.api.oderForm({
399
+                status: "4",
400
+                id: this.orderId,
401
+            });
402
+
398 403
             if (res.code == 200) {
399 404
                 uni.$u.toast('提交未收评级成功');
400 405
             }

+ 5 - 1
pages/pagereceivecenter/pagereceivecenter.vue

@@ -65,8 +65,12 @@ export default {
65 65
                 uni.showModal({
66 66
                     title: '确认接单',
67 67
                     content: `是否确认接单订单:${order.item}?`,
68
-                    success: (res) => {
68
+                    success: async (res) => {
69 69
                         if (res.confirm) {
70
+                            await uni.$u.api.oderForm({
71
+                                status: "2",
72
+                                id: order.id,
73
+                            });
70 74
                             uni.navigateTo({
71 75
                                 url: `/pages/orderDetailNew/index?orderId=${order.id}&item=${order.item}&type=${this.type}&clueId=${order.clueId}`,
72 76
                             })