zuozhengqing
2023-12-18 fa523e19c4e89c3a08aff41fe5acb57392a0f0aa
src/components/makepager/CommonFormTableView.vue
@@ -118,6 +118,7 @@
                    :controls="false"
                    size="mini"
                    style="width: 100%; margin-right: 5px"
                    :min="item.prop==='minInventory'?0:1"
                    @change="
                      (val) => {
                        commonInputChange(val, item.prop, scope.row)
@@ -574,6 +575,7 @@
    },
    // 位置
    async getLocationList() {
      this.locacionName = ""
      await getLocationList({
        // keyword: "",
        jointName: this.initialPosition ? this.initialPosition : null,
@@ -661,7 +663,16 @@
      } else {
        let selIndex = 0
        this.tableList.tableData.map((ite, index) => {
          if (ite.id === row.id) {
          // ite.id 是上架规则的, ite.productId是库存调整的
          if (ite.id === row.id&&ite.id!=undefined&&row.id!=undefined) {
            selIndex = index
            ite.productId = item.id
            ite.productName = item.name
            ite.categoryId = item.categoryId
            ite.productCategory = item.categoryName
            ite.amount = item.amount
            ite.unit = item.unit
          }else if(ite.productId===row.productId){
            selIndex = index
            ite.productId = item.id
            ite.productName = item.name
@@ -872,7 +883,9 @@
    },
    // 行点击
    tableRowClick(row) {
      this.locacionName = row.location.name
      if (this.isReorder) {
        this.locacionName = row.location.name
      }
      this.$emit("tableRowClick", row, row.index)
    },
    // 单选行相关