loulijun2021
2022-12-27 72fd6cbea51457ebf411ef12b9de161019d1803b
src/views/zzmx/chda.vue
@@ -147,6 +147,7 @@
          />
          <el-table-column
            prop="partcode"
            show-tooltip-when-overflow
            label="物料编码"
            min-width="160"
            sortable="custom"
@@ -154,6 +155,7 @@
          <el-table-column
            prop="partname"
            min-width="160"
            show-tooltip-when-overflow
            label="物料名称"
            sortable="custom"
          />
@@ -173,12 +175,14 @@
            prop="uom_name"
            label="单位"
            width="75"
            show-tooltip-when-overflow
            sortable="custom"
          />
          <el-table-column
            prop="stocktypename"
            label="存货类型"
            sortable="custom"
            show-tooltip-when-overflow
            min-width="110"
          />
          <!--          <el-table-column-->
@@ -189,6 +193,7 @@
          <el-table-column
            prop="stck_name"
            label="仓库名称"
            show-tooltip-when-overflow
            sortable="custom"
            min-width="110"
          >
@@ -201,6 +206,7 @@
            prop="maxqty"
            label="库存上限"
            width="110"
            show-tooltip-when-overflow
            sortable="custom"
          >
            <template slot-scope="{row}">
@@ -212,6 +218,7 @@
            prop="minqty"
            label="库存下限"
            width="110"
            show-tooltip-when-overflow
            sortable="custom"
          >
            <template slot-scope="{row}">
@@ -221,6 +228,7 @@
          </el-table-column>
          <el-table-column
            prop="lm_user"
            show-tooltip-when-overflow
            label="创建人员"
            sortable="custom"
            width="110"
@@ -228,12 +236,14 @@
          <el-table-column
            prop="lm_date"
            label="创建时间"
            show-tooltip-when-overflow
            sortable="custom"
            width="160"
          />
          <el-table-column
            label="工艺路线"
            width="80"
            show-tooltip-when-overflow
            prop="proute_id"
          >
            <template slot-scope="{row}">
@@ -417,6 +427,7 @@
        />
        <el-table-column
          prop="code"
          show-tooltip-when-overflow
          label="类型编码"
          sortable="custom"
        >
@@ -428,6 +439,7 @@
        <el-table-column
          prop="name"
          label="类型名称"
          show-tooltip-when-overflow
          sortable="custom"
        >
          <template slot-scope="{row}">
@@ -438,6 +450,7 @@
        <el-table-column
          prop="digdect"
          label="小数位数"
          show-tooltip-when-overflow
          sortable="custom"
        >
          <template slot-scope="{row}">
@@ -454,6 +467,7 @@
        <el-table-column
          prop="r_ule"
          label="取整规则"
          show-tooltip-when-overflow
          sortable="custom"
        >
@@ -513,7 +527,7 @@
      title="关联工艺路线"
      :visible.sync="dialogVisibleRoute"
      width="800px"
      top="10vh"
      top="5vh"
      :fullscreen="isIpad"
      class="dialogVisibleRoute"
      @closed="handleCloseRoute"
@@ -591,15 +605,18 @@
          />
          <el-table-column
            prop="stepcode"
            show-tooltip-when-overflow
            label="工序编码"
          />
          <el-table-column
            prop="stepname"
            label="工序名称"
            show-tooltip-when-overflow
          />
          <el-table-column
            prop="enable"
            label="启用状态"
            show-tooltip-when-overflow
            fixed="right"
          >
            <template slot-scope="{row}">
@@ -958,10 +975,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
@@ -1071,8 +1084,8 @@
    },
    // 确定
    async routeDialogVisibleConfirm() {
      const temp = this.dialogFormRoute.routeOperationArr.filter(item => item.isSelected2)
      if (this.defaultroute_code === '' && temp.length > 0) {
      console.log(this.defaultroute_code)
      if (this.defaultroute_code === null || this.defaultroute_code === 'null') {
        return this.$message.info('默认工艺路线不能为空!')
      }