|
|
|
@ -1,155 +1,156 @@ |
|
|
|
<template> |
|
|
|
<div class="ytbd-list"> |
|
|
|
<div class="ytbd-search"> |
|
|
|
<el-form :model="searchForm" ref="searchForm" :inline="true"> |
|
|
|
<el-form-item :label="$t('page.business.form.bdmc')" prop="name"> |
|
|
|
<el-input v-model="searchForm.name" :placeholder="$t('form.placeholderInput')" clearable style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('page.business.form.bdbh')" prop="sn"> |
|
|
|
<el-input v-model="searchForm.sn" :placeholder="$t('form.placeholderInput')" clearable style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('page.business.form.gsr')" prop="ownerName"> |
|
|
|
<el-input v-model="searchForm.ownerName" :placeholder="$t('form.placeholderInput')" clearable style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('page.business.form.xtmbmc')" prop="templateName"> |
|
|
|
<el-input v-model="searchForm.templateName" :placeholder="$t('form.placeholderInput')" clearable style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item :label="$t('page.business.form.cjsj')"> |
|
|
|
<el-date-picker v-model="daterange" clearable type="daterange" range-separator="-" :start-placeholder="$t('page.business.form.startDate')" |
|
|
|
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd" @change="search" style="width: 220px" /> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item :label="$t('page.business.form.tjsj')"> |
|
|
|
<el-date-picker v-model="daterangeTj" clearable type="daterange" range-separator="-" :start-placeholder="$t('page.business.form.startDate')" |
|
|
|
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd" @change="search" style="width: 220px" /> |
|
|
|
</el-form-item> |
|
|
|
<div> |
|
|
|
<div class="tbbd-list" v-show="!showDetail && !showEdit && !showAudit"> |
|
|
|
<div class="tbbd-search"> |
|
|
|
<el-form :model="searchForm" ref="searchForm" :inline="true"> |
|
|
|
<el-form-item :label="$t('page.business.form.bdmc')" prop="name"> |
|
|
|
<el-input v-model="searchForm.bdmc" :placeholder="$t('form.placeholderInput')" clearable |
|
|
|
style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('page.business.form.bdbh')" prop="sn"> |
|
|
|
<el-input v-model="searchForm.bdbh" :placeholder="$t('form.placeholderInput')" clearable |
|
|
|
style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('page.business.form.gsr')" prop="userId"> |
|
|
|
<el-input v-model="searchForm.userId" :placeholder="$t('form.placeholderInput')" clearable |
|
|
|
style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('page.business.form.xtmbmc')" prop="templateName"> |
|
|
|
<el-input v-model="searchForm.templateMc" :placeholder="$t('form.placeholderInput')" clearable |
|
|
|
style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item :label="$t('page.business.form.sfwbl')"> |
|
|
|
<el-select v-model="searchForm.sfwbl" clearable :placeholder="$t('form.placeholderSelect')" @change="search"> |
|
|
|
<el-option :label="$t('page.business.form.yes')" :value="10"></el-option> |
|
|
|
<el-option :label="$t('page.business.form.no')" :value="1"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('page.business.form.cjsj')"> |
|
|
|
<el-date-picker v-model="daterange" clearable type="daterange" range-separator="-" |
|
|
|
:start-placeholder="$t('page.business.form.startDate')" |
|
|
|
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd" @change="search" |
|
|
|
style="width: 220px" /> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search">{{ $t('form.search') }}</el-button> |
|
|
|
<el-button icon="el-icon-refresh" @click="reset">{{ $t('form.reset') }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<!-- <div> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search">{{ $t('form.search') }}</el-button> |
|
|
|
<el-button icon="el-icon-refresh" @click="reset">{{ $t('form.reset') }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
</div> --> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<div class="ytbd-content"> |
|
|
|
<el-row class="add-box"> |
|
|
|
<el-col> |
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="edit(null)" v-hasPermi="['business:study:add']">{{ $t('page.business.form.xzytbd') }}</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list"> |
|
|
|
<el-table-column :label="$t('page.business.form.bh')" prop="sn" /> |
|
|
|
<el-table-column :label="$t('page.business.form.bdmc')" prop="name" /> |
|
|
|
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateName" /> |
|
|
|
<el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" /> |
|
|
|
<el-table-column :label="$t('page.business.form.gsr')" align="center" prop="ownerName" width="100" /> |
|
|
|
<el-table-column :label="$t('page.business.form.sfwbl')" prop="sfwbl" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="scope.row.sfwbl===1">{{$t('page.business.form.no')}}</span> |
|
|
|
<span v-if="scope.row.sfwbl===10">{{$t('page.business.form.yes')}}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column :label="$t('page.business.form.status')" prop="status" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="scope.row.status===1">{{$t('page.business.form.statusBdTbz')}}</span> |
|
|
|
<span v-if="scope.row.status===3">{{$t('page.business.form.statusBdYtj')}}</span> |
|
|
|
<span v-if="scope.row.status===5">{{$t('page.business.form.statusBdYwc')}}</span> |
|
|
|
<span v-if="scope.row.status===7">{{$t('page.business.form.statusBdYwcJfh')}}</span> |
|
|
|
<span v-if="scope.row.status===9">{{$t('page.business.form.statusBdDfz')}}</span> |
|
|
|
<span v-if="scope.row.status===10">{{$t('page.business.form.statusBdYfz')}}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="submitTime" width="140" /> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column :label="$t('form.operate')" fixed="right" align="center" width="300"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- 详情 --> |
|
|
|
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:study:detail']">{{$t('page.business.form.detail')}}</el-button> |
|
|
|
<!-- 编辑 --> |
|
|
|
<el-button type="text" @click="edit(scope.row)" v-hasPermi="['business:study:edit']" v-if="scope.row.status===1 || scope.row.status===5 || scope.row.status===7">{{$t('page.business.form.edit')}}</el-button> |
|
|
|
<!-- 加签 --> |
|
|
|
<el-button type="text" @click="jq(scope.row)" v-if="scope.row.status===1">{{$t('page.business.form.jq')}}</el-button> |
|
|
|
<!-- 更换归属人 --> |
|
|
|
<el-button type="text" @click="changeOwner(scope.row)" v-if="scope.row.status!==9 && scope.row.status!==10">{{$t('page.business.form.ghgsr')}}</el-button> |
|
|
|
<!-- 废止 --> |
|
|
|
<el-button type="text" @click="fz(scope.row)" v-if="scope.row.status===1">{{$t('page.business.form.fz')}}</el-button> |
|
|
|
<!-- 复核 --> |
|
|
|
<el-button type="text" @click="fh(scope.row)" v-if="scope.row.status===3">{{$t('page.business.form.fh')}}</el-button> |
|
|
|
<!-- 审阅 --> |
|
|
|
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:study:audit']" v-if="scope.row.status===5 || scope.row.status===7">{{$t('page.business.form.sy')}}</el-button> |
|
|
|
<!-- 观察 --> |
|
|
|
<el-button type="text" @click="gc(scope.row)" v-hasPermi="['business:study:audit']" v-if="scope.row.status===1">{{$t('page.business.form.gc')}}</el-button> |
|
|
|
<!-- 确认废止 --> |
|
|
|
<el-button type="text" @click="qrfz(scope.row)" v-hasPermi="['business:study:audit']" v-if="scope.row.status===9">{{$t('page.business.form.qrfz')}}</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<pagination |
|
|
|
v-show="total>0" |
|
|
|
:total="total" |
|
|
|
:page.sync="searchForm.pageNum" |
|
|
|
:limit.sync="searchForm.pageSize" |
|
|
|
@pagination="getList" |
|
|
|
/> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<div class="tbbd-content"> |
|
|
|
<el-row class="add-box"> |
|
|
|
<el-col> |
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="add()" v-hasPermi="['business:study:add']">{{ |
|
|
|
$t('page.business.study.studyFormFill.xztbbd') }}</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list"> |
|
|
|
<el-table-column :label="$t('page.business.form.bh')" prop="bdbh" /> |
|
|
|
<el-table-column :label="$t('page.business.form.bdmc')" prop="bdmc" /> |
|
|
|
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateMc" /> |
|
|
|
<el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" /> |
|
|
|
<el-table-column :label="$t('page.business.form.cjr')" align="center" prop="userMc" width="100" /> |
|
|
|
|
|
|
|
<el-table-column :label="$t('page.business.form.status')" prop="status" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<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 === 5">{{ $t('page.business.form.statusYtg') }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column :label="$t('form.operate')" fixed="right" align="center" width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- 详情 --> |
|
|
|
<el-button type="text" @click="detail(scope.row)">{{ |
|
|
|
$t('form.detail') }}</el-button> |
|
|
|
<!-- 编辑 --> |
|
|
|
<el-button type="text" @click="edit(scope.row)" v-if="scope.row.bdzt === 1">{{ |
|
|
|
$t('form.edit') }}</el-button> |
|
|
|
<template v-if="scope.row.fzrsh == 10"> |
|
|
|
<template v-if="scope.row.fzrshzt == 5"> |
|
|
|
<!-- 负责人审核 --> |
|
|
|
<el-button type="text" @click="audit(scope.row)" v-if="scope.row.bdzt === 3 && id == leader">{{ |
|
|
|
$t('page.business.form.audit') }}</el-button> |
|
|
|
</template> |
|
|
|
<template> |
|
|
|
<!-- 有权限审核 --> |
|
|
|
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:studyFormFill:audit']" |
|
|
|
v-if="scope.row.bdzt === 3">{{ $t('page.business.form.audit') }}</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<!-- 有权限审核 --> |
|
|
|
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:studyFormFill:audit']" |
|
|
|
v-if="scope.row.bdzt === 3">{{ $t('page.business.form.audit') }}</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<pagination v-show="total > 0" :total="total" :page.sync="searchForm.pageNum" :limit.sync="searchForm.pageSize" |
|
|
|
@pagination="getList" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 编辑 --> |
|
|
|
<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> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { |
|
|
|
study_list, |
|
|
|
study_info, |
|
|
|
study_save, |
|
|
|
study_delete |
|
|
|
} from '@/api/business/study/study' |
|
|
|
studyFormFill_list |
|
|
|
} from '@/api/business/study/studyFormFill' |
|
|
|
import Bj from "./tbbd/Bj"; |
|
|
|
import Xq from "./tbbd/Xq"; |
|
|
|
import Sh from "./tbbd/Sh"; |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
export default { |
|
|
|
name: 'TbbdList', |
|
|
|
name: 'YtbdList', |
|
|
|
props: { |
|
|
|
study:{ |
|
|
|
type:Object, |
|
|
|
default:()=>{ |
|
|
|
study: { |
|
|
|
type: Object, |
|
|
|
default: () => { |
|
|
|
return {} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
components: {}, |
|
|
|
computed: {}, |
|
|
|
filters: {}, |
|
|
|
computed: { |
|
|
|
...mapGetters([ |
|
|
|
'id' |
|
|
|
]), |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
study: { |
|
|
|
handler(newVal) { |
|
|
|
this.searchForm.studyId = newVal.id |
|
|
|
this.leader = newVal.leader |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
immediate: true, |
|
|
|
deep: true |
|
|
|
} |
|
|
|
}, |
|
|
|
components: { Bj, Xq, Sh }, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
daterange:[], |
|
|
|
daterangeTj:[], |
|
|
|
leader: null, |
|
|
|
showAudit: false, |
|
|
|
showEdit: false, |
|
|
|
showDetail: false, |
|
|
|
daterange: [], |
|
|
|
searchForm: { |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
sn:'', |
|
|
|
name:'', |
|
|
|
ownerName:'', |
|
|
|
templateName:'', |
|
|
|
startDate:'', |
|
|
|
endDate:'', |
|
|
|
tjStartDate:'', |
|
|
|
tjEndDate:'', |
|
|
|
studyId: '', |
|
|
|
bdbh: '', |
|
|
|
bdmc: '', |
|
|
|
userId: '', |
|
|
|
templateMc: '', |
|
|
|
startDate: '', |
|
|
|
endDate: '', |
|
|
|
}, |
|
|
|
|
|
|
|
loading: false, |
|
|
|
@ -157,61 +158,85 @@ export default { |
|
|
|
list: [], |
|
|
|
} |
|
|
|
}, |
|
|
|
created() {}, |
|
|
|
created() { }, |
|
|
|
methods: { |
|
|
|
search(){ |
|
|
|
|
|
|
|
search() { |
|
|
|
this.searchForm.pageNum = 1 |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
reset(){ |
|
|
|
reset() { |
|
|
|
|
|
|
|
}, |
|
|
|
getList(){ |
|
|
|
|
|
|
|
}, |
|
|
|
edit(row){ |
|
|
|
|
|
|
|
}, |
|
|
|
detail(row){ |
|
|
|
|
|
|
|
getList() { |
|
|
|
if (this.daterange != null && this.daterange.length > 0) { |
|
|
|
this.searchForm.startDate = this.daterange[0] |
|
|
|
this.searchForm.endDate = moment().add(this.daterange[1], 'days').format('YYYY-MM-DD'); |
|
|
|
} else { |
|
|
|
this.searchForm.startDate = '' |
|
|
|
this.searchForm.endDate = '' |
|
|
|
} |
|
|
|
this.loading = true |
|
|
|
studyFormFill_list(this.searchForm).then(response => { |
|
|
|
this.list = response.rows |
|
|
|
this.total = response.total |
|
|
|
this.loading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
audit(row){ |
|
|
|
|
|
|
|
add() { |
|
|
|
this.showEdit = true |
|
|
|
this.$emit('showDetail', this.showEdit) |
|
|
|
this.$refs.Bj.edit({ studyId: this.searchForm.studyId }) |
|
|
|
}, |
|
|
|
jq(row){ |
|
|
|
|
|
|
|
edit(row) { |
|
|
|
this.showEdit = true |
|
|
|
this.$emit('showDetail', this.showEdit) |
|
|
|
this.$refs.Bj.edit(row) |
|
|
|
}, |
|
|
|
changeOwner(row){ |
|
|
|
|
|
|
|
bjClose() { |
|
|
|
this.showEdit = false |
|
|
|
this.$emit('showDetail', this.showEdit) |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
fz(row){ |
|
|
|
|
|
|
|
xqClose() { |
|
|
|
this.showDetail = false |
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
fh(row){ |
|
|
|
|
|
|
|
shClose() { |
|
|
|
this.showAudit = false |
|
|
|
this.$emit('showDetail', this.showAudit) |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
gc(row){ |
|
|
|
|
|
|
|
detail(row) { |
|
|
|
this.showDetail = true |
|
|
|
this.$emit('showDetail', this.showDetail) |
|
|
|
this.$refs.Xq.show(row) |
|
|
|
}, |
|
|
|
qrfz(row){ |
|
|
|
|
|
|
|
audit(row) { |
|
|
|
this.showAudit = true |
|
|
|
this.$emit('showDetail', this.showAudit) |
|
|
|
this.$refs.Sh.show(row) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.ytbd-list { |
|
|
|
.ytbd-search{ |
|
|
|
.tbbd-list { |
|
|
|
.tbbd-search { |
|
|
|
background: #fff; |
|
|
|
padding: 20px; |
|
|
|
margin-bottom: 10px; |
|
|
|
.right-btn{ |
|
|
|
text-align:right |
|
|
|
|
|
|
|
.right-btn { |
|
|
|
text-align: right |
|
|
|
} |
|
|
|
} |
|
|
|
.ytbd-content{ |
|
|
|
|
|
|
|
.tbbd-content { |
|
|
|
padding: 20px; |
|
|
|
background: #fff; |
|
|
|
.add-box{ |
|
|
|
|
|
|
|
.add-box { |
|
|
|
margin-bottom: 10px; |
|
|
|
} |
|
|
|
} |
|
|
|
|