-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRmdOrderViewModel.js
More file actions
34 lines (33 loc) · 1.18 KB
/
Copy pathRmdOrderViewModel.js
File metadata and controls
34 lines (33 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//按找货信息推荐商城货源
define(["../utils/SysConfig",
"../utils/SysUrl",
"../utils/CreateObject",
"../viewmodel/ModuleBase",
"../moduler/rs_RecommandOrder"],
function (SysConfig, SysUrl, CreateObject, ModuleBase, rs_RecommandOrder) {
function Control() {
ModuleBase.MBase.call(this);
CreateObject(Control, ModuleBase.MBase);
this.init();
}
Control.prototype = {
init: function () {
var self = this;
self.module = rs_RecommandOrder.Req;
self.module.SIGNATURE = window.SysInfo.baseGuid;//签名
self.Url = SysUrl.getApiUrl("ADAPTER", rs_RecommandOrder.Act);
},
setter: function (userid, requireid) {
var self = this;
self.module.USERID = userid;// 用户ID
self.module.REQUIREID = requireid;//需求ID
},
getRecommandOrder: function (callfunc) {
var self = this;
self.Data = this.module;
self.CallBack = callfunc;
self.Ajax();
}
};
return Control;
});