Browse Source

1. 修正工單維護相關Bug

PTD
Ray 2 years ago
parent
commit
79b6c0fc96
  1. 9
      AMESCoreStudio.Web/Views/PCS/PCS003.cshtml
  2. 11
      AMESCoreStudio.Web/Views/PCS/PCS034.cshtml

9
AMESCoreStudio.Web/Views/PCS/PCS003.cshtml

@ -27,7 +27,6 @@
<input asp-for="wipInfo.WipID" type="hidden" value="@Model.wipInfo.WipID" /> <input asp-for="wipInfo.WipID" type="hidden" value="@Model.wipInfo.WipID" />
<input asp-for="wipInfo.WipNO" type="hidden" value="@Model.wipInfo.WipNO" /> <input asp-for="wipInfo.WipNO" type="hidden" value="@Model.wipInfo.WipNO" />
<input asp-for="wipAtt.ItemNO" type="hidden" value="@Model.wipAtt.ItemNO" /> <input asp-for="wipAtt.ItemNO" type="hidden" value="@Model.wipAtt.ItemNO" />
<input asp-for="wipInfo.WipType" type="hidden" value="@Model.wipInfo.WipType" />
<input asp-for="wipBarcodeOther.OtherID" type="hidden" value="@if(Model.wipBarcodeOther != null){ <input asp-for="wipBarcodeOther.OtherID" type="hidden" value="@if(Model.wipBarcodeOther != null){
@Model.wipBarcodeOther.OtherID @Model.wipBarcodeOther.OtherID
}" /> }" />
@ -1375,7 +1374,15 @@
$(this.element).closest('div.layui-inline').find('input[id*=' + this.element.id + '_Desc]').val(item.meterialDesc); $(this.element).closest('div.layui-inline').find('input[id*=' + this.element.id + '_Desc]').val(item.meterialDesc);
} }
}); });
$(this).change(function () {
var txt = $(this).val();
if (txt.length == 0) {
$(this).closest('div.layui-inline').find('input[id*=' + this.id + '_Desc]').val('');
}
});
}) })
// PowerMode // PowerMode
layui.autocomplete({ layui.autocomplete({
element: '#wipSystem_PowerMode', element: '#wipSystem_PowerMode',

11
AMESCoreStudio.Web/Views/PCS/PCS034.cshtml

@ -27,7 +27,6 @@
<input asp-for="wipInfo.WipID" type="hidden" value="@Model.wipInfo.WipID" /> <input asp-for="wipInfo.WipID" type="hidden" value="@Model.wipInfo.WipID" />
<input asp-for="wipInfo.UnitNO" type="hidden" value="@Model.wipInfo.UnitNO" /> <input asp-for="wipInfo.UnitNO" type="hidden" value="@Model.wipInfo.UnitNO" />
<input asp-for="wipInfo.WipNO" type="hidden" value="@Model.wipInfo.WipNO" /> <input asp-for="wipInfo.WipNO" type="hidden" value="@Model.wipInfo.WipNO" />
<input asp-for="wipInfo.WipType" type="hidden" value="@Model.wipInfo.WipType" />
<input asp-for="wipAtt.ItemNO" type="hidden" value="@Model.wipAtt.ItemNO" /> <input asp-for="wipAtt.ItemNO" type="hidden" value="@Model.wipAtt.ItemNO" />
<input asp-for="wipBarcodeOther.OtherID" type="hidden" value="@if(Model.wipBarcodeOther != null){ <input asp-for="wipBarcodeOther.OtherID" type="hidden" value="@if(Model.wipBarcodeOther != null){
@Model.wipBarcodeOther.OtherID @Model.wipBarcodeOther.OtherID
@ -865,8 +864,8 @@
<label class="layui-form-label">FINE_PACKAGE</label> <label class="layui-form-label">FINE_PACKAGE</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input @if (Model.wipSystem != null) { <input @if (Model.wipSystem != null) {
@(Model.wipSystem.FinePackage == "Y" ? "checked" : "") @(Model.wipSystem.FinePackage == "Y" ? "checked" : "")
} type="checkbox" title="是否為精裝" name="wipSystem.FinePackage" /> } type="checkbox" title="是否為精裝" name="wipSystem.FinePackage" />
</div> </div>
</div> </div>
</div> </div>
@ -1312,6 +1311,12 @@
$(this.element).closest('div.layui-inline').find('input[id*=' + this.element.id + '_Desc]').val(item.meterialDesc); $(this.element).closest('div.layui-inline').find('input[id*=' + this.element.id + '_Desc]').val(item.meterialDesc);
} }
}); });
$(this).change(function () {
var txt = $(this).val();
if (txt.length == 0) {
$(this).closest('div.layui-inline').find('input[id*=' + this.id + '_Desc]').val('');
}
});
}) })
// PowerMode // PowerMode
layui.autocomplete({ layui.autocomplete({

Loading…
Cancel
Save