zuozhengqing
2023-11-22 b0b8b22fc4ac2e76d5e7ab6bc5e6662b2c7fb092
fix:产品管理列表调整
5个文件已修改
29 ■■■■ 已修改文件
src/views/other/commonDialog/SelectCommonDialog.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/product/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchaseManage/purchase/components/AddPurchase.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/RaleteSupplierList.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/supplierManage/supplier/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/other/commonDialog/SelectCommonDialog.vue
@@ -159,16 +159,15 @@
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
        console.log(res.data)
        if (res.data.code === 200) {
          if (res.data.data.list && res.data.data.list.length > 0) {
            const list = res.data.data.list.map((item) => {
        if (res.code === 200) {
          if (res.data.list && res.data.list.length > 0) {
            const list = res.data.list.map((item) => {
              return {
                ...item
              }
            })
            this.tableList.tableInfomation = list
            this.pagerOptions.totalCount = res.data.data.total
            this.pagerOptions.totalCount = res.data.total
          } else {
            this.tableList.tableInfomation = []
          }
src/views/productManage/product/index.vue
@@ -126,8 +126,8 @@
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
        if (res.data.code === 200) {
          const list = res.data.data.list.map((item) => {
        if (res.code === 200) {
          const list = res.data.list.map((item) => {
            return {
              ...item,
              supplierName: item.supplier.name,
@@ -135,7 +135,7 @@
            }
          })
          this.tableList.tableInfomation = list || []
          this.pagerOptions.totalCount = res.data.data.total
          this.pagerOptions.totalCount = res.data.total
        }
      })
    },
src/views/purchaseManage/purchase/components/AddPurchase.vue
@@ -602,8 +602,8 @@
        page:1,
        pageSize:100
      }).then((res)=>{
        if(res.data.code===200){
          this.productTableList.tableProductList = res.data.data.list
        if(res.code===200){
          this.productTableList.tableProductList = res.data.list
          console.log(this.productTableList.tableProductList,"pop")
        }
      })
src/views/supplierManage/supplier/RaleteSupplierList.vue
@@ -107,7 +107,7 @@
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
        console.log(res.data)
        const list = res.data.data.list.map((item) => {
        const list = res.data.list.map((item) => {
          return {
            ...item,
            supplierNumber: item.supplier.number,
@@ -115,7 +115,7 @@
          }
        })
        this.tableList.tableInfomation = list || []
        this.pagerOptions.totalCount = res.data.data.total
        this.pagerOptions.totalCount = res.data.total
      })
    },
    handleClose() {
src/views/supplierManage/supplier/index.vue
@@ -422,9 +422,9 @@
      this.getProductList()
    },
    // 详情
    selCommonClick(row) {
      getPurchaseList({pageSize:10,page:1,supplierId:row.ID}).then((res)=>{
        this.commonDetail.productListInfo=res.data.data.list
    async selCommonClick(row) {
      await getPurchaseList({pageSize:10,page:1,supplierId:row.ID}).then((res)=>{
        this.commonDetail.productListInfo=res.data.list
      })
      this.commonDetail.visible = true
      this.commonDetail.infomation = { ...row }