Browse Source

2025-04-27

master
qiezi 10 months ago
parent
commit
ec37fd05b0
  1. 9
      src/views/modules/sampleManagement/technicalSpecificationList.vue
  2. 17
      src/views/modules/test/requestForTest.vue

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

@ -936,7 +936,6 @@
},
activated() {
if (this.$route.params.type === 'tokenLogin') {
console.log("进来啦")
if (this.$route.params.docNo) {
// this.searchData.applyNo = this.$route.params.docNo
@ -964,6 +963,14 @@
this.dataListLoading = false
})
}
}else if (this.$route.params.type === 'test'){
this.searchData.buNo = this.$route.params.buNo
this.searchData.testPartNo = this.$route.params.testPartNo
this.search();
setTimeout(() => {
this.searchData.buNo = '';
this.searchData.testPartNo = '';
}, 200)
}
if (this.$route.params.codeNo){
this.searchData.oriCodeNo = this.$route.params.codeNo;

17
src/views/modules/test/requestForTest.vue

@ -144,6 +144,7 @@
width="120"
label="操作">
<template slot-scope="scope">
<a type="text" style="cursor:pointer;" @click="handleClickBM(scope.row)">BM</a>
<template v-if="isAuth('107001:update')">
<a type="text" size="small" style="cursor:pointer;" v-if="scope.row.testStatus !== '已完成'" @click="updateModal(scope.row)">编辑</a>
</template>
@ -3621,6 +3622,22 @@
this.partPageNo = val
this.getProjectPartList();
},
handleClickBM(row){
if (this.$router.resolve('sampleManagement-technicalSpecificationList').resolved.name === '404') {
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',});
} else {
this.$emit('close')
let params = {
name: "sampleManagement-technicalSpecificationList",
params: {
type:'test',
testPartNo:row.testPartNo,
buNo:row.buNo
}
}
this.$router.push(params)
}
}
},
}
</script>

Loading…
Cancel
Save