From 53f2ab450f00d2f1ddb9cedfc5823b34af0d5545 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 30 八月 2023 16:18:09 +0800
Subject: [PATCH] 采购订单的  价格调整 ,折扣调整 接口对接  采购质检单 列表接口对接

---
 src/views/purchaseManage/purchase/index.vue |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue
index 2d3062f..7f4dfa0 100644
--- a/src/views/purchaseManage/purchase/index.vue
+++ b/src/views/purchaseManage/purchase/index.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="rightContent">
-    <div class="content-box">
+    <div class="content-box" v-loading="tableLoading">
       <div class="supplier-search">
         <SearchCommonView
           ref="searchCommonView"
@@ -68,6 +68,7 @@
   computed: {},
   data() {
     return {
+      tableLoading:false,
       tableList: {}, // 鍒楄〃
       selValueList: [],
       commonDetail: {
@@ -162,13 +163,20 @@
           signingDate:'',
           deliveryDate:'',
           remark:'',
+          wholeDiscountType:null,
+          wholeDiscount:0,
+          priceAdjustmentType:null,
+          priceAdjustment:0,
+          realTotalPrice:0,
        }
     },
     
     // 缂栬緫
     editClick(row){
+      this.tableLoading=true
       getPurchaseInfo({id:row.ID}).then((res) => {
         if (res.code == 200) {
+          this.tableLoading=false
           this.editConfig.visible = true
           this.editConfig.title = "缂栬緫"
           this.editConfig.infomation = { 
@@ -180,6 +188,9 @@
           this.$message.error(res.msg?res.msg+',':''+'鑾峰彇淇℃伅澶辫触锛�')
         }
       })
+      setTimeout(()=>{
+        this.tableLoading=false
+      },3000)
       // this.editRow = row;
       // this.$refs.add.islook = true;
       
@@ -208,8 +219,10 @@
     // 璇︽儏
     selCommonClick(row) {
       console.log(row)
+      this.tableLoading=true
       getPurchaseInfo({id:row.ID}).then((res) => {
         if (res.code == 200) {
+          this.tableLoading=false
           this.commonDetail.visible = true
           this.commonDetail.infomation = { 
             productList:res.data.productList,
@@ -219,6 +232,9 @@
           this.$message.error(res.msg?res.msg+',':''+'鑾峰彇淇℃伅澶辫触锛�')
         }
       })
+      setTimeout(()=>{
+        this.tableLoading=false
+      },3000)
     }
   }
 }

--
Gitblit v1.8.0