|
@@ -7,7 +7,6 @@
|
|
|
<el-button :disabled="qxFlag" icon="Minus" type="danger" @click="cancelCash">取消出纳</el-button>
|
|
|
<el-button type="primary" icon="RefreshLeft" @click="chongZhiData" >清空</el-button>
|
|
|
<el-button type="warning" icon="Money" @click="openPos" >智能POS工具包</el-button>
|
|
|
- <PrintSelect @getPrintCode="selectPrintCode"></PrintSelect>
|
|
|
</div>
|
|
|
<PatientBaseList ref="patientBaseListRef" :inOutFlag="1" @selectPatientInfo="selectPatient"></PatientBaseList>
|
|
|
</header>
|
|
@@ -447,7 +446,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import {getDateDiffToDay, getFormatDatetime} from "@/utils/date";
|
|
|
import router from "@/router";
|
|
|
import {queryHospitalName} from "@/api/zy-gl/zy-daily.js";
|
|
|
-import PrintSelect from "@/components/zfsf/PrintSelect.vue";
|
|
|
+import {queryLastWindowsIpAddress} from "@/api/zy-gl/admission-registration.js";
|
|
|
|
|
|
const hospitalName = ref('')
|
|
|
const zyFpPrintVisible = ref(false)
|
|
@@ -462,10 +461,7 @@ const patientInfo = ref({
|
|
|
wardName : ''
|
|
|
}
|
|
|
)
|
|
|
-const printCode = ref(null)
|
|
|
-const selectPrintCode = (val)=>{
|
|
|
- printCode.value = val
|
|
|
-}
|
|
|
+const printCode = ref(-1)
|
|
|
const dzfpVisible = ref(false)
|
|
|
const setShowFlag = ref(false)
|
|
|
const patientBaseListRef = ref(null)
|
|
@@ -722,6 +718,10 @@ onMounted(()=>{
|
|
|
queryZdChequeType().then(res=>{
|
|
|
zdChequeTypes.value = res
|
|
|
})
|
|
|
+
|
|
|
+ queryLastWindowsIpAddress().then(res=>{
|
|
|
+ printCode.value = res.zyPrintIndex
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
|
|
@@ -996,9 +996,6 @@ const selectPrintZyFp = (row)=>{
|
|
|
const selectDzfpRow = ref({})
|
|
|
const selectDzfpTypeFlag = ref(null)
|
|
|
const openDzfp = (row,typeFlag)=>{
|
|
|
- queryPrintZyFpData(row).then(res=>{
|
|
|
- printZyFpInfo.value = res
|
|
|
- })
|
|
|
selectDzfpRow.value = row
|
|
|
selectDzfpTypeFlag.value = typeFlag
|
|
|
dzfpVisible.value = true
|
|
@@ -1032,7 +1029,7 @@ const downDzFp = (row,typeFlag,type)=>{
|
|
|
if(stringIsBlank(type) || type === '0'){
|
|
|
const link = document.createElement("a");
|
|
|
// 获取数据量
|
|
|
- const blob = new Blob([base64ToArrayBuffer(res.pdfFileStr)]);
|
|
|
+ const blob = new Blob([base64ToArrayBuffer(res.fpInfo.pdfFileStr)]);
|
|
|
// 下载文件
|
|
|
const objectUrl = URL.createObjectURL(blob);
|
|
|
link.href = objectUrl;
|
|
@@ -1053,13 +1050,14 @@ const downDzFp = (row,typeFlag,type)=>{
|
|
|
LODOP.SET_PRINT_MODE("CREATE_CUSTOM_PAGE_NAME", "住院电子发票二维码");//对新建的纸张重命名
|
|
|
LODOP.SET_PRINT_STYLE("FontSize", 11); //字体大小
|
|
|
LODOP.ADD_PRINT_TEXT("1mm", "6mm", "80mm", "3mm", hospitalName.value+"住院电子发票凭证");
|
|
|
- LODOP.ADD_PRINT_TEXT("7mm", "3mm", "35mm", "3mm", "姓名:"+printZyFpInfo.value.name);
|
|
|
- LODOP.ADD_PRINT_TEXT("7mm", "37mm", "40mm", "3mm", "住院号:"+printZyFpInfo.value.inpatientNo);
|
|
|
- LODOP.ADD_PRINT_TEXT("13mm", "3mm", "75mm", "3mm", "科别:"+printZyFpInfo.value.wardName);
|
|
|
- LODOP.ADD_PRINT_TEXT("19mm", "3mm", "75mm", "3mm", "住院总费用:"+printZyFpInfo.value.totalCharge);
|
|
|
+ LODOP.ADD_PRINT_TEXT("7mm", "3mm", "35mm", "3mm", "姓名:"+res.zyReceipt.name);
|
|
|
+ LODOP.ADD_PRINT_TEXT("7mm", "37mm", "40mm", "3mm", "住院号:"+res.zyReceipt.inpatientNo);
|
|
|
+ LODOP.ADD_PRINT_TEXT("13mm", "3mm", "75mm", "3mm", "科别:"+res.zyReceipt.wardName);
|
|
|
+ LODOP.ADD_PRINT_TEXT("19mm", "3mm", "75mm", "3mm", "住院总费用:"+res.zyReceipt.totalCharge);
|
|
|
LODOP.ADD_PRINT_TEXT("25mm", "3mm", "80mm", "3mm", hospitalName.value+"住院发票二维码");
|
|
|
- LODOP.ADD_PRINT_IMAGE("31mm", "3mm", "60mm", "60mm", "data:image/png;base64,"+res.qrcode);
|
|
|
+ LODOP.ADD_PRINT_IMAGE("31mm", "3mm", "60mm", "60mm", "data:image/png;base64,"+res.fpInfo.qrcode);
|
|
|
LODOP.PRINT();
|
|
|
+ // LODOP.PREVIEW();
|
|
|
}
|
|
|
dzfpVisible.value = false
|
|
|
})
|
|
@@ -1089,7 +1087,6 @@ const printFlag = ref(true)
|
|
|
|
|
|
|
|
|
const getZySettType= (row)=>{
|
|
|
- console.log('row',row)
|
|
|
if(stringIsBlank(row.accountDate)){
|
|
|
return '未结算'
|
|
|
}else {
|