|
|
@@ -54,7 +54,7 @@ import { mapGetters, mapMutations } from "vuex";
|
|
|
import uploadFile from "@/components/UploadFile.vue";
|
|
|
import PriviewEdit from "../business/components/PriviewEdit.vue";
|
|
|
|
|
|
-import { formatPicture } from "@/utils/picture";
|
|
|
+import {formatPicture, toPicture} from "@/utils/picture";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -690,15 +690,9 @@ export default {
|
|
|
async addEMR(next = null) {
|
|
|
let paramsData = this.backUploadData();
|
|
|
let images = this.$refs.edit.imageUrl;
|
|
|
- let spliceRules = process.env.VUE_APP_UPLOAD + "file/";
|
|
|
-
|
|
|
- let uploadImages = [];
|
|
|
- images.forEach(item => {
|
|
|
- uploadImages.push(item.split(spliceRules)[1]);
|
|
|
- });
|
|
|
|
|
|
let params = {
|
|
|
- image1: uploadImages.join(","), // 报告上传
|
|
|
+ image1: toPicture(images), // 报告上传
|
|
|
// 患者id
|
|
|
recordsid: this.getPatiensInfo.pid,
|
|
|
templateId: this.temItem.pid,
|
|
|
@@ -746,15 +740,9 @@ export default {
|
|
|
async setDataToHis() {
|
|
|
let paramsData = this.backUploadData();
|
|
|
let images = this.$refs.edit.imageUrl;
|
|
|
- let spliceRules = process.env.VUE_APP_UPLOAD + "file/";
|
|
|
-
|
|
|
- let uploadImages = [];
|
|
|
- images.forEach(item => {
|
|
|
- uploadImages.push(item.split(spliceRules)[1]);
|
|
|
- });
|
|
|
|
|
|
let params = {
|
|
|
- image1: uploadImages.join(","), // 报告上传
|
|
|
+ image1: toPicture(images), // 报告上传
|
|
|
// 患者id
|
|
|
recordsid: this.getPatiensInfo.pid,
|
|
|
templateId: this.temItem.pid,
|
|
|
@@ -846,14 +834,9 @@ export default {
|
|
|
async editEMR(next = null) {
|
|
|
let paramsData = this.backUploadData();
|
|
|
let images = this.$refs.edit.imageUrl;
|
|
|
- let spliceRules = process.env.VUE_APP_UPLOAD + "file/";
|
|
|
|
|
|
- let uploadImages = [];
|
|
|
- images.forEach(item => {
|
|
|
- uploadImages.push(item.split(spliceRules)[1]);
|
|
|
- });
|
|
|
let params = {
|
|
|
- image1: uploadImages.join(","), // 报告上传
|
|
|
+ image1: toPicture(images), // 报告上传
|
|
|
// 患者id
|
|
|
recordsid: this.getPatiensInfo.pid,
|
|
|
pid: this.pid,
|