webpackJsonp([5],{

/***/ 317:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutGoingReportViewModule", function() { return OutGoingReportViewModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__outGoingReportView_outGoingReportView__ = __webpack_require__(343);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};



var OutGoingReportViewModule = (function () {
    function OutGoingReportViewModule() {
    }
    OutGoingReportViewModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_2__outGoingReportView_outGoingReportView__["a" /* OutGoingReportViewPage */],
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__outGoingReportView_outGoingReportView__["a" /* OutGoingReportViewPage */]),
            ],
        })
    ], OutGoingReportViewModule);
    return OutGoingReportViewModule;
}());

//# sourceMappingURL=outGoingReportView.module.js.map

/***/ }),

/***/ 343:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return OutGoingReportViewPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(10);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_storage__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__service_appHttpService__ = __webpack_require__(19);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var OutGoingReportViewPage = (function () {
    function OutGoingReportViewPage(navCtrl, navParams, appService, storage) {
        var _this = this;
        this.navCtrl = navCtrl;
        this.navParams = navParams;
        this.appService = appService;
        this.storage = storage;
        this.dategap = "";
        //详细说明展示
        this.isCover = false;
        this.isleaveFlag = false;
        //是否 截止未报备
        this.isNotSignAndHasOverTime = false;
        this.premanager = this.navParams.get("premanager");
        //加载报备的图片
        this.picture = __WEBPACK_IMPORTED_MODULE_3__service_appHttpService__["a" /* AppGlobal */].picture + this.premanager["uploadPic"];
        //是否未报备已截止
        if (!this.premanager["reported"] && this.premanager["isOverTimeFlag"]) {
            this.isNotSignAndHasOverTime = true;
        }
        //this.appService.alert(this.isNotSignAndHasOverTime);    
        //编辑初始化：查询
        if (this.premanager != null) {
            if (this.premanager["reported"]) {
                this.appService.ObserverHttpPost("/wisdomgroup/modules/userpre/getUserpre", { premanagerId: this.premanager.id.toString() })
                    .subscribe(function (res) {
                    var resultback = res.json();
                    _this.locations = "";
                    for (var index = 0; index < resultback.areaList.length; index++) {
                        var element = resultback.areaList[index];
                        _this.locations += element["areaName"] + ",";
                    }
                    _this.locations = _this.locations.substring(0, _this.locations.lastIndexOf(","));
                    _this.dategap = resultback.formshTime + "~" + resultback.comeshTime;
                    _this.detailsdesc = resultback.userpreDesc;
                    if (resultback.isorFromsh == 1) {
                        _this.isleaveFlag = true;
                    }
                }, function (error) {
                    _this.appService.alert('网络异常！');
                });
            }
        }
    }
    //具体介绍
    OutGoingReportViewPage.prototype.hidden = function () {
        this.isCover = false;
    };
    OutGoingReportViewPage.prototype.show = function () {
        this.isCover = true;
    };
    OutGoingReportViewPage.prototype.ionViewDidLoad = function () {
        console.log('ionViewDidLoad OutGoingReportViewPage');
    };
    OutGoingReportViewPage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
            selector: 'page-outGoingReportView',template:/*ion-inline-start:"/Users/ben/gitLab-project/wisdom-ces/src/pages/outGoingReportView/outGoingReportView.html"*/'<ion-header>\n  <ion-toolbar>\n      <div class="searchToolBar">\n          <button ion-button clear small navPop style="padding: 0;">\n              <img class="back-btn" src="./assets/imgs/back.png" />\n            </button>\n            <ion-title text-center>个人报备详情</ion-title>\n      </div>\n    \n    </ion-toolbar>\n</ion-header>\n\n<ion-content class="content">\n  <div class="item1">\n    <div class="img-box">\n      <img class="item1-image" src="{{picture}}">\n    </div>\n    <div class="item1-content">\n      <div class="item1-content-header">\n        <div class="item1-title">{{premanager.title}}</div>\n      </div>\n      <div class="item1-introduction">\n        {{premanager.managerDesc}}\n        <button class="btn-introduce" (click)="show()">详细说明</button>\n      </div>\n    </div>\n  </div>\n  <ion-list *ngIf = "!isNotSignAndHasOverTime">\n    <ion-item>\n      <div class="report-info">\n        报备信息\n      </div>\n    </ion-item>\n    <ion-item>\n      <div class="report-item">\n        <div class="report-item-title">离沪</div>\n        <img class="right-icon" src="./assets/imgs/right.png" *ngIf="isleaveFlag" >\n        <img class="right-icon" src="./assets/imgs/right-grey.png" *ngIf="!isleaveFlag" >\n      </div>\n    </ion-item>\n    <ion-item *ngIf="isleaveFlag">\n      <div class="report-item">\n        <div class="report-item-title">离沪时间信息</div>\n        <div class="report-item-content">\n          <span>{{dategap}}</span>\n        </div>\n      </div>\n    </ion-item>\n\n    <ion-item *ngIf="isleaveFlag">\n      <div class="report-item">\n        <div class="report-item-title">离沪地点信息</div>\n        <div class="report-item-content">\n          <span>{{locations}}</span>\n        </div>\n      </div>\n    </ion-item>\n\n    <ion-item *ngIf="isleaveFlag">\n      <div>离沪备注说明</div>\n      <div class="description">{{detailsdesc}}</div>\n    </ion-item>\n\n  </ion-list>\n\n\n  <ion-list *ngIf = "isNotSignAndHasOverTime">\n    <ion-item>\n      <div class="report-info">\n        已过报备截止日期！\n      </div>\n    </ion-item>\n  </ion-list>\n\n\n</ion-content>\n\n<div class="cover" *ngIf="isCover">\n	<div class="cover-content">\n		<div class="cover-content-box">\n			<h4 class="cover-content-title">具体介绍</h4>\n			<div class="cover-content-info">\n				<p>\n          {{premanager.managerDesc}}\n				</p>\n			</div>\n			<button ion-button block (click)="hidden()">\n				关闭\n			</button>\n		</div>\n	</div>\n</div>'/*ion-inline-end:"/Users/ben/gitLab-project/wisdom-ces/src/pages/outGoingReportView/outGoingReportView.html"*/,
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* NavController */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["k" /* NavParams */],
            __WEBPACK_IMPORTED_MODULE_3__service_appHttpService__["b" /* AppService */],
            __WEBPACK_IMPORTED_MODULE_2__ionic_storage__["b" /* Storage */]])
    ], OutGoingReportViewPage);
    return OutGoingReportViewPage;
}());

//# sourceMappingURL=outGoingReportView.js.map

/***/ })

});
//# sourceMappingURL=5.js.map