| | |
| | | }); |
| | | 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.planNeed = planNeedSel.getValue()[0] ? planNeedSel.getValue()[0].value : null; |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/plan/"+(mData?'update':'add')+"/auth", |
| | | url: baseUrl+"/plan/add/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: data.field, |
| | | method: 'POST', |