|
|
@ -20,7 +20,7 @@ |
|
|
<el-input v-model="queryParams.bh" clearable @change="handleQuery" |
|
|
<el-input v-model="queryParams.bh" clearable @change="handleQuery" |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!-- 所属部门 --> |
|
|
|
|
|
|
|
|
<!-- 所属部门 --> |
|
|
<el-form-item :label="$t('page.business.resource.sj.ssbm') + ':'"> |
|
|
<el-form-item :label="$t('page.business.resource.sj.ssbm') + ':'"> |
|
|
<el-input v-model="queryParams.bm" clearable @change="handleQuery" |
|
|
<el-input v-model="queryParams.bm" clearable @change="handleQuery" |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
@ -61,9 +61,8 @@ |
|
|
<el-row :gutter="10" class="mb8"> |
|
|
<el-row :gutter="10" class="mb8"> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<!-- 更新试剂库 --> |
|
|
<!-- 更新试剂库 --> |
|
|
<el-button type="primary" |
|
|
|
|
|
v-hasPermi="['business:resource:mjy:ff']">{{ |
|
|
|
|
|
$t('page.business.resource.sj.gxsjk') }}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" v-hasPermi="['business:resource:mjy:ff']">{{ |
|
|
|
|
|
$t('page.business.resource.sj.gxsjk') }}</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<!-- 批量处置 --> |
|
|
<!-- 批量处置 --> |
|
|
@ -133,41 +132,44 @@ |
|
|
class-name="small-padding fixed-width" width="250px"> |
|
|
class-name="small-padding fixed-width" width="250px"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<el-button type="text" @click="handleXq(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:resource:mjy:list']">{{ |
|
|
|
|
|
|
|
|
<template |
|
|
|
|
|
v-if="scope.row.zjzt == 1 || scope.row.zjzt == 5 || (scope.row.zjzt == 9 && scope.row.jyzt == 5)"> |
|
|
|
|
|
<el-button type="text" @click="handleXq(scope.row)">{{ |
|
|
$t('page.business.resource.sj.detail') }}</el-button> |
|
|
$t('page.business.resource.sj.detail') }}</el-button> |
|
|
|
|
|
</template> |
|
|
<!-- 处置 --> |
|
|
<!-- 处置 --> |
|
|
<el-button type="text" @click="handleCz(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:resource:mjy:czyj']">{{ |
|
|
|
|
|
|
|
|
<template v-if="scope.row.zjzt == 1"> |
|
|
|
|
|
<el-button type="text" @click="handleCz(scope.row)">{{ |
|
|
$t('page.business.resource.sj.cz') }}</el-button> |
|
|
$t('page.business.resource.sj.cz') }}</el-button> |
|
|
<!-- 编辑 --> |
|
|
|
|
|
<el-button type="text" @click="handleBj(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:resource:mjy:bj']">{{ |
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
<template v-if="scope.row.zjzt == 1"> |
|
|
|
|
|
<!-- 编辑 --> |
|
|
|
|
|
<el-button type="text" @click="handleBj(scope.row)">{{ |
|
|
$t('form.edit') }}</el-button> |
|
|
$t('form.edit') }}</el-button> |
|
|
<!-- 修改库存 --> |
|
|
|
|
|
<el-button type="text" @click="handleXgkc(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:resource:mjy:xgkc']">{{ |
|
|
|
|
|
|
|
|
<!-- 修改库存 --> |
|
|
|
|
|
<el-button type="text" @click="handleXgkc(scope.row)">{{ |
|
|
$t('page.business.resource.sj.xgkc') }}</el-button> |
|
|
$t('page.business.resource.sj.xgkc') }}</el-button> |
|
|
<!-- 锁定 --> |
|
|
|
|
|
<el-button type="text" @click="handleSd(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:resource:mjy:sd']">{{ |
|
|
|
|
|
|
|
|
<!-- 锁定 --> |
|
|
|
|
|
<el-button type="text" @click="handleSd(scope.row)">{{ |
|
|
$t('page.business.resource.sj.lock') }}</el-button> |
|
|
$t('page.business.resource.sj.lock') }}</el-button> |
|
|
<!-- 解锁 --> |
|
|
|
|
|
<el-button type="text" @click="handleJs(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:resource:mjy:js']">{{ |
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
<template v-if="scope.row.zjzt == 5"> |
|
|
|
|
|
<!-- 解锁 --> |
|
|
|
|
|
<el-button type="text" @click="handleJs(scope.row)">{{ |
|
|
$t('page.business.resource.sj.unlock') }}</el-button> |
|
|
$t('page.business.resource.sj.unlock') }}</el-button> |
|
|
<!-- 归档 --> |
|
|
|
|
|
<el-button type="text" @click="handleGd(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:resource:mjy:gd']">{{ |
|
|
|
|
|
|
|
|
<!-- 归档 --> |
|
|
|
|
|
<el-button type="text" @click="handleGd(scope.row)">{{ |
|
|
$t('page.business.resource.sj.guidang') }}</el-button> |
|
|
$t('page.business.resource.sj.guidang') }}</el-button> |
|
|
<!-- 解档 --> |
|
|
|
|
|
<el-button type="text" @click="handleJd(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:resource:mjy:jd']">{{ |
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
<template v-if="scope.row.zjzt == 9 && scope.row.jyzt == 1"> |
|
|
|
|
|
<!-- 解档 --> |
|
|
|
|
|
<el-button type="text" @click="handleJd(scope.row)">{{ |
|
|
$t('page.business.resource.sj.jiedang') }}</el-button> |
|
|
$t('page.business.resource.sj.jiedang') }}</el-button> |
|
|
<!-- 借阅 --> |
|
|
|
|
|
<el-button type="text" @click="handleJy(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:resource:mjy:jy']">{{ |
|
|
|
|
|
|
|
|
<!-- 借阅 --> |
|
|
|
|
|
<el-button type="text" @click="handleJy(scope.row)">{{ |
|
|
$t('page.business.resource.sj.jieyue') }}</el-button> |
|
|
$t('page.business.resource.sj.jieyue') }}</el-button> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -189,20 +191,16 @@ |
|
|
<Xgkc ref="Xgkc" @callback="handleQuery" /> |
|
|
<Xgkc ref="Xgkc" @callback="handleQuery" /> |
|
|
<!-- 借阅 --> |
|
|
<!-- 借阅 --> |
|
|
<Jy ref="Jy" @callback="handleQuery" /> |
|
|
<Jy ref="Jy" @callback="handleQuery" /> |
|
|
<!-- 归还 --> |
|
|
|
|
|
<Gh ref="Gh" @callback="handleQuery" /> |
|
|
|
|
|
<!-- 发放 --> |
|
|
|
|
|
<Ff ref="Ff" @callback="handleQuery" /> |
|
|
|
|
|
<!-- 处置 --> |
|
|
<!-- 处置 --> |
|
|
<Cz ref="Cz" @callback="handleQuery" /> |
|
|
<Cz ref="Cz" @callback="handleQuery" /> |
|
|
<!-- 批量处置 --> |
|
|
<!-- 批量处置 --> |
|
|
<CzBatch ref="CzBatch"/> |
|
|
|
|
|
|
|
|
<CzBatch ref="CzBatch" /> |
|
|
</template> |
|
|
</template> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { mjy_list } from "@/api/business/mjy/mjy" |
|
|
|
|
|
|
|
|
import { sjkc_list } from "@/api/business/sj/sjkc" |
|
|
import Sd from "./comps/Sd"; |
|
|
import Sd from "./comps/Sd"; |
|
|
import Js from "./comps/Js"; |
|
|
import Js from "./comps/Js"; |
|
|
import Gd from "./comps/Gd"; |
|
|
import Gd from "./comps/Gd"; |
|
|
@ -211,14 +209,12 @@ import Xq from "./comps/Xq"; |
|
|
import Bj from "./comps/Bj"; |
|
|
import Bj from "./comps/Bj"; |
|
|
import Xgkc from "./comps/Xgkc"; |
|
|
import Xgkc from "./comps/Xgkc"; |
|
|
import Jy from "./comps/Jy"; |
|
|
import Jy from "./comps/Jy"; |
|
|
import Gh from "./comps/Gh"; |
|
|
|
|
|
import Ff from "./comps/Ff"; |
|
|
|
|
|
import Cz from "./comps/Cz"; |
|
|
import Cz from "./comps/Cz"; |
|
|
import CzBatch from "./comps/CzBatch"; |
|
|
import CzBatch from "./comps/CzBatch"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "Sj", |
|
|
name: "Sj", |
|
|
components: { Sd, Js, Gd, Xq, Jd, Bj, Xgkc, Jy, Gh, Cz, CzBatch, Ff }, |
|
|
|
|
|
|
|
|
components: { Sd, Js, Gd, Xq, Jd, Bj, Xgkc, Jy, Cz, CzBatch }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
showDetail: false, |
|
|
showDetail: false, |
|
|
@ -244,14 +240,14 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getList() |
|
|
|
|
|
|
|
|
this.handleQuery() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
//处置 |
|
|
//处置 |
|
|
handleCz(row) { |
|
|
handleCz(row) { |
|
|
this.$refs.Cz.show(row) |
|
|
this.$refs.Cz.show(row) |
|
|
}, |
|
|
}, |
|
|
//批量处置 |
|
|
|
|
|
|
|
|
//批量处置 |
|
|
handlePlcz() { |
|
|
handlePlcz() { |
|
|
this.$refs.CzBatch.showBatch(this.selectList) |
|
|
this.$refs.CzBatch.showBatch(this.selectList) |
|
|
}, |
|
|
}, |
|
|
@ -322,7 +318,7 @@ export default { |
|
|
this.queryParams.endDate = '' |
|
|
this.queryParams.endDate = '' |
|
|
} |
|
|
} |
|
|
this.loading = true |
|
|
this.loading = true |
|
|
mjy_list(this.queryParams).then(response => { |
|
|
|
|
|
|
|
|
sjkc_list(this.queryParams).then(response => { |
|
|
this.list = response.rows |
|
|
this.list = response.rows |
|
|
this.total = response.total |
|
|
this.total = response.total |
|
|
this.loading = false |
|
|
this.loading = false |
|
|
|