1
lkk
3 天以前 80402ee4f8feb54d85b15201006ba2198cb0c743
1
4个文件已修改
85 ■■■■ 已修改文件
src/api/doctor/checkAll.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/proposal/index.vue 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/checkAll/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/commonAdvice/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/doctor/checkAll.js
@@ -65,8 +65,8 @@
export function getTjdetailList(data) {
  return request({
    url: '/check/getTjdetailList',
    method: 'put',
    params: data
    method: 'post',
    data: data
  })
}
src/components/proposal/index.vue
@@ -25,7 +25,7 @@
        </el-form-item>
        <el-form-item v-show="tjproposal == 0">
          <el-input
            v-model="queryParams1.zyzd"
            v-model="searchAdv"
            style="width: 180px"
            placeholder="请输入搜索内容"
            clearable
@@ -35,6 +35,17 @@
        <el-button type="primary" @click="search" v-show="tjproposal == 0"
          >搜索</el-button
        >
        <el-form-item v-show="tjproposal == 1">
          <el-input
            v-model="searchCyjy"
            style="width: 180px"
            placeholder="请输入搜索内容"
            clearable
            @clear="search1"
          ></el-input>
        </el-form-item>
        <el-button type="primary" @click="search1" v-show="tjproposal == 1"
          >搜索</el-button>
      </el-form>
      <el-table
@@ -47,7 +58,7 @@
        height="500px"
      >
        <el-table-column type="selection" width="40" align="center" />
        <el-table-column label="编码" width="70" align="center" prop="id" />
        <!-- <el-table-column label="编码" width="70" align="center" prop="id" /> -->
        <el-table-column label="标题" width="120" align="center" prop="title" />
        <el-table-column label="建议内容" align="left" prop="advice" />
        <!-- <el-table-column
@@ -96,7 +107,7 @@
            :total="total"
            :page.sync="queryParams.page"
            :limit.sync="queryParams.pageSize"
            @pagination="radiotjproposalChange"
            @pagination="radiotjproposalChange1"
          />
        </div>
      </div>
@@ -136,6 +147,7 @@
      tjproposal: "0",
      open: false,
      openone: false,
      prevOpen: false,
      // 弹出层标题
      title: "",
      total: 0,
@@ -144,6 +156,7 @@
      // 遮罩层
      loading: false,
      searchAdv: "",
      searchCyjy:"",
      queryParams1: {
        pageNum: 1,
        pageSize: 10,
@@ -179,13 +192,16 @@
  mounted() {
    // this.getList()
  },
  created() {
    // if( this.queryParams){
    //     this.getList()
    // }
  },
  methods: {
    clearSearchFields() {
      this.searchAdv = ''
      this.searchCyjy = ''
    },
    setTjProposal(mode) {
      if (this.tjproposal !== mode) {
        this.tjproposal = mode;
@@ -220,8 +236,8 @@
      console.log(this.list);
    },
    search() {
      // this.queryParams.jybt = this.searchAdv;
      // this.queryParams.page = 1;
      this.queryParams1.zyzd = this.searchAdv;
      this.queryParams.pageNum = 1;
      this.loading = true;
      listAdvicerules(this.queryParams1).then((res) => {
        this.dataList = res.rows;
@@ -229,9 +245,24 @@
        this.loading = false;
      });
    },
    search1() {
      this.queryParams.nr = this.searchCyjy;
      this.queryParams.page = 1;
      this.loading = true;
      getInfo().then((res) => {
        this.queryParams.userId = res.user.userId;
        this.queryParams.isZj = null;
        getCyTjAdviceKjbqBySex(this.queryParams).then((res) => {
          this.dataList = res.data.records;
          this.total = res.data.total;
          this.loading = false;
        });
      });
    },
    radiotjproposalChange() {
      if (this.tjproposal == "0") {
        this.searchAdv = "";
        // this.searchAdv = "";
        // this.queryParams.isZj = this.fList.isZj;
        // this.queryParams.userId = null;
        this.getList();
@@ -254,6 +285,32 @@
        });
      }
    },
     radiotjproposalChange1() {
      if (this.tjproposal == "0") {
        // this.searchCyjy = "";
        this.queryParams.isZj = this.fList.isZj;
        this.queryParams.userId = null;
        this.getList();
      } else {
        this.loading = true;
        getInfo().then((res) => {
          this.queryParams.userId = res.user.userId;
          this.queryParams.isZj = null;
          getCyTjAdviceKjbqBySex(this.queryParams).then((res) => {
            if (res.data) {
              this.dataList = res.data.records;
              this.total = res.data.total;
            } else {
              this.dataList = [];
              this.total = 0;
              this.$modal.msgError(res.msg);
            }
            this.loading = false;
          });
        });
      }
    },
    handleOk() {
      this.open = false;
      if (this.list.length != 0) {
src/views/doctor/checkAll/index.vue
@@ -337,7 +337,7 @@
              <el-form ref="numberValidateForm" label-width="80px" class="demo-ruleForm" v-if="tjproject != '1'">
                <el-form-item label="总检建议">
                  <el-input type="textarea" placeholder="请输入内容" v-model="textarea1" :autosize="{ minRows: minRows, maxRows: maxRows }"></el-input>
                  <el-input type="textarea" placeholder="请输入内容" v-model="textarea1" :autosize="{ minRows: minRows, maxRows: maxRows }" style="font-size: 16px;"></el-input>
                </el-form-item>
              </el-form>
              <div slot="footer" class="dialog-footers">
@@ -868,7 +868,7 @@
    </el-dialog>
    <Packages ref="bbb" :baogao="baogao" />
    <Prescription ref="Pre" :preObj="preObj" />
    <proposal ref="proposal" :cusobj="cusobj" :mrjy="mrjy" @event1="eventchange($event)" />
    <proposal ref="proposal"  :cusobj="cusobj" :mrjy="mrjy" @event1="eventchange($event)" />
    <createproposal ref="createproposal" :creatobj="creatobj" />
    <el-dialog title="常用建议维护" :visible.sync="propdialog" width="500px" append-to-body></el-dialog>
  </div>
@@ -1822,8 +1822,10 @@
    propoChange() {
      this.cusobj = { sex: this.tableAll.cusSex, isZj: 0 };
      getConfigKey("mrzscyjy").then((res) => {
        this.mrjy = res.msg; 
        this.$refs.proposal.clearSearchFields()
        this.$refs.proposal.title = "建议方案";
        this.$refs.proposal.open = true;
      });
src/views/hosp/commonAdvice/index.vue
@@ -46,10 +46,10 @@
    <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body :close-on-click-modal="false">
      <el-form ref="form" :model="form" label-width="80px" :inline="true">
        <el-form-item label="标题" prop="title">
          <el-input v-model="form.title" placeholder="请输入标题" style="width: 200px" />
          <el-input v-model="form.title" placeholder="请输入标题" style="width: 780px" />
        </el-form-item>
        <el-form-item label="内容" prop="advice">
          <el-input v-model="form.advice" type="textarea" placeholder="请输入主要内容" style="width: 780px" />
          <el-input v-model="form.advice" type="textarea" :rows="20" placeholder="请输入主要内容" style="width: 780px" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">