|
|
|
@ -73,9 +73,11 @@ function GetGoodsInfo(that, dmo, detail) { |
|
|
|
} |
|
|
|
|
|
|
|
function GetCustomerInfo(that, dmo) { |
|
|
|
var params = [dmo.Customer_ID, ["Department_ID", "Department_Name", "Employee_ID", "Employee_Name", "AccountingUnit_ID", "AccountingUnit_Name", "TakeGoods_Type", "Address"]] |
|
|
|
var params = [app.globalData.userID, ["Department_ID", "Department_Name", "Employee_ID", "Employee_Name", "AccountingUnit_ID", "AccountingUnit_Name", "TakeGoods_Type", "Address"]] |
|
|
|
network.transfer_request(getCustomerInfo, params, function (res) { |
|
|
|
var obj = JSON.parse(res.result); |
|
|
|
dmo.Customer_ID = app.globalData.userID; |
|
|
|
dmo.Customer_Name = obj.Name; |
|
|
|
dmo.Department_ID = obj.Department_ID; |
|
|
|
dmo.Department_Name = obj.Department_Name; |
|
|
|
dmo.Employee_ID = obj.Employee_ID; |
|
|
|
@ -110,13 +112,17 @@ Page({ |
|
|
|
|
|
|
|
onLoad: function (options) { |
|
|
|
var that = this; |
|
|
|
var dmo = this.data.dmo; |
|
|
|
setTime(that); |
|
|
|
this.getUserPrifile(); |
|
|
|
this.getUserPrifile(function(res){ |
|
|
|
GetCustomerInfo(that, dmo); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
getUserPrifile: function () { |
|
|
|
getUserPrifile: function (succession) { |
|
|
|
var that = this; |
|
|
|
network.transfer_request(getUserPrifile, [], function (res) { |
|
|
|
succession(); |
|
|
|
that.data.dmo.SaleKind_ID = res.result.Order_SaleKind_ID; |
|
|
|
that.data.dmo.SaleKind_Name = res.result.Order_SaleKind_Name; |
|
|
|
that.data.dmo.Store_ID = res.result.Order_Store_ID; |
|
|
|
|