peng
6 天以前 e425812229ba4f464475cac1fc6c30cd974f2c52
解决订单查看详情问题
3个文件已修改
61 ■■■■ 已修改文件
manager/src/views/order/order/orderDetail.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manager/src/views/order/order/orderList.vue 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
seller/src/views/order/order/orderDetail.vue 补丁 | 查看 | 原始文档 | blame | 历史
manager/src/views/order/order/orderDetail.vue
@@ -716,7 +716,7 @@
      console.log("to:",to.fullPath)
      console.log("form:",from.fullPath)
      // 正确打印路由对象的方法
      if(from.fullPath === "/orderList" && to.fullPath.includes("/order-detail")){
      if((from.fullPath === "/orderList"|| from.fullPath === "/fictitiousOrderList" ||from.fullPath === "/orderStatistics") && to.fullPath.includes("/order-detail")){
        this.sn = this.$route.query.sn;
        this.getDataList();
        this.getOrderPackage();
@@ -803,6 +803,7 @@
    // 获取订单详情
    getDataList () {
      this.loading = true;
      console.log("执行获取订单信息操作")
      API_Order.orderDetail(this.sn).then((res) => {
        this.loading = false;
        if (res.success) {
manager/src/views/order/order/orderList.vue
@@ -464,24 +464,24 @@
                )
              );
            }
            // 根据订单状态为'PAID'时显示额外操作按钮
            if (params.row.deliverStatus === 'UNDELIVERED') {
              buttons.push(
                h(
                  "Button",
                  {
                    props: { type: "primary", size: "small" },
                    style: { marginRight: "5px" },
                    on: {
                      click: () => {
                        this.handlerEditorQrcode(params.row);
                      },
                    },
                  },
                  "修改地址二维码"
                )
              );
            }
            // // 根据订单状态为'PAID'时显示额外操作按钮
            // if (params.row.deliverStatus === 'UNDELIVERED') {
            //   buttons.push(
            //     h(
            //       "Button",
            //       {
            //         props: { type: "primary", size: "small" },
            //         style: { marginRight: "5px" },
            //         on: {
            //           click: () => {
            //             this.handlerEditorQrcode(params.row);
            //           },
            //         },
            //       },
            //       "修改地址二维码"
            //     )
            //   );
            // }
            return h('div', buttons);
          },
@@ -526,17 +526,17 @@
    closeGeneralQrCode(){
      this.showGeneralQrCode = false;
    },
    handlerEditorQrcode(row){
      this.QRCodeUrl = '';
      this.showGeneralQrCode = true
      this.codeLoading = true;
      //获得商品对应的第一个skuid
      this.codeLoading = false;
      this.QRCodeUrl = this.QRcodeBaseUrl+ '/scanpage/editOrderAddress'+'?orderSn='+row.sn
      console.log(this.QRCodeUrl);
    },
    // handlerEditorQrcode(row){
    //   this.QRCodeUrl = '';
    //   this.showGeneralQrCode = true
    //   this.codeLoading = true;
    //
    //   //获得商品对应的第一个skuid
    //   this.codeLoading = false;
    //   this.QRCodeUrl = this.QRcodeBaseUrl+ '/scanpage/editOrderAddress'+'?orderSn='+row.sn
    //   console.log(this.QRCodeUrl);
    //
    // },
    // 选中的图片
    callbackSelected(val) {
      console.log(val)
seller/src/views/order/order/orderDetail.vue