| | |
| | | ) |
| | | ); |
| | | } |
| | | // 根据订单状态为'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); |
| | | }, |
| | |
| | | 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) |