耗材字典修改,选入,更新完善

prod
anthonywj 2 years ago
parent a7ef3b0d5d
commit 9b510d18aa

@ -51,6 +51,15 @@ export function updatetUdiInfos(query) {
} }
export function updatetSingleUdiInfo(query) {
return axios({
url: "/udi/udirel/update/di",
method: "post",
data: query
});
}
export function checkExitUdi(query) { export function checkExitUdi(query) {
return axios({ return axios({
url: "/udi/udirel/check/udi", url: "/udi/udirel/check/udi",

@ -2,52 +2,66 @@
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<div> <div>
<el-form :inline="true" :model="erpQuery" style="display: flex;" size="mini"> <el-form :model="erpQuery" size="mini" label-width="125px" v-show="showSearch">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-col :span="6">
<el-form-item class="query-form-item" label="产品编码:">
<el-input <el-input
v-model="erpQuery.code" v-model="erpQuery.code"
placeholder="产品编码/商品条码/医保编码" clearable="true" placeholder="产品编码/商品条码/医保编码" clearable="true"
@keyup.enter.native="keyupErp_submit($event)" @keyup.enter.native="keyupErp_submit($event)"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="产品名称:">
<el-input <el-input
v-model="erpQuery.name" v-model="erpQuery.name"
placeholder="产品名称" clearable="true" placeholder="产品名称" clearable="true"
@keyup.enter.native="keyup_submit($event)" @keyup.enter.native="keyup_submit($event)"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="规格型号:">
<el-input <el-input
v-model="erpQuery.spec" v-model="erpQuery.spec"
placeholder="规格型号" clearable="true" placeholder="规格型号" clearable="true"
@keyup.enter.native="keyupErp_submit($event)" @keyup.enter.native="keyupErp_submit($event)"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="注册/备案凭证号:">
<el-input <el-input
v-model="erpQuery.registerNo" clearable="true" v-model="erpQuery.registerNo" clearable="true"
placeholder="注册/备案凭证号" placeholder="注册/备案凭证号"
@keyup.enter.native="keyup_submit($event)" @keyup.enter.native="keyup_submit($event)"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item class="query-form-item" label="生产厂家:">
<el-input <el-input
v-model="erpQuery.manufactory" clearable="true" v-model="erpQuery.manufactory" clearable="true"
placeholder="生产厂家" placeholder="生产厂家"
@keyup.enter.native="keyup_submit($event)" @keyup.enter.native="keyup_submit($event)"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="配送企业:">
<el-input <el-input
v-model="erpQuery.supName" clearable="true" v-model="erpQuery.supName" clearable="true"
placeholder="配送企业" placeholder="配送企业"
@keyup.enter.native="keyup_submit($event)" @keyup.enter.native="keyup_submit($event)"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col>
<el-form-item class="query-form-item"> <el-col :span="6">
<el-form-item class="query-form-item" label="外部系统:">
<el-select v-model="thirdSysFk" placeholder="请设置主系统" disabled="isImport"> <el-select v-model="thirdSysFk" placeholder="请设置主系统" disabled="isImport">
<el-option <el-option
v-for="item in thirdSys" v-for="item in thirdSys"
@ -60,30 +74,30 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col>
</el-row>
</el-form>
<div class="top-right-btn">
<el-form-item style="display: flex">
<el-button-group> <el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="search" @click="searchErpList"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="combine" :loading="combineLoading" <el-button type="primary" icon="el-icon-search" @click="searchErpList"></el-button>
>选入 <el-button type="primary" icon="el-icon-bottom-left" @click="combine" :loading="combineLoading">选入
</el-button </el-button>
> <el-button type="primary" icon="el-icon-plus" @click="combineAll" v-if="isImport && !supEnable">
<el-button type="primary" icon="search" @click="combineAll" </el-button>
v-if="isImport && !supEnable"
>结果全部选入
</el-button
>
</el-button-group> </el-button-group>
</el-form-item> </div>
</el-row> <el-divider style="margin: 15px"></el-divider>
</el-form>
<el-table <el-table
:data="erpList" :data="erpList"
style="width: 100%" style="width: 100%"
highlight-current-row="true" highlight-current-row="true"
v-loading="erpLloading" v-loading="erpLloading"
border
@current-change="handleErpChange" @current-change="handleErpChange"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
@ -93,213 +107,170 @@
width="55" width="55"
></el-table-column> ></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="产品编码" prop="code"></el-table-column> <el-table-column label="产品编码" prop="code" show-overflow-tooltip></el-table-column>
<el-table-column label="产品名称" prop="name"></el-table-column> <el-table-column label="产品名称" prop="name" show-overflow-tooltip></el-table-column>
<el-table-column label="计量单位" prop="measname"></el-table-column> <el-table-column label="计量单位" prop="measname" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" prop="spec"></el-table-column> <el-table-column label="规格型号" prop="spec" show-overflow-tooltip></el-table-column>
<el-table-column label="注册/备案凭证号" prop="registerNo"></el-table-column> <el-table-column label="注册/备案凭证号" prop="registerNo" show-overflow-tooltip></el-table-column>
<el-table-column label="生产厂家" prop="manufactory"></el-table-column> <el-table-column label="生产厂家" prop="manufactory" show-overflow-tooltip></el-table-column>
<el-table-column label="配送企业" prop="supName"></el-table-column> <el-table-column label="配送企业" prop="supName" show-overflow-tooltip></el-table-column>
</el-table> </el-table>
<el-pagination <pagination
:page-size="erpQuery.limit" v-show="pageTotal>0"
@current-change="handleErpPageChange"
layout="prev, pager, next"
:total="pageTotal" :total="pageTotal"
:current-page="erpQuery.page" :page.sync="erpQuery.page"
></el-pagination> :limit.sync="erpQuery.limit"
@pagination="getErpList"
/>
</div> </div>
</el-card> </el-card>
<el-card class="el-card" v-if="!isImport"> <el-card class="el-card" v-if="!isImport">
<div v-if="!isImport" style="margin-bottom: 20px"> <div v-if="!isImport" style="margin-bottom: 10px;margin-top: 10px">
<el-row :gutter="20" class="el-row" type="flex"> <el-form label-width="120px">
<el-col :span="12" class="el-col"> <el-row :gutter="20">
<div class="text item"> <el-col :span="12">
<div class="itemTag"> <el-form-item label="产品名称:" class="query-form-item">
<span>产品名称:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
:disabled="true" :disabled="true"
v-model="data.cpmctymc" v-model="data.cpmctymc"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="产品标识:" class="query-form-item">
<div class="itemTag">
<span>产品标识:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.nameCode" v-model="data.nameCode"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20">
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="规格型号:" class="query-form-item">
<div class="itemTag">
<span>规格型号:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.ggxh" v-model="data.ggxh"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="医疗器械注册人:" class="query-form-item">
<div class="itemTag">
<span>医疗器械注册人:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="ylqxzcrbarmc" splaceholder="ylqxzcrbarmc"
v-model="data.ylqxzcrbarmc" v-model="data.ylqxzcrbarmc"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20">
<el-col :span="12">
<el-col :span="12" class="el-col"> <el-form-item label="注册人英文名称:" class="query-form-item">
<div class="text item">
<div class="itemTag">
<span>注册人英文名称:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.ylqxzcrbarywmc" v-model="data.ylqxzcrbarywmc"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="器械类别:" class="query-form-item">
<div class="itemTag">
<span>器械类别:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.qxlb" v-model="data.qxlb"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20">
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="产品类别:" class="query-form-item">
<div class="itemTag">
<span>产品类别:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.cplb" v-model="data.cplb"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="分类编码:" class="query-form-item">
<div class="itemTag">
<span>分类编码:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.flbm" v-model="data.flbm"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20">
<el-col :span="12">
<el-col :span="12" class="el-col"> <el-form-item label="商品条码:" class="query-form-item">
<div class="text item">
<div class="itemTag">
<span>商品条码:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.sptm" v-model="data.sptm"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="医保编码:" class="query-form-item">
<div class="itemTag">
<span>医保编码:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.ybbm" v-model="data.ybbm"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20">
<el-col :span="12">
<el-col :span="12" class="el-col"> <el-form-item label="统一社会信用号:" class="query-form-item">
<div class="text item">
<div class="itemTag">
<span>统一社会信用号:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.tyshxydm" v-model="data.tyshxydm"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="注册证/备案号:" class="query-form-item">
<div class="itemTag">
<span>注册证/备案号:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.zczbhhzbapzbh" v-model="data.zczbhhzbapzbh"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form>
</div> </div>
</el-card> </el-card>
</div> </div>
@ -394,6 +365,7 @@ export default {
multipleUdiSelection: [], multipleUdiSelection: [],
thirdSys: [], thirdSys: [],
thirdSysFk: null, thirdSysFk: null,
showSearch: true,
}; };
}, },
methods: { methods: {
@ -434,7 +406,9 @@ export default {
this.erpQuery.page = val; this.erpQuery.page = val;
this.getErpList(); this.getErpList();
}, },
hideSearch() {
this.showSearch = !this.showSearch;
},
searchErpList() { searchErpList() {
this.erpQuery.page = 1; this.erpQuery.page = 1;
this.getErpList(); this.getErpList();
@ -680,4 +654,12 @@ div /deep/ .el-table .warning-row {
div /deep/ .el-table .success-row { div /deep/ .el-table .success-row {
background: #ffffff; background: #ffffff;
} }
.query-form-item {
display: block !important;
margin-right: 10px;
margin-bottom: 5px;
}
</style> </style>

@ -2,7 +2,7 @@
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<div> <div>
<el-form :model="unionQuery" size="mini" label-width="125px"> <el-form :model="unionQuery" size="mini" label-width="125px" v-show="showSearch">
<el-row> <el-row>
<el-col :span="18"> <el-col :span="18">
<el-form-item class="query-form-item" label="UDI码:"> <el-form-item class="query-form-item" label="UDI码:">
@ -56,10 +56,7 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="规格型号:" class="query-form-item"> <el-form-item label="规格型号:" class="query-form-item">
@ -79,37 +76,27 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
</el-form>
<el-form-item> <div class="top-right-btn">
<el-button-group> <el-button-group>
<el-button <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
type="primary" <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
icon="el-icon-refresh" <el-button type="primary" icon="el-icon-search" @click="searchList"></el-button>
@click="onReset" <el-button type="primary" icon="el-icon-bottom-left" @click="checkCombine"
></el-button>
<el-button type="primary" icon="search" @click="searchList" size="mini"
>查询
</el-button
>
<el-button type="primary" size="mini" icon="search" @click="checkCombine"
:loading="combineLoading" :loading="combineLoading"
>选入 >选入
</el-button </el-button
> >
<!-- <el-button type="primary" size="mini" icon="search" @click="combineUdiAll"-->
<!-- v-if="relId==null"-->
<!-- >结果全部选入-->
<!-- </el-button-->
<!-- >-->
</el-button-group> </el-button-group>
</el-form-item> </div>
</el-row> <el-divider style="margin: 15px"></el-divider>
</el-form>
<el-table <el-table
:data="udidlList" :data="udidlList"
style="width: 100%" style="width: 100%"
border
v-loading="loading" v-loading="loading"
highlight-current-row="true" highlight-current-row="true"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
@ -163,208 +150,169 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <pagination
:page-size="unionQuery.limit" v-show="total>0"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total" :total="total"
:current-page="unionQuery.page" :page.sync="unionQuery.page"
></el-pagination> :limit.sync="unionQuery.limit"
@pagination="getList"
/>
</div> </div>
</el-card> </el-card>
<el-card class="el-card" v-if="isImport"> <el-card class="el-card" v-if="isImport">
<div> <div>
<el-row :gutter="20" class="el-row" type="flex"> <el-form label-width="120px">
<el-col :span="12" class="el-col"> <el-row :gutter="20">
<div class="text item"> <el-col :span="12">
<div class="itemTag"> <el-form-item label="产品名称:" class="query-form-item">
<span>产品名称:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
:disabled="true" :disabled="true"
v-model="data.cpmctymc" v-model="data.cpmctymc"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="产品标识:" class="query-form-item">
<div class="itemTag">
<span>产品标识:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.nameCode" v-model="data.nameCode"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20">
<el-row :gutter="20" class="el-row" type="flex"> <el-col :span="12">
<el-col :span="12" class="el-col"> <el-form-item label="规格型号:" class="query-form-item">
<div class="text item">
<div class="itemTag">
<span>规格型号:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.ggxh" v-model="data.ggxh"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="医疗器械注册人:" class="query-form-item">
<div class="itemTag">
<span>医疗器械注册人:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="ylqxzcrbarmc" splaceholder="ylqxzcrbarmc"
v-model="data.ylqxzcrbarmc" v-model="data.ylqxzcrbarmc"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-row :gutter="20">
<div class="text item"> <el-col :span="12">
<div class="itemTag"> <el-form-item label="注册人英文名称:" class="query-form-item">
<span>注册人英文名称:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.ylqxzcrbarywmc" v-model="data.ylqxzcrbarywmc"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="器械类别:" class="query-form-item">
<div class="itemTag">
<span>器械类别:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.qxlb" v-model="data.qxlb"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-row :gutter="20">
<div class="text item"> <el-col :span="12">
<div class="itemTag"> <el-form-item label="产品类别:" class="query-form-item">
<span>产品类别:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.cplb" v-model="data.cplb"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="分类编码:" class="query-form-item">
<div class="itemTag">
<span>分类编码:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.flbm" v-model="data.flbm"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-row :gutter="20">
<div class="text item"> <el-col :span="12">
<div class="itemTag"> <el-form-item label="商品条码:" class="query-form-item">
<span>商品条码:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.sptm" v-model="data.sptm"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="医保编码:" class="query-form-item">
<div class="itemTag">
<span>医保编码:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.ybbm" v-model="data.ybbm"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-row :gutter="20">
<div class="text item"> <el-col :span="12">
<div class="itemTag"> <el-form-item label="统一社会信用号:" class="query-form-item">
<span>统一社会信用号:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.tyshxydm" v-model="data.tyshxydm"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
<el-col :span="12" class="el-col"> <el-col :span="12">
<div class="text item"> <el-form-item label="注册证/备案号:" class="query-form-item">
<div class="itemTag">
<span>注册证/备案号:&nbsp;</span>
</div>
<el-input <el-input
style="width: 60%" style="width: 80%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="data.zczbhhzbapzbh" v-model="data.zczbhhzbapzbh"
></el-input> ></el-input>
</div> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form>
</div> </div>
</el-card> </el-card>
<el-dialog <el-dialog
@ -442,8 +390,8 @@ export default {
checked: true, checked: true,
udidlList: [], udidlList: [],
erpList: [], erpList: [],
pageTotal: 1, pageTotal: 0,
total: 1, total: 0,
currentRow: null, currentRow: null,
fromOptions: [], fromOptions: [],
loading: false, loading: false,
@ -451,6 +399,7 @@ export default {
multipleUdiSelection: [], multipleUdiSelection: [],
selectDialog: false, selectDialog: false,
diDetails: null, diDetails: null,
showSearch: true,
}; };
}, },
methods: { methods: {
@ -471,7 +420,6 @@ export default {
isCheck: 1 isCheck: 1
}, },
this.actDateRange = []; this.actDateRange = [];
// this.getList();
}, },
searchList() { searchList() {
@ -492,7 +440,6 @@ export default {
return; return;
} }
this.loading = true; this.loading = true;
// this.unionQuery.page = 1;
getUdiInfos(this.unionQuery) getUdiInfos(this.unionQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
@ -502,8 +449,6 @@ export default {
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
@ -512,33 +457,11 @@ export default {
}); });
}, },
combineUdiAll() {
this.$confirm("此操作将在后台自动下载所有查询结果, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
combineAllUdi(this.unionQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success(response.data);
this.$emit("closeUdi", true);
} else {
this.$message.error(response.message);
}
})
.catch(() => {
});
})
.catch(() => {
});
hideSearch() {
this.showSearch = !this.showSearch;
}, },
keyup_submit(event) { keyup_submit(event) {
this.unionQuery.page = 1; this.unionQuery.page = 1;
this.getList(); this.getList();
@ -550,7 +473,6 @@ export default {
}, },
diDetail(row) { diDetail(row) {
this.diDetails = row; this.diDetails = row;
this.selectDialog = true; this.selectDialog = true;
}, },

@ -1,27 +1,23 @@
<template> <template>
<div> <div>
<div style="display: flex; width: 100%;"> <div style="display: flex; width: 100%;">
<!--<el-checkbox v-model="checked" class="checkitemTag"-->
<!--&gt;是否关联第三方产品信息-->
<!--</el-checkbox-->
<!--&gt;-->
<span class="checkitemTag"></span> <span class="checkitemTag"></span>
<el-button <el-button
style="margin-right: 20px;float: right" style="margin-right: 20px;margin-top:-15px;float: right"
type="primary" type="primary"
size="mini" size="mini"
icon="search" icon="el-icon-bottom-left"
@click="combine" @click="combine"
>选入 >关联选入
</el-button </el-button
> >
</div> </div>
<el-card class="el-card" v-if="checked"> <el-card class="el-card" v-if="checked">
<div> <div>
<el-form :inline="true" :model="erpQuery" size="mini"> <el-form :model="erpQuery" size="mini" label-width="125px" v-show="showThrSearch">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-col :span="6">
<el-form-item class="query-form-item" label="产品编码:">
<el-input <el-input
v-model="erpQuery.code" v-model="erpQuery.code"
placeholder="产品编码/商品条码/医保编码" placeholder="产品编码/商品条码/医保编码"
@ -29,83 +25,97 @@
@keyup.enter.native="keyupErp_submit($event)" @keyup.enter.native="keyupErp_submit($event)"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="产品名称:">
<el-input v-model="erpQuery.name" <el-input v-model="erpQuery.name"
clearable="true" clearable="true"
placeholder="产品名称"></el-input> placeholder="产品名称"></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="注册/备案凭证号:">
<el-input v-model="erpQuery.registerNo" <el-input v-model="erpQuery.registerNo"
clearable="true" clearable="true"
placeholder="注册/备案凭证号"></el-input> placeholder="注册/备案凭证号"></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item class="query-form-item" label="生产厂家:">
<el-input v-model="erpQuery.manufactory" <el-input v-model="erpQuery.manufactory"
clearable="true" clearable="true"
placeholder="生产厂家"></el-input> placeholder="生产厂家"></el-input>
</el-form-item> </el-form-item>
</el-row> </el-col>
<el-col :span="6">
<el-row> <el-form-item class="query-form-item" label="规格型号:">
<el-form-item class="query-form-item">
<el-input <el-input
v-model="erpQuery.spec" v-model="erpQuery.spec"
clearable="true" clearable="true"
placeholder="规格型号" placeholder="规格型号"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
<el-select v-model="thirdSysFk" placeholder="请选择第三方系统" disabled="true"> <el-col :span="6">
<el-form-item class="query-form-item" label="第三方系统:">
<el-select v-model="thirdSysFk" placeholder="请选择第三方系统" disabled="true" style="width: 100%">
<el-option <el-option
v-for="item in thirdSys" v-for="item in thirdSys"
:key="item.value" :key="item.value"
:label="item.thirdName" :label="item.thirdName"
:value="item.thirdId"> :value="item.thirdId">
<span style="float: left">{{ item.thirdName }}</span> <span style="float: left">{{ item.thirdName }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.thirdId }}</span>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item style="display: flex"> </el-col>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="searchErpList"></el-button>
</el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="top-right-btn">
<el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideThrSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="searchErpList"></el-button>
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table <el-table
:data="erpList" :data="erpList"
border
style="width: 100%" style="width: 100%"
highlight-current-row="true" highlight-current-row="true"
v-loading="erpLloading" v-loading="erpLloading"
@current-change="handleErpChange" @current-change="handleErpChange"
> >
<!-- :row-class-name="tableRowClassName"-->
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="产品编码" prop="code"></el-table-column> <el-table-column label="产品编码" prop="code"></el-table-column>
<el-table-column label="产品名称" prop="name"></el-table-column> <el-table-column label="产品名称" prop="name" show-overflow-tooltip></el-table-column>
<el-table-column label="计量单位" prop="measname"></el-table-column> <el-table-column label="计量单位" prop="measname" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" prop="spec"></el-table-column> <el-table-column label="规格型号" prop="spec" show-overflow-tooltip></el-table-column>
<el-table-column label="注册/备案凭证号" prop="registerNo"></el-table-column> <el-table-column label="注册/备案凭证号" prop="registerNo" show-overflow-tooltip></el-table-column>
<el-table-column label="生产厂家" prop="manufactory"></el-table-column> <el-table-column label="生产厂家" prop="manufactory" show-overflow-tooltip></el-table-column>
</el-table> </el-table>
<el-pagination <pagination
:page-size="erpQuery.limit" v-show="pageTotal>0"
@current-change="handleErpPageChange"
layout="prev, pager, next"
:total="pageTotal" :total="pageTotal"
:curret-page="erpQuery.page" :page.sync="erpQuery.page"
></el-pagination> :limit.sync="erpQuery.limit"
@pagination="getErpList"
/>
</div> </div>
</el-card> </el-card>
<el-card class="el-card"> <el-card class="el-card">
<div> <div>
<el-form :inline="true" :model="unionQuery" size="mini"> <el-form :model="unionQuery" size="mini" label-width="125px" v-show="showDiSearch">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-col :span="6">
<el-form-item class="query-form-item" label="DI编码:">
<el-input <el-input
v-model="unionQuery.nameCode" v-model="unionQuery.nameCode"
size="mini" size="mini"
@ -114,12 +124,15 @@
@keyup.enter.native="keyup_submit($event)" @keyup.enter.native="keyup_submit($event)"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="医疗器械注册人:">
<el-select <el-select
v-model="unionQuery.ylqxzcrbarmc" v-model="unionQuery.ylqxzcrbarmc"
filterable filterable
remote remote
clearable="true" clearable="true"
style="width: 100%"
reserve-keyword reserve-keyword
placeholder="医疗器械注册人" placeholder="医疗器械注册人"
:remote-method="findMethod" :remote-method="findMethod"
@ -135,7 +148,9 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="器械通用名称:">
<el-input <el-input
:disabled="unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''" :disabled="unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''"
v-model="unionQuery.cpmctymc" v-model="unionQuery.cpmctymc"
@ -144,11 +159,11 @@
placeholder="器械通用名称" placeholder="器械通用名称"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-col :span="6">
<el-form-item class="query-form-item" label="规格型号:">
<el-input <el-input
v-model="unionQuery.ggxh" v-model="unionQuery.ggxh"
placeholder="规格型号" placeholder="规格型号"
@ -157,7 +172,9 @@
:disabled="(unionQuery.cpmctymc=='' && unionQuery.nameCode=='' && (unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''))" :disabled="(unionQuery.cpmctymc=='' && unionQuery.nameCode=='' && (unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''))"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> </el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="注册/备案凭证号:">
<el-input <el-input
v-model="unionQuery.zczbhhzbapzbh" v-model="unionQuery.zczbhhzbapzbh"
clearable="true" clearable="true"
@ -166,23 +183,23 @@
size="mini" size="mini"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col>
<el-form-item class="query-form-item">
<el-button-group>
<el-button type="primary" icon="search" @click="serchList" size="mini"
>查询
</el-button
>
</el-button-group>
</el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div class="top-right-btn">
<el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideDiSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onDiReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="serchList"></el-button>
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table <el-table
:data="udidlList" :data="udidlList"
style="width: 100%" style="width: 100%"
@row-click="intentDetail" @row-click="intentDetail"
border
v-loading="loading" v-loading="loading"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
@selection-change="handleSelectionUdiChange" @selection-change="handleSelectionUdiChange"
@ -231,13 +248,14 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination
:page-size="unionQuery.limit" <pagination
@current-change="handleCurrentChange" v-show="total>0"
layout="prev, pager, next"
:total="total" :total="total"
:current-page="unionQuery.page" :page.sync="unionQuery.page"
></el-pagination> :limit.sync="unionQuery.limit"
@pagination="getList"
/>
</div> </div>
</el-card> </el-card>
@ -275,6 +293,9 @@ export default {
data() { data() {
return { return {
//
showThrSearch: true,
erpQuery: { erpQuery: {
code: null, code: null,
name: "", name: "",
@ -285,6 +306,22 @@ export default {
page: 1, page: 1,
limit: 10, limit: 10,
}, },
thirdSys: [],
thirdSysFk: null,
fromOptions: [],
checked: true,
udidlList: [],
erpList: [],
pageTotal: 0,
total: 0,
currentRow: null,
loading: false,
erpLloading: false,
multipleUdiSelection: [],
//DI
showDiSearch: true,
unionQuery: { unionQuery: {
page: 1, page: 1,
limit: 20, limit: 20,
@ -295,6 +332,11 @@ export default {
zczbhhzbapzbh: "", zczbhhzbapzbh: "",
isCheck: 1 isCheck: 1
}, },
diDetails: null,
selectDialog: false,
//
combineQuery: { combineQuery: {
thirdId: "", thirdId: "",
keys: [], keys: [],
@ -304,23 +346,13 @@ export default {
erpName: null, erpName: null,
measname: null, measname: null,
}, },
fromOptions: [],
checked: true,
udidlList: [],
erpList: [],
pageTotal: 1,
total: 1,
currentRow: null,
loading: false,
erpLloading: false,
multipleUdiSelection: [],
thirdSys: [],
thirdSysFk: null,
diDetails: null,
selectDialog: false,
}; };
}, },
methods: { methods: {
//
hideThrSearch() {
this.showThrSearch = !this.showThrSearch;
},
onReset() { onReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
@ -337,6 +369,64 @@ export default {
}; };
this.getErpList(); this.getErpList();
}, },
searchErpList() {
this.erpQuery.page = 1;
this.getErpList();
},
handleErpPageChange(val) {
this.erpQuery.page = val;
this.getErpList();
},
getErpList() {
this.erplLoading = true;
this.erpQuery.thirdSys = this.thirdSysFk;
getInvbasdoc(this.erpQuery)
.then((response) => {
this.erplLoading = false;
if (response.code == 20000) {
this.erpList = response.data.list || [];
this.pageTotal = response.data.total || 0;
} else {
this.$message.error(response.message);
this.erpList = [];
this.pageTotal = 0;
}
})
.catch(() => {
this.erplLoading = false;
this.erpList = [];
this.pageTotal = 0;
});
},
keyupErp_submit(event) {
this.erpQuery.page = 1;
this.getErpList();
event.target.select();
},
//DI
hideDiSearch() {
this.showDiSearch = !this.showDiSearch;
},
onDiReset() {
this.$router.push({
path: "",
});
this.unionQuery = {
page: 1,
limit: 20,
nameCode: "",
cpmctymc: "",
ylqxzcrbarmc: null,
ggxh: "",
zczbhhzbapzbh: "",
isCheck: 1
};
this.getErpList();
},
serchList() { serchList() {
this.unionQuery.page = 1; this.unionQuery.page = 1;
this.getList(); this.getList();
@ -384,49 +474,13 @@ export default {
handleErpChange(val) { handleErpChange(val) {
console.log(val); console.log(val);
this.currentRow = val; this.currentRow = val;
// this.unionQuery.cpmctymc = this.currentRow.name;
// this.unionQuery.zczbhhzbapzbh = this.currentRow.registerNo;
// this.unionQuery.ggxh = this.currentRow.spec;
}, },
diDetail(row) { diDetail(row) {
this.diDetails = row; this.diDetails = row;
this.selectDialog = true; this.selectDialog = true;
}, },
searchErpList() {
this.erpQuery.page = 1;
this.getErpList();
},
handleErpPageChange(val) {
this.erpQuery.page = val;
this.getErpList();
},
getErpList() {
this.erplLoading = true;
this.erpQuery.thirdSys = this.thirdSysFk;
getInvbasdoc(this.erpQuery)
.then((response) => {
this.erplLoading = false;
if (response.code == 20000) {
this.erpList = response.data.list || [];
this.pageTotal = response.data.total || 0;
} else {
this.$message.error(response.message);
this.erpList = [];
this.pageTotal = 0;
}
})
.catch(() => {
this.erplLoading = false;
this.erpList = [];
this.pageTotal = 0;
});
},
keyupErp_submit(event) {
this.erpQuery.page = 1;
this.getErpList();
event.target.select();
},
intentBack() { intentBack() {
this.$router.go(-1); this.$router.go(-1);
}, },

@ -142,8 +142,16 @@
type="text" type="text"
size="small" size="small"
@click.native.stop="handleModifyClick(scope.row)" @click.native.stop="handleModifyClick(scope.row)"
>详情
</el-button>
<el-button
type="text"
size="small"
@click.native.stop="diEdit(scope.row)"
>编辑 >编辑
</el-button> </el-button>
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)" <el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)"
>删除 >删除
</el-button> </el-button>
@ -244,7 +252,7 @@
></el-table-column> ></el-table-column>
<el-table-column label="操作" width="180px"> <el-table-column label="操作" width="180px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click.native.stop="diEdit">编辑</el-button> <el-button type="text" @click.native.stop="singleDiEdit">编辑</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -1019,13 +1027,11 @@
width="60%" width="60%"
v-if="editDiDialogVisible" v-if="editDiDialogVisible"
> >
<product-edit <product-edit
:editQuery="editQuery" :editQuery="editFormat"
:productRemarkSet="productRemarkSet" :productRemarkSet="productRemarkSet"
></product-edit> ></product-edit>
<div style="text-align: center;margin-top: 12px"> <div style="text-align: center;margin-top: 12px">
<el-button type="primary" size="small" icon="search" @click="onAddSubmit(false)" <el-button type="primary" size="small" icon="search" @click="onAddSubmit(false)"
>提交 >提交
@ -1035,9 +1041,31 @@
</el-button> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog
title="耗材字典-编辑"
:visible.sync="editSingleDiDialogVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="45%"
v-if="editSingleDiDialogVisible"
>
<product-single-edit
:editQuery="editSingleFormat"
></product-single-edit>
<div style="text-align: center;margin-top: 12px">
<el-button type="primary" size="small" icon="search" @click="onAddSingleSubmit(false)"
>提交
</el-button>
<el-button type="primary" size="small" icon="search" @click="cancelDialog"
>取消
</el-button>
</div>
</el-dialog>
<el-dialog <el-dialog
title="关联添加器械信息" title="耗材字典-关联添加器械信息"
:visible.sync="selectUdiDialogVisible" :visible.sync="selectUdiDialogVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
@ -1047,7 +1075,7 @@
<selectUdi @closeUdi="closeUdi" :isImportUdi="isImportUdi"></selectUdi> <selectUdi @closeUdi="closeUdi" :isImportUdi="isImportUdi"></selectUdi>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="从指定系统添加器械字典" title="耗材字典-从指定系统添加器械信息"
:visible.sync="selectErpDialogVisible" :visible.sync="selectErpDialogVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
@ -1066,7 +1094,7 @@
></selectErp> ></selectErp>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="添加DI器械信息" title="耗材字典-添加DI器械信息"
:visible.sync="selectLocalVisible" :visible.sync="selectLocalVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
@ -1083,7 +1111,7 @@
></selectLocalUdi> ></selectLocalUdi>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="选择DI版本" title="耗材字典-选择DI版本"
:visible.sync="selectVersionVisible" :visible.sync="selectVersionVisible"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
@ -1114,6 +1142,7 @@ import {
getUdiInfos, getUdiInfos,
deletetUdiInfos, deletetUdiInfos,
updatetUdiInfos, updatetUdiInfos,
updatetSingleUdiInfo,
updateErpProduct, updateErpProduct,
uploadSmp, uploadSmp,
thirdSysDetail, thirdSysDetail,
@ -1122,11 +1151,12 @@ import {
import {selectSysParamByKey, finProductSet} from "@/api/param/systemParamConfig"; import {selectSysParamByKey, finProductSet} from "@/api/param/systemParamConfig";
import {filterByUuid} from "@/api/basic/product/udiInfo"; import {filterByUuid} from "@/api/basic/product/udiInfo";
import selectUdi from "./UdiInfoRelevance.vue"; import selectUdi from "./UdiInfoSelectRel.vue";
import selectErp from "./UdiInfoselectErpUdi"; import selectErp from "./UdiInfoSelectErpUdi";
import selectLocalUdi from "./UdiInfoSelectLocalUdi"; import selectLocalUdi from "./UdiInfoSelectLocalUdi";
import selectUdiVersion from "./UdiinfoSelectVersion"; import selectUdiVersion from "./UdiinfoSelectVersion";
import ProductEdit from "@/views/basic/product/productEdit"; import ProductEdit from "@/views/basic/product/productEdit";
import ProductSingleEdit from "@/views/basic/product/productSingleEdit";
export default { export default {
@ -1151,6 +1181,14 @@ export default {
showSearch: true, showSearch: true,
productType: null, productType: null,
editQuery: null, editQuery: null,
editFormat: {},
editSingleFormat: {
uuid: null,
relId: null,
sptm: null,
packUnit: null,
measname: null,
},
pId: 0, pId: 0,
productRemarkSet: {}, productRemarkSet: {},
relevanceEdit: { relevanceEdit: {
@ -1191,6 +1229,7 @@ export default {
multipleSelection: [], multipleSelection: [],
editDialogVisible: false, // editDialogVisible: false, //
editDiDialogVisible: false, editDiDialogVisible: false,
editSingleDiDialogVisible: false,
selectUdiDialogVisible: false, // selectUdiDialogVisible: false, //
selectErpDialogVisible: false, //ERP selectErpDialogVisible: false, //ERP
selectVersionVisible: false, selectVersionVisible: false,
@ -1359,7 +1398,7 @@ export default {
}); });
this.getList(); this.getList();
this.cancelDialog(); this.cancelDialog();
this.getThirdSysDetail()(); this.getThirdSysDetail();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -1476,6 +1515,7 @@ export default {
cancelDialog() { cancelDialog() {
this.editDiDialogVisible = false; this.editDiDialogVisible = false;
this.editSingleDiDialogVisible = false;
this.getList(); this.getList();
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
@ -1559,11 +1599,19 @@ export default {
}); });
}, },
diEdit() { singleDiEdit() {
let temp = JSON.parse(JSON.stringify(this.editQuery));
this.editSingleFormat.uuid = temp.uuid;
this.editSingleFormat.id = temp.id;
this.editSingleFormat.sptm = temp.sptm;
this.editSingleFormat.packUnit = temp.packUnit;
this.editSingleFormat.measname = temp.measname;
this.editSingleDiDialogVisible = true;
},
diEdit(row) {
this.editFormat = JSON.parse(JSON.stringify(row));
this.editDiDialogVisible = true; this.editDiDialogVisible = true;
}, },
closeDialog() { closeDialog() {
this.selectErpDialogVisible = false; this.selectErpDialogVisible = false;
this.selectLocalVisible = false; this.selectLocalVisible = false;
@ -1587,6 +1635,22 @@ export default {
}); });
}, },
onAddSingleSubmit() {
updatetSingleUdiInfo(this.editSingleFormat)
.then((response) => {
if (response.code == 20000) {
this.getList();
this.cancelDialog();
this.editDialogVisible = false;
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.cancelDialog();
});
},
findBasicProductSet() { findBasicProductSet() {
finProductSet().then((response) => { finProductSet().then((response) => {
@ -1646,6 +1710,7 @@ export default {
mounted() { mounted() {
}, },
components: { components: {
ProductSingleEdit,
ProductEdit, ProductEdit,
selectUdi, selectUdi,
selectErp, selectErp,

@ -1,6 +1,5 @@
<template> <template>
<div> <div>
<el-form <el-form
:model="editQuery" :model="editQuery"
:rules="rules" :rules="rules"
@ -9,26 +8,7 @@
label-width="120px" label-width="120px"
> >
<el-row type="flex" class="edit-row"> <el-row type="flex" class="edit-row">
<el-col :span="12">
<el-form-item label="商品条码:">
<el-input
style="width: 80%"
size="small"
splaceholder="请输入内容"
v-model="editQuery.sptm"
></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="医保编码:">
<el-input
style="width: 80%"
size="small"
splaceholder="请输入内容"
v-model="editQuery.ybbm"
></el-input>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row type="flex" class="edit-row"> <el-row type="flex" class="edit-row">
<el-col :span="12"> <el-col :span="12">
@ -175,14 +155,13 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="包装单位:"> <el-form-item label="医保编码:">
<el-input <el-input
style="width: 80%" style="width: 80%"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.packUnit" v-model="editQuery.ybbm"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -190,23 +169,23 @@
<el-row type="flex"> <el-row type="flex">
<el-col :span="24"> <el-col :span="24">
<div style="margin-bottom: 18px;margin-left: 25px"> <div style="margin-bottom: 18px;margin-left: 25px">
<el-checkbox v-model="editQuery.isDisable" class="" <el-checkbox v-model="editQuery.isDisable"
@change="diableChange" @change="diableChange"
style="width: 180px" style="width: 180px"
border border
>是否禁用 >是否禁用
</el-checkbox> </el-checkbox>
<el-checkbox v-model="editQuery.isAdavence" class="" <el-checkbox v-model="editQuery.isAdavence"
border border
style="width: 180px" style="width: 180px"
>是否寄售 >是否寄售
</el-checkbox> </el-checkbox>
<el-checkbox v-model="editQuery.allowNoBatch" class="" <el-checkbox v-model="editQuery.allowNoBatch"
border border
style="width: 180px" style="width: 180px"
>允许无批次号 >允许无批次号
</el-checkbox> </el-checkbox>
<el-checkbox v-model="editQuery.allowNoExpire" class="" <el-checkbox v-model="editQuery.allowNoExpire"
border border
style="width: 180px" style="width: 180px"
>允许无失效日期 >允许无失效日期
@ -218,19 +197,19 @@
<el-col :span="24" class="el-col"> <el-col :span="24" class="el-col">
<div style="margin-bottom: 18px;margin-left: 25px"> <div style="margin-bottom: 18px;margin-left: 25px">
<el-checkbox v-model="editQuery.allowNoProduct" class="" <el-checkbox v-model="editQuery.allowNoProduct"
border border
style="width: 180px" style="width: 180px"
>允许无生产日期 >允许无生产日期
</el-checkbox> </el-checkbox>
<el-checkbox v-model="checked" class="" <el-checkbox v-model="checked"
:disabled="!isUseDyCheck || editQuery.useMuti==true " :disabled="!isUseDyCheck || editQuery.useMuti==true "
@change="useDyCheckChange" @change="useDyCheckChange"
style="width: 180px" style="width: 180px"
border border
>启用使用单元 >启用使用单元
</el-checkbox> </el-checkbox>
<el-checkbox v-model="editQuery.useMuti" class="" <el-checkbox v-model="editQuery.useMuti"
:disabled="checked" :disabled="checked"
@change="useMutiChange" @change="useMutiChange"
style="width: 180px" style="width: 180px"
@ -266,6 +245,7 @@ export default {
data() { data() {
return { return {
isUseDyCheck: false, isUseDyCheck: false,
useNumEnable: true,
} }
}, },

@ -0,0 +1,64 @@
<template>
<div>
<el-form
:model="editQuery"
:rules="rules"
ref="editQuery"
border
label-width="120px"
>
<el-row>
<el-form-item label="商品条码:">
<el-input
style="width: 80%"
size="small"
splaceholder="请输入内容"
v-model="editQuery.sptm"
></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="包装单位:">
<el-input
style="width: 80%"
size="small"
splaceholder="请输入内容"
v-model="editQuery.packUnit"
></el-input>
</el-form-item>
</el-row>
<!-- <el-row>-->
<!-- <el-form-item label="计量单位:">-->
<!-- <el-input-->
<!-- style="width: 80%"-->
<!-- size="small"-->
<!-- splaceholder="请输入内容"-->
<!-- v-model="editQuery.measname"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-row>-->
</el-form>
</div>
</template>
<script>
export default {
name: "productSingleEdit",
props: {
editQuery: {
type: Object,
required: true,
},
},
data() {
return {}
},
methods: {}
}
</script>
<style scoped>
</style>
Loading…
Cancel
Save