|
@@ -9,8 +9,8 @@
|
|
|
>
|
|
|
<el-form-item prop="durgBrand">
|
|
|
<el-input
|
|
|
- v-model="queryParams.durgBrand"
|
|
|
- placeholder="请输入品牌"
|
|
|
+ v-model="queryParams.durgName"
|
|
|
+ placeholder="请输入防疫品名称"
|
|
|
clearable
|
|
|
size="small"
|
|
|
@input="handleQuery"
|
|
@@ -56,11 +56,8 @@
|
|
|
}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column label="入库编号" align="center" prop="number" /> -->
|
|
|
- <el-table-column label="药品名称" align="center" prop="durgName" />
|
|
|
+ <el-table-column label="防疫品名称" align="center" prop="durgName" />
|
|
|
<el-table-column label="品牌" align="center" prop="durgBrand" />
|
|
|
- <el-table-column label="生产厂商" align="center" prop="manufacturer" />
|
|
|
- <el-table-column label="规格" align="center" prop="specifications" />
|
|
|
<el-table-column label="单位" align="center" prop="unitName" />
|
|
|
<el-table-column label="库房" align="center" prop="storeHouse">
|
|
|
<template slot-scope="scope">
|
|
@@ -72,20 +69,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="存放位置" align="center" prop="place" />
|
|
|
<el-table-column label="过期数量" align="center" prop="putIn" />
|
|
|
- <el-table-column label="剩余库存" align="center" prop="surplus" />
|
|
|
- <el-table-column label="药品来源" align="center" prop="source" />
|
|
|
- <!-- <el-table-column label="入库说明" align="center" prop="remarks" /> -->
|
|
|
<el-table-column
|
|
|
- label="过期日期"
|
|
|
- align="center"
|
|
|
- prop="overduedate"
|
|
|
- width="120"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.overduedate, "{y}-{m}-{d}") }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <!-- <el-table-column
|
|
|
label="入库时间"
|
|
|
align="center"
|
|
|
prop="putTime"
|
|
@@ -94,16 +78,17 @@
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.putTime, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
|
- </el-table-column> -->
|
|
|
- <!-- <el-table-column label="录入人(创建人)" align="center" prop="adminId" /> -->
|
|
|
- <!-- <el-table-column label="编号" align="center" prop="number" /> -->
|
|
|
-
|
|
|
- <!-- <el-table-column
|
|
|
- label="功能主治"
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="过期日期"
|
|
|
align="center"
|
|
|
- prop="productIntroduction"
|
|
|
- /> -->
|
|
|
- <!-- <el-table-column label="库房" align="center" prop="unitId" /> -->
|
|
|
+ prop="expirationTime"
|
|
|
+ width="120"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ parseTime(scope.row.expirationTime, "{y}-{m}-{d}") }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="备注" align="center" prop="place">
|
|
|
<template slot-scope="scope">
|
|
|
<span
|
|
@@ -159,26 +144,26 @@
|
|
|
label-width="80px"
|
|
|
inline
|
|
|
>
|
|
|
- <el-form-item label="药品名称" prop="durgName">
|
|
|
- <el-select v-model="form.durgName" placeholder="请选择药品名称">
|
|
|
+ <el-form-item label="防疫品名称" prop="durgArchivesId">
|
|
|
+ <el-select v-model="form.durgName" placeholder="请选择防疫品名称">
|
|
|
<el-option
|
|
|
- v-for="(item, i) in yaoList"
|
|
|
+ v-for="(item, i) in fangYi"
|
|
|
:key="i"
|
|
|
:value="item.durgName"
|
|
|
- :label="item.yaoPinName"
|
|
|
- @click.native="yapPing(item)"
|
|
|
+ :label="item.name"
|
|
|
+ @click.native="fangYiPingXuan(item)"
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="药品来源" prop="source">
|
|
|
- <el-input v-model="form.source" placeholder="请输入药品来源" />
|
|
|
+ <el-form-item label="防疫品来源" prop="source">
|
|
|
+ <el-input v-model="form.source" placeholder="请输入防疫品来源" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="过期数量" prop="putIn">
|
|
|
- <el-input v-model="form.putIn" placeholder="请输入入库数量" />
|
|
|
+ <el-input v-model="form.putIn" placeholder="请输入过期数量" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="存放位置" prop="place">
|
|
|
- <el-input v-model="form.place" placeholder="请输入入库位置" />
|
|
|
+ <el-input v-model="form.place" placeholder="请输入存放位置" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="入库时间" prop="putTime">
|
|
|
<el-date-picker
|
|
@@ -194,11 +179,11 @@
|
|
|
<!-- <el-form-item label="入库说明" prop="remarks">
|
|
|
<el-input v-model="form.remarks" placeholder="请输入入库说明" />
|
|
|
</el-form-item> -->
|
|
|
- <el-form-item label="过期日期" prop="overduedate">
|
|
|
+ <el-form-item label="过期日期" prop="expirationTime">
|
|
|
<el-date-picker
|
|
|
clearable
|
|
|
size="small"
|
|
|
- v-model="form.overduedate"
|
|
|
+ v-model="form.expirationTime"
|
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
placeholder="选择过期日期"
|
|
@@ -266,16 +251,13 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
- updateBdgldurgputin,
|
|
|
- delBdgldurgputin,
|
|
|
- addBdgldurgputin,
|
|
|
- exportBdgldurgputin,
|
|
|
- exportYao,
|
|
|
-} from "@/api/medicalhealth/bdgldurgputin";
|
|
|
-import {
|
|
|
- exportYaoPing,
|
|
|
- exportYaoPingXiaoHui,
|
|
|
-} from "@/api/medicalhealth/consumeputin";
|
|
|
+ exportAntiepidemiFangYi,
|
|
|
+ exportAntiepidemiGuoQi,
|
|
|
+ addAntiepidemicputin,
|
|
|
+ updateAntiepidemicputin,
|
|
|
+ delAntiepidemicputin,
|
|
|
+ exportAntiepidemicputin,
|
|
|
+} from "@/api/medicalhealth/antiepidemicputin";
|
|
|
|
|
|
export default {
|
|
|
name: "Bdgldurgputin",
|
|
@@ -296,7 +278,7 @@ export default {
|
|
|
showSearch: true,
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
- // 药品入库登记表格数据
|
|
|
+ // 入库登记表格数据
|
|
|
bdgldurgputinList: [],
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
@@ -309,54 +291,51 @@ export default {
|
|
|
durgArchivesId: null,
|
|
|
putIn: null,
|
|
|
place: null,
|
|
|
- source: null,
|
|
|
- remarks: null,
|
|
|
- overduedate: null,
|
|
|
putTime: null,
|
|
|
adminId: null,
|
|
|
- number: null,
|
|
|
- surplus: null,
|
|
|
- status: null,
|
|
|
+ createtime: null,
|
|
|
+ updatetime: null,
|
|
|
durgBrand: null,
|
|
|
- manufacturer: null,
|
|
|
specifications: null,
|
|
|
- productIntroduction: null,
|
|
|
- storeHouse: null,
|
|
|
unitId: null,
|
|
|
+ storeHouse: null,
|
|
|
+ putNumber: null,
|
|
|
+ beizhu: null,
|
|
|
+ durgName: null,
|
|
|
+ source: null,
|
|
|
+ expirationTime: null,
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {},
|
|
|
- // 药品列表
|
|
|
- yaoList: [],
|
|
|
+ // 防疫品名称
|
|
|
+ fangYi: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
- // 药品名称触发赋值
|
|
|
- yapPing(data) {
|
|
|
+ // 选择防疫品
|
|
|
+ fangYiPingXuan(data) {
|
|
|
this.form.unitId = data.unitId;
|
|
|
- this.form.unitName = data.unitName;
|
|
|
- this.form.manufacturer = data.manufacturer;
|
|
|
- this.form.specifications = data.specifications;
|
|
|
- this.form.storeHouse = data.storeHouse;
|
|
|
this.form.durgArchivesId = data.id;
|
|
|
this.form.durgBrand = data.durgBrand;
|
|
|
+ this.form.specifications = data.specifications;
|
|
|
+ this.form.storeHouse = data.storeHouse;
|
|
|
+ this.form.unitName = data.unitName;
|
|
|
},
|
|
|
- // 查询药品名称列表
|
|
|
- getYaoPing() {
|
|
|
- exportYao().then((response) => {
|
|
|
- this.yaoList = response.data;
|
|
|
+ // 查询防疫品名称列表
|
|
|
+ fangYiPing() {
|
|
|
+ exportAntiepidemiFangYi().then((response) => {
|
|
|
+ this.fangYi = response.data;
|
|
|
});
|
|
|
},
|
|
|
- /** 查询药品入库登记列表 */
|
|
|
+ /** 查询入库登记列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- exportYaoPing(this.queryParams).then((response) => {
|
|
|
- console.log(response);
|
|
|
+ exportAntiepidemiGuoQi(this.queryParams).then((response) => {
|
|
|
this.bdgldurgputinList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
@@ -374,22 +353,19 @@ export default {
|
|
|
durgArchivesId: null,
|
|
|
putIn: null,
|
|
|
place: null,
|
|
|
- source: null,
|
|
|
- remarks: null,
|
|
|
- overduedate: null,
|
|
|
putTime: null,
|
|
|
adminId: null,
|
|
|
- createTime: null,
|
|
|
- updateTime: null,
|
|
|
- number: null,
|
|
|
- surplus: null,
|
|
|
- status: "0",
|
|
|
+ createtime: null,
|
|
|
+ updatetime: null,
|
|
|
durgBrand: null,
|
|
|
- manufacturer: null,
|
|
|
specifications: null,
|
|
|
- productIntroduction: null,
|
|
|
- storeHouse: null,
|
|
|
unitId: null,
|
|
|
+ storeHouse: null,
|
|
|
+ putNumber: null,
|
|
|
+ beizhu: null,
|
|
|
+ durgName: null,
|
|
|
+ source: null,
|
|
|
+ expirationTime: null,
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -400,7 +376,7 @@ export default {
|
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
|
- this.resetForm("queryForm");
|
|
|
+ (this.queryParams.durgName = null), this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
// 多选框选中数据
|
|
@@ -412,21 +388,23 @@ export default {
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
this.reset();
|
|
|
- this.getYaoPing();
|
|
|
+ this.fangYiPing();
|
|
|
this.open = true;
|
|
|
- this.title = "添加药品过期情况";
|
|
|
+ this.title = "添加防疫用品过期情况";
|
|
|
},
|
|
|
/** 销毁按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
- const id = row.id || this.ids;
|
|
|
+ this.form = row;
|
|
|
this.$modal
|
|
|
- .confirm("是否确认销毁药品的数据项?", {
|
|
|
+ .confirm("是否确认销毁防疫用品的数据项?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
})
|
|
|
.then(() => {
|
|
|
- exportYaoPingXiaoHui(id).then((response) => {
|
|
|
+ console.log(this.form);
|
|
|
+ this.form.state = "1";
|
|
|
+ updateAntiepidemicputin(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("销毁成功");
|
|
|
this.getList();
|
|
|
});
|
|
@@ -438,14 +416,14 @@ export default {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (this.form.id != null) {
|
|
|
- updateBdgldurgputin(this.form).then((response) => {
|
|
|
+ updateAntiepidemicputin(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
this.form.expiredstatus = "1";
|
|
|
- addBdgldurgputin(this.form).then((response) => {
|
|
|
+ addAntiepidemicputin(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
@@ -458,9 +436,9 @@ export default {
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
this.$modal
|
|
|
- .confirm("是否确认删除药品入库登记的数据项?")
|
|
|
+ .confirm("是否确认删除防疫用品的数据项?")
|
|
|
.then(function () {
|
|
|
- return delBdgldurgputin(ids);
|
|
|
+ return delAntiepidemicputin(ids);
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.getList();
|
|
@@ -472,10 +450,10 @@ export default {
|
|
|
handleExport() {
|
|
|
const queryParams = this.queryParams;
|
|
|
this.$modal
|
|
|
- .confirm("是否确认导出所有药品入库登记数据项?")
|
|
|
+ .confirm("是否确认导出所有防疫用品数据项?")
|
|
|
.then(() => {
|
|
|
this.exportLoading = true;
|
|
|
- return exportBdgldurgputin(queryParams);
|
|
|
+ return exportAntiepidemicputin(queryParams);
|
|
|
})
|
|
|
.then((response) => {
|
|
|
this.$download.name(response.msg);
|