| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.http.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../css/jquery-ui.css" />
- <link rel="stylesheet" href="../css/tpkerjqui.css" />
- <link rel="stylesheet" href="../css/timePicker.css" />
- <link rel="stylesheet" href="../css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css">
- <link rel="stylesheet" href="../css/stty.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <link rel="stylesheet" type="text/css" href="../js/bootstrap-treeview/bootstrap-treeview.min.css" />
- <title>添加任务</title>
- <style>
- .page-title {
- padding: 0px;
- font-size: 16px;
- font-weight: bold;
- letter-spacing: -1px;
- display: block;
- color: #1570A6;
- margin: 20px 0px 15px 0px;
- }
-
- hr {
- margin: 20px 0;
- border: 0;
- border-top: 1px solid #E0DFDF;
- border-bottom: 1px solid #FEFEFE;
- }
- .bjCon {
- padding-top: 20px;
- /*border: 1px solid #e5e5e5;
- border-top: 0;*/
- }
-
- .bjright table td input {
- padding-left: 30px;
- }
-
- .tub {
- position: absolute;
- left: 18px;
- top: 13px;
- font-size: 18px;
- color: #ccc;
- }
-
- .ui-datepicker.ui-widget-content {
- background: none !important;
- background-color: #eee !important;
- }
-
- .ui-widget-header .ui-icon {
- background-image: url(../img/ui-icons_444444_256x240.png) !important;
- }
-
- .box {
- width: 55%;
- margin: 0 auto;
- margin-top: 5%;
- }
-
- .box .btop {
- height: 35px;
- background: #1ab394;
- color: #fff;
- line-height: 35px;
- padding: 0 15px;
- /* margin-bottom: 15px; */
- }
-
- .btl {
- float: left;
- margin: 0;
- }
-
- .btr {
- float: right;
- margin: 0;
- cursor: pointer;
- }
-
- .boxCon {
- width: 100%;
- min-height: 400px;
- background: #fff;
- text-align: center;
- padding: 10px 15px;
- height: auto;
- overflow-y: scroll;
- }
- .select_ {
- width: 150px;
- background-color: #FFF;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- outline: none;
- vertical-align: middle;
- margin-top: 20px;
- margin-right: 20px;
- }
- .tool {
- margin: 20px 0;
- }
- .searchbox input {
- width: 99%;
- height: 98%;
- border: 0;
- outline: none;
- padding-left: 10px;
- }
- .secon {
- width: 100%;
- height: 34px;
- margin-bottom: 15px;
- }
- .secl {
- width: 65%;
- display: inline-block;
- height: 100%;
- margin: 0;
- border: 1px solid #eee;
- }
-
-
- </style>
- </head>
- <body>
- <form class="container-fluid" enctype="multipart/form-data">
- <div class="row-fluid clearfix">
- <div class="tool clearfix">
- <div class="searchbox col-sm-2">
- <div class="secon">
- <b>号码:</b>
- <p class="secl"><input type="text" placeholder="号码" class="phone" /></p>
- </div>
- </div>
- </div>
- </div>
- <p style="text-align: center; padding: 20px 0;">
- <button class="btns sureCun" type="button">保存</button>
- <a class="btns" id="return">取消</a>
- </p>
- </form>
- <script src="../js/jquery-ui.js"></script>
- <script src="../js/timePicker.js"></script>
- <!--<script src="../js/ajaxfileupload.js"></script>-->
- <script src="../dianXiao/js/jquery.form.min.js"></script>
- <script src="../js/bootstrap-treeview/bootstrap-treeview.min.js"></script>
- <script>
- var token = $.cookie("token");
-
- $(document).ready(function() {
- //取消
- $('#return').click(function () {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- });
-
- $.ajax({
- type:"get",
- url: huayi.config.callcenter_url + 'Customer/GetCustomerField',
- async:true,
- dataType:'json',
- data:{
- token: token,
- },
- success:function(res){
- if(res.state.toLowerCase()=='success'){
- $('.tool').html('');
- var nameList=res.data.namelist,
- headList=res.data.headlist;
- $(nameList).each(function(i,n){
- $('<div class="searchbox col-sm-3">'+
- '<div class="secon">'+
- '<b>'+headList[i] +':</b>'+
- '<p class="secl"><input type="text" class="phone" name="'+n+'"/></p>'+
- '</div>'+
- '</div>').appendTo('.tool')
-
- })
- }
-
- }
- });
-
-
-
- $('.sureCun').click(function() {
-
- $(".container-fluid")
- .attr("method", "post")
- .attr("action", huayi.config.callcenter_url + "Customer/AddCustomer")
- .attr("enctype", "multipart/form-data");
- $(".container-fluid").ajaxSubmit({
- dataType: "json",
- data: {
- // deptid: $("#department").attr('data-id'),
- token: token
- },
- success: function(res) {
- //debugger;
- if(res.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- parent.layer.msg(res.message);
- parent.initTable();
- } else {
- layer.msg(res.message);
- }
- }
- });
- })
-
-
-
- })
-
-
-
-
- </script>
- </body>
- </html>
|