|
|
@@ -168,7 +168,7 @@
|
|
|
type="primary"
|
|
|
style="width: 40px"
|
|
|
v-if="scope.row.checkState==1"
|
|
|
- @click="handleUpdate(2, scope.row)"
|
|
|
+ @click="handleRelease(scope.row)"
|
|
|
v-hasPermi="['rescription:prescriptionCore:check']"
|
|
|
>释放</el-button
|
|
|
>
|
|
|
@@ -560,103 +560,236 @@
|
|
|
>
|
|
|
<div id="qrcode" ref="qrcode"></div>
|
|
|
</el-dialog> -->
|
|
|
+<!-- <el-dialog-->
|
|
|
+<!-- title=""-->
|
|
|
+<!-- :visible.sync="openConsole"-->
|
|
|
+<!-- width="640px"-->
|
|
|
+<!-- append-to-body-->
|
|
|
+<!-- @close="closeCode">-->
|
|
|
+<!-- <div id="printMe">-->
|
|
|
+<!-- <div style="display:flex;align-items:center;font-size:14px;position:relative;">-->
|
|
|
+<!-- <!– <div style="flex:1">普通处方</div> –>-->
|
|
|
+<!-- <div style="flex:1;text-align:center;font-size:18px;font-weight:bold;">处方笺</div>-->
|
|
|
+<!-- <div id="qrcode" ref="qrcode" style="position:absolute;top:0;right:0;width:100px;height:100px;"></div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div style="display:flex;align-items:center;font-size:14px;margin-top:30px;">-->
|
|
|
+<!-- <div style="flex:1">门诊/住院:{{detailData.preMzZy==1?'门诊':'住院'}}</div>-->
|
|
|
+<!-- <div style="flex:3;text-align:right">NO:{{detailData.preNo}}</div>-->
|
|
|
+<!-- <div style="flex:1"></div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div style="display:flex;align-items:center;font-size:14px;margin-top:10px;">-->
|
|
|
+<!-- <div style="flex:2">就诊科室:{{detailData.department}}</div>-->
|
|
|
+<!-- <div style="flex:2;text-align:right">开方时间:{{detailData.prescriptionTime}}</div>-->
|
|
|
+<!-- <div style="flex:1"></div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <table style="width:100%;border-collapse:collapse;margin-top:20px;line-height:32px;">-->
|
|
|
+<!-- <tr>-->
|
|
|
+<!-- <td rowspan="2" style="width:10%;border:1px solid #000;padding-left:10px;;">姓名</td>-->
|
|
|
+<!-- <td rowspan="2" style="width:14%;border:1px solid #000;padding-left:10px;">{{detailData.name}}</td>-->
|
|
|
+<!-- <td style="width:11%;border:1px solid #000;padding-left:10px;">性别</td>-->
|
|
|
+<!-- <td style="width:24%;border:1px solid #000;padding-left:10px;">{{detailData.sex}}</td>-->
|
|
|
+<!-- <td style="width:14%;border:1px solid #000;padding-left:10px;">年龄</td>-->
|
|
|
+<!-- <td style="width:29%;border:1px solid #000;padding-left:10px;">{{detailData.age}}</td>-->
|
|
|
+<!-- </tr>-->
|
|
|
+<!-- <tr>-->
|
|
|
+<!-- <td style="border:1px solid #000;padding-left:10px;">电话</td>-->
|
|
|
+<!-- <td style="border:1px solid #000;padding-left:10px;">{{detailData.contactNumber}}</td>-->
|
|
|
+<!-- <td style="border:1px solid #000;padding-left:10px;">病历号</td>-->
|
|
|
+<!-- <td style="border:1px solid #000;padding-left:10px;line-height:14px;">{{detailData.visitNo}}</td>-->
|
|
|
+<!-- </tr>-->
|
|
|
+<!-- <tr>-->
|
|
|
+<!-- <td colspan="2" style="border:1px solid #000;padding-left:10px;">联系地址</td>-->
|
|
|
+<!-- <td colspan="4" style="border:1px solid #000;padding-left:10px;">{{detailData.address}}</td>-->
|
|
|
+<!-- </tr>-->
|
|
|
+<!-- <tr>-->
|
|
|
+<!-- <td style="border:1px solid #000;padding-left:10px;" colspan="2">临床诊断</td>-->
|
|
|
+<!-- <td style="border:1px solid #000;padding-left:10px;" colspan="4">{{detailData.disName}}-{{detailData.symName}}</td>-->
|
|
|
+<!-- </tr>-->
|
|
|
+<!-- </table>-->
|
|
|
+<!-- <div>-->
|
|
|
+<!-- <h2 style="font-weight:bold">RP:</h2>-->
|
|
|
+<!-- <div style="height:320px">-->
|
|
|
+<!-- <div class="flex">-->
|
|
|
+<!-- <div class="flex-sub" v-for="(v,i) in detailData.oralPreItemList">-->
|
|
|
+<!-- {{v.matName}} {{v.matDose}}g<!– {{v.matUnitName}} –>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div>-->
|
|
|
+<!-- <div class="flex totaltip">-->
|
|
|
+<!-- <span>-->
|
|
|
+<!-- <span>{{ detailData.type == 1 ? "中药处方" : "中药制剂" }}: </span>-->
|
|
|
+<!-- <span>{{detailData.oralPre && detailData.oralPre.number}}(代煎数:{{detailData.oralPre&&detailData.oralPre.daijianNumber}})</span>-->
|
|
|
+<!-- </span>-->
|
|
|
+<!-- <span>{{detailData.oralPre && detailData.oralPre.decoctingMethod}}</span>-->
|
|
|
+<!-- <span>{{detailData.oralPre && detailData.oralPre.medicationTime}}</span>-->
|
|
|
+<!-- <span>{{detailData.oralPre && detailData.oralPre.frequency}}</span>-->
|
|
|
+<!-- <!– <span>{{detailData.oralPre && detailData.takingMethod}}</span> –>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <!– <h3>贴数:</h3> –>-->
|
|
|
+<!-- <table style="width:100%;border-collapse:collapse;margin-top:10px;line-height:32px;">-->
|
|
|
+<!-- <tr>-->
|
|
|
+<!-- <td colspan="2" style="width:12%;border:1px solid #000;text-align:center;">开方医生</td>-->
|
|
|
+<!-- <td colspan="3" style="width:21%;border:1px solid #000;padding-left:10px;">{{detailData.doctor}}</td>-->
|
|
|
+<!-- <td colspan="3" style="width:21%;border:1px solid #000;padding-left:10px;">药品金额及收收讫章</td>-->
|
|
|
+<!-- </tr>-->
|
|
|
+<!-- <tr>-->
|
|
|
+<!-- <td style="width:10%;border:1px solid #000;padding-left:10px;;">审核</td>-->
|
|
|
+<!-- <td style="width:15%;border:1px solid #000;padding-left:10px;;">{{detailData.checkBy}}</td>-->
|
|
|
+<!-- <td style="width:10%;border:1px solid #000;padding-left:10px;;">调配</td>-->
|
|
|
+<!-- <td style="width:15%;border:1px solid #000;padding-left:10px;;"></td>-->
|
|
|
+<!-- <td style="width:10%;border:1px solid #000;padding-left:10px;;">核对</td>-->
|
|
|
+<!-- <td style="width:15%;border:1px solid #000;padding-left:10px;;"></td>-->
|
|
|
+<!-- <td style="width:10%;border:1px solid #000;padding-left:10px;;">发药</td>-->
|
|
|
+<!-- <td style="width:15%;border:1px solid #000;padding-left:10px;;"></td>-->
|
|
|
+<!-- </tr>-->
|
|
|
+<!-- </table>-->
|
|
|
+<!-- <div style="line-height:24px;">-->
|
|
|
+<!-- <p style="margin:10px 0 0;">注:1、本处方2日内有效</p>-->
|
|
|
+<!-- <p style="margin:0">2、取药时请您当面核对药品名称、规格、数量。</p>-->
|
|
|
+<!-- <p style="margin:0">3、延长处方用量时间原因:慢性 其他老年病 外地。</p>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <span slot="footer">-->
|
|
|
+<!-- <el-button type="primary" v-print="'#printMe'">打印</el-button>-->
|
|
|
+<!-- </span>-->
|
|
|
+<!-- </el-dialog>-->
|
|
|
+
|
|
|
+<!-- new print-->
|
|
|
<el-dialog
|
|
|
- title=""
|
|
|
- :visible.sync="openConsole"
|
|
|
- width="640px"
|
|
|
+ :title="title"
|
|
|
+ :visible.sync="openPrint"
|
|
|
+ width="1280px"
|
|
|
append-to-body
|
|
|
- @close="closeCode">
|
|
|
- <div id="printMe">
|
|
|
- <div style="display:flex;align-items:center;font-size:14px;position:relative;">
|
|
|
- <!-- <div style="flex:1">普通处方</div> -->
|
|
|
- <div style="flex:1;text-align:center;font-size:18px;font-weight:bold;">处方笺</div>
|
|
|
- <div id="qrcode" ref="qrcode" style="position:absolute;top:0;right:0;width:100px;height:100px;"></div>
|
|
|
- </div>
|
|
|
- <div style="display:flex;align-items:center;font-size:14px;margin-top:30px;">
|
|
|
- <div style="flex:1">门诊/住院:{{detailData.preMzZy==1?'门诊':'住院'}}</div>
|
|
|
- <div style="flex:3;text-align:right">NO:{{detailData.preNo}}</div>
|
|
|
- <div style="flex:1"></div>
|
|
|
- </div>
|
|
|
- <div style="display:flex;align-items:center;font-size:14px;margin-top:10px;">
|
|
|
- <div style="flex:2">就诊科室:{{detailData.department}}</div>
|
|
|
- <div style="flex:2;text-align:right">开方时间:{{detailData.prescriptionTime}}</div>
|
|
|
- <div style="flex:1"></div>
|
|
|
+ >
|
|
|
+ <div style="display: flex;padding: 10px;">
|
|
|
+ <div style="display: flex;width: 170px;flex-direction: column;align-items: center;border-right: 1px solid #1ab394;">
|
|
|
+ <div style="display: flex;justify-content: center;align-items: center;height: 50px;width: 150px;font-size: 25px;padding: 10px;color: #1ab394;"
|
|
|
+ v-for="item in printType" :key="item.id"
|
|
|
+ @click="handlePrintType(item)"
|
|
|
+ :class="activePrint===item.name?'active':''" >{{item.name}}</div>
|
|
|
</div>
|
|
|
- <table style="width:100%;border-collapse:collapse;margin-top:20px;line-height:32px;">
|
|
|
- <tr>
|
|
|
- <td rowspan="2" style="width:10%;border:1px solid #000;padding-left:10px;;">姓名</td>
|
|
|
- <td rowspan="2" style="width:14%;border:1px solid #000;padding-left:10px;">{{detailData.name}}</td>
|
|
|
- <td style="width:11%;border:1px solid #000;padding-left:10px;">性别</td>
|
|
|
- <td style="width:24%;border:1px solid #000;padding-left:10px;">{{detailData.sex}}</td>
|
|
|
- <td style="width:14%;border:1px solid #000;padding-left:10px;">年龄</td>
|
|
|
- <td style="width:29%;border:1px solid #000;padding-left:10px;">{{detailData.age}}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="border:1px solid #000;padding-left:10px;">电话</td>
|
|
|
- <td style="border:1px solid #000;padding-left:10px;">{{detailData.contactNumber}}</td>
|
|
|
- <td style="border:1px solid #000;padding-left:10px;">病历号</td>
|
|
|
- <td style="border:1px solid #000;padding-left:10px;line-height:14px;">{{detailData.visitNo}}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="2" style="border:1px solid #000;padding-left:10px;">联系地址</td>
|
|
|
- <td colspan="4" style="border:1px solid #000;padding-left:10px;">{{detailData.address}}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="border:1px solid #000;padding-left:10px;" colspan="2">临床诊断</td>
|
|
|
- <td style="border:1px solid #000;padding-left:10px;" colspan="4">{{detailData.disName}}-{{detailData.symName}}</td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <div>
|
|
|
- <h2 style="font-weight:bold">RP:</h2>
|
|
|
- <div style="height:320px">
|
|
|
- <div class="flex">
|
|
|
- <div class="flex-sub" v-for="(v,i) in detailData.oralPreItemList">
|
|
|
- {{v.matName}} {{v.matDose}}g<!-- {{v.matUnitName}} -->
|
|
|
+
|
|
|
+ <div style="display: flex;flex-direction: column;justify-content:center;align-items:center;width: 1120px;">
|
|
|
+ <div class="print" id="print">
|
|
|
+ <div style="display: flex;flex-direction: column;width:400px;height: 250px;padding: 20px;" v-if="activePrint==='标签'">
|
|
|
+ <div style="font-size: 25px;font-weight: 500;margin: 10px 0;display: flex;align-items: center;justify-content:center;">{{detailData.yljgName || '默默事中医院取药标签打印(门诊)'}}</div>
|
|
|
+ <div style="display: flex;justify-content:space-between;height:100px;margin-top: 20px;">
|
|
|
+ <div style="display: flex;flex-direction: column;width: 200px;height:100px;justify-content:center;">
|
|
|
+ <JsBarcode
|
|
|
+ :presno="detailData.preNo"
|
|
|
+ ></JsBarcode>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;flex-direction: column;width: 160px;margin-top: 10px">
|
|
|
+ <div style="display: flex;margin: 6px 0 5px;font-size: 15px;width: 160px;">患者:<div style="font-weight: 500;">{{detailData.name}},{{detailData.sex}},{{detailData.age}}岁</div></div>
|
|
|
+ <div style="display: flex;margin: 6px 0 5px;font-size: 15px;width: 160px;">出生日期:<div style="font-weight: 500;">{{detailData.patientBirthday}}</div></div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <div v-else style="display: flex;margin: 5px;background-color: #fff;flex-direction:column;align-items: center;height: 1030px;width: 680px;box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);">
|
|
|
+ <div style="display: flex;flex-direction:column;width: 660px;">
|
|
|
+ <div style="display: flex;flex-direction:row;justify-content: space-between;margin-top: 15px;">
|
|
|
+ <div style="display: flex;align-items: flex-start;border-right:0!important;">
|
|
|
+ <div style="display: flex;flex-direction:column;">
|
|
|
+ <JsBarcode
|
|
|
+ :presno="detailData.preNo"
|
|
|
+ ></JsBarcode>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;justify-content:center;align-items:center;margin-right: 150px;font-size: 23.75px;font-weight: 800;">
|
|
|
+ 中药处方笺
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;justify-content:center;font-size: 16px;width: 40px;font-weight: 300;">{{detailData.type=='1'?"中药处方":detailData.type=='2'?"中药制剂":""}}</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;flex-direction:column;margin: 20px 10px 10px;padding-bottom: 15px;border-bottom: 1px solid #979797;">
|
|
|
+ <div style="display: flex;flex-direction:row;margin-bottom:5px;">
|
|
|
+ <div style="font-size: 12px;font-weight: 400;margin-right: 30px;"><span style="color:#999999;">姓名:</span>{{detailData.name}}</div>
|
|
|
+ <div style="font-size: 12px;font-weight: 400;margin-right: 30px;"><span style="color:#999999;">性别:</span>{{detailData.sex}}</div>
|
|
|
+ <div style="font-size: 12px;font-weight: 400;margin-right: 30px;"><span style="color:#999999;">年龄:</span>{{detailData.age}}岁</div>
|
|
|
+ <div style="font-size: 12px;font-weight: 400;margin-right: 30px;"><span style="color:#999999;">电话:</span>{{detailData.contactNumber}}</div>
|
|
|
+ <div style="font-size: 12px;font-weight: 400;margin-right: 30px;"><span style="color:#999999;">当前处方状态:</span>{{detailData.state=="1"?"配药":detailData.state=="2"?"煎药":detailData.state=="3"?"发药":detailData.state=="4"?"配送":""}}</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;flex-direction:row;margin-bottom:5px;">
|
|
|
+ <div style="font-size: 12px;font-weight: 400;margin-right: 30px;"><span style="color:#999999;">就诊科室:</span>{{detailData.department}}</div>
|
|
|
+ <div style="font-size: 12px;font-weight: 400;margin-right: 30px;"><span style="color:#999999;">临床诊断:</span>{{detailData.disName}}—{{detailData.symName}}</div>
|
|
|
+ <div style="font-size: 12px;font-weight: 400;margin-right: 30px;"><span style="color:#999999;">开方时间:</span>{{detailData.prescriptionTime}}</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;flex-direction:row;font-size: 12px;"><span style="color:#999999;">联系地址:</span>{{detailData.address}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;flex-direction:column;width: 640px;align-items:flex-start;border-bottom: 1px solid #5a5e66;margin:0px 10px 10px;">
|
|
|
+ <div style="display: flex;font-size: 22px;">
|
|
|
+ Rp:
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;flex-wrap: wrap;flex-direction: row;justify-content:flex-start;align-content:flex-start;margin-left:20px;height: 515px;">
|
|
|
+ <div style="display: flex;justify-content:center;width: 150px;align-items: center;margin: 0 0 10px 0;" v-for="(x, i) in detailData.detailList" :key="i">
|
|
|
+ <div style="display: flex;font-size: 15px;width: 100px;word-wrap: break-word;z-index: 100;justify-content:center;align-items: center;padding: 2px 5px;">
|
|
|
+ <!-- <el-tag effect="plain" >{{x.matName}} {{x.matDose}} {{x.matUnitName}}</el-tag>-->
|
|
|
+ {{x.matName}}{{x.matDose}}{{x.matUnitName}}
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;flex-direction:column;margin-left: 5.31px;z-index: 200;">
|
|
|
+ <div style="font-size: 10px;height: 12.5px;"> {{x.matUsageName}}</div>
|
|
|
+ <div style="font-size: 10px;height: 12.5px;"> {{x.sign}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin: 0 10px 10px;display: flex;font-size: 15px;">
|
|
|
+ <div style="display: flex;margin-right: 54.4px;">
|
|
|
+ 剂数:{{detailData.number}}
|
|
|
+ <div v-if="detailData.daijianCost!==''" class="pies_tips">
|
|
|
+ (代煎)
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;margin-right: 54.4px;">{{detailData.dosageForm}}</div>
|
|
|
+ <div style="display: flex;margin-right: 54.4px;">{{detailData.prescriptionUsage}}</div>
|
|
|
+ <div style="display: flex;margin-right: 54.4px;">每次{{detailData.concentration}}</div>
|
|
|
+ <div style="display: flex;margin-right: 54.4px;">{{detailData.frequency}}</div>
|
|
|
+ <div >{{detailData.medicationTime}}</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;justify-content:flex-end;font-size: 15px;margin-right: 10px;">{{detailData.entrust}}</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;margin: 0 10px 0;padding-bottom: 5px;border-bottom: 1px solid #979797;">
|
|
|
+ <div style="display: flex;flex-direction:column;">
|
|
|
+ <div style="border: 1px solid #979797;font-size: 15px;width: 287.5px;display: flex;justify-content:center;align-items: center;height: 30px;">
|
|
|
+ <div class="pijw">药品金额:{{detailData.prescriptionSum}}</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;justify-content:center;align-items: center;font-size: 15px;height: 30px;width: 287.5px;border-left: 1px solid #979797;border-right: 1px solid #979797;">
|
|
|
+ <div style="width: 143.93px;display: flex;justify-content:center;align-items: center;height: 30px;">煎药费:{{detailData.daijianCost}}</div>
|
|
|
+ <div style="border-left: 1px solid #979797;width: 143.93px;display: flex;justify-content:center;align-items: center;height: 30px;">配送费:{{detailData.distributionCost}}</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;justify-content:center;align-items: center;height: 30px;font-size: 15px;border: 1px solid #979797;">
|
|
|
+ 总金额:{{detailData.prescriptionTotalSum}}
|
|
|
+ <!-- <div class="zjw"></div> -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;flex-wrap: wrap;margin-left: 20px;">
|
|
|
+ <div style="font-size: 15px;margin-right: 60px;width:90px;"><span style="font-size: 15px;color:#999999;">开方:</span>{{operateList[0].operater}}</div>
|
|
|
+ <div style="font-size: 15px;margin-right: 60px;width:90px;"><span style="font-size: 15px;color:#999999;">审核:</span>{{operateList[1].operater}}</div>
|
|
|
+ <div style="font-size: 15px;margin-right: 60px;width:90px;"><span style="font-size: 15px;color:#999999;">调配:</span>{{operateList[2].operater}}</div>
|
|
|
+ <div style="font-size: 15px;margin-right: 60px;width:90px;"><span style="font-size: 15px;color:#999999;">复核:</span>{{operateList[3].operater}}</div>
|
|
|
+ <div style="font-size: 15px;margin-right: 60px;width:90px;"><span style="font-size: 15px;color:#999999;">浸泡:</span>{{operateList[4].operater}}</div>
|
|
|
+ <div style="font-size: 15px;margin-right: 60px;width:90px;"><span style="font-size: 15px;color:#999999;">煎煮:</span>{{operateList[5].operater}}</div>
|
|
|
+ <div style="font-size: 15px;margin-right: 60px;width:90px;"><span style="font-size: 15px;color:#999999;">打包:</span>{{operateList[6].operater}}</div>
|
|
|
+ <div style="font-size: 15px;margin-right: 60px;width:90px;"><span style="font-size: 15px;color:#999999;">发药:</span>{{operateList[7].operater}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin: 10px 16px 10px;font-size: 15px;display: flex;">
|
|
|
+ <div class="z">注:</div>
|
|
|
+ <div>{{entrust1111}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ <el-button style="margin-top: 50px;display: flex;justify-content:center;align-items:center;background-color: #1ab394;color: #FFFFFF;font-size: 20px;margin-top: 40px;width: 300px;height: 50px;" v-print="'#print'">打 印</el-button>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <div class="flex totaltip">
|
|
|
- <span>
|
|
|
- <span>{{ detailData.type == 1 ? "中药处方" : "中药制剂" }}: </span>
|
|
|
- <span>{{detailData.oralPre && detailData.oralPre.number}}(代煎数:{{detailData.oralPre&&detailData.oralPre.daijianNumber}})</span>
|
|
|
- </span>
|
|
|
- <span>{{detailData.oralPre && detailData.oralPre.decoctingMethod}}</span>
|
|
|
- <span>{{detailData.oralPre && detailData.oralPre.medicationTime}}</span>
|
|
|
- <span>{{detailData.oralPre && detailData.oralPre.frequency}}</span>
|
|
|
- <!-- <span>{{detailData.oralPre && detailData.takingMethod}}</span> -->
|
|
|
- </div>
|
|
|
- <!-- <h3>贴数:</h3> -->
|
|
|
- <table style="width:100%;border-collapse:collapse;margin-top:10px;line-height:32px;">
|
|
|
- <tr>
|
|
|
- <td colspan="2" style="width:12%;border:1px solid #000;text-align:center;">开方医生</td>
|
|
|
- <td colspan="3" style="width:21%;border:1px solid #000;padding-left:10px;">{{detailData.doctor}}</td>
|
|
|
- <td colspan="3" style="width:21%;border:1px solid #000;padding-left:10px;">药品金额及收收讫章</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="width:10%;border:1px solid #000;padding-left:10px;;">审核</td>
|
|
|
- <td style="width:15%;border:1px solid #000;padding-left:10px;;">{{detailData.checkBy}}</td>
|
|
|
- <td style="width:10%;border:1px solid #000;padding-left:10px;;">调配</td>
|
|
|
- <td style="width:15%;border:1px solid #000;padding-left:10px;;"></td>
|
|
|
- <td style="width:10%;border:1px solid #000;padding-left:10px;;">核对</td>
|
|
|
- <td style="width:15%;border:1px solid #000;padding-left:10px;;"></td>
|
|
|
- <td style="width:10%;border:1px solid #000;padding-left:10px;;">发药</td>
|
|
|
- <td style="width:15%;border:1px solid #000;padding-left:10px;;"></td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <div style="line-height:24px;">
|
|
|
- <p style="margin:10px 0 0;">注:1、本处方2日内有效</p>
|
|
|
- <p style="margin:0">2、取药时请您当面核对药品名称、规格、数量。</p>
|
|
|
- <p style="margin:0">3、延长处方用量时间原因:慢性 其他老年病 外地。</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+
|
|
|
</div>
|
|
|
- <span slot="footer">
|
|
|
- <el-button type="primary" v-print="'#printMe'">打印</el-button>
|
|
|
- </span>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -672,15 +805,31 @@ import {
|
|
|
addNum,
|
|
|
} from "@/api/prescription/prescriptionCore";
|
|
|
|
|
|
+
|
|
|
import { listMedicalMechanism } from "@/api/medical/mechanism";
|
|
|
|
|
|
import QRCode from "qrcodejs2";
|
|
|
+import {releaseOrder, selectOrderDetail} from "@/api/prescription/prescriptionAudit";
|
|
|
+import Pres from "@/components/Pres/index.vue";
|
|
|
+import JsBarcode from "@/components/JsBarcode/index.vue";
|
|
|
|
|
|
export default {
|
|
|
name: "PrescriptionCore",
|
|
|
+ components:{Pres, JsBarcode,},
|
|
|
data() {
|
|
|
return {
|
|
|
$baseUrl: this.$baseUrl,
|
|
|
+ operateList:[
|
|
|
+ {py:'kf',title:'开方',operater:''},
|
|
|
+ {py:'sh',title:'审核',operater:''},
|
|
|
+ {py:'tp',title:'调配',operater:''},
|
|
|
+ {py:'fh',title:'复核',operater:''},
|
|
|
+ {py:'jp',title:'浸泡',operater:''},
|
|
|
+ {py:'jz',title:'煎煮',operater:''},
|
|
|
+ {py:'db',title:'打包',operater:''},
|
|
|
+ {py:'fy',title:'发药',operater:''},
|
|
|
+ ],
|
|
|
+ entrust1111:'1、本处方当日有效\n 2、取药时请您当面核对。。。。 \n 3、延长处方用量时间原油:慢性病 其他老年病 外地 其他',
|
|
|
visible: false,
|
|
|
remarks: "",
|
|
|
btnState: 1,
|
|
|
@@ -716,6 +865,13 @@ export default {
|
|
|
title: "",
|
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
|
+ // print相关
|
|
|
+ openPrint: false,
|
|
|
+ activePrint: '标签',
|
|
|
+ printType:[
|
|
|
+ {name:'标签', id:0},
|
|
|
+ {name:'中药处方笺', id:1}
|
|
|
+ ],
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
@@ -775,16 +931,89 @@ export default {
|
|
|
return '';
|
|
|
},
|
|
|
//打印
|
|
|
- consoleBtn({ id }) {
|
|
|
- this.rowId = id;
|
|
|
- this.openConsole = true;
|
|
|
- this.payOrder();
|
|
|
- addNum(id)
|
|
|
- getPrescriptionCore(id).then((response) => {
|
|
|
- // this.form = response.data;
|
|
|
- this.detailData = response.data
|
|
|
+ // consoleBtn({ id }) {
|
|
|
+ consoleBtn(row) {
|
|
|
+ // this.rowId = id;
|
|
|
+ // this.openConsole = true;
|
|
|
+ // this.payOrder();
|
|
|
+ // addNum(id)
|
|
|
+ // getPrescriptionCore(id).then((response) => {
|
|
|
+ // // this.form = response.data;
|
|
|
+ // this.detailData = response.data
|
|
|
+ // });
|
|
|
+ this.reset();
|
|
|
+ const id = row.id;
|
|
|
+ console.log('id>>>>',id)
|
|
|
+ selectOrderDetail({id:id}).then((response) => {
|
|
|
+ this.form = response.data;
|
|
|
+ this.detailData = response.data;
|
|
|
+ this.detailData.patientBirthday = this.detailData.patientBirthday?this.detailData.patientBirthday.substring(0,10):'';
|
|
|
+ this.detailData.presType = '普通处方'; //TODO neo
|
|
|
+ console.log('handlePrint detailData', this.detailData)
|
|
|
+ this.openPrint = true;
|
|
|
+ this.operateList[0].operater = this.detailData.doctor|| '';
|
|
|
+ this.operateList[1].operater = this.detailData.checkBy|| '';
|
|
|
+ this.operateList[2].operater = this.detailData.tiaopeiName || '';
|
|
|
+ const length = response.data.operateList
|
|
|
+ if(length > 0){
|
|
|
+ response.data.operateList.forEach((item)=>{
|
|
|
+ switch(item.type){
|
|
|
+ case '2':
|
|
|
+ this.operateList[3].operater = item.createBy
|
|
|
+ break
|
|
|
+ case '3':
|
|
|
+ this.operateList[4].operater = item.createBy
|
|
|
+ break
|
|
|
+ case '4':
|
|
|
+ this.operateList[5].operater = item.createBy
|
|
|
+ break
|
|
|
+ case '5':
|
|
|
+ this.operateList[6].operater = item.createBy
|
|
|
+ break
|
|
|
+ case '6':
|
|
|
+ this.operateList[7].operater = item.createBy
|
|
|
+ break
|
|
|
+ defalut:console.log('处方签res.data.operateList数据异常',item.type)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // this.title = "查看处/**/方审核";
|
|
|
+ //console.log(response);
|
|
|
});
|
|
|
},
|
|
|
+ handlePrintType(e) {
|
|
|
+ console.log('this.activePrint',this.activePrint)
|
|
|
+ console.log('click>>>',e.name)
|
|
|
+ if(e.name && e.name!==this.activePrint){
|
|
|
+ this.activePrint = e.name
|
|
|
+ console.log(' change this.activePrint',this.activePrint)
|
|
|
+ } else {
|
|
|
+ console.log('nochange this.activePrint',this.activePrint)
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ /** 释放订单 */
|
|
|
+ handleRelease(row) {
|
|
|
+ const ids = row.id || this.ids;
|
|
|
+ this.$confirm(
|
|
|
+ '是否确认释放处方编号为"' + row.preNo + '"的数据项?',
|
|
|
+ "警告",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(function () {
|
|
|
+ return releaseOrder({ids:ids});
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess("释放成功");
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ });
|
|
|
+ },
|
|
|
payOrder() {
|
|
|
this.innerVisible = true;
|
|
|
// 二维码内容,一般是由后台返回的跳转链接,这里是写死的一个链接
|
|
|
@@ -977,4 +1206,5 @@ h3 {
|
|
|
.flex { display: flex; align-items: center; flex-wrap: wrap;padding:0 30px; }
|
|
|
.flex-sub { flex: 0 0 33.333333%; margin-top: 6px; }
|
|
|
.totaltip { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
|
|
|
+.active{ background-color: #1ab394; color: #FFFFFF!important;}
|
|
|
</style>
|