zouyu
2024-01-04 dce1a39a7c7c52d36007e2b134def3d2bfb85ce0
src/views/basic/workstation/workstation-form.vue
@@ -1,10 +1,10 @@
<template>
  <el-dialog
    v-diadrag
    :title="!dataForm.id ? '新增' : '修改'"
    :close-on-click-modal="false"
    :visible.sync="visible"
    style="min-width: 2000px"
    width="60%"
    top="5vh"
  >
    <el-row>
      <el-form
@@ -92,7 +92,7 @@
        type="card"
        v-model="activeTabName"
        ref="tabs"
        style="height: 400px"
        style="height: 320px"
      >
        <el-tab-pane label="设备" name="equip">
          <el-transfer
@@ -127,7 +127,7 @@
          >
          </el-transfer>
        </el-tab-pane>
        <el-tab-pane label="产出待检库位" name="inspection">
       <!--  <el-tab-pane label="产出待检库位" name="inspection">
          <el-transfer
            filterable
            v-model="inspectionLocationIds"
@@ -137,8 +137,8 @@
            @change="handleChangeInspectionLocation"
          >
          </el-transfer>
        </el-tab-pane>
        <el-tab-pane label="产出不合格库位" name="disqualified">
        </el-tab-pane> -->
        <!-- <el-tab-pane label="产品不合格库位" name="disqualified">
          <el-transfer
            filterable
            v-model="disqualifiedLocationIds"
@@ -148,8 +148,8 @@
            @change="handleChangeDisqualifiedLocation"
          >
          </el-transfer>
        </el-tab-pane>
        <el-tab-pane label="产出合格库位" name="qualified">
        </el-tab-pane> -->
        <el-tab-pane label="产品合格库位" name="qualified">
          <el-transfer
            filterable
            v-model="qualifiedLocationIds"
@@ -160,7 +160,7 @@
          >
          </el-transfer>
        </el-tab-pane>
        <el-tab-pane label="检验待处理库位" name="pending">
        <!-- <el-tab-pane label="检验待处理库位" name="pending">
          <el-transfer
            filterable
            v-model="pendingLocationIds"
@@ -170,7 +170,7 @@
            @change="handleChangePendingLocation"
          >
          </el-transfer>
        </el-tab-pane>
        </el-tab-pane> -->
        <el-tab-pane label="成品待检库位" name="product">
          <el-transfer
            filterable
@@ -335,12 +335,12 @@
      }
    },
    handleChangeQualifiedLocation(value, direction, movedKeys) {
      // if (value && value.length > 1) {
      //   this.qualifiedLocationIds = this.myQualifiedLocation
      //   this.$message.warning('该库位只能存在一个')
      // } else {
      this.myQualifiedLocation = value
      // }
      if (value && value.length > 1) {
        this.qualifiedLocationIds = this.myQualifiedLocation
        this.$message.warning('该库位只能存在一个')
      } else {
        this.myQualifiedLocation = value
      }
    },
    handleChangeDisqualifiedLocation(value, direction, movedKeys) {
      if (value && value.length > 1) {
@@ -416,7 +416,6 @@
        getObj(this.dataForm.id).then((response) => {
          if (this.dataForm) {
            this.dataForm = response.data.data
            console.log(this.dataForm)
            this.allEquipList = this.dataForm.equipments
            this.allFeedLocation = this.dataForm.locations
            this.allLocation = JSON.parse(