fix partners industry改为royalpay行业

master
luoyang 5 years ago
parent a4111e1fd4
commit 4522cce652

@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId>
<version>1.4.1</version>
<version>1.4.2</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>1.8.0</jib-maven-plugin.version>

@ -89,8 +89,9 @@
<if test="business_structure!=null">
AND c.business_structure=#{business_structure}
</if>
<if test="industry!=null">
AND c.industry=#{industry}
<if test="industry!=null and industry != 0 and industry">
<bind name="industry" value="industry+'%'"/>
AND c.royalpayindustry like #{industry}
</if>
<if test="create_start_time!=null">
AND c.create_time >= #{create_start_time}

@ -482,6 +482,7 @@ margin-bottom: 10%;"/>
multi-level-select-popup="alipayMccCategory"
on-select="onAlipayMccSelect($selected)"
placeholder="alipayIndustry"
chose-one-level="false"
>
<div ng-messages="partnerForm.alipay_category.$error"
ng-if="partnerForm.alipay_category.$dirty">

@ -10,7 +10,8 @@ define(['../app', 'angular', 'jquery', 'css!../css/multiLevelSelect'], function
multiLevelSelectPopup: '=',
childrenKey: '@',
labelKey: '@',
onSelect: '&'
onSelect: '&',
choseOneLevel: '='
},
link: function (scope, element, attr) {
var selectBox,bg;
@ -27,8 +28,8 @@ define(['../app', 'angular', 'jquery', 'css!../css/multiLevelSelect'], function
top: (offset.top + $(this).outerHeight() + 3) + 'px',
left: offset.left + 'px'
});
var container = $('<div></div>').appendTo(selectBox);
initSelectLevel(container, scope.multiLevelSelectPopup, 0);
var container = $('<div style="border: 1px solid #bbb6b5;"></div>').appendTo(selectBox);
initSelectLevel(container, scope.multiLevelSelectPopup, 0, scope.choseOneLevel);
var $body = $('body');
selectBox.appendTo($body);
bg = $('<div></div>').css({position:'fixed',top:0,left:0,right:0,bottom:0,zIndex:9998}).appendTo($body);
@ -40,8 +41,7 @@ define(['../app', 'angular', 'jquery', 'css!../css/multiLevelSelect'], function
});
function initSelectLevel(container, list, groupIndex) {
function initSelectLevel(container, list, groupIndex, choseOneLevel) {
if (selectGroups[groupIndex]) {
var groups = selectGroups.splice(groupIndex, 999);
angular.forEach(groups, function (group) {
@ -61,7 +61,8 @@ define(['../app', 'angular', 'jquery', 'css!../css/multiLevelSelect'], function
scope.onSelect({$selected: item});
})
}catch(err){}
} catch (err) {
}
selectBox.remove();
bg.remove();
selectBox = null;
@ -74,10 +75,25 @@ define(['../app', 'angular', 'jquery', 'css!../css/multiLevelSelect'], function
li.addClass('active');
initSelectLevel(container, item.children, groupIndex + 1);
});
if (choseOneLevel) {
li.click(function () {
if (angular.isFunction(scope.onSelect)) {
try {
scope.$apply(function () {
scope.onSelect({$selected: item});
})
}catch(err){}
selectBox.remove();
bg.remove();
selectBox = null;
}
});
}
}
})
}
}
}
}])
});
});

@ -9,6 +9,12 @@ define(['../app', 'jquery'], function (app, $) {
dataType: 'json',
success: function (data) {
royalpay = data;
var selectAll = {
"label": "All",
"mccCode": "0",
"children":{}
};
royalpay.unshift(selectAll);
}
});

@ -224,14 +224,32 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
$scope.analysisClients();
}
$scope.pagination = {};
$scope.industries = industryMap.configs();
$scope.states = stateMap.configs();
$scope.countries = countryMap.configs();
$scope.sectors = sectorMap.configs();
$scope.business_structures = businessStructuresMap.configs();
$scope.clean_days = angular.copy(clean_days_map);
$scope.bd_citys = angular.copy(bd_city_map);
$scope.params = {textType: 'all', org_name: 'ALL'};
$scope.params = {textType: 'all', org_name: 'ALL', industry: "0"};
$scope.loadRoyalpayindustry = function () {
$http.get('/static/data/royalpayindustry.json').then(function (resp) {
$scope.royalpayindustry = resp.data;
var selectAll = {
"label": "All",
"mccCode": "0",
"children":{}
};
$scope.royalpayindustry.unshift(selectAll);
})
};
$scope.loadRoyalpayindustry();
$scope.onRoyalPayIndustrySelect = function (selectedItem) {
$scope.params.royalpay_label = selectedItem.label;
$scope.params.industry = selectedItem.mccCode;
$scope.loadPartners(1);
};
$scope.loadPartners = function (page) {
var params = angular.copy($scope.params);

@ -1197,7 +1197,8 @@
name="alipay_category" readonly
ng-model="partner.alipay_category"
multi-level-select-popup="alipayMccCategory"
on-select="onAlipayMccSelect($selected)">
on-select="onAlipayMccSelect($selected)"
chose-one-level="false">
<div ng-messages="partnerForm.alipay_category.$error"
ng-if="partnerForm.alipay_category.$dirty">
<p class="small text-danger" ng-message="required">Required
@ -1291,13 +1292,14 @@
<div class="form-group"
ng-class="{'has-error':partnerForm.royalpay_label.$invalid && partnerForm.royalpay_label.$dirty}">
<label class="control-label col-sm-2"
for="royalpayindustry">*RoyalPay Industry</label>
for="royalpayindustry">*RoyalPay商户类别</label>
<div class="col-sm-8">
<input class="form-control" id="royalpayindustry" required
name="royalpayindustry" readonly
ng-model="partner.royalpayindustry|partner_royalpay_industry"
multi-level-select-popup="royalpayindustry"
on-select="onRoyalPayIndustrySelect($selected)">
on-select="onRoyalPayIndustrySelect($selected)"
chose-one-level="false">
<div ng-messages="partnerForm.royalpay_label.$error"
ng-if="partnerForm.royalpay_label.$dirty">
<p class="small text-danger" ng-message="required">Required
@ -1354,7 +1356,8 @@
name="alipay_category" readonly
ng-model="partner.alipayindustry|partner_alipay_industry"
multi-level-select-popup="alipayMccCategory"
on-select="onAlipayMccSelect($selected)">
on-select="onAlipayMccSelect($selected)"
chose-one-level="false">
<div ng-messages="partnerForm.alipay_category.$error"
ng-if="partnerForm.alipay_category.$dirty">
<p class="small text-danger" ng-message="required">Required
@ -1372,7 +1375,8 @@
name="hf_label" readonly
ng-model="partner.hfindustry|partner_hf_industry"
multi-level-select-popup="hfindustry"
on-select="onHfIndustrySelect($selected)">
on-select="onHfIndustrySelect($selected)"
chose-one-level="false">
</div>
</div>

@ -1064,7 +1064,8 @@
name="alipay_category" readonly
ng-model="partner.alipay_category"
multi-level-select-popup="alipayMccCategory"
on-select="onAlipayMccSelect($selected)">
on-select="onAlipayMccSelect($selected)"
chose-one-level="false">
<div ng-messages="partnerForm.alipay_category.$error"
ng-if="partnerForm.alipay_category.$dirty">
<p class="small text-danger" ng-message="required">Required
@ -1161,7 +1162,8 @@
name="royalpayindustry" readonly
ng-model="partner.royalpayindustry|partner_royalpay_industry"
multi-level-select-popup="royalpayindustry"
on-select="onRoyalPayIndustrySelect($selected)">
on-select="onRoyalPayIndustrySelect($selected)"
chose-one-level="false">
<div ng-messages="partnerForm.royalpay_label.$error"
ng-if="partnerForm.royalpay_label.$dirty">
<p class="small text-danger" ng-message="required">Required
@ -1219,7 +1221,8 @@
name="alipay_category" readonly
ng-model="partner.alipayindustry"
multi-level-select-popup="alipayMccCategory"
on-select="onAlipayMccSelect($selected)">
on-select="onAlipayMccSelect($selected)"
chose-one-level="false">
<div ng-messages="partnerForm.alipay_category.$error"
ng-if="partnerForm.alipay_category.$dirty">
<p class="small text-danger" ng-message="required">Required
@ -1237,7 +1240,8 @@
name="hf_label" readonly
ng-model="partner.hfindustry |partner_hf_industry"
multi-level-select-popup="hfindustry"
on-select="onHfIndustrySelect($selected)">
on-select="onHfIndustrySelect($selected)"
chose-one-level="false">
</div>
</div>
<div class="form-group"

@ -1026,7 +1026,7 @@
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2">RoyalPay Industry</label>
<label class="control-label col-sm-2">RoyalPay商户类别</label>
<div class="col-sm-10">
<p class="form-control-static industry-p"
ng-bind="partner.royalpayindustry|partner_royalpay_industry"></p>

@ -1083,7 +1083,8 @@
name="alipay_category" readonly
ng-model="partner.alipayindustry|partner_alipay_industry"
multi-level-select-popup="alipayMccCategory"
on-select="onAlipayMccSelect($selected)">
on-select="onAlipayMccSelect($selected)"
chose-one-level="false">
<div ng-messages="partnerForm.alipay_category.$error"
ng-if="partnerForm.alipay_category.$dirty">
<p class="small text-danger" ng-message="required">Required
@ -1151,13 +1152,14 @@
<div class="form-group"
ng-class="{'has-error':partnerForm.royalpay_label.$invalid && partnerForm.royalpay_label.$dirty}">
<label class="control-label col-sm-2"
for="royalpayindustry"> *RoyalPay Industry</label>
for="royalpayindustry"> *RoyalPay商户类别</label>
<div class="col-sm-8" >
<input class="form-control" id="royalpayindustry" required
name="royalpayindustry" readonly
ng-model="partner.royalpayindustry|partner_royalpay_industry"
multi-level-select-popup="royalpayindustry"
on-select="onRoyalPayIndustrySelect($selected)">
on-select="onRoyalPayIndustrySelect($selected)"
chose-one-level="false">
<div ng-messages="partnerForm.royalpay_label.$error"
ng-if="partnerForm.royalpay_label.$dirty">
<p class="small text-danger" ng-message="required">Required
@ -1214,7 +1216,8 @@
name="alipay_category" readonly
ng-model="partner.alipayindustry|partner_alipay_industry"
multi-level-select-popup="alipayMccCategory"
on-select="onAlipayMccSelect($selected)">
on-select="onAlipayMccSelect($selected)"
chose-one-level="false">
<div ng-messages="partnerForm.alipay_category.$error"
ng-if="partnerForm.alipay_category.$dirty">
<p class="small text-danger" ng-message="required">Required
@ -1232,7 +1235,8 @@
name="hf_label" readonly
ng-model="partner.hfindustry|partner_hf_industry"
multi-level-select-popup="hfindustry"
on-select="onHfIndustrySelect($selected)">
on-select="onHfIndustrySelect($selected)"
chose-one-level="false">
</div>
</div>

@ -191,7 +191,8 @@
name="params.org_name"
ng-model="params.org_name"
multi-level-select-popup="orgs_child"
on-select="onOrgsSelect($selected)">
on-select="onOrgsSelect($selected)"
chose-one-level="false">
</div>
</div>-->
<!-- <div class="form-group col-sm-6" ng-if="orgs">
@ -229,14 +230,16 @@
</div>
<!--Industry-->
<div class="form-group col-sm-6">
<label class="control-label col-xs-4 col-sm-4"
for="industry-select">Industry</label>
<div class="col-xs-6">
<select ng-model="params.industry" id="industry-select"
class="form-control"
ng-options="industry.value as industry.label for industry in industries">
<option value="">All</option>
</select>
<label class="control-label col-sm-4"
for="royalpayindustry">RP商户类别</label>
<div class="col-sm-6">
<input style="background-color:#fff"
class="form-control" id="royalpayindustry"
name="royalpayindustry" readonly
ng-value="params.industry|partner_royalpay_industry"
multi-level-select-popup="royalpayindustry"
on-select="onRoyalPayIndustrySelect($selected)"
chose-one-level="true">
</div>
</div>
<!--Clean Days-->

@ -79,7 +79,8 @@
name="hf_industry" readonly
ng-model="product.hf_industry|partner_hf_industry"
multi-level-select-popup="hf_industry"
on-select="onHfIndustrySelect($selected)">
on-select="onHfIndustrySelect($selected)"
chose-one-level="false">
</div>
</div>

@ -34,7 +34,8 @@
ng-model="params.hf_industry|partner_hf_industry"
multi-level-select-popup="hf_industry"
placeholder="Select a Hf Industry To Follow Up"
on-select="onHfIndustrySelect($selected)">
on-select="onHfIndustrySelect($selected)"
chose-one-level="false">
<a role="button" ng-if="params.hf_industry" style="position: absolute;margin-top: 7px;top: 0;right: 30px;" ng-click="clearHFIndustry()"><i class="fa fa-close"></i></a>
</div>
</div>
@ -125,4 +126,4 @@
</div>
</div>
</div>
</div>
</div>

Loading…
Cancel
Save