1
lkk
2025-05-19 7ece33dcba419884924da9e2ea7ba2b53775ca93
src/components/jianqianwenzhen/index.vue
@@ -83,12 +83,12 @@
            </el-form-item>
            <el-form-item
              label="接触有害物工龄"
              prop="zgongLing"
              prop="jhgl"
              label-width="150px"
            >
              <!-- <el-input v-model="form.cusName" placeholder="请输入工龄" style="width: 150px" />年 -->
              <el-input-number
                v-model="form.zgongLing"
                v-model="form.jhgl"
                label="请输入接触有害物工龄"
              ></el-input-number
              >年
@@ -108,10 +108,11 @@
                style="width: 700px"
              />
            </el-form-item> -->
            <el-form-item label="体检危害因素" prop="tjwhyx">
            <el-form-item label="体检危害因素" prop="tjwhys">
              <el-select
                filterable
                v-model="form.tjwhyx"
                v-model="form.tjwhys"
                @change="handleTjwhysChange"
                placeholder="请选择体检危害因素"
                clearable
                style="width: 180px"
@@ -126,12 +127,12 @@
            </el-form-item>
            <el-form-item
              label="接触危害因素"
              prop="tcwhyx"
              prop="jcwhys"
              style="margin-left: 30px"
            >
              <el-select
                filterable
                v-model="form.tcwhyx"
                v-model="form.jcwhys"
                placeholder="请选择接触危害因素"
                clearable
                style="width: 180px"
@@ -913,9 +914,11 @@
        dwmc: "",
        ygdw: "",
        gongLing: "",
        zgongLing: "",
        jhgl: "",
        yjsfyc: "", // 是否异常
        ycms: "", // 异常描述
        tjwhys: "",
        jcwhys: "",
        xiyan: "",
        xiyanpinlv: "",
        xiyanyear: "",
@@ -1093,6 +1096,10 @@
      list(this.queryParams).then((response) => {
        this.rulesList = response.rows;
      });
    },
    handleTjwhysChange(val) {
      console.log("tjwhys changed:", val);
    },
    getzhenzhuangList() {
@@ -1308,7 +1315,6 @@
        });
      }
    },
    delemembers() {
      if (this.bingshiall && this.bingshiall.length > 0) {
@@ -1359,10 +1365,12 @@
      });
    }, */
    submitForm() {
      console.log("提交前 form:", JSON.parse(JSON.stringify(this.form)));
      this.$refs.form.validate((valid) => {
        console.log("校验后 form:", JSON.parse(JSON.stringify(this.form)));
        if (valid) {
          this.$emit("submitLoading", true);
          // this.form.medicalHistory =this.form.mediHistory
          const selected = this.form.mediHistoryq || [];
          this.form.medicalHistory = selected.map((name) => {
@@ -1370,14 +1378,15 @@
            // console.log(match);
            return {
              icdname: match.icdname,
              icdname: match ? match.icdname : "",
              id: match ? match.id : "",
            };
          });
          console.log(this.form.medicalHistory, 1236);
          console.log(this.form, 1236);
          updateHistory(this.form)
            .then((response) => {
              console.log("接口返回数据", response.data);
              this.$message.success("修改成功");
              // this.form = response.data; // 更新表单数据