|
|
|
@ -6,10 +6,10 @@
|
|
|
|
|
<el-button size="small">返回上一级</el-button>
|
|
|
|
|
<el-select v-model="client_id" placeholder="请选择柜体">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in options"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
v-for="item in clientOptions"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.client_name"
|
|
|
|
|
:value="item.client_id"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-button size="small" type="primary" @click="handleReagentToDatabase">选择试剂入库</el-button>
|
|
|
|
@ -108,10 +108,9 @@
|
|
|
|
|
<el-table-column
|
|
|
|
|
fixed="right"
|
|
|
|
|
label="操作"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" @click="handleReagentClick(scope.row)">操作</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="handleReagentClick(scope.row)">操作</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -129,6 +128,7 @@
|
|
|
|
|
title="编辑试剂信息"
|
|
|
|
|
:visible.sync="formVisible"
|
|
|
|
|
append-to-body
|
|
|
|
|
@close="formClose"
|
|
|
|
|
>
|
|
|
|
|
<ReagentForm :propsformdata="propsformdata" @handlefunc="handleReagentForm" />
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -139,10 +139,10 @@
|
|
|
|
|
<el-input v-model="reagentAddTmpName" placeholder="请输入模板名称" />
|
|
|
|
|
<el-select v-model="reagentAddClient" placeholder="请选择柜体">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in options"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
v-for="item in clientOptions"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.client_name"
|
|
|
|
|
:value="item.client_id"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-button v-if="opType === 'add'" size="small" type="primary" plain @click="handleADDOpen('add')">+ 新增试剂条目</el-button>
|
|
|
|
@ -183,7 +183,7 @@
|
|
|
|
|
append-to-body
|
|
|
|
|
@close="reagentAddFormClose"
|
|
|
|
|
>
|
|
|
|
|
<ReagentForm ref="reform" :propsformdata="reagentAddFormdata" @handlefunc="handleReagentAddForm" />
|
|
|
|
|
<ReagentForm :propsformdata="reagentAddFormdata" @handlefunc="handleReagentAddForm" />
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 绑定入库-->
|
|
|
|
@ -223,10 +223,12 @@ import ReagentForm from '@/components/ReagentForm/index'
|
|
|
|
|
import Scanner from '@/components/Scannner/index'
|
|
|
|
|
import { show_tmp, select_drug, bind_tmp_enter_warehouse, add_tmp, del_tmp } from '@/api/reagent/warehousing'
|
|
|
|
|
import stringify from '@/utils/stringify'
|
|
|
|
|
import { getClients } from '@/views/reagent/mixin/getClients'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'Warehousing',
|
|
|
|
|
components: { ReagentForm, Scanner },
|
|
|
|
|
mixins: [getClients],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
dialogTableVisible: false,
|
|
|
|
@ -248,7 +250,7 @@ export default {
|
|
|
|
|
reagent_total: 0,
|
|
|
|
|
// dialog form相关
|
|
|
|
|
formVisible: false,
|
|
|
|
|
propsformdata: null,
|
|
|
|
|
propsformdata: {},
|
|
|
|
|
|
|
|
|
|
// 新增 编辑 试剂模板
|
|
|
|
|
opType: null,
|
|
|
|
@ -305,6 +307,9 @@ export default {
|
|
|
|
|
this.getTmpList()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
formClose() {
|
|
|
|
|
this.propsformdata = {}
|
|
|
|
|
},
|
|
|
|
|
handleCurrentSelectChange(row) {
|
|
|
|
|
this.currentRow = row
|
|
|
|
|
},
|
|
|
|
@ -474,7 +479,7 @@ export default {
|
|
|
|
|
this.reagentAddFormVisible = false
|
|
|
|
|
},
|
|
|
|
|
reagentAddFormClose() {
|
|
|
|
|
this.$refs.reform.resetForm()
|
|
|
|
|
this.reagentAddFormdata = {}
|
|
|
|
|
},
|
|
|
|
|
// handleAddSelectionChange
|
|
|
|
|
handleAddSelectionChange(val) {
|
|
|
|
|