Fixiaobai
2023-10-25 ae87b881865d0b6812aba2a8928cadb9ef6dd62a
src/views/basic/workstation/workstation-form.vue
@@ -64,7 +64,7 @@
            </el-select>
          </el-form-item>
          <el-form-item label="工厂" prop="factoryId">
            <el-select
            <el-select disabled
              v-model="dataForm.factoryId"
              placeholder="工厂"
              filterable
@@ -87,12 +87,12 @@
        </el-col>
      </el-form>
    </el-row>
    <el-row>
    <el-row style="width: 100%;">
      <el-tabs
        type="card"
        v-model="activeTabName"
        ref="tabs"
        style="height: 400px"
        style="height: 400px;width: 100%;"
      >
        <el-tab-pane label="设备" name="equip">
          <el-transfer
@@ -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"
@@ -181,7 +181,7 @@
            @change="handleProductInspectionLocation"
          >
          </el-transfer>
        </el-tab-pane>
        </el-tab-pane> -->
        <el-tab-pane label="人工模板" name="handyman">
          <el-transfer
            filterable
@@ -221,7 +221,7 @@
        workstationNo: '',
        name: '',
        type: '',
        factoryId: 0,
        factoryId: 117,
        remark: '',
        artificialType: '',
        workCenter: '',
@@ -296,6 +296,7 @@
    'dataForm.factoryId': {
      handler(newValue, oldValue) {
        if (!this.dataForm.id) {
          console.log(1);
          if (newValue) {
            this.workstationFactory.factoryId = this.dataForm.factoryId
            getEquipmentByFactoryId(this.workstationFactory).then(
@@ -592,3 +593,6 @@
  }
}
</script>
<style scoped>
</style>