From b811e2fa4cdcb5949047faa78aa9299aec1d2f67 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 27 三月 2024 15:08:45 +0800
Subject: [PATCH] 确认采购单接口换位post请求,产品列表字段替换

---
 src/views/purchaseManage/purchase/components/TestingAll.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/purchaseManage/purchase/components/TestingAll.vue b/src/views/purchaseManage/purchase/components/TestingAll.vue
index 524eba6..a10a971 100644
--- a/src/views/purchaseManage/purchase/components/TestingAll.vue
+++ b/src/views/purchaseManage/purchase/components/TestingAll.vue
@@ -2,9 +2,9 @@
   <div class="add-quotation">
     <el-dialog :visible.sync="editConfig.visible" width="70%" append-to-body custom-class="iframe-dialog">
       <el-header>
-        <el-button type="primary" v-if="this.editConfig.title != '鏌ョ湅'" size="small"
+        <el-button type="primary" :disabled="isDisabled"  size="small"
           @click="saveClick()">鎵归噺鍚堟牸鍏ュ簱</el-button>
-        <el-button type="primary" v-if="this.editConfig.title != '鏌ョ湅'" size="small"
+        <el-button type="primary" :disabled="isDisabled"  size="small"
           @click="saveNoClick()">鎵归噺涓嶅悎鏍�</el-button>
       </el-header>
       <el-form ref="form" :model="editConfig.infomation" label-position="right" label-width="130px" size="mini"
@@ -18,8 +18,8 @@
 
               <template slot="tableButton">
                 <el-table-column label="鎿嶄綔" width="120" align="center">
-                  <template slot-scope="scope">
-                    <el-button type="text" size="small" @click="saveClick(scope.row)"
+                  <template slot-scope="scope"  v-if="scope.row.status==1" >
+                    <el-button type="text"  size="small" @click="saveClick(scope.row)"
                       style="margin-right: 5px">鍚堟牸</el-button>
                     <el-button type="text" size="small" @click="saveNoClick(scope.row)"
                       style="margin-right: 5px">涓嶅悎鏍�</el-button>
@@ -100,6 +100,7 @@
       thatTimes: [],
       selectList: [],
       qualityStatusList: getDataByType("qualityStatus"),
+      isDisabled:false,
     }
   },
   created() {
@@ -221,8 +222,12 @@
     async getPurchaseQualityInspectionInfo(params) {
       await getPurchaseQualityInspectionInfo(params).then((res) => {
         this.timeList = []
+        this.isDisabled=true // 鍒ゆ柇鏈夋病鏈夊緟璐ㄦ鐨�
         res.data.map((item) => {
           this.timeList.push({ id: item.createTime, name: item.createTime })
+          if(item.status===1){
+            this.isDisabled=false
+          }
         })
         this.setTableForm()
         this.productTableList.tableData = res.data

--
Gitblit v1.8.0