qinxianzhangyao
2024-04-26 1e4a70437b5e2f7bd027ebc4081c22b315da3025
qxtj
3个文件已修改
77 ■■■■■ 已修改文件
src/components/createproposal/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/advice/advice/index.vue 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/checkAll/index.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/createproposal/index.vue
@@ -109,15 +109,19 @@
      console.log(val, 111);
      this.propform.advice = val.proParentList;
      this.isZjs = val.isZj;
      if(val.proParentList){
        this.getList();
      }
    },
  },
  mounted() {
    this.propform.kjbq = [];
    this.getList();
    // this.getList();
  },
  created() {
    this.getList();
    // this.getList();
  },
  methods: {
    getList() {
@@ -163,8 +167,6 @@
    },
    handleCheckedCitiesChange(val) {},
    handleOk() {
      console.log(this.isZjs);
      if (this.isZjs == 0) {
        let data = {
          title: this.propform.title,
src/views/advice/advice/index.vue
@@ -166,8 +166,8 @@
            clearable
          >
            <el-option
              v-for="dict in projectList"
              :key="dict.proName"
              v-for="(dict,index) in projectList"
              :key="index"
              :label="dict.proName"
              :value="dict.proId"
            />
@@ -184,9 +184,9 @@
          >
            快捷标签
          </span>
          <el-checkbox-group v-model="form.kjbq">
          <el-checkbox-group v-model="kjbq"   @change="handleCheckedCitiesChange">
            <el-checkbox
              v-for="(item, index) in dataList"
              v-for="(item,index) in dataList"
              :key="index"
              :label="item.id"
              >{{ item.kjbq }}</el-checkbox
@@ -210,7 +210,7 @@
    <el-dialog title="添加快捷标签" :visible.sync="kjbqopen" width="500px" append-to-body>
      <el-form ref="form" :model="form"  label-width="80px">
        <el-form-item label="名称" prop="kjbq">
          <el-input v-model="form.kjbq" placeholder="请输入名称" />
          <el-input v-model="formss.kjbq" placeholder="请输入名称" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
@@ -264,6 +264,7 @@
      // advice表格数据
      adviceList: [],
      dataList: [],
      kjbq:[],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
@@ -277,7 +278,9 @@
      },
      // 表单参数
      form: {
        kjbq:[],
      },
      formss:{
      },
      // 表单校验
      rules: {
@@ -287,7 +290,7 @@
  },
  created() {
    this.getList();
    this.getlistProject();
  },
  methods: {
    /** 查询advice列表 */
@@ -310,7 +313,23 @@
    },
    getlistProject() {
      listProject(this.queryParams).then((response) => {
        this.projectList = response.data;
        if(response.data){
          this.projectList = response.data;
        }
      });
      getInfo().then((res) => {
        this.formss.userId = res.user.userId;
        let data = {
          pageNum: 1,
          pageSize: 10,
          userId: res.user.userId,
          qyzt: 0,
        };
        getTjAdviceKjbqByFl(data).then((res) => {
          if (res.data) {
            this.dataList = res.data.records;
          }
        });
      });
    },
    // 取消按钮
@@ -354,21 +373,9 @@
    handleAdd() {
      this.reset();
      this.title = "体检建议信息维护";
      getInfo().then((res) => {
        let data = {
          pageNum: 1,
          pageSize: 10,
          userId: res.user.userId,
          qyzt: 0,
        };
        getTjAdviceKjbqByFl(data).then((res) => {
          if (res.data) {
            this.dataList = res.data.records;
      this.getlistProject();
            this.open = true;
            console.log(this.dataList )
          }
        });
      });
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
@@ -376,6 +383,7 @@
      const id = row.id || this.ids;
      getAdvice(id).then((response) => {
        this.form = response.data;
        this.getlistProject();
        this.open = true;
        this.title = "体检建议信息维护";
      });
@@ -384,32 +392,35 @@
      this.$refs["form"].validate((valid) => {
        if (valid) {
          if (this.form.id != null) {
            updateTjAdviceKjbq(this.form).then((response) => {
            updateTjAdviceKjbq(this.formss).then((response) => {
              this.$modal.msgSuccess("修改成功");
              this.kjbqopen = false;
              this.getList();
              this.getlistProject();
            });
          } else {
            addTjAdviceKjbq(this.form).then((response) => {
            addTjAdviceKjbq(this.formss).then((response) => {
              this.$modal.msgSuccess("新增成功");
              this.kjbqopen = false;
              this.getList();
              this.getlistProject();
            });
          }
        }
      });
    },
    handleCheckedCitiesChange(val) {},
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate((valid) => {
        if (valid) {
          if (this.form.id != null) {
            this.form.kjbq    =  this.kjbq.toString()
            updateAdvice(this.form).then((response) => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            this.form.kjbq    =  this.kjbq.toString()
            addAdvice(this.form).then((response) => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
src/views/doctor/checkAll/index.vue
@@ -1048,7 +1048,7 @@
    </el-dialog>
    <Packages ref="bbb" :baogao="baogao" />
    <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" />
    <createproposal ref="createproposal" :textarea1="textarea1" />
    <createproposal ref="createproposal" :creatobj="creatobj" />
    <el-dialog
      title="常用建议维护"
@@ -1123,6 +1123,7 @@
      hosproy: true,
      remarks: "",
      remark: "",
      creatobj:{},
      propdialog: false,
      proIds: "",
      cusobj: {},
@@ -1496,6 +1497,7 @@
    },
    proposalChange() {
      if (this.textarea1) {
        this.creatobj = {proParentList:this.textarea1, isZj: 0}
        this.$refs.createproposal.open = true;
        this.$refs.createproposal.title = "常用建议维护";
      }else{