fix 合伙人提成 修复surcharge_cashback

master
luoyang 5 years ago
parent 6b7e764a70
commit f23daac4d7

@ -398,6 +398,9 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
} }
} }
$scope.toggleClientPayType = function (type) { $scope.toggleClientPayType = function (type) {
if ($scope.partner.client_pay_type==null || $scope.partner.client_pay_type==undefined){
$scope.partner.client_pay_type = [];
}
var $idx = $scope.partner.client_pay_type.indexOf(type); var $idx = $scope.partner.client_pay_type.indexOf(type);
if ($idx >= 0) { if ($idx >= 0) {
$scope.partner.client_pay_type.splice($idx, 1); $scope.partner.client_pay_type.splice($idx, 1);
@ -408,6 +411,9 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
} }
}; };
$scope.toggleClientPayDesc = function (type) { $scope.toggleClientPayDesc = function (type) {
if ($scope.partner.client_pay_desc==null || $scope.partner.client_pay_desc==undefined){
$scope.partner.client_pay_desc = [];
}
var $idx = $scope.partner.client_pay_desc.indexOf(type); var $idx = $scope.partner.client_pay_desc.indexOf(type);
if ($idx >= 0) { if ($idx >= 0) {
$scope.partner.client_pay_desc.splice($idx, 1); $scope.partner.client_pay_desc.splice($idx, 1);

Loading…
Cancel
Save