diff --git a/src/components/previews/PreviewImage.vue b/src/components/previews/PreviewImage.vue new file mode 100644 index 0000000..26b49ca --- /dev/null +++ b/src/components/previews/PreviewImage.vue @@ -0,0 +1,147 @@ + + + + + + \ No newline at end of file diff --git a/src/views/moneyManage/receiveDetail/receiveDetail.vue b/src/views/moneyManage/receiveDetail/receiveDetail.vue index 9519978..d369b9e 100644 --- a/src/views/moneyManage/receiveDetail/receiveDetail.vue +++ b/src/views/moneyManage/receiveDetail/receiveDetail.vue @@ -697,7 +697,7 @@ const getlist = async () => { receivedMarket: MarketNameForId(receivedMarket), cashRoleId: cashRoleId, paymentCurrency: payCurrencySelect, - submitterMarket:receivedMarket + submitterMarket: receivedMarket } } }) @@ -852,7 +852,7 @@ const handleAddForm = async () => { paymentCurrency: CurrencyForId(addFormData.value.paymentCurrency) || '', receivedMarket: MarketNameForId(addFormData.value.receivedMarket) || '', paymentAmount: (addFormData.value.paymentAmount) * 100, - submitterMarket:adminData.value.markets + submitterMarket: adminData.value.markets } }) if (result.code == 200) { @@ -964,6 +964,35 @@ const customUpload = async (options) => { ElMessage.error(`上传失败: ${error.msg || error.message || '网络异常'}`) } } + +// 预览图片函数 + +const previewImage = (imageUrl) => { + // 使用 element-plus 的 el-image 组件实现图片预览功能 + const imageElement = document.createElement('img'); + imageElement.src = imageUrl; + imageElement.style.maxWidth = '80vw'; + imageElement.style.maxHeight = '80vh'; + const viewer = document.createElement('div'); + viewer.style.position = 'fixed'; + viewer.style.top = '0'; + viewer.style.left = '0'; + viewer.style.width = '100vw'; + viewer.style.height = '100vh'; + viewer.style.backgroundColor = 'rgba(0, 0, 0, 0.7)'; + viewer.style.display = 'flex'; + viewer.style.justifyContent = 'center'; + viewer.style.alignItems = 'center'; + viewer.style.zIndex = '9999'; + viewer.style.overflow = 'auto'; + viewer.appendChild(imageElement); + document.body.appendChild(viewer); + viewer.addEventListener('click', () => { + document.body.removeChild(viewer); + }); +}; + + //========= 客服新增 退款/撤回 相关 =============== const refundFormData = ref({ @@ -991,16 +1020,16 @@ const submitRefund = async () => { goodsName: refundFormData.value.goodsName, // 商品名称(必填) goodNum: refundFormData.value.goodNum, // 商品数量(必填,默认0) paymentCurrency: refundFormData.value.paymentCurrency, // 付款币种(必填) - paymentAmount: (refundFormData.value.paymentAmount)*100, // 付款金额(必填) + paymentAmount: (refundFormData.value.paymentAmount) * 100, // 付款金额(必填) receivedCurrency: refundFormData.value.receivedCurrency, // 到账币种(必填) - receivedAmount: (refundFormData.value.receivedAmount)*100, // 到账金额(必填) - handlingCharge: (refundFormData.value.handlingCharge)*100, // 手续费(可选) + receivedAmount: (refundFormData.value.receivedAmount) * 100, // 到账金额(必填) + handlingCharge: (refundFormData.value.handlingCharge) * 100, // 手续费(可选) receivedMarket: refundFormData.value.receivedMarket, // 到账地区(可选) payType: refundFormData.value.payType, // 支付方式(必填) payTime: refundFormData.value.payTime, // 付款时间,格式:yyyy-MM-dd HH:mm:ss(可选) receivedTime: refundFormData.value.receivedTime, // 到账时间,格式:yyyy-MM-dd HH:mm:ss(可选) areaServise: adminData.value.adminName, // 提交人(可选) - submitterId:adminData.value.id, + submitterId: adminData.value.id, voucher: refundFormData.value.voucher, // 转账凭证URL(可选) remark: refundFormData.value.remark, // 备注信息(可选) refundReason: refundFormData.value.refundReason, // 退款备注-客服填写(可选) diff --git a/src/views/moneyManage/refundDetail/refundService.vue b/src/views/moneyManage/refundDetail/refundService.vue index 556f40b..1ccd383 100644 --- a/src/views/moneyManage/refundDetail/refundService.vue +++ b/src/views/moneyManage/refundDetail/refundService.vue @@ -67,12 +67,16 @@ - - - + + +