haoxuan
2023-08-30 53f2ab450f00d2f1ddb9cedfc5823b34af0d5545
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)
    }
  }
}