WXL
2 天以前 3f49860639e6d5245f1e011fbe3b3aaff70dbb6c
打印
已修改1个文件
14 ■■■■■ 文件已修改
src/views/ecg/doctor/components/RoutinePanel.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/doctor/components/RoutinePanel.vue
@@ -57,8 +57,10 @@
  <el-button @click="submitForm" type="primary" :disabled="formLoading">检查完成</el-button>
  <el-button @click="cancelInstall" :disabled="formLoading">放弃检查</el-button>
  <el-button @click="resetForm()">重 置</el-button>
  <el-button @click="yddownload()">平板运动心电图知情同意书</el-button>
  <el-button @click="sgdownload()">食管心脏电生理诊疗知情同意书</el-button>
  <el-button @click="yddownload()" :loading="yddownloadLoading"
    :disabled="yddownloadLoading">平板运动心电图知情同意书</el-button>
  <el-button @click="sgdownload()" :loading="sgdownloadLoading"
    :disabled="sgdownloadLoading">食管心脏电生理诊疗知情同意书</el-button>
  <el-button
    v-if="needAutoFeeConfirm(formData.checkType)"
    @click="feeConfirm"
@@ -192,7 +194,8 @@
const message = useMessage() // 消息弹窗
const dialogVisible = ref(false) // 弹窗的是否展示
const yddownloadLoading = ref(false);
const sgdownloadLoading = ref(false);
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
const formData = ref<Partial<DevRentVO>>({
@@ -269,12 +272,11 @@
  const response = await DoctorApi.yddownload(props.setappointmentId)
  console.log(response, 'xml1')
  console.log(response.fileContent, 'xml2')
  console.log(DoctorApi.yddownload(props.setappointmentId));
  downloadWordFile(response.fileContent, response.fileName)
}
const sgdownload = async () => {
  const obj = await DoctorApi.sgdownload(props.setappointmentId)
  downloadWordFile(obj, '食管心脏电生理诊疗知情同意书.doc')
  const response = await DoctorApi.sgdownload(props.setappointmentId)
  downloadWordFile(response.fileContent, response.fileName)
}
const downloadWordFile = (data, filename = 'document') => {
  try {