zuozhengqing
2023-11-15 624dbdf2b7e3dc1bbcb9d6ebe8fd9d2ab36e214a
重订货规则列表-产品调整
3个文件已修改
14 ■■■■ 已修改文件
src/components/makepager/CommonFormTableView.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/reorderRules/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouseManage/listingRules/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/CommonFormTableView.vue
@@ -430,7 +430,7 @@
          tableData: [], // 接口返回数据
          tableColumn: [
            // table表单
            { label: "", prop: "", min: 200, tooltip: true }
            { label: "", prop: "", min: 200, tooltip: true}
          ]
        }
      }
@@ -586,7 +586,6 @@
        page: 1,
        pageSize: 15
      }).then((res) => {
        console.log(res, "看看产品类型列表")
        if (res.code === 200) {
          const list = res.data ? res.data : []
          this.productTypeNameOptions = list
src/views/productManage/reorderRules/index.vue
@@ -102,7 +102,7 @@
        selectBox: false,
        selectIndex: true,
        tableColumn: [
          { label: "产品", prop: "productName", product: true },
          { label: "产品", prop: "productName", product: true,width:"150px" },
          { label: "位置", prop: "locationName", defaultLocation: true },
          { label: "在库数量", prop: "amount" },
          { label: "预测数量", prop: "prediction" },
@@ -134,7 +134,7 @@
            }
            return {
              ...item,
              productName: { label: item.product.name, value: item.product.id },
              productName:item.product.name,
              locationName: item.location.name,
              isSet: false,
              isEdit: true,
@@ -293,7 +293,7 @@
        this.tableData.map((item, index) => {
          if (index === rowIndex) {
            item.isEdit = false
            item.editable = true
            item.editable = false
            item.isOrder = true
          } else {
            item.isEdit = true
src/views/warehouseManage/listingRules/index.vue
@@ -279,6 +279,7 @@
    },
    // 行点击
    tableRowClick(row, rowIndex) {
      this.thatRow=row
      this.tableList.rowClickIndex=rowIndex
      this.rowIndex = rowIndex
@@ -290,8 +291,8 @@
        this.addTitle = "保存"
        this.showDiscard = true
        this.isRowClick = true
        if (!this.isNoProduct) {
          this.tableData.splice(this.tableData.length - 1, 1)
        if (this.isNoProduct) {
          // this.tableData.splice(this.tableData.length - 1, 1)
            this.tableData.map((item, index) => {
            if (index === rowIndex) {
              item.isEdit = false