|
|
@ -1776,23 +1776,23 @@ |
|
|
|
async: true, |
|
|
|
data: { "wipNo": '@Model.wipInfo.WipNO' }, |
|
|
|
success: function (result) { |
|
|
|
if (result.success) { |
|
|
|
if (result.data.eaN_NO == null) { |
|
|
|
if (result.success) { |
|
|
|
if (result.data.cHANGE_NO == null) { |
|
|
|
hg.msghide("查無資料,不需要更新!"); |
|
|
|
} |
|
|
|
else { |
|
|
|
var result_data = result.data.eaN_NO; |
|
|
|
console.log(result_data.eaN_NO); |
|
|
|
if (result_data.length == 0) { |
|
|
|
hg.msghide("不需要更新!"); |
|
|
|
} |
|
|
|
else if ('@Model.wipAtt.ECN' != result_data) { |
|
|
|
layer.confirm('比對與PLM ECN/ECR不一樣,確定更新ECN/ECR嗎?', { |
|
|
|
btn: ['確定', '取消'] |
|
|
|
}, function () { |
|
|
|
layer.closeAll('dialog'); |
|
|
|
$("#wipAtt_ECN").val(result_data); |
|
|
|
}) |
|
|
|
var result_data = result.data.cHANGE_NO; |
|
|
|
console.log(result_data.cHANGE_NO); |
|
|
|
if (result_data.length == 0) { |
|
|
|
hg.msghide("不需要更新!"); |
|
|
|
} |
|
|
|
else if ('@Model.wipAtt.ECN' != result_data) { |
|
|
|
layer.confirm('比對與PLM ECN/ECR不一樣,確定更新ECN/ECR嗎?', { |
|
|
|
btn: ['確定', '取消'] |
|
|
|
}, function () { |
|
|
|
layer.closeAll('dialog'); |
|
|
|
$("#wipAtt_ECN").val(result_data); |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|