提交 56f4dac8 编写于 作者: L LAPTOP-UV1MNL38\18023

Merge branch 'company_server' of https://gitee.com/doc_wei01/skyeye into company_server

...@@ -40,7 +40,6 @@ layui.config({ ...@@ -40,7 +40,6 @@ layui.config({
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("assetReportState", 'id', d.state, 'name'); return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("assetReportState", 'id', d.state, 'name');
}}, }},
{ field: 'state1', title: '入库状态', rowspan: '2', width: 90, templet: function (d) { { field: 'state1', title: '入库状态', rowspan: '2', width: 90, templet: function (d) {
// return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("assetReportState", 'id', d.state, 'name');
if (isNull(d.state)) { if (isNull(d.state)) {
return '未入库'; return '未入库';
} else { } else {
......
...@@ -10,7 +10,6 @@ layui.config({ ...@@ -10,7 +10,6 @@ layui.config({
fsTree = layui.fsTree, fsTree = layui.fsTree,
form = layui.form, form = layui.form,
table = layui.table; table = layui.table;
// tableTree = layui.tableTreeDj;
var ztree; var ztree;
var id = GetUrlParam("id"); var id = GetUrlParam("id");
var objectKey = GetUrlParam("objectKey") var objectKey = GetUrlParam("objectKey")
...@@ -20,7 +19,7 @@ layui.config({ ...@@ -20,7 +19,7 @@ layui.config({
var dropdown = new Dropdown(); var dropdown = new Dropdown();
dropdown.render(); dropdown.render();
//获取所有仓库queryAllStoreHouseList queryDepotLevelValList //获取所有仓库
/********* tree 处理 start *************/ /********* tree 处理 start *************/
fsTree.render({ fsTree.render({
id: "treeDemo", id: "treeDemo",
......
...@@ -442,6 +442,7 @@ var dsFormUtil = { ...@@ -442,6 +442,7 @@ var dsFormUtil = {
content = dsFormUtil.getContentLinkedData(content); content = dsFormUtil.getContentLinkedData(content);
} }
content.title = dsFormUtil.getLable(content); content.title = dsFormUtil.getLable(content);
content.maxLength = dsFormUtil.getMaxLength(content);
if (isNull(content.attrDefinition)) { if (isNull(content.attrDefinition)) {
content.attrDefinition = {}; content.attrDefinition = {};
} }
...@@ -598,6 +599,16 @@ var dsFormUtil = { ...@@ -598,6 +599,16 @@ var dsFormUtil = {
return content.title; return content.title;
}, },
getMaxLength: function (content) {
var attr = content.attrDefinition;
if (!isNull(attr) && !$.isEmptyObject(attr)) {
if (!isNull(attr.attrDefinitionCustom)) {
return attr.attrDefinitionCustom.maxLength;
}
}
return null;
},
// 获取属性关联的数据值来源信息 // 获取属性关联的数据值来源信息
getContentLinkedData: function (content) { getContentLinkedData: function (content) {
if (isNull(content.attrDefinition) || isNull(content.attrDefinition.attrDefinitionCustom)) { if (isNull(content.attrDefinition) || isNull(content.attrDefinition.attrDefinitionCustom)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册