|
@@ -7,9 +7,9 @@
|
|
|
v-show="showSearch"
|
|
|
label-width="68px"
|
|
|
>
|
|
|
- <el-form-item prop="durgArchivesId">
|
|
|
+ <el-form-item prop="durgName">
|
|
|
<el-input
|
|
|
- v-model="queryParams.putOut"
|
|
|
+ v-model="queryParams.durgName"
|
|
|
placeholder="请输入耗材名称"
|
|
|
clearable
|
|
|
size="small"
|
|
@@ -23,7 +23,7 @@
|
|
|
size="mini"
|
|
|
@click="handleQuery"
|
|
|
>搜索</el-button
|
|
|
- > -->
|
|
|
+ >-->
|
|
|
<el-button size="btr" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -75,11 +75,11 @@
|
|
|
v-hasPermi="['medicalhealth:consumeputout:export']"
|
|
|
>导出</el-button
|
|
|
>
|
|
|
- </el-col> -->
|
|
|
+ </el-col>-->
|
|
|
<!-- <right-toolbar
|
|
|
:showSearch.sync="showSearch"
|
|
|
@queryTable="getList"
|
|
|
- ></right-toolbar> -->
|
|
|
+ ></right-toolbar>-->
|
|
|
<!-- </el-row> -->
|
|
|
|
|
|
<el-table
|
|
@@ -91,9 +91,11 @@
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="序号" align="center">
|
|
|
<template scope="scope">
|
|
|
- <span>{{
|
|
|
+ <span>
|
|
|
+ {{
|
|
|
(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
- }}</span>
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="耗材名称" align="center" prop="durgName" />
|
|
@@ -101,10 +103,7 @@
|
|
|
<el-table-column label="领用单位" align="center" prop="unitName1" />
|
|
|
<el-table-column label="库房" align="center" prop="storeHouse">
|
|
|
<template slot-scope="scope">
|
|
|
- <dict-tag
|
|
|
- :options="dict.type.storage_room"
|
|
|
- :value="scope.row.storeHouse"
|
|
|
- />
|
|
|
+ <dict-tag :options="dict.type.storage_room" :value="scope.row.storeHouse" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="品牌" align="center" prop="durgBrand" />
|
|
@@ -114,23 +113,13 @@
|
|
|
<!-- <el-table-column label="出库位置" align="center" prop="place" /> -->
|
|
|
<!-- <el-table-column label="耗材用途" align="center" prop="purpose" /> -->
|
|
|
<!-- <el-table-column label="出库说明" align="center" prop="remarks" /> -->
|
|
|
- <el-table-column
|
|
|
- label="使用时间"
|
|
|
- align="center"
|
|
|
- prop="putTime"
|
|
|
- width="180"
|
|
|
- >
|
|
|
+ <el-table-column label="使用时间" align="center" prop="putTime" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.putTime, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="领用人" align="center" prop="peopleNamee" />
|
|
|
- <el-table-column
|
|
|
- label="录入人(创建人)"
|
|
|
- align="center"
|
|
|
- prop="userName"
|
|
|
- width="160"
|
|
|
- />
|
|
|
+ <el-table-column label="录入人(创建人)" align="center" prop="userName" width="160" />
|
|
|
|
|
|
<!-- <el-table-column
|
|
|
label="功能主治"
|
|
@@ -145,7 +134,7 @@
|
|
|
<el-table-column label="发放单位名称" align="center" prop="unitName" />
|
|
|
<el-table-column label="领用人姓名" align="center" prop="peopleNamee" />
|
|
|
<el-table-column label="耗材名称" align="center" prop="durgName" />
|
|
|
- <el-table-column label="创建人姓名" align="center" prop="userName" /> -->
|
|
|
+ <el-table-column label="创建人姓名" align="center" prop="userName" />-->
|
|
|
<!-- <el-table-column
|
|
|
label="操作"
|
|
|
align="center"
|
|
@@ -168,7 +157,7 @@
|
|
|
>删除</el-button
|
|
|
>
|
|
|
</template>
|
|
|
- </el-table-column> -->
|
|
|
+ </el-table-column>-->
|
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
@@ -187,13 +176,7 @@
|
|
|
append-to-body
|
|
|
:close-on-click-modal="false"
|
|
|
>
|
|
|
- <el-form
|
|
|
- ref="form"
|
|
|
- :model="form"
|
|
|
- :rules="rules"
|
|
|
- label-width="80px"
|
|
|
- inline
|
|
|
- >
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px" inline>
|
|
|
<el-form-item label="耗材名称" prop="durgName">
|
|
|
<el-select v-model="form.durgName" placeholder="请选择耗材名称">
|
|
|
<el-option
|
|
@@ -202,8 +185,7 @@
|
|
|
:label="item.name"
|
|
|
:value="item.durgName"
|
|
|
@click.native="haocailie(item)"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
+ ></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="使用单位" prop="unitId1">
|
|
@@ -222,8 +204,7 @@
|
|
|
:label="item.name"
|
|
|
:value="item.id"
|
|
|
@click.native="compere(item.name)"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
+ ></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="出库数量" prop="putOut">
|
|
@@ -237,35 +218,26 @@
|
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
placeholder="选择出库时间"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
+ ></el-date-picker>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="出库位置" prop="place">
|
|
|
<el-input v-model="form.place" placeholder="请输入出库位置" />
|
|
|
</el-form-item>
|
|
|
<div class="jiben">耗材用途</div>
|
|
|
- <el-form-item label="" prop="purpose">
|
|
|
- <el-input
|
|
|
- v-model="form.purpose"
|
|
|
- type="textarea"
|
|
|
- placeholder="请输入内容"
|
|
|
- />
|
|
|
+ <el-form-item label prop="purpose">
|
|
|
+ <el-input v-model="form.purpose" type="textarea" placeholder="请输入内容" />
|
|
|
</el-form-item>
|
|
|
<div class="jiben">出库说明</div>
|
|
|
- <el-form-item label="" prop="remarks">
|
|
|
- <el-input
|
|
|
- v-model="form.remarks"
|
|
|
- type="textarea"
|
|
|
- placeholder="请输入内容"
|
|
|
- />
|
|
|
+ <el-form-item label prop="remarks">
|
|
|
+ <el-input v-model="form.remarks" type="textarea" placeholder="请输入内容" />
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item label="耗材用途" prop="purpose">
|
|
|
<el-input v-model="form.purpose" placeholder="请输入药品用途" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="出库说明" prop="remarks">
|
|
|
<el-input v-model="form.remarks" placeholder="请输入出库说明" />
|
|
|
- </el-form-item> -->
|
|
|
+ </el-form-item>-->
|
|
|
|
|
|
<!-- <el-form-item label="录入人(创建人)" prop="adminId">
|
|
|
<el-select v-model="form.adminId" placeholder="请选择录入人(创建人)">
|
|
@@ -311,7 +283,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="创建人姓名" prop="userName">
|
|
|
<el-input v-model="form.userName" placeholder="请输入创建人姓名" />
|
|
|
- </el-form-item> -->
|
|
|
+ </el-form-item>-->
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
@@ -328,7 +300,7 @@ import {
|
|
|
delConsumeputout,
|
|
|
addConsumeputout,
|
|
|
updateConsumeputout,
|
|
|
- exportConsumeputout,
|
|
|
+ exportConsumeputout
|
|
|
} from "@/api/medicalhealth/consumeputout";
|
|
|
// 导入树形结构
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
@@ -342,7 +314,7 @@ export default {
|
|
|
name: "Consumeputout",
|
|
|
dicts: ["storage_room"],
|
|
|
components: {
|
|
|
- Treeselect,
|
|
|
+ Treeselect
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -390,7 +362,7 @@ export default {
|
|
|
unitName: null,
|
|
|
peopleNamee: null,
|
|
|
durgName: null,
|
|
|
- userName: null,
|
|
|
+ userName: null
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
@@ -401,7 +373,7 @@ export default {
|
|
|
// 人员
|
|
|
renYuan: [],
|
|
|
// 耗材列表
|
|
|
- Consumables: [],
|
|
|
+ Consumables: []
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -420,7 +392,7 @@ export default {
|
|
|
},
|
|
|
// 获取耗材列表
|
|
|
getHaoCai() {
|
|
|
- exportHaoCai().then((res) => {
|
|
|
+ exportHaoCai().then(res => {
|
|
|
this.Consumables = res.data;
|
|
|
});
|
|
|
},
|
|
@@ -430,7 +402,7 @@ export default {
|
|
|
},
|
|
|
// 获取人员
|
|
|
getZhuChi(id) {
|
|
|
- getZhuChiRen(id).then((res) => {
|
|
|
+ getZhuChiRen(id).then(res => {
|
|
|
this.renYuan = res.data;
|
|
|
});
|
|
|
},
|
|
@@ -443,14 +415,14 @@ export default {
|
|
|
},
|
|
|
/** 查询部门下拉树结构 */
|
|
|
getTreeselect() {
|
|
|
- getDept().then((response) => {
|
|
|
+ getDept().then(response => {
|
|
|
this.deptOptions = response.data;
|
|
|
});
|
|
|
},
|
|
|
/** 查询耗材出库登记列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listConsumeputout(this.queryParams).then((response) => {
|
|
|
+ listConsumeputout(this.queryParams).then(response => {
|
|
|
this.consumeputoutList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
@@ -487,7 +459,7 @@ export default {
|
|
|
unitName: null,
|
|
|
peopleNamee: null,
|
|
|
durgName: null,
|
|
|
- userName: null,
|
|
|
+ userName: null
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -503,7 +475,7 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map((item) => item.id);
|
|
|
+ this.ids = selection.map(item => item.id);
|
|
|
this.single = selection.length !== 1;
|
|
|
this.multiple = !selection.length;
|
|
|
},
|
|
@@ -519,7 +491,7 @@ export default {
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids;
|
|
|
- getConsumeputout(id).then((response) => {
|
|
|
+ getConsumeputout(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
this.title = "修改耗材出库登记";
|
|
@@ -527,16 +499,16 @@ export default {
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if (this.form.id != null) {
|
|
|
- updateConsumeputout(this.form).then((response) => {
|
|
|
+ updateConsumeputout(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
- addConsumeputout(this.form).then((response) => {
|
|
|
+ addConsumeputout(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
@@ -550,7 +522,7 @@ export default {
|
|
|
const ids = row.id || this.ids;
|
|
|
this.$modal
|
|
|
.confirm("是否确认删除耗材出库登记的数据项?")
|
|
|
- .then(function () {
|
|
|
+ .then(function() {
|
|
|
return delConsumeputout(ids);
|
|
|
})
|
|
|
.then(() => {
|
|
@@ -568,13 +540,13 @@ export default {
|
|
|
this.exportLoading = true;
|
|
|
return exportConsumeputout(queryParams);
|
|
|
})
|
|
|
- .then((response) => {
|
|
|
+ .then(response => {
|
|
|
this.$download.name(response.msg);
|
|
|
this.exportLoading = false;
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped>
|
|
@@ -697,4 +669,4 @@ export default {
|
|
|
::v-deep .el-input__inner {
|
|
|
cursor: pointer !important;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|