zss
2025-07-23 9da0675fa67f1f03f48881b2664da4c01356d1b5
src/views/technology/operation/operation-form.vue
@@ -36,6 +36,7 @@
                  style="width:100%"
                  v-model="dataForm.operationNo"
                  placeholder="工序编号"
                  :disabled="isUpdate"
                ></el-input>
              </el-form-item>
            </el-col>
@@ -281,6 +282,7 @@
        <ParamTemplateDialog
          :currshowlist.sync="showOperationTemplate"
          @handleSelectionParamTemplateChange="selectOperationTemplate"
          :paramTemplateObj="templateDefaultObj"
        />
        <StepDialog
          :currshowlist.sync="showStep"
@@ -329,6 +331,7 @@
      typeOptions: [],
      ids: [],
      showOperationTemplate: false,
      templateDefaultObj: { dataType: '生产记录' },
      showStep: false,
      isInsertStep: false,
      stepIndex: null,
@@ -380,6 +383,9 @@
        name: [
          { required: true, message: '工序名称不能为空', trigger: 'blur' }
        ],
        workCenter: [
          { required: true, message: '工作中心不能为空', trigger: 'blur' }
        ],
        productionCounting: [
          { required: true, message: '是否报工不能为空', trigger: 'blur' }
        ],
@@ -398,7 +404,8 @@
      workCenterOptions: [],
      runTimeCodeDbOptions: [],
      laborClassNoOptions: [],
      outsideOpItemOptions: []
      outsideOpItemOptions: [],
      isUpdate:false
    }
  },
  computed: {
@@ -507,6 +514,7 @@
    init() {
      // this.operationId = this.dataForm.id
      // this.fetchCapabilityForOperation()
      if (this.dataForm.id) {
        getObj(this.dataForm.id).then((response) => {
          this.dataForm = response.data.data
@@ -1062,6 +1070,9 @@
  created() {
    this.dataForm.id = this.$route.params.id
    if(this.dataForm.id){
      this.isUpdate=true
    }
    this.init()
    this.initPartFamilySelect()
    this.getParamType()