From 05088abb136d2aede56f25aaa6ec68016bbce935 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期六, 02 八月 2025 18:04:41 +0800 Subject: [PATCH] 新增加价格配置模块 --- ManagementQYTTravel/guns-admin/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice_info.js | 26 ++++++++------------------ 1 files changed, 8 insertions(+), 18 deletions(-) diff --git a/ManagementQYTTravel/guns-admin/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice_info.js b/ManagementQYTTravel/guns-admin/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice_info.js index 252894c..231b3a3 100644 --- a/ManagementQYTTravel/guns-admin/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice_info.js +++ b/ManagementQYTTravel/guns-admin/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice_info.js @@ -119,7 +119,7 @@ * 关闭此对话框 */ TSystemPriceInfoDlg.close = function() { - parent.layer.close(window.parent.TSystemPrice.layerIndex); + parent.layer.close(window.parent.TOpenCityInfoDlg.layerIndex); } /** @@ -322,21 +322,7 @@ isOpenPrice = 2; } - - //提交信息 - var ajax = new $ax(Feng.ctxPath + "/tSystemPrice/add", function(data){ - if (500 == data.code){ - Feng.error(data.message); - return; - }else{ - Feng.success("添加成功!"); - window.parent.TSystemPrice.table.refresh(); - TSystemPriceInfoDlg.close(); - } - },function(data){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }); - ajax.setData({ + var jsonStr = { serverCarModelId: serverCarModelId, content: waitFee, fareTypeNote1: fareTypeNote1, @@ -353,8 +339,12 @@ isOpen: isOpen, isOpenExclusive: isOpenExclusive, isOpenPrice: isOpenPrice - }) - ajax.start(); + }; + window.parent.document.getElementById(serverCarModelId).value = btoa(JSON.stringify(jsonStr)); + window.parent.document.getElementById("zc_status_" + serverCarModelId).innerText = "已设置"; + window.parent.document.getElementById("zc_set_" + serverCarModelId).innerText = "修改"; + TSystemPriceInfoDlg.close(); + } /** -- Gitblit v1.7.1