患者出库远程搜索,证书预览问题,创建人,审核人等问题

zyy_db
anthonywj 1 year ago
parent dca51b45d9
commit 95848a6a23

@ -38,11 +38,12 @@ ENV = 'production'
# VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/'
# 长泰医院 # 长泰医院
VUE_APP_BASE_API = 'http://192.168.6.189:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://192.168.6.189:9150/UDI_WMS_MC/'
# 三明大田医院 # 三明大田医院
# VUE_APP_BASE_API = 'http://172.20.124.4:9150/UDI_WMS_MC/' VUE_APP_BASE_API = 'http://172.20.124.4:9150/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://192.168.0.207:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://192.168.0.207:9150/UDI_WMS_MC/'
@ -51,7 +52,13 @@ VUE_APP_BASE_API = 'http://192.168.6.189:9150/UDI_WMS_MC/'
# 林纪裕centos # 林纪裕centos
# VUE_APP_BASE_API = 'http://192.168.0.86:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://192.168.0.86:9150/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://192.168.31.2:9150/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://192.168.80.80:9150/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://192.168.0.207:9160/UDI_WMS_MC/'
# 应用访问路径 例如使用前缀 /admin/ # 应用访问路径 例如使用前缀 /admin/
VUE_APP_CONTEXT_PATH = '/UDI_WMS_NEW/' VUE_APP_CONTEXT_PATH = '/UDI_WMS_NEW/'

@ -1,14 +1,16 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit"> <!-- <meta http-equiv="Content-Security-Policy" content="script-src 'self'; object-src 'none'; style-src example.org third-party.org;">-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <!-- <meta http-equiv=Content-Security-Policy content="default-src 'self';">-->
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= webpackConfig.name %></title> <meta name="renderer" content="webkit">
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]--> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= webpackConfig.name %></title>
<style>
html, html,
body, body,
#app { #app {
@ -16,6 +18,7 @@
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
.chromeframe { .chromeframe {
margin: 0.2em 0; margin: 0.2em 0;
background: #ccc; background: #ccc;
@ -194,15 +197,15 @@
opacity: 0.5; opacity: 0.5;
} }
</style> </style>
</head> </head>
<body> <body>
<div id="app"> <div id="app">
<div id="loader-wrapper"> <div id="loader-wrapper">
<div id="loader"></div> <div id="loader"></div>
<div class="loader-section section-left"></div> <div class="loader-section section-left"></div>
<div class="loader-section section-right"></div> <div class="loader-section section-right"></div>
<div class="load_title">正在加载系统资源,请耐心等待</div> <div class="load_title">正在加载系统资源,请耐心等待</div>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

@ -26,6 +26,17 @@ export function downloadSick(query) {
}); });
} }
/**
* 远程下载
*/
export function remoteFilter(query) {
return axios({
url: "/udiwms/basic/sk/sicker/filter/remote",
method: "get",
params: query
});
}
/** /**
* 处方使用耗材明细 * 处方使用耗材明细

@ -76,7 +76,7 @@ let query = {
code: "", code: "",
adNum: "", adNum: "",
thirdSys: "thirdId", thirdSys: "thirdId",
selectSickers: [], selectSickers: null,
page: 1, page: 1,
limit: 10 limit: 10
} }
@ -139,6 +139,7 @@ export default {
return return
} }
let selectData = this.multipleSelection; let selectData = this.multipleSelection;
this.filterQuery.selectSickers = []
selectData.forEach((obj) => { selectData.forEach((obj) => {
this.filterQuery.selectSickers.push(obj); this.filterQuery.selectSickers.push(obj);
}); });

@ -217,6 +217,7 @@
:remote-method="findSickMethod" :remote-method="findSickMethod"
:loading="loading" :loading="loading"
@change="sickChange" @change="sickChange"
@keyup.enter.native="remoteFindSickMethod"
:disabled="corpOrderIdDisabled" :disabled="corpOrderIdDisabled"
> >
<el-option <el-option
@ -448,16 +449,7 @@
<el-tabs type="border-card" style="margin: 5px"> <el-tabs type="border-card" style="margin: 5px">
<el-tab-pane label="处方使用耗材" v-if="viewSickVisible">
<diSkPrescribePanel
:perscribeData="orderFormData"
:curAction="curAction"
:refreshPanel="refreshCodesPanel"
:sickerAdNum="orderFormData.sickerAdNum"
:viewType="viewType"
v-if="isSickerAlive"
></diSkPrescribePanel>
</el-tab-pane>
<el-tab-pane label="校验详情" v-if="viewCheckVisible || viewType == 7"> <el-tab-pane label="校验详情" v-if="viewCheckVisible || viewType == 7">
<checkResultPanel <checkResultPanel
:idQuery="orderFormData" :idQuery="orderFormData"
@ -497,6 +489,16 @@
:selectUnitTitle="selectUnitTitle" :selectUnitTitle="selectUnitTitle"
></codesPanel> ></codesPanel>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="处方使用耗材" v-if="viewSickVisible">
<diSkPrescribePanel
:perscribeData="orderFormData"
:curAction="curAction"
:refreshPanel="refreshCodesPanel"
:sickerAdNum="orderFormData.sickerAdNum"
:viewType="viewType"
v-if="isSickerAlive"
></diSkPrescribePanel>
</el-tab-pane>
</el-tabs> </el-tabs>
<el-dialog <el-dialog
:title="editTitle" :title="editTitle"
@ -631,7 +633,7 @@ import selectRlDialog from "./DialogSelectRl";
import DialogSelectSpace from "./DialogSelectSpace"; import DialogSelectSpace from "./DialogSelectSpace";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {getDetailBizs} from "@/api/inout/orderDetailCode"; import {getDetailBizs} from "@/api/inout/orderDetailCode";
import {filterNoPage, page} from "@/api/basic/sicker/skPersonApi"; import {filterNoPage, page, remoteFilter} from "@/api/basic/sicker/skPersonApi";
import {selectSysParamByKey} from "@/api/param/systemParamConfig"; import {selectSysParamByKey} from "@/api/param/systemParamConfig";
export default { export default {
@ -964,6 +966,21 @@ export default {
}).catch(() => { }).catch(() => {
}); });
}, },
remoteFindSickMethod(e) {
console.log(e.target.value)
let sickQuery = {
page: 1,
limit: 10,
adNum: e.target.value,
};
remoteFilter(sickQuery).then(res => {
this.fromSickOptions = res.data.list || []
}).catch(() => {
});
},
// //
actionChange(item) { actionChange(item) {
this.orderFormData.checkPreInOption = null; this.orderFormData.checkPreInOption = null;

@ -139,8 +139,6 @@
<span>{{ scope.row.auditTime }}</span> <span>{{ scope.row.auditTime }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="所属部门" prop="deptName" width="120"> <el-table-column label="所属部门" prop="deptName" width="120">
</el-table-column> </el-table-column>
<el-table-column label="所属仓库" prop="invName" width="120"> <el-table-column label="所属仓库" prop="invName" width="120">

@ -143,6 +143,8 @@
</el-table-column> </el-table-column>
<el-table-column label= prop="invName" width="120"> <el-table-column label= prop="invName" width="120">
</el-table-column> </el-table-column>
<el-table-column label= prop="createUserName" width="120">
</el-table-column>
<el-table-column label="来源单据号" prop="corpOrderId" show-overflow-tooltip width="140"></el-table-column> <el-table-column label="来源单据号" prop="corpOrderId" show-overflow-tooltip width="140"></el-table-column>
<el-table-column label="来源" prop="fromType" width="140"> <el-table-column label="来源" prop="fromType" width="140">
<template slot-scope="scope"> <template slot-scope="scope">

@ -121,6 +121,8 @@
</el-table-column> </el-table-column>
<el-table-column label= prop="invName" width="120"> <el-table-column label= prop="invName" width="120">
</el-table-column> </el-table-column>
<el-table-column label= prop="createUserName" width="120">
</el-table-column>
<el-table-column label="来源单据号" prop="corpOrderId" show-overflow-tooltip width="140"></el-table-column> <el-table-column label="来源单据号" prop="corpOrderId" show-overflow-tooltip width="140"></el-table-column>
<el-table-column label="来源" prop="fromType" width="140"> <el-table-column label="来源" prop="fromType" width="140">
<template slot-scope="scope"> <template slot-scope="scope">

@ -161,6 +161,8 @@
</el-table-column> </el-table-column>
<el-table-column label="所属仓库" prop="invName" width="120"> <el-table-column label="所属仓库" prop="invName" width="120">
</el-table-column> </el-table-column>
<el-table-column label= prop="createUserName" width="120">
</el-table-column>
<el-table-column label="来源单号" prop="corpOrderId" show-overflow-tooltip width="180"></el-table-column> <el-table-column label="来源单号" prop="corpOrderId" show-overflow-tooltip width="180"></el-table-column>
<el-table-column label="来源" prop="fromType" width="120"> <el-table-column label="来源" prop="fromType" width="120">
<template slot-scope="scope"> <template slot-scope="scope">

@ -73,28 +73,28 @@
<el-col :span="8"> <el-col :span="8">
<!-- <el-form-item label="往来单位:">--> <!-- <el-form-item label="往来单位:">-->
<!-- <el-select--> <!-- <el-select-->
<!-- v-model="filterQuery.keyWords"--> <!-- v-model="filterQuery.keyWords"-->
<!-- style="width: 90%"--> <!-- style="width: 90%"-->
<!-- filterable--> <!-- filterable-->
<!-- remote--> <!-- remote-->
<!-- clearable="true"--> <!-- clearable="true"-->
<!-- reserve-keyword--> <!-- reserve-keyword-->
<!-- placeholder="请选择往来单位"--> <!-- placeholder="请选择往来单位"-->
<!-- :remote-method="findMethod"--> <!-- :remote-method="findMethod"-->
<!-- :loading="loading"--> <!-- :loading="loading"-->
<!-- >--> <!-- >-->
<!-- <el-option--> <!-- <el-option-->
<!-- v-for="item in fromOptions"--> <!-- v-for="item in fromOptions"-->
<!-- :key="item.name"--> <!-- :key="item.name"-->
<!-- :label="item.name"--> <!-- :label="item.name"-->
<!-- :value="item.erpId"--> <!-- :value="item.erpId"-->
<!-- >--> <!-- >-->
<!-- <span style="float: left">{{ item.name }}</span>--> <!-- <span style="float: left">{{ item.name }}</span>-->
<!-- </el-option>--> <!-- </el-option>-->
<!-- </el-select>--> <!-- </el-select>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item class="query-form-item" label="往来单位:"> <el-form-item class="query-form-item" label="往来单位:">
<el-input v-model="filterQuery.keyWords" placeholder="请选择往来单位" <el-input v-model="filterQuery.keyWords" placeholder="请选择往来单位"
style="width: 90%" style="width: 90%"
@ -158,6 +158,8 @@
</el-table-column> </el-table-column>
<el-table-column label= prop="invName" width="120"> <el-table-column label= prop="invName" width="120">
</el-table-column> </el-table-column>
<el-table-column label= prop="createUserName" width="120">
</el-table-column>
<el-table-column label="来源单据号" prop="corpOrderId" show-overflow-tooltip width="140"></el-table-column> <el-table-column label="来源单据号" prop="corpOrderId" show-overflow-tooltip width="140"></el-table-column>
<el-table-column label="来源" prop="fromType" width="140"> <el-table-column label="来源" prop="fromType" width="140">
<template slot-scope="scope"> <template slot-scope="scope">
@ -191,7 +193,7 @@
>删除 >删除
</el-button </el-button
> >
<!-- <el-button--> <!-- <el-button-->
<!-- type="text"--> <!-- type="text"-->
<!-- size="small"--> <!-- size="small"-->
<!-- v-if="scope.row.status == 1"--> <!-- v-if="scope.row.status == 1"-->

@ -140,6 +140,8 @@
</el-table-column> </el-table-column>
<el-table-column label="所属仓库" prop="invName" width="120"> <el-table-column label="所属仓库" prop="invName" width="120">
</el-table-column> </el-table-column>
<el-table-column label= prop="createUserName" width="120">
</el-table-column>
<el-table-column label="来源单号" prop="corpOrderId" show-overflow-tooltip width="180"></el-table-column> <el-table-column label="来源单号" prop="corpOrderId" show-overflow-tooltip width="180"></el-table-column>
<el-table-column label="来源" prop="fromType" width="140"> <el-table-column label="来源" prop="fromType" width="140">
<template slot-scope="scope"> <template slot-scope="scope">

@ -140,6 +140,8 @@
</el-table-column> </el-table-column>
<el-table-column label="所属仓库" prop="invName" width="120"> <el-table-column label="所属仓库" prop="invName" width="120">
</el-table-column> </el-table-column>
<el-table-column label= prop="createUserName" width="120">
</el-table-column>
<el-table-column label="来源单号" prop="corpOrderId" show-overflow-tooltip width="180"></el-table-column> <el-table-column label="来源单号" prop="corpOrderId" show-overflow-tooltip width="180"></el-table-column>
<el-table-column label="来源" prop="fromType" width="140"> <el-table-column label="来源" prop="fromType" width="140">
<template slot-scope="scope"> <template slot-scope="scope">

@ -7,12 +7,14 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="配送企业名称:"> <el-form-item label="配送企业名称:">
<el-input v-model="filterQuery.companyName" style="width: 90%" placeholder="请输入配送企业名称" clearable></el-input> <el-input v-model="filterQuery.companyName" style="width: 90%" placeholder="请输入配送企业名称"
clearable></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="统一社会信用号:"> <el-form-item label="统一社会信用号:">
<el-input v-model="filterQuery.creditNum" style="width: 90%" placeholder="请输入统一社会信用号" clearable></el-input> <el-input v-model="filterQuery.creditNum" style="width: 90%" placeholder="请输入统一社会信用号"
clearable></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -76,7 +78,6 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="120"> <el-table-column label="操作" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -362,7 +363,7 @@ export default {
page: 1, page: 1,
limit: 20, limit: 20,
}, },
auditType:1, auditType: 1,
loading: false, loading: false,
list: [], list: [],
total: 0, total: 0,
@ -468,7 +469,7 @@ export default {
}; };
return statusMap[status]; return statusMap[status];
}, },
manufacturerStatusType(passCount,failCout) { manufacturerStatusType(passCount, failCout) {
const statusMap = { const statusMap = {
0: "warning", 0: "warning",
1: "success", 1: "success",
@ -511,7 +512,7 @@ export default {
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.filterQuery.manufacturerStatus=1; this.filterQuery.manufacturerStatus = 1;
getSupComapnys(this.filterQuery) getSupComapnys(this.filterQuery)
.then((response) => { .then((response) => {
console.log(response) console.log(response)
@ -567,7 +568,7 @@ export default {
supCompanyClick(row) { supCompanyClick(row) {
this.filterManufacturerQuery.customerId = row.customerId; this.filterManufacturerQuery.customerId = row.customerId;
this.registrationList=[]; this.registrationList = [];
this.onManufacturerReset(); this.onManufacturerReset();
}, },
@ -605,7 +606,7 @@ export default {
}, },
getManufacturerList() { getManufacturerList() {
this.manufacturerLoading = true; this.manufacturerLoading = true;
this.filterManufacturerQuery.productStatus=1; this.filterManufacturerQuery.productStatus = 1;
getCompanyList(this.filterManufacturerQuery) getCompanyList(this.filterManufacturerQuery)
.then((response) => { .then((response) => {
this.manufacturerLoading = false; this.manufacturerLoading = false;

@ -11,7 +11,9 @@
<div style="display: flex;"> <div style="display: flex;">
<el-button v-if="editType==2" type="primary" size="mini" icon="search" @click="onPassSubmit"></el-button> <el-button v-if="editType==2" type="primary" size="mini" icon="search" @click="onPassSubmit"></el-button>
<el-button v-if="editType==2" type="primary" size="mini" @click="onRejectSubmit"></el-button> <el-button v-if="editType==2" type="primary" size="mini" @click="onRejectSubmit"></el-button>
<el-button v-if="editType==1 && auditType!=1" type="primary" size="mini" icon="search" @click="printSupCertAll"></el-button> <el-button v-if="editType==1 && auditType!=1" type="primary" size="mini" icon="search"
@click="printSupCertAll">打印
</el-button>
</div> </div>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 20px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 20px">
@ -148,7 +150,8 @@
<el-table-column label="确认说明" prop="auditComment" show-overflow-tooltip></el-table-column> <el-table-column label="确认说明" prop="auditComment" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="120px"> <el-table-column label="操作" width="120px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="editType==1 && auditType!=1" type="text" size="small" @click.native="printSupCert(scope.row)"> <el-button v-if="editType==1 && auditType!=1" type="text" size="small"
@click.native="printSupCert(scope.row)">打印
</el-button> </el-button>
<el-button type="text" size="small" v-if="editType==2" @click.native="auditCert(scope.row)"></el-button> <el-button type="text" size="small" v-if="editType==2" @click.native="auditCert(scope.row)"></el-button>
<el-button <el-button
@ -163,6 +166,12 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-image-viewer
v-if="imgViewer"
style="z-index: 9999"
:on-close="closeImgViewer"
:url-list="imgList"
/>
<el-pagination <el-pagination
:page-size="certQuery.limit" :page-size="certQuery.limit"
@current-change="certHandleCurrentChange" @current-change="certHandleCurrentChange"
@ -325,6 +334,7 @@ export default {
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
headers: {}, headers: {},
imgViewerVisible: false, imgViewerVisible: false,
imgViewer: false,
imgList: [], imgList: [],
classesDisplay: false, classesDisplay: false,
selectedOptions: [], selectedOptions: [],
@ -463,7 +473,7 @@ export default {
}, },
created() { created() {
this.getCompanyCertList(); this.getCompanyCertList();
// this.customerlist(); // this.customerlist();
this.selectedOptions = this.inputQuery.areaCode.split(","); this.selectedOptions = this.inputQuery.areaCode.split(",");
@ -520,7 +530,7 @@ export default {
return [ return [
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1; 'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1;
}, },
showImgViewer(row){ showImgViewer(row) {
// let newWindow = window.open(); // let newWindow = window.open();
// newWindow.document.write(row.filePath) // newWindow.document.write(row.filePath)
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=";
@ -539,6 +549,7 @@ export default {
}, },
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
this.imgViewer = false;
const m = (e) => { const m = (e) => {
e.preventDefault() e.preventDefault()
}; };

@ -13,7 +13,8 @@
<el-button v-if="editType==2" type="primary" size="mini" icon="search" @click="onPassSubmit"></el-button> <el-button v-if="editType==2" type="primary" size="mini" icon="search" @click="onPassSubmit"></el-button>
<el-button v-if="editType==2" type="primary" size="mini" icon="search" @click="onRejectSubmit"> <el-button v-if="editType==2" type="primary" size="mini" icon="search" @click="onRejectSubmit">
</el-button> </el-button>
<el-button v-if="editType==1 && auditType!=1" type="primary" size="mini" icon="search" @click="printSupCertAll"> <el-button v-if="editType==1 && auditType!=1" type="primary" size="mini" icon="search"
@click="printSupCertAll">打印
</el-button> </el-button>
</div> </div>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 20px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 20px">
@ -200,15 +201,28 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="250"> <el-table-column label="操作" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="editType==1 && auditType!=1" type="text" size="small" @click.native="printSupCert(scope.row)"> <el-button v-if="editType==1 && auditType!=1" type="text" size="small"
@click.native="printSupCert(scope.row)">打印
</el-button> </el-button>
<el-button type="text" size="small" v-if="editType==2" @click.native="auditCert(scope.row)"></el-button> <el-button type="text" size="small" v-if="editType==2" @click.native="auditCert(scope.row)"></el-button>
<el-button
type="text"
size="small"
@click.native="showImgViewer(scope.row)"
>预览
</el-button>
<el-button type="text" size="small" v-if="scope.row.auditStatus==1" @click.native="revoke(scope.row)"> <el-button type="text" size="small" v-if="scope.row.auditStatus==1" @click.native="revoke(scope.row)">
撤回 撤回
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-image-viewer
v-if="imgViewer"
style="z-index: 9999"
:on-close="closeImgViewer"
:url-list="imgList"
/>
<el-pagination <el-pagination
:page-size="certQuery.limit" :page-size="certQuery.limit"
@current-change="certHandleCurrentChange" @current-change="certHandleCurrentChange"
@ -298,7 +312,6 @@
:url-list="imgList"/> :url-list="imgList"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin-top: 12px"> <el-row style="margin-top: 12px">
<el-col :span="22"> <el-col :span="22">
@ -362,6 +375,7 @@ export default {
selectedOptions: [], selectedOptions: [],
selectedOptions2: [], selectedOptions2: [],
imgViewerVisible: false, imgViewerVisible: false,
imgViewer: false,
imgList: [], imgList: [],
options: regionDataPlus, options: regionDataPlus,
rules: { rules: {
@ -552,22 +566,24 @@ export default {
showImgViewer(row) { showImgViewer(row) {
// let newWindow = window.open(); // let newWindow = window.open();
// newWindow.document.write(row.filePath) // newWindow.document.write(row.filePath)
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=";
this.imgList = []; this.imgList = [];
previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => { previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) { if (response.code === 20000) {
this.imgList=response.data; this.imgList = response.data;
} }
}); });
this.imgViewerVisible = true; this.imgViewer = true;
const m = (e) => { this.imgViewerVisible = true;
e.preventDefault() const m = (e) => {
}; e.preventDefault()
document.body.style.overflow = 'hidden'; };
document.addEventListener("touchmove", m, false); // document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer() { closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
this.imgViewer = false;
const m = (e) => { const m = (e) => {
e.preventDefault() e.preventDefault()
}; };

@ -212,7 +212,8 @@
</el-form> </el-form>
<el-card class="el-card"> <el-card class="el-card">
<el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border highlight-current-row> <el-table v-loading="certLoading" :data="certList" ref="certTable" style="width: 100%" border
highlight-current-row>
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column> <el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="证书名称" prop="name"></el-table-column> <el-table-column label="证书名称" prop="name"></el-table-column>
@ -235,14 +236,28 @@
<el-table-column label="操作" width="250"> <el-table-column label="操作" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="editType==1 && auditType!=1" type="text" size="small" @click.native="printSupCert(scope.row)"></el-button> <el-button v-if="editType==1 && auditType!=1" type="text" size="small"
@click.native="printSupCert(scope.row)">打印
</el-button>
<el-button type="text" size="small" v-if="editType==2" @click.native="auditCert(scope.row)"></el-button> <el-button type="text" size="small" v-if="editType==2" @click.native="auditCert(scope.row)"></el-button>
<el-button
type="text"
size="small"
@click.native="showImgViewer(scope.row)"
>预览
</el-button>
<el-button type="text" size="small" v-if="scope.row.auditStatus==1" @click.native="revoke(scope.row)"> <el-button type="text" size="small" v-if="scope.row.auditStatus==1" @click.native="revoke(scope.row)">
撤回 撤回
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-image-viewer
v-if="imgViewer"
style="z-index: 9999"
:on-close="closeImgViewer"
:url-list="imgList"
/>
<el-pagination <el-pagination
:page-size="certQuery.limit" :page-size="certQuery.limit"
@current-change="certHandleCurrentChange" @current-change="certHandleCurrentChange"
@ -327,15 +342,17 @@
<el-col :span="11"> <el-col :span="11">
<el-form-item label="证书文件:"> <el-form-item label="证书文件:">
<el-button type="primary" size="mini" @click.native="showImgViewer(currentAudit)">证书预览</el-button> <el-button type="primary" size="mini" @click.native="showImgViewer(currentAudit)">证书预览</el-button>
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList" /> <el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer"
:url-list="imgList"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="margin-top: 12px"> <el-row style="margin-top: 12px">
<el-col :span="22"> <el-col :span="22">
<el-form-item label="结果说明:"> <el-form-item label="结果说明:">
<el-input type="textarea":disabled="isOpen==1" v-model="currentAudit.auditComment" autocomplete="off" autosize></el-input> <el-input type="textarea" :disabled="isOpen==1" v-model="currentAudit.auditComment" autocomplete="off"
autosize></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -396,8 +413,10 @@ export default {
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
fromOptions: [], fromOptions: [],
fromPMOptions: [], fromPMOptions: [],
imgViewerVisible:false, imgViewerVisible: false,
imgList:[], imgList: [],
imgViewer: false,
pmQuery: { pmQuery: {
customerId: null, customerId: null,
companyName: null, companyName: null,
@ -508,7 +527,7 @@ export default {
1: "失效", 1: "失效",
}, },
confirmStatus: null, confirmStatus: null,
isOpen:false, isOpen: false,
certAuditVisible: false, certAuditVisible: false,
currentAudit: {}, currentAudit: {},
}; };
@ -517,7 +536,7 @@ export default {
if (this.editType == 0) { if (this.editType == 0) {
this.inputQuery.productId = getUUID(""); this.inputQuery.productId = getUUID("");
} else { } else {
if(this.editType!=2 && this.editType!=0){ if (this.editType != 2 && this.editType != 0) {
this.certQuery.auditStatus = 20; this.certQuery.auditStatus = 20;
} }
this.getCompanyCertList(); this.getCompanyCertList();
@ -530,7 +549,7 @@ export default {
}, },
components: { components: {
draggable, companyAddCert,ElImageViewer draggable, companyAddCert, ElImageViewer
}, },
methods: { methods: {
@ -556,27 +575,32 @@ export default {
}, },
isAssetTypeAnImage(ext) { isAssetTypeAnImage(ext) {
return [ return [
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff']. 'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1;
indexOf(ext.toLowerCase()) !== -1;
}, },
showImgViewer(row){ showImgViewer(row) {
// let newWindow = window.open(); // let newWindow = window.open();
// newWindow.document.write(row.filePath) // newWindow.document.write(row.filePath)
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=";
this.imgList=[]; this.imgList = [];
previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => { previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) { if (response.code === 20000) {
this.imgList=response.data; this.imgList = response.data;
} }
}); });
this.imgViewerVisible = true; this.imgViewerVisible = true;
const m = (e) => { e.preventDefault() }; this.imgViewer = true;
document.body.style.overflow = 'hidden'; const m = (e) => {
document.addEventListener("touchmove", m, false); // e.preventDefault()
};
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer(){ closeImgViewer() {
this.imgViewerVisible = false; this.imgViewerVisible = false;
const m = (e) => { e.preventDefault() }; this.imgViewer = false;
const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
document.removeEventListener("touchmove", m, true); document.removeEventListener("touchmove", m, true);
}, },
@ -703,7 +727,7 @@ export default {
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;
this.certList = response.data.list || []; this.certList = response.data.list || [];
this.certTotal=response.data.total; this.certTotal = response.data.total;
}) })
.catch(() => { .catch(() => {
this.certLoading = false; this.certLoading = false;
@ -717,7 +741,7 @@ export default {
auditCert(row) { auditCert(row) {
this.certAuditVisible = true; this.certAuditVisible = true;
this.currentAudit = row; this.currentAudit = row;
this.isOpen=this.currentAudit.auditStatus; this.isOpen = this.currentAudit.auditStatus;
this.confirmStatus = this.currentAudit.auditStatus; this.confirmStatus = this.currentAudit.auditStatus;
}, },
revoke(inputQuery) { revoke(inputQuery) {
@ -780,7 +804,7 @@ export default {
}); });
}, },
printSupCert(row) { printSupCert(row) {
var selectIds=[row.id]; var selectIds = [row.id];
let query = {id: 3}; let query = {id: 3};
this.loading = true; this.loading = true;
verifyTemplateFile(query).then((res) => { verifyTemplateFile(query).then((res) => {
@ -811,12 +835,12 @@ export default {
}) })
}, },
printSupCertAll() { printSupCertAll() {
var certLists=this.$refs.certTable.selection; var certLists = this.$refs.certTable.selection;
var selectIds=[]; var selectIds = [];
certLists.forEach(item => { certLists.forEach(item => {
selectIds.push(item.id); selectIds.push(item.id);
}) })
if(selectIds.length==0){ if (selectIds.length == 0) {
this.$message.error("请先选择打印的证书!"); this.$message.error("请先选择打印的证书!");
return return
} }

Loading…
Cancel
Save