taskInfo.vue 19.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703
<template>
  <div class="assignment-detail">
    <!-- <a-button type="primary">导出任务书</a-button> -->
    <div style="margin-top: 16px;"></div>
    <div class="from-table">
      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>研究项目</span>
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          项目名称
        </a-col>
        <a-col :span="22">
          {{value.projName}}
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          起止时间
        </a-col>
        <a-col :span="22">
          {{value.startDate}}{{value.endDate}}
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>第一承担单位</span>
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          名称
        </a-col>
        <a-col :span="10">
          {{value.appUnitName}}
        </a-col>
        <a-col :span="2" class="bg-gray">
          联系电话
        </a-col>
        <a-col :span="10">
          {{value.linkTel}}
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          地址
        </a-col>
        <a-col :span="10">
          {{value.linkAddress}}
        </a-col>
        <a-col :span="2" class="bg-gray">
          邮政编码
        </a-col>
        <a-col :span="10">
          {{value.postcode}}
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          主管部门
        </a-col>
        <a-col :span="22">
          {{value.authority}}
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>主要合作(参加)单位</span>
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="1" class="bg-gray">
          序号
        </a-col>
        <a-col :span="9" class="bg-gray">
          单位名称
        </a-col>
        <a-col :span="11" class="bg-gray">
          地址
        </a-col>
        <a-col :span="3" class="bg-gray">
          在项目中的分工
        </a-col>
      </a-row>
      <a-row v-for="(item, index) in value.unitList" :key="'unit' + index">
        <a-col :span="1">
          {{index + 1}}
        </a-col>
        <a-col :span="9">
          {{item.unitName}}
        </a-col>
        <a-col :span="11">
          {{item.unitAddress}}
        </a-col>
        <a-col :span="3">
          {{item.projectWork}}
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>项目负责人</span>
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          姓名
        </a-col>
        <a-col :span="10">
          {{value.appPersonName}}
        </a-col>
        <a-col :span="2" class="bg-gray">
          性别
        </a-col>
        <a-col :span="10">
          {{value.sex}}
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          出生年
        </a-col>
        <a-col :span="10">
          {{value.birthYear}}
        </a-col>
        <a-col :span="2" class="bg-gray">
          联系电话
        </a-col>
        <a-col :span="10">
          {{value.mobile}}
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          学位
        </a-col>
        <a-col :span="10">
          {{value.degreeName}}
        </a-col>
        <a-col :span="2" class="bg-gray">
          职称
        </a-col>
        <a-col :span="10">
          {{value.titleName}}
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>项目组</span>
          </div>
        </a-col>
      </a-row>
      <a-row type="flex">
        <a-col :flex="1">
          <div class="bg-gray">总人数</div>
          <div>{{value.memCount}}</div>
        </a-col>
        <a-col :flex="1">
          <div class="bg-gray">高职</div>
          <div>{{value.memHighCount}}</div>
        </a-col>
        <a-col :flex="1">
          <div class="bg-gray">中职</div>
          <div>{{value.memMiddleCount}}</div>
        </a-col>
        <a-col :flex="1">
          <div class="bg-gray">初职</div>
          <div>{{value.memLowCount}}</div>
        </a-col>
        <a-col :flex="1">
          <div class="bg-gray">博士研究生</div>
          <div>{{value.memBsCount}}</div>
        </a-col>
        <a-col :flex="1">
          <div class="bg-gray">硕士研究生</div>
          <div>{{value.memSsCount}}</div>
        </a-col>
        <a-col :flex="1">
          <div class="bg-gray">其他</div>
          <div>{{value.memOtherCount}}</div>
        </a-col>
        <a-col :flex="0.5" class="bg-gray">
          <div style="line-height: 80px;">其中</div>
        </a-col>
        <a-col :flex="1">
          <div class="bg-gray">博士</div>
          <div>{{value.memdegree1}}</div>
        </a-col>
        <a-col :flex="1">
          <div class="bg-gray">硕士</div>
          <div>{{value.memdegree2}}</div>
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="4" class="bg-gray">
          实施目标和主要内容
        </a-col>
        <a-col :span="20">
          {{value.testContent}}
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="4" class="bg-gray">
          预期成果形式
        </a-col>
        <a-col :span="20">
          <div style="display: flex;flex-wrap: wrap;line-height: 2.5;">
            <div v-for="(item, index) in value.target" :key="index" style="margin-right: 20px;">
              <a-checkbox :checked="item.checked" :name="item.targetid" disabled>{{item.targetName}}</a-checkbox>
              ({{item.resultCount}})
            </div>
          </div>
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>经费投入</span>
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          总经费
        </a-col>
        <a-col :span="10" v-if="value.budget.length > 1">
          {{value.budget[0].totalBudget}}万元
        </a-col>
        <a-col :span="2" class="bg-gray">
          市卫计委资助
        </a-col>
        <a-col :span="10" v-if="value.budget.length > 1">
          {{value.budget[0].govBudget}}万元
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>一、项目要实现的目标和主要研发内容</span>
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24" class="bg-gray">
          (一)项目要实现的目标
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24" class="more-row" v-if="value.cont1.length >= 1">
          <div v-for="(cont, index) in value.cont1" :key="index">
            {{index + 1}}{{cont.contentInfo}}
          </div>
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="24" class="bg-gray">
          (二)主要研发内容
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24" class="more-row">
          <div v-for="(cont, index) in value.cont2" :key="index">
            {{index + 1}}{{cont.contentInfo}}
          </div>
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>二、项目的考核指标</span>
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24" class="bg-gray">
          (一)主要技术及学术指标 (形成的专利、新技术、新产品、新装置、论文专著、软件等的数量、指标及其水平等)
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24" class="more-row">
          <div v-for="(cont, index) in value.cont3" :key="index">
            {{index + 1}}{{cont.contentInfo}}
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24" class="bg-gray">
          (二)人才培养
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24" class="more-row">
          <div v-for="(cont, index) in value.cont4" :key="index">
            {{index + 1}}{{cont.contentInfo}}
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24" class="bg-gray">
          (三)其他应考核的指标
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24" class="more-row">
          <div v-for="(cont, index) in value.cont5" :key="index">
            {{index + 1}}{{cont.contentInfo}}
          </div>
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>三、项目阶段实施内容及目标</span>
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          阶段
        </a-col>
        <a-col :span="22" class="bg-gray">
          阶段实施内容及阶段目标
        </a-col>
      </a-row>
      <a-row v-for="(item, index) in value.cont6" :key="index">
        <a-col :span="2">
          <div class="special-middle">{{index + 1}}</div>
        </a-col>
        <a-col :span="22" class="more-row">
          <div>
            起止日期:{{item.startTime}}---{{item.endTime}}
          </div>
          <div>
            {{item.contentInfo}}
          </div>
        </a-col>
      </a-row>

      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>四、项目经费预算</span>
          </div>
        </a-col>
      </a-row>
      <a-row style="text-align: center;">
        <a-col :span="8" class="bg-gray">
          经费来源预算
        </a-col>
        <a-col :span="16" class="bg-gray">
          经费支出预算
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="4">
          科目
        </a-col>
        <a-col :span="4">
          总经费来源(万元)
        </a-col>
        <a-col :span="4">
          科目
        </a-col>
        <a-col :span="6">
          总经费支出(万元)
        </a-col>
        <a-col :span="6">
          其中市卫健委科技计费(万元)
        </a-col>
      </a-row>

      <template v-if="value.budget.length > 1">
        <a-row>
          <a-col :span="4">{{value.budget[0].budgetName}}</a-col>
          <a-col :span="4">{{value.budget[0].totalBudget}}</a-col>
          <a-col :span="4">{{value.budget[3].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[3].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[3].govBudget}}</a-col>
        </a-row>
        <a-row>
          <a-col :span="4">{{value.budget[1].budgetName}}</a-col>
          <a-col :span="4">{{value.budget[1].govBudget}}</a-col>
          <a-col :span="4">{{value.budget[4].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[4].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[4].govBudget}}</a-col>
        </a-row>
        <a-row>
          <a-col :span="4">{{value.budget[2].budgetName}}</a-col>
          <a-col :span="4">{{value.budget[2].unitBudget}}</a-col>
          <a-col :span="4">{{value.budget[5].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[5].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[5].govBudget}}</a-col>
        </a-row>
        <a-row>
          <a-col :span="4"></a-col>
          <a-col :span="4"></a-col>
          <a-col :span="4">{{value.budget[6].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[6].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[6].govBudget}}</a-col>
        </a-row>
        <a-row>
          <a-col :span="4"></a-col>
          <a-col :span="4"></a-col>
          <a-col :span="4">{{value.budget[7].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[7].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[7].govBudget}}</a-col>
        </a-row>
        <a-row>
          <a-col :span="4"></a-col>
          <a-col :span="4"></a-col>
          <a-col :span="4">{{value.budget[8].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[8].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[8].govBudget}}</a-col>
        </a-row>
        <a-row>
          <a-col :span="4"></a-col>
          <a-col :span="4"></a-col>
          <a-col :span="4">{{value.budget[9].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[9].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[9].govBudget}}</a-col>
        </a-row>
        <a-row>
          <a-col :span="4"></a-col>
          <a-col :span="4"></a-col>
          <a-col :span="4">{{value.budget[10].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[10].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[10].govBudget}}</a-col>
        </a-row>
        <a-row>
          <a-col :span="4"></a-col>
          <a-col :span="4"></a-col>
          <a-col :span="4">{{value.budget[11].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[11].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[11].govBudget}}</a-col>
        </a-row>
        <a-row>
          <a-col :span="4"></a-col>
          <a-col :span="4"></a-col>
          <a-col :span="4">{{value.budget[12].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[12].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[12].govBudget}}</a-col>
        </a-row>
        <a-row>
          <a-col :span="4"></a-col>
          <a-col :span="4"></a-col>
          <a-col :span="4">{{value.budget[13].budgetName}}</a-col>
          <a-col :span="6">{{value.budget[13].totalBudget}}</a-col>
          <a-col :span="6">{{value.budget[13].govBudget}}</a-col>
        </a-row>
      </template>

      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>项目组成员(含项目负责人)</span>
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="2" class="bg-gray">
          姓名
        </a-col>
        <a-col :span="3" class="bg-gray">
          出生年月
        </a-col>
        <a-col :span="2" class="bg-gray">
          学历
        </a-col>
        <a-col :span="2" class="bg-gray">
          职称
        </a-col>
        <a-col :span="4" class="bg-gray">
          研究方向
        </a-col>
        <a-col :span="6" class="bg-gray">
          工作单位
        </a-col>
        <a-col :span="3" class="bg-gray">
          项目分工
        </a-col>
        <a-col :span="2" class="bg-gray">
          年参加月数
        </a-col>
      </a-row>
      <a-row v-for="(item, index) in value.members" :key="'member' + index">
        <a-col :span="2">
          {{item.name}}
        </a-col>
        <a-col :span="3">
          {{moment(item.birthday).format('YYYY-MM-DD')}}
        </a-col>
        <a-col :span="2">
          {{item.degreeName}}
        </a-col>
        <a-col :span="2">
          {{item.titleName}}
        </a-col>
        <a-col :span="4">
          {{item.researchDirection}}
        </a-col>
        <a-col :span="6">
          {{item.workUnit}}
        </a-col>
        <a-col :span="3">
          {{item.projWork}}
        </a-col>
        <a-col :span="2">
          {{item.forMonths}}
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24">
          <div class="tb-title">
            <span>审核记录</span>
          </div>
        </a-col>
      </a-row>
      <a-row>
        <a-col :span="24">
          <audit-list v-model="value.auditList" />
        </a-col>
      </a-row>
    </div>
  </div>
</template>

<script>
import moment from 'moment'
import AuditList from '@/views/audit/components/auditInfo'

const cont1 = () => { return { id: null, testId: null, contentInfo: '', startTime: null, endTime: null, contentType: 'd37abeb6-14e0-4486-924d-e1e4baf67098', showIndex: 1 } }
const cont2 = () => { return { id: null, testId: null, contentInfo: '', startTime: null, endTime: null, contentType: 'b1fe4003-16ed-482f-8fd5-e34b1482c3d4', showIndex: 1 } }
const cont3 = () => { return { id: null, testId: null, contentInfo: '', startTime: null, endTime: null, contentType: 'b19cf66b-c1bb-4974-a524-114c1895dbd8', showIndex: 1 } }
const cont4 = () => { return { id: null, testId: null, contentInfo: '', startTime: null, endTime: null, contentType: 'cf3abeff-9f1a-420e-b375-6aad33f12080', showIndex: 1 } }
const cont5 = () => { return { id: null, testId: null, contentInfo: '', startTime: null, endTime: null, contentType: 'f1cea24c-d13d-48af-8abb-58eed9367c27', showIndex: 1 } }
const cont6 = () => { return { id: null, testId: null, contentInfo: '', startTime: null, endTime: null, contentType: 'ebcdf2b0-011c-4d40-a064-f22d6f7ec646', showIndex: 1 } }

export default {
  components: {
    AuditList
  },
  name: "TestInfo",
  data () {
    return {
      testInfo: {
        id: '',
        projId: '',
        projName: '',
        startDate: null,
        endDate: null,
        appUnitName: '',
        linkTel: '',
        linkAddress: '',
        linkEmail: '',
        // 实施目标和主要内容
        testContent: '',
        // 总经费
        budgetCount: 0,
        // 市卫计委资助
        budgetGovCount: 0,
        // 起止日期
        startDate: null,
        endDate: null,
        // 申报人
        appPersonName: null,
        sex: null,
        birthYear: null,
        mobile: null,
        degreeName: null,
        titleName: null,
        // 依托单位
        appUnitName: null,
        linkEmail: null,
        linkTel: null,
        linkAddress: null,
        postcode: null,
        authority: null,
        // 项目内容
        cont1: [cont1()],
        cont2: [cont2()],
        cont3: [cont3()],
        cont4: [cont4()],
        cont5: [cont5()],
        cont6: [cont6()],
        // 成员
        members: [],
        // 预期成果形式
        target: [],
        // 经费
        budget: [],
        //审核记录
        auditList: [{ result: '', unit: '', time: '' }],
      }
    }
  },
  props: {
    value: {
      type: Object,
      default: () => {
        return [...this.testInfo]
      }
    }
  },
  created () {
    this.load()
  },
  mounted () {
    this.tinymceSet()
  },
  methods: {
    moment,
    load () {
    },
    tinymceSet () {
      tinymce.remove('#tinymce_dom')
      tinymce.init({
        selector: '#tinymce_dom',
        language: 'zh_CN',
        content_style: "img {max-width:100%;}",
        height: 800,
        inline: true,
        readonly: true,
      })
    },
  }
}
</script>

<style lang="less" scoped>
.from-table {
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  .ant-col {
    padding: 0 16px;
    line-height: 40px;
    min-height: 40px;
    border-left: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bg-gray {
    background-color: #f8fafc;
  }
  .more-row {
    white-space: pre-wrap;
    line-height: 2;
  }
  .flex-layout {
    display: flex;
  }
  // 内容垂直居中
  .special-middle {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }
}
// 项目组 格式修改
.ant-row-flex {
  text-align: center;
  .ant-col {
    padding: 0;
  }
  .bg-gray {
    border-bottom: 1px solid #f0f0f0;
  }
}
.tb-title {
  color: #0079fe;
  display: flex;
  text-align: center;
  height: 40px;
  &::after {
    content: "";
    flex-grow: 1;
    border-top: 1px dashed #d9d9d9;
    transform: translateY(50%);
    margin-left: 10px;
  }
}
</style>