hospital-detail-list.vue 26.9 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
<template>
<div class="container resource close-left-menu" style="min-height: 490px;">

  <div class="pop-banner clearfix">
    <div class="operate-btns"> 
      <a   class="fbtn fb-return" 
        v-on:click="go"
      >返回</a>
    </div>
    <h3 class="current-module">医疗机构明细</h3>
  </div>

 


    <!---------------------!---->

      <div class="epi-form basic-data-form">
  <div class="fpart ">
    <div class="fheader">
      <h4 class="fh-notes">基本资料</h4>
    </div>
    <div class="group-row">
      <div class="form-group">
        <label for="cn1" class="label">医疗机构名称</label>
        <div class="control">
          <input type="text" v-model="hospitalAndDept.mFmed.name"
          disabled="true" id="cn1"  ></div>
      </div>
      <div class="form-group"></div>
    </div>
     <div class="group-row edit-logo">
      <div class="form-group">
        <label for="cn2" class="label">医疗机构图标</label>
        <div class="ep-title">
          <div class="ep-pic">
            <avatars class="avatar" :json-str="avatar"></avatars>
          </div>
          <div class="ep-cast">
            <div class="form-group form-group-long">
              <div class="edit-links" >
               <!--  <upload :class="['edit-links ']" :model.sync="hospitalAndDept.mFmed.pictcontent" type="avator"  >
                  <button class="btn-d btn-d-green" >上传</button>
                </upload> -->
                 
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="group-row">
      <div class="form-group form-radio">
        <label class="label">医疗机构类别</label>
        <div class="control">
          <div class="radio-control">
            <input type="radio" id="radio05" value="0" v-model="hospitalAndDept.mFmed.orgtype" disabled="disabledUp">
            <label class="radio" for="radio05">医院</label>
            <input type="radio" id="radio06" value="1" v-model="hospitalAndDept.mFmed.orgtype" disabled="disabledUp">
            <label class="radio" for="radio06">诊所</label>
            <input type="radio" id="radio06" value="2" v-model="hospitalAndDept.mFmed.orgtype" disabled="disabledUp">
            <label class="radio" for="radio06">卫生院</label>
          </div>
        </div>
      </div>
      <div class="form-group select-style">
        <label for="cn8" class="label">医疗机构等级</label>
        <div class="control">
          <select-ui :list="ctns.MEDORGRANK" :selected.sync="hospitalAndDept.mFmed.orgrank" empty-text="请选择"   v-bind:disabled="disabledUp"></select-ui>
          <select-ui :list="ctns.MEDORGGRADE" :selected.sync="hospitalAndDept.mFmed.orggrade" empty-text="请选择"  v-bind:disabled="disabledUp"  ></select-ui>
        </div>
      </div>
    </div>
    <div class="group-row">
        <div class="form-group">
          <label for="cn1" class="label">省份</label>
         <div class="control">
              <div class="address-select" >
                <city :province.sync="hospitalAndDept.mFmed.province"
                  :city.sync="hospitalAndDept.mFmed.city"
                  :area.sync="hospitalAndDept.mFmed.district"
                  ></city>
              </div>
            </div>
        </div>
        <div class="form-group ">
          <label for="cn1" class="label">所属区域</label>
          <div class="control select-style">
           <select-ui :list="ctns.ROLEAREA" :empty="false" :selected.sync="hospitalAndDept.mFmed.rolearea" style="width:200px;" v-bind:disabled="disabledUp" >
                    </select-ui>
          </div>
        </div>
      </div>
   <!--  <div class="form-group">
        <label class="label">地址</label>
         <div class="control">
              <div class="address-select" >
                <city :province.sync="hospitalAndDept.mFmed.province"
                  :city.sync="hospitalAndDept.mFmed.city"
                  :area.sync="hospitalAndDept.mFmed.district"
                  ></city>
              </div>
            </div>
      </div> -->
    <div class="form-group">
      <label for="cn1" class="label">详细地址</label>
      <div class="control">
        <input type="text" id="cn1" v-model="hospitalAndDept.mFmed.address" v-bind:disabled="disabledUp"></div>
    </div>
    <div class="group-row">
      <div class="form-group">
        <label for="cn1" class="label">联系人</label>
        <div class="control">
          <input id="cn1" type="text"  v-model="hospitalAndDept.mFmed.linkman" v-bind:disabled="disabledUp"></div>
      </div>
      <div class="form-group">
        <label for="cn1" class="label">联系电话</label>
        <div class="control">
          <input id="cn1" type="text" v-model="hospitalAndDept.mFmed.contacttel" v-bind:disabled="disabledUp"></div>
      </div>
    </div>
    <div class="group-row">
      <div class="form-group">
        <label for="cn1" class="label label-name-long">
          物资部门
          <br>负责人</label>
        <div class="control">
          <input id="cn1" type="text" v-model="hospitalAndDept.mFmed.materialdeptlinkman" v-bind:disabled="disabledUp"></div>
      </div>
      <div class="form-group">
        <label for="cn1" class="label label-name-long">
          物资部门
          <br>电话</label>
        <div class="control">
          <input id="cn1" type="text" v-model="hospitalAndDept.mFmed.materialdepttel" v-bind:disabled="disabledUp"></div>
      </div>
    </div>
    <div class="group-row">
      <div class="form-group">
        <label for="cn1" class="label label-name-long">
          药剂部门
          <br>负责人</label>
        <div class="control">
          <input id="cn1" type="text" v-model="hospitalAndDept.mFmed.drugdeptlinkman" v-bind:disabled="disabledUp"></div>
      </div>
      <div class="form-group">
        <label for="cn1" class="label label-name-long">
          药剂部门
          <br>电话</label>
        <div class="control">
          <input id="cn1" type="text" v-model="hospitalAndDept.mFmed.drugdeptlinktel" v-bind:disabled="disabledUp"></div>
      </div>
    </div>
  </div>
</div>
<!--basic-data-form end-->
<div class="fpart">
  <div class="fheader">
    <h4 class="fh-book">科室信息</h4>
    <div class="group-btns fr">  
    
        

    </div>
</div>
<!--department start -->
<div class="department clearfix">
<!--department-category start-->
<div class="department-category fl">
  <!--多加一层后期可以加scroll-->
  <ul class="department-category-root">
    <template v-for="(indexI,vo) in mFHDeptList">
      <li :class="{'active':mFHDeptActive[indexI]}" >
        <a @click="deptShow($index,vo.mfhdept.guid)">{{ vo.mfhdept.hdeptcode }}{{ vo.mfhdept.hdeptname }}</a>

        <ul v-for=" (indexJ,list) in vo.listMfhdept">
          <li v-show="mFHDeptActive[indexI]">
            <a @click="getDept(list.guid)">{{ list.hdeptcode }}{{ list.hdeptname }}</a>
          </li>
        </ul>

      </li>
    </template>
  </ul>
</div>
<!--department-category end-->
<!--department-info start-->
<div class="department-info">
  <div class="epi-form">
    <div class="group-row">
      <div class="form-group">
        <label for="cn1" class="label">编码</label>
        <div class="control">
          <input id="cn1"  type="text"  v-model="mFHDept.hdeptcode" v-bind:disabled="disabledDown"></div>
      </div>
      <div class="form-group">
        <label for="cn1" class="label">上级</label>
        <div class="control select-style">
<!--           <select-ui :list="mFHDeptTopList" :selected="false" :empty="false" v-model='mFHDept.upperguid' v-bind:disabled="disabledDown"> -->
          <select v-model="mFHDept.upperguid" v-bind:disabled="disabledDown" >
            <option :value="item.value" v-for="item in mFHDeptTopList">{{item.label}}</option>
          </select>
        </div>
        </div>
        <div class="group-row">
          <div class="form-group">
            <label for="cn1" class="label">名称</label>
            <div class="control">
              <input id="cn1" type="text"  v-model="mFHDept.hdeptname" v-bind:disabled="disabledDown"></div>
          </div>
          <div class="form-group">
            <label for="cn1" class="label">HIS编码</label>
            <div class="control">
              <input id="cn1" type="text"  v-model="mFHDept.hiscode" v-bind:disabled="disabledDown"></div>
          </div>
        </div>
        <div class="group-row">
          <div class="form-group">
            <label for="cn1" class="label">订货权限</label>
            <div class="control select-style">
              <select-ui :list="ctns.ISORDERRIGHT" :selected="false" v-model='mFHDept.isorderright' empty-text="请选择" v-bind:disabled="disabledDown"></select-ui>
            </div>
          </div>
          <div class="form-group">
            <label for="cn1" class="label">类别</label>
            <div class="control select-style">
              <select-ui :list="ctns.medorgtype" :selected="false" v-model='mFHDept.category' empty-text="请选择" v-bind:disabled="disabledDown"></select-ui>
            </div>
          </div>
        </div>
        <div class="group-row">
          <div class="form-group">
            <label for="cn1" class="label">主管</label>
            <div class="control">
              <input id="cn1"  type="text"  v-model="mFHDept.director" v-bind:disabled="disabledDown"></div>
          </div>
          <div class="form-group">
            <label for="cn1" class="label">状态</label>
            <div class="control select-style">
              <select-ui :list="ctns.MFHDEPTSTATE" :selected="false" v-model='mFHDept.state' empty-text="请选择"   v-bind:disabled="disabledDown"></select-ui>
            </div>
            <div class="control">
              <div class="checkbox-control checkbox-green checkbox-inline">
                <input name="cb" id="cball" type="checkbox" v-model="mFHDept.islastlevel" 
                v-bind:true-value="ctns.ISLASTLEVELY"
                v-bind:false-value="ctns.ISLASTLEVELN"
                v-bind:disabled="disabledDown">
                <label class="checkbox" for="cball">末级</label>
              </div>
            </div>
          </div>
        </div>
      </div>
      <template v-if="(mFHDept.upperguid != '-1') && (mFHDept.isorderright == 'Y') && (mFHDept.state == 'Y') && (mFHDept.islastlevel == 'Y' || mFHDept.islastlevel)">
      <div class="di-row di-top-border">
        <h5>送货周期</h5>
      </div>
      <div class="di-content di-top-border">
        <div class="delivery-period">
          <table>
            <thead>
              <tr>
                <th class="w90"></th>
                <th class="w70">周一</th>
                <th class="w70">周二</th>
                <th class="w70">周三</th>
                <th class="w70">周四</th>
                <th class="w70">周五</th>
                <th class="w70">周六</th>
                <th class="w70">周日</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>上午</td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="up1" type="checkbox" v-model="sevenDays.mondayAm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="up1"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="2" type="checkbox" v-model="sevenDays.tuesdayAm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="2"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="3" type="checkbox" v-model="sevenDays.wednesdayAm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="3"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="4" type="checkbox" v-model="sevenDays.thursdayAm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="4"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="5" type="checkbox" v-model="sevenDays.fridayAm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="5"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="6" type="checkbox" v-model="sevenDays.saturdayAm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="6"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="7" type="checkbox" v-model="sevenDays.sundayAm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="7"></label>
                  </div>
                </td>
              </tr>
              <tr>
                <td>下午</td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="8" type="checkbox" v-model="sevenDays.mondayPm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="8"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="9" type="checkbox" v-model="sevenDays.tuesdayPm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="9"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="10" type="checkbox" v-model="sevenDays.wednesdayPm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="10"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="11" type="checkbox" v-model="sevenDays.thursdayPm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="11"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="12" type="checkbox" v-model="sevenDays.fridayPm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="12"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="13" type="checkbox" v-model="sevenDays.saturdayPm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="13"></label>
                  </div>
                </td>
                <td>
                  <div class="checkbox-control checkbox-green checkbox-inline">
                    <input name="cb" id="14" type="checkbox" v-model="sevenDays.sundayPm" v-bind:disabled="disabledDown">
                    <label class="checkbox" for="14"></label>
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <div class="di-row di-top-border">
        <h5>库房管理品种</h5>
        <div class="radio-control">
          <input type="radio" name="radioio1" id="radio03" value="1" v-model="mFHDept.goodsmgmthod" :disabled="disabledDown">
          <label class="radio" for="radio03" @click="hide(false,false,false)" >全品种管理</label>
          <input type="radio" name="radioio1" id="radio04" value="2" v-model="mFHDept.goodsmgmthod" :disabled="disabledDown">
          <label class="radio" for="radio04" @click="hide(true,false,true)" >指定品种管理</label>
        </div>
      </div>
      <div class="di-row di-top-border radio-tab-1" v-show="activeStep">
        <div class="radio-control fl ">
          <input type="radio" name="radioio11" id="radio031" checked="checked">
          <label class="radio" for="radio031" v-bind:class="{'active':active1}" @click="hide(true,false,true)">查看所有明细</label>
          <input type="radio" name="radioio11" id="radio041">
          <label class="radio" for="radio041" v-bind:class="{'active':active2}" @click="hide(false,true,true)">指定品种</label>
        </div>
        <div class="min-search min-search-green fr">
          <template v-if="active1" >
            <input class="min-search-txt" type="text" placeholder="输入商品名称" v-model="search.search_LIKE_goodsname">
            <button class="min-search-btn" @click="getDeptGoods(goodscateDeptGoods, true)"></button>
          </template>
          <template v-if="active2">
            <input class="min-search-txt" type="text" placeholder="输入商品名称" v-model="search1.search_LIKE_goodsname">
            <button class="min-search-btn" @click="getDeptAddGoods(goodscateDeptAddGoods, true)"></button>
          </template>
        </div>
      </div>
      <div class="basic-methanics-con" v-show="firstStep">
        <div class="basic-methanics-con-left ">
          <h3>类别</h3>
          <ul class="basic-methanics-ul-1 ">
            <li class=" radio-control" @click="getDeptGoods('01')">
              <input type="radio" id="1211" name="23" checked="checked">
              <label class="radio" for="1211">医疗器械</label>
            </li>
            <li class=" radio-control" @click="getDeptGoods('02')">
              <input type="radio" id="1221" name="23">
              <label class="radio" for="1221">药品</label>
            </li>
            <li class=" radio-control" @click="getDeptGoods('03')">
              <input type="radio" id="1231" name="23">
              <label class="radio" for="1231">后勤物资</label>
            </li>
            <li class=" radio-control" @click="getDeptGoods('04')">
              <input type="radio" id="1241" name="23">
              <label class="radio" for="1241">消毒用品</label>
            </li>
            <li class=" radio-control" @click="getDeptGoods('05')">
              <input type="radio" id="1251" name="23">
              <label class="radio" for="1251">洗涤用品</label>
            </li>
            <li class=" radio-control" @click="getDeptGoods('05')">
              <input type="radio" id="1261" name="23">
              <label class="radio" for="1261">中药材</label>
            </li>
            <li class=" radio-control" @click="getDeptGoods('05')">
              <input type="radio" id="1271" name="23">
              <label class="radio" for="1271">设施设备</label>
            </li>
            <li class=" radio-control" @click="getDeptGoods('05')">
              <input type="radio" id="1281" name="23">
              <label class="radio" for="1281">其它</label>
            </li>
          </ul>
        </div>

        <div class="basic-methanics-con-right basic-s" >
          <table class="di-table itable itable-lr-blank data-ind-table">
            <thead>
              <tr>
                <th class="w120">序号</th>
                <th class="">商品</th>
                <th class="w80">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr v-for="mfmedgoods in mfmedgoodsList">
                <td class="">{{$index + 1}}</td>
                <td class="t-left">
                  <p>{{mfmedgoods.goodscode}}</p>
                  <a class="p-tit-green" href="javascript:;">{{mfmedgoods.goodsname}}</a>
                  <p>{{mfmedgoods.producer}}</p>
                  <p>{{mfmedgoods.itemcatagory}}</p>
                  <p>{{mfmedgoods.productstandardcode}}</p>
                </td>
                <td>
                  <a class="btn-d btn-d-activate btn-w60" href="javascript:"v-if="'/hospital/searchList:delDeptGoods' | myqx"  @click="delGoods(mfmedgoods.guid)">删除</a>
                </td>
              </tr>
            </tbody>
          </table>

          <div class="pagination pagination-min m-20-0"> <em class="page">明细条目数【{{ search.total }}】</em>
            <pagination 
               @page-change="getDeptGoods(goodscateDeptGoods, false)" 
               :class="['m-20-0']"
               :page-no.sync="search.page" 
               :total-pages.sync="search.totalPages"></pagination>
          </div>

        </div>

      </div>

      <div class="basic-methanics-con" v-show="secondStep">
        <div class="basic-methanics-con-left">
          <h3>类别</h3>
          <ul class="basic-methanics-ul-1 ">
            <li class=" radio-control" @click="getDeptAddGoods('01')">
              <input type="radio" id="1212" name="231" checked="checked">
              <label class="radio" for="1212">医疗器械</label>
            </li>
            <li class=" radio-control" @click="getDeptAddGoods('02')">
              <input type="radio" id="1222" name="231">
              <label class="radio" for="1222">药品</label>
            </li>
            <li class=" radio-control" @click="getDeptAddGoods('03')">
              <input type="radio" id="1232" name="231">
              <label class="radio" for="1232">后勤物资</label>
            </li>
            <li class=" radio-control" @click="getDeptAddGoods('04')">
              <input type="radio" id="1242" name="231">
              <label class="radio" for="1242">消毒用品</label>
            </li>
            <li class=" radio-control" @click="getDeptAddGoods('05')">
              <input type="radio" id="1252" name="231">
              <label class="radio" for="1252">洗涤用品</label>
            </li>
            <li class=" radio-control" @click="getDeptAddGoods('06')">
              <input type="radio" id="1262" name="231">
              <label class="radio" for="1262">中药材</label>
            </li>
            <li class=" radio-control" @click="getDeptAddGoods('07')">
              <input type="radio" id="1272" name="231">
              <label class="radio" for="1272">设施设备</label>
            </li>
            <li class=" radio-control" @click="getDeptAddGoods('08')">
              <input type="radio" id="1282" name="231">
              <label class="radio" for="1282">其它</label>
            </li>
          </ul>
        </div>

        <div class="basic-methanics-con-right basic-s" >
          <table class="di-table itable itable-lr-blank data-ind-table">
            <thead>
              <tr>
                <th class="w120">序号</th>
                <th class="">商品</th>
                <th class="w80">操作</th>
              </tr>
            </thead>
            <tbody>
              <tr v-for="mfmedaddgoods in mfmedgoodsAddList">
                <td class="">{{$index + 1}}</td>
                <td class="t-left">
                  <p>{{mfmedaddgoods.goodscode}}</p>
                  <a class="p-tit-green" href="javascript:;">{{mfmedaddgoods.goodsname}}</a>
                  <p>{{mfmedaddgoods.producer}}</p>
                  <p>{{mfmedaddgoods.itemcatagory}}</p>
                  <p>{{mfmedaddgoods.productstandardcode}}</p>
                </td>
                <td>
                  <a class="btn-d btn-d-activate btn-w60" href="javascript:"v-if="'/hospital/searchList:addDeptGoods' | myqx" @click="addGoods(mfmedaddgoods.guid)">添加</a>
                </td>
              </tr>
            </tbody>
          </table>

          <div class="pagination pagination-min m-20-0">
            <em class="page">明细条目数【{{ search1.total }}】</em>
            <pagination 
               @page-change="getDeptAddGoods(goodscateDeptAddGoods, false)" 
               :class="['m-20-0']"
               :page-no.sync="search1.page" 
               :total-pages.sync="search1.totalPages"></pagination>
          </div>

        </div>

      </div>
      <!--di-type-show two end-->
      <!--department-info end--> 
      </div>
    </template>
    <!--department end --> 
  </div>

    


      
  </div>
  <!-- -->



</template>
<script>
module.exports={
  data:function(){
    return {
        avatar:'',
      id:'',
      mFHDept:{},
      mFHDeptList:[],
      mFHDeptActive:[],
      mFHDeptTopList:[],
      goodscateDeptGoods:'01',
      goodscateDeptAddGoods:'01',
      mfmedgoods:{},
      mfmedgoodsList:{},
      mfmedgoodsAddList:[],
      hospitalDeptDetail:{},
      hospitalStorageList:{},
      hospitalAndDept:{},
      deptType:{},
      mfhdeptgoods:{},
      subLevel:{},
      activeDeptIndex: -1,
      deptInfo: {
        type: {},
        parent: {}
      },
      deliverCycle: [],
      deptTypeSelect: [{
        value: "",
        label: ""
      }],
      parentDeptOptions:[],
      sevenDays:{
        mondayAm: false,
        mondayPm: false,
        tuesdayAm: false,
        tuesdayPm: false,
        wednesdayAm: false,
        wednesdayPm: false,
        thursdayAm: false,
        thursdayPm: false,
        fridayAm: false,
        fridayPm: false,
        saturdayAm: false,
        saturdayPm: false,
        sundayAm: false,
        sundayPm: false,
      },
      disabledUp:true,
      disabledDown:true,
      firstStep: false,
      secondStep: false,
      activeStep:false,
      active1:true,
      active2:false,
      search: {
        search_EQ_medguid:'',
        search_EQ_goodscate:'',
        search_EQ_mfhdeptguid:'',
        search_LIKE_goodsname:'',
        pageSize: 3,
        page: 1,
        totalPages: 0,
        total: 0,
      },
       search1: {
        search_EQ_medguid:'',
        search_EQ_goodscate:'',
        search_EQ_mfhdeptguid:'',
        search_LIKE_goodsname:'',
        pageSize: 3,
        page: 1,
        totalPages: 0,
        total: 0,
      },
      authoritySetting: {
          oneSaveFlag:true,
          oneUpdateFlag:true,

          twoSaveFlag:true,
          twoUpdateFlag:true,
          twoAddFlag:true,
          twoDeleteFlag:true,
      },
      goodsParam:{
        param_EQ_goodsGuid:'',
        param_EQ_mfhdeptGuid:'',
      }
    }
  },methods:{
    go:function(){
        history.go(-1);
    },
    getData:function(casetxt){//请求数据     

      Ajax.get('/api/goverment_hospital',{
        id:this.$route.params.id
      }).then(function(res){
          var result=res.data.data;

          /*if(result.data){
              this.$set('mechanics',result.data);
          }*/

          this.$set('hospitalAndDept',result);
          if(this.hospitalAndDept.mFmed.pictcontent!=null){
              this.avatar = this.hospitalAndDept.mFmed.pictcontent;
              
          }else{
                  this.$set('avatar', null);
          }

      }.bind(this))
    }
  },route:{
    activate:function(){
      this.getData();
    }
  }
}
</script>