zuozhengqing
2023-11-16 519fd6dc67a4db8fdba7e63b61fc6cc0e28f04c1
采购管理更新字段
1个文件已修改
25 ■■■■■ 已修改文件
src/views/purchaseManage/purchase/index.vue 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchaseManage/purchase/index.vue
@@ -104,7 +104,7 @@
        { label: "采购单号", prop: "number", min: 150, isCommonClick: true ,default:true},
        { label: "采购单名称", prop: "name", min: 130, isCommonClick: true },
        { label: "单据类型", prop: "orderType", min: 130 },
        { label: "供应商名称", prop: "contact", min: 130 },
        { label: "供应商名称", prop: "supplierName", min: 130 },
        { label: "采购数量", prop: "quantity", min: 130 },
        { label: "收货仓库", prop: "warehouse", min: 130 },
        { label: "经办人", prop: "handledBy", min: 130 },
@@ -166,16 +166,19 @@
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      })
        .then((res) => {
          if (res.data.code === 200) {
            const list = res.data.data.list
            this.tableList.tableInfomation = list || []
            this.pagerOptions.totalCount = res.data.data.total
          }
        })
        .catch((err) => {
          console.log(err)
        })
      .then((res) => {
        if (res.data.code === 200) {
          let list = res.data.data.list
          list.map((item)=>{
            item.supplierName=item.supplier.name
          })
          this.tableList.tableInfomation = list || []
          this.pagerOptions.totalCount = res.data.data.total
        }
      })
      .catch((err) => {
        console.log(err)
      })
    },
    // 获取供应商数据
    async getSupplierData() {