zuozhengqing
2023-10-21 809a043745ecf5d8986998ea30933e019f4f4f4d
报废单编辑接口参数调整
2个文件已修改
20 ■■■■■ 已修改文件
src/views/operate/inventoryAdjustment/index.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/scrap/AddScrapDialog.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/inventoryAdjustment/index.vue
@@ -102,7 +102,7 @@
        selectBox: false,
        selectIndex: true,
        tableColumn: [
          { label: "位置", prop: "locationName", location: false },
          { label: "位置", prop: "locationName", location: true },
          { label: "产品", prop: "productName", product: true },
          { label: "在库数量", prop: "amount" },
          { label: "计量单位", prop: "unit" },
@@ -216,7 +216,6 @@
    },
    // 取消
    discardBtnClick() {
      console.log(this.tableList.tableData,"看看")
      this.tableList.tableData.forEach((item)=>{
        item.differenceAmount=0;
        item.adjustAmount=0
@@ -276,7 +275,6 @@
    },
    // 行点击
    tableRowClick(row, rowIndex) {
      console.log(row,"kankna")
      this.locationId=row.locationId
      this.rowIndex = rowIndex
      this.isSel()
src/views/operate/scrap/AddScrapDialog.vue
@@ -168,7 +168,7 @@
      currentState: "todo", // 当前状态
      unit: "",
      showButton: true,
      isValidateClick: false // 验证是否显示
      isValidateClick: false, // 验证是否显示
    }
  },
  created() {
@@ -267,12 +267,9 @@
      } else if (this.editCommonConfig.title === "编辑") {
        this.$refs[formName].validate((valid) => {
          if (valid) {
            this.editConfig.infomation.productId = this.productId
            this.editConfig.infomation.productName = this.productName
            this.editConfig.infomation.unit = this.unit
            updateScrap({
              amount: this.editConfig.infomation.amount, //数量
              baseOperationType: 1,
            let params={
              amount: this.editConfig.infomation.amount,
              baseOperationType: this.editConfig.infomation.baseOperationType,
              fromLocationId: this.editConfig.infomation.fromLocationId,
              id: this.editConfig.infomation.id,
              number: this.editConfig.infomation.number,
@@ -281,7 +278,10 @@
              sourceNumber: this.editConfig.infomation.sourceNumber,
              status: this.editConfig.infomation.status,
              toLocationId: this.editConfig.infomation.toLocationId
            }).then((res) => {
            }
            updateScrap(
              params
            ).then((res) => {
              console.log(res)
              this.editConfig.visible = false
              if (res.code === 200) {