|
|
|
@ -28,27 +28,6 @@ function GetAccountingUnit(that, inputValue) { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
function GetCustomer(that, inputValue) { |
|
|
|
wx.navigateTo({ |
|
|
|
url: '../../customerChooseTemplate/customerChooseTemplate', |
|
|
|
}) |
|
|
|
// let method = getCustomer;
|
|
|
|
// let params = [{
|
|
|
|
// "InputValue": inputValue,
|
|
|
|
// "PageIndex": 0,
|
|
|
|
// "PageSize": 100
|
|
|
|
// }];
|
|
|
|
// network.transfer_request(method, params, function(res) {
|
|
|
|
// that.setData({
|
|
|
|
// currency: res.result,
|
|
|
|
// customer: res.result
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// that.setData({
|
|
|
|
// which: "购货客户"
|
|
|
|
// })
|
|
|
|
} |
|
|
|
|
|
|
|
function GetDepartment(that, inputValue) { |
|
|
|
let method = getDept; |
|
|
|
let params = [{ |
|
|
|
@ -228,6 +207,30 @@ Page({ |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 原有请求客户的方法,已经废弃
|
|
|
|
GetCustomer: function() { |
|
|
|
wx.navigateTo({ |
|
|
|
url: '../../customerChooseTemplate/customerChooseTemplate?fromePage=newForecast', |
|
|
|
}) |
|
|
|
// let method = getCustomer;
|
|
|
|
// let params = [{
|
|
|
|
// "InputValue": inputValue,
|
|
|
|
// "PageIndex": 0,
|
|
|
|
// "PageSize": 100
|
|
|
|
// }];
|
|
|
|
// network.transfer_request(method, params, function(res) {
|
|
|
|
// that.setData({
|
|
|
|
// currency: res.result,
|
|
|
|
// customer: res.result
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// that.setData({
|
|
|
|
// which: "购货客户"
|
|
|
|
// })
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面卸载 |
|
|
|
*/ |
|
|
|
@ -288,7 +291,7 @@ Page({ |
|
|
|
// 添加购货客户 跳转客户选择页面
|
|
|
|
getCustomerItem: function() { |
|
|
|
wx.navigateTo({ |
|
|
|
url: '../../customerChooseTemplate/customerChooseTemplate', |
|
|
|
url: '../../customerChooseTemplate/customerChooseTemplate?fromePage=newForecast', |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|