优化单据显示,自适应

This commit is contained in:
季圣华
2019-09-14 10:43:17 +08:00
parent 9247e77398
commit edc5404dae
83 changed files with 1151 additions and 498 deletions

View File

@@ -1,6 +1,3 @@
/*
* http://jeesite.com
*/
.main-header .navbar {
background-color: #1890ff;
}

View File

@@ -47,9 +47,10 @@
}
}
function dgResize() {
var searchTabHeight = $('#searchTable').height();
$('#tableData').datagrid('resize', {
width: $(window).width() - 6,
height: $(window).height() - 76
height: $(window).height() - searchTabHeight -46
});
}
$(window).resize(function () {

View File

@@ -7,7 +7,7 @@
* $('#inputForm').submit(function(){
* $('#password').val(DesUtils.encode($('#password').val(), '1,2,3'));
* });
* @author ThinkGem
* @author jishenghua
*/
(function() {

View File

@@ -1,9 +1,8 @@
/*!
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
*
* 国际化文件
* @author ThinkGem
* @version 2017-12-24
* Copyright (c) 2013-Now 华夏erp All rights reserved.
*
* @author jishenghua
* @version 2019-09-14
*/
(function (a) {
window.js = window.js || {};

View File

@@ -1,12 +1,12 @@
/*!
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* Copyright (c) 2013-Now 华夏ERP All rights reserved.
*
* 通用公共JavaScript注意项目请不要修改公共CSS样式若需要新增或调整请在common.js中覆盖
* @author ThinkGem
* @version 2019-7-10
* @author jishenghua
* @version 2019-9-14
*/
if (typeof jQuery === "undefined") {
throw new Error("JeeSite's JavaScript requires jQuery")
throw new Error("JSHERP's JavaScript requires jQuery")
}
(function($, window, undefined) {
parent.$("iframe.ui-layout-content").each(function() {

View File

@@ -80,7 +80,7 @@
disabledClass: _disabled,
indeterminateClass: _indeterminate,
// ThinkGem add default style.
// jishenghua add default style.
checkboxClass: 'icheckbox_minimal-grey',
radioClass: 'iradio_minimal-grey',

View File

@@ -4,7 +4,7 @@
* Copyright (c) 2010 - 2015 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.2.3-5
* @ThinkGem 新增money千分位格式别名举例如下
* @jishenghua 新增money千分位格式别名举例如下
* $(".moneyMask").inputmask({alias:"money"}); // 金额数据格式(初始化完成表单后调用)
* $('.moneyMask').inputmask('remove'); // 金额数据格式化恢复(表单提交之前调用)
*/
@@ -2426,7 +2426,7 @@
digitsOptional: !1,
clearMaskOnLostFocus: !1
},
// ThinkGem 2015-10-14
// jishenghua 2015-10-14
money: {
prefix: "",
groupSeparator: ",",

View File

@@ -460,7 +460,7 @@
}
}
hideBar(); // ThinkGem 初始化完成滚动条自动隐藏
hideBar(); // jishenghua 初始化完成滚动条自动隐藏
});

View File

@@ -3820,13 +3820,13 @@
})(jQuery);
/*
* 扩展方法 ThinkGem
* 扩展方法 jishenghua
*/
(function($){
$.extend(true, $.fn.zTree, {
/**
* 根据级别展开节点(如果级别设置为-1如果有1个根节点则展开一级节点否则不展开
* ThinkGem 2018-3-7
* jishenghua 2018-3-7
*/
expandNodeByLevel: function(tree, expandLevel){
if (!tree){

View File

@@ -212,7 +212,7 @@ jQuery.extend = jQuery.fn.extend = function() {
// Prevent never-ending loop
// if ( target === copy ) {
if (name === "__proto__" || target === copy) { // 修复jQuery原型污染漏洞 ThinkGem
if (name === "__proto__" || target === copy) { // 修复jQuery原型污染漏洞 jishenghua
continue;
}

View File

@@ -15,7 +15,7 @@ var isLayui = window.layui && layui.define, $, win, ready = {
}(),
config: {}, end: {}, minIndex: 0, minLeft: [],
//btn: [layer.i18n.btnOk, layer.i18n.btnCancel], // ThinkGem
//btn: [layer.i18n.btnOk, layer.i18n.btnCancel], // jishenghua
//五种原始层模式
type: ['dialog', 'page', 'iframe', 'loading', 'tips']
@@ -24,7 +24,7 @@ var isLayui = window.layui && layui.define, $, win, ready = {
//默认内置方法。
var layer = {
v: '3.0.3',
i18n: { // ThinkGem 国际化支持
i18n: { // jishenghua 国际化支持
btnOk: '确定',
btnCancel: '取消',
title: '信息',
@@ -231,7 +231,7 @@ Class.pt.vessel = function(conType, callback){
+ (config.type == 1 && conType ? '' : (config.content||''))
+ '</div>'
+ '<span class="layui-layer-setwin">'+ function(){
var closebtn = ismax && config.title ? '<a class="layui-layer-min" href="javascript:;"><cite></cite></a>' : ''; // ThinkGem 必须有标题的清空下才能最小化
var closebtn = ismax && config.title ? '<a class="layui-layer-min" href="javascript:;"><cite></cite></a>' : ''; // jishenghua 必须有标题的清空下才能最小化
closebtn += ismax ? '<a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>' : '';
config.closeBtn && (closebtn += '<a class="layui-layer-ico '+ doms[7] +' '+ doms[7] + (config.title ? config.closeBtn : (config.type == 4 ? '1' : '2')) +'" href="javascript:;"></a>');
return closebtn;
@@ -276,8 +276,8 @@ Class.pt.creat = function(){
switch(config.type){
case 0:
//config.btn = ('btn' in config) ? config.btn : ready.btn[0]; ThinkGem
config.btn = ('btn' in config) ? config.btn : layer.i18n.btnOk;// ThinkGem
//config.btn = ('btn' in config) ? config.btn : ready.btn[0]; jishenghua
config.btn = ('btn' in config) ? config.btn : layer.i18n.btnOk;// jishenghua
layer.closeAll('dialog');
break;
case 2:
@@ -286,7 +286,7 @@ Class.pt.creat = function(){
// + doms[4] +''+ times +'" name="'+ doms[4] +''+ times
// +'" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="'
// + config.content[0] + '"></iframe>';
// 2017-5-13 ThinkGem 支持post方式提交iframe
// 2017-5-13 jishenghua 支持post方式提交iframe
config.content = '<iframe scrolling="'+ (config.content[1]||'auto') +'" allowtransparency="true" id="'
+ doms[4] +''+ times +'" name="'+ doms[4] +''+ times
+ '" onload="this.className=\'\';" class="layui-layer-load" frameborder="0"></iframe><form id="'
@@ -327,9 +327,9 @@ Class.pt.creat = function(){
config.scrollbar || doms.html.css('overflow', 'hidden').attr('layer-full', times);
}).auto(times);
//config.type == 2 && layer.ie == 6 && that.layero.find('iframe').attr('src', content[0]); // ThinkGem 不需要ie6
//config.type == 2 && layer.ie == 6 && that.layero.find('iframe').attr('src', content[0]); // jishenghua 不需要ie6
// 2017-5-13 ThinkGem 支持post方式提交iframe
// 2017-5-13 jishenghua 支持post方式提交iframe
if (config.type == 2){
var form = that.layero.find('#' + doms[4] + '-form' + times), formData = config.contentFormData;
for(var key in formData || {}){
@@ -454,7 +454,7 @@ Class.pt.offset = function(){
that.offsetLeft = layero.css('left');
}
that.offsetTop = that.offsetTop>0?that.offsetTop:0; // 2017-5-8 ThinkGem Top值不小于0
that.offsetTop = that.offsetTop>0?that.offsetTop:0; // 2017-5-8 jishenghua Top值不小于0
layero.css({top: that.offsetTop, left: that.offsetLeft});
};
@@ -639,10 +639,10 @@ Class.pt.callback = function(){
if(index === 0){
if(config.yes){
var close = config.yes(that.index, layero);
close === false || layer.close(that.index); // 2017-3-31 ThinkGem 添加返回值如果是false则关闭窗口
close === false || layer.close(that.index); // 2017-3-31 jishenghua 添加返回值如果是false则关闭窗口
} else if(config['btn1']){
var close = config['btn1'](that.index, layero);
close === false || layer.close(that.index); // 2017-3-31 ThinkGem 添加返回值如果是false则关闭窗口
close === false || layer.close(that.index); // 2017-3-31 jishenghua 添加返回值如果是false则关闭窗口
} else {
layer.close(that.index);
}
@@ -755,7 +755,7 @@ ready.rescollbar = function(index){
window.layer = layer;
//获取当前对话框所在窗口的jQuery对象和Window对象 ThinkGem
//获取当前对话框所在窗口的jQuery对象和Window对象 jishenghua
layer.$ = layer.jQuery = jQuery;
layer.window = window;
@@ -786,7 +786,7 @@ layer.iframeSrc = function(index, url){
$('#'+ doms[0] + index).find('iframe').attr('src', url);
};
//返回当前layer的iframe对象的window对象 ThinkGem
//返回当前layer的iframe对象的window对象 jishenghua
layer.iframeWindow = function(index){
var ifr = $('#'+ doms[0] + index).find('iframe');
if (ifr.length > 0){

View File

@@ -180,7 +180,7 @@ html #layuicss-skinlayercss{display: none; position: absolute; width: 1989px;}
.layui-layer-iframe{overflow-y: auto; -webkit-overflow-scrolling: touch;}
}
/* ThinkGem */
/* jishenghua */
.layui-layer-title {font-weight:bold;font-size:15px;background:#fff;height:45px;line-height:45px;}
.layui-layer-page .layui-layer-content {overflow-x:hidden;}
.layui-layer-page .layui-layer-content .form-file{padding-top:4px;}

View File

@@ -1,6 +1,6 @@
/*!
* 消息推送实现
* @author ThinkGem
* @author jishenghua
*/
$(function () {
unreadMsg()

View File

@@ -1,7 +1,7 @@
/*!
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* @author ThinkGem
* @version 2019-2-16
* Copyright (c) 2013-Now 华夏erp All rights reserved.
* @author jishenghua
* @version 2019-09-14
*/
.fixed .main-header {
position: relative;

View File

@@ -1,10 +1,10 @@
if (self.frameElement && self.frameElement.tagName == "IFRAME") {
top.location.reload();
/*!
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* Copyright (c) 2013-Now 华夏erp All rights reserved.
*
* @author ThinkGem
* @version 2019-1-6
* @author jishenghua
* @version 2019-09-14
*/
}
+function (d) {

View File

@@ -1,7 +1,7 @@
/*!
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* @author ThinkGem
* @version 2019-2-16
* Copyright (c) 2013-Now 华夏erp All rights reserved.
* @author jishenghua
* @version 2019-09-14
*/
.login-page {
background: #e3e7ec

View File

@@ -1,8 +1,8 @@
/*!
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
*
* @author ThinkGem
* @version 2019-1-6
* Copyright (c) 2013-Now 华夏erp All rights reserved.
*
* @author jishenghua
* @version 2019-09-14
*/
$("#username, #password").on("focus blur", function () {
var a = this;

View File

@@ -1,7 +1,7 @@
/*!
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
* @author ThinkGem
* @version 2019-2-16
* Copyright (c) 2013-Now 华夏erp All rights reserved.
* @author jishenghua
* @version 2019-09-14
*/
.register-page {
background: #e3e7ec

View File

@@ -277,6 +277,7 @@
return;
}
});
dgResize();
}
//初始化表格数据-明细列表-编辑状态

View File

@@ -138,6 +138,7 @@
return;
}
});
dgResize();
showSupplierDetails(1,initPageSize);
}

View File

@@ -561,6 +561,7 @@
return;
}
});
dgResize();
}
//查找库存的方法
@@ -1299,9 +1300,9 @@
} else {
sessionStorage.setItem("rowInfo", rowInfo); //将单据信息存入缓存中
if(listTitle == "采购订单列表") {
parent.addTab("订单转采购", "../materials/purchase_in_list.html?t=skip", "");
js.addTabPage(null, "订单转采购", "/pages/materials/purchase_in_list.html?t=skip");
} else if(listTitle == "销售订单列表") {
parent.addTab("订单转销售", "../materials/sale_out_list.html?t=skip", "");
js.addTabPage(null, "订单转销售", "/pages/materials/sale_out_list.html?t=skip");
}
}
}

View File

@@ -4461,7 +4461,7 @@ S2.define('select2/dropdown/closeOnSelect',[
return CloseOnSelect;
});
// ThinkGem 默认为中文
// jishenghua 默认为中文
S2.define('select2/i18n/en',[],function () {
// English
return {
@@ -4884,7 +4884,7 @@ S2.define('select2/defaults',[
return selection.text;
},
theme: 'default',
width: '100%' // ThinkGem 宽度自适应 'resolve'
width: '100%' // jishenghua 宽度自适应 'resolve'
};
};
@@ -5310,7 +5310,7 @@ S2.define('select2/core',[
this.on('close', function () {
self.$container.removeClass('select2-container--open');
self.$selection.focus(); // ThinkGem 修正选择后焦点丢失
self.$selection.focus(); // jishenghua 修正选择后焦点丢失
});
this.on('enable', function () {
@@ -5374,7 +5374,7 @@ S2.define('select2/core',[
evt.preventDefault();
}
} else {
if (/*key === KEYS.ENTER || */key === KEYS.SPACE || // ThinkGem 去掉回车后打开下拉框解决jqgrid回车获取下一个输入框按键冲突
if (/*key === KEYS.ENTER || */key === KEYS.SPACE || // jishenghua 去掉回车后打开下拉框解决jqgrid回车获取下一个输入框按键冲突
(key === KEYS.DOWN && evt.altKey)) {
self.open();

View File

@@ -4461,7 +4461,7 @@ S2.define('select2/dropdown/closeOnSelect',[
return CloseOnSelect;
});
//ThinkGem 默认为中文
//jishenghua 默认为中文
S2.define('select2/i18n/en',[],function () {
// English
return {
@@ -4884,7 +4884,7 @@ S2.define('select2/defaults',[
return selection.text;
},
theme: 'default',
width: '100%' // ThinkGem 宽度自适应 'resolve'
width: '100%' // jishenghua 宽度自适应 'resolve'
};
};
@@ -5310,7 +5310,7 @@ S2.define('select2/core',[
this.on('close', function () {
self.$container.removeClass('select2-container--open');
self.$selection.focus(); // ThinkGem 修正选择后焦点丢失
self.$selection.focus(); // jishenghua 修正选择后焦点丢失
});
this.on('enable', function () {
@@ -5374,7 +5374,7 @@ S2.define('select2/core',[
evt.preventDefault();
}
} else {
if (/*key === KEYS.ENTER || */key === KEYS.SPACE || // ThinkGem 去掉回车后打开下拉框解决jqgrid回车获取下一个输入框按键冲突
if (/*key === KEYS.ENTER || */key === KEYS.SPACE || // jishenghua 去掉回车后打开下拉框解决jqgrid回车获取下一个输入框按键冲突
(key === KEYS.DOWN && evt.altKey)) {
self.open();

View File

@@ -1,40 +1,126 @@
<!DOCTYPE html>
<!-- saved from url=(0049)http://demo.jeesite.com/js/static/upbw/index.html -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>请升级您的浏览器</title><meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="renderer" content="webkit"><!--<base target="_blank">--><base href="." target="_blank"><style type="text/css">
a{text-decoration:none;color:#0072c6;}a:hover{text-decoration:none;color:#004d8c;}
body{width:960px;margin:0 auto;padding:10px;font-size:14px;line-height:24px;color:#454545;font-family:'Microsoft YaHei UI','Microsoft YaHei',DengXian,SimSun,'Segoe UI',Tahoma,Helvetica,sans-serif;}
h1{font-size:30px;line-height:80px;font-weight:100;margin-bottom:10px;}
h2{font-size:20px;line-height:25px;font-weight:100;margin:10px 0;}
p{margin-bottom:10px;font-size:16px;}
hr{margin:20px 0;border:0;border-top:1px solid #dadada}
img{width:34px;height:34px;border:0;float:left;margin-right:10px;}
span{display:block;font-size:12px;line-height:12px;}
.browser{padding:10px 0;}
.browser li{width:180px;height:34px;line-height:22px;float:left;list-style:none;padding-left:25px}
.clean{clear:both;}
</style></head><body>
<h1>浏览器版本过低,是时候升级您的浏览器了</h1>
<p>您正在使用 Internet Explorer 的过期版本IE6、IE7、IE8、IE9 内核的浏览器)。这意味着在升级浏览器前,您将无法继续访问。</p>
<hr>
<h2>为什么会出现这个页面?</h2>
<p>如果您不知道升级浏览器是什么意思请请教一些熟练电脑操作的朋友。如果您使用的不是IE6/7/8而是360、QQ、搜狗等双核浏览器出现这个页面可能是您切换到了兼容模式<strong style="color:#f00;">切换到极速模式</strong>下,如果还不行请升级至最新版浏览器。</p>
<hr>
<h2>请注意微软Microsoft对 Windows XP 及 IE6、IE7、IE8、IE9 的支持已经结束</h2>
<p>自 2014 年 4 月 8 日起微软Microsoft不再为 Windows XP 和 Internet Explorer 8 及以下版本提供相应支持和更新。如果您继续使用这些,您将可能受到病毒、间谍软件和其他恶意软件的攻击,无法确保个人信息的安全。请参阅 <a href="http://windows.microsoft.com/zh-cn/windows/end-support-help">Microsoft 关于 Windows XP 支持已经结束的说明</a></p>
<hr>
<h2>您可以选择更先进的浏览器</h2>
<p>推荐使用以下浏览器的最新版本。如果您的电脑已有以下浏览器的最新版本则直接使用该浏览器访问 <b id="url"><a href="http://demo.jeesite.com/js">http://demo.jeesite.com/js</a>&nbsp;</b>即可。</p>
<div class="browser"><ul>
<li><img src="./index_files/chrome360.jpg"><a href="http://chrome.360.cn/"> 360极速浏览器<span>360 Chrome</span></a></li>
<li><img src="./index_files/chrome.jpg"><a href="http://www.google.cn/intl/zh-CN/chrome/browser/desktop/index.html"> 谷歌浏览器<span>Google Chrome</span></a></li>
<li><img src="./index_files/firefox.jpg"><a href="http://www.firefox.com.cn/download/"> 火狐浏览器<span>Mozilla Firefox</span></a></li>
<li><img src="./index_files/ie.jpg"><a href="http://windows.microsoft.com/zh-cn/internet-explorer/download-ie"> IE 11 浏览器<span>Internet Explorer</span></a></li>
</ul><div class="clean"></div></div>
<hr><br>
<script>
var url = location.href; url = url.substring(0, url.indexOf('/static/upbw'));
document.getElementById("url").innerHTML = '<a href="' + url + '">' + url + '</a>&nbsp;';
</script>
</body></html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>请升级您的浏览器</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="renderer" content="webkit"><!--<base target="_blank">-->
<base href="." target="_blank">
<style type="text/css">
a {
text-decoration: none;
color: #0072c6;
}
a:hover {
text-decoration: none;
color: #004d8c;
}
body {
width: 960px;
margin: 0 auto;
padding: 10px;
font-size: 14px;
line-height: 24px;
color: #454545;
font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', DengXian, SimSun, 'Segoe UI', Tahoma, Helvetica, sans-serif;
}
h1 {
font-size: 30px;
line-height: 80px;
font-weight: 100;
margin-bottom: 10px;
}
h2 {
font-size: 20px;
line-height: 25px;
font-weight: 100;
margin: 10px 0;
}
p {
margin-bottom: 10px;
font-size: 16px;
}
hr {
margin: 20px 0;
border: 0;
border-top: 1px solid #dadada
}
img {
width: 34px;
height: 34px;
border: 0;
float: left;
margin-right: 10px;
}
span {
display: block;
font-size: 12px;
line-height: 12px;
}
.browser {
padding: 10px 0;
}
.browser li {
width: 180px;
height: 34px;
line-height: 22px;
float: left;
list-style: none;
padding-left: 25px
}
.clean {
clear: both;
}
</style>
</head>
<body>
<h1>浏览器版本过低,是时候升级您的浏览器了</h1>
<p>您正在使用 Internet Explorer 的过期版本IE6、IE7、IE8、IE9 内核的浏览器)。这意味着在升级浏览器前,您将无法继续访问。</p>
<hr>
<h2>为什么会出现这个页面?</h2>
<p>如果您不知道升级浏览器是什么意思请请教一些熟练电脑操作的朋友。如果您使用的不是IE6/7/8而是360、QQ、搜狗等双核浏览器出现这个页面可能是您切换到了兼容模式<strong style="color:#f00;">切换到极速模式</strong>下,如果还不行请升级至最新版浏览器。
</p>
<hr>
<h2>请注意微软Microsoft对 Windows XP 及 IE6、IE7、IE8、IE9 的支持已经结束</h2>
<p>自 2014 年 4 月 8 日起微软Microsoft不再为 Windows XP 和 Internet Explorer 8
及以下版本提供相应支持和更新。如果您继续使用这些,您将可能受到病毒、间谍软件和其他恶意软件的攻击,无法确保个人信息的安全。请参阅 <a
href="http://windows.microsoft.com/zh-cn/windows/end-support-help">Microsoft 关于 Windows XP 支持已经结束的说明</a>
</p>
<hr>
<h2>您可以选择更先进的浏览器</h2>
<p>推荐使用以下浏览器的最新版本。如果您的电脑已有以下浏览器的最新版本则直接使用该浏览器访问 <b id="url"><a href="https://www.huaxiaerp.com/">https://www.huaxiaerp.com/</a>&nbsp;</b>即可。
</p>
<div class="browser">
<ul>
<li><img src="./index_files/chrome360.jpg"><a href="http://chrome.360.cn/"> 360极速浏览器<span>360 Chrome</span></a>
</li>
<li><img src="./index_files/chrome.jpg"><a
href="http://www.google.cn/intl/zh-CN/chrome/browser/desktop/index.html">
谷歌浏览器<span>Google Chrome</span></a></li>
<li><img src="./index_files/firefox.jpg"><a href="http://www.firefox.com.cn/download/"> 火狐浏览器<span>Mozilla Firefox</span></a>
</li>
<li><img src="./index_files/ie.jpg"><a href="http://windows.microsoft.com/zh-cn/internet-explorer/download-ie">
IE 11 浏览器<span>Internet Explorer</span></a></li>
</ul>
<div class="clean"></div>
</div>
<hr>
<br>
<script>
var url = location.href;
url = url.substring(0, url.indexOf('/static/upbw'));
document.getElementById("url").innerHTML = '<a href="' + url + '">' + url + '</a>&nbsp;';
</script>
</body>
</html>

View File

@@ -1,6 +1,6 @@
/*!
* 首页Tab页签通用方法
* @author ThinkGem
* @author jishenghua
* @version 2017-3-26
*/
(function (b) {

File diff suppressed because one or more lines are too long