|
|
@ -1,5 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div > |
|
|
|
|
|
|
|
|
<div> |
|
|
<!-- 列表 --> |
|
|
<!-- 列表 --> |
|
|
<div> |
|
|
<div> |
|
|
<div class="gyzj" v-show="!showDetail"> |
|
|
<div class="gyzj" v-show="!showDetail"> |
|
|
@ -28,6 +28,7 @@ |
|
|
<el-select v-model="queryParams.zjzt" :placeholder="$t('form.placeholderSelect')" clearable |
|
|
<el-select v-model="queryParams.zjzt" :placeholder="$t('form.placeholderSelect')" clearable |
|
|
@change="handleQuery"> |
|
|
@change="handleQuery"> |
|
|
<el-option :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" /> |
|
|
<el-option :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" /> |
|
|
|
|
|
<el-option :label="$t('page.business.resource.resource.zjzt.wrk')" :value="2" /> |
|
|
<el-option :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" /> |
|
|
<el-option :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" /> |
|
|
<el-option :label="$t('page.business.resource.resource.zjzt.ysd')" :value="5" /> |
|
|
<el-option :label="$t('page.business.resource.resource.zjzt.ysd')" :value="5" /> |
|
|
<el-option :label="$t('page.business.resource.resource.zjzt.dgd')" :value="7" /> |
|
|
<el-option :label="$t('page.business.resource.resource.zjzt.dgd')" :value="7" /> |
|
|
@ -115,6 +116,7 @@ |
|
|
<el-table-column :label="$t('page.business.resource.gyzj.zjzt')" align="center" width="100px" fixed="right"> |
|
|
<el-table-column :label="$t('page.business.resource.gyzj.zjzt')" align="center" width="100px" fixed="right"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="scope.row.zjzt == 1">{{ $t('page.business.resource.resource.zjzt.rk') }}</span> |
|
|
<span v-if="scope.row.zjzt == 1">{{ $t('page.business.resource.resource.zjzt.rk') }}</span> |
|
|
|
|
|
<span v-if="scope.row.zjzt == 2">{{ $t('page.business.resource.resource.zjzt.wrk') }}</span> |
|
|
<span v-if="scope.row.zjzt == 3">{{ $t('page.business.resource.resource.zjzt.yff') }}</span> |
|
|
<span v-if="scope.row.zjzt == 3">{{ $t('page.business.resource.resource.zjzt.yff') }}</span> |
|
|
<span v-if="scope.row.zjzt == 5">{{ $t('page.business.resource.resource.zjzt.ysd') }}</span> |
|
|
<span v-if="scope.row.zjzt == 5">{{ $t('page.business.resource.resource.zjzt.ysd') }}</span> |
|
|
<span v-if="scope.row.zjzt == 7">{{ $t('page.business.resource.resource.zjzt.dgd') }}</span> |
|
|
<span v-if="scope.row.zjzt == 7">{{ $t('page.business.resource.resource.zjzt.dgd') }}</span> |
|
|
@ -167,8 +169,9 @@ |
|
|
</template> |
|
|
</template> |
|
|
<template v-if="scope.row.kcbjzt == 3 && (scope.row.zjzt == 1 || scope.row.zjzt == 3)"> |
|
|
<template v-if="scope.row.kcbjzt == 3 && (scope.row.zjzt == 1 || scope.row.zjzt == 3)"> |
|
|
<!-- 审核修改库存 --> |
|
|
<!-- 审核修改库存 --> |
|
|
<el-button type="text" @click="handleShxgkc(scope.row)" v-hasPermi="['business:resource:gyzj:shxgkc']">{{ |
|
|
|
|
|
$t('page.business.resource.gyzj.shxgkc') }}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" @click="handleShxgkc(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:resource:gyzj:shxgkc']">{{ |
|
|
|
|
|
$t('page.business.resource.gyzj.shxgkc') }}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template v-if="scope.row.zjzt == 5"> |
|
|
<template v-if="scope.row.zjzt == 5"> |
|
|
<!-- 解锁 --> |
|
|
<!-- 解锁 --> |
|
|
@ -178,11 +181,16 @@ |
|
|
<el-button type="text" @click="handleGd(scope.row)" v-hasPermi="['business:resource:gyzj:gd']">{{ |
|
|
<el-button type="text" @click="handleGd(scope.row)" v-hasPermi="['business:resource:gyzj:gd']">{{ |
|
|
$t('page.business.resource.gyzj.guidang') }}</el-button> |
|
|
$t('page.business.resource.gyzj.guidang') }}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template v-if="scope.row.zjzt == 3&&scope.row.ghzt == 3"> |
|
|
|
|
|
<!-- 归还 --> |
|
|
|
|
|
|
|
|
<template v-if="scope.row.zjzt == 3 && scope.row.ghzt == 3"> |
|
|
|
|
|
<!-- 确认归还 --> |
|
|
<el-button type="text" @click="handleGh(scope.row)" v-hasPermi="['business:resource:gyzj:gh']">{{ |
|
|
<el-button type="text" @click="handleGh(scope.row)" v-hasPermi="['business:resource:gyzj:gh']">{{ |
|
|
$t('page.business.resource.gyzj.guihuan') }}</el-button> |
|
|
$t('page.business.resource.gyzj.guihuan') }}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
<template v-if="scope.row.zjzt == 2 && scope.row.rksqzt == 3"> |
|
|
|
|
|
<!-- 确认入库 --> |
|
|
|
|
|
<el-button type="text" @click="handleRk(scope.row)" v-hasPermi="['business:resource:gyzj:rk']">{{ |
|
|
|
|
|
$t('page.business.resource.gyzj.qrrk') }}</el-button> |
|
|
|
|
|
</template> |
|
|
<template v-if="scope.row.zjzt == 9"> |
|
|
<template v-if="scope.row.zjzt == 9"> |
|
|
<!-- 解档 --> |
|
|
<!-- 解档 --> |
|
|
<el-button type="text" @click="handleJd(scope.row)" v-hasPermi="['business:resource:gyzj:jd']">{{ |
|
|
<el-button type="text" @click="handleJd(scope.row)" v-hasPermi="['business:resource:gyzj:jd']">{{ |
|
|
@ -216,8 +224,10 @@ |
|
|
<Shxgkc key="Shxgkc" ref="Shxgkc" @callback="handleQuery" /> |
|
|
<Shxgkc key="Shxgkc" ref="Shxgkc" @callback="handleQuery" /> |
|
|
<!-- 借阅 --> |
|
|
<!-- 借阅 --> |
|
|
<Jy key="Jy" ref="Jy" @callback="handleQuery" /> |
|
|
<Jy key="Jy" ref="Jy" @callback="handleQuery" /> |
|
|
<!-- 归还 --> |
|
|
|
|
|
|
|
|
<!-- 确认归还 --> |
|
|
<Gh key="Gh" ref="Gh" @callback="handleQuery" /> |
|
|
<Gh key="Gh" ref="Gh" @callback="handleQuery" /> |
|
|
|
|
|
<!-- 确认入库 --> |
|
|
|
|
|
<Rk key="Rk" ref="Rk" @callback="handleQuery" /> |
|
|
<!-- 发放 --> |
|
|
<!-- 发放 --> |
|
|
<Ff key="Ff" ref="Ff" @callback="handleQuery" /> |
|
|
<Ff key="Ff" ref="Ff" @callback="handleQuery" /> |
|
|
<!-- 处置药剂 --> |
|
|
<!-- 处置药剂 --> |
|
|
@ -245,6 +255,7 @@ import Xgkc from "./gyzj/Xgkc"; |
|
|
import Shxgkc from "./gyzj/Shxgkc"; |
|
|
import Shxgkc from "./gyzj/Shxgkc"; |
|
|
import Jy from "./gyzj/Jy"; |
|
|
import Jy from "./gyzj/Jy"; |
|
|
import Gh from "./gyzj/Gh"; |
|
|
import Gh from "./gyzj/Gh"; |
|
|
|
|
|
import Rk from "./gyzj/Rk"; |
|
|
import Ff from "./gyzj/Ff"; |
|
|
import Ff from "./gyzj/Ff"; |
|
|
import Czrq from "./gyzj/Czrq"; |
|
|
import Czrq from "./gyzj/Czrq"; |
|
|
import Czyj from "./gyzj/Czyj"; |
|
|
import Czyj from "./gyzj/Czyj"; |
|
|
@ -253,14 +264,14 @@ import moment from "moment"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "GyzjList", |
|
|
name: "GyzjList", |
|
|
components: { Sd, Js, Gd, Xq, Jd, Bj, Shbj, Xgkc, Shxgkc, Jy, Gh, Czyj, Czrq, Ff, Ysff }, |
|
|
|
|
|
|
|
|
components: { Rk, Sd, Js, Gd, Xq, Jd, Bj, Shbj, Xgkc, Shxgkc, Jy, Gh, Czyj, Czrq, Ff, Ysff }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
daterange: [], |
|
|
daterange: [], |
|
|
loading: true, |
|
|
loading: true, |
|
|
single: true, |
|
|
single: true, |
|
|
multiple: true, |
|
|
multiple: true, |
|
|
showDetail:false, |
|
|
|
|
|
|
|
|
showDetail: false, |
|
|
total: 0, |
|
|
total: 0, |
|
|
list: [], |
|
|
list: [], |
|
|
//勾选列表 |
|
|
//勾选列表 |
|
|
@ -334,23 +345,27 @@ export default { |
|
|
handleJy(row) { |
|
|
handleJy(row) { |
|
|
this.$refs.Jy.show(row) |
|
|
this.$refs.Jy.show(row) |
|
|
}, |
|
|
}, |
|
|
//归还 |
|
|
|
|
|
|
|
|
//确认归还 |
|
|
handleGh(row) { |
|
|
handleGh(row) { |
|
|
this.$refs.Gh.show(row) |
|
|
this.$refs.Gh.show(row) |
|
|
}, |
|
|
}, |
|
|
|
|
|
//确认入库 |
|
|
|
|
|
handleRk(row) { |
|
|
|
|
|
this.$refs.Rk.show(row) |
|
|
|
|
|
}, |
|
|
//是否可勾选 |
|
|
//是否可勾选 |
|
|
checkSelectable(row) { |
|
|
checkSelectable(row) { |
|
|
return true; |
|
|
return true; |
|
|
}, |
|
|
}, |
|
|
closeXq(){ |
|
|
|
|
|
this.showDetail=false |
|
|
|
|
|
|
|
|
closeXq() { |
|
|
|
|
|
this.showDetail = false |
|
|
this.handleQuery() |
|
|
this.handleQuery() |
|
|
this.$emit('showDetail',this.showDetail) |
|
|
|
|
|
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
}, |
|
|
}, |
|
|
//详情 |
|
|
//详情 |
|
|
handleXq(row) { |
|
|
handleXq(row) { |
|
|
this.showDetail=true |
|
|
|
|
|
this.$emit('showDetail',this.showDetail) |
|
|
|
|
|
|
|
|
this.showDetail = true |
|
|
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
this.$refs.Xq.show(row) |
|
|
this.$refs.Xq.show(row) |
|
|
}, |
|
|
}, |
|
|
//批量解锁 |
|
|
//批量解锁 |
|
|
|