20240912_adapter_z
wangwei 8 months ago
parent ee1532a61c
commit b6cfa3023a

@ -0,0 +1,58 @@
import axios from "../../utils/request";
export function getAll(query) {
return axios({
url: "/udiwms/thrInsFee/material/filter",
method: "get",
params: query
});
}
export function deleteMaterial(query) {
return axios({
url: "/udiwms/thrInsFee/material/deleteMaterial",
method: "post",
data: query
});
}
//获取中西药列表
export function chDrugList(query) {
return axios({
url: "/udiwms/thrInsFee/chDrug/filter",
method: "get",
params: query
});
}
export function deleteChDrug(query) {
return axios({
url: "/udiwms/thrInsFee/material/deleteChDrug",
method: "post",
data: query
});
}
//获取中药饮品List
export function drugList(query) {
return axios({
url: "/udiwms/thrInsFee/drug/filter",
method: "get",
params: query
});
}
//删除中药饮品
export function deleteDrug(query) {
return axios({
url: "/udiwms/thrInsFee/material/deleteDrug",
method: "post",
data: query
});
}

@ -0,0 +1,118 @@
<template>
<div>
<el-form :model="filterQuery" v-show="showSearch" label-width="auto">
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="药品编码:" class="query-form-item">
<el-input v-model="filterQuery.nameCode"
placeholder="请输入药品编码"
clearable
></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="药品通用名:" class="query-form-item">
<el-input
clearable
v-model="filterQuery.cpmctymc"
placeholder="请输入药品通用名"
></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="医保编码:" class="query-form-item">
<el-input
clearable
v-model="filterQuery.ybbm"
placeholder="请输入医保编码"
></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="批准文号:" class="query-form-item">
<el-input
clearable
v-model="filterQuery.zczbhhzbapzbh"
placeholder="请输入批准文号"
></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="生产企业:" class="query-form-item">
<el-input
clearable
v-model="filterQuery.manufactory"
placeholder="请输入生产企业"
></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="药品描述:" class="query-form-item">
<el-input
clearable
v-model="filterQuery.cpms"
placeholder="请输入药品描述"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-divider/>
</el-form>
<div style="text-align: right;">
<el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="chooseDrug"></el-button>
</el-button-group>
</div>
<el-table v-loading="loading" :data="list" style="width: 100%;margin-top: 20px" :row-style="{height: '32px' }"
>
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column type="index" label="序号"></el-table-column>
<el-table-column label="药品编码" prop="nameCode" width="90"></el-table-column>
<el-table-column label="药品通用名称" prop="cpmctymc" width="100"></el-table-column>
<el-table-column label="包装规格" prop="packagingSpec" width="90"></el-table-column>
<el-table-column label="包装单位" prop="prepnUnit" width="90"></el-table-column>
<el-table-column label="制剂规格" prop="prepnSpec" width="90"></el-table-column>
<el-table-column label="制剂单位" prop="prepnUnit" width="90"></el-table-column>
<el-table-column label="批准文号" prop="approvalNum" width="90"></el-table-column>
<el-table-column label="生产企业" prop="manufacturerName" width="90"></el-table-column>
<el-table-column label="药品类型" prop="manufactory" width="90"></el-table-column>
<el-table-column label="包装比例" prop="packRatio" width="100"></el-table-column>
<el-table-column label="包装级别" prop="packLevel" width="120"></el-table-column>
</el-table>
</div>
</template>
<script>
export default {
data() {
return {
showSearch: true,
filterQuery: {},
list: [
{
nameCode: '152321456',
}
]
}
},
methods:{
hideSearch() {
this.showSearch = !this.showSearch;
},
}
}
</script>
<style scoped>
</style>

@ -0,0 +1,569 @@
<template>
<div>
<el-form :model="newProductData" :rules="formRules" label-width="120px" ref="dataForm">
<el-collapse v-model="activeNames">
<el-collapse-item name="1">
<template slot="title">
<p class="form-title">药品层级</p>
</template>
<el-table
v-loading="loading"
:data="detailList"
style="width: 100%;"
border
key="3"
@current-change="handleDetail"
>
<el-table-column label="药品标识" prop="nameCode" show-overflow-tooltip>
<template slot-scope="scope">
<el-input v-model="productData.nameCode"
placeholder="请输入药品标识" style="width: 100%"
></el-input>
</template>
</el-table-column>
<el-table-column label="包装级别" prop="packLevel" show-overflow-tooltip>
<template slot-scope="scope">
<el-input v-model="productData.packLevel"
placeholder="请输入包装级别" style="width: 100%"
></el-input>
</template>
</el-table-column>
<el-table-column label="包装单位" prop="packUnit" show-overflow-tooltip>
<template slot-scope="scope">
<el-input v-model="productData.packUnit"
placeholder="请输入包装单位" style="width: 100%"
></el-input>
</template>
</el-table-column>
<el-table-column label="包含下级数量" prop="bhxjsl" show-overflow-tooltip>
<template slot-scope="scope">
<el-input v-model="productData.bhxjsl"
type="number"
placeholder="请输入包含下级数量" style="width: 100%"
></el-input>
</template>
</el-table-column>
<el-table-column label="操作" width="180px">
<template slot-scope="scope">
<el-button type="text" @click.native="save(productData)">保存</el-button>
<el-button type="text">删除</el-button>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item name="2">
<template slot="title">
<p class="form-title">基本信息</p>
</template>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品通用名称:" prop="cpmctymc">
<el-input style="width: 90%" size="small" placeholder="请输入药品通用名称"
v-model.trim="newProductData.cpmctymc"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="商品名称:" prop="spmc">
<el-input style="width: 90%" size="small" placeholder="请输入商品名称"
v-model.trim="newProductData.spmc"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="包装规格:" prop="bzgg">
<el-input style="width: 90%" size="small" placeholder="请输入包装规格"
v-model.trim="newProductData.bzgg"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="包装单位:" prop="packUnit">
<el-input style="width: 90%" size="small" placeholder="请输入包装单位"
v-model.trim="newProductData.packUnit"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="制剂规格:" prop="prepnSpec">
<el-input style="width: 90%" size="small" placeholder="请输入制剂规格"
v-model.trim="newProductData.prepnSpec"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="制剂单位:" prop="prepnUnit">
<el-input style="width: 90%" size="small" placeholder="请输入制剂单位"
v-model.trim="newProductData.prepnUnit"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="包装材质:" prop="packMatrial">
<el-input style="width: 90%" size="small" placeholder="请输入包装材质"
v-model.trim="newProductData.packMatrial"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="包装比例:" prop="packRatio">
<el-input style="width: 90%" size="small" placeholder="请输入制剂单位"
v-model.trim="newProductData.packRatio"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="批准文号:" prop="registerNo">
<el-input style="width: 90%" size="small" placeholder="请输入批准文号"
v-model.trim="newProductData.registerNo"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="生产企业:" prop="manufactory">
<el-input style="width: 90%" size="small" placeholder="请输入生产企业"
v-model.trim="newProductData.manufactory"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品类型:" prop="physicType">
<el-select v-model="newProductData.physicType" style="width: 90%" placeholder="选择药品类型" clearable>
<el-option label="特殊药品原料药" :value="1"></el-option>
<el-option label="特殊药品制剂" :value="2"></el-option>
<el-option label="普通药品" :value="3"></el-option>
<el-option label="未分类" :value="9"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="11" type="flex">
<el-form-item label="药品分类:" prop="majorType">
<el-select v-model="newProductData.majorType" style="width: 90%" placeholder="选择药品分类" clearable>
<el-option label="中药" :value="1"></el-option>
<el-option label="化学药" :value="2"></el-option>
<el-option label="生物制品" :value="3"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="医保编码:" prop="ybbm">
<el-input style="width: 90%" size="small" placeholder="请输入医保编码"
v-model.trim="newProductData.ybbm"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="医保分类:" prop="medicareType">
<el-select v-model="newProductData.medicareType" style="width: 90%" placeholder="选择医保分类"
clearable
>
<el-option label="甲类" :value="1"></el-option>
<el-option label="乙类" :value="2"></el-option>
<el-option label="丙类" :value="3"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品价格:" prop="price">
<el-input
style="width: 90%"
size="small"
placeholder="请输入药品价格"
type="number"
:precision="2"
:min="0"
v-model.number="newProductData.price"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="有效期:" prop="indate">
<el-date-picker
style="width: 90%"
v-model="newProductData.indate"
type="datetime"
format="yyyy 年 MM 月 dd 日 HH 点 mm 分 ss 秒"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择有效期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="存储条件:" prop="ylqxzcrbarmc">
<el-input style="width: 90%" size="small" placeholder="请输入存储条件"
v-model.trim="newProductData.storageCondition"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="运输条件:" prop="transportCondition">
<el-input style="width: 90%" size="small" placeholder="请输入运输条件"
v-model.trim="newProductData.transportCondition"
></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row type="flex">-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="产品类别:" prop="cplb">-->
<!-- <el-input style="width: 90%" size="small" placeholder="请输入产品类别" v-model.trim="newProductData.cplb"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="分类编码:" prop="flbm">-->
<!-- <el-select-->
<!-- size="small"-->
<!-- v-model="newProductData.flbm"-->
<!-- filterable-->
<!-- remote-->
<!-- clearable="true"-->
<!-- style="width: 90%"-->
<!-- reserve-keyword-->
<!-- placeholder="请选择"-->
<!-- :loading="loading"-->
<!-- @change="classifyChange()"-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in classifyList"-->
<!-- :key="item.code"-->
<!-- :label="item.name"-->
<!-- :value="item.code">-->
<!-- <span>{{ item.code }}</span>-->
<!-- <span>{{ item.name }}</span>-->
<!-- </el-option>-->
<!-- </el-select>-->
<!--&lt;!&ndash; <el-input style="width: 90%" size="small" placeholder="请输入分类编码" v-model.trim="newProductData.flbm"></el-input>&ndash;&gt;-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!--<el-row type="flex">-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="商品条码:" prop="sptm">-->
<!-- <el-input style="width: 90%" size="small" placeholder="请输入商品条码" v-model.trim="newProductData.sptm"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="医保编码:" prop="ybbm">-->
<!-- <el-input style="width: 90%" size="small" placeholder="请输入医保编码" v-model.trim="newProductData.ybbm" v-debounce-input:500ms="getYbHcData" ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!--</el-row>-->
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="统一社会信用号:" prop="tyshxydm">
<el-input style="width: 90%" size="small" placeholder="请输入统一社会信用号"
v-model.trim="newProductData.tyshxydm"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药品状态:" prop="majorStatus">
<el-select v-model="newProductData.majorStatus" style="width: 90%" placeholder="选择药品状态" clearable>
<el-option label="停用" :value="0"></el-option>
<el-option label="在用" :value="1"></el-option>
</el-select>
</el-form-item>
</el-col>
<!--<el-col :span="11" class="el-col">-->
<!-- <el-form-item label="产品描述:" prop="cpms">-->
<!-- <el-input style="width: 90%" type="textarea" size="mini" rows="1" placeholder="请输入产品描述"-->
<!-- v-model.trim="newProductData.cpms"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!--</el-col>-->
</el-row>
<el-row type="flex">
<el-col :span="23" class="el-col">
<el-form-item label="产品描述:" prop="cpms">
<el-input style="width: 92%" type="textarea" size="mini" rows="3" placeholder="请输入产品描述"
v-model.trim="newProductData.cpms"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-collapse-item>
<el-collapse-item name="3">
<template slot="title">
<p class="form-title">高级设置</p>
</template>
<el-row type="flex">
<el-col :span="11" class="el-col">
<span>参数</span>
</el-col>
<el-divider direction="vertical"></el-divider>
<el-col :span="11" class="el-col">
<span>设置</span>
</el-col>
<el-divider direction="vertical"></el-divider>
<el-col :span="11" class="el-col">
<span>参数设置说明</span>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<span class="sptext">是否禁用</span>
</el-col>
<el-divider direction="vertical"></el-divider>
<el-col :span="11" class="el-col">
<!--<el-select v-model="newProductData.status" style="width: 65%" placeholder="状态" clearable>-->
<!-- <el-option label="是" :value=1></el-option>-->
<!-- <el-option label="否" :value=0></el-option>-->
<!--</el-select>-->
<el-switch
v-model="status"
active-color="#13ce66"
inactive-color="#ff4949"
>
</el-switch>
</el-col>
<el-divider direction="vertical"></el-divider>
<el-col :span="11" class="el-col">
<span class="sptext">禁用后该药品将无法扫码使用</span>
</el-col>
</el-row>
</el-collapse-item>
</el-collapse>
</el-form>
<div style="text-align: center; margin-top: 20px;">
<el-button type="primary" @click="saveNewProduct" :loading="saveLoading">提交</el-button>
<el-button type="primary" @click="closeAddDialog"></el-button>
</div>
</div>
</template>
<script>
import { getYbHcflDetail, addProduct, addDrug, updatetDrug } from '@/api/basic/product/udiRelevance'
import { filterClassify } from '@/api/purchase/classifyCode'
export default {
name: 'drugAdd',
props: {
closeDialog: {
type: Function,
required: true
},
rowData: {
type: Object,
required: false
},
type: {
type: Object,
required: false
}
},
data() {
return {
ybHcflDetail: {},
productData: {},
newProductData: {
cpmctymc: null,
bzgg: null,
spmc: null,
measname: null,
manufactory: null,
ybbm: null,
cpms: null,
productsType: 2,
//
status: false
},
thirdSys: [],
classifyList: [],
saveLoading: false,
activeNames: ['1', '2'],
formRules: {
cpmctymc: [
{ required: true, message: '请输入药品通用名', trigger: 'blur' }
],
prepnSpec: [
{ required: true, message: '请输入制剂规格', trigger: 'blur' }
],
packUnit: [
{ required: true, message: '请输入包装单位', trigger: 'blur' }
],
prepnUnit: [
{ required: true, message: '请输入制剂单位', trigger: 'blur' }
],
packRatio: [
{ required: true, message: '请输入包装比例', trigger: 'blur' }
],
packMatrial: [
{ required: true, message: '请输入包装材质', trigger: 'blur' }
],
registerNo: [
{ required: true, message: '请输入批准文号', trigger: 'blur' }
],
manufactory: [
{ required: true, message: '生产企业不能为空', trigger: 'blur' }
],
physicType: [
{ required: true, message: '药品类型不能为空', trigger: 'blur' }
],
ybbm: [
{ required: true, message: '医保编码不能为空', trigger: 'blur' }
],
price: [
{ required: true, message: '药品价格不能为空', trigger: 'blur' }
]
},
detailList: [{}],
status: false
}
},
methods: {
classifyChange() {
this.classifyChange(this.newProductData.flbm)
let item = this.classifyList.find(item => item.code == this.newProductData.flbm)
if (item != null) this.newProductData.requireScanCode = item.requireScanCode
},
classifySearch(key) {
let query = {
key: key
}
filterClassify(query)
.then(response => {
this.loading = false
this.classifyList = response.data.list || []
})
.catch(() => {
this.loading = false
this.classifyList = []
})
},
getYbHcData() {
let query = {
specificationCode: this.newProductData.ybbm
}
getYbHcflDetail(query).then((response) => {
if (response.code == 20000) {
this.ybHcflDetail = response.data
this.newProductData.catalogname1 = this.ybHcflDetail.catalogname1
this.newProductData.catalogname2 = this.ybHcflDetail.catalogname2
this.newProductData.catalogname3 = this.ybHcflDetail.catalogname3
this.newProductData.matrial = this.ybHcflDetail.matrial
this.$forceUpdate()
} else {
this.newProductData.catalogname1 = ''
this.newProductData.catalogname2 = ''
this.newProductData.catalogname3 = ''
this.newProductData.matrial = ''
this.$forceUpdate()
}
}).catch(() => {
})
},
saveNewProduct() {
this.addProductDialogVisible = false
if (this.type == 1) {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
if (this.status) {
this.newProductData.requireScanCode = 1
} else {
this.newProductData.requireScanCode = 0
}
this.saveLoading = true
addDrug(this.newProductData).then((res) => {
this.saveLoading = false
if (res.code == 20000) {
this.$message.success('添加成功')
//
this.closeDialog()
} else {
this.$message.error(res.message)
}
}).catch((error) => {
this.saveLoading = false
this.$message.error(error.message)
})
}
})
} else {
if (this.status) {
this.newProductData.requireScanCode = 1
} else {
this.newProductData.requireScanCode = 0
}
this.newProductData.uuid = this.rowData.uuid
this.newProductData.nameCode = this.rowData.nameCode
updatetDrug(this.newProductData).then(res => {
this.saveLoading = false
if (res.code == 20000) {
//
this.closeDialog()
this.$message.success('成功')
} else {
this.$message.error('失败')
}
})
}
},
closeAddDialog() {
this.closeDialog()
},
save(row) {
}
},
created() {
if (this.rowData != null) {
this.newProductData = this.rowData
this.newProductData.cpmctymc = this.rowData.cpmctymc
this.newProductData.registerNo = this.rowData.zczbhhzbapzbh
if (this.rowData.requireScanCode == 1) {
this.status = true
} else {
this.status = false
}
}
},
directives: {
'debounce-input': {
inserted(el, binding) {
let timeout
el.addEventListener('input', () => {
clearTimeout(timeout)
timeout = setTimeout(() => {
binding.value()
}, parseInt(binding.arg) || 300)
})
}
}
}
}
</script>
<style scoped>
.form-title {
font-size: 16px;
font-family: Noto Sans SC;
font-weight: bold;
color: #303133;
padding-bottom: 17px;
padding-top: 17px;
}
</style>

@ -0,0 +1,317 @@
<template>
<div>
<el-card>
<el-form :model="filterQuery" v-show="showSearch" label-width="auto">
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="药品编码:" class="query-form-item">
<el-input v-model="filterQuery.nameCode"
placeholder="请输入药品编码"
clearable
@keyup.enter.native="keyup_submit($event)"
></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="药品通用名:" class="query-form-item">
<el-input
clearable
v-model="filterQuery.cpmctymc"
placeholder="请输入药品通用名"
></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="医保编码:" class="query-form-item">
<el-input
clearable
v-model="filterQuery.ybbm"
placeholder="请输入医保编码"
></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="批准文号:" class="query-form-item">
<el-input
clearable
v-model="filterQuery.zczbhhzbapzbh"
placeholder="请输入批准文号"
></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="8">-->
<!-- <el-form-item label="医疗器械注册人:" class="query-form-item">-->
<!-- <el-input-->
<!-- clearable-->
<!-- v-model="filterQuery.ylqxzcrbarmc"-->
<!-- placeholder="请输入医疗器械注册人"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="8">
<el-form-item label="生产企业:" class="query-form-item">
<el-input
clearable
v-model="filterQuery.manufactory"
placeholder="请输入生产企业"
></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="药品描述:" class="query-form-item">
<el-input
clearable
v-model="filterQuery.cpms"
placeholder="请输入药品描述"
></el-input>
</el-form-item>
</el-col>
<!--<el-col :span="8">-->
<!-- <el-form-item label="是否禁用:" class="query-form-item">-->
<!-- <el-select v-model="filterQuery.isDisable" clearable>-->
<!-- <el-option label="是" :value=true></el-option>-->
<!-- <el-option label="否" :value=false></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!--</el-col>-->
</el-row>
<el-divider/>
</el-form>
<div class="top-right-btn">
<el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="chooseDrug"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="addDrug"></el-button>
</el-button-group>
</div>
<el-table v-loading="loading" :data="list" style="width: 100%" :row-style="{height: '32px' }"
>
<el-table-column type="index" label="序号"></el-table-column>
<el-table-column label="药品编码" prop="nameCode" width="90"></el-table-column>
<el-table-column label="药品通用名称" prop="cpmctymc" width="100"></el-table-column>
<el-table-column label="包装规格" prop="bzgg" width="90"></el-table-column>
<!--<el-table-column label="规格型号" prop="ggxh" width="90"></el-table-column>-->
<el-table-column label="包装单位" prop="prepnUnit" width="90"></el-table-column>
<el-table-column label="制剂规格" prop="prepnSpec" width="90"></el-table-column>
<el-table-column label="制剂单位" prop="prepnUnit" width="90"></el-table-column>
<el-table-column label="批准文号" prop="zczbhhzbapzbh" width="90"></el-table-column>
<el-table-column label="生产企业" prop="manufactory" width="90"></el-table-column>
<el-table-column label="收费项目编码" prop="remake" width="100"></el-table-column>
<el-table-column label="医保编码" prop="ybbm" width="90"></el-table-column>
<el-table-column label="药品状态" prop="majorStatus" width="90">
<template slot-scope="scope">
<el-tag :type="(scope.row.majorStatus) | statusFilterType">
{{ statusMap[scope.row.majorStatus] }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="160">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native.stop="edit(scope.row)"
>对照
</el-button>
<el-button
type="text"
size="small"
@click.native.stop="edit(scope.row)"
>详情
</el-button>
<el-button
type="text"
size="small"
@click.native.stop="editDrug(scope.row)"
>编辑
</el-button>
<el-button
type="text"
size="small"
@click.native.stop="deleteDrug(scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<el-dialog
:title="fromMap[fromName]"
:visible.sync="addDrugVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="85%"
v-if="addDrugVisible"
>
<drugAdd
:closeDialog="closeDialog"
:rowData="rowData"
:type="type"
>
</drugAdd>
</el-dialog>
<el-dialog
title="选入-药品信息"
:visible.sync="chooseDrugVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="70%"
v-if="chooseDrugVisible"
>
<chooseDrug
>
</chooseDrug>
</el-dialog>
</el-card>
</div>
</template>
<script>
import {
getUdiInfos,
deletetUdiInfos,
updatetUdiInfos,
updatetSingleUdiInfo,
updateErpProduct,
uploadSmp,
thirdSysDetail,
removeRl,
sysFilterOptimize,
spcombie,
lockStatus,
removeDiRl,
disableUdi
} from '@/api/basic/product/udiRelevance'
import drugAdd from '@/views/basic/product/drug/drugAdd'
import chooseDrug from '@/views/basic/product/drug/chooseDrug'
export default {
components: {drugAdd,chooseDrug},
name: 'drugMaintain',
data() {
return {
showSearch: true,
filterBadInv: true,
query: {},
list: [],
filterQuery: {
productsType: 2,
page: 1,
limit: 20,
addType: 1
},
addDrugVisible: false,
chooseDrugVisible: false,
statusMap: {
0: "停用",
1: "在用"
},
fromName: '',
rowData: {},
type: null,
fromMap: {
'add' : '新增-药品信息',
'edit' : '编辑-药品信息',
}
}
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
productsType: 2,
page: 1,
limit: 20,
addType: 1
};
this.getList();
},
hideSearch() {
this.showSearch = !this.showSearch;
},
onSubmit() {
this.filterQuery.page = 1;
this.getList()
},
addDrug(){
this.fromName = 'add'
this.type = 1
this.rowData = null
this.addDrugVisible = true
},
chooseDrug(){
this.chooseDrugVisible = true
},
getList() {
getUdiInfos(this.filterQuery)
.then((response) => {
this.loading = false
this.list = response.data.list || []
this.total = response.data.total || 0
})
.catch(() => {
this.loading = false
this.list = []
this.total = 0
})
},
deleteDrug(row){
this.$confirm("此操作将永久删除该药品信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
let tquery = {
id: row.id + "",
};
deletetUdiInfos(tquery).then(res => {
if (res.code != 20000){
this.$message.error("删除错误")
this.getList()
}else {
this.$message.success("删除成功!")
this.getList()
}
}).catch(() => {
this.$message.error("删除错误")
})
})
},
editDrug(row){
this.fromName = 'edit'
this.rowData = row
this.type = 2
this.addDrugVisible = true;
},
closeDialog(){
this.addDrugVisible = false;
}
},
filters: {
statusFilterType(status) {
const statusMap = {
0: "info",
1: "success",
};
return statusMap[status];
}
,
},
created() {
this.getList()
}
}
</script>
<style scoped>
</style>

@ -0,0 +1,378 @@
<template>
<div>
<el-card class="el-card">
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" label-width="100px">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList">
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`" :key="item.id"
>
<el-input
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable
></el-input>
</el-form-item>
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`"
>
<el-select v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable
>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`"
>
<el-select
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable
>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`"
>
<el-date-picker
v-model="filterQuery[item.columnName]"
:style="`width:${item.width+'px'}`"
value-format="yyyy-MM-dd"
:disabled="executeEval(null,item.disabledFuc,false)"
type="date"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
</template>
</el-row>
</el-form>
<div class="top-right-btn">
<el-button-group style="display:flex;">
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmitFind"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="newDistributionForm()" :loading="loading">
导入收费项目
</el-button>
<el-button type="primary" icon="el-icon-plus" @click="newDistributionForm()" :loading="loading">
下载收费项目
</el-button>
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row="true" border
@current-change="(row) => executeFuc(row,'0',tableObj.handleChangeFuc)"
:default-sort="defaultSort" @sort-change="handleSortChange"
>
<template v-for="(item, index) in tableHeader">
<el-table-column
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
type="index" :label="item.columnDesc"
></el-table-column>
<el-table-column
v-if="item.columnType == 'selection'"
type="selection"
:width="item.width"
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
></el-table-column>
<el-table-column
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}"
>{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-tag
:type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])"
>
<span>{{
item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
}}</span>
</el-tag>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:width="item.width"
:key="item.columnName"
fixed="right"
>
<template slot-scope="scope">
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
:type="buttonItem.type"
:size="buttonItem.size"
:style="buttonItem.style"
:key="buttonItem"
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
>{{ buttonItem.name }}
</el-button>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}"
>{{ scope.row[item.columnName] }}</span>
</template>
</el-table-column>
</template>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="getList"
></pagination>
</el-card>
<el-dialog
title="中药饮品详情"
:visible.sync="newSpDistributionVisible"
width="80%"
v-if="newSpDistributionVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<drugPiecesDetail
:rowData="rowData"
>
</drugPiecesDetail>
</el-dialog>
</div>
</template>
<script>
import { delReceive } from '@/api/thrsys/thrOrderReceive'
import {
getHead, executeFuc
} from '@/utils/customConfig'
import { drugList, deleteDrug } from '@/api/thrsys/medicalSupplies'
import drugPiecesDetail from './drugPiecesDetail'
export default {
data() {
return {
defaultSort: { prop: 'createTime', order: 'desc' },
showSearch: true,
filterQuery: {
medCatalogCode: '',
herbName: '',
page: 1,
limit: 10
},
total: 0,
tableHeader: [],
queryList: [],
fromList: [],
fList: [],
thirdSys: [],
thirdSysDetail: null,
busTypes: [],
originTypes: [],
list: [],
detailList: [],
uploadFileUrl: null,
fileList: [],
closeConfirm: false,
loading: false,
newSpDistributionVisible: false,
rowData: null,
}
},
methods: {
onReset() {
this.$router.push({
path: ''
})
this.filterQuery = {
medCatalogCode: '',
herbName: '',
page: 1,
limit: 10
}
this.getList()
},
onSubmitFind() {
this.filterQuery.page = 1
this.getList()
},
getList() {
drugList(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)
}
})
.catch(() => {
this.list = []
this.total = 0
})
},
handleDetail(_this,row) {
_this.rowData = row
_this.newSpDistributionVisible = true
},
hideSearch() {
this.showSearch = !this.showSearch
},
deleteClick(_this,row) {
_this.$confirm("此操作将永久删除该药品, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteDrug(row).then(res => {
if (res.code == 20000){
_this.$message.success("success")
_this.getList()
}else {
_this.$message.error("删除失败")
}
})
})
.catch(() => {
});
},
handleCurrentChange(val) {
this.filterQuery.page = val.page
this.getList()
},
closeDialog() {
this.newSpDistributionVisible = false
this.getList()
this.detailList = []
},
executeFuc(row, type, clickFuc, value) {
return executeFuc(this, row, type, clickFuc, value)
},
executeEval(row, expression, defaultRet) {
if (expression) {
return eval(expression)
}
return defaultRet
}
},
components: {
drugPiecesDetail
},
mounted() {
},
created() {
this.getList()
getHead('drugPieces.vue-1', '1').then((re) => {
//
this.tableHeader = re.data.tableList
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
console.log("kjkljlkjlkk",this.fromList)
})
}
}
</script>
<style scoped>
.itemTag {
float: left;
text-align: left;
margin-top: 10px;
width: 25%;
}
.text {
font-size: 13px;
font-family: "Microsoft YaHei";
}
.el-row {
display: flex;
flex-wrap: wrap;
}
.el-col {
border-radius: 4px;
flex-wrap: wrap;
}
</style>

@ -0,0 +1,540 @@
<template>
<div>
<el-form :model="filterQuery" label-width="120px" ref="dataForm">
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="医疗目录编码:" prop="medCatalogCode">
<el-input style="width: 90%" size="small" placeholder="医疗目录编码"
disabled
v-model.trim="filterQuery.medCatalogCode"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="单味药名称:" prop="herbName">
<el-input style="width: 90%" size="small" placeholder="单味药名称"
disabled
v-model.trim="filterQuery.herbName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="单复方标志:" prop="compFlag">
<el-input style="width: 90%" size="small" placeholder="单复方标志"
disabled
v-model.trim="filterQuery.compFlag"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="质量等级:" prop="qualityGrade">
<el-input style="width: 90%" size="small" placeholder="质量等级"
disabled
v-model.trim="filterQuery.qualityGrade"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="中草药年份:" prop="herbYear">
<el-input style="width: 90%" size="small" placeholder="中草药年份"
disabled
v-model.trim="filterQuery.herbYear"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药用部位:" prop="medPart">
<el-input style="width: 90%" size="small" placeholder="药用部位"
disabled
v-model.trim="filterQuery.medPart"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="安全计量:" prop="safeDosage">
<el-input style="width: 90%" size="small" placeholder="安全计量"
disabled
v-model.trim="filterQuery.safeDosage"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="常规用法:" prop="usualUsage">
<el-input style="width: 90%" size="small" placeholder="常规用法"
disabled
v-model.trim="filterQuery.usualUsage"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="性味:" prop="tasteNature">
<el-input style="width: 90%" size="small" placeholder="性味"
disabled
v-model.trim="filterQuery.tasteNature"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药品剂型:" prop="dosageForm">
<el-input style="width: 90%" size="small" placeholder="药品剂型"
disabled
v-model.trim="filterQuery.dosageForm"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="归经:" prop="meridianTropism">
<el-input style="width: 90%" size="small" placeholder="归经"
disabled
v-model.trim="filterQuery.meridianTropism"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="品种:" prop="variety">
<el-input style="width: 90%" size="small" placeholder="品种"
disabled
v-model.trim="filterQuery.variety"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="开始日期:" prop="startDate">
<el-input style="width: 90%" size="small" placeholder="开始日期"
disabled
v-model.trim="filterQuery.startDate"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="结束日期:" prop="endDate">
<el-input style="width: 90%" size="small" placeholder="结束日期"
disabled
v-model.trim="filterQuery.endDate"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="有效标志:" prop="activeMark">
<el-input style="width: 90%" size="small" placeholder="有效标志"
disabled
v-model.trim="filterQuery.activeMark"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="唯一记录号:" prop="uniqueRecordNum">
<el-input style="width: 90%" size="small" placeholder="唯一记录号"
disabled
v-model.trim="filterQuery.uniqueRecordNum"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="数据创建时间:" prop="dataCreateTime">
<el-input style="width: 90%" size="small" placeholder="数据创建时间"
disabled
v-model.trim="filterQuery.dataCreateTime"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="数据更新时间:" prop="dataUpdateTime">
<el-input style="width: 90%" size="small" placeholder="数据更新时间"
disabled
v-model.trim="filterQuery.dataUpdateTime"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<!--<el-col :span="11" class="el-col">-->
<!-- <el-form-item label="版本号:" prop="versionNum">-->
<!-- <el-input style="width: 90%" size="small" placeholder="版本号"-->
<!-- disabled-->
<!-- v-model.trim="filterQuery.versionNum"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!--</el-col>-->
<el-col :span="11" class="el-col">
<el-form-item label="药材名称:" prop="medName">
<el-input style="width: 90%" size="small" placeholder="药材名称"
disabled
v-model.trim="filterQuery.medName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="版本名称:" prop="versionName">
<el-input style="width: 90%" size="small" placeholder="版本名称"
disabled
v-model.trim="filterQuery.versionName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="功能主治:" prop="mainFunction">
<el-input style="width: 90%" size="small" placeholder="功能主治"
disabled
v-model.trim="filterQuery.mainFunction"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="炮制方法:" prop="processingMethod">
<el-input style="width: 90%" size="small" placeholder="炮制方法"
disabled
v-model.trim="filterQuery.processingMethod"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="功效分类:" prop="efficacyCategory">
<el-input style="width: 90%" size="small" placeholder="功效分类"
disabled
v-model.trim="filterQuery.efficacyCategory"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药材种来源:" prop="medSource">
<el-input style="width: 90%" size="small" placeholder="药材种来源"
disabled
v-model.trim="filterQuery.medSource"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="国家医保支付政策:" prop="nationalInsurancePolicy">
<el-input style="width: 90%" size="small" placeholder="国家医保支付政策"
disabled
v-model.trim="filterQuery.nationalInsurancePolicy"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="省级医保支付政策:" prop="provincialInsurancePolicy">
<el-input style="width: 90%" size="small" placeholder="省级医保支付政策"
disabled
v-model.trim="filterQuery.provincialInsurancePolicy"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="标准名称:" prop="standardName">
<el-input style="width: 90%" size="small" placeholder="标准名称"
disabled
v-model.trim="filterQuery.standardName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="标准页码:" prop="standardPage">
<el-input style="width: 90%" size="small" placeholder="标准页码"
disabled
v-model.trim="filterQuery.standardPage"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="标准电子档案:" prop="standardFile">
<el-input style="width: 90%" size="small" placeholder="标准电子档案"
disabled
v-model.trim="filterQuery.standardFile"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="下发标志:" prop="releaseMark">
<el-input style="width: 90%" size="small" placeholder="下发标志"
disabled
v-model.trim="filterQuery.releaseMark"
></el-input>
</el-form-item>
</el-col>
</el-row>
<!--<el-row type="flex">-->
<!-- <el-col :span="11" class="el-col">-->
<!-- <el-form-item label="传输数据ID:" prop="transferDataId">-->
<!-- <el-input style="width: 90%" size="small" placeholder="传输数据ID"-->
<!-- disabled-->
<!-- v-model.trim="filterQuery.transferDataId"-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!--</el-row>-->
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="生效时间:" prop="effectiveTime">
<el-input style="width: 90%" size="small" placeholder="生效时间"
disabled
v-model.trim="filterQuery.effectiveTime"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="失效时间:" prop="expiryTime">
<el-input style="width: 90%" size="small" placeholder="失效时间"
disabled
v-model.trim="filterQuery.expiryTime"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
import { delReceive } from '@/api/thrsys/thrOrderReceive'
import {
getHead, executeFuc
} from '@/utils/customConfig'
import { chDrugList, deleteChDrug } from '@/api/thrsys/medicalSupplies'
export default {
props: {
rowData: {
type: Object,
required: true,
},
},
data() {
return {
defaultSort: { prop: 'createTime', order: 'desc' },
showSearch: true,
filterQuery: {
medCatalogCode: '',
tradeName: '',
genericNum: '',
genericName: '',
page: 1,
limit: 10
},
invList: [],
formName: null,
formMap: {
add: '新增领用单据',
update: '编辑领用单据'
},
statusMap: {
1: '草稿',
2: '未审核',
3: '已审核',
4: '已拒绝'
},
total: 0,
tableHeader: [],
queryList: [],
fromList: [],
options: {
finCurInv: [],
finCorpList: []
},
thirdSys: [],
thirdSysDetail: null,
busTypes: [],
originTypes: [],
list: [],
detailList: [],
uploadFileUrl: null,
fileList: [],
uploadData: {
thirdSys: 'thirdId'
},
invCodebe: null,
closeConfirm: false,
loading: false,
actDateRange: [],
newSpDistributionVisible: false,
pickerOptions: {
shortcuts: [
{
text: '最近一周',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
picker.$emit('pick', [start, end])
}
},
{
text: '最近一个月',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
picker.$emit('pick', [start, end])
}
},
{
text: '最近三个月',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
picker.$emit('pick', [start, end])
}
}
]
},
productType: null
}
},
methods: {
onReset() {
this.$router.push({
path: ''
})
this.filterQuery = {
medCatalogCode: '',
tradeName: '',
genericNum: '',
genericName: '',
page: 1,
limit: 10
}
this.getList()
},
onSubmitFind() {
this.filterQuery.page = 1
this.getList()
},
getList() {
chDrugList(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)
}
})
.catch(() => {
this.list = []
this.total = 0
})
},
handleDetail(_this,row) {
_this.newSpDistributionVisible = true
},
hideSearch() {
this.showSearch = !this.showSearch
},
deleteClick(_this,row) {
_this.$confirm("此操作将永久删除该药品, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteChDrug(row).then(res => {
if (res.code == 20000){
_this.$message.success("success")
_this.getList()
}else {
_this.$message.error("删除失败")
}
})
})
.catch(() => {
});
},
handleCurrentChange(val) {
this.filterQuery.page = val.page
this.getList()
},
closeDialog() {
this.newSpDistributionVisible = false
this.getList()
this.detailList = []
},
executeFuc(row, type, clickFuc, value) {
return executeFuc(this, row, type, clickFuc, value)
},
executeEval(row, expression, defaultRet) {
if (expression) {
return eval(expression)
}
return defaultRet
}
},
components: {},
mounted() {
},
created() {
this.filterQuery = this.rowData
this.getList()
getHead('pharmaceuticals-1', '1').then((re) => {
//
console.log("res",re.data)
this.tableHeader = re.data.tableList
this.queryList = re.data.queryList;
})
}
}
</script>
<style scoped>
.itemTag {
float: left;
text-align: left;
margin-top: 10px;
width: 25%;
}
.text {
font-size: 13px;
font-family: "Microsoft YaHei";
}
.el-row {
display: flex;
flex-wrap: wrap;
}
.el-col {
border-radius: 4px;
flex-wrap: wrap;
}
</style>

@ -0,0 +1,446 @@
<template>
<div>
<el-card class="el-card">
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" label-width="100px">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList" >
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`" :key="item.id">
<el-input
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable
></el-input>
</el-form-item>
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-select
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
:picker-options="pickerOptions"
v-model="actDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)" :label="item.columnDesc+`:`">
<el-date-picker
v-model="filterQuery[item.columnName]"
:style="`width:${item.width+'px'}`"
value-format="yyyy-MM-dd"
:disabled="executeEval(null,item.disabledFuc,false)"
type="date"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
</template>
</el-row>
</el-form>
<div class="top-right-btn">
<el-button-group style="display:flex;">
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmitFind"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="newDistributionForm()" :loading="loading">
导入收费项目
</el-button>
<el-button type="primary" icon="el-icon-plus" @click="newDistributionForm()" :loading="loading">
下载收费项目
</el-button>
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row="true" border
@current-change="(row) => executeFuc(row,'0',tableObj.handleChangeFuc)"
:default-sort="defaultSort" @sort-change="handleSortChange">
<template v-for="(item, index) in tableHeader">
<el-table-column
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
type="index" :label="item.columnDesc"></el-table-column>
<el-table-column
v-if="item.columnType == 'selection'"
type="selection"
:width="item.width"
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
></el-table-column>
<el-table-column
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
</el-tag>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:width="item.width"
:key="item.columnName"
fixed="right"
>
<template slot-scope="scope">
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
:type="buttonItem.type"
:size="buttonItem.size"
:style="buttonItem.style"
:key="buttonItem"
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
>{{ buttonItem.name }}
</el-button>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
</template>
</el-table-column>
</template>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="handleCurrentChange"
></pagination>
</el-card>
<el-dialog
title="医用耗材详情"
:visible.sync="newSpDistributionVisible"
width="80%"
v-if="newSpDistributionVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
:before-close="handleClose"
>
<medicalSuppliesSddDialog
:rowData="rowData"
></medicalSuppliesSddDialog>
</el-dialog>
</div>
</template>
<script>
import { deleteMaterial, getAll } from '@/api/thrsys/medicalSupplies'
import {getOrderDetail, getReceiveOrder, printOrder} from "@/api/pharmaceuticals/receiveDrugOrder";
import {getBusChange} from "@/api/basic/busTypeChange";
import {filterSubAllOptimize, findInvByUserOptimize} from "@/api/system/invSubWarehouse";
import {
getHead,executeFuc
} from "@/utils/customConfig";
import medicalSuppliesSddDialog from './medicalSuppliesSddDialog'
export default {
data() {
return {
defaultSort: {prop: 'createTime', order: 'desc'},
showSearch: true,
filterQuery: {
medCatalogCode: '',
consumableName: '',
page: 1,
limit: 10,
},
invList: [],
formName: null,
formMap: {
add: "新增领用单据",
update: "编辑领用单据",
},
statusMap: {
1: "草稿",
2: "未审核",
3: "已审核",
4: "已拒绝"
},
idQuery: {},
corpList: [],
total: 0,
tableHeader:[],
queryList:[],
fromList:[],
tableHeader2:[],
queryList2:[],
fromList2:[],
options: {
finCurInv:[],
finCorpList:[],
},
thirdSys: [],
thirdSysDetail: null,
busTypes: [],
originTypes: [],
list: [],
detailList: [],
uploadFileUrl: null,
fileList: [],
uploadData: {
thirdSys: "thirdId",
},
invCodebe: null,
closeConfirm: false,
loading: false,
actDateRange: [],
newSpDistributionVisible: false,
pickerOptions: {
shortcuts: [
{
text: "最近一周",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近一个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit("pick", [start, end]);
},
},
{
text: "最近三个月",
onClick(picker) {
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit("pick", [start, end]);
},
},
],
},
productType: null,
//
rowData: null,
};
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
medCatalogCode: '',
consumableName: '',
page: 1,
limit: 10,
},
this.actDateRange = [];
this.getList();
},
onSubmitFind() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
getAll(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);
}
})
.catch(() => {
this.list = [];
this.total = 0;
});
},
handleDetail(_this,row) {
_this.rowData = row
_this.newSpDistributionVisible = true
},
hideSearch() {
this.showSearch = !this.showSearch;
},
deleteClick(_this,row) {
_this.$confirm("此操作将永久删除该耗材, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteMaterial(row).then(res => {
if (res.code == 20000){
_this.$message.success("success")
_this.getList()
}else {
_this.$message.error("删除失败")
}
})
})
.catch(() => {
});
},
handleCurrentChange(val) {
this.filterQuery.page = val.page;
this.getList();
},
closeDialog() {
this.newSpDistributionVisible = false;
this.getList();
this.detailList = [];
},
getBusType() {
let query = {
enable: true,
type: 1,
};
getBusChange(query)
.then((response) => {
this.originTypes = response.data.list || [];
})
.catch(() => {
});
},
executeFuc(row,type,clickFuc,value){
return executeFuc(this,row,type,clickFuc,value);
},
executeEval(row,expression,defaultRet){
if(expression){
return eval(expression);
}
return defaultRet;
}
},
components: {
medicalSuppliesSddDialog
},
mounted() {
},
created() {
this.getList()
this.getBusType();
getHead("medicalSupplies-1","1").then((re) => {
//
this.tableObj = re.data;
this.tableHeader = re.data.tableList;
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
});
},
};
</script>
<style scoped>
.itemTag {
float: left;
text-align: left;
margin-top: 10px;
width: 25%;
}
.text {
font-size: 13px;
font-family: "Microsoft YaHei";
}
.el-row {
display: flex;
flex-wrap: wrap;
}
.el-col {
border-radius: 4px;
flex-wrap: wrap;
}
</style>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,445 @@
<template>
<div>
<el-card class="el-card">
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" label-width="100px">
<el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList">
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`" :key="item.id"
>
<el-input
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable
></el-input>
</el-form-item>
<el-form-item v-if="item.columnType == 'select' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`"
>
<el-select v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
clearable
>
<el-option
v-for="dict in item.lableRuleObj"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'selectServer' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`"
>
<el-select
v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)"
filterable
remote
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
clearable
>
<el-option
v-for="item in options[item.clickFuc]"
:key="item.code"
:label="item.label"
:value="item.code"
/>
</el-select>
</el-form-item>
<el-form-item v-if="item.columnType == 'datePicker' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`"
>
<el-date-picker
:picker-options="pickerOptions"
v-model="actDateRange"
type="daterange"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item v-if="item.columnType == 'date' && executeEval(row,item.expression,true)"
:label="item.columnDesc+`:`"
>
<el-date-picker
v-model="filterQuery[item.columnName]"
:style="`width:${item.width+'px'}`"
value-format="yyyy-MM-dd"
:disabled="executeEval(null,item.disabledFuc,false)"
type="date"
:placeholder="item.columnDesc"
></el-date-picker>
</el-form-item>
</template>
</el-row>
</el-form>
<div class="top-right-btn">
<el-button-group style="display:flex;">
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmitFind"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="newDistributionForm()" :loading="loading">
导入收费项目
</el-button>
<el-button type="primary" icon="el-icon-plus" @click="newDistributionForm()" :loading="loading">
下载收费项目
</el-button>
</el-button-group>
</div>
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row="true" border
@current-change="(row) => executeFuc(row,'0',tableObj.handleChangeFuc)"
:default-sort="defaultSort" @sort-change="handleSortChange"
>
<template v-for="(item, index) in tableHeader">
<el-table-column
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
type="index" :label="item.columnDesc"
></el-table-column>
<el-table-column
v-if="item.columnType == 'selection'"
type="selection"
:width="item.width"
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
></el-table-column>
<el-table-column
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}"
>{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<el-tag
:type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])"
>
<span>{{
item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
}}</span>
</el-tag>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:width="item.width"
:key="item.columnName"
fixed="right"
>
<template slot-scope="scope">
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
:type="buttonItem.type"
:size="buttonItem.size"
:style="buttonItem.style"
:key="buttonItem"
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
>{{ buttonItem.name }}
</el-button>
</template>
</el-table-column>
<el-table-column
v-if="item.columnType == 'text' && executeEval(row,item.expression,true)"
:prop="item.columnName"
:label="item.columnDesc"
:sortable="item.sort"
:width="item.width"
:show-overflow-tooltip="item.tooltip"
:key="item.columnName"
>
<template slot-scope="scope">
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}"
>{{ scope.row[item.columnName] }}</span>
</template>
</el-table-column>
</template>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="filterQuery.page"
:limit.sync="filterQuery.limit"
@pagination="getList"
></pagination>
</el-card>
<el-dialog
title="药品详情"
:visible.sync="newSpDistributionVisible"
width="80%"
v-if="newSpDistributionVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<pharmaceuticalsDetail
:rowData="rowData"
>
</pharmaceuticalsDetail>
</el-dialog>
</div>
</template>
<script>
import { delReceive } from '@/api/thrsys/thrOrderReceive'
import {
getHead, executeFuc
} from '@/utils/customConfig'
import { chDrugList, deleteChDrug } from '@/api/thrsys/medicalSupplies'
import pharmaceuticalsDetail from './pharmaceuticalsDetail'
export default {
data() {
return {
defaultSort: { prop: 'createTime', order: 'desc' },
showSearch: true,
filterQuery: {
medCatalogCode: '',
tradeName: '',
genericNum: '',
genericName: '',
page: 1,
limit: 10
},
invList: [],
formName: null,
formMap: {
add: '新增领用单据',
update: '编辑领用单据'
},
statusMap: {
1: '草稿',
2: '未审核',
3: '已审核',
4: '已拒绝'
},
total: 0,
tableHeader: [],
queryList: [],
fromList: [],
fList: [],
options: {
finCurInv: [],
finCorpList: []
},
thirdSys: [],
thirdSysDetail: null,
busTypes: [],
originTypes: [],
list: [],
detailList: [],
uploadFileUrl: null,
fileList: [],
uploadData: {
thirdSys: 'thirdId'
},
invCodebe: null,
closeConfirm: false,
loading: false,
actDateRange: [],
newSpDistributionVisible: false,
pickerOptions: {
shortcuts: [
{
text: '最近一周',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
picker.$emit('pick', [start, end])
}
},
{
text: '最近一个月',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
picker.$emit('pick', [start, end])
}
},
{
text: '最近三个月',
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
picker.$emit('pick', [start, end])
}
}
]
},
rowData: null
}
},
methods: {
onReset() {
this.$router.push({
path: ''
})
this.filterQuery = {
medCatalogCode: '',
tradeName: '',
genericNum: '',
genericName: '',
page: 1,
limit: 10
}
this.getList()
},
onSubmitFind() {
this.filterQuery.page = 1
this.getList()
},
getList() {
chDrugList(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)
}
})
.catch(() => {
this.list = []
this.total = 0
})
},
handleDetail(_this,row) {
_this.rowData = row
_this.newSpDistributionVisible = true
},
hideSearch() {
this.showSearch = !this.showSearch
},
deleteClick(_this,row) {
_this.$confirm("此操作将永久删除该药品, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteChDrug(row).then(res => {
if (res.code == 20000){
_this.$message.success("success")
_this.getList()
}else {
_this.$message.error("删除失败")
}
})
})
.catch(() => {
});
},
handleCurrentChange(val) {
this.filterQuery.page = val.page
this.getList()
},
closeDialog() {
this.newSpDistributionVisible = false
this.getList()
this.detailList = []
},
executeFuc(row, type, clickFuc, value) {
return executeFuc(this, row, type, clickFuc, value)
},
executeEval(row, expression, defaultRet) {
if (expression) {
return eval(expression)
}
return defaultRet
}
},
components: {
pharmaceuticalsDetail
},
mounted() {
},
created() {
this.getList()
getHead('pharmaceuticals-1', '1').then((re) => {
//
this.tableHeader = re.data.tableList
this.queryList = re.data.queryList;
this.fromList = re.data.fromList;
})
}
}
</script>
<style scoped>
.itemTag {
float: left;
text-align: left;
margin-top: 10px;
width: 25%;
}
.text {
font-size: 13px;
font-family: "Microsoft YaHei";
}
.el-row {
display: flex;
flex-wrap: wrap;
}
.el-col {
border-radius: 4px;
flex-wrap: wrap;
}
</style>

@ -0,0 +1,979 @@
<template>
<div>
<el-form :model="filterQuery" label-width="120px" ref="dataForm">
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="医疗目录编码:" prop="name">
<el-input style="width: 90%" size="small" placeholder="医疗目录编码"
disabled
v-model.trim="filterQuery.medCatalogCode"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药品商品名:" prop="consumableName">
<el-input style="width: 90%" size="small" placeholder="药品商品名"
disabled
v-model.trim="filterQuery.consumableName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="通用名编号:" prop="genericNum">
<el-input style="width: 90%" size="small" placeholder="通用名编号"
disabled
v-model.trim="filterQuery.genericNum"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药品通用名:" prop="genericName">
<el-input style="width: 90%" size="small" placeholder="药品通用名"
disabled
v-model.trim="filterQuery.genericName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="化学名称:" prop="chemName">
<el-input style="width: 90%" size="small" placeholder="化学名称"
disabled
v-model.trim="filterQuery.chemName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="别名:" prop="alias">
<el-input style="width: 90%" size="small" placeholder="别名"
disabled
v-model.trim="filterQuery.alias"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="英文名称:" prop="engName">
<el-input style="width: 90%" size="small" placeholder="英文名称"
disabled
v-model.trim="filterQuery.engName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="注册名称:" prop="regName">
<el-input style="width: 90%" size="small" placeholder="注册名称"
disabled
v-model.trim="filterQuery.regName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药监本位码:" prop="medStandardCode">
<el-input style="width: 90%" size="small" placeholder="药监本位码"
disabled
v-model.trim="filterQuery.medStandardCode"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药品剂型:" prop="dosageForm">
<el-input style="width: 90%" size="small" placeholder="药品剂型"
disabled
v-model.trim="filterQuery.dosageForm"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品剂型名称:" prop="dosageFormName">
<el-input style="width: 90%" size="small" placeholder="药品剂型名称"
disabled
v-model.trim="filterQuery.dosageFormName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药品类别:" prop="medCategory">
<el-input style="width: 90%" size="small" placeholder="药品类别"
disabled
v-model.trim="filterQuery.medCategory"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品类别名称:" prop="medCategoryName">
<el-input style="width: 90%" size="small" placeholder="药品类别名称"
disabled
v-model.trim="filterQuery.medCategoryName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药品规格:" prop="medSpec">
<el-input style="width: 90%" size="small" placeholder="药品规格"
disabled
v-model.trim="filterQuery.medSpec"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品规格代码:" prop="medSpecCode">
<el-input style="width: 90%" size="small" placeholder="药品规格代码"
disabled
v-model.trim="filterQuery.medSpecCode"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="注册规格:" prop="regDosageForm">
<el-input style="width: 90%" size="small" placeholder="注册规格"
disabled
v-model.trim="filterQuery.regDosageForm"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="每次用量:" prop="doseEachTime">
<el-input style="width: 90%" size="small" placeholder="每次用量"
disabled
v-model.trim="filterQuery.doseEachTime"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="使用频次:" prop="acidBase">
<el-input style="width: 90%" size="small" placeholder="使用频次"
disabled
v-model.trim="filterQuery.acidBase"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="酸根盐基:" prop="doseEachTime">
<el-input style="width: 90%" size="small" placeholder="酸根盐基"
disabled
v-model.trim="filterQuery.doseEachTime"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="国家药品编号:" prop="nationalDrugNum">
<el-input style="width: 90%" size="small" placeholder="国家药品编号"
disabled
v-model.trim="filterQuery.nationalDrugNum"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="用法:" prop="usage">
<el-input style="width: 90%" size="small" placeholder="用法"
disabled
v-model.trim="filterQuery.usage"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="中成药标志:" prop="tcmMark">
<el-input style="width: 90%" size="small" placeholder="中成药标志"
disabled
v-model.trim="filterQuery.tcmMark"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="生产地类别:" prop="productionAreaType">
<el-input style="width: 90%" size="small" placeholder="生产地类别"
disabled
v-model.trim="filterQuery.productionAreaType"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="生产地类别名称:" prop="productionAreaName">
<el-input style="width: 90%" size="small" placeholder="生产地类别名称"
disabled
v-model.trim="filterQuery.productionAreaName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="计价单位类型:" prop="pricingUnitType">
<el-input style="width: 90%" size="small" placeholder="计价单位类型"
disabled
v-model.trim="filterQuery.pricingUnitType"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="非处方药标志:" prop="otcMark">
<el-input style="width: 90%" size="small" placeholder="非处方药标志"
disabled
v-model.trim="filterQuery.otcMark"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="非处方药标志名称:" prop="otcMarkName">
<el-input style="width: 90%" size="small" placeholder="非处方药标志名称"
disabled
v-model.trim="filterQuery.otcMarkName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="包装材质:" prop="packagingMaterial">
<el-input style="width: 90%" size="small" placeholder="包装材质"
disabled
v-model.trim="filterQuery.packagingMaterial"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="包装材质名称:" prop="packagingMaterialName">
<el-input style="width: 90%" size="small" placeholder="包装材质名称"
disabled
v-model.trim="filterQuery.packagingMaterialName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="包装规格:" prop="packagingSpec">
<el-input style="width: 90%" size="small" placeholder="包装规格"
disabled
v-model.trim="filterQuery.packagingSpec"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="包装数量:" prop="packagingQuantity">
<el-input style="width: 90%" size="small" placeholder="包装数量"
disabled
v-model.trim="filterQuery.packagingQuantity"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="包装规格:" prop="mainFunction">
<el-input style="width: 90%" size="small" placeholder="功能主治"
disabled
v-model.trim="filterQuery.mainFunction"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="给药途径:" prop="routeOfAdmin">
<el-input style="width: 90%" size="small" placeholder="给药途径"
disabled
v-model.trim="filterQuery.routeOfAdmin"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="说明书:" prop="instructions">
<el-input style="width: 90%" size="small" placeholder="说明书"
disabled
v-model.trim="filterQuery.instructions"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="开始日期:" prop="startDate">
<el-input style="width: 90%" size="small" placeholder="开始日期"
disabled
v-model.trim="filterQuery.startDate"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="结束日期:" prop="endDate">
<el-input style="width: 90%" size="small" placeholder="结束日期"
disabled
v-model.trim="filterQuery.endDate"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="最小使用单位:" prop="minUsageUnit">
<el-input style="width: 90%" size="small" placeholder="最小使用单位"
disabled
v-model.trim="filterQuery.minUsageUnit"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="最小销售单位:" prop="minSalesUnit">
<el-input style="width: 90%" size="small" placeholder="最小销售单位"
disabled
v-model.trim="filterQuery.minSalesUnit"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="最小计量单位:" prop="minMeasureUnit">
<el-input style="width: 90%" size="small" placeholder="最小计量单位"
disabled
v-model.trim="filterQuery.minMeasureUnit"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="最小包装数量:" prop="minPackagingQuantity">
<el-input style="width: 90%" size="small" placeholder="最小包装数量"
disabled
v-model.trim="filterQuery.minPackagingQuantity"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="最小包装单位:" prop="minPackagingUnit">
<el-input style="width: 90%" size="small" placeholder="最小包装单位"
disabled
v-model.trim="filterQuery.minPackagingUnit"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="最小制剂单位:" prop="minPreparationUnit">
<el-input style="width: 90%" size="small" placeholder="最小制剂单位"
disabled
v-model.trim="filterQuery.minPreparationUnit"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="最小包装单位名称:" prop="minPackagingUnitName">
<el-input style="width: 90%" size="small" placeholder="最小包装单位名称"
disabled
v-model.trim="filterQuery.minPackagingUnitName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="最小制剂单位名称:" prop="minPreparationUnitName">
<el-input style="width: 90%" size="small" placeholder="最小制剂单位名称"
disabled
v-model.trim="filterQuery.minPreparationUnitName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="转换比:" prop="conversionRate">
<el-input style="width: 90%" size="small" placeholder="转换比"
disabled
v-model.trim="filterQuery.conversionRate"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药品有效期:" prop="shelfLife">
<el-input style="width: 90%" size="small" placeholder="药品有效期"
disabled
v-model.trim="filterQuery.shelfLife"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="最小计价单位:" prop="minPricingUnit">
<el-input style="width: 90%" size="small" placeholder="最小计价单位"
disabled
v-model.trim="filterQuery.minPricingUnit"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="五笔助记码:" prop="fiveStrokeCode">
<el-input style="width: 90%" size="small" placeholder="五笔助记码"
disabled
v-model.trim="filterQuery.fiveStrokeCode"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="拼音助记码:" prop="pinyinCode">
<el-input style="width: 90%" size="small" placeholder="拼音助记码"
disabled
v-model.trim="filterQuery.pinyinCode"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="分包装厂家:" prop="packagingManufacturer">
<el-input style="width: 90%" size="small" placeholder="分包装厂家"
disabled
v-model.trim="filterQuery.packagingManufacturer"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="生产企业编号:" prop="manufacturerNum">
<el-input style="width: 90%" size="small" placeholder="生产企业编号"
disabled
v-model.trim="filterQuery.manufacturerNum"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="生产企业名称:" prop="manufacturerName">
<el-input style="width: 90%" size="small" placeholder="生产企业名称"
disabled
v-model.trim="filterQuery.manufacturerName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="特殊限价药品标志:" prop="specialPricingMark">
<el-input style="width: 90%" size="small" placeholder="特殊限价药品标志"
disabled
v-model.trim="filterQuery.specialPricingMark"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="特殊药品标志:" prop="specialDrugMark">
<el-input style="width: 90%" size="small" placeholder="特殊药品标志"
disabled
v-model.trim="filterQuery.specialDrugMark"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="限制使用范围:" prop="usageLimit">
<el-input style="width: 90%" size="small" placeholder="限制使用范围"
disabled
v-model.trim="filterQuery.usageLimit"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="限制使用标志:" prop="usageLimitMark">
<el-input style="width: 90%" size="small" placeholder="限制使用标志"
disabled
v-model.trim="filterQuery.usageLimitMark"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品注册证号:" prop="regCertNum">
<el-input style="width: 90%" size="small" placeholder="药品注册证号"
disabled
v-model.trim="filterQuery.regCertNum"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药品注册证号开始日期:" prop="regCertStartDate">
<el-input style="width: 90%" size="small" placeholder="药品注册证号开始日期"
disabled
v-model.trim="filterQuery.regCertStartDate"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品注册证号结束日期:" prop="regCertEndDate">
<el-input style="width: 90%" size="small" placeholder="药品注册证号结束日期"
disabled
v-model.trim="filterQuery.regCertEndDate"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="批准文号:" prop="approvalNum">
<el-input style="width: 90%" size="small" placeholder="批准文号"
disabled
v-model.trim="filterQuery.approvalNum"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="批准文号开始日期:" prop="approvalStartDate">
<el-input style="width: 90%" size="small" placeholder="批准文号开始日期"
disabled
v-model.trim="filterQuery.approvalStartDate"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="批准文号结束日期:" prop="approvalEndDate">
<el-input style="width: 90%" size="small" placeholder="批准文号结束日期"
disabled
v-model.trim="filterQuery.approvalEndDate"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="市场状态:" prop="marketStatus">
<el-input style="width: 90%" size="small" placeholder="市场状态"
disabled
v-model.trim="filterQuery.marketStatus"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="市场状态名称:" prop="marketStatusName">
<el-input style="width: 90%" size="small" placeholder="市场状态名称"
disabled
v-model.trim="filterQuery.marketStatusName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="药品注册批件电子档案:" prop="regApprovalFile">
<el-input style="width: 90%" size="small" placeholder="药品注册批件电子档案"
disabled
v-model.trim="filterQuery.regApprovalFile"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="药品补充申请批件电子档案:" prop="suppApprovalFile">
<el-input style="width: 90%" size="small" placeholder="药品补充申请批件电子档案"
disabled
v-model.trim="filterQuery.suppApprovalFile"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="国家医保药品目录备注:" prop="nationalInsuranceNotes">
<el-input style="width: 90%" size="small" placeholder="国家医保药品目录备注"
disabled
v-model.trim="filterQuery.nationalInsuranceNotes"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="基本药物标志名称:" prop="essentialDrugMark">
<el-input style="width: 90%" size="small" placeholder="基本药物标志名称"
disabled
v-model.trim="filterQuery.essentialDrugMark"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="增值税调整药品标志:" prop="vatAdjustmentMark">
<el-input style="width: 90%" size="small" placeholder="增值税调整药品标志"
disabled
v-model.trim="filterQuery.vatAdjustmentMark"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="增值税调整药品名称:" prop="vatAdjustmentName">
<el-input style="width: 90%" size="small" placeholder="增值税调整药品名称"
disabled
v-model.trim="filterQuery.vatAdjustmentName"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="上市药品目录集药品:" prop="listedDrugCatalog">
<el-input style="width: 90%" size="small" placeholder="上市药品目录集药品"
disabled
v-model.trim="filterQuery.listedDrugCatalog"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="医保谈判药品标志:" prop="insuranceNegotiationMark">
<el-input style="width: 90%" size="small" placeholder="医保谈判药品标志"
disabled
v-model.trim="filterQuery.insuranceNegotiationMark"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="医保谈判药品名称:" prop="insuranceNegotiationName">
<el-input style="width: 90%" size="small" placeholder="医保谈判药品名称"
disabled
v-model.trim="filterQuery.insuranceNegotiationName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="卫健委药品编码:" prop="nhcDrugCode">
<el-input style="width: 90%" size="small" placeholder="卫健委药品编码"
disabled
v-model.trim="filterQuery.nhcDrugCode"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="备注:" prop="notes">
<el-input style="width: 90%" size="small" placeholder="备注"
disabled
v-model.trim="filterQuery.notes"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="有效标志:" prop="activeMark">
<el-input style="width: 90%" size="small" placeholder="有效标志"
disabled
v-model.trim="filterQuery.activeMark"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="唯一记录号:" prop="uniqueRecordNum">
<el-input style="width: 90%" size="small" placeholder="唯一记录号"
disabled
v-model.trim="filterQuery.uniqueRecordNum"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="数据创建时间:" prop="dataCreateTime">
<el-input style="width: 90%" size="small" placeholder="数据创建时间"
disabled
v-model.trim="filterQuery.dataCreateTime"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="数据更新时间:" prop="dataUpdateTime">
<el-input style="width: 90%" size="small" placeholder="数据更新时间"
disabled
v-model.trim="filterQuery.dataUpdateTime"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="版本号:" prop="versionNum">
<el-input style="width: 90%" size="small" placeholder="版本号"
disabled
v-model.trim="filterQuery.versionNum"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="版本名称:" prop="versionName">
<el-input style="width: 90%" size="small" placeholder="版本名称"
disabled
v-model.trim="filterQuery.versionName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="儿童用药:" prop="pediatricUsage">
<el-input style="width: 90%" size="small" placeholder="儿童用药"
disabled
v-model.trim="filterQuery.pediatricUsage"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="公司名称:" prop="companyName">
<el-input style="width: 90%" size="small" placeholder="公司名称"
disabled
v-model.trim="filterQuery.companyName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="仿制药一致性评价药品:" prop="genericConsistencyEval">
<el-input style="width: 90%" size="small" placeholder="仿制药一致性评价药品"
disabled
v-model.trim="filterQuery.genericConsistencyEval"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="经销企业:" prop="distributor">
<el-input style="width: 90%" size="small" placeholder="经销企业"
disabled
v-model.trim="filterQuery.distributor"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="经销企业联系人:" prop="distributorContact">
<el-input style="width: 90%" size="small" placeholder="经销企业联系人"
disabled
v-model.trim="filterQuery.distributorContact"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="经销企业授权书电子档案:" prop="distributorAuthFile">
<el-input style="width: 90%" size="small" placeholder="经销企业授权书电子档案"
disabled
v-model.trim="filterQuery.distributorAuthFile"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="国家医保药品目录剂型:" prop="insuranceDrugForm">
<el-input style="width: 90%" size="small" placeholder="国家医保药品目录剂型"
disabled
v-model.trim="filterQuery.insuranceDrugForm"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="国家医保药品目录甲乙类标识:" prop="companyName">
<el-input style="width: 90%" size="small" placeholder="国家医保药品目录甲乙类标识"
disabled
v-model.trim="filterQuery.companyName"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="国家医保药品目录甲乙类标识:" prop="insuranceDrugClass">
<el-input style="width: 90%" size="small" placeholder="国家医保药品目录甲乙类标识"
disabled
v-model.trim="filterQuery.insuranceDrugClass"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="上市许可证持有人:" prop="marketingAuthHolder">
<el-input style="width: 90%" size="small" placeholder="上市许可证持有人"
disabled
v-model.trim="filterQuery.marketingAuthHolder"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="下发标志:" prop="releaseMark">
<el-input style="width: 90%" size="small" placeholder="下发标志"
disabled
v-model.trim="filterQuery.releaseMark"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="传输数据ID:" prop="transferDataId">
<el-input style="width: 90%" size="small" placeholder="传输数据ID"
disabled
v-model.trim="filterQuery.transferDataId"
></el-input>
</el-form-item>
</el-col>
<el-col :span="11" class="el-col">
<el-form-item label="生效时间:" prop="effectiveTime">
<el-input style="width: 90%" size="small" placeholder="生效时间"
disabled
v-model.trim="filterQuery.effectiveTime"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="失效时间:" prop="expiryTime">
<el-input style="width: 90%" size="small" placeholder="失效时间"
disabled
v-model.trim="filterQuery.expiryTime"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
import { delReceive } from '@/api/thrsys/thrOrderReceive'
import {
getHead, executeFuc
} from '@/utils/customConfig'
import { chDrugList, deleteChDrug } from '@/api/thrsys/medicalSupplies'
export default {
props: {
rowData: {
type: Object,
required: true,
},
},
data() {
return {
defaultSort: { prop: 'createTime', order: 'desc' },
showSearch: true,
filterQuery: {
medCatalogCode: '',
tradeName: '',
genericNum: '',
genericName: '',
page: 1,
limit: 10
},
invList: [],
formName: null,
total: 0,
tableHeader: [],
queryList: [],
fromList: [],
options: {
finCurInv: [],
finCorpList: []
},
thirdSys: [],
thirdSysDetail: null,
busTypes: [],
originTypes: [],
list: [],
detailList: [],
uploadFileUrl: null,
fileList: [],
uploadData: {
thirdSys: 'thirdId'
},
invCodebe: null,
closeConfirm: false,
loading: false,
actDateRange: [],
newSpDistributionVisible: false,
productType: null
}
},
methods: {
closeDialog() {
this.newSpDistributionVisible = false
this.getList()
this.detailList = []
},
executeFuc(row, type, clickFuc, value) {
return executeFuc(this, row, type, clickFuc, value)
},
executeEval(row, expression, defaultRet) {
if (expression) {
return eval(expression)
}
return defaultRet
}
},
components: {},
mounted() {
},
created() {
this.filterQuery = this.rowData
}
}
</script>
<style scoped>
.itemTag {
float: left;
text-align: left;
margin-top: 10px;
width: 25%;
}
.text {
font-size: 13px;
font-family: "Microsoft YaHei";
}
.el-row {
display: flex;
flex-wrap: wrap;
}
.el-col {
border-radius: 4px;
flex-wrap: wrap;
}
</style>
Loading…
Cancel
Save