From a2daf5a6f6c6afdcff3445d9f50d9c09f2ab9037 Mon Sep 17 00:00:00 2001
From: fengyuan_yang <1976974459@qq.com>
Date: Tue, 8 Sep 2026 14:35:30 +0800
Subject: [PATCH] =?UTF-8?q?2026-09-08=20=E5=AE=9E=E9=AA=8C=E5=AE=A4?=
=?UTF-8?q?=E3=80=90=E4=B8=8B=E8=BE=BE=E3=80=91=E6=A0=A1=E9=AA=8C=E5=BD=93?=
=?UTF-8?q?=E5=89=8D=E7=99=BB=E9=99=86=E4=BA=BA=E4=B8=BA=E5=88=9B=E5=BB=BA?=
=?UTF-8?q?=E4=BA=BA=EF=BC=9B=20=E6=B5=8B=E8=AF=95=E7=94=B3=E8=AF=B7-?=
=?UTF-8?q?=E3=80=8B=E5=88=B6=E7=A8=8B=E4=BF=A1=E6=81=AF=E5=85=81=E8=AE=B8?=
=?UTF-8?q?=E6=89=8B=E8=BE=93=E5=8A=A0=E5=B7=A5=E4=B8=AD=E5=BF=83=E5=B9=B6?=
=?UTF-8?q?=E5=B8=A6=E5=87=BA=E7=9B=B8=E5=85=B3=E4=BF=A1=E6=81=AF=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/lab/labRecord.vue | 6 ++++
.../test/testSoRouting/testRoutingTable.vue | 30 ++++++++++++++++++-
2 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/src/views/modules/lab/labRecord.vue b/src/views/modules/lab/labRecord.vue
index d47628b..bc9a25b 100644
--- a/src/views/modules/lab/labRecord.vue
+++ b/src/views/modules/lab/labRecord.vue
@@ -2964,6 +2964,12 @@ export default {
this.$message.warning('没有下达权限')
return
}
+ const currentUserName = String((this.$store.state.user && this.$store.state.user.name) || '').trim()
+ const creator = String((row && (row.createBy || row.applicant)) || '').trim()
+ if (!currentUserName || currentUserName !== creator) {
+ this.$message.error('只能下达自己发起的申请!')
+ return
+ }
this.$confirm('确认下达该申请单?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
diff --git a/src/views/modules/test/testSoRouting/testRoutingTable.vue b/src/views/modules/test/testSoRouting/testRoutingTable.vue
index 8f207dd..4f78204 100644
--- a/src/views/modules/test/testSoRouting/testRoutingTable.vue
+++ b/src/views/modules/test/testSoRouting/testRoutingTable.vue
@@ -682,6 +682,34 @@ export default {
this.workCenter.workCenterNo = val
this.searchWorkCenter(true)
},
+ workCenterBlur() {
+ const workCenterNo = String(this.testSoRouting.workCenterNo || '').trim()
+ if (!workCenterNo) {
+ this.testSoRouting.workCenterDesc = ''
+ this.testSoRouting.workCenterType = ''
+ return
+ }
+ this.testSoRouting.workCenterNo = workCenterNo
+ searchWorkCenter({
+ site: this.testSoRouting.site || this.$store.state.user.site,
+ workCenterNo: workCenterNo
+ }).then(({data}) => {
+ const list = (data && data.data) || []
+ const matched = list.find(item => String(item.workCenterNo || '').trim().toLowerCase() === workCenterNo.toLowerCase())
+ if (data && (data.code === 200 || data.code === 0) && matched) {
+ this.testSoRouting.workCenterNo = matched.workCenterNo
+ this.testSoRouting.workCenterDesc = matched.workCenterDesc
+ this.testSoRouting.workCenterType = matched.workCenterType
+ return
+ }
+ this.testSoRouting.workCenterDesc = ''
+ this.testSoRouting.workCenterType = ''
+ this.$message.warning('加工中心不存在')
+ }).catch(() => {
+ this.testSoRouting.workCenterDesc = ''
+ this.testSoRouting.workCenterType = ''
+ })
+ },
openWorkCenterDialog(){
this.workCenter.workCenterNo = this.testSoRouting.workCenterNo;
this.searchWorkCenter()
@@ -765,7 +793,7 @@ export default {
加工中心
-
+