From 51123d5ad145745f855280783c01cc2906b693d0 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期三, 24 一月 2024 18:00:20 +0800
Subject: [PATCH] su

---
 src/views/hosp/replylog/index.vue |  956 +++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 529 insertions(+), 427 deletions(-)

diff --git a/src/views/hosp/replylog/index.vue b/src/views/hosp/replylog/index.vue
index 58a50ee..114312a 100644
--- a/src/views/hosp/replylog/index.vue
+++ b/src/views/hosp/replylog/index.vue
@@ -1,444 +1,546 @@
 <template>
-    <div class="app-container">
-        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
-            <el-form-item label="浣撴鍙�" prop="tjNumber">
-                <el-input v-model="queryParams.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" ref="inputName" @blur="handleQuery" />
-            </el-form-item>
-            <el-form-item label="鐢ㄦ埛鍚�" prop="userName">
-                <el-input v-model="queryParams.userName" placeholder="璇疯緭鍏ョ敤鎴峰悕" clearable @keyup.enter.native="handleQuery" />
-            </el-form-item>
-            <el-form-item label="${comment}" prop="hzDoctorName">
-                <el-input v-model="queryParams.hzDoctorName" placeholder="璇疯緭鍏�${comment}" clearable
-                    @keyup.enter.native="handleQuery" />
-            </el-form-item>
-            <el-form-item>
-                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
-                <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
-            </el-form-item>
-        </el-form>
+  <div class="app-container">
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      size="small"
+      :inline="true"
+      v-show="showSearch"
+      label-width="68px"
+    >
+      <el-form-item label="浣撴鍙�" prop="tjNumber">
+        <el-input
+          v-model="queryParams.tjNumber"
+          placeholder="璇疯緭鍏ヤ綋妫�鍙�"
+          clearable
+          @keyup.enter.native="handleQuery"
+          ref="inputName"
+          @blur="hb"
+        />
+      </el-form-item>
+      <el-form-item label="鐢ㄦ埛鍚�" prop="userName">
+        <el-input
+          v-model="queryParams.userName"
+          placeholder="璇疯緭鍏ョ敤鎴峰悕"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <!-- <el-form-item label="${comment}" prop="hzDoctorName">
+        <el-input
+          v-model="queryParams.hzDoctorName"
+          placeholder="璇疯緭鍏�${comment}"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item> -->
+      <el-form-item>
+        <el-button
+          type="primary"
+          icon="el-icon-search"
+          size="mini"
+          @click="handleQuery"
+          >鎼滅储</el-button
+        >
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+          >閲嶇疆</el-button
+        >
+      </el-form-item>
+    </el-form>
 
-        <el-row :gutter="10" class="mb8">
-            <el-col :span="1.5">
-                <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
-                    v-hasPermi="['hosp:replylog:add']">鏂板
-                </el-button>
-            </el-col>
-            <el-col :span="1.5">
-                <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
-                    v-hasPermi="['hosp:replylog:edit']">淇敼
-                </el-button>
-            </el-col>
-            <el-col :span="1.5">
-                <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
-                    v-hasPermi="['hosp:replylog:remove']">鍒犻櫎
-                </el-button>
-            </el-col>
-            <el-col :span="1.5">
-                <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
-                    v-hasPermi="['hosp:replylog:export']">瀵煎嚭
-                </el-button>
-            </el-col>
-            <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
-        </el-row>
+    <!-- <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['hosp:replylog:add']"
+          >鏂板
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['hosp:replylog:edit']"
+          >淇敼
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['hosp:replylog:remove']"
+          >鍒犻櫎
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+         type="primary"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['hosp:replylog:export']"
+          >瀵煎嚭
+        </el-button>
+      </el-col>
+      <right-toolbar
+        :showSearch.sync="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
+    </el-row> -->
 
-        <el-table v-loading="loading" :data="replylogList" @selection-change="handleSelectionChange">
-            <el-table-column type="selection" width="55" align="center" />
-            <el-table-column label="浼氳瘖id" align="center" prop="id" />
-            <el-table-column label="浼氳瘖璁㈠崟id" align="center" prop="orderId" />
-            <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" />
-            <el-table-column label="鐢ㄦ埛id" align="center" prop="userId" />
-            <el-table-column label="鐢ㄦ埛鍚�" align="center" prop="userName" />
-            <el-table-column label="浼氳瘖绫诲瀷0鍏ㄩ櫌浼氳瘖1绉戝浼氳瘖" align="center" prop="hzType" />
-            <el-table-column label="鍥炲鍖荤敓" align="center" prop="replyDoctorId" />
-            <el-table-column label="鍥炲鍖荤敓鍚�" align="center" prop="replyDoctorName" />
-            <el-table-column label="鍥炲閮ㄩ棬" align="center" prop="replyDeptId" />
-            <el-table-column label="鍥炲閮ㄩ棬鍚�" align="center" prop="replyDeptName" />
-            <el-table-column label="鍥炲鍐呭" align="center" prop="replyContent" />
-            <el-table-column label="" align="center" prop="status" />
-            <el-table-column label="" align="center" prop="remark" />
-            <el-table-column label="浼氳瘖鐢宠id" align="center" prop="hzId" />
-            <el-table-column label="${comment}" align="center" prop="hzDoctorId" />
-            <el-table-column label="${comment}" align="center" prop="hzDoctorName" />
-            <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
-                <template slot-scope="scope">
-                    <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
-                        v-hasPermi="['hosp:replylog:edit']">淇敼
-                    </el-button>
-                    <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
-                        v-hasPermi="['hosp:replylog:remove']">鍒犻櫎
-                    </el-button>
-                </template>
-            </el-table-column>
-        </el-table>
+    <el-table
+      v-loading="loading"
+      :data="replylogList"
+      @selection-change="handleSelectionChange"
+    >
+      <el-table-column type="selection" width="55" align="center" />
+      <!-- <el-table-column label="浼氳瘖id" align="center" prop="id" />
+      <el-table-column label="浼氳瘖璁㈠崟id" align="center" prop="orderId" /> -->
+      <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" />
+      <!-- <el-table-column label="鐢ㄦ埛id" align="center" prop="userId" /> -->
+      <el-table-column label="鐢ㄦ埛鍚�" align="center" prop="userName" />
+      <el-table-column label="浼氳瘖绫诲瀷" align="center" prop="hzType">
+        <template slot-scope="scope">
+          <dict-tag
+            :options="dict.type.hz_type"
+            :value="scope.row.hzType"
+          />
+        </template>
+      </el-table-column>
+      <!-- <el-table-column label="鍥炲鍖荤敓" align="center" prop="replyDoctorId" /> -->
+      <el-table-column label="鍥炲鍖荤敓鍚�" align="center" prop="replyDoctorName"/>
+      <el-table-column label="鍥炲閮ㄩ棬" align="center" prop="replyDeptId" />
+      <el-table-column label="鍥炲閮ㄩ棬鍚�" align="center" prop="replyDeptName" />
+      <el-table-column label="鍥炲鍐呭" align="center" prop="replyContent" />
+      <!-- <el-table-column label="" align="center" prop="status" />
+      <el-table-column label="" align="center" prop="remark" /> -->
+      <!-- <el-table-column label="浼氳瘖鐢宠id" align="center" prop="hzId" />
+      <el-table-column label="${comment}" align="center" prop="hzDoctorId" />
+      <el-table-column label="${comment}" align="center" prop="hzDoctorName" /> -->
+      <!-- <el-table-column
+        label="鎿嶄綔"
+        align="center"
+        class-name="small-padding fixed-width"
+      >
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['hosp:replylog:edit']"
+            >淇敼
+          </el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['hosp:replylog:remove']"
+            >鍒犻櫎
+          </el-button>
+        </template>
+      </el-table-column> -->
+    </el-table>
 
-        <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
-            @pagination="getList" />
+    <pagination
+      v-show="total > 0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
 
-        <!-- 娣诲姞鎴栦慨鏀逛細璇婂洖澶嶈褰曞璇濇 -->
-        <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
-            <el-form ref="form" :model="form" :rules="rules" label-width="80px">
-                <el-form-item label="浼氳瘖璁㈠崟id" prop="orderId">
-                    <el-input v-model="form.orderId" placeholder="璇疯緭鍏ヤ細璇婅鍗昳d" />
-                </el-form-item>
-                <el-form-item label="浣撴鍙�" prop="tjNumber">
-                    <el-input v-model="form.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" />
-                </el-form-item>
-                <el-form-item label="鐢ㄦ埛id" prop="userId">
-                    <el-input v-model="form.userId" placeholder="璇疯緭鍏ョ敤鎴穒d" />
-                </el-form-item>
-                <el-form-item label="鐢ㄦ埛鍚�" prop="userName">
-                    <el-input v-model="form.userName" placeholder="璇疯緭鍏ョ敤鎴峰悕" />
-                </el-form-item>
-                <el-form-item label="鍥炲鍖荤敓" prop="replyDoctorId">
-                    <el-input v-model="form.replyDoctorId" placeholder="璇疯緭鍏ュ洖澶嶅尰鐢�" />
-                </el-form-item>
-                <el-form-item label="鍥炲鍖荤敓鍚�" prop="replyDoctorName">
-                    <el-input v-model="form.replyDoctorName" placeholder="璇疯緭鍏ュ洖澶嶅尰鐢熷悕" />
-                </el-form-item>
-                <el-form-item label="鍥炲閮ㄩ棬" prop="replyDeptId">
-                    <el-input v-model="form.replyDeptId" placeholder="璇疯緭鍏ュ洖澶嶉儴闂�" />
-                </el-form-item>
-                <el-form-item label="鍥炲閮ㄩ棬鍚�" prop="replyDeptName">
-                    <el-input v-model="form.replyDeptName" placeholder="璇疯緭鍏ュ洖澶嶉儴闂ㄥ悕" />
-                </el-form-item>
-                <el-form-item label="鍥炲鍐呭">
-                    <editor v-model="form.replyContent" :min-height="192" />
-                </el-form-item>
-                <el-form-item label="" prop="remark">
-                    <el-input v-model="form.remark" placeholder="璇疯緭鍏�" />
-                </el-form-item>
-                <el-form-item label="浼氳瘖鐢宠id" prop="hzId">
-                    <el-input v-model="form.hzId" placeholder="璇疯緭鍏ヤ細璇婄敵璇穒d" />
-                </el-form-item>
-                <el-form-item label="${comment}" prop="hzDoctorId">
-                    <el-input v-model="form.hzDoctorId" placeholder="璇疯緭鍏�${comment}" />
-                </el-form-item>
-                <el-form-item label="${comment}" prop="hzDoctorName">
-                    <el-input v-model="form.hzDoctorName" placeholder="璇疯緭鍏�${comment}" />
-                </el-form-item>
-            </el-form>
-            <div slot="footer" class="dialog-footer">
-                <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
-                <el-button @click="cancel">鍙� 娑�</el-button>
-            </div>
-        </el-dialog>
-    </div>
+    <!-- 娣诲姞鎴栦慨鏀逛細璇婂洖澶嶈褰曞璇濇 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="浼氳瘖璁㈠崟id" prop="orderId">
+          <el-input v-model="form.orderId" placeholder="璇疯緭鍏ヤ細璇婅鍗昳d" />
+        </el-form-item>
+        <el-form-item label="浣撴鍙�" prop="tjNumber">
+          <el-input v-model="form.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" />
+        </el-form-item>
+        <el-form-item label="鐢ㄦ埛id" prop="userId">
+          <el-input v-model="form.userId" placeholder="璇疯緭鍏ョ敤鎴穒d" />
+        </el-form-item>
+        <el-form-item label="鐢ㄦ埛鍚�" prop="userName">
+          <el-input v-model="form.userName" placeholder="璇疯緭鍏ョ敤鎴峰悕" />
+        </el-form-item>
+        <el-form-item label="鍥炲鍖荤敓" prop="replyDoctorId">
+          <el-input v-model="form.replyDoctorId" placeholder="璇疯緭鍏ュ洖澶嶅尰鐢�" />
+        </el-form-item>
+        <el-form-item label="鍥炲鍖荤敓鍚�" prop="replyDoctorName">
+          <el-input
+            v-model="form.replyDoctorName"
+            placeholder="璇疯緭鍏ュ洖澶嶅尰鐢熷悕"
+          />
+        </el-form-item>
+        <el-form-item label="鍥炲閮ㄩ棬" prop="replyDeptId">
+          <el-input v-model="form.replyDeptId" placeholder="璇疯緭鍏ュ洖澶嶉儴闂�" />
+        </el-form-item>
+        <el-form-item label="鍥炲閮ㄩ棬鍚�" prop="replyDeptName">
+          <el-input
+            v-model="form.replyDeptName"
+            placeholder="璇疯緭鍏ュ洖澶嶉儴闂ㄥ悕"
+          />
+        </el-form-item>
+        <el-form-item label="鍥炲鍐呭">
+          <editor v-model="form.replyContent" :min-height="192" />
+        </el-form-item>
+        <el-form-item label="" prop="remark">
+          <el-input v-model="form.remark" placeholder="璇疯緭鍏�" />
+        </el-form-item>
+        <el-form-item label="浼氳瘖鐢宠id" prop="hzId">
+          <el-input v-model="form.hzId" placeholder="璇疯緭鍏ヤ細璇婄敵璇穒d" />
+        </el-form-item>
+        <!-- <el-form-item label="${comment}" prop="hzDoctorId">
+          <el-input v-model="form.hzDoctorId" placeholder="璇疯緭鍏�${comment}" />
+        </el-form-item> -->
+        <!-- <el-form-item label="${comment}" prop="hzDoctorName">
+          <el-input
+            v-model="form.hzDoctorName"
+            placeholder="璇疯緭鍏�${comment}"
+          />
+        </el-form-item> -->
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+        <el-button @click="cancel">鍙� 娑�</el-button>
+      </div>
+    </el-dialog>
+  </div>
 </template>
 
 <script>
 import {
-    listReplylog,
-    getReplylog,
-    delReplylog,
-    addReplylog,
-    updateReplylog
+  listReplylog,
+  getReplylog,
+  delReplylog,
+  addReplylog,
+  updateReplylog,
 } from "@/api/hosp/replylog";
 
 export default {
-    name: "Replylog",
-    data() {
-        return {
-            // 閬僵灞�
-            loading: true,
-            // 閫変腑鏁扮粍
-            ids: [],
-            // 闈炲崟涓鐢�
-            single: true,
-            // 闈炲涓鐢�
-            multiple: true,
-            // 鏄剧ず鎼滅储鏉′欢
-            showSearch: true,
-            // 鎬绘潯鏁�
-            total: 0,
-            // 浼氳瘖鍥炲璁板綍琛ㄦ牸鏁版嵁
-            replylogList: [],
-            // 寮瑰嚭灞傛爣棰�
-            title: "",
-            // 鏄惁鏄剧ず寮瑰嚭灞�
-            open: false,
-            // 鏌ヨ鍙傛暟
-            queryParams: {
-                pageNum: 1,
-                pageSize: 10,
-                tjNumber: null,
-                userName: null,
-                hzType: null,
-                hzDoctorName: null
-            },
-            // 琛ㄥ崟鍙傛暟
-            form: {},
-            // 琛ㄥ崟鏍¢獙
-            rules: {
-            }
-        };
-    },
-    created() {
-        this.getList();
-    },
-    mounted() {
+  name: "Replylog",
+  dicts: ["hz_type"],
+  data() {
+    return {
+      // 閬僵灞�
+      loading: true,
+      // 閫変腑鏁扮粍
+      ids: [],
+      // 闈炲崟涓鐢�
+      single: true,
+      // 闈炲涓鐢�
+      multiple: true,
+      // 鏄剧ず鎼滅储鏉′欢
+      showSearch: true,
+      // 鎬绘潯鏁�
+      total: 0,
+      // 浼氳瘖鍥炲璁板綍琛ㄦ牸鏁版嵁
+      replylogList: [],
+      // 寮瑰嚭灞傛爣棰�
+      title: "",
+      // 鏄惁鏄剧ず寮瑰嚭灞�
+      open: false,
+      // 鏌ヨ鍙傛暟
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        tjNumber: null,
+        userName: null,
+        hzType: null,
+        hzDoctorName: null,
+      },
+      // 琛ㄥ崟鍙傛暟
+      form: {},
+      // 琛ㄥ崟鏍¢獙
+      rules: {},
+    };
+  },
+  created() {
+    this.getList();
+  },
+  mounted() {
     this.$nextTick(() => {
       this.$refs.inputName.focus();
     });
   },
-    methods: {
-        /** 鏌ヨ浼氳瘖鍥炲璁板綍鍒楄〃 */
-        getList() {
-            this.loading = true;
-            listReplylog(this.queryParams).then(response => {
-                this.replylogList = response.rows;
-                this.total = response.total;
-                this.loading = false;
-            });
-        },
-        // 鍙栨秷鎸夐挳
-        cancel() {
-            this.open = false;
-            this.reset();
-        },
-        // 琛ㄥ崟閲嶇疆
-        reset() {
-            this.form = {
-                id: null,
-                orderId: null,
-                tjNumber: null,
-                userId: null,
-                userName: null,
-                hzType: null,
-                replyDoctorId: null,
-                replyDoctorName: null,
-                replyDeptId: null,
-                replyDeptName: null,
-                replyContent: null,
-                status: "0",
-                remark: null,
-                createTime: null,
-                updateTime: null,
-                createBy: null,
-                updateBy: null,
-                deleted: null,
-                hzId: null,
-                hzDoctorId: null,
-                hzDoctorName: null
-            };
-            this.resetForm("form");
-        },
-        /** 鎼滅储鎸夐挳鎿嶄綔 */
-        handleQuery() {
-            this.queryParams.pageNum = 1;
-            this.getList();
-        },
-        /** 閲嶇疆鎸夐挳鎿嶄綔 */
-        resetQuery() {
-            this.resetForm("queryForm");
-            this.handleQuery();
-        },
-        // 澶氶�夋閫変腑鏁版嵁
-        handleSelectionChange(selection) {
-            this.ids = selection.map(item => item.id)
-            this.single = selection.length !== 1
-            this.multiple = !selection.length
-        },
-        /** 鏂板鎸夐挳鎿嶄綔 */
-        handleAdd() {
-            this.reset();
-            this.open = true;
-            this.title = "娣诲姞浼氳瘖鍥炲璁板綍";
-        },
-        /** 淇敼鎸夐挳鎿嶄綔 */
-        handleUpdate(row) {
-            this.reset();
-            const id = row.id || this.ids
-            getReplylog(id).then(response => {
-                this.form = response.data;
-                this.open = true;
-                this.title = "淇敼浼氳瘖鍥炲璁板綍";
-            });
-        },
-        /** 鎻愪氦鎸夐挳 */
-        //         submitForm() {
-        //             this.$]]
-        //             #refs["form"].validate(valid => {
-        //                 if (valid) {
-        //                     #foreach($column in $columns)
-        //                     #if($column.htmlType == "checkbox")
-        //                     this.form.$column.javaField = this.form.$
-        //                     {
-        //                         column.javaField
-        //                     }
-        //                 .
-        //                     join(",");
-        //                     #end
-        //                     #end
-        //                     #if($table.sub)
-        //                     this.form.$
-        //                     {
-        //                         subclassName
-        //                     }
-        //                     List = this.$
-        //                     {
-        //                         subclassName
-        //                     }
-        //                     List;
-        //                     #end
-        //                     if (this.form.${
-        //                         pkColumn.javaField
-        //                     }
-        //                 !=
-        //                     null
-        //                 )
-        //                     {
-        //                         update$
-        //                         {
-        //                             BusinessName
-        //                         }
-        //                         (this.form).then(response => {
-        //                             this.#[[$modal]]
-        //                             #.msgSuccess("淇敼鎴愬姛");
-        //                             this.open = false;
-        //                             this.getList();
-        //                         });
-        //                     }
-        //                 else
-        //                     {
-        //                         add$
-        //                         {
-        //                             BusinessName
-        //                         }
-        //                         (this.form).then(response => {
-        //                             this.#[[$modal]]
-        //                             #.msgSuccess("鏂板鎴愬姛");
-        //                             this.open = false;
-        //                             this.getList();
-        //                         });
-        //                     }
-        //                 }
-        //             });
-        //         },
-        //         /** 鍒犻櫎鎸夐挳鎿嶄綔 */
-        //         handleDelete(row) {
-        //             const ${pkColumn.javaField}s = row.$
-        //             {
-        //                 pkColumn.javaField
-        //             }
-        //         ||
-        //             this.ids;
-        //             this.#[[$modal]]
-        //             #.confirm('鏄惁纭鍒犻櫎${functionName}缂栧彿涓�"' + ${pkColumn.javaField}s + '"鐨勬暟鎹」锛�').then(function () {
-        //                 return del$
-        //                 {
-        //                     BusinessName
-        //                 }
-        //                 (${pkColumn.javaField}s);
-        //             }).then(() => {
-        //                 this.getList();
-        //                 this.#[[$modal]]
-        //                 #.msgSuccess("鍒犻櫎鎴愬姛");
-        //             }).catch(() => {
-        //             });
-        //         },
-        // #if($table.sub)
-        // /** ${subTable.functionName}搴忓彿 */
-        // row$
-        // {
-        //     subClassName
-        // }
-        // Index({row, rowIndex})
-        // {
-        //     row.index = rowIndex + 1;
-        // }
-        // ,
-        // /** ${subTable.functionName}娣诲姞鎸夐挳鎿嶄綔 */
-        // handleAdd$
-        // {
-        //     subClassName
-        // }
-        // ()
-        // {
-        //     let obj = {};
-        //     #foreach($column in $subTable.columns)
-        //     #if($column.pk || $column.javaField == ${subTableFkclassName})
-        //     #elseif($column.list && "" != $javaField)
-        //     obj.$column.javaField = "";
-        //     #end
-        //     #end
-        //     this.$
-        //     {
-        //         subclassName
-        //     }
-        //     List.push(obj);
-        // }
-        // ,
-        // /** ${subTable.functionName}鍒犻櫎鎸夐挳鎿嶄綔 */
-        // handleDelete$
-        // {
-        //     subClassName
-        // }
-        // ()
-        // {
-        //     if (this.checked${
-        //         subClassName
-        //     }
-        // .
-        //     length == 0
-        // )
-        //     {
-        //         this.#[[$modal]]
-        //         #.msgError("璇峰厛閫夋嫨瑕佸垹闄ょ殑${subTable.functionName}鏁版嵁");
-        //     }
-        // else
-        //     {
-        //         const ${subclassName}List = this.$
-        //         {
-        //             subclassName
-        //         }
-        //         List;
-        //         const checked$
-        //         {
-        //             subClassName
-        //         }
-        //         = this.checked$
-        //         {
-        //             subClassName
-        //         }
-        //         ;
-        //         this.$
-        //         {
-        //             subclassName
-        //         }
-        //         List = ${subclassName}List.filter(function (item) {
-        //             return checked$
-        //             {
-        //                 subClassName
-        //             }
-        //         .
-        //             indexOf(item.index) == -1
-        //         });
-        //     }
-        // }
-        // ,
-        // /** 澶嶉�夋閫変腑鏁版嵁 */
-        // handle$
-        // {
-        //     subClassName
-        // }
-        // SelectionChange(selection)
-        // {
-        //     this.checked$
-        //     {
-        //         subClassName
-        //     }
-        //     = selection.map(item => item.index)
-        // }
-        // ,
-        // #end
-        // /** 瀵煎嚭鎸夐挳鎿嶄綔 */
-        // handleExport()
-        // {
-        //     this.download('${moduleName}/${businessName}/export', {
-        //         ...this.queryParams
-        //     }, `${businessName}_#[[${new Date().getTime()}.xlsx`)
-        // }
-    }
-}
-    ;
+  methods: {
+    /** 鏌ヨ浼氳瘖鍥炲璁板綍鍒楄〃 */
+    getList() {
+      this.loading = true;
+      listReplylog(this.queryParams).then((response) => {
+        this.replylogList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 鍙栨秷鎸夐挳
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 琛ㄥ崟閲嶇疆
+    reset() {
+      this.form = {
+        id: null,
+        orderId: null,
+        tjNumber: null,
+        userId: null,
+        userName: null,
+        hzType: null,
+        replyDoctorId: null,
+        replyDoctorName: null,
+        replyDeptId: null,
+        replyDeptName: null,
+        replyContent: null,
+        status: "0",
+        remark: null,
+        createTime: null,
+        updateTime: null,
+        createBy: null,
+        updateBy: null,
+        deleted: null,
+        hzId: null,
+        hzDoctorId: null,
+        hzDoctorName: null,
+      };
+      this.resetForm("form");
+    },
+     hb() {
+      if (this.queryParams.tjNumber != null) {
+        this.handleQuery();
+      }
+    },
+    /** 鎼滅储鎸夐挳鎿嶄綔 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 閲嶇疆鎸夐挳鎿嶄綔 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 澶氶�夋閫変腑鏁版嵁
+    handleSelectionChange(selection) {
+      this.ids = selection.map((item) => item.id);
+      this.single = selection.length !== 1;
+      this.multiple = !selection.length;
+    },
+    /** 鏂板鎸夐挳鎿嶄綔 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "娣诲姞浼氳瘖鍥炲璁板綍";
+    },
+    /** 淇敼鎸夐挳鎿嶄綔 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids;
+      getReplylog(id).then((response) => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "淇敼浼氳瘖鍥炲璁板綍";
+      });
+    },
+    submitForm(){},
+    handleDelete(){},
+    handleExport(){},
+    /** 鎻愪氦鎸夐挳 */
+    //         submitForm() {
+    //             this.$]]
+    //             #refs["form"].validate(valid => {
+    //                 if (valid) {
+    //                     #foreach($column in $columns)
+    //                     #if($column.htmlType == "checkbox")
+    //                     this.form.$column.javaField = this.form.$
+    //                     {
+    //                         column.javaField
+    //                     }
+    //                 .
+    //                     join(",");
+    //                     #end
+    //                     #end
+    //                     #if($table.sub)
+    //                     this.form.$
+    //                     {
+    //                         subclassName
+    //                     }
+    //                     List = this.$
+    //                     {
+    //                         subclassName
+    //                     }
+    //                     List;
+    //                     #end
+    //                     if (this.form.${
+    //                         pkColumn.javaField
+    //                     }
+    //                 !=
+    //                     null
+    //                 )
+    //                     {
+    //                         update$
+    //                         {
+    //                             BusinessName
+    //                         }
+    //                         (this.form).then(response => {
+    //                             this.#[[$modal]]
+    //                             #.msgSuccess("淇敼鎴愬姛");
+    //                             this.open = false;
+    //                             this.getList();
+    //                         });
+    //                     }
+    //                 else
+    //                     {
+    //                         add$
+    //                         {
+    //                             BusinessName
+    //                         }
+    //                         (this.form).then(response => {
+    //                             this.#[[$modal]]
+    //                             #.msgSuccess("鏂板鎴愬姛");
+    //                             this.open = false;
+    //                             this.getList();
+    //                         });
+    //                     }
+    //                 }
+    //             });
+    //         },
+    //         /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+    //         handleDelete(row) {
+    //             const ${pkColumn.javaField}s = row.$
+    //             {
+    //                 pkColumn.javaField
+    //             }
+    //         ||
+    //             this.ids;
+    //             this.#[[$modal]]
+    //             #.confirm('鏄惁纭鍒犻櫎${functionName}缂栧彿涓�"' + ${pkColumn.javaField}s + '"鐨勬暟鎹」锛�').then(function () {
+    //                 return del$
+    //                 {
+    //                     BusinessName
+    //                 }
+    //                 (${pkColumn.javaField}s);
+    //             }).then(() => {
+    //                 this.getList();
+    //                 this.#[[$modal]]
+    //                 #.msgSuccess("鍒犻櫎鎴愬姛");
+    //             }).catch(() => {
+    //             });
+    //         },
+    // #if($table.sub)
+    // /** ${subTable.functionName}搴忓彿 */
+    // row$
+    // {
+    //     subClassName
+    // }
+    // Index({row, rowIndex})
+    // {
+    //     row.index = rowIndex + 1;
+    // }
+    // ,
+    // /** ${subTable.functionName}娣诲姞鎸夐挳鎿嶄綔 */
+    // handleAdd$
+    // {
+    //     subClassName
+    // }
+    // ()
+    // {
+    //     let obj = {};
+    //     #foreach($column in $subTable.columns)
+    //     #if($column.pk || $column.javaField == ${subTableFkclassName})
+    //     #elseif($column.list && "" != $javaField)
+    //     obj.$column.javaField = "";
+    //     #end
+    //     #end
+    //     this.$
+    //     {
+    //         subclassName
+    //     }
+    //     List.push(obj);
+    // }
+    // ,
+    // /** ${subTable.functionName}鍒犻櫎鎸夐挳鎿嶄綔 */
+    // handleDelete$
+    // {
+    //     subClassName
+    // }
+    // ()
+    // {
+    //     if (this.checked${
+    //         subClassName
+    //     }
+    // .
+    //     length == 0
+    // )
+    //     {
+    //         this.#[[$modal]]
+    //         #.msgError("璇峰厛閫夋嫨瑕佸垹闄ょ殑${subTable.functionName}鏁版嵁");
+    //     }
+    // else
+    //     {
+    //         const ${subclassName}List = this.$
+    //         {
+    //             subclassName
+    //         }
+    //         List;
+    //         const checked$
+    //         {
+    //             subClassName
+    //         }
+    //         = this.checked$
+    //         {
+    //             subClassName
+    //         }
+    //         ;
+    //         this.$
+    //         {
+    //             subclassName
+    //         }
+    //         List = ${subclassName}List.filter(function (item) {
+    //             return checked$
+    //             {
+    //                 subClassName
+    //             }
+    //         .
+    //             indexOf(item.index) == -1
+    //         });
+    //     }
+    // }
+    // ,
+    // /** 澶嶉�夋閫変腑鏁版嵁 */
+    // handle$
+    // {
+    //     subClassName
+    // }
+    // SelectionChange(selection)
+    // {
+    //     this.checked$
+    //     {
+    //         subClassName
+    //     }
+    //     = selection.map(item => item.index)
+    // }
+    // ,
+    // #end
+    // /** 瀵煎嚭鎸夐挳鎿嶄綔 */
+    // handleExport()
+    // {
+    //     this.download('${moduleName}/${businessName}/export', {
+    //         ...this.queryParams
+    //     }, `${businessName}_#[[${new Date().getTime()}.xlsx`)
+    // }
+  },
+};
 </script>

--
Gitblit v1.8.0