|
|
@ -49,11 +49,11 @@ |
|
|
</template> |
|
|
</template> |
|
|
<el-form :inline="true" label-position="top" class="search-form"> |
|
|
<el-form :inline="true" label-position="top" class="search-form"> |
|
|
<el-form-item label="试验单号"> |
|
|
<el-form-item label="试验单号"> |
|
|
<el-input v-model="queryHeaderData.applyNo" placeholder="支持模糊查询" clearable style="width: 150px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="searchData.applyNo" placeholder="支持模糊查询" clearable style="width: 150px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="事业部"> |
|
|
<el-form-item label="事业部"> |
|
|
<el-select v-model="queryHeaderData.buNo" placeholder="请选择" clearable style="width: 120px"> |
|
|
|
|
|
|
|
|
<el-select v-model="searchData.buNo" placeholder="请选择" clearable style="width: 120px"> |
|
|
<el-option label="全部" value=""></el-option> |
|
|
<el-option label="全部" value=""></el-option> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="i in buList" |
|
|
v-for="i in buList" |
|
|
@ -65,7 +65,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="试验类型"> |
|
|
<el-form-item label="试验类型"> |
|
|
<el-select v-model="queryHeaderData.experimentType" placeholder="请选择" clearable style="width: 120px"> |
|
|
|
|
|
|
|
|
<el-select v-model="searchData.experimentType" placeholder="请选择" clearable style="width: 120px"> |
|
|
<el-option label="全部" value=""></el-option> |
|
|
<el-option label="全部" value=""></el-option> |
|
|
<el-option label="High Risk" value="High Risk"></el-option> |
|
|
<el-option label="High Risk" value="High Risk"></el-option> |
|
|
<el-option label="Low Risk" value="Low Risk"></el-option> |
|
|
<el-option label="Low Risk" value="Low Risk"></el-option> |
|
|
@ -73,24 +73,24 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="试验名称"> |
|
|
<el-form-item label="试验名称"> |
|
|
<el-input v-model="queryHeaderData.title" placeholder="支持模糊查询" clearable style="width: 150px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="searchData.title" placeholder="支持模糊查询" clearable style="width: 150px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="项目编号"> |
|
|
<el-form-item label="项目编号"> |
|
|
<el-input v-model="queryHeaderData.projectNo" placeholder="支持模糊查询" clearable style="width: 150px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="searchData.projectNo" placeholder="支持模糊查询" clearable style="width: 150px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="产品型号"> |
|
|
<el-form-item label="产品型号"> |
|
|
<el-input v-model="queryHeaderData.productType" placeholder="支持模糊查询" clearable style="width: 150px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="searchData.productType" placeholder="支持模糊查询" clearable style="width: 150px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="试验负责人"> |
|
|
<el-form-item label="试验负责人"> |
|
|
<el-input v-model="queryHeaderData.projectLeader" placeholder="支持模糊查询" clearable style="width: 120px"></el-input> |
|
|
|
|
|
|
|
|
<el-input v-model="searchData.projectLeader" placeholder="支持模糊查询" clearable style="width: 120px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="申请开始日期"> |
|
|
<el-form-item label="申请开始日期"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="queryHeaderData.createStartDate" |
|
|
|
|
|
|
|
|
v-model="searchData.createStartDate" |
|
|
type="date" |
|
|
type="date" |
|
|
placeholder="选择日期" |
|
|
placeholder="选择日期" |
|
|
value-format="yyyy-MM-dd" |
|
|
value-format="yyyy-MM-dd" |
|
|
@ -100,7 +100,7 @@ |
|
|
|
|
|
|
|
|
<el-form-item label="申请结束日期"> |
|
|
<el-form-item label="申请结束日期"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="queryHeaderData.createEndDate" |
|
|
|
|
|
|
|
|
v-model="searchData.createEndDate" |
|
|
type="date" |
|
|
type="date" |
|
|
placeholder="选择日期" |
|
|
placeholder="选择日期" |
|
|
value-format="yyyy-MM-dd" |
|
|
value-format="yyyy-MM-dd" |
|
|
@ -462,7 +462,7 @@ export default { |
|
|
searchExpanded: ['0'], // 搜索条件默认展开 |
|
|
searchExpanded: ['0'], // 搜索条件默认展开 |
|
|
|
|
|
|
|
|
// 查询条件 |
|
|
// 查询条件 |
|
|
queryHeaderData: { |
|
|
|
|
|
|
|
|
searchData: { |
|
|
applyNo: '', |
|
|
applyNo: '', |
|
|
buNo: '', |
|
|
buNo: '', |
|
|
experimentType: '', |
|
|
experimentType: '', |
|
|
@ -555,14 +555,14 @@ export default { |
|
|
this.pageIndex = 1 |
|
|
this.pageIndex = 1 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.queryHeaderData.page = this.pageIndex |
|
|
|
|
|
this.queryHeaderData.limit = this.pageSize |
|
|
|
|
|
this.queryHeaderData.currentUserId = this.$store.state.user.id |
|
|
|
|
|
this.queryHeaderData.pageType = 'MANAGER' // 经理审批页面,只查询经理审批节点 |
|
|
|
|
|
|
|
|
this.searchData.page = this.pageIndex |
|
|
|
|
|
this.searchData.limit = this.pageSize |
|
|
|
|
|
this.searchData.currentUserId = this.$store.state.user.id |
|
|
|
|
|
this.searchData.pageType = 'MANAGER' // 经理审批页面,只查询经理审批节点 |
|
|
|
|
|
|
|
|
this.dataListLoading = true |
|
|
this.dataListLoading = true |
|
|
|
|
|
|
|
|
getPendingApplyList(this.queryHeaderData).then(({data}) => { |
|
|
|
|
|
|
|
|
getPendingApplyList(this.searchData).then(({data}) => { |
|
|
this.dataListLoading = false |
|
|
this.dataListLoading = false |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.dataList = data.page.list || [] |
|
|
this.dataList = data.page.list || [] |
|
|
@ -606,15 +606,15 @@ export default { |
|
|
* 重置查询条件 |
|
|
* 重置查询条件 |
|
|
*/ |
|
|
*/ |
|
|
resetQuery() { |
|
|
resetQuery() { |
|
|
this.queryHeaderData.applyNo = '' |
|
|
|
|
|
this.queryHeaderData.buNo = '' |
|
|
|
|
|
this.queryHeaderData.experimentType = '' |
|
|
|
|
|
this.queryHeaderData.title = '' |
|
|
|
|
|
this.queryHeaderData.projectNo = '' |
|
|
|
|
|
this.queryHeaderData.productType = '' |
|
|
|
|
|
this.queryHeaderData.creatorName = '' |
|
|
|
|
|
this.queryHeaderData.createStartDate = '' |
|
|
|
|
|
this.queryHeaderData.createEndDate = '' |
|
|
|
|
|
|
|
|
this.searchData.applyNo = '' |
|
|
|
|
|
this.searchData.buNo = '' |
|
|
|
|
|
this.searchData.experimentType = '' |
|
|
|
|
|
this.searchData.title = '' |
|
|
|
|
|
this.searchData.projectNo = '' |
|
|
|
|
|
this.searchData.productType = '' |
|
|
|
|
|
this.searchData.creatorName = '' |
|
|
|
|
|
this.searchData.createStartDate = '' |
|
|
|
|
|
this.searchData.createEndDate = '' |
|
|
this.getDataList('Y') |
|
|
this.getDataList('Y') |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|