fix: 页面调整

This commit is contained in:
huxuejian 2026-07-31 09:25:18 +08:00
parent 6f8d95a3db
commit 8c7cbbd2e6
8 changed files with 12 additions and 45 deletions

6
.env.hn Normal file
View File

@ -0,0 +1,6 @@
VITE_TCB_PATH = "hn"
VITE_NEED_LOGIN = "true"
VITE_NEED_IM = "true"
VITE_NEED_CA = "false"
VITE_CORP_ID = "4G7H8J2K9L0M1N3P5Q6R7S8T9U"
VITE_API_URL = "https://patient.youcan365.com/hn/"

View File

@ -1,6 +0,0 @@
VITE_TCB_PATH = "ztyDev"
VITE_NEED_LOGIN = "true"
VITE_NEED_IM = "true"
VITE_NEED_CA = "true"
VITE_CORP_ID = "4G7H8J2K9L0M1N3P5Q6R7S8T9U"
VITE_API_URL = "https://patient.youcan365.com/zyt/"

View File

@ -6,7 +6,7 @@
"dev": "vite --mode dev",
"pro": "vite --mode pro",
"zyDev": "vite --mode zytDev",
"build:dev": "vite build --mode zytDev",
"build:dev": "vite build --mode hn",
"build:pro": "vite build --mode pro",
"preview": "vite preview"
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -67,7 +67,7 @@
<div class="signatures">
<div class="signature-item" style="width: 33%">
<div>医生
<img v-if="doctorImg" class="signImage" :src="doctorImg" />
<img v-if="data.doctorSignImg" class="signImage" :src="data.doctorSignImg" />
<text v-else>{{ data.doctorName }}</text>
</div>
<div class="stamp">
@ -75,7 +75,7 @@
</div>
</div>
<div class="signature-item" style="width: 33%">
<div>审方<img v-if="yaoshiImg" class="signImage" :src="yaoshiImg" />
<div>审方<img v-if="data.pharmacistSignImg" class="signImage" :src="data.pharmacistSignImg" />
<text v-else>{{ data.pharmacist }}</text>
</div>
<div>发药</div>
@ -125,8 +125,6 @@ const props = defineProps({
const paperRef = ref(null)
const doctorCode = ref('')
const pharmacistNo=ref('')
const doctorImg = ref('')
const yaoshiImg = ref('')
const diagnosis = computed(() => props.data && Array.isArray(props.data.diagnosisList) ? props.data.diagnosisList : [])
const drugList = computed(() => {
const drugs = props.data && Array.isArray(props.data.drugs) ? props.data.drugs : [];
@ -156,32 +154,12 @@ const no = computed(()=> {
return props.data.medOrgOrderNo
})
async function getDoctorSign() {
const tasks = [];
if (props.data && props.data.doctorCode && props.data.doctorCode !== doctorCode.value) {
const code = props.data.doctorCode;
tasks.push(getSealImage(code).then(res => {
doctorCode.value = code;
doctorImg.value = res.data && res.data.data ? `data:image/png;base64,${res.data.data}` : '';
}))
}
if (props.data && props.data.pharmacistNo && props.data.pharmacistNo !== pharmacistNo.value) {
const code = props.data.pharmacistNo;
tasks.push(getSealImage(code).then(res => {
pharmacistNo.value = code;
yaoshiImg.value = res.data && res.data.data ? `data:image/png;base64,${res.data.data}` : '';
}))
}
await Promise.all(tasks);
}
function close() {
emits('close', false)
}
async function print() {
if (!paperRef.value) return;
await getDoctorSign();
await nextTick();
document.body.classList.add('printing-rx');
try {
@ -194,14 +172,6 @@ async function print() {
defineExpose({ print });
watch(()=>props.visible, val=> {
if(val){
getDoctorSign();
}
})
</script>
<style lang="scss" scoped>
.side-wrapper {
@ -357,8 +327,8 @@ watch(()=>props.visible, val=> {
.signImage {
display: inline-block;
width: 50px;
height: 20px;
width: 100px;
height: 40px;
}
.stamp-img {

View File

@ -66,7 +66,7 @@
<el-descriptions-item label="统筹区编码">{{ maskedCardInfo.areaCode }}</el-descriptions-item>
</el-descriptions>
<div v-if="cardArchiveId" class="mt-20px text-center">
<vue-qrcode tag="img" :value="cardArchiveId" :options="{ width: 220, margin: 2 }" />
<vue-qrcode tag="img" :value="cardArchiveId" class="block mx-auto" :options="{ width: 220, margin: 2 }" />
<div class="mt-8px text-14px text-gray-500">请使用此二维码进行后续查询和验证</div>
<div class="mt-5px text-12px text-gray-400 break-all">档案编号{{ cardArchiveId }}</div>
</div>