-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIgnoreRequireViewModel.js
More file actions
35 lines (33 loc) · 1.18 KB
/
Copy pathIgnoreRequireViewModel.js
File metadata and controls
35 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
35
//忽略找货信息
define(["../utils/SysConfig",
"../utils/SysUrl","../utils/CreateObject",
"../viewmodel/ModuleBase",
"../moduler/rs_IgnoreRequire"],
function (SysConfig, SysUrl, CreateObject,ModuleBase, rs_IgnoreRequire) {
function Control() {
ModuleBase.MBase.call(this);
CreateObject(Control, ModuleBase.MBase);
this.init();
}
Control.prototype = {
init: function () {
var self = this;
self.module = rs_IgnoreRequire.Req;
self.module.SIGNATURE=window.SysInfo.baseGuid;//签名
self.Url = SysUrl.getApiUrl("ADAPTER", rs_IgnoreRequire.Act);
},
//用户认证
setter: function (userid, requireid) {
var self = this;
self.module.USERID = userid// 用户ID
self.module.REQUIREID=requireid;//找货ID
},
ignoreRequire: function (callfunc) {
var self = this;
self.Data = this.module;
self.CallBack = callfunc;
self.Ajax();
}
};
return Control;
});