|
|
|
@ -152,6 +152,126 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
{
|
|
|
|
|
"label": "Medical Service",
|
|
|
|
|
"value": "533"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Online games (Top-up)",
|
|
|
|
|
"value": "644"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Online Shopping Mall",
|
|
|
|
|
"value": "648"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Supermarket",
|
|
|
|
|
"value": "649"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Convenience Store",
|
|
|
|
|
"value": "651"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Duty-free Shop",
|
|
|
|
|
"value": "652"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Pharmacy",
|
|
|
|
|
"value": "653"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Vending Machine",
|
|
|
|
|
"value": "654"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Department Store /Shopping Centre",
|
|
|
|
|
"value": "655"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Food/Beverages",
|
|
|
|
|
"value": "656"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Catering Services",
|
|
|
|
|
"value": "657"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Furniture/Household Products",
|
|
|
|
|
"value": "658"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Home Appliances/Camera Equipment/Office Equipment",
|
|
|
|
|
"value": "659"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Beauty/Personal Care Products",
|
|
|
|
|
"value": "660"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Flowers/Plants/Interior Decorations/Decorations",
|
|
|
|
|
"value": "661"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Nursery Products/Toys",
|
|
|
|
|
"value": "662"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Clothing/Shoes/Other Accessories",
|
|
|
|
|
"value": "663"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Sports/Fitness Equipment/Security",
|
|
|
|
|
"value": "664"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Watches/Eyewear/Jewellery",
|
|
|
|
|
"value": "665"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Outdoor Products /Travel Products",
|
|
|
|
|
"value": "666"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Books / Records / Stationery / Musical Instruments",
|
|
|
|
|
"value": "667"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Flight ticket/ticketing agent",
|
|
|
|
|
"value": "668"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Sightseeing Passes",
|
|
|
|
|
"value": "669"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Hotel/Resort",
|
|
|
|
|
"value": "670"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Online Books/Video/Music",
|
|
|
|
|
"value": "671"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Online games (Download)",
|
|
|
|
|
"value": "672"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "University Education",
|
|
|
|
|
"value": "677"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Public hospitals/Medical Institutions",
|
|
|
|
|
"value": "679"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Private hospitals/Clinics/Medical institutions",
|
|
|
|
|
"value": "678"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Public transit",
|
|
|
|
|
"value": "680"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "Logistics/ Courier Service",
|
|
|
|
|
"value": "684"
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
var removeClientPayDesc = function (items, key) {
|
|
|
|
@ -3138,8 +3258,8 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
}
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('partnerNewSubPartnerDialogCtrl', ['$rootScope', '$scope', '$http', '$state', 'Upload', 'commonDialog', 'timezone',
|
|
|
|
|
'clientMoniker', 'industryMap', 'businessStructuresMap', 'stateMap', 'countryMap','wechatGoodMcc',
|
|
|
|
|
function ($rootScope, $scope, $http, $state, Upload, commonDialog, timezone, clientMoniker, industryMap, businessStructuresMap, stateMap, countryMap,wechatGoodMcc) {
|
|
|
|
|
'clientMoniker', 'industryMap', 'businessStructuresMap', 'stateMap', 'countryMap','wechatGoodMcc','$filter',
|
|
|
|
|
function ($rootScope, $scope, $http, $state, Upload, commonDialog, timezone, clientMoniker, industryMap, businessStructuresMap, stateMap, countryMap,wechatGoodMcc,$filter) {
|
|
|
|
|
if ($scope.partner_application) {
|
|
|
|
|
$scope.partner = angular.copy($scope.partner_application);
|
|
|
|
|
delete $rootScope.partner_application;
|
|
|
|
@ -3161,7 +3281,25 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.merchantIsValid = false;
|
|
|
|
|
$scope.merchantCodeChecked = false;
|
|
|
|
|
$scope.wechatMccIndustries = wechatGoodMcc.configs();
|
|
|
|
|
|
|
|
|
|
$scope.checkExpriedate=function (value) {
|
|
|
|
|
if(value){
|
|
|
|
|
$scope.partner.certificat_expire_date_premanent=false;
|
|
|
|
|
$scope.partner.certificat_expire_date_NA=false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$scope.checkExpriedateOther=function (value) {
|
|
|
|
|
if(value=='PERMANENT'){
|
|
|
|
|
if($scope.partner.certificat_expire_date_premanent){
|
|
|
|
|
$scope.partner.certificat_expire_date_NA=false;
|
|
|
|
|
$scope.partner.certificat_expire_date_d=null;
|
|
|
|
|
}
|
|
|
|
|
}else if(value=='N/A'){
|
|
|
|
|
if($scope.partner.certificat_expire_date_NA){
|
|
|
|
|
$scope.partner.certificat_expire_date_premanent=false;
|
|
|
|
|
$scope.partner.certificat_expire_date_d=null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var resetClientPayDescByTpey = function (type) {
|
|
|
|
|
type = parseInt(type);
|
|
|
|
|
if (type == 1) {
|
|
|
|
@ -3352,6 +3490,19 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
alert('Please select the business structure');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if ($scope.partner.business_structure!='Registered body(Sole Trader)') {
|
|
|
|
|
if ($scope.partner.certificat_expire_date_d) {
|
|
|
|
|
$scope.partner.certificat_expire_date = $filter('dateConversionStr')($scope.partner.certificat_expire_date_d)
|
|
|
|
|
} else if ($scope.partner.certificat_expire_date_premanent) {
|
|
|
|
|
$scope.partner.certificat_expire_date = "PERMANENT";
|
|
|
|
|
}
|
|
|
|
|
else if ($scope.partner.certificat_expire_date_NA) {
|
|
|
|
|
$scope.partner.certificat_expire_date = "N/A";
|
|
|
|
|
} else {
|
|
|
|
|
alert("Certificate expiration time is required");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ($scope.partner.company_name.indexOf("Migration") != -1) {
|
|
|
|
|
alert("Company Name包含敏感词汇,请检查后重新提交!");
|
|
|
|
|
return;
|
|
|
|
@ -5544,7 +5695,37 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.subMerchantInfo.certificat_expire_date=new Date(datestr);
|
|
|
|
|
}
|
|
|
|
|
if($scope.subMerchantInfo.business_structure ){
|
|
|
|
|
$scope.subMerchantInfo.merchant_type=$scope.subMerchantInfo.business_structure == 'Company'? "ENTERPRISE":"INDIVIDUAL";
|
|
|
|
|
$scope.subMerchantInfo.merchant_type=$scope.subMerchantInfo.business_structure != 'Registered body(Sole Trader)'? "ENTERPRISE":"INDIVIDUAL";
|
|
|
|
|
}
|
|
|
|
|
if(subMerchantInfo.certificat_expire_date) {
|
|
|
|
|
if(subMerchantInfo.certificat_expire_date=="PERMANENT"){
|
|
|
|
|
$scope.subMerchantInfo.certificat_expire_date_premanent=true;
|
|
|
|
|
}else if(subMerchantInfo.certificat_expire_date=="N/A"){
|
|
|
|
|
$scope.subMerchantInfo.certificat_expire_date_NA=true;
|
|
|
|
|
}else {
|
|
|
|
|
var datestr = subMerchantInfo.certificat_expire_date.replace(/-/g, '/');
|
|
|
|
|
$scope.subMerchantInfo.certificat_expire_date_d = new Date(datestr);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$scope.checkExpriedate=function (value) {
|
|
|
|
|
if(value){
|
|
|
|
|
$scope.subMerchantInfo.certificat_expire_date_premanent=false;
|
|
|
|
|
$scope.subMerchantInfo.certificat_expire_date_NA=false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$scope.checkExpriedateOther=function (value) {
|
|
|
|
|
if(value=='PERMANENT'){
|
|
|
|
|
if($scope.subMerchantInfo.certificat_expire_date_premanent){
|
|
|
|
|
$scope.subMerchantInfo.certificat_expire_date_NA=false;
|
|
|
|
|
$scope.subMerchantInfo.certificat_expire_date_d=null;
|
|
|
|
|
}
|
|
|
|
|
}else if(value=='N/A'){
|
|
|
|
|
if($scope.subMerchantInfo.certificat_expire_date_NA){
|
|
|
|
|
$scope.subMerchantInfo.certificat_expire_date_premanent=false;
|
|
|
|
|
$scope.subMerchantInfo.certificat_expire_date_d=null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$scope.saveAppliy = function (form) {
|
|
|
|
|
$scope.errmsg = null;
|
|
|
|
@ -5585,8 +5766,17 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
params.director_id_number = $scope.subMerchantInfo.director_id_number;
|
|
|
|
|
params.company_register_no = $scope.subMerchantInfo.company_register_no;
|
|
|
|
|
params.certificat_expire_date = $scope.subMerchantInfo.certificat_expire_date;
|
|
|
|
|
if($scope.subMerchantInfo.certificat_expire_date) {
|
|
|
|
|
params.certificat_expire_date = $filter('dateConversionStr')($scope.subMerchantInfo.certificat_expire_date)
|
|
|
|
|
|
|
|
|
|
if($scope.subMerchantInfo.certificat_expire_date_d) {
|
|
|
|
|
params.certificat_expire_date = $filter('dateConversionStr')($scope.subMerchantInfo.certificat_expire_date_d)
|
|
|
|
|
}else if($scope.subMerchantInfo.certificat_expire_date_premanent){
|
|
|
|
|
params.certificat_expire_date="PERMANENT";
|
|
|
|
|
}
|
|
|
|
|
else if($scope.subMerchantInfo.certificat_expire_date_NA){
|
|
|
|
|
params.certificat_expire_date="N/A";
|
|
|
|
|
}else{
|
|
|
|
|
alert("Certificate expiration time is required");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
params.principal_name = $scope.subMerchantInfo.principal_name;
|
|
|
|
@ -5635,7 +5825,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.businessTypesMap=businessTypesMap.configs();
|
|
|
|
|
|
|
|
|
|
if($scope.subMerchantInfo.business_structure ){
|
|
|
|
|
$scope.subMerchantInfo.merchant_type=$scope.subMerchantInfo.business_structure == 'Company'? "ENTERPRISE":"INDIVIDUAL";
|
|
|
|
|
$scope.subMerchantInfo.merchant_type=$scope.subMerchantInfo.business_structure != 'Registered body(Sole Trader)'? "ENTERPRISE":"INDIVIDUAL";
|
|
|
|
|
}
|
|
|
|
|
if($scope.subMerchantInfo.industry) {
|
|
|
|
|
$scope.subMerchantInfo.industry = $filter('newWxMerchantsFilter')($scope.subMerchantInfo.industry);
|
|
|
|
|