优化系统单据代码,更新sql

This commit is contained in:
季圣华
2020-02-20 23:39:23 +08:00
parent 195e522391
commit e7ef174f5e
3 changed files with 389 additions and 354 deletions

View File

@@ -26,27 +26,29 @@
/**
* 扩展datagrid的editors方法支持combogrid
*/
$.extend($.fn.datagrid.defaults.editors, {
combogrid: {
init: function (container, options) {
var input = $('<input type="text" style="height: 22px;" class="datagrid-editable-input">').appendTo(container);
input.combogrid(options);
return input;
},
destroy: function (target) {
$(target).combogrid('destroy');
},
getValue: function (target) {
return $(target).combogrid('getValue');
},
setValue: function (target, value) {
$(target).combogrid('setValue', value);
},
resize: function (target, width) {
$(target).combogrid('resize', width);
if($.fn.datagrid) {
$.extend($.fn.datagrid.defaults.editors, {
combogrid: {
init: function (container, options) {
var input = $('<input type="text" style="height: 22px;" class="datagrid-editable-input">').appendTo(container);
input.combogrid(options);
return input;
},
destroy: function (target) {
$(target).combogrid('destroy');
},
getValue: function (target) {
return $(target).combogrid('getValue');
},
setValue: function (target, value) {
$(target).combogrid('setValue', value);
},
resize: function (target, width) {
$(target).combogrid('resize', width);
}
}
}
});
});
}
$(function() {
domresize();

View File

@@ -192,7 +192,6 @@
if(depot.isDefault){
defDepotId = depot.id;
}
depotString = depotString + ",";
}
}
depotString = depotString.substring(0, depotString.length-1);