From 57a95e29489208fe48d2dff21958534672d39dbe Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Mon, 29 Sep 2025 16:24:40 +0800 Subject: [PATCH] =?UTF-8?q?9.29=E6=94=B6=E6=AC=BE=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .gitignore | 1 + .../moneyManage/receiveDetail/receiveDetail.vue | 327 ++++++++++++++------- stats.html | 2 +- 4 files changed, 224 insertions(+), 108 deletions(-) diff --git a/.env.development b/.env.development index 9ad7365..e9dfee0 100644 --- a/.env.development +++ b/.env.development @@ -13,4 +13,4 @@ VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload # 本地 #VITE_API_BASE='http://localhost:8081/' # sunjiabei -# VITE_API_BASE='http://192.168.0.34:8081/' \ No newline at end of file +# VITE_API_BASE='http://192.168.1.70:8081/' \ No newline at end of file diff --git a/.gitignore b/.gitignore index 1f05d53..3aa3d42 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ dist-ssr # 忽略 stats.html .env.development +stats.html diff --git a/src/views/moneyManage/receiveDetail/receiveDetail.vue b/src/views/moneyManage/receiveDetail/receiveDetail.vue index d1b066f..b47a06d 100644 --- a/src/views/moneyManage/receiveDetail/receiveDetail.vue +++ b/src/views/moneyManage/receiveDetail/receiveDetail.vue @@ -100,7 +100,22 @@ - + + + + + + + + @@ -116,7 +131,11 @@ - + + + + + @@ -129,7 +148,7 @@ 审核 编辑 + @click="openEditForm(scope.row)">编辑 @@ -205,7 +224,7 @@ - + @@ -272,16 +291,16 @@
- + - + - + - + @@ -290,13 +309,13 @@ - + - +
@@ -304,7 +323,7 @@ list-type="picture-card" :auto-upload="false" :before-upload="beforeUpload" :on-error="handelImgErr" :on-change="handleImageChange" :http-request="customUpload"> - @@ -323,29 +342,34 @@
- - - - - - - - + + - - + + - - + + - - + + - - + + + + + +
@@ -356,6 +380,7 @@ import { ref, watch } from 'vue'; import { ElMessage } from 'element-plus' import API from '@/util/http.js' import { color } from 'echarts'; +import { template } from 'lodash'; //==================== 标签切换 ========================= const activeTab = ref('wait') @@ -453,12 +478,14 @@ const customUpload = async (options) => { } } -//================== 编辑相关 ========================= +//================== 财务编辑相关 ========================= const editFormData = ref({ }) const editFormisible = ref(false) -const openEditForm = () => { +const openEditForm = (row) => { + console.log('编辑时该行数据:',row); + editFormData.value = row editFormisible.value = true } const closeEditForm = () => { @@ -513,80 +540,124 @@ const pageInfo = ref({ const total = ref(0) const tableData = [ - { - jwcode: 'HW2023001', - name: '张三', - market: '北京', - activity: '春季促销活动', - rateName: '黄金投资产品A', - money: '人民币', - permanentGold: '5000.00', - freeGold: '银行转账', - remark: '2023-03-15 10:30:00', - voucher: 'https://example.com/images/voucher1.jpg', - orderStatus: '待审核', - }, - { - jwcode: 'HW2023002', - name: '李四', - market: '上海', - activity: '夏日特惠活动', - rateName: '白银理财产品B', - money: '人民币', - permanentGold: '3000.00', - freeGold: '支付宝', - remark: '2023-06-20 14:15:00', - voucher: 'https://example.com/images/voucher2.jpg', - orderStatus: '已通过', - }, - { - jwcode: 'HW2023003', - name: '王五', - market: '广州', - activity: '秋季回馈活动', - rateName: '铂金收藏产品C', - money: '美元', - permanentGold: '1000.00', - freeGold: '微信支付', - remark: '2023-09-10 09:20:00', - voucher: '', - orderStatus: '已撤回', - }, - { - jwcode: 'HW2023004', - name: '赵六', - market: '深圳', - activity: '冬季感恩活动', - rateName: '钻石尊享产品D', - money: '欧元', - permanentGold: '1000.00', - freeGold: '信用卡', - remark: '2023-12-05 16:40:00', - voucher: 'https://example.com/images/voucher4.jpg', - orderStatus: '已驳回', - rejectReason: '无', - }, - { - jwcode: 'HW2023005', - name: '孙七', - market: '成都', - activity: '周年庆典活动', - rateName: '翡翠投资产品E', - money: '人民币', - permanentGold: '8000.00', - freeGold: '银行转账', - remark: '2024-01-20 11:10:00', - voucher: '', - orderStatus: '已驳回', - } -]; + { + "jwcode": "HM2024001", + "name": "张三", + "market": "华东区", + "activity": "2024春季促销活动", + "rateName": "年度会员套餐A", + "money": "人民币", + "permanentGold": 2980.00, + "moneyType": "人民币", + "getMoney": 2980.00, + "shouxufei": 59.60, + "pastType": "支付宝转账", + "remark": "2024-05-10 09:23", + "voucher": "https://example.com/voucher/1.jpg", + "payModel": "https://example.com/icon/alipay.png", + "bankOrder": "ALIPAY2024051000001", + "submiter": "李四(运营部)", + "auditor": "王五(财务部)", + "mask": "客户主动购买,无特殊备注", + "getMoneyTime": "2024-05-10 10:05", + "orderStatus": "已通过" + }, + { + "jwcode": "HM2024002", + "name": "李四", + "market": "华北区", + "activity": "新客首单优惠", + "rateName": "季度体验套餐B", + "money": "美元", + "permanentGold": 99.00, + "moneyType": "人民币", + "getMoney": 712.00, + "shouxufei": 14.24, + "pastType": "PayPal", + "remark": "2024-05-11 14:56", + "voucher": "https://example.com/voucher/2.jpg", + "payModel": "https://example.com/icon/paypal.png", + "bankOrder": "PAYPAL2024051100002", + "submiter": "赵六(国际部)", + "auditor": "孙七(财务部)", + "mask": "跨境支付,汇率按当日中间价计算", + "getMoneyTime": "2024-05-12 08:30", + "orderStatus": "待审核" + }, + { + "jwcode": "HM2024003", + "name": "王五", + "market": "华南区", + "activity": "老客召回活动", + "rateName": "月度续费套餐C", + "money": "人民币", + "permanentGold": 399.00, + "moneyType": "人民币", + "getMoney": null, + "shouxufei": null, + "pastType": "微信支付", + "remark": "2024-05-12 11:18", + "voucher": "https://example.com/voucher/3.jpg", + "payModel": "https://example.com/icon/wechat.png", + "bankOrder": "WECHAT2024051200003", + "submiter": "钱八(客服部)", + "auditor": null, + "mask": "到账信息待财务补充", + "getMoneyTime": null, + "orderStatus": "已撤回" + }, + { + "jwcode": "HM2024004", + "name": "赵六", + "market": "西区", + "activity": "企业团购活动", + "rateName": "企业定制套餐D", + "money": "人民币", + "permanentGold": 15800.00, + "moneyType": "人民币", + "getMoney": 15800.00, + "shouxufei": 316.00, + "pastType": "银行对公转账", + "remark": "2024-05-13 09:45", + "voucher": "https://example.com/voucher/4.jpg", + "payModel": "https://example.com/icon/bank.png", + "bankOrder": "BANK2024051300004", + "submiter": "周九(销售部)", + "auditor": "吴十(财务部)", + "mask": "10人企业团单,享受95折优惠", + "getMoneyTime": "2024-05-13 11:20", + "orderStatus": "已通过" + }, + { + "jwcode": "HM2024005", + "name": "孙七", + "market": "东北区", + "activity": "节日特惠活动", + "rateName": "年度会员套餐A", + "money": "人民币", + "permanentGold": 2780.00, + "moneyType": "人民币", + "getMoney": 2780.00, + "shouxufei": 55.60, + "pastType": "银联支付", + "remark": "2024-05-14 15:30", + "voucher": null, + "payModel": null, + "bankOrder": "UNIONPAY2024051400005", + "submiter": "郑一(市场部)", + "auditor": "王二(财务部)", + "mask": "凭证暂未上传,已提醒客户补充", + "getMoneyTime": "2024-05-14 16:45", + "orderStatus": "待审核" + } +]