<!-- 收文单详情页面 -->
<ion-view cache-view="false">
  <ion-nav-title>
    <h1 class="title">详情</h1>
  </ion-nav-title>
  <ion-nav-buttons side="left">
    <button class="button icon-left ion-ios-arrow-back button-clear sino-back-button"  sino-nav-direction="back" sino-go-back-button></button>
  </ion-nav-buttons>

<sino-loading-hint refresh="detailCtrl.init()" state="detailCtrl.loadingState">
<ion-content class="has-header has-footer task-content view-task-content" scroll="true" ng-click="detailCtrl.hideMore()">
  <form class="form-horizontal" name="detailCtrl.archivesinceptForm">
    <div class="list">
      <div class="item item-divider">
        基本信息
      </div>
      <div  class="form-item-group">
        <label class="item item-input">
          <span class="input-label">标题：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.subject}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">流水号：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.bh}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">收文时间：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.delivereddate}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">发文机关：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.fsfmch}}</p>
        </label>
        <label class="item item-input item-select">
          <span class="input-label">缓急：</span>
          <sino-mabiao-select
            mabiao="needGradeNot"
            default-title="无"
            ng-model="detailCtrl.archivesincept.hj"
            ng-disabled="true || readonly">
          </sino-mabiao-select>
        </label>
        <label class="item item-input">
          <span class="input-label">标志：</span>
          <p class="item-input-text">{{detailCtrl.biaozhi}}</p>
        </label>
        <label class="item item-input item-select">
          <span class="input-label">密级：</span>
          <sino-mabiao-select
            mabiao="secGrade"
            default-title="无"
            ng-model="detailCtrl.archivesincept.mj"
            ng-disabled="true || readonly">
          </sino-mabiao-select>
        </label>
        <label class="item item-input">
          <span class="input-label">主题词：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.zht}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">文号：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.fileno}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">文件类型：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.leixing}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">签发人：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.qfr}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">签发时间：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.qfshj}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">联系人：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.lxr}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">联系电话：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.lxdh}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">印章份数：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.fenshu}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">可输出份数：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.fenshu1}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">签收人：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.qshr}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">签收时间：</span>
            <p class="item-input-text">{{detailCtrl.archivesincept.qshshj}}</p>
        </label>
        <label class="item item-input">
          <span class="input-label">备注：</span>
          <p class="item-input-text">
            {{detailCtrl.archivesincept.bzh}}<br/>
            {{detailCtrl.archivesincept.beizhu}}
          </p>
        </label>
        <label class="item item-input">
          <span class="input-label">退文原因：</span>
          <textarea
            class="text"
            rows="3"
            ng-model="detailCtrl.archivesincept.reasonDocbackCal"
            ng-readonly="false || readonly">
          </textarea>
        </label>

      </div>
      <sino-affix
        record-id="{{::detailCtrl.archivesincept.id}}"
        table-name="/ftp/tempfile/SW/addFile/"
        title="附件">
      </sino-affix>
      <sino-affix
        record-id="{{::detailCtrl.archivesincept.id}}"
        table-name="/ftp/tempfile/SW/body_doc/"
        title="正文原文">
      </sino-affix>
    </div>
  </form>
</ion-content>
<sino-flow-button-bar
  record-id="{{::detailCtrl.archivesincept.id}}"
  flow-type="{{::detailCtrl.archivesincept.xiugai}}"
  table-name="ARCHIVES_INCEPT"
  table-id="id"
  subflag="detailCtrl.archivesincept.xiugai"
  title="{{detailCtrl.archivesincept.subject}}"
  success-fn="detailCtrl.refreshWorkFlowInfo()"
  auth-service="detailCtrl.auth">
  <sino-flow-base-button
    text="签收"
    class-name="ion-ios-compose-outline"
    on-click="detailCtrl.signin()"
    show="detailCtrl.auth.signin()"
    confirm="true">
  </sino-flow-base-button>
  <sino-flow-base-button
    text="处理完毕"
    class-name="ion-android-done"
    on-click="detailCtrl.wanbi()"
    show="detailCtrl.auth.wanbi()"
    confirm="true">
  </sino-flow-base-button>
  <sino-flow-base-button
    text="登记收文"
    class-name="ion-ios-list-outline"
    on-click="detailCtrl.insertSW()"
    show="detailCtrl.auth.wanbi()"
    confirm="true">
  </sino-flow-base-button>
  <sino-flow-base-button
    text="退文"
    class-name="ion-android-close"
    on-click="detailCtrl.returnback()"
    show="detailCtrl.auth.returnback()"
    confirm="true">
  </sino-flow-base-button>
</sino-flow-button-bar>
</sino-loading-hint>
</ion-view>
