diff --git a/.env.production b/.env.production
index d22932e..81573f8 100644
--- a/.env.production
+++ b/.env.production
@@ -6,7 +6,6 @@ ENV = 'production'
# VUE_APP_BASE_API = 'http://116.204.71.86:9150/UDI_WMS_MC/'
#林纪裕
-# VUE_APP_BASE_API = 'http://101.43.77.55:9150/UDI_SPMS_SERVER/'
VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:82/UDI_SPMS_SERVER/'
# VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_SPMS_SERVER/'
diff --git a/public/favicon.ico b/public/favicon.ico
index 583039c..b47a73c 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/src/api/login.js b/src/api/login.js
index d1bde0f..e6ba982 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -75,3 +75,16 @@ export function getCodeSms() {
timeout: 20000
})
}
+
+
+export function getTitleConfig() {
+ return request({
+ url: '/spms/getTitleConfig',
+ headers: {
+ isToken: false
+ },
+ method: 'get',
+ timeout: 20000
+ })
+}
+
diff --git a/src/api/purchase/supCompany.js b/src/api/purchase/supCompany.js
index 125f0c4..53776a0 100644
--- a/src/api/purchase/supCompany.js
+++ b/src/api/purchase/supCompany.js
@@ -172,6 +172,15 @@ export function previewImage(data) {
});
}
+export function previewFile(url) {
+ return axios({
+ url: url,
+ method: "get",
+ responseType: 'arraybuffer'
+ });
+}
+
+
diff --git a/src/api/thrsys/thrProducts.js b/src/api/thrsys/thrProducts.js
index 4a570a1..4317e2f 100644
--- a/src/api/thrsys/thrProducts.js
+++ b/src/api/thrsys/thrProducts.js
@@ -1,42 +1,50 @@
import axios from "@/utils/request";
export function getThrProducts(query) {
- return axios({
- url: "/udiwms/thrsys/getThrProducts",
- method: "get",
- params: query
- });
+ return axios({
+ url: "/udiwms/thrsys/getThrProducts",
+ method: "get",
+ params: query
+ });
}
export function delThrProducts(query) {
- return axios({
- url: "/udiwms/thrsys/delThrProducts",
- method: "post",
- data: query
- });
+ return axios({
+ url: "/udiwms/thrsys/delThrProducts",
+ method: "post",
+ data: query
+ });
}
export function downloadAll(query) {
- return axios({
- url: "/udiwms/thrsys/products/downloadAll",
- method: "get",
- params: query
- });
+ return axios({
+ url: "/udiwms/thrsys/products/downloadAll",
+ method: "get",
+ params: query
+ });
}
export function productsDlAll(query) {
- return axios({
- url: "/udiwms/thrsys/products/productsDlAll",
- method: "post",
- data: query
- });
+ return axios({
+ url: "/udiwms/thrsys/products/productsDlAll",
+ method: "post",
+ data: query
+ });
}
export function saveNewProduct(data) {
- return axios({
- url: '/udiwms/udiinfo/erp/products/saveProduct',
- method: 'post',
- data: data
- })
+ return axios({
+ url: '/udiwms/udiinfo/erp/products/saveProduct',
+ method: 'post',
+ data: data
+ })
+}
+
+export function updateProduct(data) {
+ return axios({
+ url: '/udiwms/udiinfo/erp/products/update',
+ method: 'post',
+ data: data
+ })
}
diff --git a/src/assets/images/glxplogo.png b/src/assets/images/glxplogo.png
index b5b8e2f..385e999 100644
Binary files a/src/assets/images/glxplogo.png and b/src/assets/images/glxplogo.png differ
diff --git a/src/assets/logo/logo.png b/src/assets/logo/logo.png
index 583039c..385e999 100644
Binary files a/src/assets/logo/logo.png and b/src/assets/logo/logo.png differ
diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue
index d33e525..f396f4b 100644
--- a/src/layout/components/Sidebar/Logo.vue
+++ b/src/layout/components/Sidebar/Logo.vue
@@ -60,7 +60,7 @@ export default {
.sidebar-logo-container {
position: relative;
width: 100%;
- height: 100px;
+ height: 110px;
line-height: 50px;
background: #2b2f3a;
text-align: center;
@@ -72,7 +72,7 @@ export default {
& .sidebar-logo {
width: 100px;
- height: 73px;
+ height: 100px;
margin-top: 12px;
vertical-align: middle;
margin-right: 12px;
@@ -94,7 +94,7 @@ export default {
&.collapse {
.sidebar-logo {
width: 44px;
- height: 32px;
+ height: 44px;
margin-right: 0px;
}
}
diff --git a/src/views/basic/business/stockOrder.vue b/src/views/basic/business/stockOrder.vue
index 4da495c..49b13ee 100644
--- a/src/views/basic/business/stockOrder.vue
+++ b/src/views/basic/business/stockOrder.vue
@@ -227,7 +227,7 @@ export default {
limit: 10,
startTime: "",
endTime: "",
- inCodeStatus: 1,
+ inCodeStatus: 0,
},
detailQuery: {
orderIdFk: "",
@@ -344,7 +344,7 @@ export default {
limit: 10,
startTime: "",
endTime: "",
- inCodeStatus: 1,
+ inCodeStatus: 0,
};
this.getList();
diff --git a/src/views/basic/product/product.vue b/src/views/basic/product/product.vue
index 95b582b..959e638 100644
--- a/src/views/basic/product/product.vue
+++ b/src/views/basic/product/product.vue
@@ -13,8 +13,8 @@
>
{{
- node.label
- }}
@@ -183,32 +183,32 @@
显示/隐藏搜索栏
+ >显示/隐藏搜索栏
重置
+ >重置
查询
+ >查询
选入DI信息
+ >选入DI信息
添加院内字典
+ >添加院内字典
关联添加
+ >关联添加
@@ -246,6 +246,36 @@
width="160"
show-overflow-tooltip
>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -275,6 +363,7 @@
prop="dispatch"
width="120"
show-overflow-tooltip
+ v-if="$auth.hasPermi('basic:dispatch')"
>
@@ -289,27 +378,27 @@
size="small"
:disabled="scope.row.originUuid != null"
@click.native.stop="intentSelectUdi(scope.row)"
- >关联DI
+ >关联DI
详情
+ >详情
编辑
+ >编辑
删除
+ >删除
@@ -918,7 +1007,7 @@
{{ productRemarkSet.remarkTitle1 }}: {{ productRemarkSet.remarkTitle1 }}:
{{ productRemarkSet.remarkTitle2 }}: {{ productRemarkSet.remarkTitle2 }}:
{{ productRemarkSet.remarkTitle3 }}: {{ productRemarkSet.remarkTitle3 }}:
{{ productRemarkSet.remarkTitle4 }}: {{ productRemarkSet.remarkTitle4 }}:
{{ productRemarkSet.remarkTitle5 }}: {{ productRemarkSet.remarkTitle5 }}:
{{ productRemarkSet.remarkTitle6 }}: {{ productRemarkSet.remarkTitle6 }}:
{{ productRemarkSet.remarkTitle7 }}: {{ productRemarkSet.remarkTitle7 }}:
{{ productRemarkSet.remarkTitle8 }}: {{ productRemarkSet.remarkTitle8 }}:
切换版本
+ >切换版本
@@ -1256,7 +1345,7 @@
@click.native.stop="updateVersion()"
:loading="updateLoading"
style="margin-left: 5%"
- >更新当前版本信息
+ >更新当前版本信息
@@ -1291,14 +1380,14 @@
size="small"
icon="search"
@click="onAddSubmit(false)"
- >提交
+ >提交
取消
+ >取消
@@ -1320,14 +1409,14 @@
size="small"
icon="search"
@click="onAddSingleSubmit(false)"
- >提交
+ >提交
取消
+ >取消
@@ -1473,7 +1562,7 @@ import {
selectSysParamByKey,
finProductSet,
} from "@/api/param/systemParamConfig";
-import { filterByUuid } from "@/api/basic/product/udiInfo";
+import {filterByUuid} from "@/api/basic/product/udiInfo";
import selectUdi from "./UdiInfoSelectRel.vue";
import selectErp from "./udiInfoselectErpUdi";
@@ -1484,8 +1573,8 @@ import ProductSingleEdit from "@/views/basic/product/productSingleEdit";
import productUdiType from "@/views/basic/product/productUdiType";
import selectHospProduct from "@/views/basic/product/bindHospProduct";
import selectUnBindHospProduct from "@/views/basic/product/unbindHospProduct";
-import { getBasicHospType, getListTree } from "@/api/basic/basicHospType";
-import { dlLastVersionByDi } from "@/api/basic/udiInfo";
+import {getBasicHospType, getListTree} from "@/api/basic/basicHospType";
+import {dlLastVersionByDi} from "@/api/basic/udiInfo";
export default {
data() {
@@ -1534,7 +1623,16 @@ export default {
false: "不可配送",
},
pId: 0,
- productRemarkSet: {},
+ productRemarkSet: {
+ remarkTitle1: "备注字段1",
+ remarkTitle2: "备注字段2",
+ remarkTitle3: "备注字段3",
+ remarkTitle4: "备注字段4",
+ remarkTitle5: "备注字段5",
+ remarkTitle6: "备注字段6",
+ remarkTitle7: "备注字段7",
+ remarkTitle8: "备注字段8",
+ },
relevanceEdit: {
id: null,
thirdId: "",
@@ -1581,7 +1679,7 @@ export default {
selectVersionVisible: false,
selectLocalVisible: false, //关联UDI
isUseDyCheck: false,
- lockStatusMap: { 1: "未提交", 2: "已提交", 3: "已锁定" },
+ lockStatusMap: {1: "未提交", 2: "已提交", 3: "已锁定"},
activeNames: ["1"],
useNumEnable: true,
updateLoading: false,
@@ -1712,7 +1810,8 @@ export default {
this.$message.error(response.message);
}
})
- .catch(() => {});
+ .catch(() => {
+ });
},
deleteDialog(rowId) {
@@ -1724,7 +1823,8 @@ export default {
.then(() => {
this.deleteOrders(rowId);
})
- .catch(() => {});
+ .catch(() => {
+ });
},
intentDetail() {
@@ -1762,9 +1862,11 @@ export default {
this.$message.error(response.message);
}
})
- .catch(() => {});
+ .catch(() => {
+ });
})
- .catch(() => {});
+ .catch(() => {
+ });
},
removeDi() {
@@ -1791,9 +1893,11 @@ export default {
this.$message.error(response.message);
}
})
- .catch(() => {});
+ .catch(() => {
+ });
})
- .catch(() => {});
+ .catch(() => {
+ });
},
intentSelectErp(val) {
@@ -1973,10 +2077,10 @@ export default {
isAdavence: row.isAdavence,
};
this.editFormat = JSON.parse(JSON.stringify(row));
- if( this.editFormat.overStockNum == null){
+ if (this.editFormat.overStockNum == null) {
this.editFormat.overStockNum = 0;
}
- if( this.editFormat.lowStockNum == null){
+ if (this.editFormat.lowStockNum == null) {
this.editFormat.lowStockNum = 0;
}
this.editDiDialogVisible = true;
@@ -2085,7 +2189,8 @@ export default {
var invlist = response.data || [];
this.treeList = this.handleTree(invlist, "code", "parentCode");
})
- .catch(() => {});
+ .catch(() => {
+ });
},
addHospProduct(data) {
@@ -2123,7 +2228,6 @@ export default {
type: "warning",
})
.then(() => {
- debugger;
this.updateLoading = true;
let query = {
uuid: this.editQuery.uuid,
@@ -2145,10 +2249,12 @@ export default {
this.total = 0;
});
})
- .catch(() => {});
+ .catch(() => {
+ });
},
},
- mounted() {},
+ mounted() {
+ },
components: {
ProductSingleEdit,
ProductEdit,
@@ -2174,6 +2280,7 @@ export default {
margin-left: -2px;
height: 30px;
}
+
.tree {
::v-deep .el-tree-node {
.el-tree-node__content {
diff --git a/src/views/basic/product/productUdiType.vue b/src/views/basic/product/productUdiType.vue
index f27d932..76df4f0 100644
--- a/src/views/basic/product/productUdiType.vue
+++ b/src/views/basic/product/productUdiType.vue
@@ -219,6 +219,7 @@ export default {
});
},
handleSubForm(data, formName) { //新增,编辑
+ debugger
this.formName = formName;
if (formName === "edit") {
this.subData = JSON.parse(JSON.stringify(data));
diff --git a/src/views/inout/DialogCheck.vue b/src/views/inout/DialogCheck.vue
index 0b12a7d..6d19592 100644
--- a/src/views/inout/DialogCheck.vue
+++ b/src/views/inout/DialogCheck.vue
@@ -138,9 +138,10 @@
:action="this.uploadUrl"
:on-preview="uploadHandlePreview"
:on-remove="uploadHandleRemove"
+ :limit="1"
:headers="headers"
:on-exceed="uploadHandleExceed"
- accept=".jpg,.png"
+ accept=".jpg,.png,.pdf"
:on-change="uploadOnchange"
:on-success="uploadHandleSuccess"
:on-error="uploadHandleError"
@@ -151,7 +152,7 @@
{{ choiceFile }}
- 只能上传 jpg,png 文件,且不超过 10 MB
+ 只能上传 jpg,png,pdf 文件,且不超过 10 MB
@@ -189,9 +190,10 @@
:action="this.uploadUrl"
:on-preview="uploadHandlePreview"
:on-remove="uploadHandleRemove1"
+ :limit="1"
:headers="headers"
:on-exceed="uploadHandleExceed"
- accept=".jpg,.png"
+ accept=".jpg,.png,.pdf"
:on-change="uploadOnchange1"
:on-success="uploadHandleSuccess1"
:on-error="uploadHandleError"
@@ -202,7 +204,7 @@
{{ choiceFile1 }}
- 只能上传 jpg,png 文件,且不超过 10 MB
+ 只能上传 jpg,png,pdf 文件,且不超过 10 MB
@@ -217,8 +219,7 @@
style="text-align:right" @click="showImgViewerCold">
冷链报告预览
-
+
@@ -226,6 +227,7 @@
+
@@ -236,7 +238,7 @@
import draggable from "vuedraggable";
import store from "@/store";
import {updateBizById, updateById} from '@/api/inout/orderDetailBiz'
-import {previewImage} from '@/api/purchase/supCompany'
+import {previewImage,previewFile} from '@/api/purchase/supCompany'
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@@ -261,9 +263,9 @@ export default {
data() {
return {
imgList: [],
- imgListCold: [],
+ imgListCold:[],
imgViewerVisible: false,
- imgViewerVisibleCold: false,
+ imgViewerVisibleCold:false,
BASE_URL: process.env.VUE_APP_BASE_API,
code: "",
formData: {
@@ -290,8 +292,7 @@ export default {
headers: {},
choiceFile: "选取文件",
choiceFile1: "选取文件",
- isChangeCheck: false,
- isChangeCold: false,
+
};
},
components: {
@@ -372,7 +373,7 @@ export default {
this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
},
uploadOnchange(file, fileList) {
- // this.inputQuery.checkFileName = file.name;
+ this.inputQuery.checkFileName = file.name;
let fileName = file.name;
let uid = file.uid
let pos = fileName.lastIndexOf(".");
@@ -399,7 +400,7 @@ export default {
return isLt;
},
uploadOnchange1(file, fileList) {
- // this.inputQuery.checkColdFileName = file.name;
+ this.inputQuery.checkColdFileName = file.name;
let fileName = file.name;
let uid = file.uid
let pos = fileName.lastIndexOf(".");
@@ -426,37 +427,20 @@ export default {
return isLt;
},
uploadHandleSuccess(response, file, fileList) {
-
if (response.code === 20000) {
- if (this.inputQuery.filePath == null || this.isChangeCheck == true) {
- this.inputQuery.filePath = response.data.name + ",";
- this.inputQuery.checkFileName = file.name + ",";
- this.isChangeCheck = false;
- } else {
- this.inputQuery.filePath += response.data.name + ",";
- this.inputQuery.checkFileName += file.name + ",";
- }
+ this.inputQuery.filePath = response.data.name;
+ // this.onSubmit();
} else {
this.$message.error("文件上传失败:" + response.message);
}
-
-
},
uploadHandleSuccess1(response, file, fileList) {
if (response.code === 20000) {
- if (this.inputQuery.coldFilePath == null || this.isChangeCold == true) {
- this.inputQuery.coldFilePath = response.data.name + ",";
- this.inputQuery.checkColdFileName = file.name + ",";
- this.isChangeCold = false;
- } else {
- this.inputQuery.coldFilePath += response.data.name + ",";
- this.inputQuery.checkColdFileName += file.name + ",";
- }
+ this.inputQuery.coldFilePath = response.data.name;
+ // this.onSubmit();
} else {
this.$message.error("文件上传失败:" + response.message);
}
-
-
},
uploadHandleError() {
@@ -471,36 +455,85 @@ export default {
return isJPG || isPNG;
},
showImgViewer(row) {
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
+ if(this.inputQuery.filePath.substr(-1) == ','){
+ this.inputQuery.filePath=this.inputQuery.filePath.slice(0, this.inputQuery.filePath.length-1);
+ }
+
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+this.inputQuery.filePath;
this.imgList = [];
- previewImage({imageUrl: this.inputQuery.filePath, certFileUrl: this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgList = response.data;
- }
- console.log(this.imgList)
- this.imgViewerVisible = true;
- });
+ this.imgList.push(this.certFileUrl)
+ let index = this.inputQuery.filePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(this.inputQuery.filePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
const m = (e) => {
- e.preventDefault()
+ e.preventDefault();
};
- document.body.style.overflow = 'hidden';
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
- showImgViewerCold(row) {
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
+ showImgViewerCold(row){
+ if(this.inputQuery.coldFilePath.substr(-1) == ','){
+ this.inputQuery.coldFilePath=this.inputQuery.coldFilePath.slice(0, this.inputQuery.coldFilePath.length-1);
+ }
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+this.inputQuery.coldFilePath;
this.imgList = [];
- previewImage({imageUrl: this.inputQuery.coldFilePath, certFileUrl: this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgList = response.data;
- }
- console.log(this.imgList)
- this.imgViewerVisible = true;
- });
+ this.imgList.push(this.certFileUrl)
+ let index = this.inputQuery.coldFilePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(this.inputQuery.coldFilePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
const m = (e) => {
- e.preventDefault()
+ e.preventDefault();
};
- document.body.style.overflow = 'hidden';
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
@@ -514,11 +547,9 @@ export default {
document.removeEventListener("touchmove", m, true);
},
- closeImgViewerCold() {
+ closeImgViewerCold(){
this.imgViewerVisibleCold = false;
- const m = (e) => {
- e.preventDefault()
- };
+ const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true);
},
@@ -547,13 +578,11 @@ export default {
}
if (this.inputQuery.filePath != null) {
this.choiceFile = "更换检验报告";
- this.isChangeCheck = true;
} else {
this.choiceFile = "选取检验报告";
}
if (this.inputQuery.coldFilePath != null) {
- this.isChangeCold = true;
this.choiceFile1 = "更换冷链报告";
} else {
this.choiceFile1 = "选取冷链报告";
diff --git a/src/views/inout/InvoiceCkeck.vue b/src/views/inout/InvoiceCkeck.vue
index 790323c..03e0b63 100644
--- a/src/views/inout/InvoiceCkeck.vue
+++ b/src/views/inout/InvoiceCkeck.vue
@@ -271,7 +271,7 @@ import AcceptOrder from "@/views/inout/DialogReviewOrder";
import DialogInvoice from "@/views/inout/DialogInvoice";
import InvoiceRegister from "@/views/inout/InvoiceRegister";
-import {previewImage} from "@/api/purchase/supCompany";
+import {previewImage,previewFile} from "@/api/purchase/supCompany";
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
import store from "@/store";
import {deleteRe} from "@/api/auth/register";
@@ -564,7 +564,6 @@ export default {
uploadHandleError() {
},
uploadHandleSuccess(response, file, fileList) {
- debugger;
if (response.code === 20000) {
this.inputQuery.licenseUrl = response.data.name;
// this.onSubmit();
@@ -697,18 +696,34 @@ export default {
showImgViewer(row) {
this.certFileUrl =
this.BASE_URL +
- "/udiwms/image/register/file/getImage?type=image2&name=";
+ "/udiwms/image/register/file/getImage?type=image2&name="+this.inputQuery.licenseUrl;
this.imgList = [];
- previewImage({
- imageUrl: this.inputQuery.licenseUrl,
- certFileUrl: this.certFileUrl,
- }).then((response) => {
- if (response.code === 20000) {
- this.imgList = response.data;
- }
- console.log(this.imgList);
- this.imgViewerVisible = true;
- });
+ this.imgList.push(this.certFileUrl)
+ let index = this.inputQuery.licenseUrl.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(this.inputQuery.licenseUrl.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
const m = (e) => {
e.preventDefault();
};
diff --git a/src/views/inout/InvoiceRegistration.vue b/src/views/inout/InvoiceRegistration.vue
index 86491e4..0929cda 100644
--- a/src/views/inout/InvoiceRegistration.vue
+++ b/src/views/inout/InvoiceRegistration.vue
@@ -537,7 +537,7 @@ import InvoiceRegistrationDetermine from "@/views/inout/InvoiceRegistrationDeter
import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint"
import {getDeptListByUser} from "@/api/auth/authDept";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
-import {previewImage} from '@/api/purchase/supCompany'
+import {previewImage,previewFile} from '@/api/purchase/supCompany'
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@@ -773,19 +773,40 @@ export default {
this.showSearch = !this.showSearch;
},
showImgViewer(row) {
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.licenseUrl;
this.imgList = [];
- previewImage({imageUrl: row.licenseUrl, certFileUrl: this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgList = response.data;
- }
- console.log(this.imgList)
- this.imgViewerVisible = true;
- });
+ this.imgList.push(this.certFileUrl)
+ let index = row.licenseUrl.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.licenseUrl.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
const m = (e) => {
- e.preventDefault()
+ e.preventDefault();
};
- document.body.style.overflow = 'hidden';
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
@@ -1163,6 +1184,7 @@ export default {
}
,
created() {
+ debugger
let supId = this.$store.getters.customerId;
if (supId == "110") {
this.showSup = true;
diff --git a/src/views/inout/IoDeliveryAuditOrder.vue b/src/views/inout/IoDeliveryAuditOrder.vue
index ca4bddc..9fd0105 100644
--- a/src/views/inout/IoDeliveryAuditOrder.vue
+++ b/src/views/inout/IoDeliveryAuditOrder.vue
@@ -592,7 +592,7 @@ import {
orderPDFFromTemplateFile
} from '@/api/itextpdf/orderPrint'
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
-import { previewImage } from '@/api/purchase/supCompany'
+import { previewImage ,previewFile} from '@/api/purchase/supCompany'
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@@ -794,33 +794,78 @@ export default {
this.showSearch = !this.showSearch;
},
showImgViewer(row){
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- this.imgList=[];
- previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgList=response.data;
- }
- console.log(this.imgList)
- this.imgViewerVisible = true;
- });
- const m = (e) => { e.preventDefault() };
- document.body.style.overflow = 'hidden';
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.filePath;
+ this.imgList = [];
+ this.imgList.push(this.certFileUrl)
+ let index = row.filePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.filePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
+ const m = (e) => {
+ e.preventDefault();
+ };
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
showImgViewerCold(row){
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- console.log(this.certFileUrl+"========");
- this.imgListCold=[];
- previewImage({imageUrl:row.coldFilePath,certFileUrl:this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgListCold=response.data;
- }
- console.log(this.imgListCold)
- this.imgViewerVisibleCold = true;
- });
- const m = (e) => { e.preventDefault() };
- document.body.style.overflow = 'hidden';
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath;
+ this.imgList = [];
+ this.imgList.push(this.certFileUrl)
+ let index = row.coldFilePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.coldFilePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
+ const m = (e) => {
+ e.preventDefault();
+ };
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
diff --git a/src/views/inout/IoDeliverySearchOrder.vue b/src/views/inout/IoDeliverySearchOrder.vue
index 78cd29c..a7fbf59 100644
--- a/src/views/inout/IoDeliverySearchOrder.vue
+++ b/src/views/inout/IoDeliverySearchOrder.vue
@@ -614,7 +614,7 @@ import {getCodeList} from "@/api/inout/code";
import AcceptOrder from "@/views/inout/DialogReviewOrder";
import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint"
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
-import { previewImage } from '@/api/purchase/supCompany'
+import { previewImage,previewFile } from '@/api/purchase/supCompany'
import DialogCheck from "@/views/inout/DialogCheck";
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@@ -820,35 +820,85 @@ export default {
this.getList();
},
showImgViewer(row){
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- console.log(this.certFileUrl+"========");
- this.imgList=[];
- previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgList=response.data;
- }
- console.log(this.imgList)
- this.imgViewerVisible = true;
- });
- const m = (e) => { e.preventDefault() };
- document.body.style.overflow = 'hidden';
+ if(row.filePath.substr(-1) == ','){
+ row.filePath=row.filePath.slice(0, row.filePath.length-1);
+ }
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.filePath;
+ this.imgList = [];
+ this.imgList.push(this.certFileUrl)
+ let index = row.filePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.filePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
+ const m = (e) => {
+ e.preventDefault();
+ };
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
showImgViewerCold(row){
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- console.log(this.certFileUrl+"========");
- this.imgListCold=[];
- previewImage({imageUrl:row.coldFilePath,certFileUrl:this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgListCold=response.data;
- }
- console.log(this.imgListCold)
- this.imgViewerVisibleCold = true;
- });
- const m = (e) => { e.preventDefault() };
- document.body.style.overflow = 'hidden';
+ if(row.coldFilePath.substr(-1) == ','){
+ row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1);
+ }
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath;
+ this.imgList = [];
+ this.imgList.push(this.certFileUrl)
+ let index = row.coldFilePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.coldFilePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
+ const m = (e) => {
+ e.preventDefault();
+ };
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
diff --git a/src/views/inout/IoSupAduitOrder.vue b/src/views/inout/IoSupAduitOrder.vue
index 8d5af76..dc57cdf 100644
--- a/src/views/inout/IoSupAduitOrder.vue
+++ b/src/views/inout/IoSupAduitOrder.vue
@@ -441,7 +441,7 @@ import AcceptOrder from "@/views/inout/DialogThrReviewOrder";
import {getDeptListByUser} from "@/api/auth/authDept";
import DialogCheck from "@/views/inout/DialogCheck";
import { getBizDetailList } from '@/api/inout/orderDetailBiz'
-import { previewImage } from '@/api/purchase/supCompany'
+import { previewFile, previewImage } from '@/api/purchase/supCompany'
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@@ -639,35 +639,85 @@ export default {
});
},
- showImgViewer(row){
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- console.log(this.certFileUrl+"========");
- this.imgList=[];
- previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgList=response.data;
- }
- console.log(this.imgList)
- this.imgViewerVisible = true;
- });
- const m = (e) => { e.preventDefault() };
- document.body.style.overflow = 'hidden';
+ showImgViewer(row) {
+ if(row.filePath.substr(-1) == ','){
+ row.filePath=row.filePath.slice(0, row.filePath.length-1);
+ }
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.filePath;
+ this.imgList = [];
+ this.imgList.push(this.certFileUrl)
+ let index = row.filePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.filePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
+ const m = (e) => {
+ e.preventDefault();
+ };
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
- showImgViewerCold(row){
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- console.log(this.certFileUrl+"========");
- this.imgListCold=[];
- previewImage({imageUrl:row.coldFilePath,certFileUrl:this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgListCold=response.data;
- }
- console.log(this.imgListCold)
- this.imgViewerVisibleCold = true;
- });
- const m = (e) => { e.preventDefault() };
- document.body.style.overflow = 'hidden';
+ showImgViewerCold(row) {
+ if(row.coldFilePath.substr(-1) == ','){
+ row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1);
+ }
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath;
+ this.imgList = [];
+ this.imgList.push(this.certFileUrl)
+ let index = row.coldFilePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.coldFilePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
+ const m = (e) => {
+ e.preventDefault();
+ };
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
diff --git a/src/views/inout/IoSupSearchOrder.vue b/src/views/inout/IoSupSearchOrder.vue
index e4ec3bc..e3079ac 100644
--- a/src/views/inout/IoSupSearchOrder.vue
+++ b/src/views/inout/IoSupSearchOrder.vue
@@ -498,7 +498,7 @@ import AcceptOrder from "@/views/inout/DialogReviewOrder";
import DialogCheck from "@/views/inout/DialogCheck";
import {getDeptListByUser} from "@/api/auth/authDept";
-import {previewImage} from '@/api/purchase/supCompany'
+import {previewImage,previewFile} from '@/api/purchase/supCompany'
import {getBizDetailList} from '@/api/inout/orderDetailBiz'
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@@ -695,53 +695,98 @@ export default {
},
showImgViewer(row) {
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- console.log(this.certFileUrl + "========");
+ if(row.filePath.substr(-1) == ','){
+ row.filePath=row.filePath.slice(0, row.filePath.length-1);
+ }
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.filePath;
this.imgList = [];
- previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgList = response.data;
- }
- console.log(this.imgList)
- this.imgViewerVisible = true;
- });
+ this.imgList.push(this.certFileUrl)
+ let index = row.filePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.filePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
const m = (e) => {
- e.preventDefault()
+ e.preventDefault();
};
- document.body.style.overflow = 'hidden';
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
showImgViewerCold(row) {
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- console.log(this.certFileUrl + "========");
- this.imgListCold = [];
- previewImage({imageUrl: row.coldFilePath, certFileUrl: this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgListCold = response.data;
- }
- console.log(this.imgListCold)
- this.imgViewerVisibleCold = true;
- });
+ if(row.coldFilePath.substr(-1) == ','){
+ row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1);
+ }
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath;
+ this.imgList = [];
+ this.imgList.push(this.certFileUrl)
+ let index = row.coldFilePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.coldFilePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
const m = (e) => {
- e.preventDefault()
+ e.preventDefault();
};
- document.body.style.overflow = 'hidden';
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
- closeImgViewer() {
- this.imgViewerVisible = false;
+ closeImgViewerCold() {
+ this.imgViewerVisibleCold = false;
const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true);
},
-
- closeImgViewerCold() {
- this.imgViewerVisibleCold = false;
+ closeImgViewer() {
+ this.imgViewerVisible = false;
const m = (e) => {
e.preventDefault()
};
@@ -749,7 +794,6 @@ export default {
document.removeEventListener("touchmove", m, true);
},
-
upload(row) {
this.currentManufacturer = row;
this.Upinvoice = true;
diff --git a/src/views/inout/IoSupSecAuditOrder.vue b/src/views/inout/IoSupSecAuditOrder.vue
index 7ac8192..04f92d2 100644
--- a/src/views/inout/IoSupSecAuditOrder.vue
+++ b/src/views/inout/IoSupSecAuditOrder.vue
@@ -478,7 +478,7 @@ import AcceptOrder from "@/views/inout/DialogReviewOrder";
import {getDeptListByUser} from "@/api/auth/authDept";
import DialogCheck from "@/views/inout/DialogCheck";
import {getBizDetailList} from "@/api/inout/orderDetailBiz";
-import {previewImage} from '@/api/purchase/supCompany'
+import { previewFile, previewImage } from '@/api/purchase/supCompany'
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
@@ -677,36 +677,84 @@ export default {
this.showSearch = !this.showSearch;
},
showImgViewer(row) {
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- console.log(this.certFileUrl + "========");
+ if(row.filePath.substr(-1) == ','){
+ row.filePath=row.filePath.slice(0, row.filePath.length-1);
+ }
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.filePath;
this.imgList = [];
- previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgList = response.data;
- }
- console.log(this.imgList)
- this.imgViewerVisible = true;
- });
+ this.imgList.push(this.certFileUrl)
+ let index = row.filePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.filePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
const m = (e) => {
- e.preventDefault()
+ e.preventDefault();
};
- document.body.style.overflow = 'hidden';
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
- showImgViewerCold(row){
- this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
- console.log(this.certFileUrl+"========");
- this.imgListCold=[];
- previewImage({imageUrl:row.coldFilePath,certFileUrl:this.certFileUrl}).then(response => {
- if (response.code === 20000) {
- this.imgListCold=response.data;
- }
- console.log(this.imgListCold)
- this.imgViewerVisibleCold = true;
- });
- const m = (e) => { e.preventDefault() };
- document.body.style.overflow = 'hidden';
+ showImgViewerCold(row) {
+ if(row.coldFilePath.substr(-1) == ','){
+ row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1);
+ }
+ this.certFileUrl =
+ this.BASE_URL +
+ "/udiwms/image/register/file/getImage?type=image2&name="+row.coldFilePath;
+ this.imgList = [];
+ this.imgList.push(this.certFileUrl)
+ let index = row.coldFilePath.lastIndexOf('.');
+ if(index===-1){
+ this.$message.error("文件名异常!")
+ return false
+ }
+ if(row.coldFilePath.substr(index+1)==='pdf'){
+ let pdf = "application/pdf"
+ let binaryData = [];
+ previewFile(this.certFileUrl).then(res=>{
+ binaryData.push(res);
+ let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
+ window.open(URL);
+ })
+ // window.open(this.imgList[0])
+ return false
+ }
+ this.imgViewerVisible = true;
+ // previewImage({
+ // imageUrl: this.inputQuery.licenseUrl,
+ // certFileUrl: this.certFileUrl,
+ // }).then((response) => {
+ // if (response.code === 20000) {
+ // }
+ // console.log(this.imgList);
+ // });
+ const m = (e) => {
+ e.preventDefault();
+ };
+ document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // 禁止页面滑动
},
diff --git a/src/views/inout/PanelCreateOrderBizDetail.vue b/src/views/inout/PanelCreateOrderBizDetail.vue
index a8df564..0e4c5f2 100644
--- a/src/views/inout/PanelCreateOrderBizDetail.vue
+++ b/src/views/inout/PanelCreateOrderBizDetail.vue
@@ -36,10 +36,10 @@
+
diff --git a/src/views/myLogin.vue b/src/views/myLogin.vue
index cc5a34b..02e3792 100644
--- a/src/views/myLogin.vue
+++ b/src/views/myLogin.vue
@@ -2,7 +2,9 @@
- 平潭协和医院
+
+
+ {{ title }}
医院UDI管理系统
@@ -121,6 +123,7 @@ import Verify from "vue2-verify";
import axios from "axios";
import Cookies from "js-cookie";
import {decrypt, encrypt} from "@/utils/jsencrypt";
+import {getTitleConfig} from "@/api/login";
export default {
data() {
@@ -157,6 +160,7 @@ export default {
showDialog: false, // 显示dialog
redirect: null, // 回调地址
hospName: "",
+ title: "福建省XXX医院"
};
},
methods: {
@@ -266,6 +270,11 @@ export default {
}
});
},
+ getTitleConfig() {
+ getTitleConfig().then(res => {
+ this.title = res.data.title;
+ });
+ },
},
components: {
Verify,
@@ -281,7 +290,7 @@ export default {
axios.get("./config.json").then((res) => {
this.hospName = res.data.hosp_name;
});
-
+ this.getTitleConfig();
this.getCookie();
},
};
diff --git a/src/views/supplier/company/basicCompanyProducts.vue b/src/views/supplier/company/basicCompanyProducts.vue
index bd02e6d..2a8a272 100644
--- a/src/views/supplier/company/basicCompanyProducts.vue
+++ b/src/views/supplier/company/basicCompanyProducts.vue
@@ -682,7 +682,7 @@ export default {
isUseDy: row.isUseDy,
isDisable: row.isDisable,
isAdavence: row.isAdavence,
- useMuti: row.useMuti
+ useMuti: row.useMuti
};
},
sumitLockStatus(row) {
diff --git a/src/views/supplier/company/basicCompanyproductDetail.vue b/src/views/supplier/company/basicCompanyproductDetail.vue
index e41c02f..170e6e2 100644
--- a/src/views/supplier/company/basicCompanyproductDetail.vue
+++ b/src/views/supplier/company/basicCompanyproductDetail.vue
@@ -1100,7 +1100,6 @@ export default {
type: "warning",
})
.then(() => {
- debugger
this.updateLoading = true;
let query = {uuid: this.editQuery.uuid, originUuid: this.editQuery.originUuid};
syncOnline(query)
diff --git a/src/views/supplier/company/basicCompanyproductEdit.vue b/src/views/supplier/company/basicCompanyproductEdit.vue
index ebb2a74..b34a85f 100644
--- a/src/views/supplier/company/basicCompanyproductEdit.vue
+++ b/src/views/supplier/company/basicCompanyproductEdit.vue
@@ -83,50 +83,94 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -134,16 +178,16 @@
-
-
- 是
- 否
-
-
+
+
+ 是
+ 否
+
+
@@ -251,9 +295,9 @@ export default {
lowStockNum: this.editQuery.lowStockNum,
recentDateTime: this.editQuery.recentDateTime,
isDateBy: this.editQuery.isDateBy,
- relSupId:this.editQuery.id,
- groupBuy:this.editQuery.groupBuy,
- uid:this.editQuery.uid,
+ relSupId: this.editQuery.id,
+ groupBuy: this.editQuery.groupBuy,
+ uid: this.editQuery.uid,
}
updateById(data).then(res => {
diff --git a/src/views/supplier/products/supProductsAddDi.vue b/src/views/supplier/products/supProductsAddDi.vue
index 4a9aec6..d8fd7e1 100644
--- a/src/views/supplier/products/supProductsAddDi.vue
+++ b/src/views/supplier/products/supProductsAddDi.vue
@@ -81,12 +81,12 @@
@click="addDiProductVisible = true"
>选入DI信息
- 添加院内字典
+
+
+
+
+
+
diff --git a/src/views/system/dept/invWarehouse.vue b/src/views/system/dept/invWarehouse.vue
index b75ce5e..36455d0 100644
--- a/src/views/system/dept/invWarehouse.vue
+++ b/src/views/system/dept/invWarehouse.vue
@@ -534,7 +534,6 @@ export default {
},
onResetintent() {
- debugger;
this.$router.push({
path: "",
});
diff --git a/src/views/system/print/pdfTmpleateManage.vue b/src/views/system/print/pdfTmpleateManage.vue
index 7db8666..20620e5 100644
--- a/src/views/system/print/pdfTmpleateManage.vue
+++ b/src/views/system/print/pdfTmpleateManage.vue
@@ -438,7 +438,6 @@ export default {
previewPdf(row) {
- debugger
let query = {id: row.id,module:row.module};
demoPrint(query).then((response) => {
//将pdf文件转换为url。
diff --git a/src/views/thirdSys/product/thrProducts.vue b/src/views/thirdSys/product/thrProducts.vue
index 1b6cca7..7047a67 100644
--- a/src/views/thirdSys/product/thrProducts.vue
+++ b/src/views/thirdSys/product/thrProducts.vue
@@ -5,7 +5,8 @@
-
+
@@ -22,7 +23,8 @@
-
+
@@ -48,14 +50,16 @@
-
-
- 显示/隐藏搜索栏
- 重置
- 查询
- 新增
-
-
+
+
+ 显示/隐藏搜索栏
+ 重置
+ 查询
+ 新增
+
+
+
@@ -70,7 +74,9 @@
详情
- 删除
+ 编辑
+ 删除
@@ -112,21 +118,40 @@
class="dialog-two"
top="5vh"
>
-
+
+
+
+
+
+
+
diff --git a/src/views/userManage/param/basicProductConfig.vue b/src/views/userManage/param/basicProductConfig.vue
index a1f9f8b..2ad870d 100644
--- a/src/views/userManage/param/basicProductConfig.vue
+++ b/src/views/userManage/param/basicProductConfig.vue
@@ -257,8 +257,8 @@ export default {
systemParamConfigList(this.systemQuery)
.then((response) => {
this.systemLoading = false;
- this.systemLists = response.data.list || [];
- this.systemList = this.systemLists.filter(item => item.paramValue !=0);
+ this.systemList = response.data.list || [];
+ // this.systemList = this.systemLists.filter(item => item.paramValue !=0);
this.systemTotal = response.data.total || 0;
})
.catch(() => {