From fcbba75febaa36d23c6c49473ab5bcee0e1a2c04 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 08 四月 2025 09:37:11 +0800
Subject: [PATCH] 检验项目新增是否委托要求字段

---
 src/views/structural/capabilityAndLaboratory/capabilityComponents/bindPartDialog.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/structural/capabilityAndLaboratory/capabilityComponents/bindPartDialog.vue b/src/views/structural/capabilityAndLaboratory/capabilityComponents/bindPartDialog.vue
index 23bf010..20a857f 100644
--- a/src/views/structural/capabilityAndLaboratory/capabilityComponents/bindPartDialog.vue
+++ b/src/views/structural/capabilityAndLaboratory/capabilityComponents/bindPartDialog.vue
@@ -22,7 +22,8 @@
           <el-form-item label="鑹叉爣锛�" prop="colorCode">
             <el-input v-model="bindPartData.colorCode" size="small"></el-input>
           </el-form-item>
-          <el-form-item label="杩涘巶妫�楠岄」锛�" prop="inspectionItem" v-if="currentObj.objectType == '鍘熸潗鏂�'" label-width="100px">
+          <el-form-item label="杩涘巶妫�楠岄」锛�" prop="inspectionItem"
+            v-if="currentObj.objectType == '鍘熻緟鏉�' || currentObj.objectType == '鍖呮潗'" label-width="100px">
             <!-- <el-input v-model="bindPartData.inspectionItem" disabled placeholder="閫夋嫨妫�楠岄」" size="small">
               <template slot="append">
                 <el-button slot="append" icon="el-icon-search" @click="openItems"></el-button>
@@ -141,7 +142,7 @@
                   type: "warning",
                 })
                   .then(() => {
-                    productPartReview({ id: row.id }).then((res) => {
+                    productPartReview({ id: row.id, type: this.type == 0 ? '瀵硅薄' : '浜у搧' }).then((res) => {
                       if (res.code == 200) {
                         this.$message.success("澶嶆牳閫氳繃");
                         this.getList();
@@ -200,7 +201,7 @@
         partNo: '', // 闆朵欢鍙�
         color: '', // 棰滆壊
         colorCode: '', // 鑹叉爣
-        inspectionItem: [],//鍘熸潗鏂欒繘鍘傛楠屽璞″垪琛�
+        inspectionItem: [],//鍘熻緟鏉愯繘鍘傛楠屽璞″垪琛�
       },
       bindPartDataRules: {
         partNo: [
@@ -211,7 +212,7 @@
       upIndex: 0,
 
       addBindLoad: false,
-      itemList: [],//鍘熸潗鏂欒繘鍘傛楠屽璞″垪琛�
+      itemList: [],//鍘熻緟鏉愯繘鍘傛楠屽璞″垪琛�
       editItem: false,
       editList: [],
       editColumn: [
@@ -267,7 +268,7 @@
     },
     getEditList() {
       this.tableLoading0 = true
-      productPartLogList({ id: this.currentPart.id, ...this.editPage }).then(res => {
+      productPartLogList({ id: this.currentPart.id, type: this.type == 0 ? '瀵硅薄' : '浜у搧', ...this.editPage }).then(res => {
         this.tableLoading0 = false
         if (res.code == 200) {
           this.editList = res.data.records

--
Gitblit v1.9.3