版本更新

This commit is contained in:
Zhang.WH
2025-10-16 17:38:08 +08:00
parent f515bb8fbb
commit e4c5f36f2e
488 changed files with 41436 additions and 2901 deletions

View File

@@ -6,6 +6,28 @@
"paperType": "A4",
"height": 297,
"width": 210,
"paperNumberDisabled": true,
"paperNumberContinue": true,
"overPrintOptions": {
"content": "",
"opacity": 0.7,
"type": 1
},
"watermarkOptions": {
"content": "",
"fillStyle": "rgba(184, 184, 184, 0.3)",
"fontSize": "14px",
"rotate": 25,
"width": 175,
"height": 200,
"timestamp": false,
"format": "YYYY-MM-DD HH:mm"
},
"panelLayoutOptions": {
"layoutType": "column",
"layoutRowGap": 0,
"layoutColumnGap": 0
},
"paperHeader": 0,
"paperFooter": 841.8897637795277,
"printElements": [
@@ -714,6 +736,46 @@
"type": "text"
}
},
{
"options": {
"left": 416.5,
"top": 191.5,
"height": 13.5,
"width": 45,
"title": "体检费",
"coordinateSync": false,
"widthHeightSync": false,
"fontSize": 9,
"qrCodeLevel": 0,
"field": "1"
},
"printElementType": {
"title": "文本",
"type": "text"
}
},
{
"options": {
"left": 465,
"top": 192,
"height": 13.5,
"width": 84,
"title": "体检费",
"coordinateSync": false,
"widthHeightSync": false,
"fontSize": 9,
"qrCodeLevel": 0,
"field": "9999",
"textAlign": "right",
"testData": "20000.00",
"hideTitle": true,
"formatter": "function(title,value,options,templateData,target,paperNo){\n return value ? value.toFixed(2) + ' 元' : '0.00' + ' 元'\n}"
},
"printElementType": {
"title": "文本",
"type": "text"
}
},
{
"options": {
"left": 16.5,
@@ -1372,8 +1434,8 @@
},
{
"options": {
"left": 19,
"top": 368.5,
"left": 16.5,
"top": 363,
"height": 13.5,
"width": 76.5,
"title": "省医保总额",
@@ -1388,50 +1450,10 @@
"type": "text"
}
},
{
"options": {
"left": 81.5,
"top": 369.5,
"height": 13.5,
"width": 75,
"title": "文本",
"coordinateSync": false,
"widthHeightSync": false,
"fontSize": 9,
"qrCodeLevel": 0,
"field": "provinceYbTotal",
"textAlign": "right",
"testData": "20000.00",
"hideTitle": true,
"formatter": "function(title,value,options,templateData,target,paperNo){\n return value ? value.toFixed(2) + ' 元' : '0.00' + ' 元'\n}"
},
"printElementType": {
"title": "文本",
"type": "text"
}
},
{
"options": {
"left": 164,
"top": 369.5,
"height": 13.5,
"width": 64.5,
"title": "市医保总额",
"coordinateSync": false,
"widthHeightSync": false,
"fontSize": 9,
"qrCodeLevel": 0,
"field": "1"
},
"printElementType": {
"title": "文本",
"type": "text"
}
},
{
"options": {
"left": 220.5,
"top": 370.5,
"top": 363,
"height": 13.5,
"width": 75,
"title": "文本",
@@ -1450,10 +1472,129 @@
"type": "text"
}
},
{
"options": {
"left": 81.5,
"top": 363.5,
"height": 13.5,
"width": 75,
"title": "文本",
"coordinateSync": false,
"widthHeightSync": false,
"fontSize": 9,
"qrCodeLevel": 0,
"field": "provinceYbTotal",
"textAlign": "right",
"testData": "20000.00",
"hideTitle": true,
"formatter": "function(title,value,options,templateData,target,paperNo){\n return value ? value.toFixed(2) + ' 元' : '0.00' + ' 元'\n}"
},
"printElementType": {
"title": "文本",
"type": "text"
}
},
{
"options": {
"left": 162.5,
"top": 363.5,
"height": 13.5,
"width": 64.5,
"title": "市医保总额",
"coordinateSync": false,
"widthHeightSync": false,
"fontSize": 9,
"qrCodeLevel": 0,
"field": "1"
},
"printElementType": {
"title": "文本",
"type": "text"
}
},
{
"options": {
"left": 17,
"top": 389,
"height": 13.5,
"width": 76.5,
"title": "现金收入总额",
"coordinateSync": false,
"widthHeightSync": false,
"fontSize": 9,
"qrCodeLevel": 0,
"field": "1"
},
"printElementType": {
"title": "文本",
"type": "text"
}
},
{
"options": {
"left": 79.5,
"top": 390,
"height": 13.5,
"width": 75,
"title": "文本",
"coordinateSync": false,
"widthHeightSync": false,
"fontSize": 9,
"qrCodeLevel": 0,
"field": "totalCash",
"textAlign": "right",
"testData": "20000.00",
"hideTitle": true,
"formatter": "function(title,value,options,templateData,target,paperNo){\n return value ? value.toFixed(2) + ' 元' : '0.00' + ' 元'\n}"
},
"printElementType": {
"title": "文本",
"type": "text"
}
},
{
"options": {
"left": 163.5,
"top": 390,
"height": 13.5,
"width": 64.5,
"title": "体检人次",
"coordinateSync": false,
"widthHeightSync": false,
"fontSize": 9,
"qrCodeLevel": 0,
"field": "1"
},
"printElementType": {
"title": "文本",
"type": "text"
}
},
{
"options": {
"left": 218.5,
"top": 391,
"height": 13.5,
"width": 75,
"title": "体检人次",
"coordinateSync": false,
"widthHeightSync": false,
"fontSize": 9,
"qrCodeLevel": 0,
"field": "physicalExaminationCount",
"textAlign": "right",
"testData": "20000.00",
"hideTitle": true
},
"printElementType": {
"title": "文本",
"type": "text"
}
},
{
"options": {
"left": 15,
"top": 397.5,
"top": 426,
"height": 9,
"width": 567,
"borderWidth": "1.5",
@@ -1468,7 +1609,7 @@
{
"options": {
"left": 162,
"top": 411,
"top": 439.5,
"height": 13.5,
"width": 76.5,
"title": "制表人",
@@ -1486,7 +1627,7 @@
{
"options": {
"left": 216,
"top": 411,
"top": 439.5,
"height": 13.5,
"width": 75,
"title": "文本",
@@ -1507,7 +1648,7 @@
{
"options": {
"left": 333,
"top": 411,
"top": 439.5,
"height": 13.5,
"width": 76.5,
"title": "制表时间",
@@ -1525,7 +1666,7 @@
{
"options": {
"left": 390,
"top": 411,
"top": 439.5,
"height": 13.5,
"width": 129,
"title": "文本",
@@ -1545,29 +1686,7 @@
}
],
"paperNumberLeft": 389,
"paperNumberTop": 573,
"paperNumberDisabled": true,
"paperNumberContinue": true,
"overPrintOptions": {
"content": "",
"opacity": 0.7,
"type": 1
},
"watermarkOptions": {
"content": "",
"fillStyle": "rgba(184, 184, 184, 0.3)",
"fontSize": "14px",
"rotate": 25,
"width": 175,
"height": 200,
"timestamp": false,
"format": "YYYY-MM-DD HH:mm"
},
"panelLayoutOptions": {
"layoutType": "column",
"layoutRowGap": 0,
"layoutColumnGap": 0
}
"paperNumberTop": 573
}
]
}

View File

@@ -155,15 +155,15 @@
</el-col> -->
<el-col :span="5">
<span class="label">微信</span>
<span class="value">{{ formatValue(reportValue['0000cash']) }}</span>
<span class="value">{{ formatValue(reportValue.vxCashSum) }}</span>
</el-col>
<el-col :span="5">
<span class="label">支付宝</span>
<span class="value">{{ '0.00 元' }}</span>
<span class="value">{{ formatValue(reportValue.aliCashSum) }}</span>
</el-col>
<el-col :span="5">
<span class="label">网银</span>
<span class="value">{{ '0.00 元' }}</span>
<span class="value">{{ formatValue(reportValue.peisCnt) }}</span>
</el-col>
</el-row>
<!-- <el-row
@@ -312,6 +312,36 @@
}}</span>
</el-col>
</el-row>
<el-row
:gutter="10"
outpatientNo="mb8"
style="
margin: 20px 0;
display: flex;
align-items: center;
justify-content: flex-start;
padding: 0 20px;
"
>
<el-col :span="5">
<span class="label">现金收入总额</span>
<span class="value">
{{
formatValue(
(reportValue['220100cash'] || 0) +
(reportValue['229900cash'] || 0) +
(reportValue['0000cash'] || 0)
)
}}
</span>
</el-col>
<el-col :span="5">
<span class="label">体检人次</span>
<span class="value">
{{ getPhysicalExaminationCount() }}
</span>
</el-col>
</el-row>
</div>
</div>
</template>
@@ -389,6 +419,14 @@ function getContract() {
});
}
function getPhysicalExaminationCount() {
if (reportValue.value['9999']) {
return reportValue.value['9999'] / 105 + ' 人';
} else {
return '0 人';
}
}
function processObjectWithFinType(obj) {
return Object.keys(obj).map((key) => {
const matchedItem = fin_type_code.value.find((item) => item.value === key);
@@ -431,6 +469,11 @@ async function print() {
(reportValue.value['229900zhSum'] || 0) + (reportValue.value['229900fundSum'] || 0),
municipalYbTotal:
(reportValue.value['220100zhSum'] || 0) + (reportValue.value['220100fundSum'] || 0),
totalCash:
(reportValue.value['220100cash'] || 0) +
(reportValue.value['229900cash'] || 0) +
(reportValue.value['0000cash'] || 0),
physicalExaminationCount: getPhysicalExaminationCount(),
},
],
};

View File

@@ -585,7 +585,6 @@ function printBottleLabel() {
var hiprintTemplate = new hiprint.PrintTemplate({ template: printElements }); // 定义模板
console.log(result, '打印机列表');
hiprintTemplate.print2(result, {
printer: 'Xprinter XP-365B',
height: 210,
width: 148,
});