hospital-stockout-view.vue 57.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 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208
<template>
    <div>
        <div class="container resource close-left-menu" style="min-height: 491px;">
            <!-- -->
            <div class="purchase-add-plan" v-show="fifthStep">
                <div class="step-tips step-3 clearfix">
                    <div class="step-item"><span>1</span>从收藏夹中选择模版</div>
                    <div class="step-item"><span>2</span>直接选择商品</div>
                    <div class="step-item active"><span>3</span>生成计划单</div>
                </div>
                <div class="pap-time-tit">
                    医院采购计划单【{{medPlanBillNo}}】提交成功!
                </div>
                <div class="stepok-tips" v-if="hospitalBillTypeVO.supplierBillInfoList.length > 0">
                    <strong>供应商采购订单</strong>
                    <div v-for="trsupplierpo in hospitalBillTypeVO.supplierBillInfoList">
                        <p>{{trsupplierpo.billno}}】已发送给供应商【{{trsupplierpo.suppliername}}】,品规数【{{trsupplierpo.countsum}}</p>
                    </div>
                </div>
                <div class="stepok-tips" v-if="hospitalBillTypeVO.distrbBillInfoList.length > 0">
                    <strong>配送商采购订单</strong>
                    <div v-for="trdistrbpo in hospitalBillTypeVO.distrbBillInfoList">
                        <p>{{trdistrbpo.billno}}】已发送给配送商【{{trdistrbpo.distrbname}}】,品规数【{{trsupplierpo.countsum}}</p>
                    </div>
                </div>
                <div class="stepok-tips mt-0">
                </div>

                <div class="step-btn mt-0">
                    <a @click="continueCreateBill">继续制订计划单</a>
                </div>
            </div>

            <!--purchase-add-plan start 外部采购计划-->
            <div class="purchase-add-plan" v-show="sixStep">
                <!-- v-show="sixStep" -->
                <div class="step-tips step-3 clearfix">
                    <div class="step-item">
                        <span>1</span>从收藏夹中选择模版</div>
                    <div class="step-item active">
                        <span>2</span>导入外部文件</div>
                    <div class="step-item">
                        <span>3</span>生成计划单</div>
                </div>
                <div class="step-btn">
                    <a href="javascript:void(0)" @click="upCollectionAdd" v-if="'/hospital/trmedplan:upCollectionAdd' | myqx">返回,上一步&gt;&gt;</a>
                    <a href="javascript:void(0)" @click="judgeCollectionAdd" v-if="'/hospital/trmedplan:createTrmedplan' | myqx">下一步,生成订单&gt;&gt;</a>
                </div>
                <!--  <div class="group-row t-left">
          <a href="https://obs.myhwclouds.com/csylcloud-file/templet/%E7%9C%81%E7%9B%B43%E9%99%A2%E9%87%87%E8%B4%AD%E8%AE%A1%E5%88%92-%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xls" class="fast-search-form-btn btn-d btn-d-lg btn-d-activate btn-d-circle">下载模板</a>
          <upload-excel :class="['fbtn fb-upload btn-d btn-d-lg btn-d-activate btn-d-circle mt-7']"
          :tag="tagType"
          :type="fileType"
          :label="fileLabel"
          :exceltype="med"
          v-on:file-change="getBackTipsPlan"
          ></upload-excel>
      </div> -->
                <div class="h-30">
                    <div class="pap-tit w459 fl lh-30">
                        共导入<em> {{getsumlist.sumSupplier}}</em>家供应商,<em> {{getsumlist.sumCount}}</em>条明细,金额合计 <em> {{getsumlist.sumMoney}}</em>
                    </div>
                </div>
                <div class="clearfix">
                    <div>
                        <div>
                            <table class="itable itable-bordertop itable-td-long-text  mt-15">
                                <tbody>
                                <tr v-for="getsum in getSumMsgList">
                                    <td>{{$index + 1 | getIndex}}</td>
                                    <td>{{getsum.suppliername}}</td>
                                    <td>{{getsum.goodsum}}个品种</td>
                                    <td>{{getsum.taxsum | numDigit 2 | numFmt}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="clearfix mt-15">
                    <div>
                        <h3 class="text-color-blue">商品列表</h3>
                        <div class="pap-min-h">
                            <table class="itable itable-bordertop itable-td-long-text">
                                <thead>
                                <tr>
                                    <th class="w50">序号</th>
                                    <th class="w140">商品</th>
                                    <th class="w60">规格</th>
                                    <th class="w60">订货数</th>
                                    <th class="w60">包装价格</th>
                                    <th class="w60">含税金额</th>
                                    <th class="w80">生产企业</th>
                                    <th class="w120">供应商</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr v-for="trcollectionmedplan in findTptrmedPlanDetailList">
                                    <td>{{$index+1}}</td>
                                    <td class="t-left pr10">{{trcollectionmedplan.goodsname}}</td>
                                    <td class="t-right pr10">{{trcollectionmedplan.goodsspec}}</td>
                                    <td class="t-right pr10">{{trcollectionmedplan.poqty}}{{trcollectionmedplan.unit}}</td>
                                    <td>{{trcollectionmedplan.taxprice | numDigit 2 | numFmt}}
                                        <!-- <input type="text" class="edit-number" v-model="trcollectionmedplan.taxprice" @change="checkInfotaxprices(trcollectionmedplan.taxprice, $index, 3,trcollectionmedplan.poqty,trcollectionmedplan.guid,trcollectionmedplan.suppliername)"> --></td>
                                    <td v-if="trcollectionmedplan.poqty != null & trcollectionmedplan.poqty != ''">{{trcollectionmedplan.poqty * trcollectionmedplan.taxprice | numDigit 2 | numFmt}}</td>
                                    <td class="t-left pr10">{{trcollectionmedplan.productor}}</td>
                                    <td>
                                        <select v-model="trcollectionmedplan.supplierguid" @change="selectname(trcollectionmedplan.guid,trcollectionmedplan.supplierguid,$index)" :class='{"text-color-red":trcollectionmedplan.falg}'>
                                            <option v-for="option in trcollectionmedplan.supplierList" v-bind:value="option.supplierguid">
                                                {{option.suppliername}}
                                            </option>
                                        </select>

                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <pagination @page-change="getSDDS" :class="['m-20-0']" :page-no.sync="search1.page" :total-pages.sync="search1.totalPages">
                            </pagination>
                            <div class="step-btn">
                                <a href="javascript:void(0)" @click="upCollectionAdd" v-if="'/hospital/trmedplan:upCollectionAdd' | myqx">返回,上一步&gt;&gt;</a>
                                <a href="javascript:void(0)" @click="judgeCollectionAdd" v-if="'/hospital/trmedplan:createTrmedplan' | myqx">下一步,生成订单&gt;&gt;</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--生成外部计划单 立继武-->
            <div class="purchase-add-plan" v-show="sevenStep">
                <div class="step-tips step-3 clearfix">
                    <div class="step-item"><span>1</span>从收藏夹中选择模版</div>
                    <div class="step-item"><span>2</span>直接选择商品</div>
                    <div class="step-item active"><span>3</span>生成计划单</div>
                </div>
                <div class="fpart pd-form">
                    <div class="fheader">
                        <h4 class="fh-shop">医院采购计划单</h4>
                        <div class="from-button fr">
                            <!-- <a href="javascript:;" class="green-button icon collect">收藏<i>|</i></a> -->
                            <a href="javascript:void(0);" class="green-button icon" @click="deletePlan()" v-if="'hospital/trmedplan:deletePlan' | myqx">废弃此单
                                <i>|</i></a>
                            <a href="javascript:;" class="green-button icon save" @click="saveTrmedExternalplan" v-if="'hospital/trmedplan:saveTrmedExternalplan' | myqx">保存<i>|</i></a>
                            <a href="javascript:;" class="blue-button icon delivery" @click="commitTrmedExternalplan" v-if="'hospital/trmedplan:commitTrmedExternalplan' | myqx">飞送</a>
                            <!-- <a href="javascript:;" v-show="!sh" class="blue-button icon delivery" v-if="'hospital/trmedplan:commitTrmedExternalplan' | myqx">飞送</a> -->
                        </div>
                    </div>
                    <div class="group-row group-row-4">
                        <div class="form-group form-label">
                            <label for="ccn1" class="label">单据类型</label>
                            <div class="control">
                                <select-ui :list="billtypeList" :selected.sync="false" :emptyText="" v-model="trmedplan.billtype" class='inp4' id="ccn1">
                                </select-ui>
                            </div>
                        </div>
                        <div class="form-group form-required form-label">
                            <label for="ccn2" class="label">要求到货日期</label>
                            <div>
                                <datepicker :target.sync="trmedplan.planenddate | getYMD" inpclass='inp6' id='ccn2'></datepicker>
                            </div>
                        </div>
                        <div class="form-group form-label">
                            <label for="ccn3" class="label">要货科室</label>
                            <div class="control">
                                <select-ui :list="departmentsList" :selected.sync="false" :emptyText="" v-model="trmedplan.meddeptguid" class='inp4' id='ccn3'>
                                </select-ui>
                            </div>
                        </div>
                        <div class="form-group form-label">
                            <label for="ccn4" class="label">要货库房</label>
                            <div class="control select-style">
                                <!-- <select-ui :list="storeList" :selected.sync="false" :emptyText="" v-model="trmedplan.medstoreguid" class='inp4' id='ccn4'>
              </select-ui> -->
                                <select v-model="trmedplan.medstoreguid" @change="addresslist(trmedplan.medstoreguid)" class="inp4">
                                    <option v-for="option in storeList" v-bind:value="option.value">
                                        {{option.label}}
                                    </option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="group-row">
                        <div class="form-group form-label w1003">
                            <label for="cc6" class="label">收货地点</label>
                            <div class="control input-has-txt w1003">
                                <input class="inp4" maxlength="30" v-rule type="text" id="cc6" v-model="trmedplan.address" placeholder="提示:长度不能超过30个汉字">
                                <!-- filed1 -->
                            </div>
                        </div>
                    </div>
                    <div class="group-row">
                        <div class="form-label">
                            <label for="ccn5" class="label">备注</label>
                            <textarea id="ccn5" rows="4" v-model="trmedplan.memo" class="inp2"></textarea>
                        </div>
                    </div>
                </div>
                <table class="itable itable-td-long-text m-20-0">
                    <thead>
                    <tr>
                        <th class="w50">序号</th>
                        <th class="w200 t-left">
                            <div class="p-lr-10">商品</div>
                        </th>
                        <th class="w80">订货数</th>
                        <th class="w60">订货单位</th>
                        <th class="w80">包装价格</th>
                        <th class="w100">含税金额</th>
                        <th class="w120">生产企业</th>
                        <th class="w110">供应商</th>
                        <th class="w70">业务员</th>
                        <th class="w90">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="trmedplandetail in findTptrmedPlanDetailList">
                        <td>{{$index + 1 | getIndex}}
                            <div class="pro-pic pro-pic-lg" v-if="trmedplandetail.pictContent != null && trmedplandetail.pictContent != undefined && trmedplandetail.pictContent != ''">
                                <imagebox v-bind:imgarr="trmedplandetail.pictContent | original">
                                    <img class="pro-pic pro-pic-lg" style="margin-top:0px;" :src="trmedplandetail.pictContent | thumbnail">
                                    <span class="pic-max blue-search">
                						</span>
                                </imagebox>
                            </div>
                            <div v-else>
                                <img class="pro-pic pro-pic-lg" style="margin-top:0px;" src="/images/default.jpg">
                            </div>
                        </td>
                        <td class="w210 t-left">
                            <div class="p-lr-10"> {{trmedplandetail.goodscode}} <br/>
                                <span class="p-tit-green">{{trmedplandetail.goodsname}}</span> <br/> {{trmedplandetail.goodsspec}} <br/> {{trmedplandetail.producer}} <br/> {{trmedplandetail.registKey}}
                            </div>
                        </td>
                        <td><input type="text" class="edit-number" v-model="trmedplandetail.poqty" @change="checkInfo(trmedplandetail.poqty, $index, 2)"></td>
                        <td class="t-right pr10">{{trmedplandetail.unit}}</td>
                        <td class="t-right pr10">{{trmedplandetail.taxprice | numDigit 2 | numFmt}}</td>
                        <td class="t-right pr10" v-if="trmedplandetail.poqty != null & trmedplandetail.poqty != ''">{{trmedplandetail.poqty * trmedplandetail.taxprice | numDigit 2 | numFmt}}</td>
                        <td class="t-right pr10" v-else>{{0 * trmedplandetail.taxprice | numDigit 2 | numFmt}}</td>
                        <td class="t-left pr10">{{trmedplandetail.productor}}</td>
                        <td class="t-left pr10">{{trmedplandetail.suppliername}}</td>
                        <td class="t-left pr10">{{trmedplandetail.buyername}}</td>
                        <td>
                            <a class="btn button-red" href="javascript:void(0);" @click="deleteTrmedPlanDetailList($index,trmedplandetail.guid,trmedplandetail.billno,trmedplandetail.rowno,trmedplandetail.rownumber)">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <pagination @page-change="getSDDS" :class="['m-20-0']" :page-no.sync="search1.page" :total-pages.sync="search1.totalPages">
                </pagination>
            </div>
            <!-- -->
            <!--star 9-9 弹出导入提示信息-->
            <div class="modal " :class="backMessage.showDialog=='Y'?'':'hide'">
                <div class="container resource">
                    <div class="audit-detail" style="width:540px; margin-left: 250px; padding-right: 10px;">
                        <span class="close-win" v-on:click="closeDialog()"></span>
                        <div class="sdiv-9-9b" style="">
                            <a class="btn-d btn-d-activate btn-d-lg" href="javascript:;">错误信息提示</a>
                        </div>
                        <div class="status-process wbe-0 clearfix pd20" style="padding-top:0px; max-height: 400px; overflow-y: auto;">
                            <p style="color:#606f7a;font-size:14px;">
                            </p>
                            <div class="sp-head sp-headb mb-0" v-for="m in backMessage.mList">
								<span class="sp-col ml-0">
                    <span class="control radio-control ">
                      <p class="w30 fl">{{m.errorRowNo}}</p>
                      <p class="fl t-center text-color-yellow mr-20">{{m.errorType}}</p>
                      <p class="fl t-center mr-20">{{m.errorGoodCode}}</p>
                      <p class="fl t-center mr-20">{{m.errorGoodName}}</p>
                    </span>
								</span>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <!--star 9-9 受理弹出-->

            <!--star  更换供应商 弹框    !isShowSupModel?'':'hide'-->
            <div class="modal" :class="!isShowSupModel?'':'hide'">
                <div class="container resource">
                    <div class="audit-detail ml-0 w1003">
                        <span class="close-win" v-on:click="closeDialog()"></span>
                        <div class="sdiv-9-9b no-border pb0">
                            <p class="t-center">检测到您有
                                <b class="text-color-yellow">{{isPrioritySupList.length}} </b> 个品种不是首选供应商的,依据【运营】政策,请填写原因!
                            </p>
                        </div>
                        <div class="status-process wbe-0 clearfix pd20">
                            <p style="color:#606f7a;font-size:14px;">
                            </p>
                            <div class="sp-head sp-headb mb-0">
                                <div class="ctable ct-parentr mt-10" style="padding-top:0px; max-height: 350px; overflow-y: auto;">
                                    <div class="ct-head">
                                        <span class="ct-col w50">序号</span>
                                        <span class="ct-col w270">商品</span>
                                        <span class="ct-col w200">首选供应商</span>
                                        <span class="ct-col w200">您选择的供应商</span>
                                        <span class="ct-col w150 t-center ml-20">请填写原因</span>
                                    </div>
                                    <div class="ct-row" v-for="mx in isPrioritySupList">
                                        <div class="row-line">
											<span class="ct-col w50  v-top">
												{{$index+1 | getIndex}}
											</span>
                                            <span class="ct-col w270 t-left break-it  v-top">
												<div class="p-lr-10">
													{{mx.goodscode}}<br/><span class="p-tit-green">{{mx.goodsname}}</span>
											<br/> {{mx.goodsspec}}
											<br/> {{mx.productor}}
											<br/> {{mx.registKey}}
										</div>
										</span>
                                            <!--首选供应商-->
                                            <span class="ct-col w200  v-top">
												{{mx.prioritysuppliername}}
										</span>
                                            <!--你选择的供应商-->
                                            <span class="ct-col w200">
												{{mx.suppliername}}
										</span>
                                            <!-- 缺货原因 -->
                                            <span class="ct-col w150   ml-20">
												<input type="text" class="edit-number"  v-model="mx.memo" placeholder="无">
										</span>
                                        </div>

                                    </div>
                                </div>
                                <div class="w240" style="margin:10px auto;">
                                    <button class="btn button-green fl mt-15" v-on:click="closeDialog()">取 消</button>
                                    <button class="btn button-green fr mt-15" v-on:click="commitReason()">提 交</button>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <!--star 更换供应商 弹框   end-->
            <!--新加提示信息 end-->
            <div class="roll-bg" v-show='requestS'>
                <div class="w60" style="margin:0 auto;">
                    <img src="/images/roll.gif">
                </div>
                <div class="container resource t-center text-color-red">
                    正在处理中,请勿关闭!
                </div>
            </div>
        </div>

    </div>
</template>
<style type="text/css">
    .filed1::-ms-input-placeholder {
        text-align: right;
    }

    .filed1::-webkit-input-placeholder {
        text-align: right;
    }
</style>
<script>
    module.exports = {

        data: function() {
            return {
                requestS: false,
                sh: true,
                fileType: 'file',
                tagType: 'a',
                med: 'plan',
                fileLabel: '选择文件',
                // 导入之后信息提示
                backMessage: {
                    showDialog: 'N',
                    mList: [], // 提示信息
                },
                suppliernames: {
                    EQ_medguid: '',
                    LIKE_entrpname: '',
                },
                fifthStep: false,
                sixStep: true, // 第6个页面控制
                sevenStep: false, // 第7个页面控制
                openDialogFlg: false,
                externalFlg: false,
                checked: "",
                mfmedgoodsList: [], // 医疗机构商品列表
                addSign: [], // 添加商品标识
                storeList: [],
                mfmedgoodsTempList: [], // 添加采购计划明细临时列表
                supplierBillInfoList: [],
                trcollectionmedplan: [],
                listTrcollectionmedplan: [],
                findTptrmedPlanDetailList: [],
                listTrcollectionmedplandetail: [],
                listMfmedgoods: [],
                activeTemp: [],
                //供应商总计
                getSumMsgList: [],
                // 判定是否是收藏模板生成的采购订单
                collectionCreateFlg: false,
                collectionNameCheckbox: false,
                fourthCheckbox: false,
                // 收藏夹:汇总、明细、名字,采购计划:汇总、明细
                hospitalCreateCollectionVO: {
                    collectionName: '',
                    trmedplan: {},
                    mfmedgoodsList: [],
                    createConditionList: [],
                },
                imgarr: [],
                detailImgarr: [],
                hospitalCreateTrmedplanVO: {
                    trmedplan: {},
                    mfmedgoodsList: [],
                    createConditionList: [],
                },
                mfmedgoods: {
                    goodsguid: '',
                    poqty: '',
                },
                sums: {
                    guid: '',
                    taxprice: '',
                    poqty: '',
                    suppliername: '',
                },
                suppliers: {
                    guid: '',
                    suppliername: '',
                },
                // 收藏夹:汇总、明细、名字
                hospitalAddCollectionVO: {
                    collectionName: '',
                    trmedplan: {},
                    trmedplandetailList: [],
                },
                // 分页
                search: {
                    pageSize: 2,
                    page: 1,
                    totalPages: 0,
                    total: 0,
                    search_guid: '',
                },
                // 分页 后加
                search2: {
                    pageSize: 50,
                    page: 1,
                    totalPages: 0,
                    total: 0,
                    search_guid: '',
                },
                // 分页
                search1: {
                    pageSize: 500,
                    page: 1,
                    totalPages: 0,
                    total: 0,
                    guid: '',
                },
                getsumlist: {
                    sumCount: '',
                    sumSupplier: '',
                    sumMoney: '',
                },
                billtypeList: [],
                billtypeLists:[],
                //商品检索条件
                mfhdeptSearch: {
                    pageSize: 50, //每页数量
                    pageNo: 1, //当前页
                    totalPages: 0, //分页数
                    total: 0, //数据总量
                    goodsname: '', //商品名称模糊查询条件
                    departments: '', //科室
                    store: '', //库房
                    billtype: '', //单据类型
                },
                //采购计划自定义复合对象
                trmedplan: {},
                trmedplandetailList: [],
                hospitalBillTypeVO: {
                    supplierBillInfoList: [],
                    distrbBillInfoList: [],
                },
                departmentsList: [],
                storeList: [],
                departmentsSearch: {
                    parameter_category: '',
                    parameter_medguid: '',
                },
                trmedplanAndTrmedplandetailVO: {
                    trmedplan: {
                        billno: '',
                        guid: '',
                    },
                    trmedplandetailList: [],
                    findTptrmedPlanDetailList: [],
                },
                parameter: {
                    goodsGuid: '',
                    supplierName: ''
                },
                suppliers: {
                    guid: '',
                    supplierguid: '',
                    suppliername: '',
                },
                supplierNameList: [],
                medPlanBillNo: '',
                supplierGuids: [],
                billno: '',
                isShowSupModel: true,
                isPrioritySupList: '',
                billtype01:[{
                    "label": "普耗",
                    "value": "01"
                }, {
                    "label": "跟台高值",
                    "value": "02"
                }, {
                    "label": "备货高值",
                    "value": "03"
                }],
                billtype02:{
                    "label": "药品",
                    "value": "04"
                },
                billtype03:{
                    "label": "后勤物资",
                    "value": "05"
                },
                billtype04:{
                    "label": "消毒用品",
                    "value": "06"
                },
                billtype05:{
                    "label": "洗涤用品",
                    "value": "07"
                },
                billtype06:{
                    "label": "中药材",
                    "value": "08"
                },
                billtype07:{
                    "label": "设施设备",
                    "value": "09"
                },
                billtype08:{
                    "label": "分院药品",
                    "value": "10"
                },

            };
        },
        watch: {
            'trmedplan.medstoreguid': function(val) {
                var self = this;
                self.mfmedgoodsList = [];
                self.mfmedgoodsTempList = [];
            },
            'trmedplan.meddeptguid': function(val) {
                var self = this;
                self.mfmedgoodsList = [];
                self.mfmedgoodsTempList = [];
            },
        },
        methods: {
            // 科室下拉表
            getDepartments: function() {
                var self = this;
                self.departmentsSearch.parameter_category = '2';
                Ajax.get('/util/departmentsInfo', self.departmentsSearch)
                    .then(function(response) {
                        var data = response.data.data;
                        self.$set("departmentsList", data);
                    })
            },
            // 库房下拉表
            getStore: function() {
                var self = this;
                self.departmentsSearch.parameter_category = '1';
                Ajax.get('/util/departmentsInfo', self.departmentsSearch)
                    .then(function(response) {
                        var data = response.data.data;
                        self.$set("storeList", data);
                    })
            },
            addresslist: function(guid) {
                var self = this;
                for(var i = 0; i < self.storeList.length; i++) {
                    if(self.storeList[i].value == guid) {
                        self.$set("trmedplan.address", self.storeList[i].address);
                    }
                }
            },
            // 页面切换控制
            state: function(fifthStep, sixStep, sevenStep) {
                var self = this;
                self.fifthStep = fifthStep;
                self.sixStep = sixStep;
                self.sevenStep = sevenStep;
            },
            selectname: function(guid, supplierguid, i,suppliername) {
                var self = this;
                self.supplierFalg();
                self.suppliers.guid = guid;
                self.suppliers.supplierguid = supplierguid;

                for(let j = 0; j < self.findTptrmedPlanDetailList[i].supplierList.length; j++) {
                    if(self.findTptrmedPlanDetailList[i].supplierguid == self.findTptrmedPlanDetailList[i].supplierList[j].supplierguid) {
                        self.$set("findTptrmedPlanDetailList[" + i + "].priority", self.findTptrmedPlanDetailList[i].supplierList[j].priority);
                        self.$set("findTptrmedPlanDetailList[" + i + "].taxprice", self.findTptrmedPlanDetailList[i].supplierList[j].arriveprice);
                        self.$set("findTptrmedPlanDetailList[" + i + "].buyerguid", self.findTptrmedPlanDetailList[i].supplierList[j].staffGuid);
                        self.$set("findTptrmedPlanDetailList[" + i + "].buyername", self.findTptrmedPlanDetailList[i].supplierList[j].staffName);
                        self.suppliers.taxprice = self.findTptrmedPlanDetailList[i].supplierList[j].arriveprice;
                        self.suppliers.buyerguid = self.findTptrmedPlanDetailList[i].supplierList[j].staffGuid;
                        self.suppliers.buyername = self.findTptrmedPlanDetailList[i].supplierList[j].staffName;
                        self.suppliers.suppliername = self.findTptrmedPlanDetailList[i].supplierList[j].suppliername;
                        self.suppliers.poqty = self.findTptrmedPlanDetailList[i].poqty;
                    }
                }

                Ajax.post('/hospitalTrmedplan/UpdateTpGoodsBySupplierdoos', this.suppliers)
                    .then(function(response) {
                        var data = response.data.data;
                        if(response.data.errorCode == 0) {
                            self.getSumMsgLists();
                            self.getSDDSZJ();

                        }
                    })

            },
            // 删除
            deleteTrmedPlanDetailList: function(index, guid, billno, rowno, rownumber) {
                var self = this;
                this.findTptrmedPlanDetailList.splice(index, 1);
                if(billno != null) {

                    self.deleteTrmedplanDetailsW(billno, rowno, rownumber);
                } else {
                    self.deleteTrmedplanDetails(guid,rownumber);
                }
            },
            // 删除单条采购计划 立继武
            deleteTrmedplanDetails: function(guid,rownumber) {
                var self = this;
                Ajax.post('/hospitalTrmedplan/deleteTrmedplandoosDetail', {
                    'guid': guid,'rownumber':rownumber
                })
                    .then(function(response) {
                        var data = response.data;
                        if(data.errorCode == 0) {
                            self.MessageBox({
                                title: '提示',
                                message: '删除成功!',
                                type: 'alert'
                            });
                            if(data.data == true) {
                                self.$route.router.go('/hospitalStockoutList');
                                window.location.reload();
                            }
                        } else {
                            self.MessageBox({
                                title: '警告',
                                message: data.message,
                                type: 'alert'
                            });
                            return true;
                        }
                    })
            },
            // 删除单条采购计划 正式表 立继武   导入外部文件
            deleteTrmedplanDetailsW: function(billno, rowno, rownumber) {
                var self = this;
                Ajax.post('/hospitalTrmedplan/deleteAndTrmedplanosDetail', {
                    'billno': billno,
                    'rowno': rowno,
                    'rownumber': rownumber
                })
                    .then(function(response) {
                        var data = response.data;
                        if(data.errorCode == 0) {
                            self.divbgShow = true;
                            if(data.data == true) {
                                self.$route.router.go('/hospitalStockoutList');
                                window.location.reload();
                            }
                        } else {
                            self.MessageBox({
                                title: '警告',
                                message: data.message,
                                type: 'alert'
                            });
                            return true;
                        }
                    })
            },
            deleteAddGoods: function(index) {
                this.mfmedgoodsTempList.splice(index, 1);
            },
            getBilltype: function() {
                var self = this;
                Ajax.get('/hospitalTrmedplan/getCategory')
                    .then(function(response) {
                        var data=response.data.data;
                        if(response.data.errorCode == 0){
                            self.$set('billtypeLists', data);
                            for (var i = 0; i < self.billtypeLists.length; i++) {
                                if(self.billtypeLists[i].catenumber == '01'){
                                    self.billtypeList = self.billtype01;
                                }else if(self.billtypeLists[i].catenumber == '02'){
                                    self.billtypeList.push(self.billtype02);
                                }
                                else if(self.billtypeLists[i].catenumber == '03'){
                                    self.billtypeList.push(self.billtype03);
                                }
                                else if(self.billtypeLists[i].catenumber == '04'){
                                    self.billtypeList.push(self.billtype04);
                                }
                                else if(self.billtypeLists[i].catenumber == '05'){
                                    self.billtypeList.push(self.billtype05);
                                }
                                else if(self.billtypeLists[i].catenumber == '06'){
                                    self.billtypeList.push(self.billtype06);
                                }else if(self.billtypeLists[i].catenumber == '09'){
                                    self.billtypeList.push(self.billtype08);
                                }else{
                                    self.billtypeList.push(self.billtype07);
                                }
                            }
                            //self.$set('billtypeList', self.ctns.billtype);
                        } else {
                            self.MessageBox({
                                title: '警告',
                                message: response.data.message,
                                type: 'alert'
                            }, function(action) {});
                        }
                    })

            },

            // 获得商品信息 立继武
            getSDDS: function() {
                var self = this;
                Ajax.post('/hospitalTrmedplan/findTptrmedPlanDetailListdoosBypriority', this.search1)
                    .then(function(response) {
                        var data = response.data.data;
                        if(response.data.errorCode == 0) {
                            self.$set("findTptrmedPlanDetailList", data);
                            self.search1.totalPages = data.totalPages;
                            self.search1.total = data.total;
                            //self.getData(self.listTrcollectionmedplan[0].guid);
                            self.activeTemp = [];
                            for(let i = 0; i < self.findTptrmedPlanDetailList.length; i++) {
                                for(let j = 0; j < self.findTptrmedPlanDetailList[i].supplierList.length; j++) {
                                    if(self.findTptrmedPlanDetailList[i].supplierguid == self.findTptrmedPlanDetailList[i].supplierList[j].VALUE) {
                                        self.$set("findTptrmedPlanDetailList[" + i + "].priority", self.findTptrmedPlanDetailList[i].supplierList[j].priority);
                                    }
                                }
                            }
                            self.supplierFalg();

                        } else {
                            self.MessageBox({
                                title: '警告',
                                message: response.data.message,
                                type: 'alert'
                            }, function(action) {});
                        }
                    });
                self.getDepartments();
                self.getStore();
                self.getBilltype();
                self.getSDDSZJ();
                self.getSumMsgLists();
            },
            // 获得商品信息总计 立继武
            getSDDSZJ: function() {
                var self = this;
                Ajax.post('/hospitalTrmedplan/getSumMsgdoos', this.getsumlist)
                    .then(function(response) {
                        var data = response.data.data;
                        if(response.data.errorCode == 0) {
                            self.getsumlist.sumCount = data.sumCount;
                            self.getsumlist.sumSupplier = data.sumSupplier;
                            self.getsumlist.sumMoney = data.sumMoney;
                        } else {
                            self.MessageBox({
                                title: '警告',
                                message: response.data.message,
                                type: 'alert'
                            }, function(action) {});
                        }
                    });
            },
            // 获得供应商信息总计 立继武
            getSumMsgLists: function() {
                var self = this;
                Ajax.post('/hospitalTrmedplan/getSumMsgListdoos')
                    .then(function(response) {
                        var data = response.data.data;
                        if(response.data.errorCode == 0) {
                            self.$set('getSumMsgList', data);
                        } else {
                            self.MessageBox({
                                title: '警告',
                                message: response.data.message,
                                type: 'alert'
                            }, function(action) {});
                        }
                    });
            },

            // 关闭信息提示弹出框
            closeDialog: function() {
                var self = this;
                this.$set('backMessage.showDialog', 'N');
                this.$set('backMessage.mList', []);
                self.sh = true;
                self.isShowSupModel = true;

            },
            // 跳转外部采购计划 立继武
            judgeCollectionAdd: function() {
                var self = this;
                if(self.collectionNameCheckbox) {
                    if(self.hospitalCreateCollectionVO.collectionName) {
                        // 直接生成计划单
                        self.createCollection();
                    } else {
                        self.MessageBox({
                            title: '提示',
                            message: '您需要为您的收藏夹取个名字!',
                            type: 'alert'
                        }, function(action) {});
                    }
                } else {
                    self.getSDDS();
                    this.state(false, false, true);
                }
            },
            // 返回上一步 立继武
            upCollectionAdd: function() {
                var self = this;
                self.$set("findTptrmedPlanDetailList", []);
                //跳转
                self.$router.go({
                    path: '/hospitalStockoutList'
                });
            },
            // 删除外部采购计划 立继武
            deletePlan: function() {
                var self = this;
                var billno = self.billno;
                Ajax.post('/hospitalTrmedplan/deletedoosPlan', {'billno': billno})
                    .then(function(response) {
                        var data = response.data;
                        if(data.errorCode == 0) {
                            self.MessageBox({
                                title: '提示',
                                message: '删除成功!',
                                type: 'alert'
                            }, function(action) {
                                //跳转
                                self.$router.go({
                                    path: '/hospitalStockoutList'
                                });
                                self.billno = '';
                            });
                        } else {
                            self.MessageBox({
                                title: '警告',
                                message: data.message,
                                type: 'alert'
                            });
                            return true;
                        }
                    })
            },
            // 保存采购计划 立继武
            saveTrmedExternalplan: function(code) {
                var self = this;
                var date = new Date();
                var seperator1 = "-";
                var seperator2 = ":";
                var month = date.getMonth() + 1;
                var strDate = date.getDate();
                if(month >= 1 && month <= 9) {
                    month = "0" + month;
                }
                if(strDate >= 0 && strDate <= 9) {
                    strDate = "0" + strDate;
                }
                var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate;
                self.trmedplan.planbegindate = currentdate;

                if(self.findTptrmedPlanDetailList.length==0){
                    self.MessageBox({title: '警告',message: '商品为空,不可操作',type: 'alert'});
                    return;
                }
                for(var i = 0; i < self.findTptrmedPlanDetailList.length; i++) {
                    self.trmedplan.billno = self.findTptrmedPlanDetailList[i].planbillno;
                    // self.trmedplan.guid = self.findTptrmedPlanDetailList[i].guid;
                }

                self.$set('trmedplanAndTrmedplandetailVO.trmedplan', self.trmedplan);
                self.$set('trmedplanAndTrmedplandetailVO.trmedplandetailList', self.findTptrmedPlanDetailList);
                self.requestS = true;
                Ajax.post('/hospitalTrmedplan/saveImportTrmedplandoos', self.trmedplanAndTrmedplandetailVO)
                    .then(function(response) {
                        var data = response.data;

                        if(data.errorCode == 0) {
                            if(code != 0) {
                                self.requestS = false;
                                self.trmedplan = data.data.trmedPlan;
                                self.findTptrmedPlanDetailList = data.data.trmedplandetailList;
                                self.MessageBox({
                                    title: '提示',
                                    message: '保存成功!',
                                    type: 'alert'
                                });
                            }
                        } else {
                            self.requestS = false;
                            self.MessageBox({
                                title: '警告',
                                message: data.message,
                                type: 'alert'
                            }, function(action) {
                                self.sh = true;
                            });
                        }
                    })
            },
            // 提交采购计划 立继武
            commitTrmedExternalplan: function() {
                var self = this;
                if(self.findTptrmedPlanDetailList.length==0){
                    self.MessageBox({title: '警告',message: '商品为空,不可操作',type: 'alert'});
                    return;
                }
                self.sh = false;
                self.$set('trmedplanAndTrmedplandetailVO.trmedplan', self.trmedplan);
                self.$set('trmedplanAndTrmedplandetailVO.trmedplandetailList', self.findTptrmedPlanDetailList);
                self.requestS = true;
                Ajax.post('/hospitalTrmedplan/commitImportTrmedplandoos', self.trmedplanAndTrmedplandetailVO)
                    .then(function(response) {
                        var data = response.data.data;
                        if(response.data.errorCode == 0) {
                            self.requestS = false;
                            self.$set('hospitalBillTypeVO', data);
                            self.state(true, false, false);
                            for(var i = 0; i < data.supplierBillInfoList.length; i++) {
                                var billno = data.supplierBillInfoList[i].medplanbillno;
                            }
                            self.medPlanBillNo = billno;
                            self.trmedplan = {};
                            self.trmedplandetailList = [];
                            self.isPriority();



                        } else {
                            self.requestS = false;
                            self.MessageBox({
                                title: '警告',
                                message:response.data.message,
                                type: 'alert'
                            }, function(action) {
                                self.sh = true;
                            });

                        }
                    })
            },

            // 提交并保存采购计划
            continueCreateBill: function() {
                var self = this;
                self.$route.router.go('/hospitalStockoutList');
                window.location.reload();
            },
            // 验证金额
            checkInfotaxprice: function(taxprice, index, code) {
                var self = this;
                if(taxprice < 0) {
                    self.MessageBox({
                        title: '警告',
                        message: "请输入大于等于0的正整数!",
                        type: 'alert'
                    }, function(action) {
                        self.$set('mfmedgoodsTempList[' + index + '].price', '');
                        self.$set('trmedplandetailList[' + index + '].taxprice', '');
                        self.$set('findTptrmedPlanDetailList[' + index + '].taxprice', '');
                    });

                }
            },
            fun: function() {
                var self = this;
                self.getSumMsgLists();
                self.getSDDSZJ();
            },
            // 验证金额
            checkInfotaxprices: function(taxprice, index, code, poqty, guid, suppliername) {
                var self = this;
                var reg = new RegExp(/^\d+(\.\d+)?$/);
                if(!reg.test(taxprice)) {
                    self.MessageBox({
                        title: '警告',
                        message: "请输入大于等于0的正整数!",
                        type: 'alert'
                    }, function(action) {
                        self.$set('findTptrmedPlanDetailList[' + index + '].taxprice', '');
                    });
                    return;
                }
                if(taxprice < 0 || taxprice == '') {
                    self.MessageBox({
                        title: '警告',
                        message: "请输入大于等于0的正整数!",
                        type: 'alert'
                    }, function(action) {
                        self.$set('mfmedgoodsTempList[' + index + '].price', '');
                        self.$set('trmedplandetailList[' + index + '].taxprice', '');
                        self.$set('findTptrmedPlanDetailList[' + index + '].taxprice', '');
                    });
                }
                // var sum = taxprice*poqty;
                // self.$set('findTptrmedPlanDetailList['+index+'].taxprice', '');
                self.sums.guid = guid;
                self.sums.taxprice = taxprice;
                self.sums.poqty = poqty;
                self.sums.suppliername = suppliername;
                Ajax.post('/hospitalTrmedplan/UpdateTpGoodsos', self.sums)
                    .then(function(response) {
                        var data = response.data.data;
                        if(response.data.errorCode == 0) {
                            self.getSumMsgLists();
                            self.getSDDSZJ();
                        } else {
                            self.MessageBox({
                                title: '警告',
                                message: "修改金额失败",
                                type: 'alert'
                            }, function(action) {});
                        }
                    })
            },
            //   //供应商下拉框查询
            // getSupplier: function(){
            //    var self = this;
            //    self.suppliernames.EQ_goodsguid = self.search_LIKE_entrpname;
            //    self.suppliernames.LIKE_entrpname = self.medguid;
            //    Ajax.get('/hospitalTrmedplan/getListHospitalSupplierByGoods',this.supParameter)
            //      .then(function (response){
            //       var data = response.data;
            //       if(data.errorCode == 0){
            //         self.$set('supplierList',data.data);
            //       }else{
            //         self.MessageBox({
            //           title:'提示',message:data.message,type:'alert'
            //         },function(action){})
            //       }
            //    })
            // },
            // 验证订货数
            checkInfo: function(poqty, index, code) {
                var self = this;
                if(poqty <= 0) {
                    self.MessageBox({
                        title: '警告',
                        message: "请输入大于0的正整数!",
                        type: 'alert'
                    }, function(action) {
                        if(action == 'confirm') {
                            if(code == 1) {
                                self.$set('mfmedgoodsTempList[' + index + '].poqty', '');
                            } else {
                                self.$set('trmedplandetailList[' + index + '].poqty', '');
                            }
                        }
                    });
                }
                var type = /^\d{1,8}$/;
                var reg = new RegExp(type);
                if(poqty.match(reg) == null) {
                    self.MessageBox({
                        title: '警告',
                        message: "请输入长度小于8的正整数!",
                        type: 'alert'
                    }, function(action) {
                        if(action == 'confirm') {
                            if(code == 1) {
                                self.$set('mfmedgoodsTempList[' + index + '].poqty', '');
                            } else {
                                self.$set('trmedplandetailList[' + index + '].poqty', '');
                            }
                        }
                    });
                }
            },
            // 红
            supplierFalg: function() {
                var self = this;
                var checkbox = self.findTptrmedPlanDetailList;
                // 修改供应商改变颜色
                for(let a = 0; a < checkbox.length; a++) {


                    for(let i = 0; i < checkbox[a].supplierList.length; i++) {
                        if(checkbox[a].supplierList[i].VALUE == checkbox[a].supplierguid && checkbox[a].supplierList[i].priority != 1) {
                            checkbox.splice(a, 1, Object.assign({}, checkbox[a], {
                                'falg': true
                            }));
                            break;
                        } else {
                            // checkbox[a].falg=true;
                            checkbox.splice(a, 1, Object.assign({}, checkbox[a], {
                                'falg': false
                            }));
                        }

                    }
                    self.$set('findTptrmedPlanDetailList', checkbox);

                }

            },
            commitReason: function() {
                var self = this;
                for(let i = 0; i < self.isPrioritySupList.length; i++) {
                    if(!self.isPrioritySupList[i].memo) {
                        self.$set('isPrioritySupList' + i + '.memo', '无');
                    }
                }
                Ajax.post('/hospitalTrmedplan/createNph', {
                    'nphlist': self.isPrioritySupList
                })
                    .then(function(response) {
                        var data = response.data.data;
                        if(response.data.errorCode == 0) {

                            self.MessageBox({
                                title: '提示',
                                message: '提交成功',
                                type: 'alert'
                            }, function(action) {
                                self.isShowSupModel = true;

                            });
                        } else {
                            self.MessageBox({
                                title: '警告',
                                message: response.data.message,
                                type: 'alert'
                            }, function(action) {});
                        }
                    })
            },
            // 是否更换供应商
            isPriority: function() {
                var self = this;
                Ajax.post('/hospitalTrmedplan/isPriority', {
                    'billno': self.medPlanBillNo
                })
                    .then(function(response) {
                        var data = response.data.data;
                        if(response.data.errorCode == 0) {
                            if(data.length > 0) {
                                self.isShowSupModel = false;
                                self.$set('isPrioritySupList', data);
                                for(let i = 0; i < self.isPrioritySupList.length; i++) {

                                    self.$set('isPrioritySupList[' + i + '].memo', '');
                                }

                            }

                        } else {
                            self.MessageBox({
                                title: '警告',
                                message: response.data.message,
                                type: 'alert'
                            }, function(action) {});
                        }
                    })
            },
        },
        route: {
            activate: function() {
                this.state(false, true, false);
                this.getSDDS();
                this.mfmedgoodsTempList = [];
                var that = this;

            }
        }

    };
</script>