|
|
|
@ -3410,7 +3410,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
subMerchantInfo: function () {
|
|
|
|
|
return $scope.partner;
|
|
|
|
|
},
|
|
|
|
|
yeepaySubMerchantId: function () {
|
|
|
|
|
subMerchantId: function () {
|
|
|
|
|
return sub_merchant_id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -3530,55 +3530,55 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
var merchantId = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.uploadLegalIDcardFront = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.legalIDcardFrontProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.legalIDcardFrontProgress;
|
|
|
|
|
$scope.legalIDcardFront = resp.data.path;
|
|
|
|
|
vouchers['legalIDcardFront'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.legalIDcardFrontProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.legalIDcardFrontProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadLegalIDcardBack = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.legalIDcardBackProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.legalIDcardBackProgress;
|
|
|
|
|
$scope.legalIDcardBack = resp.data.path;
|
|
|
|
|
vouchers['legalIDcardBack'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.legalIDcardBackProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.legalIDcardBackProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
// $scope.uploadLegalIDcardFront = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.legalIDcardFrontProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.legalIDcardFrontProgress;
|
|
|
|
|
// $scope.legalIDcardFront = resp.data.path;
|
|
|
|
|
// vouchers['legalIDcardFront'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.legalIDcardFrontProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.legalIDcardFrontProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
//
|
|
|
|
|
// $scope.uploadLegalIDcardBack = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.legalIDcardBackProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.legalIDcardBackProgress;
|
|
|
|
|
// $scope.legalIDcardBack = resp.data.path;
|
|
|
|
|
// vouchers['legalIDcardBack'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.legalIDcardBackProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.legalIDcardBackProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
$scope.uploadBusinessLicence = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
@ -3605,130 +3605,130 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadTaxLevel = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.taxLevelProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.taxLevelProgress;
|
|
|
|
|
$scope.taxLevel = resp.data.path;
|
|
|
|
|
vouchers['taxLevel'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.taxLevelProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.taxLevelProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadBankAccountOpen = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.bankAccountOpenProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.bankAccountOpenProgress;
|
|
|
|
|
$scope.bankAccountOpen = resp.data.path;
|
|
|
|
|
vouchers['bankAccountOpen'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.bankAccountOpenProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.bankAccountOpenProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadOrgCode = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.orgCodeProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.orgCodeProgress;
|
|
|
|
|
$scope.orgCode = resp.data.path;
|
|
|
|
|
vouchers['orgCode'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.orgCodeProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.orgCodeProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadNonStanProtocol = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.nonStanProtocolProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.nonStanProtocolProgress;
|
|
|
|
|
$scope.nonStanProtocol = resp.data.path;
|
|
|
|
|
vouchers['nonStanProtocol'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.nonStanProtocolProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.nonStanProtocolProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadZipPath = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.zipPathProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.zipPathProgress;
|
|
|
|
|
$scope.zipPath = resp.data.path;
|
|
|
|
|
vouchers['zipPath'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.zipPathProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.zipPathProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
// $scope.uploadTaxLevel = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.taxLevelProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.taxLevelProgress;
|
|
|
|
|
// $scope.taxLevel = resp.data.path;
|
|
|
|
|
// vouchers['taxLevel'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.taxLevelProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.taxLevelProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
// $scope.uploadBankAccountOpen = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.bankAccountOpenProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.bankAccountOpenProgress;
|
|
|
|
|
// $scope.bankAccountOpen = resp.data.path;
|
|
|
|
|
// vouchers['bankAccountOpen'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.bankAccountOpenProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.bankAccountOpenProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
// $scope.uploadOrgCode = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.orgCodeProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.orgCodeProgress;
|
|
|
|
|
// $scope.orgCode = resp.data.path;
|
|
|
|
|
// vouchers['orgCode'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.orgCodeProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.orgCodeProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
//
|
|
|
|
|
// $scope.uploadNonStanProtocol = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.nonStanProtocolProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.nonStanProtocolProgress;
|
|
|
|
|
// $scope.nonStanProtocol = resp.data.path;
|
|
|
|
|
// vouchers['nonStanProtocol'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.nonStanProtocolProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.nonStanProtocolProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
//
|
|
|
|
|
// $scope.uploadZipPath = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.zipPathProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.zipPathProgress;
|
|
|
|
|
// $scope.zipPath = resp.data.path;
|
|
|
|
|
// vouchers['zipPath'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.zipPathProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.zipPathProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
$scope.uploadDirectorPassport = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
@ -3797,6 +3797,8 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
merchantInfo['company_website'] = $scope.subMerchantInfo.company_website;
|
|
|
|
|
merchantInfo['abn'] = $scope.subMerchantInfo.abn;
|
|
|
|
|
merchantInfo['executives'] = $scope.executives;
|
|
|
|
|
merchantInfo['directors'] = $scope.directors;
|
|
|
|
|
merchantInfo['business_content'] = $scope.business_content;
|
|
|
|
@ -3823,7 +3825,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
}
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
app.controller('updateYeepaySubMerchantIdCtrl', ['$scope', '$http', '$uibModal', '$state','subMerchantInfo','yeepayIndustryMap','yeepayBusinessContentMap','$filter', 'commonDialog','Upload', function ($scope, $http, $uibModal, $state,subMerchantInfo,yeepayIndustryMap,yeepayBusinessContentMap,$filter, commonDialog,Upload) {
|
|
|
|
|
app.controller('updateYeepaySubMerchantIdCtrl', ['$scope', '$http', '$uibModal', '$state','subMerchantInfo','yeepayIndustryMap','yeepayBusinessContentMap','$filter', 'commonDialog','Upload','subMerchantId', function ($scope, $http, $uibModal, $state,subMerchantInfo,yeepayIndustryMap,yeepayBusinessContentMap,$filter, commonDialog,Upload,subMerchantId) {
|
|
|
|
|
$scope.yeepay_industries = yeepayIndustryMap.configs();
|
|
|
|
|
$scope.yeepay_business_contents = yeepayBusinessContentMap.configs();
|
|
|
|
|
$scope.subMerchantInfo = angular.copy(subMerchantInfo);
|
|
|
|
@ -3838,55 +3840,55 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
var merchantId = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.uploadLegalIDcardFront = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.legalIDcardFrontProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.legalIDcardFrontProgress;
|
|
|
|
|
$scope.legalIDcardFront = resp.data.path;
|
|
|
|
|
vouchers['legalIDcardFront'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.legalIDcardFrontProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.legalIDcardFrontProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadLegalIDcardBack = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.legalIDcardBackProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.legalIDcardBackProgress;
|
|
|
|
|
$scope.legalIDcardBack = resp.data.path;
|
|
|
|
|
vouchers['legalIDcardBack'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.legalIDcardBackProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.legalIDcardBackProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
// $scope.uploadLegalIDcardFront = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.legalIDcardFrontProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.legalIDcardFrontProgress;
|
|
|
|
|
// $scope.legalIDcardFront = resp.data.path;
|
|
|
|
|
// vouchers['legalIDcardFront'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.legalIDcardFrontProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.legalIDcardFrontProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
//
|
|
|
|
|
// $scope.uploadLegalIDcardBack = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.legalIDcardBackProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.legalIDcardBackProgress;
|
|
|
|
|
// $scope.legalIDcardBack = resp.data.path;
|
|
|
|
|
// vouchers['legalIDcardBack'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.legalIDcardBackProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.legalIDcardBackProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
$scope.uploadBusinessLicence = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
@ -3913,130 +3915,130 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadTaxLevel = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.taxLevelProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.taxLevelProgress;
|
|
|
|
|
$scope.taxLevel = resp.data.path;
|
|
|
|
|
vouchers['taxLevel'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.taxLevelProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.taxLevelProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadBankAccountOpen = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.bankAccountOpenProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.bankAccountOpenProgress;
|
|
|
|
|
$scope.bankAccountOpen = resp.data.path;
|
|
|
|
|
vouchers['bankAccountOpen'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.bankAccountOpenProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.bankAccountOpenProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadOrgCode = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.orgCodeProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.orgCodeProgress;
|
|
|
|
|
$scope.orgCode = resp.data.path;
|
|
|
|
|
vouchers['orgCode'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.orgCodeProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.orgCodeProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadNonStanProtocol = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.nonStanProtocolProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.nonStanProtocolProgress;
|
|
|
|
|
$scope.nonStanProtocol = resp.data.path;
|
|
|
|
|
vouchers['nonStanProtocol'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.nonStanProtocolProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.nonStanProtocolProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.uploadZipPath = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
} else {
|
|
|
|
|
$scope.zipPathProgress = {value: 0};
|
|
|
|
|
Upload.upload({
|
|
|
|
|
url: '/attachment/yeepayFiles',
|
|
|
|
|
data: {file: file}
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
delete $scope.zipPathProgress;
|
|
|
|
|
$scope.zipPath = resp.data.path;
|
|
|
|
|
vouchers['zipPath'] = resp.data.path;
|
|
|
|
|
merchantId = resp.data.merchantId;
|
|
|
|
|
commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
delete $scope.zipPathProgress;
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
$scope.zipPathProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
// $scope.uploadTaxLevel = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.taxLevelProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.taxLevelProgress;
|
|
|
|
|
// $scope.taxLevel = resp.data.path;
|
|
|
|
|
// vouchers['taxLevel'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.taxLevelProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.taxLevelProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
// $scope.uploadBankAccountOpen = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.bankAccountOpenProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.bankAccountOpenProgress;
|
|
|
|
|
// $scope.bankAccountOpen = resp.data.path;
|
|
|
|
|
// vouchers['bankAccountOpen'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.bankAccountOpenProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.bankAccountOpenProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
// $scope.uploadOrgCode = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.orgCodeProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.orgCodeProgress;
|
|
|
|
|
// $scope.orgCode = resp.data.path;
|
|
|
|
|
// vouchers['orgCode'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.orgCodeProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.orgCodeProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
//
|
|
|
|
|
// $scope.uploadNonStanProtocol = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.nonStanProtocolProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.nonStanProtocolProgress;
|
|
|
|
|
// $scope.nonStanProtocol = resp.data.path;
|
|
|
|
|
// vouchers['nonStanProtocol'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.nonStanProtocolProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.nonStanProtocolProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
//
|
|
|
|
|
// $scope.uploadZipPath = function (file) {
|
|
|
|
|
// if (file != null) {
|
|
|
|
|
// if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
// commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
// } else {
|
|
|
|
|
// $scope.zipPathProgress = {value: 0};
|
|
|
|
|
// Upload.upload({
|
|
|
|
|
// url: '/attachment/yeepayFiles',
|
|
|
|
|
// data: {file: file}
|
|
|
|
|
// }).then(function (resp) {
|
|
|
|
|
// delete $scope.zipPathProgress;
|
|
|
|
|
// $scope.zipPath = resp.data.path;
|
|
|
|
|
// vouchers['zipPath'] = resp.data.path;
|
|
|
|
|
// merchantId = resp.data.merchantId;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Success', content: 'Upload Success', type: 'success'})
|
|
|
|
|
// }, function (resp) {
|
|
|
|
|
// delete $scope.zipPathProgress;
|
|
|
|
|
// commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
// }, function (evt) {
|
|
|
|
|
// $scope.zipPathProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
$scope.uploadDirectorPassport = function (file) {
|
|
|
|
|
if (file != null) {
|
|
|
|
@ -4088,7 +4090,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.saveYeepayApply = function (form) {
|
|
|
|
|
$scope.updateYeepayApply = function (form) {
|
|
|
|
|
$scope.errmsg = null;
|
|
|
|
|
if (form.$invalid) {
|
|
|
|
|
angular.forEach(form, function (item, key) {
|
|
|
|
@ -4105,18 +4107,21 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
merchantInfo['company_website'] = $scope.subMerchantInfo.company_website;
|
|
|
|
|
merchantInfo['abn'] = $scope.subMerchantInfo.abn;
|
|
|
|
|
merchantInfo['executives'] = $scope.executives;
|
|
|
|
|
merchantInfo['subMerchantId'] = angular.copy(subMerchantId);
|
|
|
|
|
merchantInfo['directors'] = $scope.directors;
|
|
|
|
|
merchantInfo['business_content'] = $scope.business_content;
|
|
|
|
|
merchantInfo['industry'] = $scope.industry;
|
|
|
|
|
merchantInfo['merchantId'] = merchantId;
|
|
|
|
|
$http.post('/sys/partners/' + $scope.subMerchantInfo.client_moniker + '/registYeepaySubMerchantId', merchantInfo).then(function (resp) {
|
|
|
|
|
$http.post('/sys/partners/' + $scope.subMerchantInfo.client_moniker + '/updateYeepaySubMerchantId', merchantInfo).then(function (resp) {
|
|
|
|
|
$scope.apply_sub_merchant_id = resp.data;
|
|
|
|
|
$scope.$close();
|
|
|
|
|
if (subMerchantInfo.yeepay_sub_merchant_id != null) {
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
title: 'Success',
|
|
|
|
|
content: 'Modify Yeepay Sub Merchant ID successfully',
|
|
|
|
|
content: 'Update Successfully,Please Wait For Review!',
|
|
|
|
|
type: 'success'
|
|
|
|
|
});
|
|
|
|
|
$state.reload();
|
|
|
|
|