From 53f8b19fcd643e6cf8abc8aa429c3357f066b920 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期四, 23 十一月 2023 19:37:14 +0800
Subject: [PATCH] 供应商-采购订单列表样式修改

---
 src/views/purchaseManage/purchase/components/AddPurchase.vue |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/src/views/purchaseManage/purchase/components/AddPurchase.vue b/src/views/purchaseManage/purchase/components/AddPurchase.vue
index 97e8b19..ca221b1 100644
--- a/src/views/purchaseManage/purchase/components/AddPurchase.vue
+++ b/src/views/purchaseManage/purchase/components/AddPurchase.vue
@@ -125,6 +125,8 @@
                     :disabled="editConfig.isDisabled"
                     v-model="editConfig.infomation.phone"
                     placeholder="璇峰~鍐�"
+                    maxlength="11"
+                    show-word-limit
                     clearable
                   ></el-input>
                 </el-form-item>
@@ -175,6 +177,7 @@
           <div class="basic-info-title" style="display: flex">浜у搧淇℃伅</div>
           <div class="product-view">
             <CommonFormTableView
+              :detailEnter=editCommonConfig.detailEnter
               :show-summary="showSummary"
               :recalculateShow="false"
               :product-table-list="productTableList"
@@ -278,6 +281,7 @@
 <script>
 import CommonFormTableView from "@/components/makepager/CommonFormTableView";
 import BomDialog from "@/components/makepager/BomDialog";
+import { getProductList } from "@/api/productManage/product"
 
 import {
   addPurchase,
@@ -295,6 +299,7 @@
       type: Object,
       default: () => {
         return {
+          detailEnter:true,
           visible: false,
           title: "鍒涘缓",
           infomation: {},
@@ -571,6 +576,7 @@
     },
     // 閫夋嫨瀹㈡埛鐩稿叧鏂规硶
     querySearchAsync(queryString, cb, value) {
+      this.productTableList.tableProductList=[]
       var restaurants = [];
       if (value === "supplier") {
         restaurants = this.supplierList;
@@ -587,11 +593,22 @@
         );
       };
     },
-    handleSelectClient(value, item) {
+    async handleSelectClient(value, item) {
+      this.productTableList.supplierId=item.ID
       if (value === "client") {
         this.supplierId = item.id;
         this.editConfig.infomation.supplierId=item.ID
       }
+      await getProductList({
+        supplierId:item.ID,
+        page:1,
+        pageSize:100
+      }).then((res)=>{
+        if(res.code===200){
+          this.productTableList.tableProductList = res.data.list
+          console.log(this.productTableList.tableProductList,"pop")
+        }
+      })
     },
     selClientClick() {
       this.editSelectSupplierConfig.editVisible = true;
@@ -604,6 +621,7 @@
     },
     // 娓呴櫎宸查�夋嫨鐢ㄦ埛
     clearupClient(value) {
+      this.emptyProductClick()
       if (value == "client") {
         this.$set(this.editConfig.infomation, "supplierName", "");
         this.supplierId = null;
@@ -634,6 +652,8 @@
         // });
       }
       this.productTableList = {
+        tableProductList:[],
+        supplierId:undefined,
         tableData: this.tableData,
         disabled:this.editConfig.isDisabled,
         tableColumn: [

--
Gitblit v1.8.0