From 773a718c5b50b534cf5f36e9dfa6a1bcf42e61ef Mon Sep 17 00:00:00 2001 From: wangjiuyun <1595161655@qq.com> Date: Wed, 21 May 2025 10:45:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/manage/delivery/add.html | 64 +++++++++-------- .../templates/manage/delivery/edit.html | 63 +++++++++-------- .../templates/manage/delivery/import.html | 3 +- .../resources/templates/manage/order/add.html | 39 +++++++---- .../templates/manage/order/edit.html | 40 +++++++---- .../templates/manage/order/selectAgent.html | 65 +++++++++++++---- .../manage/order/selectCustomer.html | 68 ++++++++++++++---- .../templates/manage/order/selectPartner.html | 70 +++++++++++++++---- .../templates/system/customer/info.html | 8 --- 9 files changed, 288 insertions(+), 132 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/manage/delivery/add.html b/ruoyi-admin/src/main/resources/templates/manage/delivery/add.html index f5a95e37..4fe44d35 100644 --- a/ruoyi-admin/src/main/resources/templates/manage/delivery/add.html +++ b/ruoyi-admin/src/main/resources/templates/manage/delivery/add.html @@ -3,6 +3,11 @@ +
@@ -23,7 +28,7 @@
- +
@@ -52,42 +57,45 @@
- + +
- +
- -
-
-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
-
-
- -
- +
+ + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/ruoyi-admin/src/main/resources/templates/manage/delivery/edit.html b/ruoyi-admin/src/main/resources/templates/manage/delivery/edit.html index f3924483..7f7adba7 100644 --- a/ruoyi-admin/src/main/resources/templates/manage/delivery/edit.html +++ b/ruoyi-admin/src/main/resources/templates/manage/delivery/edit.html @@ -3,6 +3,11 @@ +
@@ -24,7 +29,7 @@
- +
@@ -53,42 +58,44 @@
- +
- +
- -
-
-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
-
-
- -
- +
+ + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/ruoyi-admin/src/main/resources/templates/manage/delivery/import.html b/ruoyi-admin/src/main/resources/templates/manage/delivery/import.html index 859335b4..0e0444ba 100644 --- a/ruoyi-admin/src/main/resources/templates/manage/delivery/import.html +++ b/ruoyi-admin/src/main/resources/templates/manage/delivery/import.html @@ -3,6 +3,7 @@ +
@@ -83,7 +84,7 @@ url: prefix + "/list", $.modal.loading("正在下载,请稍候..."); $.post( prefix + "/export", {deliveryId:-1,productCode:'',serialNumber:''}, function(result) { if (result.code == web_status.SUCCESS) { - window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true; + window.location.href = ctx + "common/download?fileName=" +encodeURI(result.msg) + "&delete=" + true; } else if (result.code == web_status.WARNING) { $.modal.alertWarning(result.msg) } else { diff --git a/ruoyi-admin/src/main/resources/templates/manage/order/add.html b/ruoyi-admin/src/main/resources/templates/manage/order/add.html index eeca5a60..81d04235 100644 --- a/ruoyi-admin/src/main/resources/templates/manage/order/add.html +++ b/ruoyi-admin/src/main/resources/templates/manage/order/add.html @@ -100,10 +100,10 @@
- +
- @@ -114,9 +114,9 @@
- +
- +
@@ -255,7 +255,7 @@ title: '折扣', width: 70, formatter: function (value, row, index) { - var html = $.common.sprintf("", index, value); + var html = $.common.sprintf("", index, value); return html; } }, @@ -314,6 +314,7 @@ title: '选择客户', width: "680", url: url, + height:'600', callBack: doSubmitCustomer }; $.modal.openOptions(options); @@ -325,6 +326,7 @@ title: '选择代表处', width: "680", url: url, + height:'600', callBack: doSubmitAgent }; $.modal.openOptions(options); @@ -335,6 +337,7 @@ var options = { title: '选择代理商', width: "680", + height:'600', url: url, callBack: doSubmitPartner }; @@ -384,18 +387,21 @@ } function downloadTem() { + var xhr = new XMLHttpRequest(); // 创建XMLHttpRequest对象 + xhr.open('post', prefix + '/list/export', true); // 设置请求类型和URL + // 当请求完成时执行的回调函数 $.modal.loading("正在下载,请稍候..."); - $.post(prefix + "/list/export", {}, function (result) { - if (result.code == web_status.SUCCESS) { - window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true; - } else if (result.code == web_status.WARNING) { - $.modal.alertWarning(result.msg) - } else { - $.modal.alertError(result.msg); - } + xhr.onload = function (data) { + const url = window.URL.createObjectURL(data.currentTarget.response) + const a=document.createElement('a') + a.href= url + a.download='合同清单模板.xlsx' + document.append(a) + a.click() + a.remove() $.modal.closeLoading(); - }) - + } + xhr.send(); } document.getElementById('uploadInput').addEventListener('change', function (event) { @@ -445,6 +451,9 @@ let res = Number((price * quantity * discount).toFixed(2)) $(ele).parent().parent().find('.amount').val(res) } + $('[name="versionCode"]').on('focus',function (){ + $(this).blur() + }) \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/manage/order/edit.html b/ruoyi-admin/src/main/resources/templates/manage/order/edit.html index ab1d45ac..e1ed2577 100644 --- a/ruoyi-admin/src/main/resources/templates/manage/order/edit.html +++ b/ruoyi-admin/src/main/resources/templates/manage/order/edit.html @@ -107,7 +107,7 @@
- @@ -119,8 +119,9 @@
- + +
@@ -206,6 +207,8 @@ title: '选择客户', width: "680", url: url, + height:'600', + callBack: doSubmitCustomer }; $.modal.openOptions(options); @@ -217,6 +220,8 @@ title: '选择代表处', width: "680", url: url, + height:'600', + callBack: doSubmitAgent }; $.modal.openOptions(options); @@ -228,6 +233,8 @@ title: '选择代理商', width: "680", url: url, + height:'600', + callBack: doSubmitPartner }; $.modal.openOptions(options); @@ -317,17 +324,21 @@ }); function downloadTem() { + var xhr = new XMLHttpRequest(); // 创建XMLHttpRequest对象 + xhr.open('post', prefix + '/list/export', true); // 设置请求类型和URL + // 当请求完成时执行的回调函数 $.modal.loading("正在下载,请稍候..."); - $.post(prefix + "/list/export", {}, function (result) { - if (result.code == web_status.SUCCESS) { - window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true; - } else if (result.code == web_status.WARNING) { - $.modal.alertWarning(result.msg) - } else { - $.modal.alertError(result.msg); - } + xhr.onload = function (data) { + const url = window.URL.createObjectURL(data.currentTarget.response) + const a=document.createElement('a') + a.href= url + a.download='合同清单模板.xlsx' + document.append(a) + a.click() + a.remove() $.modal.closeLoading(); - }) + } + xhr.send(); } @@ -411,7 +422,7 @@ align: 'center', title: '折扣', formatter: function (value, row, index) { - var html = $.common.sprintf("", index, value); + var html = $.common.sprintf("", index, value); return html; } }, @@ -444,6 +455,9 @@ $(this).blur() }) } + $('[name="versionCode"]').on('focus',function (){ + $(this).blur() + }) \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/manage/order/selectAgent.html b/ruoyi-admin/src/main/resources/templates/manage/order/selectAgent.html index 82a9448f..e100e20f 100644 --- a/ruoyi-admin/src/main/resources/templates/manage/order/selectAgent.html +++ b/ruoyi-admin/src/main/resources/templates/manage/order/selectAgent.html @@ -1,26 +1,64 @@ - + - -
-
+ + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ +
+ +
+
+
- + +