提交 503f1bb8 编写于 作者: X xqz

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

...@@ -39,6 +39,15 @@ layui.config({ ...@@ -39,6 +39,15 @@ layui.config({
{ field: 'state', title: '状态', align: 'center', width: 100, templet: function(d) { { field: 'state', title: '状态', align: 'center', width: 100, templet: function(d) {
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) {
// return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("assetReportState", 'id', d.state, 'name');
if (isNull(d.state)) {
return '未入库';
} else {
return '已入库';
}
}},
{ field: 'assetAdminMation', title: '管理员', width: 120, templet: function(d) { { field: 'assetAdminMation', title: '管理员', width: 120, templet: function(d) {
return getNotUndefinedVal(d.assetAdminMation?.name); return getNotUndefinedVal(d.assetAdminMation?.name);
}}, }},
...@@ -84,9 +93,9 @@ layui.config({ ...@@ -84,9 +93,9 @@ layui.config({
// 新增 // 新增
$("body").on("click", "#addBean", function() { $("body").on("click", "#addBean", function() {
_openNewWindows({ _openNewWindows({
url: "../../tpl/materialCode/materialCodeAdd.html?assetId=" + assetId, url: "../../tpl/assetReportManage/assetReportAdd.html?assetId=" + assetId,
title: systemLanguage["com.skyeye.addPageTitle"][languageType], title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "materialCodeAdd", pageId: "assetReportAdd",
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
callBack: function (refreshCode) { callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
...@@ -97,9 +106,9 @@ layui.config({ ...@@ -97,9 +106,9 @@ layui.config({
// 批量复制 // 批量复制
$("body").on("click", "#batchCopy", function() { $("body").on("click", "#batchCopy", function() {
_openNewWindows({ _openNewWindows({
url: "../../tpl/materialCode/batchCopy.html?assetId=" + assetId, url: "../../tpl/assetReportManage/batchCopy.html?assetId=" + assetId,
title: '批量复制', title: '批量复制',
pageId: "materialCodeBatchCopy", pageId: "assetReportBatchCopy",
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
callBack: function (refreshCode) { callBack: function (refreshCode) {
}}); }});
......
...@@ -52,7 +52,7 @@ layui.config({ ...@@ -52,7 +52,7 @@ layui.config({
{ field: 'unit', title: '产品规格类型', align: 'center', width: 100, templet: function (d) { { field: 'unit', title: '产品规格类型', align: 'center', width: 100, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("materialUnit", 'id', d.unit, 'name'); return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("materialUnit", 'id', d.unit, 'name');
}}, }},
{ field: 'norms', title: '库存', width: 150, templet: function (d) { { field: 'norms', title: '库存', width: 500, templet: function (d) {
var str = ""; var str = "";
$.each(d.materialNorms, function(i, item) { $.each(d.materialNorms, function(i, item) {
if (!isNull(item.overAllStock)) { if (!isNull(item.overAllStock)) {
......
...@@ -33,6 +33,7 @@ layui.config({ ...@@ -33,6 +33,7 @@ layui.config({
}}); }});
}, },
loadComponentCallback: function () { loadComponentCallback: function () {
$("div[controlType='supplier']").remove();
$("div[controlType='qualityInspectionFromType']").remove(); $("div[controlType='qualityInspectionFromType']").remove();
}, },
tableAddRowCallback: function (tableId) { tableAddRowCallback: function (tableId) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册