中扬CRM客户关系管理系统
#
luxiaotao1123
2022-11-21 75259b538d0d6bfc9cecb7d879764c379acf4252
src/main/webapp/static/js/plan/plan.js
@@ -245,12 +245,14 @@
                                                    });
                                                    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',