qx
2025-03-26 155a30a172e4cf04838dcf7c8bb73ce6b200e574
src/components/jianqianwenzhen/index.vue
@@ -65,6 +65,7 @@
            </el-form-item>
            <el-form-item label="接触毒物" prop="contactPoison">
              <el-input
              @focus="change"
                type="textarea"
                rows="4"
                v-model="form.contactPoison"
@@ -74,6 +75,7 @@
            </el-form-item>
            <el-form-item label="既往病史" prop="medicalHistory">
              <el-input
               @focus="change"
                type="textarea"
                rows="4"
                v-model="form.medicalHistory"
@@ -671,6 +673,23 @@
        >提交</el-button
      >
    </div>
    <el-dialog title="接触毒物" :visible.sync="dialogTableVisible">
  <el-table :data="gridData"  @selection-change="handleSelectionChange">
    <el-table-column
      type="selection"
      width="55">
    </el-table-column>
    <el-table-column property="date" label="序号" width="150"></el-table-column>
    <el-table-column property="value" label="毒物" width="200"></el-table-column>
  </el-table>
  <div slot="footer" class="dialog-footer">
    <el-button @click="dialogTableVisible = false">取 消</el-button>
    <el-button type="primary" @click="dialogFormVisible">确 定</el-button>
  </div>
</el-dialog>
  </div>
</template>
@@ -703,6 +722,18 @@
      jiwangbingshi: true,
      diseaseNames: "",
      zhenghuzangList: [],
      dialogTableVisible: false,
      multipleSelection: [],
      gridData: [
      {
          value: "既往病",
          label: "既往病",
        },
        {
          value: "职业病",
          label: "职业病",
        },
      ],
      options: [
        {
          value: "既往病",
@@ -884,6 +915,8 @@
      this.loading = false;
    }
  },
  methods: {
    /** 查询疾病字典列表 */
    getList() {
@@ -992,6 +1025,23 @@
      }
    },
    change(){
      this.multipleSelection =[]
      this.dialogTableVisible = true
  },
  handleSelectionChange(val) {
        this.multipleSelection = val;
      },
  dialogFormVisible(){
    this.multipleSelection.forEach((item) => {
      this.form.contactPoison += item.value + ","
    })
      this.dialogTableVisible = false
  },
    delememberss() {
      let that = this;
      if (that.form.workLogs.length == that.chageall.length) {