Browse Source

1. 修正呼叫API出貨日期格式

PTD
ray 2 years ago
parent
commit
fa7d994f44
  1. 2
      AMESCoreStudio.Web/Controllers/PCSController.cs
  2. 2
      AMESCoreStudio.Web/HttpApis/AMES/IPCS.cs
  3. 2
      AMESCoreStudio.Web/Views/PCS/PCS001N.cshtml
  4. 4
      AMESCoreStudio.Web/Views/PCS/PCS003.cshtml
  5. 2
      AMESCoreStudio.Web/Views/PCS/PCS034.cshtml

2
AMESCoreStudio.Web/Controllers/PCSController.cs

@ -1413,7 +1413,7 @@ namespace AMESCoreStudio.Web.Controllers
/// <param name="wipShcDate">預計開工日</param>
/// <returns>RuleStation </returns>
[HttpPost]
public async Task<JsonResult> GetBarcodeOther(string itemNo, string lotNo, int num, string wipNo , DateTime wipShcDate)
public async Task<JsonResult> GetBarcodeOther(string itemNo, string lotNo, int num, string wipNo , string wipShcDate)
{
var result = await _pcsApi.GetSerialRuleByQurey(itemNo, lotNo.Trim().ToUpper(), num, wipShcDate);
string StartNO = "";

2
AMESCoreStudio.Web/HttpApis/AMES/IPCS.cs

@ -1305,7 +1305,7 @@ namespace AMESCoreStudio.Web
#region 取出貨序號
[WebApiClient.Attributes.HttpGet("api/SerialRules/ByQurey/{itemNo}/{lotNo}/{num}/{wipShcDate}")]
ITask<ResultModel<string>> GetSerialRuleByQurey(string itemNo, string lotNo, int num, DateTime wipShcDate);
ITask<ResultModel<string>> GetSerialRuleByQurey(string itemNo, string lotNo, int num, string wipShcDate);
#endregion
#region 樣品出貨序號紀錄

2
AMESCoreStudio.Web/Views/PCS/PCS001N.cshtml

@ -433,7 +433,7 @@
var planQTY = $('#wipInfo_PlanQTY').val();
var lotNo = $('#lotNo').val();
var wipNo = $('#wipInfo_WipNO').val();
var wipShcDate = $('#wipInfo_WipScheduleDate').val();
var wipShcDate = $('#wipInfo_WipScheduleDate').val().replace(/\//g, '-');
if (wipNo == '' || !wipNo) {
parent.hg.msg("請輸入工單號碼");
return;

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

@ -1202,7 +1202,7 @@
var itemNo = $('#wipAtt_ItemNO').val();
var planQTY = $('#wipInfo_PlanQTY').val();
var lotNo = $('#lotNo').val();
var wipShcDate = $('#wipInfo_WipScheduleDate').val();
var wipShcDate = $('#wipInfo_WipScheduleDate').val().replace(/\//g, '-');
if (itemNo == '' || !itemNo) {
parent.hg.msg("請輸入料號");
@ -1218,6 +1218,8 @@
return;
}
console.log(wipShcDate);
if (lotNo == '' || !lotNo) {
lotNo = getLotNo();
}

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

@ -1156,7 +1156,7 @@
var itemNo = $('#wipAtt_ItemNO').val();
var planQTY = $('#wipInfo_PlanQTY').val();
var lotNo = $('#lotNo').val();
var wipShcDate = $('#wipInfo_WipScheduleDate').val();
var wipShcDate = $('#wipInfo_WipScheduleDate').val().replace(/\//g, '-');
if (itemNo == '' || !itemNo) {
parent.hg.msg("請輸入料號");
return;

Loading…
Cancel
Save