zuozhengqing
2023-11-15 4610d87bfa8c8330c8f3c0b2db0ee5cc30352117
重订货规则添加和修改修复
3个文件已修改
40 ■■■■ 已修改文件
src/components/makepager/CommonFormTableView.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/reorderRules/index.vue 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportForm/locationReport/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/makepager/CommonFormTableView.vue
@@ -515,6 +515,7 @@
      })
    },
    async handleSelectClient(value, item) {
      this.$emit("selProductClick",value,item)
      if (value === "product") {
        if(item.categoryId===0||item.categoryName===""){
          this.productTypeNameOptions =[]
@@ -536,7 +537,6 @@
      }else if(value==="productType"){
        console.log("产品类型选中")
      }
      this.$emit("selProductClick",value,item)
    },
    querySearchAsync(queryString, cb, value) {
      let restaurants=''
src/views/productManage/reorderRules/index.vue
@@ -80,7 +80,8 @@
      unit: "",
      reorderId: 0,
      queryProductId: null,
      searchTaskMap: []
      searchTaskMap: [],
      currentRowId:-1
    }
  },
  created() {
@@ -214,20 +215,17 @@
        this.showDiscard = false
        let requestUrl = this.currentRowId === 0 ? addReorderRule : updateReorderRule
        let params = this.saveParams()
        requestUrl(params)
          .then((res) => {
            console.log(res)
            if (res.code === 200) {
              let tipStr = this.currentRowId === 0 ? "添加成功" : "修改成功"
              this.$message.success(tipStr)
              this.getData()
            }
          })
          .catch((err) => {
            console.log(err)
        requestUrl(params).then((res) => {
          if (res.code === 200) {
            let tipStr = this.currentRowId === 0 ? "添加成功" : "修改成功"
            this.$message.success(tipStr)
            this.getData()
          })
        // }
          }
        })
        .catch((err) => {
          this.getData()
          console.log(err)
        })
      }
    },
    saveParams() {
@@ -283,7 +281,7 @@
      if (!this.isNoProduct && this.currentRowId === 0) {
        this.$message.error("请完成当前新建或取消新建")
      } else {
        this.currentRowId = row.id
        this.currentRowId = row.id||0
        this.addTitle = "保存"
        this.showDiscard = true
        this.isRowClick = true
@@ -320,9 +318,11 @@
      this.locationId = item?.value ?? item?.id
    },
    // 选中产品方法
    selProductClick(item) {
      this.productId = item.value
      this.unit = item.unit
    selProductClick(value,item){
      if(value==="product"){
      this.productId=item.id
      this.unit=item.unit
      }
    },
    // 选中路线方法
    selRouteClick(item, prop) {
src/views/reportForm/locationReport/index.vue
@@ -60,7 +60,7 @@
  data() {
    return {
      tableList: {},
      showcol: ["存储类别", "产品类别", "预留数量", "价值"],
      showcol: [ "产品类别", "预留数量", "价值"],
      // countcol: [
      //   { label: "在库数量", unit: "" },
      //   { label: "预留数量", unit: "" },