|
|
|
@ -167,7 +167,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 暂时隐藏-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- @click.native.stop="rollback(scope.row)"-->
|
|
|
|
@ -182,13 +182,13 @@
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- @click.native.stop="deleteDialog(scope.row)"-->
|
|
|
|
|
<!-- >删除-->
|
|
|
|
|
<!-- </el-button-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- @click.native.stop="deleteDialog(scope.row)"-->
|
|
|
|
|
<!-- >删除-->
|
|
|
|
|
<!-- </el-button-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -573,7 +573,7 @@ import {
|
|
|
|
|
} from "@/api/itextpdf/orderPrint"
|
|
|
|
|
|
|
|
|
|
import {getBasicUnitMaintains, getCorrespondence} from "@/api/basic/basicUnitMaintain";
|
|
|
|
|
import {previewImage,previewFile} from '@/api/purchase/supCompany'
|
|
|
|
|
import {previewImage, previewFile} from '@/api/purchase/supCompany'
|
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -775,23 +775,23 @@ export default {
|
|
|
|
|
this.showSearch = !this.showSearch;
|
|
|
|
|
},
|
|
|
|
|
showImgViewer(row) {
|
|
|
|
|
if(row.filePath.substr(-1) == ','){
|
|
|
|
|
row.filePath=row.filePath.slice(0, row.filePath.length-1);
|
|
|
|
|
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;
|
|
|
|
|
"/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){
|
|
|
|
|
if (index === -1) {
|
|
|
|
|
this.$message.error("文件名异常!")
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
if(row.filePath.substr(index+1)==='pdf'){
|
|
|
|
|
if (row.filePath.substr(index + 1) === 'pdf') {
|
|
|
|
|
let pdf = "application/pdf"
|
|
|
|
|
let binaryData = [];
|
|
|
|
|
previewFile(this.certFileUrl).then(res=>{
|
|
|
|
|
previewFile(this.certFileUrl).then(res => {
|
|
|
|
|
binaryData.push(res);
|
|
|
|
|
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
|
|
|
|
|
window.open(URL);
|
|
|
|
@ -816,23 +816,23 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
showImgViewerCold(row) {
|
|
|
|
|
if(row.coldFilePath.substr(-1) == ','){
|
|
|
|
|
row.coldFilePath=row.coldFilePath.slice(0, row.coldFilePath.length-1);
|
|
|
|
|
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;
|
|
|
|
|
"/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){
|
|
|
|
|
if (index === -1) {
|
|
|
|
|
this.$message.error("文件名异常!")
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
if(row.coldFilePath.substr(index+1)==='pdf'){
|
|
|
|
|
if (row.coldFilePath.substr(index + 1) === 'pdf') {
|
|
|
|
|
let pdf = "application/pdf"
|
|
|
|
|
let binaryData = [];
|
|
|
|
|
previewFile(this.certFileUrl).then(res=>{
|
|
|
|
|
previewFile(this.certFileUrl).then(res => {
|
|
|
|
|
binaryData.push(res);
|
|
|
|
|
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf}));
|
|
|
|
|
window.open(URL);
|
|
|
|
|