Browse Source

2026-05-29

新增技术参数卡-查询页面
master
fengyuan_yang 2 weeks ago
parent
commit
99e023ccde
  1. 89
      src/views/modules/sampleManagement/technicalSpecificationList.vue
  2. 14
      src/views/modules/sampleManagement/technicalSpecificationQuery.vue

89
src/views/modules/sampleManagement/technicalSpecificationList.vue

@ -47,9 +47,9 @@
<el-option label="全部" value=""></el-option>
<el-option label="草稿" value="cg"></el-option>
<el-option label="审批中" value="spz"></el-option>
<el-option label="已升版" value="death"></el-option>
<el-option v-if="!queryOnly" label="已升版" value="death"></el-option>
<el-option label="已完成" value="已完成"></el-option>
<el-option label="Dead" value="dead"></el-option>
<el-option v-if="!queryOnly" label="Dead" value="dead"></el-option>
</el-select>
</el-form-item>
<el-form-item label="是否ECN">
@ -61,7 +61,7 @@
</el-form-item>
<el-form-item label=" ">
<el-button @click="search()" type="primary" style="margin-left: 2px;margin-top:0px">查询</el-button>
<el-button @click="addOrUpdateHandle()" type="primary" style="margin-left: 2px;margin-top: 0px">新增</el-button>
<el-button v-if="!queryOnly" @click="addOrUpdateHandle()" type="primary" style="margin-left: 2px;margin-top: 0px">新增</el-button>
<download-excel
:fields="fields()"
:data="exportData"
@ -78,7 +78,7 @@
<span>{{ '导出' }}</span>
</download-excel>
<el-button @click="filterVisible = true">搜索</el-button>
<el-button type="warning" @click="closeProcessModal()">流程关闭</el-button>
<el-button v-if="!queryOnly" type="warning" @click="closeProcessModal()">流程关闭</el-button>
<!-- <el-button @click="test()" type="primary" style="margin-left: 2px;margin-top:0px">测试</el-button>-->
</el-form-item>
</el-form>
@ -94,6 +94,7 @@
v-loading="dataListLoading"
style="width: 100%; ">
<el-table-column
v-if="!queryOnly"
type="selection"
header-align="center"
align="center"
@ -127,36 +128,41 @@
fixed="right"
label="操作">
<template slot-scope="scope">
<!-- <a type="text" size="small" @click="addRevModel(scope.row)" v-if="scope.row.statusDesc!=='已完成'">升版</a>-->
<!-- <a type="text" size="small" @click="addOrUpdateHandle(scope.row.id)" v-if="scope.row.statusDesc!=='已完成'">修改</a>-->
<!-- <a type="text" size="small" v-if="scope.row.statusDesc!=='已升版'" @click="copyBM(scope.row)">拷贝</a>-->
<template v-if="isAuth('103002:revise')">
<el-link style="cursor: pointer" v-if="scope.row.statusDesc !== '已完成' && scope.row.statusDesc !== '已升版' && scope.row.statusDesc !== 'Dead'" @click="jumpDetail(scope.row)">修改</el-link>
</template>
<template v-if="isAuth('103002:details')">
<template v-if="queryOnly">
<el-link style="cursor: pointer" @click="detail(scope.row)">详情</el-link>
</template>
<template v-if="isAuth('103002:remove')">
<el-link style="cursor: pointer" v-if="scope.row.status === 'cg'" @click="deleteData(scope.row)" >删除</el-link>
</template>
<template v-if="isAuth('103002:issue')">
<el-link style="cursor: pointer" v-if="scope.row.status === 'cg'"
:disabled="!!issueLoadingSet[scope.row.codeNo]"
@click="issueModal(scope.row)">
<i v-if="issueLoadingSet[scope.row.codeNo]" class="el-icon-loading"></i>下达
</el-link>
<template v-else>
<!-- <a type="text" size="small" @click="addRevModel(scope.row)" v-if="scope.row.statusDesc!=='已完成'">升版</a>-->
<!-- <a type="text" size="small" @click="addOrUpdateHandle(scope.row.id)" v-if="scope.row.statusDesc!=='已完成'">修改</a>-->
<!-- <a type="text" size="small" v-if="scope.row.statusDesc!=='已升版'" @click="copyBM(scope.row)">拷贝</a>-->
<template v-if="isAuth('103002:revise')">
<el-link style="cursor: pointer" v-if="scope.row.statusDesc !== '已完成' && scope.row.statusDesc !== '已升版' && scope.row.statusDesc !== 'Dead'" @click="jumpDetail(scope.row)">修改</el-link>
</template>
<template v-if="isAuth('103002:details')">
<el-link style="cursor: pointer" @click="detail(scope.row)">详情</el-link>
</template>
<template v-if="isAuth('103002:remove')">
<el-link style="cursor: pointer" v-if="scope.row.status === 'cg'" @click="deleteData(scope.row)" >删除</el-link>
</template>
<template v-if="isAuth('103002:issue')">
<el-link style="cursor: pointer" v-if="scope.row.status === 'cg'"
:disabled="!!issueLoadingSet[scope.row.codeNo]"
@click="issueModal(scope.row)">
<i v-if="issueLoadingSet[scope.row.codeNo]" class="el-icon-loading"></i>下达
</el-link>
</template>
<el-dropdown trigger="click">
<el-link style="cursor: pointer;font-size: 12px">
更多
</el-link >
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-if="isAuth('103002:dead') && (scope.row.statusDesc === '审批中' || scope.row.statusDesc === '已完成')" @click.native="bmStatusToDead(scope.row)">Dead</el-dropdown-item>
<el-dropdown-item v-if="isAuth('103002:reSample') && scope.row.statusDesc === 'Dead'" @click.native="bmStatusToCg(scope.row)">Re-Sample</el-dropdown-item>
<el-dropdown-item v-if="isAuth('103002:finish') && scope.row.statusDesc === '草稿'" @click.native="bmStatusToFinish(scope.row)">归档</el-dropdown-item>
<el-dropdown-item v-if="scope.row.statusDesc !== '已升版'" @click.native="copyBM(scope.row)">拷贝</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
<el-dropdown trigger="click">
<el-link style="cursor: pointer;font-size: 12px">
更多
</el-link >
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-if="isAuth('103002:dead') && (scope.row.statusDesc === '审批中' || scope.row.statusDesc === '已完成')" @click.native="bmStatusToDead(scope.row)">Dead</el-dropdown-item>
<el-dropdown-item v-if="isAuth('103002:reSample') && scope.row.statusDesc === 'Dead'" @click.native="bmStatusToCg(scope.row)">Re-Sample</el-dropdown-item>
<el-dropdown-item v-if="isAuth('103002:finish') && scope.row.statusDesc === '草稿'" @click.native="bmStatusToFinish(scope.row)">归档</el-dropdown-item>
<el-dropdown-item v-if="scope.row.statusDesc !== '已升版'" @click.native="copyBM(scope.row)">拷贝</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</el-table>
@ -598,6 +604,12 @@
AddOrUpdate,
BuSelect,
},
props: {
queryOnly: {
type: Boolean,
default: false
}
},
data() {
return {
approvalList: [],
@ -639,7 +651,8 @@
sp: '',
nodeId: '',
documentSource: '',
menuId: this.$route.meta.menuId
menuId: this.queryOnly ? '103002' : this.$route.meta.menuId,
excludeStatusList: []
},
nodeOptions: [],
pageIndex: 1,
@ -1103,6 +1116,7 @@
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
codeNo:this.$route.params.docNo,
excludeStatusList: this.buildExcludeStatusList()
}
technicalSpecificationListSearch(inData).then(({data}) => {
if (data.code == 0) {
@ -1146,6 +1160,14 @@
}
},
methods: {
buildExcludeStatusList () {
return this.queryOnly ? ['death', 'dead'] : []
},
applyQueryOnlyFilter (target) {
target.excludeStatusList = this.buildExcludeStatusList()
},
selectionChangeMainHandle(val) {
this.mainTableSelections = val
},
@ -1244,6 +1266,7 @@
search () {
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
this.applyQueryOnlyFilter(this.searchData)
this.dataListLoading = true;
technicalSpecificationListSearch(this.searchData).then(({data}) => {
if (data && data.code === 0) {
@ -1430,6 +1453,7 @@
limit: this.totalPage || 99999,
page: 1
})
this.applyQueryOnlyFilter(exportParams)
await technicalSpecificationListSearch(exportParams).then(({data}) => {
this.exportList = data.page.list;
})
@ -1629,6 +1653,7 @@
params.site = this.$store.state.user.site
params.userName = this.$store.state.user.name
params.userId = this.$store.state.user.id.toString()
params.excludeStatusList = this.buildExcludeStatusList()
this.dataListLoading = true;
technicalSpecificationListSearchByAnyField(params).then(({data})=>{
if (data && data.code === 0){

14
src/views/modules/sampleManagement/technicalSpecificationQuery.vue

@ -0,0 +1,14 @@
<template>
<technical-specification-list query-only />
</template>
<script>
import TechnicalSpecificationList from './technicalSpecificationList.vue'
export default {
name: 'technicalSpecificationQuery',
components: {
TechnicalSpecificationList
}
}
</script>
Loading…
Cancel
Save