zuozhengqing
2024-03-23 84a4fe2072b93f767b6747045af0cff8d212d9e9
src/views/purchaseManage/purchase/index.vue
@@ -148,6 +148,7 @@
  getPurchaseInfo,
  newSubmitPurchase,
  deletePurchase,
  getPurchaseQualityInspectionInfo,
  getOperationInfo
} from "@/api/purchaseManage/purchase"
import DetailSupplier from "@/views/purchaseManage/purchase/DetailSupplier"
@@ -178,13 +179,13 @@
    ]
    // 收货信息
    const recriveColumn = [
      { label: "收货时间", prop: "operationNumber", default: true },
      { label: "收货时间", prop: "createTime", default: true },
      { label: "收货人", prop: "principal" },
      { label: "产品名称", prop: "name" },
      { label: "产品编码", prop: "number" },
      { label: "规格", prop: "warehouseName" },
      { label: "产品名称", prop: "productName" },
      { label: "产品编码", prop: "productId" },
      { label: "规格", prop: "specs" },
      { label: "数量", prop: "amount" },
      { label: "单位", prop: "overTime" },
      { label: "单位", prop: "unit" },
      { label: "状态", prop: "status", isCallMethod: true, getCallMethod: this.getreceiveStatusStatus }
    ]
    // 入库信息
@@ -665,7 +666,6 @@
    },
    // 获取产品/收货信息
    async getProductInventoryInfo(row) {
      console.log(row)
      if (this.TabsIndex == 0 && row.status == 1) {
        getPurchaseInfo({ id: row.id }).then((res) => {
          if (res.code == 200) {
@@ -676,7 +676,17 @@
        })
      } else if (this.TabsIndex == 1 && row.status == 1) {
        this.productTableList.tableInfomation = []
      } else {
      } else if(this.TabsIndex==1 && row.status==7||row.status==8){
        getPurchaseQualityInspectionInfo({
            purchaseNumber: row.number,
          }).then((res)=>{
          if (res.code == 200) {
            this.productTableList.tableInfomation = res.data
          } else {
            this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!")
          }""
        })
      }else if(this.TabsIndex==2){
        getOperationInfo({ id: row.id }).then((res) => {
          if (res.code == 200) {
            this.productTableList.tableInfomation = res.data
@@ -684,6 +694,8 @@
            this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!")
          }
        })
      }else{
        this.productTableList.tableInfomation =[]
      }
    }
  }