From 889c51afdd70896907b744bb0754af8d62ae3dab Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 12 九月 2023 17:38:35 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/plan/plan.js | 29 +++++++++++++++++++++++++++--
1 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/static/js/plan/plan.js b/src/main/webapp/static/js/plan/plan.js
index 5997956..ec26e83 100644
--- a/src/main/webapp/static/js/plan/plan.js
+++ b/src/main/webapp/static/js/plan/plan.js
@@ -303,6 +303,7 @@
method: 'GET',
success: function (res0) {
let planType = res0.data.planType;
+ console.log(planType.html)
if (res0.code === 200) {
admin.open({
type: 1,
@@ -326,6 +327,7 @@
});
layDateRender();
form.on('submit(editSubmit)', function (data) {
+ console.log(data)
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;
@@ -486,6 +488,7 @@
autoRow: true,
filterable: true,
remoteSearch: true,
+ clickClose: true,
radio: true,
remoteMethod: function (val, cb, show) {
let loadIndex = layer.load(2);
@@ -820,6 +823,7 @@
autoRow: true,
filterable: true,
remoteSearch: true,
+ clickClose: true,
radio: true,
remoteMethod: function (val, cb, show) {
$.ajax({
@@ -848,6 +852,7 @@
autoRow: true,
filterable: true,
remoteSearch: true,
+ clickClose: true,
radio: true,
remoteMethod: function (val, cb, show) {
$.ajax({
@@ -861,11 +866,30 @@
if (res.code === 200) {
cb(res.data)
} else {
- cb([]);
+ cb([]);Query/auth
layer.msg(res.msg, {icon: 2});
}
}
});
+ },
+ on: function (data){
+ if (data.change.length > 0) {
+ let orderId = data.change[0].value;
+ $.ajax({
+ url: baseUrl + "/order/" + orderId + "/auth",
+ headers: {'token': localStorage.getItem('token')},
+ data: {},
+ method: 'GET',
+ success: function (res) {
+ if (res.code === 200) {
+ let cstmrSel = loadCstmrSel();
+ cstmrSel.setValue([{name: res.data.cstmrId$, value: res.data.cstmrId}]);
+ } else {
+ layer.msg(res.msg, {icon: 2});
+ }
+ }
+ });
+ }
}
});
}
@@ -876,6 +900,7 @@
autoRow: true,
filterable: true,
remoteSearch: true,
+ clickClose: true,
radio: true,
remoteMethod: function (val, cb, show) {
$.ajax({
@@ -914,7 +939,6 @@
method: 'POST',
success: function (res) {
if (res.code === 200) {
- console.log(planNeedXmlSelData)
planNeedXmlSel.update({
initValue: planNeedXmlSelData,
data: res.data
@@ -935,6 +959,7 @@
autoRow: true,
filterable: true,
remoteSearch: true,
+ clickClose: true,
radio: true,
remoteMethod: function (val, cb, show) {
$.ajax({
--
Gitblit v1.9.1