<template>
  <div class="tab-content">
    <div class="tab-content">
      <el-form
        ref="jcReportFormRef"
        :model="jcFormData"
        :rules="formRules"
        :validate-on-rule-change="false"
        :label-width="150"
        :inline="false"
        :disabled="isPreview"
      >
        <el-collapse v-model="activeCollapse">
          <el-collapse-item title="一、项目背景" name="一、项目背景">
            <el-row :gutter="20">
              <el-col :span="24">
                <h3>关于{{ jcFormData.projectName }}的申请报告</h3>
              </el-col>
              <el-col :span="24">
                <el-form-item label="" label-width="0" prop="projectIntro">
                  <el-input
                    v-model="jcFormData.projectIntro"
                    type="textarea"
                    :rows="3"
                    placeholder="x公司（与x公司，公司内部单位，如有）申请出资x亿元、持股x%，投资建设x省x高速公路项目。项目总投资x亿元。"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="项目获取" prop="xmhq">
                  <el-input
                    v-model="jcFormData.xmhq"
                    type="textarea"
                    :rows="3"
                    placeholder="1.x年x月，x省政府（授权x市发改委，按项目实际）开展x高速公路项目投资主体的遴选。&#10;2.x年x月，x公司与x市政府签订投资合作框架协议。&#10;3.x年x月，x公司（与x公司、x公司组成的联合体）参与x省x高速公路项目投标，x年x月取得投资主体资格。"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="前期论证主要节点" prop="qqlzzyjd">
                  <el-input
                    v-model="jcFormData.qqlzzyjd"
                    type="textarea"
                    :rows="3"
                    placeholder="1.x年x月，本项目取得x省发改委核准。&#10;2.x年x月，工程可研报告通过x机构审查。&#10;3.x年x月，工程初步设计及概算取得x交通厅批复。"
                  />
                </el-form-item>
              </el-col>
            </el-row>
          </el-collapse-item>
          <el-collapse-item title="二、项目基本情况" name="二、项目基本情况">
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="所在地">
                  <div class="text-border">
                    {{
                      jcFormData.sjnzjjw
                        ? jcSzjList.filter(
                            (item) => item.key === jcFormData.sjnzjjw,
                          )[0]?.name
                        : ""
                    }}
                    {{
                      jcFormData.dsjngjjw
                        ? jcDsgjList.filter(
                            (item) => item.key === jcFormData.dsjngjjw,
                          )[0]?.name
                        : ""
                    }}
                    {{
                      jcFormData.qxjngjjw
                        ? jcQxgjList.filter(
                            (item) => item.key === jcFormData.qxjngjjw,
                          )[0]?.name
                        : ""
                    }}
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="建设规模" prop="jsgm">
                  <el-input
                    v-model="jcFormData.jsgm"
                    placeholder="x向x车道（全长x公里）"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="建设内容">
                  <div class="text-border">
                    {{ jcFormData.jsnrjgm }}
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="项目类型" prop="sqbgxmlx">
                  <el-input
                    v-model="jcFormData.sqbgxmlx"
                    placeholder="高速公路"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="是否标前决策" prop="sfbqjc">
                  <el-input v-model="jcFormData.sfbqjc" placeholder="是或否" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="总投资">
                  <div class="text-border">
                    {{
                      jcFormData.xmztz ? (jcFormData.xmztz / 10000).toFixed(2) + "亿元" : ""
                    }}
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="单位造价" prop="dwzj">
                  <el-input-number
                    v-model="jcFormData.dwzj"
                    :min="0"
                    :max="99999999999.99999999"
                    controls-position="right"
                  >
                    <template #suffix>
                      <span>亿元/km</span>
                    </template>
                  </el-input-number>
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="投资构成" prop="tzgc">
                  <el-input
                    v-model="jcFormData.tzgc"
                    type="textarea"
                    :rows="3"
                    placeholder="工程费（含建安工程费、设备及工器具购置费等）、工程建设其他费（含征地拆迁费等）、预备费、建设期利息等"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="建设期">
                  <div class="text-border">
                    {{ jcFormData.xmjsqy ? jcFormData.xmjsqy + "个月" : "" }}
                  </div>
                </el-form-item>
                <el-form-item label="运营期">
                  <div class="text-border">
                    {{ jcFormData.yynxn ? jcFormData.yynxn + "年" : "" }}
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="合规情况" prop="hgqk">
                  <el-input
                    v-model="jcFormData.hgqk"
                    type="textarea"
                    :rows="3"
                    placeholder="规划情况，项目立项审批情况，特许经营/实施方案及批复情况"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="实施机构" prop="ssjg">
                  <el-input v-model="jcFormData.ssjg" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="政府出资代表" prop="zfczdb">
                  <el-input v-model="jcFormData.zfczdb" />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="地方财政情况" prop="dfczqk">
                  <el-input
                    v-model="jcFormData.dfczqk"
                    type="textarea"
                    :rows="3"
                    placeholder="一般公共预算收入、一般公共预算支出、债务率等（如涉及）"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="回报机制" prop="hbjz">
                  <el-input
                    v-model="jcFormData.hbjz"
                    type="textarea"
                    :rows="3"
                    placeholder="主要收入来源：通行费收入，路衍经济收益"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="保函情况">
                  <el-table
                    :data="bhqkData"
                    style="width: 100%"
                    empty-text="暂无数据"
                    border
                  >
                    <el-table-column prop="lx" label="类型" />
                    <el-table-column prop="tjzt" label="提交主体">
                      <template #default="scope">
                        <el-input v-model="scope.row.tjzt" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="je" label="金额">
                      <template #default="scope">
                        <el-input
                          v-model="scope.row.je"
                          :min="0"
                          :max="99999999999.99999999"
                          controls-position="right"
                        />
                      </template>
                    </el-table-column>
                    <el-table-column prop="tjsj" label="提交时间">
                      <template #default="scope">
                        <el-input v-model="scope.row.tjsj" />
                      </template>
                    </el-table-column>
                    <el-table-column prop="thsj" label="退换时间">
                      <template #default="scope">
                        <el-input v-model="scope.row.thsj" />
                      </template>
                    </el-table-column>
                  </el-table>
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="绩效考核" prop="jxkh">
                  <el-input
                    v-model="jcFormData.jxkh"
                    type="textarea"
                    :rows="3"
                    placeholder="考核时点、关键考核指标，与保函、项目收入的关联性"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="调价机制" prop="tjjz">
                  <el-input
                    v-model="jcFormData.tjjz"
                    type="textarea"
                    :rows="3"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="征地拆迁" prop="zdcq">
                  <el-input
                    v-model="jcFormData.zdcq"
                    type="textarea"
                    :rows="3"
                    placeholder="根据项目合同，征地拆迁费用以工可征地拆迁总金额作为上限包干使用（×亿元），按照“归因归责”原则，因政府方导致的费用超支，由政府方承担责任；因其他原因导致的费用超支、进度滞后由社会资本方承担。"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="前期费用" prop="qqfy">
                  <el-input
                    v-model="jcFormData.qqfy"
                    type="textarea"
                    :rows="3"
                    placeholder="×万元；已结算、已发生未结算的，经审计后由项目公司承担。"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="投资模式">
                  <div class="text-border">
                    {{ jcFormData.tzms }}
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="投资能力" prop="tznl">
                  <el-input
                    v-model="jcFormData.tznl"
                    type="textarea"
                    :rows="3"
                    placeholder="1.资产负债率：截至×月底为×%，未/已被纳入资产负债率管控重点关注/重点管控企业名单；实施本项目将推高资产负债率×个百分点。&#10;2.资金状况：资金紧张/充裕，截至×月底货币资金×万元，较上年同期增加/减少流入×亿元。&#10;3.应收账款：截至目前，×公司部分项目存在投资项目回款逾期（如有，应收款×亿元，包括已确权应收款×亿元，应结未结款×亿元）。"
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <div class="report-item">
                  <div class="report-label">资金方案</div>
                  <div class="report-content">
                    <div class="report-item">
                      <div class="report-label">资本金</div>
                      <div class="report-content">
                        <el-row>
                          <el-col :span="8">
                            <el-form-item label="比例" prop="zbjbl">
                              <el-input-number
                                v-model="jcFormData.zbjbl"
                                :min="0"
                                :max="99999999999.99999999"
                                controls-position="right"
                              >
                                <template #suffix>
                                  <span>%</span>
                                </template>
                              </el-input-number>
                            </el-form-item>
                          </el-col>
                          <el-col :span="8">
                            <el-form-item label="金额" prop="zbjje">
                              <el-input
                                v-model="jcFormData.zbjje"
                                :min="0"
                                :max="99999999999.99999999"
                                controls-position="right"
                              />
                            </el-form-item>
                          </el-col>
                          <el-col :span="8">
                            <el-form-item label="来源" prop="zbjly">
                              <el-input v-model="jcFormData.zbjly" />
                            </el-form-item>
                          </el-col>
                        </el-row>
                      </div>
                    </div>
                    <div class="report-item">
                      <div class="report-label">贷款</div>
                      <div class="report-content">
                        <el-row>
                          <el-col :span="8">
                            <el-form-item label="比例" prop="dkbl">
                              <el-input-number
                                v-model="jcFormData.dkbl"
                                :min="0"
                                :max="99999999999.99999999"
                                controls-position="right"
                              >
                                <template #suffix>
                                  <span>%</span>
                                </template>
                              </el-input-number>
                            </el-form-item>
                          </el-col>
                          <el-col :span="8">
                            <el-form-item label="金额" prop="dkbje">
                              <el-input
                                v-model="jcFormData.dkbje"
                                :min="0"
                                :max="99999999999.99999999"
                                controls-position="right"
                              />
                            </el-form-item>
                          </el-col>
                          <el-col :span="8">
                            <el-form-item label="融资主体" prop="dkrzzt">
                              <el-input v-model="jcFormData.dkrzzt" />
                            </el-form-item>
                          </el-col>
                          <el-col :span="8">
                            <el-form-item label="期限" prop="dkqx">
                              <el-input-number
                                v-model="jcFormData.dkqx"
                                :min="0"
                                :max="99999999999.99999999"
                                controls-position="right"
                              >
                                <template #suffix>
                                  <span>年</span>
                                </template>
                              </el-input-number>
                            </el-form-item>
                          </el-col>
                          <el-col :span="8">
                            <el-form-item label="利率" prop="dkll">
                              <el-input-number
                                v-model="jcFormData.dkll"
                                :min="0"
                                :max="99999999999.99999999"
                                controls-position="right"
                              >
                                <template #suffix>
                                  <span>%</span>
                                </template>
                              </el-input-number>
                            </el-form-item>
                          </el-col>
                          <el-col :span="8">
                            <el-form-item label="担保方案" prop="dkdbfa">
                              <el-input v-model="jcFormData.dkdbfa" />
                            </el-form-item>
                          </el-col>
                          <el-col :span="24">
                            <el-form-item label="意向书" prop="dkyxs">
                              <el-input
                                v-model="jcFormData.dkyxs"
                                type="textarea"
                                :rows="3"
                                placeholder="已取得x行、x行、x行融资意向函，贷款利率按照202x年四季度同期x率计算（目前为x%）。"
                              />
                            </el-form-item>
                          </el-col>
                        </el-row>
                      </div>
                    </div>
                  </div>
                </div>
              </el-col>
              <el-col :span="24">
                <el-form-item label="股权结构">
                  <el-table
                    :data="jcGdxxData"
                    style="width: 100%"
                    empty-text="暂无数据"
                    border
                  >
                    <el-table-column prop="gdmc" label="股东方">
                      <template #default="scope">
                        <div>
                          {{
                            scope.$index < jcGdxxData.length - 1
                              ? scope.row.gdmc
                              : "合计"
                          }}
                        </div>
                      </template>
                    </el-table-column>
                    <el-table-column prop="cgbl" label="持股比例（%）">
                      <template #default="scope">
                        <div>
                          {{
                            scope.$index < jcGdxxData.length - 1
                              ? scope.row.cgbl
                              : getObjSums(jcgdxxSums, "cgbl") + "%"
                          }}
                        </div>
                      </template>
                    </el-table-column>
                    <el-table-column prop="ycxmzbj" label="项目资本金（亿元）">
                      <template #default="scope">
                        <div>
                          {{
                            scope.$index < jcGdxxData.length - 1
                              ? scope.row.ycxmzbj
                                ? (scope.row.ycxmzbj / 10000).toFixed(2)
                                : scope.row.ycxmzbj
                              : (
                                  getObjSums(jcgdxxSums, "ycxmzbj") / 10000
                                ).toFixed(2) + "亿元"
                          }}
                        </div>
                      </template>
                    </el-table-column>
                    <el-table-column
                      prop="yjzczb"
                      label="其中：项目公司注册资本（亿元）"
                    >
                      <template #default="scope">
                        <div>
                          {{
                            scope.$index < jcGdxxData.length - 1
                              ? scope.row.yjzczb
                                ? (scope.row.yjzczb / 10000).toFixed(2)
                                : scope.row.yjzczb
                              : (
                                  getObjSums(jcgdxxSums, "yjzczb") / 10000
                                ).toFixed(2) + "亿元"
                          }}
                        </div>
                      </template>
                    </el-table-column>
                  </el-table>
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="股东方情况">
                  <div class="text-border">
                    <span
                      v-for="(item, index) in jcGdxxData.slice(0, -1)"
                      :key="index"
                      >{{ item.gdmc }}(占股{{ item.cgbl }}%){{
                        index < jcGdxxData.length - 1 ? "、" : "。"
                      }}</span
                    >
                  </div>
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <div class="report-item">
                  <div class="report-label">项目公司治理结构</div>
                  <div class="report-content">
                    <el-row>
                      <el-col :span="24">
                        <el-form-item label="股东会" prop="zljggdh">
                          <el-input
                            v-model="jcFormData.zljggdh"
                            type="textarea"
                            :rows="3"
                            placeholder="人数，表决事项，表决通过要求。部分重要事项应设定一致决。"
                          />
                        </el-form-item>
                      </el-col>
                      <el-col :span="24">
                        <el-form-item label="董事会" prop="zljgdsh">
                          <el-input
                            v-model="jcFormData.zljgdsh"
                            type="textarea"
                            :rows="3"
                            placeholder=""
                          />
                        </el-form-item>
                      </el-col>
                      <el-col :span="24">
                        <el-form-item label="监事会" prop="zljgjsh">
                          <el-input
                            v-model="jcFormData.zljgjsh"
                            type="textarea"
                            :rows="3"
                            placeholder=""
                          />
                        </el-form-item>
                      </el-col>
                      <el-col :span="24">
                        <el-form-item label="管理层" prop="zljgglc">
                          <el-input
                            v-model="jcFormData.zljgglc"
                            type="textarea"
                            :rows="3"
                            placeholder=""
                          />
                        </el-form-item>
                      </el-col>
                    </el-row>
                  </div>
                </div>
              </el-col>
              <el-col :span="24">
                <el-form-item label="建设管理方案" prop="jsglfa">
                  <el-input
                    v-model="jcFormData.jsglfa"
                    type="textarea"
                    :rows="3"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <el-form-item label="运营管理方案" prop="yyglfa">
                  <el-input
                    v-model="jcFormData.yyglfa"
                    type="textarea"
                    :rows="3"
                    placeholder=""
                  />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <div class="report-item">
                  <div class="report-label">退出机制</div>
                  <div class="report-content">
                    <el-row>
                      <el-col :span="24">
                        <el-form-item label="正常退出" prop="tcjzzc">
                          <el-input
                            v-model="jcFormData.tcjzzc"
                            type="textarea"
                            :rows="3"
                            placeholder=""
                          />
                        </el-form-item>
                      </el-col>
                      <el-col :span="24">
                        <el-form-item label="非正常退出" prop="tcjzfzc">
                          <el-input
                            v-model="jcFormData.tcjzfzc"
                            type="textarea"
                            :rows="3"
                            placeholder=""
                          />
                        </el-form-item>
                      </el-col>
                      <el-col :span="24">
                        <div>
                          （如有）股权锁定期限制；股权转让对受让方的资信、条件限制等。
                        </div>
                      </el-col>
                    </el-row>
                  </div>
                </div>
              </el-col>
            </el-row>
          </el-collapse-item>
          <el-collapse-item title="三、项目必要性" name="三、项目必要性">
            <el-row :gutter="20">
              <el-col :span="24">
                <el-form-item label="必要性">
                  <div class="text-border">
                    {{ jcFormData.xmbyx }}
                  </div>
                </el-form-item>
              </el-col>
            </el-row>
          </el-collapse-item>
          <el-collapse-item title="四、项目可行性" name="四、项目可行性">
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="可研编制单位" prop="kybzdw">
                  <el-input v-model="jcFormData.kybzdw" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="可研评审单位" prop="kypsdw">
                  <el-input v-model="jcFormData.kypsdw" />
                </el-form-item>
              </el-col>
              <el-col :span="24">
                <div class="report-item">
                  <div class="report-label">经济可行性</div>
                  <div class="report-content">
                    <el-row>
                      <el-col :span="12">
                        <el-form-item
                          label="全投资财务内部收益率（税前）"
                          :label-width="210"
                          prop="qtzcwnbsyl"
                        >
                          <el-input-number
                            v-model="jcFormData.qtzcwnbsyl"
                            :min="0"
                            :max="99999999999.99999999"
                            controls-position="right"
                          >
                            <template #suffix>
                              <span>%</span>
                            </template>
                          </el-input-number>
                        </el-form-item>
                      </el-col>
                      <el-col :span="12">
                        <el-form-item
                          label="资本金财务内部收益率（税后）"
                          :label-width="210"
                          prop="zbjcwnbsyl"
                        >
                          <el-input-number
                            v-model="jcFormData.zbjcwnbsyl"
                            :min="0"
                            :max="99999999999.99999999"
                            controls-position="right"
                          >
                            <template #suffix>
                              <span>%</span>
                            </template>
                          </el-input-number>
                        </el-form-item>
                      </el-col>
                      <el-col :span="8">
                        <el-form-item label="净现金流回正年份" prop="jxjlhznf">
                          <el-input v-model="jcFormData.jxjlhznf" />
                        </el-form-item>
                      </el-col>
                      <el-col :span="8">
                        <el-form-item label="净利润回正年份" prop="jlrhznf">
                          <el-input v-model="jcFormData.jlrhznf" />
                        </el-form-item>
                      </el-col>
                      <el-col :span="8">
                        <el-form-item
                          label="可分配利润回正年份"
                          prop="kfplrhznf"
                        >
                          <el-input v-model="jcFormData.kfplrhznf" />
                        </el-form-item>
                      </el-col>
                      <el-col :span="8">
                        <el-form-item label="财务净现值（税前）" prop="cwjxz">
                          <el-input-number
                            v-model="jcFormData.cwjxz"
                            :min="0"
                            :max="99999999999.99999999"
                            controls-position="right"
                          >
                            <template #suffix>
                              <span>万元</span>
                            </template>
                          </el-input-number>
                        </el-form-item>
                      </el-col>
                      <el-col :span="24">
                        <el-table
                          :data="[{ label: '净现金流（万元）' }]"
                          style="width: 100%"
                          border
                        >
                          <el-table-column
                            label="年份"
                            width="140"
                            fixed="left"
                          >
                            <template #default="scope">
                              {{ scope.row.label }}
                            </template>
                          </el-table-column>
                          <el-table-column label="建设期" width="120">
                            <template #default>
                              <el-input v-model="jxjlData[0].je" />
                            </template>
                          </el-table-column>
                          <el-table-column
                            v-for="i in 28"
                            :key="'jxjl' + i"
                            :label="'运营期' + i"
                            width="120"
                          >
                            <template #default>
                              <el-input v-model="jxjlData[i].je" />
                            </template>
                          </el-table-column>
                        </el-table>
                      </el-col>
                      <el-col :span="24" style="margin-top: 16px">
                        <el-table
                          :data="[{ label: '净利润（万元）' }]"
                          style="width: 100%"
                          border
                        >
                          <el-table-column
                            label="年份"
                            width="140"
                            fixed="left"
                          >
                            <template #default="scope">
                              {{ scope.row.label }}
                            </template>
                          </el-table-column>
                          <el-table-column label="建设期" width="120">
                            <template #default>
                              <el-input v-model="jlrData[0].je" />
                            </template>
                          </el-table-column>
                          <el-table-column
                            v-for="i in 28"
                            :key="'jlr' + i"
                            :label="'运营期' + i"
                            width="120"
                          >
                            <template #default>
                              <el-input v-model="jlrData[i].je" />
                            </template>
                          </el-table-column>
                        </el-table>
                      </el-col>
                      <el-col :span="24">
                        <el-form-item
                          label="敏感性分析"
                          :label-width="90"
                          prop="mgxfx"
                        >
                          <el-input
                            v-model="jcFormData.mgxfx"
                            type="textarea"
                            :rows="3"
                            placeholder="如存在融合一体化子项，应分别说明各子项基本情况，各子项各自财务评价参数与结果及整体测算结果。"
                          />
                        </el-form-item>
                      </el-col>
                    </el-row>
                  </div>
                </div>
              </el-col>
              <el-col :span="24">
                <el-form-item label="工程收益" prop="gcsy">
                  <el-input
                    v-model="jcFormData.gcsy"
                    type="textarea"
                    :rows="3"
                    placeholder="建安费金额，考虑x%下浮后，建安费x亿元，考虑施工直接成本、项目管理成本、工程收益预计x亿元，工程收益率x%"
                  />
                </el-form-item>
              </el-col>
            </el-row>
          </el-collapse-item>
          <el-collapse-item title="五、风险防控" name="五、风险防控">
            <el-table
              :data="fxglData"
              style="width: 100%"
              empty-text="暂无数据"
              border
            >
              <el-table-column prop="fxlb" label="风险点" />
              <el-table-column prop="fxms" label="内容" />
              <el-table-column prop="ydcs" label="防控措施" />
            </el-table>
          </el-collapse-item>
          <el-collapse-item title="六、内部决策情况" name="六、内部决策情况">
            <el-row :gutter="20">
              <el-col :span="24">
                <el-form-item label="各级决策情况" prop="gjjcqk">
                  <el-input
                    v-model="jcFormData.gjjcqk"
                    type="textarea"
                    :rows="3"
                    placeholder="（各级决策情况）&#10;×年×月×日，×公司×年第×次办公会，要求×。"
                  />
                </el-form-item>
              </el-col>
            </el-row>
          </el-collapse-item>
          <el-collapse-item
            title="七、需要说明的问题"
            name="七、需要说明的问题"
          >
            <el-form-item prop="xysmdwt" label-width="0">
              <el-input
                v-model="jcFormData.xysmdwt"
                type="textarea"
                :rows="3"
                placeholder="股东出资能力、特殊合同条款、协同经营情况等需要特殊说明事项"
              />
            </el-form-item>
          </el-collapse-item>
        </el-collapse>
      </el-form>
    </div>
  </div>
</template>

<script setup>
import { inject, ref } from "vue";

const jcReportFormRef = ref();

const requiredInput = (msg) => ({
  required: true,
  message: `请输入${msg}`,
  trigger: "blur",
});
const requiredSelect = (msg) => ({
  required: true,
  message: `请选择${msg}`,
  trigger: [],
});

const formRules = {
  projectIntro: [requiredInput("项目概述")],
  xmhq: [requiredInput("项目获取")],
  qqlzzyjd: [requiredInput("前期论证主要节点")],
  jsgm: [requiredInput("建设规模")],
  sqbgxmlx: [requiredInput("项目类型")],
  sfbqjc: [requiredInput("是否标前决策")],
  dwzj: [requiredSelect("单位造价")],
  tzgc: [requiredInput("投资构成")],
  hgqk: [requiredInput("合规情况")],
  ssjg: [requiredInput("实施机构")],
  zfczdb: [requiredInput("政府出资代表")],
  dfczqk: [requiredInput("地方财政情况")],
  hbjz: [requiredInput("回报机制")],
  jxkh: [requiredInput("绩效考核")],
  tjjz: [requiredInput("调价机制")],
  zdcq: [requiredInput("征地拆迁")],
  qqfy: [requiredInput("前期费用")],
  tznl: [requiredInput("投资能力")],
  zbjbl: [requiredSelect("资本金比例")],
  zbjje: [requiredInput("资本金金额")],
  zbjly: [requiredInput("资本金来源")],
  dkbl: [requiredSelect("贷款比例")],
  dkbje: [requiredInput("贷款金额")],
  dkrzzt: [requiredInput("融资主体")],
  dkqx: [requiredSelect("贷款期限")],
  dkll: [requiredSelect("贷款利率")],
  dkdbfa: [requiredInput("担保方案")],
  dkyxs: [requiredInput("意向书")],
  zljggdh: [requiredInput("股东会")],
  zljgdsh: [requiredInput("董事会")],
  zljgjsh: [requiredInput("监事会")],
  zljgglc: [requiredInput("管理层")],
  jsglfa: [requiredInput("建设管理方案")],
  yyglfa: [requiredInput("运营管理方案")],
  tcjzzc: [requiredInput("正常退出")],
  tcjzfzc: [requiredInput("非正常退出")],
  kybzdw: [requiredInput("可研编制单位")],
  kypsdw: [requiredInput("可研评审单位")],
  qtzcwnbsyl: [requiredSelect("全投资财务内部收益率")],
  zbjcwnbsyl: [requiredSelect("资本金财务内部收益率")],
  jxjlhznf: [requiredInput("净现金流回正年份")],
  jlrhznf: [requiredInput("净利润回正年份")],
  kfplrhznf: [requiredInput("可分配利润回正年份")],
  cwjxz: [requiredSelect("财务净现值")],
  mgxfx: [requiredInput("敏感性分析")],
  gcsy: [requiredInput("工程收益")],
  gjjcqk: [requiredInput("各级决策情况")],
  xysmdwt: [requiredInput("需要说明的问题")],
};

const validate = () => {
  return jcReportFormRef.value?.validate();
};

defineExpose({ validate });

const {
  jcFormData,
  isPreview,
  activeCollapse,
  bhqkData,
  jxjlData,
  jlrData,
  fxglData,
  jcgdxxSums,
  getObjSums,
  addJxjl,
  deleteJxjl,
  addJlr,
  deleteJlr,
  jcSzjList,
  jcDsgjList,
  jcQxgjList,
  jcGdxxData,
} = inject("jcShared");
</script>

<style scoped>
.tab-content :deep(.el-form-item__error) {
  display: none;
}
</style>
