haoxuan
2024-04-19 382bdb654a32bcfd27c8e7fe1417325ef98c495a
编辑产品的时候新增产品,产品名称不显示的问题修改
2个文件已修改
7 ■■■■■ 已修改文件
src/views/overview/AddOverviewDialog.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/overview/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/overview/AddOverviewDialog.vue
@@ -1498,8 +1498,8 @@
          return {
            ...res,
            amount: 1,
            productName: res.name,
            productId: res.id,
            productName: res.productId?res.productName:res.name,
            productId:  res.productId?res.productId:res.id,
            auxiliaryUnit:adjunctUnit,
            auxiliaryAmount:adjunctAmount?(1/Number(adjunctAmount)).toFixed(2):0,
            auxiliaryAmountInfo:adjunctAmount?Number(adjunctAmount):0,
@@ -1613,6 +1613,7 @@
    },
    // 新增方式修改
    getSelectArray(val, index) {
      debugger
      if (this.tableData.length == 1 && this.tableData[0].number&&this.tableData[0].number.length == 0) {
        this.tableData = [];
      }
src/views/overview/index.vue
@@ -95,7 +95,7 @@
      console.log(item)
      this.$router.push({
        name: "overviewList",
        query: { name: item.name, workType: item.baseOperationType, id: item.id, status: status,code:item.warehouse.code }
        query: { name: item.name, workType: item.baseOperationType+'', id: item.id+'', status: status,code:item.warehouse.code }
      })
    },
    async getData() {