| | |
| | | * 关闭此对话框 |
| | | */ |
| | | TSystemPriceInfoDlg.close = function() { |
| | | parent.layer.close(window.parent.TSystemPrice.layerIndex); |
| | | parent.layer.close(window.parent.TOpenCityInfoDlg.layerIndex); |
| | | } |
| | | |
| | | /** |
| | |
| | | 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, |
| | |
| | | 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(); |
| | | |
| | | } |
| | | |
| | | /** |