|
|
@ -424,6 +424,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.isComplianceOfCompanyName = false;
|
|
|
|
$scope.isComplianceOfCompanyName = false;
|
|
|
|
$scope.isComplianceOfShortName = false;
|
|
|
|
$scope.isComplianceOfShortName = false;
|
|
|
|
$scope.isComplianceOfBusinessStructure = false;
|
|
|
|
$scope.isComplianceOfBusinessStructure = false;
|
|
|
|
|
|
|
|
$scope.cardPromotionaparams={}
|
|
|
|
var website = partner.data.company_website;
|
|
|
|
var website = partner.data.company_website;
|
|
|
|
if (website != null) {
|
|
|
|
if (website != null) {
|
|
|
|
if (website.indexOf('http') != 0) {
|
|
|
|
if (website.indexOf('http') != 0) {
|
|
|
@ -685,12 +686,15 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
|
|
|
|
|
|
|
//制作促销合同
|
|
|
|
//制作促销合同
|
|
|
|
$scope.exportCardPromotionaAgreegatePDF = function(){
|
|
|
|
$scope.exportCardPromotionaAgreegatePDF = function(){
|
|
|
|
var title = 'Warning';
|
|
|
|
var title = '确认生成Promotional Offer合同';
|
|
|
|
$scope.cardPromotionaparams={}
|
|
|
|
var promotiona_date='';
|
|
|
|
var contentHtml = $sce.trustAsHtml('<lable>请选择优惠生效日:</lable>'+ ' <input placeholder="From" uib-datepicker-popup\n' +
|
|
|
|
var promotiona_period ='';
|
|
|
|
' is-open="ctrl.from" ng-click="ctrl.from=true" ng-model="cardPromotionaparams.date"\n' +
|
|
|
|
var contentHtml = $sce.trustAsHtml(
|
|
|
|
' datepicker-options="{maxDate:filter.to}"><div style="margin-bottom: 2px"></div>' +
|
|
|
|
'<lable>请输入优惠生成日:</lable> '+
|
|
|
|
' <lable>请输入活动周期:</lable> <input ng-model="cardPromotionaparams.period">');
|
|
|
|
'<input id="promotiona_date" ng-bind="promotiona_date"> (eg: 2020-02-01)' +
|
|
|
|
|
|
|
|
'<div style="margin-bottom: 5px"></div>' +
|
|
|
|
|
|
|
|
'<lable>请输入活动周期数:</lable> ' +
|
|
|
|
|
|
|
|
'<input id="promotiona_period" ng-bind="promotiona_period"> (unit:week)');
|
|
|
|
var choises = [{label: '取消', className: 'btn-danger', key: '2', dismiss: true},
|
|
|
|
var choises = [{label: '取消', className: 'btn-danger', key: '2', dismiss: true},
|
|
|
|
{label: '确认提交', className: 'btn-success', key: '1'}];
|
|
|
|
{label: '确认提交', className: 'btn-success', key: '1'}];
|
|
|
|
var content = '';
|
|
|
|
var content = '';
|
|
|
@ -701,8 +705,12 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
choises: choises,
|
|
|
|
choises: choises,
|
|
|
|
contentHtml: contentHtml
|
|
|
|
contentHtml: contentHtml
|
|
|
|
}).then(function (res) {
|
|
|
|
}).then(function (res) {
|
|
|
|
if(params != null){
|
|
|
|
var date = document.getElementById("promotiona_date").value;
|
|
|
|
$http.get('/sys/partners/' + $scope.partner.client_moniker + '/export/aggregate/card_promotiona_agree_pdf').then(function () {
|
|
|
|
var period = document.getElementById("promotiona_period").value;
|
|
|
|
|
|
|
|
if(date=='' || period==''){
|
|
|
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '选项不得未空', type: 'error'});
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$http.get('/sys/partners/' + $scope.partner.client_moniker + '/export/aggregate/card_promotiona_agree_pdf?date='+date+'&period='+period).then(function () {
|
|
|
|
commonDialog.alert({
|
|
|
|
commonDialog.alert({
|
|
|
|
title: 'Success',
|
|
|
|
title: 'Success',
|
|
|
|
content: 'Agreement File Generate Succeed! Please notify BD!',
|
|
|
|
content: 'Agreement File Generate Succeed! Please notify BD!',
|
|
|
@ -716,8 +724,8 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$scope.Export = function () {
|
|
|
|
$scope.Export = function () {
|
|
|
|