吴羡
7 小时以前 9862248787934f4242ac9636e0c4d5b8ee0870b8
src/views/CNAS/process/ensureResults/qualityControlPlan/components/detailFormDialog.vue
@@ -38,7 +38,7 @@
        </el-col>
        <el-col :span="12">
          <el-form-item label="监督原因" prop="superviseReason">
            <el-input v-model="form.superviseReason" clearable disabled size="small"></el-input>
            <el-input v-model="form.superviseReason" clearable placeholder="请输入监督原因" size="small"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
@@ -94,15 +94,10 @@
  },
  // 方法集合
  methods: {
    openDia(type, row, causeType) {
    openDia(type, row) {
      this.formDia = true
      this.operationType = type
      this.getUserList()
      if (causeType == 1) {
        this.form.superviseReason = '定期监督'
      } else {
        this.form.superviseReason = '动态监督'
      }
      if (type === 'edit') {
        this.searchInfo(row)
      }
@@ -115,6 +110,12 @@
    },
    searchInfo (row) {
      this.form = {...row}
      // 导入的历史数据可能是完整日期(2026/3/15),月份选择器需要 YYYY.M 才能回显
      const text = row.superviseTime ? String(row.superviseTime).trim() : ''
      const matched = text.match(/^(\d{4})\s*[./年-]\s*(\d{1,2})(?:\s*[./月-]\s*\d{1,2}\s*日?)?$/)
      if (matched && Number(matched[2]) >= 1 && Number(matched[2]) <= 12) {
        this.form.superviseTime = `${matched[1]}.${Number(matched[2])}`
      }
    },
    // 提交表单
    submitForm () {