yangfeng
2024-03-13 7ecbf507254c49bec38f3ca96aa33ac84ac5f1e9
采购类型相关问题修改
2个文件已修改
23 ■■■■ 已修改文件
src/views/purchaseManage/purchase/components/AddPurchase.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchaseManage/purchase/index.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchaseManage/purchase/components/AddPurchase.vue
@@ -51,7 +51,6 @@
                    v-model="editConfig.infomation.purchaseTypeId"
                    clearable
                    style="width: calc(100% - 30px)"
                    @visible-change="selPurchaseChange"
                  >
                    <el-option
                      v-for="ele in plcBrandList"
@@ -435,9 +434,7 @@
  },
  created() {
    console.log(this.editConfig, "参数")
    if (this.editConfig.title == "新建") {
      this.handleGetBomKindDictList()
    }
    this.getWarehouseInfo()
    this.$store.dispatch("getSupplier")
    this.formInfo()
@@ -451,9 +448,7 @@
    "editCommonConfig.visible": {
      immediate: true,
      handler: function () {
        if (this.editConfig.title == "新建") {
          this.handleGetBomKindDictList(true)
        }
      }
    }
  },
@@ -513,9 +508,6 @@
        this.plcBrandList = res.data
        this.setTableForm()
        if (val) {
          // this.plcBrandList.map((item)=>{
          //   item.purchaseTypeId=item.id
          // })
          for (let i in this.plcBrandList) {
            if (this.plcBrandList[i][this.editRow.isDefault]) {
              this.editConfig.infomation.purchaseTypeId = this.editConfig.infomation.purchaseTypeId
@@ -527,12 +519,6 @@
          }
        }
      })
    },
    // 选择采购类型下拉方法
    selPurchaseChange(val) {
      if (val) {
        this.handleGetBomKindDictList()
      }
    },
    handleConfirmSave(data) {
      console.log(data, "data")
src/views/purchaseManage/purchase/index.vue
@@ -381,8 +381,7 @@
          this.editConfig.infomation = {
            productList: res.data.productList,
            supplierName: res.data.purchase.supplier.name,
            ...res.data.purchase,
            purchaseTypeId: res.data.purchase.purchaseTypeId == "0" ? "" : res.data.purchase.purchaseTypeId
            ...res.data.purchase
          }
        } else {
          this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!")
@@ -391,9 +390,8 @@
      setTimeout(() => {
        this.tableLoading = false
      }, 3000)
      // this.editRow = row;
      // this.$refs.add.islook = true;
    },
    // 确认发货
    btnConfirm(row) {
      let string = "是否提交?"
@@ -483,8 +481,7 @@
          this.editConfig.infomation = {
            productList: res.data.productList,
            supplierName: res.data.purchase.supplier.name,
            ...res.data.purchase,
            purchaseTypeId: res.data.purchase.purchaseTypeId == "0" ? "" : res.data.purchase.purchaseTypeId
            ...res.data.purchase
          }
        } else {
          this.$message.error(res.msg ? res.msg + "," : "" + "获取信息失败!")