|
|
@ -1,7 +1,7 @@ |
|
|
<!-- 饲养间列表 --> |
|
|
<!-- 饲养间列表 --> |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<div class="tbbd-list"> |
|
|
|
|
|
|
|
|
<div class="tbbd-list" v-show="!showDetail"> |
|
|
<div class="tbbd-search"> |
|
|
<div class="tbbd-search"> |
|
|
<el-form :model="searchForm" ref="searchForm" class="search-area" :inline="true" label-width="88px"> |
|
|
<el-form :model="searchForm" ref="searchForm" class="search-area" :inline="true" label-width="88px"> |
|
|
<el-row> |
|
|
<el-row> |
|
|
@ -46,6 +46,8 @@ |
|
|
<el-col> |
|
|
<el-col> |
|
|
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyRoom:add']">{{ |
|
|
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:studyRoom:add']">{{ |
|
|
$t('page.business.study.studyRoom.xzqy') }}</el-button> |
|
|
$t('page.business.study.studyRoom.xzqy') }}</el-button> |
|
|
|
|
|
<el-button type="primary" @click="handleExport()" v-hasPermi="['business:studyRoom:export']">{{ |
|
|
|
|
|
$t('form.export') }}</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
@ -68,15 +70,19 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200"> |
|
|
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<!-- 笼具记录 --> |
|
|
|
|
|
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyRoom:ljjl']">{{ |
|
|
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:studyRoom:ljjl']">{{ |
|
|
|
|
|
$t('page.business.study.studyRoom.xq') }}</el-button> |
|
|
|
|
|
<!-- 笼具记录 --> |
|
|
|
|
|
<el-button type="text" @click="ljHistory(scope.row)" v-hasPermi="['business:studyRoom:ljjl']">{{ |
|
|
$t('page.business.study.studyRoom.ljjl') }}</el-button> |
|
|
$t('page.business.study.studyRoom.ljjl') }}</el-button> |
|
|
<!-- 更换笼具 --> |
|
|
<!-- 更换笼具 --> |
|
|
<el-button type="text" v-if="scope.row.zt === 1" @click="edit(scope.row)" v-hasPermi="['business:studyRoom:update']">{{ |
|
|
|
|
|
$t('page.business.study.studyRoom.ghlj') }}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" v-if="scope.row.zt === 1" @click="edit(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:studyRoom:update']">{{ |
|
|
|
|
|
$t('page.business.study.studyRoom.ghlj') }}</el-button> |
|
|
<!-- 结束 --> |
|
|
<!-- 结束 --> |
|
|
<el-button type="text" v-if="scope.row.zt === 1" @click="end(scope.row)" v-hasPermi="['business:studyRoom:js']">{{ |
|
|
|
|
|
$t('page.business.study.studyRoom.js') }}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" v-if="scope.row.zt === 1" @click="end(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:studyRoom:js']">{{ |
|
|
|
|
|
$t('page.business.study.studyRoom.js') }}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -93,6 +99,8 @@ |
|
|
<Js key="Js" ref="Js" @callback="search" /> |
|
|
<Js key="Js" ref="Js" @callback="search" /> |
|
|
<!-- 笼具更换记录 --> |
|
|
<!-- 笼具更换记录 --> |
|
|
<Jl key="Jl" ref="Jl" @callback="search" /> |
|
|
<Jl key="Jl" ref="Jl" @callback="search" /> |
|
|
|
|
|
<!-- 详情 --> |
|
|
|
|
|
<Detail key="Detail" ref="Detail" @callback="search" @close="xqClose" v-show="showDetail"/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
@ -103,6 +111,7 @@ import Xz from "./syj/Xz"; |
|
|
import Bj from "./syj/Bj"; |
|
|
import Bj from "./syj/Bj"; |
|
|
import Js from "./syj/Js"; |
|
|
import Js from "./syj/Js"; |
|
|
import Jl from "./syj/Jl"; |
|
|
import Jl from "./syj/Jl"; |
|
|
|
|
|
import Detail from "./syj/Detail"; |
|
|
import { mapGetters } from 'vuex' |
|
|
import { mapGetters } from 'vuex' |
|
|
import moment from "moment"; |
|
|
import moment from "moment"; |
|
|
export default { |
|
|
export default { |
|
|
@ -134,11 +143,11 @@ export default { |
|
|
deep: true |
|
|
deep: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components: { Xz, Bj, Js, Jl }, |
|
|
|
|
|
|
|
|
components: { Xz, Bj, Js, Jl, Detail }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
showDetail: false, |
|
|
daterange: [], |
|
|
daterange: [], |
|
|
showFh: false, |
|
|
|
|
|
daterange: [], |
|
|
daterange: [], |
|
|
searchForm: { |
|
|
searchForm: { |
|
|
pageNum: 1, |
|
|
pageNum: 1, |
|
|
@ -184,7 +193,7 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
add() { |
|
|
add() { |
|
|
this.$refs.Xz.show(this.study.studyId); |
|
|
|
|
|
|
|
|
this.$refs.Xz.show(this.study.id); |
|
|
}, |
|
|
}, |
|
|
edit(row) { |
|
|
edit(row) { |
|
|
this.$refs.Bj.show(row) |
|
|
this.$refs.Bj.show(row) |
|
|
@ -192,12 +201,28 @@ export default { |
|
|
end(row) { |
|
|
end(row) { |
|
|
this.$refs.Js.show(row) |
|
|
this.$refs.Js.show(row) |
|
|
}, |
|
|
}, |
|
|
detail(row) { |
|
|
|
|
|
|
|
|
ljHistory(row) { |
|
|
this.$refs.Jl.show(row) |
|
|
this.$refs.Jl.show(row) |
|
|
// this.showDetail = true |
|
|
// this.showDetail = true |
|
|
// this.$emit('showDetail', this.showDetail) |
|
|
// this.$emit('showDetail', this.showDetail) |
|
|
// this.$refs.Xq.show(row) |
|
|
// this.$refs.Xq.show(row) |
|
|
}, |
|
|
}, |
|
|
|
|
|
detail(row) { |
|
|
|
|
|
this.showDetail = true |
|
|
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
|
|
this.$refs.Detail.show(row) |
|
|
|
|
|
// this.showDetail = true |
|
|
|
|
|
// this.$emit('showDetail', this.showDetail) |
|
|
|
|
|
// this.$refs.Xq.show(row) |
|
|
|
|
|
}, |
|
|
|
|
|
handleExport() { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
xqClose() { |
|
|
|
|
|
this.showDetail = false |
|
|
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
|
|
this.search() |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|