|
|
@ -1,6 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<div class="ytbd-list" v-show="!showDetail"> |
|
|
|
|
|
|
|
|
<div class="ytbd-list" v-show="!showDetail && !showEdit && !showAudit"> |
|
|
<div class="ytbd-search"> |
|
|
<div class="ytbd-search"> |
|
|
<el-form :model="searchForm" ref="searchForm" :inline="true"> |
|
|
<el-form :model="searchForm" ref="searchForm" :inline="true"> |
|
|
<el-form-item :label="$t('page.business.form.bdmc')" prop="name"> |
|
|
<el-form-item :label="$t('page.business.form.bdmc')" prop="name"> |
|
|
@ -59,8 +59,7 @@ |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="scope.row.bdzt === 1">{{ $t('page.business.form.statusTbz') }}</span> |
|
|
<span v-if="scope.row.bdzt === 1">{{ $t('page.business.form.statusTbz') }}</span> |
|
|
<span v-if="scope.row.bdzt === 3">{{ $t('page.business.form.statusYtj') }}</span> |
|
|
<span v-if="scope.row.bdzt === 3">{{ $t('page.business.form.statusYtj') }}</span> |
|
|
<span v-if="scope.row.bdzt === 5">{{ $t('page.business.form.statusWtg') }}</span> |
|
|
|
|
|
<span v-if="scope.row.bdzt === 10">{{ $t('page.business.form.statusYtg') }}</span> |
|
|
|
|
|
|
|
|
<span v-if="scope.row.bdzt === 5">{{ $t('page.business.form.statusYtg') }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
@ -74,8 +73,8 @@ |
|
|
<el-button type="text" @click="edit(scope.row)" v-if="scope.row.bdzt === 1">{{ |
|
|
<el-button type="text" @click="edit(scope.row)" v-if="scope.row.bdzt === 1">{{ |
|
|
$t('form.edit') }}</el-button> |
|
|
$t('form.edit') }}</el-button> |
|
|
<!-- 审核 --> |
|
|
<!-- 审核 --> |
|
|
<el-button type="text" @click="audit(scope.row)" |
|
|
|
|
|
v-if="scope.row.status === 3 || scope.row.status === 5">{{ $t('page.business.form.audit') }}</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" @click="audit(scope.row)" |
|
|
|
|
|
v-if="scope.row.bdzt === 3 ">{{ $t('page.business.form.audit') }}</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -85,17 +84,22 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<!-- 编辑 --> |
|
|
<!-- 编辑 --> |
|
|
<Bj v-show="showDetail" key="Bj" ref="Bj" @close="bjClose" /> |
|
|
|
|
|
|
|
|
<Bj v-show="showEdit" key="Bj" ref="Bj" @close="bjClose" /> |
|
|
|
|
|
<!-- 详情 --> |
|
|
|
|
|
<Xq v-show="showDetail" key="Xq" ref="Xq" @close="xqClose" /> |
|
|
|
|
|
<!-- 审核 --> |
|
|
|
|
|
<Sh v-show="showAudit" key="Sh" ref="Sh" @close="shClose" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
studyFormPre_list, |
|
|
|
|
|
studyFormPre_info |
|
|
|
|
|
|
|
|
studyFormPre_list |
|
|
} from '@/api/business/study/studyFormPre' |
|
|
} from '@/api/business/study/studyFormPre' |
|
|
import Bj from "./ytbd/Bj"; |
|
|
import Bj from "./ytbd/Bj"; |
|
|
|
|
|
import Xq from "./ytbd/Xq"; |
|
|
|
|
|
import Sh from "./ytbd/Sh"; |
|
|
export default { |
|
|
export default { |
|
|
name: 'YtbdList', |
|
|
name: 'YtbdList', |
|
|
props: { |
|
|
props: { |
|
|
@ -116,9 +120,11 @@ export default { |
|
|
deep: true |
|
|
deep: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components: { Bj }, |
|
|
|
|
|
|
|
|
components: { Bj, Xq,Sh }, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
showAudit: false, |
|
|
|
|
|
showEdit: false, |
|
|
showDetail: false, |
|
|
showDetail: false, |
|
|
daterange: [], |
|
|
daterange: [], |
|
|
searchForm: { |
|
|
searchForm: { |
|
|
@ -163,25 +169,39 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
add() { |
|
|
add() { |
|
|
this.showDetail = true |
|
|
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
|
|
|
|
|
this.showEdit = true |
|
|
|
|
|
this.$emit('showDetail', this.showEdit) |
|
|
this.$refs.Bj.edit({ studyId: this.searchForm.studyId }) |
|
|
this.$refs.Bj.edit({ studyId: this.searchForm.studyId }) |
|
|
}, |
|
|
}, |
|
|
edit(row) { |
|
|
edit(row) { |
|
|
this.showDetail = true |
|
|
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
|
|
|
|
|
this.showEdit = true |
|
|
|
|
|
this.$emit('showDetail', this.showEdit) |
|
|
this.$refs.Bj.edit(row) |
|
|
this.$refs.Bj.edit(row) |
|
|
}, |
|
|
}, |
|
|
bjClose() { |
|
|
bjClose() { |
|
|
|
|
|
this.showEdit = false |
|
|
|
|
|
this.$emit('showDetail', this.showEdit) |
|
|
|
|
|
this.search() |
|
|
|
|
|
}, |
|
|
|
|
|
xqClose() { |
|
|
this.showDetail = false |
|
|
this.showDetail = false |
|
|
this.$emit('showDetail', this.showDetail) |
|
|
this.$emit('showDetail', this.showDetail) |
|
|
this.search() |
|
|
this.search() |
|
|
}, |
|
|
}, |
|
|
|
|
|
shClose() { |
|
|
|
|
|
this.showAudit = false |
|
|
|
|
|
this.$emit('showDetail', this.showAudit) |
|
|
|
|
|
this.search() |
|
|
|
|
|
}, |
|
|
detail(row) { |
|
|
detail(row) { |
|
|
|
|
|
|
|
|
|
|
|
this.showDetail = true |
|
|
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
|
|
this.$refs.Xq.edit(row) |
|
|
}, |
|
|
}, |
|
|
audit(row) { |
|
|
audit(row) { |
|
|
|
|
|
|
|
|
|
|
|
this.showAudit = true |
|
|
|
|
|
this.$emit('showDetail', this.showAudit) |
|
|
|
|
|
this.$refs.Sh.edit(row) |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|