From 75259b538d0d6bfc9cecb7d879764c379acf4252 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期一, 21 十一月 2022 15:12:18 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/plan/plan.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/plan/plan.js b/src/main/webapp/static/js/plan/plan.js
index 2dabb60..3db4077 100644
--- a/src/main/webapp/static/js/plan/plan.js
+++ b/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',

--
Gitblit v1.9.1