|
|
@ -1109,9 +1109,7 @@ var fnPageInit = function () { |
|
|
|
}, |
|
|
|
//設置供應商聯絡人
|
|
|
|
setSupplierContactorDrop = function () { |
|
|
|
|
|
|
|
|
|
|
|
return g_api.ConnectLite(canDo.QueryPrgId, "QuerySupplierContactorList", { LangID: ($('#LangID').val() || sLang), SupplierID: $('#SupplierID').val() }, function (res) { |
|
|
|
return g_api.ConnectLite(canDo.QueryPrgId, "QuerySupplierContactorList", { LangID: ($('#LangID').val() || sLang), SupplierID: $('#SupplierID').val() }, function (res) { |
|
|
|
if (res.RESULT) { |
|
|
|
let saSupplier = res.DATA.rel; |
|
|
|
if (saSupplier.length > 0) { |
|
|
@ -1119,12 +1117,13 @@ var fnPageInit = function () { |
|
|
|
$('#Undertaker').append(createOptions(saSupplier, 'Guid', 'ContacterName', false)).select2(); |
|
|
|
$('#Undertaker').val([]); |
|
|
|
$('#Undertaker').trigger('change'); |
|
|
|
} else { |
|
|
|
$('#Undertaker').html(""); |
|
|
|
$('#Undertaker').val([]); |
|
|
|
$('#Undertaker').trigger('change'); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
//設置服務子類別
|
|
|
|
setSubCategoryDrop = function () { |
|
|
|