手动清算容错

master
Yixian 4 years ago
parent d4d6226bf0
commit 08c9111f93

@ -95,6 +95,14 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
size: 'lg'
}).result.then(function (merchants) {
let arr = $scope.editingTask.whitelist_clients || [];
if(!merchants){
commonDialog.alert({
type: 'error',
title: '未选择有效商户',
content: '未选择有效商户'
});
return;
}
for (let mch of merchants) {
if (arr.filter(wMch => wMch.client_moniker === mch.client_moniker).length < 1) {
arr.push(mch);
@ -161,6 +169,14 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
submitTask.last_settle_date = task.last_settle_date;
submitTask.disabled_clean_days = task.disabled_clean_days;
submitTask.follow_sub_partner = task.follow_sub_partner;
if (task.whitelist_clients == null) {
commonDialog.alert({
type: 'error',
title: '批次配置出错',
content: '批次[' + task.remark + ']未选择商户'
})
return false
}
submitTask.whitelist_clients = task.whitelist_clients.map(cli => cli.client_moniker)
}
tasks.push(submitTask)

Loading…
Cancel
Save