diff --git a/vue/gold-system/src/views/refund/addRefund.vue b/vue/gold-system/src/views/refund/addRefund.vue index e7ea95e..154f5b3 100644 --- a/vue/gold-system/src/views/refund/addRefund.vue +++ b/vue/gold-system/src/views/refund/addRefund.vue @@ -26,24 +26,26 @@ const getAdminData = async function () { }; getAdminData(); -// 这是添加充值信息的表单 +// 这是添加退款信息的表单 const addRefund = ref({ - updateType: "退款", + updateType: "3", allCoin: 0, contactId: "", refundGoods: "", freeCoin: 0, rechargeCoin: 0, taskCoin: 0, + typeR: "0", }); // 取消按钮 const cancel = function () { addRefund.value = {}; - addRefund.value.updateType = "退款"; + addRefund.value.updateType = "3"; addRefund.value.rechargeCoin = 0; addRefund.value.freeCoin = 0; addRefund.value.taskCoin = 0; addRefund.value.allCoin = 0; + addRefund.value.typeR = 0; addRefund.value.adminId = adminData.value.adminId; }; // 这是添加退款信息的接口 @@ -63,13 +65,14 @@ const add = async function () { // 重置表单 addRefund.value = {}; addRefund.value.adminId = adminData.value.adminId; - addRefund.value.updateType = "退款"; + addRefund.value.updateType = "3"; addRefund.value.allCoin = 0; addRefund.value.contactId = ""; addRefund.value.refundGoods = ""; addRefund.value.freeCoin = 0; addRefund.value.rechargeCoin = 0; addRefund.value.taskCoin = 0; + addRefund.value.typeR = 0; user.value = {}; } catch (error) { console.log("请求失败", error); @@ -325,12 +328,20 @@ const handleSelectionChange = (value) => { /> + + + + 全部退款 + 部分退款 + + +

@@ -342,7 +353,7 @@ const handleSelectionChange = (value) => {

@@ -350,7 +361,7 @@ const handleSelectionChange = (value) => {

diff --git a/vue/gold-system/src/views/usergoldInfo/index.vue b/vue/gold-system/src/views/usergoldInfo/index.vue index f1efa08..09f9d8d 100644 --- a/vue/gold-system/src/views/usergoldInfo/index.vue +++ b/vue/gold-system/src/views/usergoldInfo/index.vue @@ -72,40 +72,25 @@ const get = async function (val) { } console.log("搜索参数", getObj.value); // 发送POST请求 - const result = await API.post("http://192.168.8.93:10010/detailY", { + const result = await API.post("http://192.168.8.93:10010/detailY/select", { ...getObj.value, detailY: { ...detailY.value }, }); - const result2 = await API.post("http://192.168.8.93:10010/detailY", { - ...getAllObj.value, - detailY: { ...detailY.value }, - }); + // const result2 = await API.post("http://192.168.8.93:10010/detailY/select", { + // ...getAllObj.value, + // detailY: { ...detailY.value }, + // }); // 将响应结果存储到响应式数据中 console.log("请求成功", result); - console.log("请求成功2", result2); + // console.log("请求成功2", result2); // 存储表格数据 tableData.value = result.data.list; console.log("tableData", tableData.value); - tableAllData.value = result2.data; - console.log("tableAllData", tableAllData.value); + // tableAllData.value = result2.data; + // console.log("tableAllData", tableAllData.value); // 存储分页总数 total.value = result.data.total; console.log("total", total.value); - // 计算各金币总数 - rechargeCoin.value = tableAllData.value.sumR; - freeCoin.value = tableAllData.value.sumF; - taskCoin.value = tableAllData.value.sumT; - // for (let i = 0; i < tableAllData.value.length; i++) { - // rechargeCoin.value += tableAllData.value[i].rechargeCoin; - // freeCoin.value += tableAllData.value[i].freeCoin; - // taskCoin.value += tableAllData.value[i].taskCoin; - // } - console.log( - "各金币总数", - rechargeCoin.value, - freeCoin.value, - taskCoin.value - ); } catch (error) { console.log("请求失败", error); // 在这里可以处理错误逻辑,比如显示错误提示等 @@ -117,13 +102,7 @@ const search = function () { get(); }; // 重置 -const reset = function () { - detailY.value.jwcode = ""; - detailY.value.updateType = ""; - detailY.value.startDate = ""; - detailY.value.endDate = ""; - getTime.value = {}; -}; +const reset = function () {}; // 验证跳转输入框的数字是否合法 const checkNumber = function () { @@ -215,28 +194,40 @@ onMounted(async function () {
- + - - - - + + + + + + + + - + - + + - -