| | |
| | | plan['planTypeName'] = plan.planType$; |
| | | form.val('detail', plan); |
| | | form.on('submit(editSubmit)', function (data) { |
| | | console.log(data) |
| | | 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; |
| | | |
| | | delete data.field.select;delete data.field.planTypeName; |
| | | |
| | | 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; |
| | | } |
| | | let loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/plan/update/auth", |