修改保存和业务逻辑
This commit is contained in:
parent
31c40d68f6
commit
ceebfefe03
@ -34,7 +34,7 @@ export interface PatientexamlistVO {
|
|||||||
billDoctorDepartment: string// 开单科室 送检科室
|
billDoctorDepartment: string// 开单科室 送检科室
|
||||||
StudyInsta: string
|
StudyInsta: string
|
||||||
isFavourite: string //是否收藏
|
isFavourite: string //是否收藏
|
||||||
pdfurl: String//pdf地址
|
pdfurl: string//pdf地址
|
||||||
warning: String//是否有危急值
|
warning: String//是否有危急值
|
||||||
applyhighLevelname: String//申请上级机构医生
|
applyhighLevelname: String//申请上级机构医生
|
||||||
}
|
}
|
||||||
|
@ -892,8 +892,8 @@ function Refresh() {
|
|||||||
//复制链接
|
//复制链接
|
||||||
function touchCopy () {
|
function touchCopy () {
|
||||||
// 调用
|
// 调用
|
||||||
if (rowinfo.value.pdfurl) {
|
if (applyFormVO.value.pdfurl) {
|
||||||
toClipboard(rowinfo.value.pdfurl)
|
toClipboard(applyFormVO.value.pdfurl)
|
||||||
message.alertSuccess('复制成功')
|
message.alertSuccess('复制成功')
|
||||||
} else {
|
} else {
|
||||||
message.alertError('请先保存后再进行复制')
|
message.alertError('请先保存后再进行复制')
|
||||||
@ -902,7 +902,7 @@ function touchCopy () {
|
|||||||
/** 申请后更新上级机构字段*/
|
/** 申请后更新上级机构字段*/
|
||||||
const getuporghiorgid = async (id: number, orgId: string) => {
|
const getuporghiorgid = async (id: number, orgId: string) => {
|
||||||
try {
|
try {
|
||||||
if (rowinfo.value.highLevelOrgId) {
|
if (applyFormVO.value.highLevelOrgId) {
|
||||||
message.alertWarning('已提交申请')
|
message.alertWarning('已提交申请')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -972,10 +972,10 @@ function FD() {
|
|||||||
}
|
}
|
||||||
//分享点击
|
//分享点击
|
||||||
function shareclick() {
|
function shareclick() {
|
||||||
if (rowinfo.value.pdfurl) {
|
if (applyFormVO.value.diagDate) {
|
||||||
isshare.value = false
|
isshare.value = false
|
||||||
// 确保 DOM 已经渲染
|
// 确保 DOM 已经渲染
|
||||||
QRCode.toCanvas(qrcodeRef.value, rowinfo.value.pdfurl, function (error) {
|
QRCode.toCanvas(qrcodeRef.value, applyFormVO.value.pdfurl, function (error) {
|
||||||
if (error) console.error(error)
|
if (error) console.error(error)
|
||||||
console.log('QR code generated!')
|
console.log('QR code generated!')
|
||||||
})
|
})
|
||||||
|
@ -211,7 +211,7 @@ onMounted(async () => {
|
|||||||
// topCanvas.value = document.getElementById('topCanvas');
|
// topCanvas.value = document.getElementById('topCanvas');
|
||||||
})
|
})
|
||||||
|
|
||||||
nextTick(() => {
|
nextTick(async () => {
|
||||||
/* 计算宽度和高度*/
|
/* 计算宽度和高度*/
|
||||||
var canvasContainer = document.getElementById('canvas-container')
|
var canvasContainer = document.getElementById('canvas-container')
|
||||||
var canvasContainer1 = document.getElementById('canvas-container1')
|
var canvasContainer1 = document.getElementById('canvas-container1')
|
||||||
@ -255,7 +255,7 @@ nextTick(() => {
|
|||||||
leftCanvas.height = ahe - 118
|
leftCanvas.height = ahe - 118
|
||||||
heightoff.value=(ahe -118)/6
|
heightoff.value=(ahe -118)/6
|
||||||
}
|
}
|
||||||
fetchData()
|
await fetchData()
|
||||||
})
|
})
|
||||||
|
|
||||||
// 定义异步方法
|
// 定义异步方法
|
||||||
@ -456,11 +456,18 @@ function handleFileChange() {
|
|||||||
const json = JSON.parse(text.value)
|
const json = JSON.parse(text.value)
|
||||||
|
|
||||||
leads.forEach((lead, index) => {
|
leads.forEach((lead, index) => {
|
||||||
const value = json[lead].trim()
|
const value = json[lead]
|
||||||
const commaSeparatedValue = value.replace(/\s+/g, ',')
|
|
||||||
const numberArray = commaSeparatedValue.split(',').map(Number)
|
beatArray1.value.push(value)
|
||||||
beatArray1.value.push(numberArray)
|
|
||||||
})
|
})
|
||||||
|
// leads.forEach((lead, index) => {
|
||||||
|
// const value = json[lead]?json[lead].trim():""
|
||||||
|
// if(!json[lead])
|
||||||
|
// console.log("xxxxxxxx "+lead)
|
||||||
|
// const commaSeparatedValue = value.replace(/\s+/g, ',')
|
||||||
|
// const numberArray = commaSeparatedValue.split(',').map(Number)
|
||||||
|
// beatArray1.value.push(numberArray)
|
||||||
|
// })
|
||||||
beatArray2.value = beatArray1.value.slice()
|
beatArray2.value = beatArray1.value.slice()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user