loulijun2021
2023-03-01 9219fc482b055ef695d0b1377ee96d0c4d065a16
src/views/zzmx/chda.vue
@@ -178,6 +178,7 @@
          <el-table-column
            prop="stocktypename"
            label="存货类型"
            show-tooltip-when-overflow
            sortable="custom"
            min-width="110"
          />
@@ -914,8 +915,8 @@
        this.dialogForm.warehousecode = row.stck_code
        this.dialogForm.stocktypecode = row.stocktypecode
        this.dialogForm.materialtypecode = row.materialtypecode
        this.dialogForm.minstockqty = row.maxqty
        this.dialogForm.maxstockqty = row.minqty
        this.dialogForm.minstockqty = row.minqty
        this.dialogForm.maxstockqty = row.maxqty
      })
      await this.getuomSelect()
    },
@@ -958,10 +959,6 @@
    },
    // 对话框确认
    dialogVisibleConfirm() {
      if (this.defaultroute_codeArr.length > 0 && this.defaultroute_code === '') {
        return this.$message.info('默认工艺路线不能为空!')
      }
      this.$refs.dialogForm.validate(valid => {
        if (valid) {
          this.$store.state.app.buttonIsDisabled = true
@@ -974,8 +971,8 @@
            warehousecode: this.dialogForm.warehousecode,
            stocktypecode: this.dialogForm.stocktypecode,
            materialtypecode: this.dialogForm.materialtypecode,
            minstockqty: this.dialogForm.minstockqty === '' ? 0 : this.dialogForm.minstockqty,
            maxstockqty: this.dialogForm.maxstockqty === '' ? 0 : this.dialogForm.maxstockqty,
            minstockqty: this.dialogForm.minstockqty ? parseFloat(this.dialogForm.minstockqty) : 0,
            maxstockqty: this.dialogForm.maxstockqty ? parseFloat(this.dialogForm.maxstockqty) : 0,
            OperType: this.operation === 'add' ? 'Add' : 'Update'
          }
          AddUpdateInventoryFile(data).then(res => {
@@ -1071,8 +1068,7 @@
    },
    // 确定
    async routeDialogVisibleConfirm() {
      const temp = this.dialogFormRoute.routeOperationArr.filter(item => item.isSelected2)
      if (this.defaultroute_code === '' && temp.length > 0) {
      if (this.defaultroute_code === null || this.defaultroute_code === 'null') {
        return this.$message.info('默认工艺路线不能为空!')
      }