|  |  | 
 |  |  |                                     method: 'GET', | 
 |  |  |                                     success: function (res0) { | 
 |  |  |                                         let planType = res0.data; | 
 |  |  |                                         console.log(planType); | 
 |  |  |                                         if (res0.code === 200) { | 
 |  |  |                                             admin.open({ | 
 |  |  |                                                 type: 1, | 
 |  |  | 
 |  |  |                                                 title: '添加售前规划申请单' + ' - ' + planType.name, | 
 |  |  |                                                 content: $('#editDialog').html(), | 
 |  |  |                                                 success: function (layero0, dIndex0) { | 
 |  |  |                                                     $('#customizeBox').html(planType.html) | 
 |  |  |  | 
 |  |  |                                                     layer.close(loadIndex0); | 
 |  |  |                                                     let orderSel = loadOrderSel(); | 
 |  |  |                                                     let cstmrSel = loadCstmrSel(); | 
 |  |  | 
 |  |  |                                                     }); | 
 |  |  |                                                     layDateRender(); | 
 |  |  |                                                     form.on('submit(editSubmit)', function (data) { | 
 |  |  |                                                         console.log(data.field); | 
 |  |  |                                                         data.field.planType = planType.id; | 
 |  |  |                                                         data.field.orderId = orderSel.getValue()[0] ? orderSel.getValue()[0].value : null; | 
 |  |  |                                                         data.field.cstmrId = cstmrSel.getValue()[0] ? cstmrSel.getValue()[0].value : null; | 
 |  |  |                                                         data.field.userId = userSel.getValue()[0] ? userSel.getValue()[0].value : null; | 
 |  |  |                                                         data.field.planNeed = planNeedSel.getValue()[0] ? planNeedSel.getValue()[0].value : null; | 
 |  |  |                                                         if (!data.field.orderId) { | 
 |  |  |                                                             layer.msg("跟踪项目不能为空", {icon: 2}); | 
 |  |  |                                                             top.requireTip($('#orderXmlSel')); | 
 |  |  |                                                             return false; | 
 |  |  |                                                         } | 
 |  |  |                                                         if (!data.field.cstmrId) { | 
 |  |  |                                                             layer.msg("客户名称不能为空", {icon: 2}); | 
 |  |  |                                                             top.requireTip($('#cstmrXmlSel')); | 
 |  |  |                                                             return false; | 
 |  |  |                                                         } | 
 |  |  |                                                         var loadIndex = layer.load(2); | 
 |  |  |                                                         $.ajax({ | 
 |  |  |                                                             url: baseUrl+"/plan/add/auth", |