zouyu
2024-01-17 3bda22fd0c61d053f0f817a95230d39c0c6baddb
src/views/quality/exception/exceptionform.vue
@@ -40,10 +40,23 @@
        </el-input>
      </el-form-item>
      <el-form-item label="异常类型" prop="exceptionType">
        <el-input
        <!-- <el-input
          v-model="dataForm.exceptionType"
          placeholder="异常类型"
        ></el-input>
        ></el-input> -->
        <el-select
              v-model="dataForm.exceptionType"
              style="width:100%;"
              placeholder="异常类型"
            >
              <el-option
                v-for="item in exceptionHandleTypeOptions"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
      </el-form-item>
      <el-form-item label="异常描述" prop="exceptionDescription">
        <el-input
@@ -88,6 +101,7 @@
import productoutDialog from '@/views/common/productout.vue'
import { loadWarehouse } from '../../../api/warehouse/location'
import { loadWorkstation } from '../../../api/basic/workstation'
import { remote } from '@/api/admin/dict'
import { loadProductMain } from '../../../api/product/personboard'
export default {
@@ -98,6 +112,7 @@
      productoutVisible: false,
      workstationVisible: false,
      visible: false,
      exceptionHandleTypeOptions:[],
      dataForm: {
        id: 0,
        code: '',
@@ -124,7 +139,21 @@
      clickSaveArr: []
    }
  },
  created() {
    console.log("22222222");
    this.getExceptionHandleType()
  },
  methods: {
    getExceptionHandleType() {
      remote('exception_handle_type').then((response) => {
        console.log(response,"-----");
        if (response.data.code === 0) {
          this.exceptionHandleTypeOptions = response.data.data
        } else {
          this.exceptionHandleTypeOptions = []
        }
      })
    },
    init(id, id1, id2) {
      this.dataForm.workstationId = id1
      if (this.dataForm.workstationId) {