Browse Source

2026-05-29

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

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

@ -651,8 +651,7 @@
sp: '', sp: '',
nodeId: '', nodeId: '',
documentSource: '', documentSource: '',
menuId: this.queryOnly ? '103002' : this.$route.meta.menuId,
excludeStatusList: []
menuId: this.$route.meta.menuId
}, },
nodeOptions: [], nodeOptions: [],
pageIndex: 1, pageIndex: 1,
@ -1115,9 +1114,9 @@
limit: this.pageSize, limit: this.pageSize,
site: this.$store.state.user.site, site: this.$store.state.user.site,
userName: this.$store.state.user.name, userName: this.$store.state.user.name,
codeNo:this.$route.params.docNo,
excludeStatusList: this.buildExcludeStatusList()
codeNo:this.$route.params.docNo
} }
this.applyQueryOnlyFilter(inData)
technicalSpecificationListSearch(inData).then(({data}) => { technicalSpecificationListSearch(inData).then(({data}) => {
if (data.code == 0) { if (data.code == 0) {
this.dataList1 = data.page.list this.dataList1 = data.page.list
@ -1161,11 +1160,17 @@
}, },
methods: { methods: {
buildExcludeStatusList () { buildExcludeStatusList () {
return this.queryOnly ? ['death', 'dead'] : []
return this.queryOnly ? ['death', 'dead'] : null
}, },
applyQueryOnlyFilter (target) { applyQueryOnlyFilter (target) {
target.excludeStatusList = this.buildExcludeStatusList()
if (this.queryOnly) {
target.excludeStatusList = this.buildExcludeStatusList()
target.menuId = '103002'
} else {
delete target.excludeStatusList
delete target.excludeStatusClause
}
}, },
selectionChangeMainHandle(val) { selectionChangeMainHandle(val) {
@ -1629,7 +1634,9 @@
}, },
fetchNodeOptions() { fetchNodeOptions() {
getNodeList(this.searchData).then(({ data }) => {
const params = Object.assign({}, this.searchData)
this.applyQueryOnlyFilter(params)
getNodeList(params).then(({ data }) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.nodeOptions = data.rows.map(item => ({ this.nodeOptions = data.rows.map(item => ({
id: item.nodeId, id: item.nodeId,
@ -1653,7 +1660,7 @@
params.site = this.$store.state.user.site params.site = this.$store.state.user.site
params.userName = this.$store.state.user.name params.userName = this.$store.state.user.name
params.userId = this.$store.state.user.id.toString() params.userId = this.$store.state.user.id.toString()
params.excludeStatusList = this.buildExcludeStatusList()
this.applyQueryOnlyFilter(params)
this.dataListLoading = true; this.dataListLoading = true;
technicalSpecificationListSearchByAnyField(params).then(({data})=>{ technicalSpecificationListSearchByAnyField(params).then(({data})=>{
if (data && data.code === 0){ if (data && data.code === 0){

Loading…
Cancel
Save