Merge remote-tracking branch 'origin/dev2.0' into 20231126-yw
# Conflicts: # src/views/basic/business/stockOrder.vue # src/views/basic/product/UdiInfoSelectLocalUdi.vue # src/views/basic/product/product.vue # src/views/basic/product/udiInfoManageSp.vue # src/views/inout/InvoiceRegByFp.vue # src/views/inout/InvoiceRegByOrder.vue # src/views/inout/IoAuditedOrder.vue # src/views/inout/IoCheckAuditOrder.vue # src/views/inout/IoCheckErrorOrder.vue # src/views/inout/IoCheckSuccessOrder.vue # src/views/inout/IoCreateBusOrder.vue # src/views/inout/IoCreateErrorOrder.vue # src/views/inout/IoCreateOrder.vue # src/views/inout/IoCreateScanOrder.vue # src/views/inout/IoDealOrder.vue # src/views/inout/IoWaitAllocateOrder.vue # src/views/inout/muti/ioOrderMuti.vue # src/views/inout/muti/ioOrderMutiAudit.vue # src/views/inout/muti/ioOrderMutiSelect.vue # src/views/inout/receive/receiveAdd.vue # src/views/inout/receive/receiveAudit.vue # src/views/inout/receive/receiveMySearch.vue # src/views/inout/receive/receiveSearch.vue # src/views/inventory/InvPreProducts.vue # src/views/inventory/InvProducts.vue # src/views/inventory/InvSupPreInProducts.vue # src/views/inventory/count/InvCountOrderAudit.vue # src/views/inventory/count/InvCountOrderCompleted.vue # src/views/inventory/count/InvCountOrderNew.vue # src/views/inventory/supInoutSearchOrder.vue # src/views/purchase/cert/supCertAudit.vue # src/views/purchase/cert/supCertSearch.vue # src/views/purchase/purApply/purApply.vue # src/views/purchase/purApply/pureApplyAudit.vue # src/views/purchase/purApply/pureApplyMySearch.vue # src/views/purchase/purApply/pureApplySearch.vue # src/views/purchase/purOrder/purOrder.vue # src/views/purchase/purOrder/purOrderAudit.vue # src/views/purchase/purOrder/purOrderSearch.vue # src/views/purchase/purOrder/purOrderSearchDetails.vue # src/views/purchase/purPlan/purPlan.vue # src/views/purchase/purPlan/purPlanAudit.vue # src/views/purchase/purPlan/purPlanSearch.vue # src/views/purchase/purPlan/purPlanSearchDetails.vue # src/views/remind/invRemindMsg.vue # src/views/remind/supCertRemindMsg.vue20231126-yw
commit
5aa6359c78
@ -1,27 +1,76 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view />
|
||||
<router-view/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'App',
|
||||
metaInfo() {
|
||||
return {
|
||||
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
|
||||
titleTemplate: title => {
|
||||
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
|
||||
}
|
||||
}
|
||||
export default {
|
||||
name: 'App',
|
||||
metaInfo() {
|
||||
return {
|
||||
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
|
||||
titleTemplate: title => {
|
||||
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.width-full{
|
||||
|
||||
/* 滚动条样式 */
|
||||
::-webkit-scrollbar {
|
||||
width: 10px; /* 滚动条宽度 */
|
||||
height: 10px; /* 滚动条高度 */
|
||||
}
|
||||
|
||||
/* 滚动条轨道 */
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: #f5f5f5; /* 滚动条轨道颜色 */
|
||||
border-radius: 25px; /* 滚动条轨道圆角 */
|
||||
}
|
||||
|
||||
/* 滚动条滑块 */
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: #888; /* 滚动条滑块颜色 */
|
||||
border-radius: 25px; /* 滚动条轨道圆角 */
|
||||
}
|
||||
|
||||
/* 鼠标悬停时滚动条滑块颜色 */
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background-color: #555; /* 鼠标悬停时滚动条滑块颜色 */
|
||||
}
|
||||
|
||||
.color-red {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.p10 {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.width-full {
|
||||
width: 100%;
|
||||
}
|
||||
.w90-percent{
|
||||
width:90%;
|
||||
|
||||
.height-full {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.w90-percent {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -0,0 +1,61 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function getBasicManuMaintains(query) {
|
||||
return axios({
|
||||
url: "/udiwms/basic/manu/maintain/filter",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function basicUnitMaintainSave(data, formName, method = "post") {
|
||||
let url =
|
||||
formName === "add" ? "/udiwms/basic/manu/maintain/save" : "/udiwms/basic/manu/maintain/update";
|
||||
return axios({
|
||||
url: url,
|
||||
method: method,
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function deleteBasicUnitMaintain(query) {
|
||||
return axios({
|
||||
url: "/udiwms/basic/manu/maintain/delete",
|
||||
method: "post",
|
||||
data: query
|
||||
});
|
||||
}
|
||||
|
||||
export function combine(query) {
|
||||
return axios({
|
||||
url: "/udiwms/basic/manu/maintain/combine",
|
||||
method: "post",
|
||||
data: query
|
||||
});
|
||||
}
|
||||
|
||||
export function combineAll(query) {
|
||||
return axios({
|
||||
url: "/udiwms/basic/manu/maintain/combineAll",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
export function combineSingle(query) {
|
||||
return axios({
|
||||
url: "/udiwms/basic/manu/maintain/combineSingle",
|
||||
method: "post",
|
||||
data: query
|
||||
});
|
||||
}
|
||||
|
||||
export function getThrsysUnit(query) {
|
||||
return axios({
|
||||
url: "/udiwms/manutMaintain/thirdSys/detail",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function changeOrderPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/changeOrder/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function saveDraftOrder(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/changeOrder/draft/save",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
export function delDraftOrder(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/changeOrder/del",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
export function saveChangeOrder(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/changeOrder/save",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function changeOrderDetailByUser(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/changeOrder/detailByUser",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function cancelChangeOrder(orderId, query) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/changeOrder/cancel/${orderId}`,
|
||||
method: "GET",
|
||||
params: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function confirmChangeOrder(orderId, query) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/changeOrder/confirm/${orderId}`,
|
||||
method: "GET",
|
||||
params: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function rejectChangeOrder(orderId, query) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/changeOrder/reject/${orderId}`,
|
||||
method: "GET",
|
||||
params: query
|
||||
}
|
||||
)
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function deviceCheckGenByPlanId(planId) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/check/gen/${planId}`,
|
||||
method: "GET"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function deviceCheckPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/check/page`,
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function deviceCheckPageByDept(query) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/check/pageByDept`,
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function deviceCheckPrint(taskId) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/check/info/print/${taskId}`,
|
||||
method: "GET"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function deviceCheckPrintByDeviceCode(taskId, deviceCode) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/check/info/print/${taskId}/${deviceCode}`,
|
||||
method: "GET"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
import axios from "@/utils/request";
|
||||
export function deviceCheckDetailPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/check/detail/page`,
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function deviceCheckDetailRepair(query) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/check/detail/repair`,
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -0,0 +1,20 @@
|
||||
import axios from "@/utils/request";
|
||||
export function deviceCheckDetailItemPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/check/detail/item/page`,
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
export function deviceCheckDetailItemFinish(query) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/check/detail/item/finish`,
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function genCheckItemCode() {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/checkItemDict/code/gen",
|
||||
method: "GET"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function deviceCheckItemDictPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/checkItemDict/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function saveDeviceCheckItemDict(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/checkItemDict/save",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function delDeviceCheckItemDict(query) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/checkItemDict/del/${query}`,
|
||||
method: "DELETE"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function devicePlanPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/plan/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function devicePlanSave(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/plan/save",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function devicePlanInfo(planId) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/plan/info/${planId}`,
|
||||
method: "GET"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function devicePlanDel(planId) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/plan/del/${planId}`,
|
||||
method: "DELETE"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -0,0 +1,49 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function devicePlanDetailGroupPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/plan/detailGroup/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
export function devicePlanDetailPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/plan/detail/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function devicePlanDetailAdd(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/plan/detail/add",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function devicePlanDetailDel(planId,productId) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/plan/detail/delByProductId/${planId}/${productId}`,
|
||||
method: "DELETE"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function devicePlanDetailDelByDeviceCode(planId,deviceCode) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/plan/detail/delByDeviceCode/${planId}/${deviceCode}`,
|
||||
method: "DELETE"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function devicePlanDetailItemPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/plan/detail/item/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function devicePlanDetailItemAdd(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/plan/detail/item/add",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function devicePlanDetailItemDel(planId,productId,itemCode) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/plan/detail/item/delByProductId/${planId}/${productId}/${itemCode}`,
|
||||
method: "DELETE"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function devicePlanDetailItemByDeviceCodeDel(planId,deviceCode,itemCode) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/plan/detail/item/delByDeviceCode/${planId}/${deviceCode}/${itemCode}`,
|
||||
method: "DELETE"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -0,0 +1,29 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function deviceRepairByUserPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/repair/byUser/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function deviceRepairInfo(repairId) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/repair/info/${repairId}`,
|
||||
method: "GET"
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function finishRepairByUser(repairId) {
|
||||
return axios(
|
||||
{
|
||||
url: `/udi/device/repair/finishByUser/${repairId}`,
|
||||
method: "GET"
|
||||
}
|
||||
)
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function deviceRepairApplyPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/repair/apply/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function deviceRepairApplyHallPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/repair/apply/hall/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function deviceRepairApplyConfirmByUserPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/repair/apply/confirmByUser/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function deviceRepairApplyAdd(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/repair/apply/add",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
export function confirmDeviceRepairApply(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/repair/apply/confirm",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function deviceRepairApplyDetailPage(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/repair/apply/detail/page",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
export function deviceRepairApplyDetailDiagnosis(query) {
|
||||
return axios(
|
||||
{
|
||||
url: "/udi/device/repair/apply/detail/diagnosis",
|
||||
method: "POST",
|
||||
data: query
|
||||
}
|
||||
)
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
import axios from "@/utils/request";
|
||||
|
||||
export function getCorps(query) {
|
||||
return axios({
|
||||
url: "/udiwms/thrsys/getManus",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
export function delCorps(query) {
|
||||
return axios({
|
||||
url: "/udiwms/thrsys/delManus",
|
||||
method: "post",
|
||||
data: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function corpsDlAll(query) {
|
||||
return axios({
|
||||
url: "/udiwms/thrsys/manu/corpsDlAll",
|
||||
method: "post",
|
||||
data: query
|
||||
});
|
||||
}
|
||||
|
||||
export function getErpManus(query) {
|
||||
return axios({
|
||||
url: "/udiwms/manu/filterErp",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,36 @@
|
||||
export const deviceChangeType = {
|
||||
ADD: {key: "ADD", tagType: "primary", desc: "新增入库"},
|
||||
CHANGE: {key: "CHANGE", tagType: "warning", desc: "变更归属"},
|
||||
DESTROY: {key: "DESTROY", tagType: "danger", desc: "销毁/报废"},
|
||||
}
|
||||
|
||||
export const deviceChangeStatus = {
|
||||
DRAFT: {key: "DRAFT", tagType: "warning", desc: "草稿"},
|
||||
WAIT_CONFIRM: {key: "WAIT_CONFIRM", tagType: "warning", desc: "待目标部门确认"},
|
||||
REJECT_CONFIRM: {key: "REJECT_CONFIRM", tagType: "danger", desc: "目标部门拒绝"},
|
||||
FINISH: {key: "FINISH", tagType: "success", desc: "已完成"},
|
||||
CANCEL: {key: "CANCEL", tagType: "info", desc: "已取消"},
|
||||
}
|
||||
|
||||
export const deviceStatus = {
|
||||
NORMAL: {key: "NORMAL", tagType: "success", desc: "正常"},
|
||||
CHANGE: {key: "CHANGE", tagType: "warning", desc: "变更归属中"},
|
||||
REPAIR_APPLY: {key: "REPAIR_APPLY", tagType: "warning", desc: "维修申请中"},
|
||||
REPAIR: {key: "REPAIR", tagType: "danger", desc: "维修中"},
|
||||
// CHECK: {key: "CHECK", tagType: "warning", desc: "等待巡检"},
|
||||
DESTROY: {key: "DESTROY", tagType: "danger", desc: "销毁/报废"},
|
||||
}
|
||||
|
||||
export const deviceRepairApplyStatus = {
|
||||
WAIT_PROCESS: {key: "WAIT_PROCESS", tagType: "warning", desc: "待受理"},
|
||||
PROCESSING: {key: "PROCESSING", tagType: "primary", desc: "受理中"},
|
||||
// REPAIRING: {key: "REPAIRING", tagType: "primary", desc: "维修中"},
|
||||
FINISH: {key: "FINISH", tagType: "success", desc: "完成"},
|
||||
}
|
||||
|
||||
export const deviceRepairApplyDetailStatus = {
|
||||
WAIT_DIAGNOSIS: {key: "WAIT_DIAGNOSIS", tagType: "warning", desc: "待诊断"},
|
||||
// WAIT_REPAIR: {key: "WAIT_REPAIR", tagType: "warning", desc: "待维修"},
|
||||
REPAIRING: {key: "REPAIRING", tagType: "primary", desc: "维修中"},
|
||||
FINISH: {key: "FINISH", tagType: "success", desc: "完成"},
|
||||
}
|
||||
@ -0,0 +1,227 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card class="el-card">
|
||||
<el-form :model="unitQuery" size="mini" label-width="100px" v-if="showSearch">
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="往来单位编码:">
|
||||
<el-input v-model="unitQuery.unitId" style="width: 90%" placeholder="请输入往来单位编码" clearable></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="请设置主系统:">
|
||||
<el-select v-model="thirdSysFk" style="width: 90%" placeholder="请设置主系统" disabled>
|
||||
<el-option
|
||||
v-for="item in thirdSys"
|
||||
:key="item.value"
|
||||
:label="item.thirdName"
|
||||
:value="item.thirdId">
|
||||
<span style="float: left">{{ item.thirdName }}</span>
|
||||
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
|
||||
<div class="top-right-btn">
|
||||
<el-button-group style="display:flex;">
|
||||
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
||||
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="search">查询</el-button>
|
||||
<el-button type="primary" size="mini" icon="el-icon-bottom-right" @click="combine">选入</el-button>
|
||||
<el-button type="primary" size="mini" icon="el-icon-bottom-right" @click="combineAll">结果全部选入</el-button>
|
||||
</el-button-group>
|
||||
</div>
|
||||
<el-divider style="margin: 15px"></el-divider>
|
||||
<el-table :data="unitlList" style="width: 100%" @selection-change="handleSelectionUdiChange" border
|
||||
highlight-current-row>
|
||||
<el-table-column type="selection" width="55" :selectable="checkSelectable"></el-table-column>
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column label="往来单位编码" prop="unitId"></el-table-column>
|
||||
<el-table-column label="往来单位名称" prop="name" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="往来单位简写" show-overflow-tooltip prop="spell"></el-table-column>
|
||||
<el-table-column label="地址" prop="addr" show-overflow-tooltip></el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="unitQuery.page"
|
||||
:limit.sync="unitQuery.limit"
|
||||
@pagination="handlepageChange"
|
||||
|
||||
></pagination>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
|
||||
import {getCorps} from "@/api/thrsys/thrManus";
|
||||
import {combine, combineAll} from "@/api/basic/basicManuMaintain";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showSearch: true,
|
||||
unitQuery: {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
key: "",
|
||||
thirdSys: null,
|
||||
},
|
||||
combineQuery: {
|
||||
thirdSys: "",
|
||||
keys: [],
|
||||
custmandocResponses: [],
|
||||
},
|
||||
total: 0,
|
||||
erpTotal: 0,
|
||||
checked: false,
|
||||
unitlList: [],
|
||||
erpList: [],
|
||||
currentRow: null,
|
||||
multipleUdiSelection: [],
|
||||
thirdSys: [],
|
||||
thirdSysFk: null,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
onReset() {
|
||||
this.$router.push({
|
||||
path: "",
|
||||
});
|
||||
this.unitQuery = {
|
||||
key: "",
|
||||
page: 1,
|
||||
limit: 10,
|
||||
thirdSys: null,
|
||||
};
|
||||
this.getList();
|
||||
},
|
||||
hideSearch() {
|
||||
this.showSearch = !this.showSearch;
|
||||
},
|
||||
handlepageChange(val) {
|
||||
this.unitQuery.page = val.page;
|
||||
this.getList();
|
||||
},
|
||||
handleErppageChange(val) {
|
||||
this.erpQuery.page = val;
|
||||
this.getErpList();
|
||||
},
|
||||
checkSelectable(row) {
|
||||
return !row.checked;
|
||||
},
|
||||
search() {
|
||||
this.unitQuery.page = 1;
|
||||
this.getList();
|
||||
},
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.unitQuery.thirdSys = this.thirdSysFk;
|
||||
getCorps(this.unitQuery)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
|
||||
if (response.code == 20000) {
|
||||
this.unitlList = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
this.unitlList = [];
|
||||
this.total = 0;
|
||||
}
|
||||
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.unitlList = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
|
||||
intentBack() {
|
||||
this.$router.go(-1);
|
||||
},
|
||||
getBasicThirdSys() {
|
||||
let query = {
|
||||
enabled: true,
|
||||
mainSys: true,
|
||||
};
|
||||
getBasicThirdSys(query)
|
||||
.then((response) => {
|
||||
this.thirdSys = response.data.list || [];
|
||||
this.thirdSysFk = this.thirdSys[0].thirdId;
|
||||
this.getList();
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
});
|
||||
},
|
||||
combine() {
|
||||
let selectData = this.multipleUdiSelection;
|
||||
var ids = [];
|
||||
selectData.forEach((obj) => {
|
||||
ids.push(obj);
|
||||
});
|
||||
if (ids.length == 0) {
|
||||
this.$message.warning("请选择往来单位信息!");
|
||||
return;
|
||||
}
|
||||
this.combineQuery.thirdSys = this.thirdSysFk;
|
||||
this.combineQuery.custmandocResponses = ids;
|
||||
combine(this.combineQuery)
|
||||
.then((response) => {
|
||||
if (response.code == 20000) {
|
||||
this.$emit("closeMain", true);
|
||||
} else {
|
||||
this.$emit("closeMain", false);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.$emit("closeMain", false);
|
||||
});
|
||||
},
|
||||
combineAll() {
|
||||
|
||||
this.$confirm("此操作将在后台自动选入所有查询结果, 是否继续?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
})
|
||||
.then(() => {
|
||||
this.unitQuery.thirdSys = this.thirdSysFk;
|
||||
combineAll(this.unitQuery)
|
||||
.then((response) => {
|
||||
if (response.code == 20000) {
|
||||
this.$emit("closeMain", true);
|
||||
} else {
|
||||
this.$emit("closeMain", false);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.$emit("closeMain", false);
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
|
||||
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
this.currentRow = val;
|
||||
this.unitQuery.key = this.currentRow.name;
|
||||
},
|
||||
|
||||
handleSelectionUdiChange(val) {
|
||||
this.multipleUdiSelection = val;
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getBasicThirdSys();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@ -0,0 +1,239 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
<el-card class="el-card">
|
||||
<el-form :model="unitQuery" label-width="100px" v-if="showSearch" size="mini">
|
||||
<el-row>
|
||||
<el-col span="6">
|
||||
<el-form-item label="生产企业编码:">
|
||||
<el-input v-model="unitQuery.unitId" style="width: 90%" placeholder="生产企业编码" clearable></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col span="6">
|
||||
<el-form-item label="生产企业:">
|
||||
<el-input v-model="unitQuery.name" style="width: 90%" placeholder="生产企业" clearable></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col span="6">
|
||||
<el-form-item label="外部系统:">
|
||||
<el-select v-model="thirdSysFk" style="width: 90%" placeholder="请选择第三方系统" disabled="true">
|
||||
<el-option
|
||||
v-for="item in thirdSys"
|
||||
:key="item.value"
|
||||
:label="item.thirdName"
|
||||
:value="item.thirdId">
|
||||
<span style="float: left">{{ item.thirdName }}</span>
|
||||
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
|
||||
<div class="top-right-btn">
|
||||
<el-button-group style="display:flex;">
|
||||
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
||||
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="searchList">查询</el-button>
|
||||
<el-button type="primary" size="mini" icon="el-icon-bottom-right" @click="combine" :loading="combineLoading">
|
||||
选入
|
||||
</el-button>
|
||||
</el-button-group>
|
||||
</div>
|
||||
|
||||
<el-divider style="margin: 15px"></el-divider>
|
||||
<el-table border highlight-current-row @current-change="handleCurrentChange" :data="unitlList"
|
||||
:row-class-name="tableRowClassName" style="width: 100%">
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column label="生产企业编码" prop="unitId"></el-table-column>
|
||||
<el-table-column label="生产企业名称" prop="name" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="生产企业简写" show-overflow-tooltip prop="spell"></el-table-column>
|
||||
<el-table-column label="地址" prop="addr"></el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="unitQuery.page"
|
||||
:limit.sync="unitQuery.limit"
|
||||
@pagination="handlepageChange"
|
||||
|
||||
></pagination>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
|
||||
import {getCorps} from "@/api/thrsys/thrManus";
|
||||
import {combine, combineAll, combineSingle} from "@/api/basic/basicManuMaintain";
|
||||
|
||||
export default {
|
||||
name: "combinType",
|
||||
props: {
|
||||
corpData: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
defaultSys: {
|
||||
type: Object,
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
showSearch: true,
|
||||
unitQuery: {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
key: "",
|
||||
thirdSys: null,
|
||||
},
|
||||
combineQuery: {
|
||||
thirdSys: "",
|
||||
key: null,
|
||||
basicErpUnitsResponse: [],
|
||||
},
|
||||
total: 0,
|
||||
erpTotal: 0,
|
||||
checked: false,
|
||||
unitlList: [],
|
||||
erpList: [],
|
||||
currentRow: null,
|
||||
multipleUdiSelection: [],
|
||||
thirdSys: [],
|
||||
thirdSysFk: null,
|
||||
combineLoading: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
handlepageChange(val) {
|
||||
this.unitQuery.page = val.page;
|
||||
this.getList();
|
||||
},
|
||||
handleErppageChange(val) {
|
||||
this.erpQuery.page = val;
|
||||
this.getErpList();
|
||||
},
|
||||
searchList() {
|
||||
this.unitQuery.page = 1;
|
||||
this.getList();
|
||||
},
|
||||
hideSearch() {
|
||||
this.showSearch = !this.showSearch;
|
||||
},
|
||||
onReset() {
|
||||
this.unitQuery = {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
key: "",
|
||||
thirdSys: null,
|
||||
}
|
||||
this.total = 0;
|
||||
this.getList();
|
||||
},
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.unitQuery.thirdSys = this.thirdSysFk;
|
||||
getCorps(this.unitQuery)
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
this.loading = false;
|
||||
|
||||
if (response.code == 20000) {
|
||||
this.unitlList = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
this.unitlList = [];
|
||||
this.total = 0;
|
||||
}
|
||||
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.unitlList = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
|
||||
intentBack() {
|
||||
this.$router.go(-1);
|
||||
},
|
||||
getBasicThirdSys() {
|
||||
let query = {
|
||||
enabled: true,
|
||||
};
|
||||
getBasicThirdSys(query)
|
||||
.then((response) => {
|
||||
this.thirdSys = response.data.list || [];
|
||||
this.thirdSysFk = this.thirdSys[0].thirdId;
|
||||
if (this.defaultSys != null) {
|
||||
this.thirdSysFk = this.defaultSys;
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
});
|
||||
},
|
||||
|
||||
handleCurrentChange(val) {
|
||||
console.log(val);
|
||||
this.combineQuery.thirdSys = this.thirdSysFk;
|
||||
this.combineQuery.key = this.corpData.id;
|
||||
this.combineQuery.basicErpUnitsResponse = val;
|
||||
},
|
||||
combine() {
|
||||
|
||||
if (this.combineQuery.key == null) {
|
||||
this.$message.warning("未选择生产企业!");
|
||||
return;
|
||||
}
|
||||
if (this.combineQuery.basicErpUnitsResponse.checked == true) {
|
||||
this.$message.warning("该生产企业已被关联,不能重复选入!");
|
||||
return;
|
||||
}
|
||||
|
||||
this.combineLoading = true;
|
||||
combineSingle(this.combineQuery)
|
||||
.then((response) => {
|
||||
this.combineLoading = false;
|
||||
this.$emit("cancelDialog", true);
|
||||
if (response.code == 20000) {
|
||||
this.$message.success("关联成功!");
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.combineLoading = false;
|
||||
this.$emit("cancelDialog", false);
|
||||
});
|
||||
},
|
||||
tableRowClassName({row}) {
|
||||
if (row.checked) return "warning-row";
|
||||
return "";
|
||||
},
|
||||
handleSelectionUdiChange(val) {
|
||||
console.log("----" + val[0].id);
|
||||
this.multipleUdiSelection = val;
|
||||
},
|
||||
|
||||
},
|
||||
created() {
|
||||
this.getBasicThirdSys();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
div /deep/ .el-table .warning-row {
|
||||
background: #bebebe;
|
||||
}
|
||||
|
||||
div /deep/ .el-table .success-row {
|
||||
background: #ffffff;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,202 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card class="el-card">
|
||||
|
||||
<el-form :model="filterQuery" label-width="auto" v-if="showSearch" size="mini">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="患者编号:" class="query-form-item">
|
||||
<el-input v-model="filterQuery.code" placeholder="请输入患者编号"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="患者姓名:" class="query-form-item">
|
||||
<el-input v-model="filterQuery.name" placeholder="请输入患者姓名"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="住院号:" class="query-form-item">
|
||||
<el-input v-model="filterQuery.adNum" placeholder="请输入住院号"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item class="query-form-item" label="外部系统:">
|
||||
<el-select v-model="filterQuery.thirdSys" style="width: 90%" placeholder="请选择第三方系统">
|
||||
<el-option
|
||||
v-for="item in thirdSys"
|
||||
:key="item.value"
|
||||
:label="item.thirdName"
|
||||
:value="item.thirdId">
|
||||
<span style="float: left">{{ item.thirdName }}</span>
|
||||
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-button-group class="top-right-btn">
|
||||
<el-button type="primary" icon="el-icon-refresh" @click="showSearch = !showSearch">显示/隐藏搜索栏</el-button>
|
||||
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-download" @click="downloadErp">选中下载</el-button>
|
||||
<el-button type="primary" icon="el-icon-download" @click="downloadAllErp">结果全部下载
|
||||
</el-button>
|
||||
|
||||
</el-button-group>
|
||||
<el-divider></el-divider>
|
||||
|
||||
|
||||
<el-table v-loading="loading" :data="list"
|
||||
@selection-change="handleSelectionChange"
|
||||
border highlight-current-row
|
||||
style="width: 100%">
|
||||
<el-table-column type="selection" width="55"></el-table-column>
|
||||
<el-table-column label="序号" type="index" width="80"></el-table-column>
|
||||
<el-table-column label="患者编号" prop="code" width="160"></el-table-column>
|
||||
<el-table-column label="患者姓名" prop="name" width="160"></el-table-column>
|
||||
<el-table-column label="性别" prop="createByName" width="160"></el-table-column>
|
||||
<el-table-column label="住院号" prop="adNum" width="160"></el-table-column>
|
||||
<el-table-column label="职业" prop="gender" width="160"></el-table-column>
|
||||
<el-table-column label="最后更新时间" prop="createTime" width="180"></el-table-column>
|
||||
</el-table>
|
||||
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import {dlSickerOnline, downloadSick} from "@/api/basic/sicker/skPersonApi";
|
||||
import {getBasicThirdSys} from "@/api/thrsys/basicThirdSys";
|
||||
|
||||
let query = {
|
||||
name: "",
|
||||
code: "",
|
||||
adNum: "",
|
||||
thirdSys: "thirdId",
|
||||
selectSickers: null,
|
||||
page: 1,
|
||||
limit: 10
|
||||
}
|
||||
export default {
|
||||
name: "skPersonDownload",
|
||||
props: {
|
||||
selectType: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
filterQuery: {...query},
|
||||
showSearch: true,
|
||||
multipleSelection: [],
|
||||
loading: false,
|
||||
list: [],
|
||||
thirdSys: [],
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
handleSelectionChange(val) {
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
|
||||
onReset() {
|
||||
this.filterQuery = {...query}
|
||||
this.getList()
|
||||
},
|
||||
onSubmit() {
|
||||
this.filterQuery.page = 1;
|
||||
this.getList()
|
||||
},
|
||||
|
||||
getList() {
|
||||
this.loading = true;
|
||||
dlSickerOnline(this.filterQuery)
|
||||
.then((response) => {
|
||||
if (response.code == 20000) {
|
||||
this.list = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
} else {
|
||||
this.$message.error(response.message);
|
||||
}
|
||||
this.loading = false;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
downloadErp() {
|
||||
if (this.multipleSelection == null || this.multipleSelection.length < 1) {
|
||||
this.$message.warning("请选择需要下载患者信息!");
|
||||
return
|
||||
}
|
||||
let selectData = this.multipleSelection;
|
||||
this.filterQuery.selectSickers = []
|
||||
selectData.forEach((obj) => {
|
||||
this.filterQuery.selectSickers.push(obj);
|
||||
});
|
||||
|
||||
downloadSick(this.filterQuery).then(res => {
|
||||
this.dlSickLoading = false
|
||||
if (res.code != 20000) {
|
||||
this.$message.error(res.message)
|
||||
return
|
||||
} else {
|
||||
this.$emit("cancelDialog", true);
|
||||
this.$message.success("后台正在下载更新,请稍后刷新重试!");
|
||||
}
|
||||
}).catch(() => {
|
||||
this.dlSickLoading = false
|
||||
this.$message.error("数据加载失败")
|
||||
})
|
||||
},
|
||||
|
||||
downloadAllErp() {
|
||||
this.dlSickLoading = true;
|
||||
downloadSick({thidSys: "thirdId"}).then(res => {
|
||||
this.dlSickLoading = false
|
||||
if (res.code != 20000) {
|
||||
this.$message.error(res.message)
|
||||
return
|
||||
} else {
|
||||
this.$emit("cancelDialog", true);
|
||||
this.$message.success("后台正在下载更新,请稍后刷新重试!");
|
||||
}
|
||||
}).catch(() => {
|
||||
this.dlSickLoading = false
|
||||
this.$message.error("数据加载失败")
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
getBasicThirdSys() {
|
||||
let query = {
|
||||
enabled: true,
|
||||
};
|
||||
getBasicThirdSys(query)
|
||||
.then((response) => {
|
||||
this.thirdSys = response.data.list || [];
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
});
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getBasicThirdSys();
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@ -0,0 +1,131 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card style="margin-top: -15px">
|
||||
<el-form :model="filterQuery" label-width="90px" v-if="showSearch">
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="产品编码:">
|
||||
<el-input v-model="filterQuery.unionCode" style="width: 100%" placeholder="请输入DI/医保编码/商品条码"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="产品通用名:">
|
||||
<el-input v-model="filterQuery.cpmctymc" style="width: 100%" placeholder="请输入产品通用名"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="规格型号:">
|
||||
<el-input v-model="filterQuery.ggxh" style="width: 100%" placeholder="请输入规格型号"
|
||||
clearable="true"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
|
||||
<div class="top-right-btn">
|
||||
<el-button-group style="display:flex;">
|
||||
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
||||
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
||||
</el-button-group>
|
||||
</div>
|
||||
|
||||
|
||||
<el-table v-loading="loading" :data="list" style="width: 100%" border
|
||||
highlight-current-row>
|
||||
<!-- <el-table-column type="selection" width="55"></el-table-column>-->
|
||||
<el-table-column label="序号" type="index"></el-table-column>
|
||||
<el-table-column label="处方编码" prop="prescribeCode" width="140" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="DI标识" prop="diCode" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="生产企业" prop="manufactory" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="产品通用名" prop="thrName" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="注册/备案凭证" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="计量单位" prop="measureUnit" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="金额" prop="amount" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="数量" prop="measureCount" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column width="60" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.native.stop="handleModifyClick(scope.row)">详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
|
||||
</el-card>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {skPrescribeDi} from "@/api/basic/sicker/skPersonApi";
|
||||
|
||||
export default {
|
||||
name: "skPrescribeDi",
|
||||
props: {
|
||||
perscribeData: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
filterQuery: {
|
||||
cpmctymc: null,
|
||||
unionCode: null,
|
||||
adNum: null,
|
||||
page: 1,
|
||||
limit: 10,
|
||||
ggxh: null,
|
||||
},
|
||||
total: 0,
|
||||
loading: false,
|
||||
list: [],
|
||||
showSearch: true,
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.filterQuery.adNum = this.perscribeData.adNum;
|
||||
skPrescribeDi(this.filterQuery)
|
||||
.then((response) => {
|
||||
this.loading = false;
|
||||
this.list = response.data.list || [];
|
||||
this.total = response.data.total || 0;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
this.list = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
hideSearch() {
|
||||
this.showSearch = !this.showSearch;
|
||||
},
|
||||
|
||||
onReset() {
|
||||
this.$router.push({
|
||||
path: "",
|
||||
});
|
||||
this.filterQuery = {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
};
|
||||
this.getList();
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@ -0,0 +1,40 @@
|
||||
import {filterList} from "@/api/system/invWarehouse";
|
||||
|
||||
|
||||
export default {
|
||||
name: "deptSelect",
|
||||
props: {value: {required: true},notCode:null},
|
||||
data() {
|
||||
return {
|
||||
val: '',
|
||||
list: [],
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
val(newVal) {
|
||||
this.$emit('update:value', newVal);
|
||||
},
|
||||
value(newVal) {
|
||||
this.val = newVal
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.val = this.value
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
filterList({enable: true}).then(res => {
|
||||
if (res.code == 20000) {
|
||||
this.list = res.data.list || []
|
||||
if(this.notCode!=null) {
|
||||
let index = this.list.findIndex(i => i.code == this.notCode);
|
||||
if(index!=-1){
|
||||
this.list.splice(index,1)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
<template>
|
||||
|
||||
<el-select v-model="val" class="width-full" placeholder="请选择" filterable clearable>
|
||||
<el-option v-for="item in list" :key="item.id" :label="item.name" :value="item.code"/>
|
||||
</el-select>
|
||||
</template>
|
||||
|
||||
<script src="./index.js">
|
||||
</script>
|
||||
@ -0,0 +1,41 @@
|
||||
import {getBasicThirdSys} from "@/api/basic/basicThirdSys";
|
||||
import {getLoading} from "@/utils";
|
||||
import {deviceRepairInfo} from "@/api/dev/deviceRepairApi";
|
||||
|
||||
|
||||
export default {
|
||||
name: "deviceRepairDialog",
|
||||
props: {repairId: {require: true}},
|
||||
data() {
|
||||
return {
|
||||
info: null
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
val(newVal) {
|
||||
this.$emit('update:value', newVal);
|
||||
},
|
||||
value(newVal) {
|
||||
this.val = newVal
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.val = this.value
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
getInfo() {
|
||||
let load = getLoading(this)
|
||||
deviceRepairInfo(this.repairId).then(res => {
|
||||
load.close()
|
||||
if (res.code != 20000) {
|
||||
this.$message.error(res.message)
|
||||
return
|
||||
}
|
||||
this.info = res.data
|
||||
}).catch(() => {
|
||||
load.close()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<el-card v-if="info">
|
||||
<div slot="header" class="clearfix">
|
||||
<div class="fl">
|
||||
{{ `设备号:${info.deviceCode}` }}
|
||||
</div>
|
||||
<div class="fr">
|
||||
<el-button @click="getInfo">刷新</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-descriptions border label-style="width:90px" :column="4">
|
||||
<el-descriptions-item label="维修号">{{ info.id }}</el-descriptions-item>
|
||||
<el-descriptions-item label="状态"><el-tag :type="info.finishFlag?'success':'warning'">{{
|
||||
info.finishFlag ? '已完成' : '未完成'
|
||||
}}</el-tag></el-descriptions-item>
|
||||
<el-descriptions-item label="名称">{{ info.productName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="规格">{{ info.ggxh }}</el-descriptions-item>
|
||||
<el-descriptions-item label="销售标识">{{ info.nameCode }}</el-descriptions-item>
|
||||
<el-descriptions-item label="注册/备案号">{{ info.zczbhhzbapzbh }}</el-descriptions-item>
|
||||
<el-descriptions-item label="生产企业">{{ info.manufactory }}</el-descriptions-item>
|
||||
<el-descriptions-item label="供应商">{{ info.supName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="批次号">{{ info.batchNo }}</el-descriptions-item>
|
||||
<el-descriptions-item label="序列号">{{ info.serialNo }}</el-descriptions-item>
|
||||
<el-descriptions-item label="udi码">{{ info.udi }}</el-descriptions-item>
|
||||
<el-descriptions-item label="生产日期">{{ info.productionDate }}</el-descriptions-item>
|
||||
<el-descriptions-item label="过期时间">{{ info.expireDate }}</el-descriptions-item>
|
||||
<el-descriptions-item label="维修方式" :span="1">
|
||||
{{ info.innerFlag ? '内部维修' : '外部维修' }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="维修人姓名" :span="1">
|
||||
{{ info.repairUserName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="维修人电话" :span="1">
|
||||
{{ info.repairUserPhone }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="问题描述" :label-style="{'height': '100px'}" :span="4">
|
||||
{{ info.description }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="诊断信息" :label-style="{'height': '100px'}" :span="4">
|
||||
{{ info.diagnosisInfo }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
<script src="./index.js">
|
||||
</script>
|
||||
@ -0,0 +1,50 @@
|
||||
import {deviceDetailInfo} from "@/api/dev/deviceInfoApi";
|
||||
|
||||
let query = {
|
||||
page: 1,
|
||||
limit: 10,
|
||||
productName: null,
|
||||
deviceCode: null,
|
||||
planId: null,
|
||||
}
|
||||
export default {
|
||||
name: "planChooseDevice",
|
||||
props: {planId: {required: true}, selectChangeFunc: {required: true, type: Function}},
|
||||
data() {
|
||||
return {
|
||||
showSearch:true,
|
||||
loading: false,
|
||||
query:{...query},
|
||||
list: [],
|
||||
total:0,
|
||||
}
|
||||
},
|
||||
created(){
|
||||
this.query = {...query,planId:this.planId}
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
onReset(){
|
||||
this.query = {...query,planId:this.planId}
|
||||
this.getList()
|
||||
},
|
||||
getList() {
|
||||
this.loading = true
|
||||
deviceDetailInfo(this.query)
|
||||
.then((res) => {
|
||||
this.loading = false
|
||||
if(res.code!=20000){
|
||||
this.$message.error(res.message)
|
||||
return
|
||||
}
|
||||
this.list = res.data.list || [];
|
||||
this.total = res.data.total || 0;
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
this.list = [];
|
||||
this.total = 0;
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card>
|
||||
|
||||
<el-form :model="query" v-if="showSearch" label-width="auto">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="设备编码">
|
||||
<el-input v-model="query.deviceCode" clearable/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="设备名称">
|
||||
<el-input v-model="query.productName" clearable/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- <el-col :span="6">-->
|
||||
<!-- <el-form-item label="设备状态">-->
|
||||
<!-- <el-select v-model="query.status"-->
|
||||
<!-- style="width: 100%"-->
|
||||
<!-- clearable>-->
|
||||
<!-- <el-option-->
|
||||
<!-- v-for="item in deviceStatus"-->
|
||||
<!-- :key="item.key"-->
|
||||
<!-- :label="item.desc"-->
|
||||
<!-- :value="item.key">-->
|
||||
<!-- </el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div class="top-right-btn">
|
||||
<el-button-group>
|
||||
<el-button icon="el-icon-view" type="primary" @click="showSearch = !showSearch">显示/隐藏搜索栏</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh"
|
||||
@click="onReset"
|
||||
>重置
|
||||
</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="query.page=1;getList()"
|
||||
>查询
|
||||
</el-button>
|
||||
</el-button-group>
|
||||
</div>
|
||||
<el-divider style="margin: 15px"></el-divider>
|
||||
<el-table :data="list" v-loading="loading" @selection-change="(val)=>{selectChangeFunc(val)}"
|
||||
@row-click="(row)=>{$refs.table.toggleRowSelection(row)}" ref="table" row-key="deviceCode">
|
||||
<el-table-column type="selection" width="55"></el-table-column>
|
||||
<el-table-column label="序号" width="50" type="index"/>
|
||||
<el-table-column label="科室" width="150" prop="deptName"/>
|
||||
<el-table-column label="设备编码" width="150" prop="deviceCode"/>
|
||||
<el-table-column label="最小销售标识" width="150" prop="nameCode"/>
|
||||
<el-table-column label="名称" width="150" prop="productName"/>
|
||||
<el-table-column label="规格型号" width="160" prop="ggxh"/>
|
||||
<!-- <el-table-column label="状态" width="120" prop="statusName">-->
|
||||
<!-- <template scope="scope">-->
|
||||
<!-- <el-tag :type="deviceStatus[scope.row.status].tagType">{{ scope.row.statusName }}</el-tag>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="变更次数" width="100" prop="changeCount"/>
|
||||
<el-table-column label="维修次数" width="100" prop="repairCount"/>
|
||||
<el-table-column label="巡检次数" width="100" prop="checkCount"/>
|
||||
<el-table-column label="计量单位" width="100" prop="measname"/>
|
||||
<el-table-column label="生产企业" width="180" prop="manufactory"/>
|
||||
<el-table-column label="批次号" width="100" prop="batchNo"/>
|
||||
<el-table-column label="序列号" width="100" prop="serialNo"/>
|
||||
<el-table-column label="生产日期" width="140" prop="productionDate"/>
|
||||
<el-table-column label="过期时间" width="140" prop="expireDate"/>
|
||||
<el-table-column label="供应商" width="100" prop="supName"/>
|
||||
<el-table-column label="udi码" width="150" prop="udi"/>
|
||||
<el-table-column label="注册/备案号" width="150" prop="zczbhhzbapzbh"/>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="query.page"
|
||||
:limit.sync="query.limit"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script src="./index.js"/>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue