|
|
<template>
|
|
|
<div>
|
|
|
<el-card class="el-card">
|
|
|
<el-form :model="unionQuery" size="mini" label-width="130px" v-show="showSearch">
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="UDI码:">
|
|
|
<el-input v-model="unionQuery.udiCode" style="width: 90%" placeholder="请扫描或输入UDI码"
|
|
|
clearable="true" @keyup.enter.native="keyup_submit($event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="DI:">
|
|
|
<el-input v-model="unionQuery.nameCode" style="width: 90%" clearable="true" size="mini"
|
|
|
placeholder="请输入完整DI"
|
|
|
@keyup.enter.native="keyup_submit($event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="规格型号:">
|
|
|
<el-input
|
|
|
v-model="unionQuery.ggxh" clearable="true"
|
|
|
style="width: 90%"
|
|
|
:disabled="(unionQuery.cpmctymc=='' && unionQuery.nameCode=='' && (unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''))"
|
|
|
placeholder="规格型号"
|
|
|
size="mini"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="注册证:">
|
|
|
<el-input
|
|
|
v-model="unionQuery.zczbhhzbapzbh" clearable="true"
|
|
|
style="width: 90%"
|
|
|
:disabled="(unionQuery.cpmctymc=='' && unionQuery.nameCode=='' && (unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''))"
|
|
|
placeholder="注册证/备案号"
|
|
|
size="mini"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="医疗器械注册人:">
|
|
|
<el-select
|
|
|
v-model="unionQuery.ylqxzcrbarmc"
|
|
|
filterable
|
|
|
style="width: 90%"
|
|
|
remote
|
|
|
clearable="true"
|
|
|
reserve-keyword
|
|
|
placeholder="医疗器械注册人"
|
|
|
:remote-method="findMethod"
|
|
|
:loading="loading"
|
|
|
@clear="clearAll"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in fromOptions"
|
|
|
:key="item.ylqxzcrbarmc"
|
|
|
:label="item.ylqxzcrbarmc"
|
|
|
:value="item.ylqxzcrbarmc"
|
|
|
>
|
|
|
<span style="float: left">{{ item.ylqxzcrbarmc }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="器械通用名称:">
|
|
|
<el-input
|
|
|
:disabled="unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''"
|
|
|
style="width: 90%"
|
|
|
v-model="unionQuery.cpmctymc" clearable="true"
|
|
|
size="mini"
|
|
|
placeholder="器械通用名称"
|
|
|
></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="searchList" size="mini">查询</el-button>
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="getSuperSeaech" size="mini">国家同步库查询</el-button>
|
|
|
<el-button type="primary" size="mini" icon="el-icon-bottom-right" @click="checkCombine"
|
|
|
:loading="combineLoading">选入
|
|
|
</el-button>
|
|
|
</el-button-group>
|
|
|
</div>
|
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
<el-table :data="udidlList" style="width: 100%" v-loading="loading" border highlight-current-row="true"
|
|
|
:row-class-name="tableRowClassName" @current-change="handleErpChange" ref="diList">
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
<el-table-column label="产品标识" prop="nameCode" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="物资名称" prop="cpmctymc" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="医疗器械注册人" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="注册证编号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="small" @click="diDetail(scope.row)">详情</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
|
v-show="total>0"
|
|
|
:total="total"
|
|
|
:limit.sync="unionQuery.limit"
|
|
|
:page.sync="unionQuery.page"
|
|
|
@pagination="handleCurrentChange"
|
|
|
></pagination>
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
<el-card class="el-card">
|
|
|
<el-form :model="editQuery" ref="editQuery" border label-width="100px">
|
|
|
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
|
|
|
<!-- <H3 style="margin-left: 10px;margin-bottom: 15px">产品信息补齐:</H3>-->
|
|
|
<!-- </el-row>-->
|
|
|
<!-- <el-row :gutter="20" class="el-row" type="flex">-->
|
|
|
<!-- <el-col :span="18" class="el-col">-->
|
|
|
<!-- <el-form-item label="产品编码预上传至第三方系统:" label-width="220px">-->
|
|
|
<!-- <el-checkbox-group v-model="editQuery.selectThirdSys">-->
|
|
|
<!-- <el-checkbox-->
|
|
|
<!-- v-for="item in thirdSys"-->
|
|
|
<!-- :key="item.thirdId"-->
|
|
|
<!-- :label="item.thirdId"-->
|
|
|
<!-- >{{ item.thirdName }}-->
|
|
|
<!-- </el-checkbox-->
|
|
|
<!-- >-->
|
|
|
<!-- </el-checkbox-group>-->
|
|
|
<!-- </el-form-item>-->
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
<!-- </el-row>-->
|
|
|
|
|
|
<el-divider>
|
|
|
|
|
|
</el-divider>
|
|
|
|
|
|
<el-row>
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="商品条码:">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容" v-model="editQuery.sptm"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="医保编码:">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容" v-model="editQuery.ybbm"
|
|
|
@input="change($event)"
|
|
|
v-debounce-input:500ms="getYbHcData"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row >
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="一级分类名称:">
|
|
|
<el-input
|
|
|
style="width: 65%"
|
|
|
size="small"
|
|
|
splaceholder="请输入内容"
|
|
|
v-model="editQuery.catalogname1"
|
|
|
disabled
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="二级分类名称:">
|
|
|
<el-input
|
|
|
style="width: 65%"
|
|
|
size="small"
|
|
|
splaceholder="请输入内容"
|
|
|
v-model="editQuery.catalogname2"
|
|
|
disabled
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
<el-row >
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="三级分类名称:">
|
|
|
<el-input
|
|
|
style="width: 65%"
|
|
|
size="small"
|
|
|
splaceholder="请输入内容"
|
|
|
v-model="editQuery.catalogname3"
|
|
|
disabled
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="耗材材质:">
|
|
|
<el-input
|
|
|
style="width: 65%"
|
|
|
size="small"
|
|
|
splaceholder="请输入内容"
|
|
|
v-model="editQuery.matrial"
|
|
|
disabled
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="计量单位:">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容" v-model="editQuery.measname"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="生产企业:">
|
|
|
<el-input style="width: 65%" size="small" v-model="editQuery.manufactory" splaceholder="请输入内容"
|
|
|
@input="change($event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
<el-row>
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="商品名称:">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容" v-model="editQuery.spmc"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="产品描述:">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容" v-model="editQuery.cpms"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
<el-row>
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="产品价格:">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容" type="number" step="0.01"
|
|
|
v-model="editQuery.price"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="el-col">
|
|
|
<el-form-item label="采购类型">
|
|
|
<el-select
|
|
|
v-model="editQuery.purType"
|
|
|
placeholder="请选择"
|
|
|
clearable
|
|
|
style="width: 65%"
|
|
|
>
|
|
|
<el-option label="普通入账产品" :value="1"></el-option>
|
|
|
<el-option label="预验收产品" :value="2"></el-option>
|
|
|
<el-option label="寄售产品" :value="3"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="产品属性">
|
|
|
<el-select
|
|
|
v-model="editQuery.attributeType"
|
|
|
placeholder="请选择"
|
|
|
clearable
|
|
|
style="width: 65%"
|
|
|
>
|
|
|
<el-option label="设备" :value="1"></el-option>
|
|
|
<el-option label="耗材" :value="2"></el-option>
|
|
|
<el-option label="伴随服务费" :value="3"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="耗材类别">
|
|
|
<el-select
|
|
|
v-model="editQuery.hcType"
|
|
|
placeholder="请选择"
|
|
|
clearable
|
|
|
style="width: 65%"
|
|
|
>
|
|
|
<el-option label="高值耗材" :value="1"></el-option>
|
|
|
<el-option label="普通耗材" :value="2"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item
|
|
|
label="是否可集采:"
|
|
|
prop="groupBuy"
|
|
|
class="query-form-item"
|
|
|
>
|
|
|
<el-radio-group v-model="editQuery.groupBuy">
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="el-col" v-if="productRemarkSet.remarkEnable1">
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle1 ">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容"
|
|
|
v-model="editQuery.basicPrductRemak1"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12" class="el-col" v-if="productRemarkSet.remarkEnable2">
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle2 ">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容"
|
|
|
v-model="editQuery.basicPrductRemak2"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="el-col" v-if="productRemarkSet.remarkEnable3">
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle3 ">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容"
|
|
|
v-model="editQuery.basicPrductRemak3"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12" class="el-col" v-if="productRemarkSet.remarkEnable4">
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle4 ">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容"
|
|
|
v-model="editQuery.basicPrductRemak4"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="el-col" v-if="productRemarkSet.remarkEnable5">
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle5 ">
|
|
|
<el-input style="width: 65%" size="small" splaceholder="请输入内容"
|
|
|
v-model="editQuery.basicPrductRemak5"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12" class="el-col" v-if="productRemarkSet.remarkEnable6">
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle6">
|
|
|
<el-select
|
|
|
v-model="editQuery.basicPrductRemak6"
|
|
|
placeholder="请选择"
|
|
|
clearable
|
|
|
style="width: 65%"
|
|
|
>
|
|
|
<el-option label="扣费" value="1"></el-option>
|
|
|
<el-option label="不扣费" value="0"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="el-col" v-if="productRemarkSet.remarkEnable7">
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle7 ">
|
|
|
<el-select
|
|
|
v-model="editQuery.basicPrductRemak7"
|
|
|
filterable
|
|
|
remote
|
|
|
clearable="true"
|
|
|
reserve-keyword
|
|
|
placeholder="请选择物资类别"
|
|
|
:remote-method="findThrTypeMethod"
|
|
|
style="width: 65%"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in thrTypeOptions"
|
|
|
:key="item.code"
|
|
|
:label="item.name"
|
|
|
:value="item.code"
|
|
|
>
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12" class="el-col"
|
|
|
v-if="productRemarkSet.remarkEnable8==true && editQuery.basicPrductRemak6=='1'">
|
|
|
<el-form-item :label="productRemarkSet.remarkTitle8">
|
|
|
<el-select
|
|
|
v-model="editQuery.basicPrductRemak8"
|
|
|
filterable
|
|
|
remote
|
|
|
clearable="true"
|
|
|
reserve-keyword
|
|
|
placeholder="请选择物价类别"
|
|
|
:remote-method="findHsflMethod"
|
|
|
:loading="loading"
|
|
|
style="width: 65%"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in hsflOptions"
|
|
|
:key="item.hsbm"
|
|
|
:label="item.hsmc"
|
|
|
:value="item.hsbm"
|
|
|
>
|
|
|
<span style="float: left">{{ item.hsmc }}</span>
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.hsbm }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
</el-form>
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
title="器械信息详情"
|
|
|
:close-on-click-modal="false"
|
|
|
:close-on-press-escape="false"
|
|
|
:visible.sync="selectDialog"
|
|
|
width="65%"
|
|
|
append-to-body
|
|
|
v-if="selectDialog"
|
|
|
>
|
|
|
<selectDiDetail :editQuery="diDetails"
|
|
|
></selectDiDetail>
|
|
|
</el-dialog>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {getYbHcflDetail} from '@/api/basic/product/udiRelevance'
|
|
|
import {getUdiInfos, filterCompany, superSearch} from '../../../api/basic/udiInfo'
|
|
|
import {combineUdi} from '../../../api/basic/udiRelevance'
|
|
|
import {addDiProduct} from '@/api/supplier/supProductsAddDi'
|
|
|
import selectDiDetail from './selectDIDetailDialog'
|
|
|
import store from '@/store'
|
|
|
import {getBasicThirdSys} from '@/api/basic/basicThirdSys'
|
|
|
import {finProductSet} from '@/api/param/systemParamConfig'
|
|
|
import {getHslbs, getThrProductType} from "@/api/thrsys/thrHsfl";
|
|
|
|
|
|
export default {
|
|
|
name: 'closeDialog',
|
|
|
props: {
|
|
|
closeDialog: {
|
|
|
type: Function,
|
|
|
required: true
|
|
|
},
|
|
|
relId: {
|
|
|
type: Number,
|
|
|
required: true
|
|
|
},
|
|
|
isImport: {
|
|
|
type: Object,
|
|
|
required: true
|
|
|
},
|
|
|
data: {
|
|
|
type: Object,
|
|
|
required: true
|
|
|
},
|
|
|
thirdId: {
|
|
|
type: Object,
|
|
|
required: true
|
|
|
},
|
|
|
idSpliUdi: {
|
|
|
type: Object,
|
|
|
required: true
|
|
|
}
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
ybHcflDetail: {},
|
|
|
showSearch: true,
|
|
|
unionQuery: {
|
|
|
page: 1,
|
|
|
limit: 10,
|
|
|
udiCode: null,
|
|
|
nameCode: '',
|
|
|
cpmctymc: '',
|
|
|
ylqxzcrbarmc: null,
|
|
|
ggxh: '',
|
|
|
zczbhhzbapzbh: '',
|
|
|
isCheck: 1
|
|
|
},
|
|
|
combineLoading: false,
|
|
|
combineQuery: {
|
|
|
idSpliUdi: false,
|
|
|
thirdId: '',
|
|
|
relId: '',
|
|
|
erpName: '',
|
|
|
thirdName: null,
|
|
|
keys: []
|
|
|
},
|
|
|
checked: true,
|
|
|
udidlList: [],
|
|
|
erpList: [],
|
|
|
pageTotal: 1,
|
|
|
total: 0,
|
|
|
currentRow: null,
|
|
|
fromOptions: [],
|
|
|
loading: false,
|
|
|
erpLloading: false,
|
|
|
multipleUdiSelection: [],
|
|
|
selectDialog: false,
|
|
|
diDetails: null,
|
|
|
|
|
|
editQuery: {
|
|
|
selectThirdSys: [],
|
|
|
spmc: null,
|
|
|
cpms: null,
|
|
|
measname: null,
|
|
|
sptm: null,
|
|
|
uuids: null,
|
|
|
devKeys: [],
|
|
|
customerId: store.getters.customerId,
|
|
|
catalogname1: null,
|
|
|
catalogname2: null,
|
|
|
catalogname3: null,
|
|
|
matrial: null,
|
|
|
|
|
|
},
|
|
|
thirdSys: [],
|
|
|
curSelectDi: null,
|
|
|
selectThirdSys: [],
|
|
|
productRemarkSet: {},
|
|
|
hsflOptions: [],
|
|
|
thrTypeOptions: [],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
getYbHcData(){
|
|
|
if (this.editQuery.ybbm == null || this.editQuery.ybbm == '') return;
|
|
|
let query = {
|
|
|
specificationCode: this.editQuery.ybbm
|
|
|
};
|
|
|
getYbHcflDetail(query).then((response) => {
|
|
|
if (response.code == 20000) {
|
|
|
this.ybHcflDetail = response.data
|
|
|
this.editQuery.catalogname1 = this.ybHcflDetail.catalogname1
|
|
|
this.editQuery.catalogname2 = this.ybHcflDetail.catalogname2
|
|
|
this.editQuery.catalogname3 = this.ybHcflDetail.catalogname3
|
|
|
this.editQuery.matrial = this.ybHcflDetail.matrial
|
|
|
this.$forceUpdate();
|
|
|
}else {
|
|
|
this.editQuery.catalogname1 = ""
|
|
|
this.editQuery.catalogname2 = ""
|
|
|
this.editQuery.catalogname3 = ""
|
|
|
this.editQuery.matrial = ""
|
|
|
this.$forceUpdate();
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
onClose(){
|
|
|
this.$emit("onClose")
|
|
|
},
|
|
|
change(e) {
|
|
|
this.$forceUpdate(e);
|
|
|
},
|
|
|
onReset() {
|
|
|
this.unionQuery = {
|
|
|
page: 1,
|
|
|
limit: 10,
|
|
|
udiCode: null,
|
|
|
nameCode: '',
|
|
|
cpmctymc: '',
|
|
|
ylqxzcrbarmc: null,
|
|
|
ggxh: '',
|
|
|
zczbhhzbapzbh: '',
|
|
|
isCheck: 1
|
|
|
}
|
|
|
this.udidlList = [];
|
|
|
// this.getList();
|
|
|
},
|
|
|
clearAll() {
|
|
|
this.unionQuery.cpmctymc = null;
|
|
|
this.unionQuery.ggxh = null;
|
|
|
this.unionQuery.zczbhhzbapzbh = null;
|
|
|
|
|
|
},
|
|
|
searchList() {
|
|
|
this.unionQuery.page = 1
|
|
|
this.getList()
|
|
|
},
|
|
|
hideSearch() {
|
|
|
this.showSearch = !this.showSearch;
|
|
|
},
|
|
|
getList() {
|
|
|
if (
|
|
|
this.unionQuery.udiCode == '' &&
|
|
|
this.unionQuery.nameCode == '' &&
|
|
|
this.unionQuery.cpmctymc == '' &&
|
|
|
this.unionQuery.ylqxzcrbarmc == '' &&
|
|
|
this.unionQuery.ggxh == '' &&
|
|
|
this.unionQuery.zczbhhzbapzbh == ''
|
|
|
) {
|
|
|
this.$message.warning('请输入查询条件')
|
|
|
return
|
|
|
}
|
|
|
this.loading = true
|
|
|
getUdiInfos(this.unionQuery)
|
|
|
.then((response) => {
|
|
|
this.loading = false
|
|
|
if (response.code == 20000) {
|
|
|
this.udidlList = response.data.list || []
|
|
|
this.total = response.data.total || 0
|
|
|
} else {
|
|
|
this.$message.error(response.message)
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.loading = false
|
|
|
this.udidlList = []
|
|
|
this.total = 0
|
|
|
})
|
|
|
},
|
|
|
|
|
|
getSuperSeaech() {
|
|
|
this.$confirm('此操作将访问国家库查询DI数据, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
.then(() => {
|
|
|
if (this.unionQuery.nameCode == '') {
|
|
|
this.$message.warning('请输入完成DI信息进行查询!')
|
|
|
return
|
|
|
}
|
|
|
this.loading = true
|
|
|
superSearch(this.unionQuery)
|
|
|
.then((response) => {
|
|
|
this.loading = false
|
|
|
if (response.code == 20000) {
|
|
|
this.udidlList = response.data.list || []
|
|
|
this.total = response.data.total || 0
|
|
|
} else {
|
|
|
this.$message.error(response.message)
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.loading = false
|
|
|
this.udidlList = []
|
|
|
this.total = 0
|
|
|
})
|
|
|
})
|
|
|
.catch(() => {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
keyup_submit(event) {
|
|
|
this.unionQuery.page = 1
|
|
|
this.getList()
|
|
|
event.target.select()
|
|
|
},
|
|
|
|
|
|
checkSelectable(row) {
|
|
|
return !row.check
|
|
|
},
|
|
|
|
|
|
diDetail(row) {
|
|
|
this.diDetails = row
|
|
|
this.selectDialog = true
|
|
|
},
|
|
|
|
|
|
handleCurrentChange(val) {
|
|
|
this.unionQuery.page = val.page
|
|
|
this.getList()
|
|
|
},
|
|
|
tableRowClassName({row, rowIndex}) {
|
|
|
if (row.check) return 'warning-row'
|
|
|
return ''
|
|
|
},
|
|
|
handleErpChange(val) {
|
|
|
this.editQuery = {
|
|
|
selectThirdSys: [],
|
|
|
spmc: null,
|
|
|
cpms: null,
|
|
|
measname: null,
|
|
|
sptm: null,
|
|
|
uuids: null,
|
|
|
devKeys: [],
|
|
|
customerId: store.getters.customerId,
|
|
|
catalogname1: null,
|
|
|
catalogname2: null,
|
|
|
catalogname3: null,
|
|
|
matrial: null,
|
|
|
}
|
|
|
this.currentRow = val
|
|
|
this.curSelectDi = val
|
|
|
this.multipleUdiSelection.push(val)
|
|
|
this.editQuery.sptm = this.currentRow.sptm;
|
|
|
this.editQuery.ybbm = this.currentRow.ybbm;
|
|
|
this.editQuery.measname = this.currentRow.measname;
|
|
|
this.editQuery.manufactory = this.currentRow.ylqxzcrbarmc;
|
|
|
this.editQuery.spmc = this.currentRow.cpmctymc;
|
|
|
this.editQuery.cpms = this.currentRow.cpms;
|
|
|
//增加请求 医保耗材 分类请求
|
|
|
this.getYbHcData()
|
|
|
},
|
|
|
intentBack() {
|
|
|
this.closeDialog()
|
|
|
},
|
|
|
|
|
|
checkCombine() {
|
|
|
if (this.multipleUdiSelection.length === 0) {
|
|
|
this.$message.warning('请选择需要添加的产品数据')
|
|
|
return
|
|
|
}
|
|
|
let uuids = []
|
|
|
uuids.push(this.curSelectDi.uuid)
|
|
|
let devKeys = []
|
|
|
devKeys.push(this.curSelectDi.deviceRecordKey)
|
|
|
this.editQuery.uuids = uuids
|
|
|
this.editQuery.devKeys = devKeys
|
|
|
addDiProduct(this.editQuery).then((res) => {
|
|
|
if (res.code === 20000) {
|
|
|
this.$message.success('添加成功')
|
|
|
this.$emit('closeUdi', true)
|
|
|
} else {
|
|
|
this.$message.error(res.message)
|
|
|
}
|
|
|
}).catch((error) => {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
combine() {
|
|
|
if (this.idSpliUdi) {
|
|
|
this.combineQuery.idSpliUdi = true
|
|
|
this.combineQuery.thirdId = this.thirdId
|
|
|
this.combineQuery.erpName = this.data.thirdName
|
|
|
}
|
|
|
combineUdi(this.combineQuery)
|
|
|
.then((response) => {
|
|
|
this.combineLoading = false
|
|
|
if (response.code == 20000) {
|
|
|
this.$emit('closeUdi', true)
|
|
|
} else {
|
|
|
this.$message.error(response.message)
|
|
|
this.$emit('closeUdi', false)
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.combineLoading = false
|
|
|
|
|
|
this.$emit('closeUdi', false)
|
|
|
})
|
|
|
},
|
|
|
findMethod(query) {
|
|
|
let cQuery = {
|
|
|
ylqxzcrbarmc: query,
|
|
|
page: 1,
|
|
|
limit: 10
|
|
|
}
|
|
|
filterCompany(cQuery)
|
|
|
.then((response) => {
|
|
|
this.loading = false
|
|
|
this.fromOptions = response.data || []
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.loading = false
|
|
|
this.fromOptions = []
|
|
|
})
|
|
|
},
|
|
|
getBasicThirdSys() {
|
|
|
let query = {
|
|
|
enabled: true
|
|
|
}
|
|
|
getBasicThirdSys(query)
|
|
|
.then((response) => {
|
|
|
if (response.code == 20000) {
|
|
|
this.thirdSys = response.data.list || []
|
|
|
if (this.thirdSys.length > 0) {
|
|
|
this.editQuery.thirdSysFk = this.thirdSys[0].thirdId
|
|
|
}
|
|
|
}
|
|
|
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.loading = false
|
|
|
this.list = []
|
|
|
})
|
|
|
},
|
|
|
findBasicProductSet() {
|
|
|
finProductSet().then((response) => {
|
|
|
if (response.code == 20000) {
|
|
|
this.productRemarkSet = response.data
|
|
|
} else {
|
|
|
//出错了
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
findHsflMethod(query) {
|
|
|
this.hsflOptions = [];
|
|
|
let cQuery = {
|
|
|
key: query,
|
|
|
page: 1,
|
|
|
limit: 20
|
|
|
};
|
|
|
getHslbs(cQuery)
|
|
|
.then((response) => {
|
|
|
this.loading = false;
|
|
|
this.hsflOptions = response.data.list || [];
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
findThrTypeMethod(query) {
|
|
|
this.thrTypeOptions = [];
|
|
|
let cQuery = {
|
|
|
key: query,
|
|
|
page: 1,
|
|
|
limit: 20
|
|
|
};
|
|
|
getThrProductType(cQuery)
|
|
|
.then((response) => {
|
|
|
this.loading = false;
|
|
|
this.thrTypeOptions = response.data.list || [];
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
|
|
|
},
|
|
|
created() {
|
|
|
this.getBasicThirdSys()
|
|
|
this.findBasicProductSet()
|
|
|
},
|
|
|
components: {
|
|
|
selectDiDetail
|
|
|
},
|
|
|
directives: {
|
|
|
'debounce-input': {
|
|
|
inserted(el, binding) {
|
|
|
let timeout
|
|
|
el.addEventListener('input', () => {
|
|
|
clearTimeout(timeout)
|
|
|
timeout = setTimeout(() => {
|
|
|
binding.value()
|
|
|
}, parseInt(binding.arg) || 300)
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
.checkitemTag {
|
|
|
float: left;
|
|
|
text-align: left;
|
|
|
margin-top: 5px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
div /deep/ .el-table .warning-row {
|
|
|
background: #bebebe;
|
|
|
}
|
|
|
|
|
|
div /deep/ .el-table .success-row {
|
|
|
background: #ffffff;
|
|
|
}
|
|
|
|
|
|
.el-card {
|
|
|
margin-right: 20px;
|
|
|
/*transition: all .5s;*/
|
|
|
}
|
|
|
|
|
|
.el-row {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
margin-bottom: 6px;
|
|
|
}
|
|
|
|
|
|
.el-form-item--mini.el-form-item {
|
|
|
margin-bottom: 9px;
|
|
|
}
|
|
|
</style>
|