zuozhengqing
2023-12-06 84d9de8968ea6675ecb57fa7c59a7bf2fede8f4d
src/views/purchaseManage/purchase/components/AddPurchase.vue
@@ -521,6 +521,7 @@
            const params = this.saveParams();
            //新建
            if (this.editConfig.title === "创建") {
              this.lacks=[]
              this.tableData.forEach((item)=>{
                if(this.productTableList.tableProductList.map(obj => obj.number).includes(item.number)) {  
                    console.log(`${item.name} 在数组中存在`);  
@@ -563,6 +564,7 @@
                pageSize:100
              }).then((res)=>{
                if(res.code===200){
                  this.lacks=[]
                  // 编辑前先看看当前供应商对应的产品列表
                  this.productTableList.tableProductList = res.data.list
                  //当前产品是否在当前供应商下存在
@@ -691,7 +693,16 @@
    selClientClick() {
      this.editSelectSupplierConfig.editVisible = true;
    },
    selClient(row) {
    async selClient(row) {
      await getProductList({
        supplierId:row.ID,
        page:1,
        pageSize:100
      }).then((res)=>{
        if(res.code===200){
          this.productTableList.tableProductList = res.data.list
        }
      })
      this.$set(this.editConfig.infomation,'supplierName',row.name)
      this.editConfig.infomation.contact = row.contact;
      this.editConfig.infomation.phone = row.phone;