1.新增DI产品审核,调整详情页展示内容

featFunction
x_z 3 years ago
parent bac7aac8af
commit 411ffe5724

@ -0,0 +1,42 @@
import axios from "../../utils/axios";
export function getThrDiProducts(query) {
return axios({
url: "/udiwms/thrsys/getThrProductsDiList",
method: "get",
params: query
});
}
export function delThrDiProducts(query) {
return axios({
url: "/udiwms/thrsys/delThrAddDiProducts",
method: "post",
data: query
});
}
export function updateDiProduct(data) {
return axios({
url: '/udiwms/thrsys/updateThrAddDiProducts',
method: 'post',
data: data
})
}
export function addDiProduct(data) {
return axios({
url: '/udiwms/thrsys/addThrAddDiProducts',
method: 'post',
data: data
})
}
export function getDiProductDetail(query) {
return axios({
url: "/udiwms/thrsys/getDiProductDetail",
method: "get",
params: query
})
}

@ -79,6 +79,7 @@ import corpExport from "../views/basic/CorpExport.vue";
//第三方数据管理 //第三方数据管理
import thrProducts from "../views/thrsys/ThrProducts.vue"; import thrProducts from "../views/thrsys/ThrProducts.vue";
import thrProductsCheck from "../views/thrsys/ThrProductsCheck.vue"; import thrProductsCheck from "../views/thrsys/ThrProductsCheck.vue";
import thrDiProductsCheck from "@/views/thrsys/ThrDiProductsCheck";
import thrProductsSubmit from "../views/thrsys/ThrProductsSubmit.vue"; import thrProductsSubmit from "../views/thrsys/ThrProductsSubmit.vue";
import thrProductsImport from "../views/thrsys/ThrProductsImport.vue"; import thrProductsImport from "../views/thrsys/ThrProductsImport.vue";
import ThrOrders from "../views/thrsys/ThrOrder.vue"; import ThrOrders from "../views/thrsys/ThrOrder.vue";
@ -111,6 +112,7 @@ import thrInvWarehouse from "@/views/thrsys/ThrInvWarehouse";
//同步管理 //同步管理
import sysUdimsDownloadData from "../views/thrsys/SysUdimsDownloadData"; import sysUdimsDownloadData from "../views/thrsys/SysUdimsDownloadData";
import thrProductsAddDi from "@/views/thrsys/ThrProductsAddDi";
const err401 = r => const err401 = r =>
@ -521,12 +523,20 @@ export const asyncRouterMap = [
}, },
{ {
path: "thrProductsCheck", path: "thrProductsCheck",
name: "新增产品审核", name: "新增院内产品审核",
component: thrProductsCheck, component: thrProductsCheck,
meta: { meta: {
authRule: ["product/thrAddProducts"] authRule: ["product/thrAddProducts"]
} }
}, },
{
path: "thrDIProductsCheck",
name: "新增DI产品审核",
component: thrDiProductsCheck,
meta: {
authRule: ["product/thrAddProducts"]
}
},
] ]
}, },
@ -1170,12 +1180,20 @@ export const asyncRouterMap = [
}, },
{ {
path: "thrProductsSubmit", path: "thrProductsSubmit",
name: "新增配送产品", name: "新增院内产品",
component: thrProductsSubmit, component: thrProductsSubmit,
meta: { meta: {
authRule: ["product/thrProductsSubmit"] authRule: ["product/thrProductsSubmit"]
} }
}, },
{
path: "diProductsSubmit",
name: "新增DI产品",
component: thrProductsAddDi,
meta: {
authRule: ["product/thrProductsSubmit"]
}
},
{ {
path: "/spInv", path: "/spInv",
redirect: "/spInv/spInvProducts", redirect: "/spInv/spInvProducts",

@ -10,396 +10,436 @@
label-width="100px" label-width="100px"
style="margin-top: 20px" style="margin-top: 20px"
> >
<el-row :gutter="20" class="el-row" type="flex"> <el-collapse v-model="activeNames">
<el-col :span="12" class="el-col"> <el-collapse-item name="1">
<div class="text item"> <template slot="title">
<div class="itemTag"> <p class="form-title">产品标识基本信息</p>
<span>产品名称:&nbsp;</span> </template>
</div> <el-row :gutter="20" class="el-row" type="flex">
<el-input
style="width: 65%" <el-col :span="12" class="el-col">
size="small" <div class="text item">
splaceholder="请输入内容" <div class="itemTag">
:disabled="true" <span>产品标识:&nbsp;</span>
v-model="editQuery.cpmctymc" </div>
></el-input> <el-input
</div> style="width: 65%"
</el-col> :disabled="true"
<el-col :span="12" class="el-col"> size="small"
<div class="text item"> splaceholder="请输入内容"
<div class="itemTag"> v-model="editQuery.nameCode"
<span>产品标识:&nbsp;</span> ></el-input>
</div> </div>
<el-input </el-col>
style="width: 65%"
:disabled="true" <el-col :span="12" class="el-col">
size="small" <div class="text item">
splaceholder="请输入内容" <div class="itemTag">
v-model="editQuery.nameCode" <span>最小包装单元内包含使用单元数量:&nbsp;</span>
></el-input> </div>
</div> <el-input
</el-col> style="width: 65%"
:disabled="true"
size="small"
</el-row> splaceholder="请输入内容"
v-model="editQuery.zxxsbzbhsydysl"
<el-row :gutter="20" class="el-row" type="flex"> ></el-input>
<el-col :span="12" class="el-col"> </div>
<div class="text item"> </el-col>
<div class="itemTag"> </el-row>
<span>规格型号:&nbsp;</span>
</div> <el-row :gutter="20" class="el-row" type="flex">
<el-input <el-col :span="12" class="el-col">
style="width: 65%" <div class="text item">
:disabled="true" <div class="itemTag">
size="small" <span>包含下级产品编码:&nbsp;</span>
splaceholder="请输入内容" </div>
v-model="editQuery.ggxh"
></el-input> <el-input
</div> style="width: 65%"
</el-col> size="small"
:disabled="true"
<el-col :span="12" class="el-col"> splaceholder="请输入内容"
<div class="text item"> v-model="editQuery.bhxjcpbm"
<div class="itemTag">
<span>器械类别:&nbsp;</span> ></el-input>
</div> </div>
<el-input </el-col>
style="width: 65%"
:disabled="true" <el-col :span="12" class="el-col">
size="small" <div class="text item">
splaceholder="请输入内容" <div class="itemTag">
v-model="editQuery.qxlb" <span>包含最小销售包装数量:&nbsp;</span>
></el-input> </div>
</div> <el-input
</el-col> style="width: 65%"
</el-row> size="small"
<el-row :gutter="20" class="el-row" type="flex"> :disabled="true"
<el-col :span="12" class="el-col"> splaceholder="请输入内容"
<div class="text item"> v-model="editQuery.bhzxxsbzsl"
<div class="itemTag"> ></el-input>
<span>产品类别:&nbsp;</span> </div>
</div> </el-col>
<el-input </el-row>
style="width: 65%"
:disabled="true" </el-collapse-item>
size="small"
splaceholder="请输入内容" <el-collapse-item name="2">
v-model="editQuery.cplb" <template slot="title">
></el-input> <p class="form-title">产品基本信息</p>
</div> </template>
</el-col>
<el-col :span="12" class="el-col"> <el-row :gutter="20" class="el-row" type="flex">
<div class="text item"> <el-col :span="12" class="el-col">
<div class="itemTag"> <div class="text item">
<span>分类编码:&nbsp;</span> <div class="itemTag">
</div> <span>产品名称:&nbsp;</span>
<el-input </div>
style="width: 65%" <el-input
:disabled="true" style="width: 65%"
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.flbm" :disabled="true"
></el-input> v-model="editQuery.cpmctymc"
</div> ></el-input>
</el-col> </div>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-col :span="12" class="el-col">
<div class="text item">
<el-col :span="12" class="el-col"> <div class="itemTag">
<div class="text item"> <span>规格型号:&nbsp;</span>
<div class="itemTag"> </div>
<span>商品条码:&nbsp;</span> <el-input
</div> style="width: 65%"
<el-input :disabled="true"
style="width: 65%" size="small"
size="small" :disabled="true" splaceholder="请输入内容"
splaceholder="请输入内容" v-model="editQuery.ggxh"
v-model="editQuery.sptm" ></el-input>
></el-input> </div>
</div> </el-col>
</el-col> </el-row>
<el-col :span="12" class="el-col">
<div class="text item"> <el-row :gutter="20" class="el-row" type="flex">
<div class="itemTag"> <el-col :span="12" class="el-col">
<span>医保编码:&nbsp;</span> <div class="text item">
</div> <div class="itemTag">
<el-input <span>产品类别:&nbsp;</span>
style="width: 65%" :disabled="true" </div>
size="small" <el-input
splaceholder="请输入内容" style="width: 65%"
v-model="editQuery.ybbm" :disabled="true"
></el-input> size="small"
</div> splaceholder="请输入内容"
</el-col> v-model="editQuery.cplb"
</el-row> ></el-input>
<el-row :gutter="20" class="el-row" type="flex"> </div>
</el-col>
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<div class="text item"> <div class="text item">
<div class="itemTag"> <div class="itemTag">
<span>医疗器械注册人:&nbsp;</span> <span>分类编码:&nbsp;</span>
</div> </div>
<el-input <el-input
style="width: 65%" style="width: 65%"
:disabled="true" :disabled="true"
size="small" size="small"
splaceholder="ylqxzcrbarmc" splaceholder="请输入内容"
v-model="editQuery.ylqxzcrbarmc" v-model="editQuery.flbm"
></el-input> ></el-input>
</div> </div>
</el-col> </el-col>
<el-col :span="12" class="el-col">
<div class="text item"> </el-row>
<div class="itemTag">
<span>注册人英文名称:&nbsp;</span> <el-row :gutter="20" class="el-row" type="flex">
</div>
<el-input <el-col :span="12" class="el-col">
style="width: 65%" <div class="text item">
:disabled="true" <div class="itemTag">
size="small" <span>医疗器械注册人:&nbsp;</span>
splaceholder="请输入内容" </div>
v-model="editQuery.ylqxzcrbarywmc" <el-input
></el-input> style="width: 65%"
</div> :disabled="true"
</el-col> size="small"
splaceholder="ylqxzcrbarmc"
</el-row> v-model="editQuery.ylqxzcrbarmc"
<el-row :gutter="20" class="el-row" type="flex"> ></el-input>
</div>
<el-col :span="12" class="el-col"> </el-col>
<div class="text item"> <el-col :span="12" class="el-col">
<div class="itemTag"> <div class="text item">
<span>统一社会信用号:&nbsp;</span> <div class="itemTag">
</div> <span>注册人英文名称:&nbsp;</span>
<el-input </div>
style="width: 65%" <el-input
:disabled="true" style="width: 65%"
size="small" :disabled="true"
splaceholder="请输入内容" size="small"
v-model="editQuery.tyshxydm" splaceholder="请输入内容"
></el-input> v-model="editQuery.ylqxzcrbarywmc"
</div> ></el-input>
</el-col> </div>
<el-col :span="12" class="el-col"> </el-col>
<div class="text item">
<div class="itemTag"> </el-row>
<span>注册证/备案号:&nbsp;</span>
</div> <el-row :gutter="20" class="el-row" type="flex">
<el-input
style="width: 65%" <el-col :span="12" class="el-col">
:disabled="true" <div class="text item">
size="small" <div class="itemTag">
splaceholder="请输入内容" <span>器械类别:&nbsp;</span>
v-model="editQuery.zczbhhzbapzbh" </div>
></el-input> <el-input
</div> style="width: 65%"
</el-col> :disabled="true"
</el-row> size="small"
<el-row :gutter="20" class="el-row" type="flex"> splaceholder="请输入内容"
<el-col :span="12" class="el-col"> v-model="editQuery.qxlb"
<div class="text item"> ></el-input>
<div class="itemTag"> </div>
<span>上级产品编码:&nbsp;</span> </el-col>
</div>
<el-input <el-col :span="12" class="el-col">
style="width: 65%" <div class="text item">
:disabled="true" <div class="itemTag">
size="small" <span>生产厂家:&nbsp;</span>
splaceholder="请输入内容" </div>
v-model="editQuery.sjcpbm" <el-input
></el-input> style="width: 65%"
</div> :disabled="true"
</el-col> size="small"
splaceholder="请输入内容"
<el-col :span="12" class="el-col"> ></el-input>
<div class="text item"> </div>
<div class="itemTag"> </el-col>
<span>包装级别:&nbsp;</span> </el-row>
</div>
<el-input <el-row :gutter="20" class="el-row" type="flex">
style="width: 65%"
size="small" <el-col :span="12" class="el-col">
splaceholder="请输入内容" <div class="text item">
:disabled="true" <div class="itemTag">
v-model="editQuery.packLevel" <span>商品条码:&nbsp;</span>
></el-input> </div>
</div> <el-input
</el-col> style="width: 65%"
</el-row> size="small" :disabled="true"
<el-row :gutter="20" class="el-row" type="flex"> splaceholder="请输入内容"
<el-col :span="12" class="el-col"> v-model="editQuery.sptm"
<div class="text item"> ></el-input>
<div class="itemTag"> </div>
<span>计量单位/包装级别:&nbsp;</span> </el-col>
</div> <el-col :span="12" class="el-col">
<div class="text item">
<el-input <div class="itemTag">
style="width: 65%" <span>医保编码:&nbsp;</span>
size="small" </div>
splaceholder="请输入内容" <el-input
v-model="editQuery.bzcj" style="width: 65%" :disabled="true"
:disabled="true" size="small"
splaceholder="请输入内容"
></el-input> v-model="editQuery.ybbm"
</div> ></el-input>
</el-col> </div>
</el-col>
<el-col :span="12" class="el-col"> </el-row>
<div class="text item">
<div class="itemTag"> <el-row :gutter="20" class="el-row" type="flex">
<span>包含下级包装数量:&nbsp;</span> <el-col :span="12" class="el-col">
</div> <div class="text item">
<el-input <div class="itemTag">
style="width: 65%" <span>统一社会信用号:&nbsp;</span>
size="small" </div>
splaceholder="请输入内容" <el-input
:disabled="true" style="width: 65%"
v-model="editQuery.bhxjsl" :disabled="true"
></el-input> size="small"
</div> splaceholder="请输入内容"
</el-col> v-model="editQuery.tyshxydm"
</el-row> ></el-input>
<el-row :gutter="20" class="el-row" type="flex"> </div>
<el-col :span="12" class="el-col"> </el-col>
<div class="text item"> <el-col :span="12" class="el-col">
<div class="itemTag"> <div class="text item">
<span>包含下级产品编码:&nbsp;</span> <div class="itemTag">
</div> <span>注册证/备案号:&nbsp;</span>
</div>
<el-input <el-input
style="width: 65%" style="width: 65%"
size="small" :disabled="true"
:disabled="true" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="editQuery.bhxjcpbm" v-model="editQuery.zczbhhzbapzbh"
></el-input>
></el-input> </div>
</div> </el-col>
</el-col> </el-row>
<el-col :span="12" class="el-col"> <el-row :gutter="20" class="el-row" type="flex">
<div class="text item"> <el-col :span="12" class="el-col">
<div class="itemTag"> <div class="text item">
<span>包含最小销售包装数量:&nbsp;</span> <div class="itemTag">
</div> <span>产品描述:&nbsp;</span>
<el-input </div>
style="width: 65%" <el-input
size="small" style="width: 65%"
:disabled="true" :disabled="!checked"
splaceholder="请输入内容" size="small"
v-model="editQuery.bhzxxsbzsl" splaceholder="请输入内容"
></el-input> v-model="editQuery.cpms"
</div> ></el-input>
</el-col> </div>
</el-row> </el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex"> </el-collapse-item>
<el-col :span="12" class="el-col">
<div class="text item">
<div class="itemTag"> <el-collapse-item name="3">
<span>最小包装单元内包含使用单元数量:&nbsp;</span> <template slot="title">
</div> <p class="form-title">生产标识基本信息</p>
<el-input </template>
style="width: 65%"
:disabled="true" <el-row :gutter="20" class="el-row" type="flex">
size="small" <el-col :span="12" class="el-col">
splaceholder="请输入内容" <div class="text item">
v-model="editQuery.zxxsbzbhsydysl" <div class="itemTag">
></el-input> <span>是否包含批号:&nbsp;</span>
</div> </div>
</el-col> <el-input
<el-col :span="12" class="el-col"> style="width: 65%"
<div class="text item"> :disabled="true"
<div class="itemTag"> size="small"
<span>生产厂家:&nbsp;</span> splaceholder="请输入内容"
</div> v-model="editQuery.scbssfbhph"
<el-input ></el-input>
style="width: 65%" </div>
:disabled="true" </el-col>
size="small" <el-col :span="12" class="el-col">
splaceholder="请输入内容" <div class="text item">
></el-input> <div class="itemTag">
</div> <span>是否包含序列号:&nbsp;</span>
</el-col> </div>
</el-row> <el-input
<el-row :gutter="20" class="el-row" type="flex"> style="width: 65%"
<el-col :span="12" class="el-col"> :disabled="true"
<div class="text item"> size="small"
<div class="itemTag"> v-model="editQuery.scbssfbhxlh"
<span>是否包含批号:&nbsp;</span> splaceholder="请输入内容"
</div> ></el-input>
<el-input </div>
style="width: 65%" </el-col>
:disabled="true" </el-row>
size="small" <el-row :gutter="20" class="el-row" type="flex">
splaceholder="请输入内容" <el-col :span="12" class="el-col">
v-model="editQuery.scbssfbhph" <div class="text item">
></el-input> <div class="itemTag">
</div> <span>是否包含生产日期:&nbsp;</span>
</el-col> </div>
<el-col :span="12" class="el-col"> <el-input
<div class="text item"> style="width: 65%"
<div class="itemTag"> :disabled="true"
<span>是否包含序列号:&nbsp;</span> size="small"
</div> splaceholder="请输入内容"
<el-input v-model="editQuery.scbssfbhscrq"
style="width: 65%" ></el-input>
:disabled="true" </div>
size="small" </el-col>
v-model="editQuery.scbssfbhxlh" <el-col :span="12" class="el-col">
splaceholder="请输入内容" <div class="text item">
></el-input> <div class="itemTag">
</div> <span>是否包含失效日期:&nbsp;</span>
</el-col> </div>
</el-row> <el-input
<el-row :gutter="20" class="el-row" type="flex"> style="width: 65%"
<el-col :span="12" class="el-col"> :disabled="true"
<div class="text item"> v-model="editQuery.scbssfbhsxrq"
<div class="itemTag"> size="small"
<span>是否包含生产日期:&nbsp;</span> splaceholder="请输入内容"
</div> ></el-input>
<el-input </div>
style="width: 65%" </el-col>
:disabled="true" </el-row>
size="small"
splaceholder="请输入内容"
v-model="editQuery.scbssfbhscrq" </el-collapse-item>
></el-input>
</div> <el-collapse-item name="4">
</el-col> <template slot="title">
<el-col :span="12" class="el-col"> <p class="form-title">包装标识信息</p>
<div class="text item"> </template>
<div class="itemTag">
<span>是否包含失效日期:&nbsp;</span> <el-row :gutter="20" class="el-row" type="flex">
</div> <el-col :span="12" class="el-col">
<el-input <div class="text item">
style="width: 65%" <div class="itemTag">
:disabled="true" <span>上级产品编码:&nbsp;</span>
v-model="editQuery.scbssfbhsxrq" </div>
size="small" <el-input
splaceholder="请输入内容" style="width: 65%"
></el-input> :disabled="true"
</div> size="small"
</el-col> splaceholder="请输入内容"
</el-row> v-model="editQuery.sjcpbm"
<el-row :gutter="20" class="el-row" type="flex"> ></el-input>
<el-col :span="12" class="el-col"> </div>
<div class="text item"> </el-col>
<div class="itemTag">
<span>产品描述:&nbsp;</span> <el-col :span="12" class="el-col">
</div> <div class="text item">
<el-input <div class="itemTag">
style="width: 65%" <span>包装级别:&nbsp;</span>
:disabled="!checked" </div>
size="small" <el-input
splaceholder="请输入内容" style="width: 65%"
v-model="editQuery.cpms" size="small"
></el-input> splaceholder="请输入内容"
</div> :disabled="true"
</el-col> v-model="editQuery.packLevel"
</el-row> ></el-input>
</div>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col">
<div class="text item">
<div class="itemTag">
<span>计量单位/包装级别:&nbsp;</span>
</div>
<el-input
style="width: 65%"
size="small"
splaceholder="请输入内容"
v-model="editQuery.bzcj"
:disabled="true"
></el-input>
</div>
</el-col>
<el-col :span="12" class="el-col">
<div class="text item">
<div class="itemTag">
<span>包含下级包装数量:&nbsp;</span>
</div>
<el-input
style="width: 65%"
size="small"
splaceholder="请输入内容"
:disabled="true"
v-model="editQuery.bhxjsl"
></el-input>
</div>
</el-col>
</el-row>
</el-collapse-item>
</el-collapse>
</el-form> </el-form>
</el-card> </el-card>
@ -417,7 +457,9 @@ export default {
}, },
}, },
data() { data() {
return {} return {
activeNames: ['1']
}
}, },
methods: {}, methods: {},
@ -428,4 +470,12 @@ export default {
<style scoped> <style scoped>
.form-title {
font-size: 16px;
font-family: Noto Sans SC;
font-weight: bold;
color: #303133;
padding-bottom: 17px;
padding-top: 17px;
}
</style> </style>

@ -1155,7 +1155,6 @@ export default {
this.relId = val.id; this.relId = val.id;
this.isImportUdi = true; this.isImportUdi = true;
this.thisData = val; this.thisData = val;
console.log("-----" + this.uuid + "-2222--" + this.relId);
this.selectLocalVisible = true; this.selectLocalVisible = true;
}, },
@ -1167,7 +1166,6 @@ export default {
handleSelectionChange(val) { handleSelectionChange(val) {
console.log("----" + val);
this.multipleSelection = val; this.multipleSelection = val;
}, },

@ -309,7 +309,6 @@ export default {
}); });
}, },
findMethod(query) { findMethod(query) {
console.log(query);
this.fromOptions = []; this.fromOptions = [];
let cQuery = { let cQuery = {
key: query, key: query,

@ -0,0 +1,468 @@
<template>
<div>
<el-card class="el-card">
<div>
<el-form :inline="true" :model="unionQuery" size="mini">
<el-row style="width: 1000px">
<el-form-item class="query-form-item">
<el-input v-model="unionQuery.udiCode"
style="width: 600px"
placeholder="请扫描或输入UDI码"
clearable="true"
@keyup.enter.native="keyup_submit($event)"></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item class="query-form-item">
<el-input
v-model="unionQuery.nameCode" clearable="true"
size="mini"
placeholder="请输入完整DI"
@keyup.enter.native="keyup_submit($event)"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select
v-model="unionQuery.ylqxzcrbarmc"
filterable
remote
clearable="true"
reserve-keyword
placeholder="医疗器械注册人"
:remote-method="findMethod"
:loading="loading"
>
<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-form-item class="query-form-item">
<el-input
:disabled="unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''"
v-model="unionQuery.cpmctymc" clearable="true"
size="mini"
placeholder="器械通用名称"
></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item class="query-form-item">
<el-input
v-model="unionQuery.ggxh" clearable="true"
:disabled="(unionQuery.cpmctymc=='' && unionQuery.nameCode=='' && (unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''))"
placeholder="规格型号"
size="mini"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-input
v-model="unionQuery.zczbhhzbapzbh" clearable="true"
:disabled="(unionQuery.cpmctymc=='' && unionQuery.nameCode=='' && (unionQuery.ylqxzcrbarmc==null || unionQuery.ylqxzcrbarmc==''))"
placeholder="注册证/备案号"
size="mini"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></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"
>选入
</el-button
>
<el-button type="primary" icon="search" @click="getSuperSeaech" size="mini"
>国家同步库查询
</el-button
>
</el-button-group>
</el-form-item>
</el-row>
</el-form>
<el-table
:data="udidlList"
style="width: 100%"
v-loading="loading"
highlight-current-row="true"
:row-class-name="tableRowClassName"
@current-change="handleErpChange"
@selection-change="handleSelectionUdiChange"
>
<el-table-column
v-if="relId==null"
type="selection"
:selectable="checkSelectable"
width="55"
></el-table-column>
<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="操作" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click="diDetail(scope.row)"
>详情
</el-button
>
</template>
</el-table-column>
</el-table>
<el-pagination
:page-size="unionQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="unionQuery.page"
></el-pagination>
</div>
</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 {getUdiInfos, filterCompany, superSearch} from "../../api/basic/udiInfo";
import {combineUdi} from "../../api/basic/udiRelevance";
import {addDiProduct} from "@/api/thrsys/thrProductsAddDi";
import selectDiDetail from "../basic/SelectDIDetailDialog"
import store from "@/store";
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 {
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: 1,
currentRow: null,
fromOptions: [],
loading: false,
erpLloading: false,
multipleUdiSelection: [],
selectDialog: false,
diDetails: null,
};
},
methods: {
onReset() {
this.unionQuery = {
page: 1,
limit: 10,
udiCode: null,
nameCode: "",
cpmctymc: "",
ylqxzcrbarmc: null,
ggxh: "",
zczbhhzbapzbh: "",
isCheck: 1
};
this.getList();
},
searchList() {
this.unionQuery.page = 1;
this.getList();
},
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;
this.getList();
},
tableRowClassName({row, rowIndex}) {
if (row.check) return "warning-row";
return "";
},
handleErpChange(val) {
this.currentRow = val;
},
intentBack() {
this.closeDialog();
},
checkCombine() {
if (this.multipleUdiSelection.length === 0) {
this.$message.warning("请选择需要添加的产品数据");
return;
}
let selectData = this.multipleUdiSelection;
let uuids = [];
selectData.forEach(item => {
uuids.push(item.uuid);
});
let params = {
uuids: uuids,
customerId: store.getters.customerId
}
addDiProduct(params).then((res) => {
if (res.code === 20000) {
this.$message.success("添加成功");
this.$emit("closeUdi", true);
}
}).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);
});
},
handleSelectionUdiChange(val) {
this.multipleUdiSelection = val;
},
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 = [];
});
},
},
components: {
selectDiDetail,
},
};
</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;
}
.query-form-item {
display: block !important;
margin-right: 10px;
margin-bottom: 5px;
}
</style>

@ -0,0 +1,298 @@
<template>
<div>
<el-card class="el-card">
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
<el-form-item class="query-form-item">
<el-input
v-model="filterQuery.code"
placeholder="产品编码/商品条码/医保编码" clearable
@keyup.enter.native="keyupErp_submit($event)"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-input
v-model="filterQuery.name" clearable
placeholder="产品名称"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-input
v-model="filterQuery.spec" clearable
placeholder="规格型号"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.checkStatus" placeholder="审核状态">
<el-option label="全部" value=""></el-option>
<el-option label="已审核" value="2"></el-option>
<el-option label="未审核" value="1"></el-option>
<el-option label="未通过" value="3"></el-option>
</el-select>
</el-form-item>
<el-form-item class="query-form-item">
<el-select
v-model="filterQuery.companyName"
filterable
remote
clearable="true"
reserve-keyword
placeholder="供应商"
:remote-method="findCompany"
:loading="loading"
>
<el-option
v-for="item in companyNames"
:key="item.companyName"
:label="item.companyName"
:value="item.companyName"
>
<span style="float: left">{{ item.companyName }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button>
</el-button-group>
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="list" style="width: 100%">
<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="审核状态" prop="status" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{ checkMap[scope.row.status] }}</span>
</template>
</el-table-column>
<el-table-column label="审核意见" prop="remark" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" fixed="right">
<template slot-scope="scope">
<el-button type="text" size="small" @click.native.stop="detailDialog(scope.row)"
>详情
</el-button>
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)"
>删除
</el-button>
<el-button type="text" size="small"
@click="checDialog(scope.row)"
>审核
</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="filterQuery.page"
></el-pagination>
</el-card>
<el-dialog
:close-on-click-modal="false"
:close-on-press-escape="false"
title="产品信息详情"
:visible.sync="thrProductsDetailVisible"
width="85%"
v-if="thrProductsDetailVisible"
>
<selectDiDetail :editQuery="thisData"></selectDiDetail>
</el-dialog>
<el-dialog
:close-on-click-modal="false"
:close-on-press-escape="false"
title="审核"
:visible.sync="checkVisible"
width="45%"
v-if="checkVisible">
<el-form>
<el-form-item>
审核意见
<el-input type="text" v-model="remark" style="width: 50%" placeholder="请输入审核意见"></el-input>
</el-form-item>
<el-form-item>
<el-button @click="checkVisible = false">取消</el-button>
<el-button type="primary" @click="checkPass(2)"></el-button>
<el-button type="primary" @click="checkPass(3)"></el-button>
</el-form-item>
</el-form>
</el-dialog>
</div>
</template>
<script>
import {getThrDiProducts, delThrDiProducts, getDiProductDetail, updateDiProduct} from "@/api/thrsys/thrProductsAddDi";
import selectDiDetail from "../basic/SelectDIDetailDialog"
import ThrProductsAdd from "@/views/thrsys/ThrProductsAdd";
import {filterCustomers} from "@/api/auth/customer";
export default {
data() {
return {
filterQuery: {
code: null,
name: "",
spec: null,
registerNo: null,
manufactory: null,
companyName: null,
supId: null,
page: 1,
limit: 20,
},
total: 0,
list: [],
uploadFileUrl: null,
fileList: [],
checkVisible: false,
newType: 1,
thrProductsDetailVisible: false,
thisData: null,
loading: false,
checkMap: {
1: "未审核",
2: "已审核",
3: "未通过",
},
companyNames: [],
curRow: null,
remark: null
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
code: null,
spec: null,
registerNo: null,
manufactory: null,
name: "",
companyName: null,
page: 1,
limit: 20,
};
this.getList();
},
checDialog(row) {
this.checkVisible = true;
this.curRow = row;
},
search() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
this.loading = true;
getThrDiProducts(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;
});
},
deleteDialog(row) {
this.$confirm("此操作将永久删除该产品信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let dQuery = {
id: row.id,
};
delThrDiProducts(dQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("删除成功");
this.getList();
} else {
this.$message.success(response.message);
}
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {
});
},
detailDialog(row) {
let param = {uuid: row.uuid};
getDiProductDetail(param).then((res) => {
if (res.code === 20000) {
this.thisData = res.data;
this.thrProductsDetailVisible = true;
}
})
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
closeAddDialog() {
this.addProductVisible = false;
Object.keys(this.newProductData).forEach(key => this.newProductData[key] = null);
},
checkPass(val) {
let query = {
id: this.curRow.id,
status: val,
uuid: this.curRow.uuid,
customerId: this.curRow.customerId,
remark: this.remark
}
updateDiProduct(query).then((res) => {
if (res.code === 20000) {
this.getList();
this.checkVisible = false;
this.$message.success("操作成功");
} else {
this.$message.error(res.message);
}
}).catch((error) => {
this.$message.error(error.message);
})
},
findCompany(query) {
this.companyNames = [];
let cQuery = {
key: query,
customerName: query
};
filterCustomers(cQuery).then((res) => {
this.companyNames = res.data.list || [];
}).catch((error) => {
this.companyNames = [];
});
},
},
components: {
ThrProductsAdd, selectDiDetail
},
mounted() {
},
created() {
this.getList();
},
};
</script>

@ -0,0 +1,284 @@
<template>
<div>
<el-card class="el-card">
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
<el-form-item class="query-form-item">
<el-input
v-model="filterQuery.code"
placeholder="产品编码/商品条码/医保编码" clearable
@keyup.enter.native="keyupErp_submit($event)"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-input
v-model="filterQuery.name" clearable
placeholder="产品名称"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-input
v-model="filterQuery.spec" clearable
placeholder="规格型号"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-input
v-model="filterQuery.registerNo" clearable
placeholder="注册/备案凭证"
></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.checkStatus" placeholder="审核状态">
<el-option label="全部" value=""></el-option>
<el-option label="已审核" value="2"></el-option>
<el-option label="未审核" value="1"></el-option>
<el-option label="未通过" value="3"></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button>
<el-button type="primary" @click="addDiProductVisible=true"></el-button>
</el-button-group>
</el-form-item>
</el-form>
<el-table
:data="list"
style="width: 100%"
v-loading="loading"
highlight-current-row="true"
>
<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="审核状态" prop="status" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{ checkMap[scope.row.status] }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click="detail(scope.row)"
>详情
</el-button>
<el-button
type="text"
size="small"
@click="deleteProduct(scope.row.id)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
:current-page="filterQuery.page"
></el-pagination>
</el-card>
<el-dialog
title="添加DI器械信息"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="addDiProductVisible"
width="85%"
append-to-body
v-if="addDiProductVisible"
>
<thrAddDiProductSelectUdi
:closeDialog="closeDialog"
:relId="relId"
:isImportUdi="isImportUdi"
:data="thisData"
@closeUdi="closeUdi"
>
</thrAddDiProductSelectUdi>
</el-dialog>
<el-dialog
title="器械信息详情"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="detailDialog"
width="65%"
append-to-body
v-if="detailDialog"
>
<selectDiDetail :editQuery="diDetails">
</selectDiDetail>
</el-dialog>
</div>
</template>
<script>
import {getThrDiProducts, delThrDiProducts, getDiProductDetail} from "@/api/thrsys/thrProductsAddDi";
import thrAddDiProductSelectUdi from "@/views/thrsys/ThrAddDiProductSelectUdi";
import selectDiDetail from "../basic/SelectDIDetailDialog"
export default {
data() {
return {
filterQuery: {
code: null,
name: null,
spec: null,
registerNo: null,
manufactory: null,
checkStatus: null,
page: 1,
limit: 20,
},
total: 0,
thirdSys: [],
thirdSysDetail: null,
list: [],
addDiProductVisible: false,
checkVisible: false,
newType: 2,
thrProductsDetailVisible: false,
isImportUdi: false,
relId: null,
thisData: {
nameCode: null,
cpmctymc: null,
ggxh: null
},
loading: false,
checkMap: {
1: "未审核",
2: "已审核",
3: "未通过",
},
curRow: null,
diDetails: null,
detailDialog: false
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
code: null,
spec: null,
registerNo: null,
manufactory: null,
checkStatus: null,
name: null,
page: 1,
limit: 20,
};
this.getList();
},
search() {
this.filterQuery.page = 1;
this.getList();
},
checDialog(row) {
this.checkVisible = true;
this.curRow = row;
},
getList() {
this.loading = true;
getThrDiProducts(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;
});
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
detail(row) {
let query = {uuid: row.uuid};
getDiProductDetail(query).then((res) => {
if (res.code === 20000) {
this.diDetails = res.data;
this.detailDialog = true;
} else {
this.$message.error("参数错误");
}
})
},
deleteProduct(id) {
let query = {
id: id
};
delThrDiProducts(query).then((res) => {
if (res.code === 20000) {
this.$message.success("删除成功");
this.getList();
} else {
this.$message.error("删除失败")
}
})
},
closeDialog() {
this.selectErpDialogVisible = false;
this.selectLocalVisible = false;
this.selectVersionVisible = false;
},
closeUdi(val) {
this.addDiProductVisible = false;
if (val) {
this.getList();
}
},
},
components: {
thrAddDiProductSelectUdi, selectDiDetail
},
mounted() {
},
created() {
this.getList();
},
};
</script>

@ -66,6 +66,27 @@
<!-- placeholder="生产厂家"--> <!-- placeholder="生产厂家"-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item class="query-form-item">
<el-select
v-model="filterQuery.companyName"
filterable
remote
clearable="true"
reserve-keyword
placeholder="供应商"
:remote-method="findCompany"
:loading="loading"
>
<el-option
v-for="item in companyNames"
:key="item.companyName"
:label="item.companyName"
:value="item.companyName"
>
<span style="float: left">{{ item.companyName }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange"> <el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统" @change="thirdSysChange">
<el-option <el-option
@ -100,6 +121,7 @@
<span>{{ checkMap[scope.row.checkStatus] }}</span> <span>{{ checkMap[scope.row.checkStatus] }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="审核意见" prop="remark" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" fixed="right"> <el-table-column label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click.native.stop="detailDialog(scope.row)" <el-button type="text" size="small" @click.native.stop="detailDialog(scope.row)"
@ -112,7 +134,6 @@
<el-button type="text" size="small" <el-button type="text" size="small"
@click="checDialog(scope.row)" @click="checDialog(scope.row)"
>审核 >审核
</el-button> </el-button>
</template> </template>
@ -145,9 +166,17 @@
:visible.sync="checkVisible" :visible.sync="checkVisible"
width="45%" width="45%"
v-if="checkVisible"> v-if="checkVisible">
<el-button @click="checkVisible = false">取消</el-button> <el-form>
<el-button type="primary" @click="checkPass(2)"></el-button> <el-form-item>
<el-button type="primary" @click="checkPass(3)"></el-button> 审核意见 <el-input type="text" v-model="remark" style="width: 50%" placeholder="请输入审核意见"></el-input>
</el-form-item>
<el-form-item>
<el-button @click="checkVisible = false">取消</el-button>
<el-button type="primary" @click="checkPass(2)"></el-button>
<el-button type="primary" @click="checkPass(3)"></el-button>
</el-form-item>
</el-form>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -158,6 +187,7 @@ import {selectIp} from "../../api/param/systemParamConfig";
import thrProductsDetail from "./ThrProductsDetail"; import thrProductsDetail from "./ThrProductsDetail";
import ThrProductsAdd from "@/views/thrsys/ThrProductsAdd"; import ThrProductsAdd from "@/views/thrsys/ThrProductsAdd";
import {getBasicUnitMaintains2} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains2} from "@/api/basic/basicUnitMaintain";
import {filterCustomers} from "@/api/auth/customer";
export default { export default {
data() { data() {
@ -169,6 +199,7 @@ export default {
registerNo: null, registerNo: null,
manufactory: null, manufactory: null,
thirdSys: "", thirdSys: "",
companyName: null,
supId:null, supId:null,
page: 1, page: 1,
limit: 20, limit: 20,
@ -193,7 +224,9 @@ export default {
3: "未通过", 3: "未通过",
}, },
fromOptions: [], fromOptions: [],
companyNames: [],
curRow: null, curRow: null,
remark: null
}; };
}, },
@ -208,6 +241,7 @@ export default {
registerNo: null, registerNo: null,
manufactory: null, manufactory: null,
name: "", name: "",
companyName: null,
thirdSys: this.thirdSys[0].thirdId, thirdSys: this.thirdSys[0].thirdId,
page: 1, page: 1,
limit: 20, limit: 20,
@ -344,7 +378,8 @@ export default {
checkPass(val) { checkPass(val) {
let query = { let query = {
id: this.curRow.id, id: this.curRow.id,
checkStatus: val checkStatus: val,
remark: this.remark
} }
updateProduct(query).then((res) => { updateProduct(query).then((res) => {
if (res.code == 20000) { if (res.code == 20000) {
@ -370,6 +405,18 @@ export default {
this.fromOptions = []; this.fromOptions = [];
}) })
}, },
findCompany(query) {
this.companyNames = [];
let cQuery = {
key: query,
customerName: query
};
filterCustomers(cQuery).then((res) => {
this.companyNames = res.data.list || [];
}).catch((error) => {
this.companyNames = [];
});
},
}, },
components: { components: {
thrProductsDetail, ThrProductsAdd thrProductsDetail, ThrProductsAdd

Loading…
Cancel
Save