Browse Source

巡檢結果資料維護 畫面修正

PTD
Yiru 1 year ago
parent
commit
dc4212f92d
  1. 4
      AMESCoreStudio.Web/Views/SPC/SPC005C.cshtml
  2. 21
      AMESCoreStudio.Web/Views/SPC/SPC005U.cshtml

4
AMESCoreStudio.Web/Views/SPC/SPC005C.cshtml

@ -553,7 +553,7 @@
cols: [[ cols: [[
{ field: 'inspectionItemID', width: 50, title: '#', }, { field: 'inspectionItemID', width: 50, title: '#', },
{ field: 'inspectionItemName', title: '項目', align: 'left' }, { field: 'inspectionItemName', title: '項目', align: 'left' },
{ field: 'inspectionItemValue', width: 80, title: '標準值', align: 'left' }, { field: 'inspectionItemValue', width: 100, title: '標準值', align: 'left' },
{ field: 'inspectionResult', title: '稽核結果', width: 100, align: "left", templet: '#selectResult' }, { field: 'inspectionResult', title: '稽核結果', width: 100, align: "left", templet: '#selectResult' },
{ field: 'line', title: '線別', width: 100, align: "left", templet: '#selectLine', style: 'display:none' }, { field: 'line', title: '線別', width: 100, align: "left", templet: '#selectLine', style: 'display:none' },
{ field: 'station', title: '站別', width: 100, align: "left", templet: '#selectStation', style: 'display:none' }, { field: 'station', title: '站別', width: 100, align: "left", templet: '#selectStation', style: 'display:none' },
@ -718,7 +718,7 @@
} }
}, },
error: function (result) { error: function (result) {
alert(`呼叫API失敗`); alert('呼叫API失敗');
} }
}); });
} }

21
AMESCoreStudio.Web/Views/SPC/SPC005U.cshtml

@ -16,11 +16,12 @@
margin-left: -10px; margin-left: -10px;
margin-right: -10px; margin-right: -10px;
} }
.layui-table-cell { .layui-table-cell {
height:auto; height: auto;
overflow:visible; overflow: visible;
text-overflow:inherit; text-overflow: inherit;
white-space:normal white-space: normal
} }
</style> </style>
<div class="layui-card"> <div class="layui-card">
@ -146,7 +147,7 @@
</script> </script>
@*備註*@ @*備註*@
<script type="text/html" id="inputTest"> <script type="text/html" id="inputTest">
<input type="text" name="inputTest" lay-filter="inputTest" id="inputTest" data-value={{d.missingRemark}} class="layui-input" style=" margin-top: -10px; margin-left: -10px; margin-right: -10px;"> <input type="text" name="inputTest" lay-filter="inputTest" id="inputTest" data-value="{{d.missingRemark}}" class="layui-input" style=" margin-top: -10px; margin-left: -10px; margin-right: -10px;">
</script> </script>
@*線別*@ @*線別*@
<script type="text/html" id="selectLine"> <script type="text/html" id="selectLine">
@ -160,7 +161,7 @@
</script> </script>
@*插件位置*@ @*插件位置*@
<script type="text/html" id="inputLocation"> <script type="text/html" id="inputLocation">
<input type="text" name="inputLocation" lay-filter="inputLocation" id="inputLocation" data-value={{d.location}} class="layui-input" style=" margin-top: -10px; margin-left: -10px; margin-right: -10px;"> <input type="text" name="inputLocation" lay-filter="inputLocation" id="inputLocation" data-value="{{d.location}}" class="layui-input" style=" margin-top: -10px; margin-left: -10px; margin-right: -10px;">
</script> </script>
@*缺失單位*@ @*缺失單位*@
<script type="text/html" id="selectDept"> <script type="text/html" id="selectDept">
@ -180,7 +181,7 @@
<script type="text/html" id="selectUser"> <script type="text/html" id="selectUser">
<input type="text" name="selectUser" lay-filter="selectUser" id="selectUser" data-value={{d.missingUserID}} class="layui-input" style=" margin-top: -10px; margin-left: -10px; margin-right: -10px;"> <input type="text" name="selectUser" lay-filter="selectUser" id="selectUser" data-value={{d.missingUserID}} class="layui-input" style=" margin-top: -10px; margin-left: -10px; margin-right: -10px;">
</script>*@ </script>*@
<script type="text/javascript"> <script type="text/javascript">
////儲存 ////儲存
$('#querysubmit').click(function () { $('#querysubmit').click(function () {
var WipNo = $("#WipNo").val(); var WipNo = $("#WipNo").val();
@ -367,6 +368,7 @@
{ {
field: 'inspectionItem', field: 'inspectionItem',
title: '項目', title: '項目',
width: 250,
align: 'left', align: 'left',
sort: true, sort: true,
templet: function (d) { templet: function (d) {
@ -376,6 +378,7 @@
{ {
field: 'inspectionItem', field: 'inspectionItem',
title: '標準值', title: '標準值',
width: 100,
align: 'left', align: 'left',
sort: true, sort: true,
templet: function (d) { templet: function (d) {
@ -388,7 +391,7 @@
{ field: 'location', title: '零件位置', width: 100, align: "left", templet: '#inputLocation' }, { field: 'location', title: '零件位置', width: 100, align: "left", templet: '#inputLocation' },
{ field: 'missingUnitNo', title: '缺失單位', width: 100, align: "left", templet: '#selectDept' }, { field: 'missingUnitNo', title: '缺失單位', width: 100, align: "left", templet: '#selectDept' },
{ field: 'missingUserID', title: '缺失人員', width: 100, align: "left", templet: '#selectUser' }, { field: 'missingUserID', title: '缺失人員', width: 100, align: "left", templet: '#selectUser' },
{ field: 'missingRemark', title: '備註', width: 250, align: "left", templet: '#inputTest' },//templet: '#inputTest' { field: 'missingRemark', title: '備註', width: 100, align: "left", templet: '#inputTest' },//templet: '#inputTest'
{ {
field: 'right', field: 'right',
@ -621,7 +624,7 @@
} }
}; };
}); });
</script> </script>
} }

Loading…
Cancel
Save