I want to override function setShippingMethod()
to my module js vendor\magento\module-sales\view\adminhtml\web\order\create\scripts.js
here is a function
define([
"jquery",
'Magento_Ui/js/modal/confirm',
'Magento_Ui/js/modal/alert',
"mage/translate",
"prototype",
"Magento_Catalog/catalog/product/composite/configure",
'Magento_Ui/js/lib/view/utils/async'
], function(jQuery, confirm, alert){
window.AdminOrder = new Class.create();
AdminOrder.prototype = {
...
...
...
setShippingMethod : function(method){
var data = {};
data['order[shipping_method]'] = method;
console.log(method);
this.loadArea(['shipping_method', 'totals', 'billing_method'], true, data);
/*if(method=='dpd_relay_common'){
jQuery( "#click-me" ).trigger( "click" );
}*/
},
...
...
...
};
});