From 44abccb72072ef05474b06ed790f069c85c24faf Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期一, 28 十月 2024 15:35:02 +0800
Subject: [PATCH] 10.28

---
 src/views/jmreport/jmreport/view.vue           |    4 
 src/views/hosp/order/index.vue                 |  139 +++++++---
 src/views/system/dzcx/index.vue                |  453 +++++++++++++++++++++++++++++++++++++
 src/api/system/dyjl.js                         |   44 +++
 src/views/jmreport/jmreport/budadaozhendan.vue |   18 +
 src/views/sampling/sampling/index.vue          |   11 
 6 files changed, 613 insertions(+), 56 deletions(-)

diff --git a/src/api/system/dyjl.js b/src/api/system/dyjl.js
new file mode 100644
index 0000000..e6696a1
--- /dev/null
+++ b/src/api/system/dyjl.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 鏌ヨ浣撴瀵兼鍗曟墦鍗拌褰曞垪琛�
+export function listDyjl(query) {
+    return request({
+        url: '/system/dyjl/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 鏌ヨ浣撴瀵兼鍗曟墦鍗拌褰曡缁�
+export function getDyjl(id) {
+    return request({
+        url: '/system/dyjl/' + id,
+        method: 'get'
+    })
+}
+
+// 鏂板浣撴瀵兼鍗曟墦鍗拌褰�
+export function addDyjl(data) {
+    return request({
+        url: '/system/dyjl',
+        method: 'post',
+        data: data
+    })
+}
+
+// 淇敼浣撴瀵兼鍗曟墦鍗拌褰�
+export function updateDyjl(data) {
+    return request({
+        url: '/system/dyjl',
+        method: 'put',
+        data: data
+    })
+}
+
+// 鍒犻櫎浣撴瀵兼鍗曟墦鍗拌褰�
+export function delDyjl(id) {
+    return request({
+        url: '/system/dyjl/' + id,
+        method: 'delete'
+    })
+}
diff --git a/src/views/hosp/order/index.vue b/src/views/hosp/order/index.vue
index a2d0947..3a7b1ce 100644
--- a/src/views/hosp/order/index.vue
+++ b/src/views/hosp/order/index.vue
@@ -246,7 +246,10 @@
           :show-overflow-tooltip="true"
         >
           <template slot-scope="scope">
-            <dict-tag :options="dict.type.dict_team" :value="scope.row.tjType" />
+            <dict-tag
+              :options="dict.type.dict_team"
+              :value="scope.row.tjType"
+            />
             <!-- <span v-if="scope.row.tjType == '2'">涓汉</span>
             <span v-if="scope.row.tjType == '1'">鍥㈤槦</span> -->
           </template>
@@ -857,9 +860,9 @@
             </el-tab-pane>
             <el-tab-pane label="鍗曢」" name="third">
               <div class="tab8">
-              <el-row type="flex" class="row-bg" justify="space-around">
-                <el-col :span="22">
-                  <!-- <div
+                <el-row type="flex" class="row-bg" justify="space-around">
+                  <el-col :span="22">
+                    <!-- <div
                   style="
                     text-align: center;
                     margin-bottom: 10px;
@@ -868,29 +871,29 @@
                 >
                   椤圭洰鍒楄〃
                 </div> -->
-                  <el-input
-                    placeholder="杈撳叆鍏抽敭瀛楄繘琛岃繃婊�"
-                    v-model="filterText"
-                  >
-                  </el-input>
-                  <div class="tab3">
-                    <el-tree
-                      class="filter-tree"
-                      v-loading="loading"
-                      :data="Treedata"
-                      :props="defaultProps"
-                      show-checkbox
-                      node-key="proId"
-                      @check="handleCurrentChecked"
-                      :default-checked-keys="checkedkey"
-                      :filter-node-method="filterNode"
-                      ref="tree"
-                      :render-content="renderContent"
+                    <el-input
+                      placeholder="杈撳叆鍏抽敭瀛楄繘琛岃繃婊�"
+                      v-model="filterText"
                     >
-                    </el-tree>
-                  </div>
-                </el-col>
-                <!-- <el-col :span="11">
+                    </el-input>
+                    <div class="tab3">
+                      <el-tree
+                        class="filter-tree"
+                        v-loading="loading"
+                        :data="Treedata"
+                        :props="defaultProps"
+                        show-checkbox
+                        node-key="proId"
+                        @check="handleCurrentChecked"
+                        :default-checked-keys="checkedkey"
+                        :filter-node-method="filterNode"
+                        ref="tree"
+                        :render-content="renderContent"
+                      >
+                      </el-tree>
+                    </div>
+                  </el-col>
+                  <!-- <el-col :span="11">
                 <div
                   style="
                     text-align: center;
@@ -918,7 +921,7 @@
                   </div>
                 </div>
               </el-col> -->
-                <!-- <el-col :span="11">
+                  <!-- <el-col :span="11">
               <div class="grid-content bg-purple">
                 <div
                   style="
@@ -966,7 +969,7 @@
                     </template>
                   </el-table-column>
                 </el-table> -->
-                <!-- <el-collapse v-model="activeName" accordion v-if="list1">
+                  <!-- <el-collapse v-model="activeName" accordion v-if="list1">
                   <div>
                     <el-collapse-item title="璇烽�夋嫨椤圭洰">
                       <el-table
@@ -988,16 +991,16 @@
                     </el-collapse-item>
                   </div>
                 </el-collapse> -->
-                <!-- </div>
+                  <!-- </div>
             </el-col> -->
-              </el-row>
+                </el-row>
               </div>
             </el-tab-pane>
           </el-tabs>
         </div>
 
         <div class="grid-content bg-purple">
-          <div style="text-align: center; margin-bottom: 10px;margin-top:9px">
+          <div style="text-align: center; margin-bottom: 10px; margin-top: 9px">
             宸查�夐」鐩垪琛�
           </div>
           <el-table
@@ -1414,6 +1417,7 @@
 import moment from "moment";
 import { getZhList, getlistByZhId } from "@/api/system/package";
 import { getwater } from "@/api/hosp/customer";
+import { getInfo } from "@/api/login";
 import ViewPdf from "@/components/ViewPdf";
 import {
   projectGetList,
@@ -1426,7 +1430,7 @@
   components: {
     ViewPdf,
   },
-  dicts: ["dict_pay_type","dict_team"],
+  dicts: ["dict_pay_type", "dict_team"],
   name: "Order",
   data() {
     return {
@@ -1697,9 +1701,13 @@
       });
     },
     /** 鐐瑰嚮鏄剧ず瀵兼鍗曟姤琛�*/ //lige    寮�濮�
-    handleReport1(row) {
+    /* handleReport1(row) {
       const tjNumber = this.tjnumbers;
       const viewNum = "792931586196398080";
+      getInfo().then(((res)=>{
+        console.log(res,123);
+        
+      }))
       const params = { viewNum, tjNumber };
       hasReport(tjNumber).then((res) => {
         if (res == 1) {
@@ -1708,6 +1716,31 @@
           this.$message.error("璇ョ敤鎴锋殏鏃犻」鐩紒");
         }
       });
+    }, */
+    handleReport1(row) {
+      const tjNumber = this.tjnumbers;
+      const viewNum = "792931586196398080";
+      // 鍏堣皟鐢� getInfo 鑾峰彇 userId
+      getInfo()
+        .then((res) => {
+          console.log(res, 1111);
+
+          const dqdlr = res.user.userId; // 鑾峰彇 userId
+          console.log("User ID:", dqdlr);
+          const params = { viewNum, tjNumber, dqdlr }; // 灏� userId 鍔犲叆 params
+
+          // 鍐嶈皟鐢� hasReport 妫�鏌ユ姤鍛婄姸鎬�
+          hasReport(tjNumber).then((reportRes) => {
+            if (reportRes === 1) {
+              this.$tab.openPage("瀵艰瘖鍗�", "/report/breDailyReport", params);
+            } else {
+              this.$message.error("璇ョ敤鎴锋殏鏃犻」鐩紒");
+            }
+          });
+        })
+        .catch(() => {
+          this.$message.error("鏃犳硶鑾峰彇鐢ㄦ埛淇℃伅锛�");
+        });
     },
 
     handleRevoke() {
@@ -2016,16 +2049,35 @@
       const tjNumber = this.tjnumbers;
       const viewNum = "983185234038140928";
       const jxbz = this.bldhid;
-      const params = { viewNum, tjNumber, jxbz };
-      console.log(params);
-      hasReport(tjNumber).then((res) => {
+      // const params = { viewNum, tjNumber, jxbz };
+      // console.log(params);
+      getInfo()
+        .then((res) => {
+          console.log(res, 1111);
+          const dqdlr = res.user.userId; // 鑾峰彇 userId
+          const params = { viewNum, tjNumber, jxbz, dqdlr }; 
+          
+          hasReport(tjNumber).then((res) => {
+            if (res == 1) {
+              this.$tab.openPage(
+                "瀵艰瘖鍗�",
+                "/report/budabreDailyReport",
+                params
+              );
+              this.budadaozhen = false;
+            } else {
+              this.$message.error("璇ョ敤鎴锋殏鏃犻」鐩紒");
+            }
+          });
+        })
+      /* hasReport(tjNumber).then((res) => {
         if (res == 1) {
           this.$tab.openPage("瀵艰瘖鍗�", "/report/budabreDailyReport", params);
           this.budadaozhen = false;
         } else {
           this.$message.error("璇ョ敤鎴锋殏鏃犻」鐩紒");
         }
-      });
+      }); */
     },
 
     handleClick(tab, event) {
@@ -2319,9 +2371,9 @@
         }
       });
       this.TotalPrice1 = 0;
-      this.DataList3.forEach(item=>{
+      this.DataList3.forEach((item) => {
         this.TotalPrice1 += item.proPrice;
-      })
+      });
     },
     /** 鍒犻櫎鎸夐挳鎿嶄綔 */
     handleDelete(row) {
@@ -2423,9 +2475,9 @@
       getaddtTransition(data).then((response) => {
         if (response.code === 200) {
           this.DataList = [];
-      this.DataList3 = [];
-      this.DataLists = [];
-      this.TotalPrice1 = 0;
+          this.DataList3 = [];
+          this.DataLists = [];
+          this.TotalPrice1 = 0;
           let tjType = this.form.tjType;
           let copeWith = this.TotalPrice1;
           let paidIn = copeWith * (this.discount / 10);
@@ -2647,11 +2699,10 @@
   margin-top: 10px;
 }
 .box {
-  
   display: flex;
   justify-content: space-between;
 }
-.box1{
+.box1 {
   width: 50%;
   display: flex;
   flex-direction: column;
diff --git a/src/views/jmreport/jmreport/budadaozhendan.vue b/src/views/jmreport/jmreport/budadaozhendan.vue
index 957cf9a..5e30b8d 100644
--- a/src/views/jmreport/jmreport/budadaozhendan.vue
+++ b/src/views/jmreport/jmreport/budadaozhendan.vue
@@ -27,7 +27,7 @@
       loading: true,
       viewNum: "",
       reportId: "",
-      jxbz:"",
+      jxbz: "",
     };
   },
   created() {
@@ -36,7 +36,21 @@
     //浣撴鍙�
     this.tjNumber = this.$route.query.tjNumber;
     this.jxbz = this.$route.query.jxbz;
-    view().then((res) => {this.src =res +"/" +this.viewNum +"?tjNumber=" +this.tjNumber +"&jxbz="+this.jxbz  +"&token=Bearer " +getToken();});
+    this.dqdlr = this.$route.query.dqdlr;
+    view().then((res) => {
+      this.src =
+        res +
+        "/" +
+        this.viewNum +
+        "?tjNumber=" +
+        this.tjNumber +
+        "&jxbz=" +
+        this.jxbz +
+        "&dqdlr=" +
+        this.dqdlr +
+        "&token=Bearer " +
+        getToken();
+    });
   },
   methods: {
     handleRefresh() {
diff --git a/src/views/jmreport/jmreport/view.vue b/src/views/jmreport/jmreport/view.vue
index b73959b..bd1b3e3 100644
--- a/src/views/jmreport/jmreport/view.vue
+++ b/src/views/jmreport/jmreport/view.vue
@@ -27,6 +27,7 @@
       loading: true,
       viewNum: "",
       reportId: "",
+      dqdlr:""
     };
   },
   created() {
@@ -34,6 +35,7 @@
     this.viewNum = this.$route.query.viewNum;
     //浣撴鍙�
     this.tjNumber = this.$route.query.tjNumber;
+    this.dqdlr = this.$route.query.dqdlr;
     view().then((res) => {
       this.src =
         res +
@@ -41,6 +43,8 @@
         this.viewNum +
         "?tjNumber=" +
         this.tjNumber +
+        "&dqdlr=" +
+        this.dqdlr +
         "&token=Bearer " +
         getToken();
     });
diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue
index 2894c72..c4f2d65 100644
--- a/src/views/sampling/sampling/index.vue
+++ b/src/views/sampling/sampling/index.vue
@@ -1015,14 +1015,5 @@
 .el-table .warning-row {
   background-color: #e5f3ff !important;
 }
-/* .last {
-  display: flex;
-  justify-content: space-around;
-  justify-content: space-evenly;
-  background-color:aqua
-} */
-/* .last p:nth-child(2) {
-  margin: 20px;
-  font-size: 16px;
-} */
+
 </style>
diff --git a/src/views/system/dzcx/index.vue b/src/views/system/dzcx/index.vue
new file mode 100644
index 0000000..c2b375a
--- /dev/null
+++ b/src/views/system/dzcx/index.vue
@@ -0,0 +1,453 @@
+<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="tjNum">
+        <el-input
+          v-model="queryParams.tjNum"
+          placeholder="璇疯緭鍏ヤ綋妫�鍙�"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="灏辫瘖鍙�" prop="cardId">
+        <el-input
+          v-model="queryParams.cardId"
+          placeholder="璇疯緭鍏ュ氨璇婂彿"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="鐧昏鏃堕棿" prop="createTimeList">
+        <el-date-picker
+          v-model="createTimeList"
+          type="datetimerange"
+          align="right"
+          :picker-options="pickerOptions"
+          style="width: 300px"
+          start-placeholder="寮�濮嬫棩鏈�"
+          end-placeholder="缁撴潫鏃ユ湡"
+          :default-time="['00:00:00', '23:59:00']"
+          format="yyyy-MM-dd HH:mm"
+          value-format="yyyy-MM-dd HH:mm"
+          @change="dateChangebirthday1"
+        >
+        </el-date-picker>
+      </el-form-item>
+    <!--   <el-form-item label="鎵撳嵃鏃堕棿" prop="dysj">
+        <el-date-picker
+          clearable
+          v-model="createTimeList"
+          type="datetimerange"
+          align="right"
+          :picker-options="pickerOptions"
+          style="width: 300px"
+          start-placeholder="寮�濮嬫棩鏈�"
+          end-placeholder="缁撴潫鏃ユ湡"
+          :default-time="['00:00:00', '23:59:00']"
+          format="yyyy-MM-dd HH:mm"
+          value-format="yyyy-MM-dd HH:mm"
+          @change="dateChangebirthday1"
+        >
+        </el-date-picker>
+      </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="['system:dyjl: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="['system:dyjl: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="['system:dyjl: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="['system:dyjl:export']"
+          >瀵煎嚭
+        </el-button>
+      </el-col>
+      <right-toolbar
+        :showSearch.sync="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
+    </el-row>
+
+    <el-table
+      v-loading="loading"
+      :data="dyjlList"
+      @selection-change="handleSelectionChange"
+    >
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="搴忓彿" align="center" width="55">
+        <template v-slot="scope">
+          {{ scope.$index + 1 }}
+        </template>
+      </el-table-column>
+      <el-table-column label="浣撴浜�" align="center" prop="hzxm" />
+      <el-table-column label="浣撴鍙�" align="center" prop="tjNum" />
+      <el-table-column label="灏辫瘖鍙�" align="center" prop="cardId" />
+      <el-table-column label="鎵撳嵃绫诲瀷" align="center" prop="dylx">
+        <template slot-scope="scope">
+          <span v-if="scope.row.dylx == '0'">瀵兼鍗�</span>
+          <span v-if="scope.row.dylx == '1'">琛ュ綍鍗�</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="鎵撳嵃娆℃暟" align="center" prop="dycs" />
+      <el-table-column label="鎵撳嵃鏃堕棿" align="center" prop="dysj" />
+      <el-table-column label="鎵撳嵃浜�" align="center" prop="createBy" />
+      <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="['system:dyjl:edit']"
+            >淇敼
+          </el-button> -->
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['system:dyjl: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"
+    />
+
+    <!-- 娣诲姞鎴栦慨鏀逛綋妫�瀵兼鍗曟墦鍗拌褰曞璇濇 -->
+    <!-- <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="${comment}" prop="tjNum">
+          <el-input v-model="form.tjNum" placeholder="璇疯緭鍏�${comment}" />
+        </el-form-item>
+        <el-form-item label="${comment}" prop="cardId">
+          <el-input v-model="form.cardId" placeholder="璇疯緭鍏�${comment}" />
+        </el-form-item>
+        <el-form-item label="鎵撳嵃娆℃暟" prop="dycs">
+          <el-input v-model="form.dycs" placeholder="璇疯緭鍏ユ墦鍗版鏁�" />
+        </el-form-item>
+        <el-form-item label="${comment}" prop="deleted">
+          <el-input v-model="form.deleted" 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 {
+  listDyjl,
+  getDyjl,
+  delDyjl,
+  addDyjl,
+  updateDyjl,
+} from "@/api/system/dyjl";
+import { getNewDateList } from "@/api/hosp/order";
+import moment from "moment";
+
+export default {
+  name: "Dyjl",
+  data() {
+    return {
+      // 閬僵灞�
+      loading: true,
+      createTimeList: "",
+      startTime: "",
+      datetimerange: [],
+      // 閫変腑鏁扮粍
+      ids: [],
+      // 闈炲崟涓鐢�
+      single: true,
+      // 闈炲涓鐢�
+      multiple: true,
+      // 鏄剧ず鎼滅储鏉′欢
+      showSearch: true,
+      // 鎬绘潯鏁�
+      total: 0,
+      // 浣撴瀵兼鍗曟墦鍗拌褰曡〃鏍兼暟鎹�
+      dyjlList: [],
+      // 寮瑰嚭灞傛爣棰�
+      title: "",
+      // 鏄惁鏄剧ず寮瑰嚭灞�
+      open: false,
+      // 鏌ヨ鍙傛暟
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        tjNum: null,
+        cardId: null,
+        dysj: null,
+        deleted: null,
+        beginTime: null,
+        endTime: null,
+      },
+      // 琛ㄥ崟鍙傛暟
+      form: {},
+      pickerOptions: {
+        shortcuts: [
+          {
+            text: "鏈�杩戜竴鍛�",
+            onClick(picker) {
+              const end = new Date();
+              const start = new Date();
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
+              picker.$emit("pick", [start, end]);
+            },
+          },
+          {
+            text: "鏈�杩戜竴涓湀",
+            onClick(picker) {
+              const end = new Date();
+              const start = new Date();
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
+              picker.$emit("pick", [start, end]);
+            },
+          },
+          {
+            text: "鏈�杩戜笁涓湀",
+            onClick(picker) {
+              const end = new Date();
+              const start = new Date();
+              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
+              picker.$emit("pick", [start, end]);
+            },
+          },
+        ],
+      },
+      // 琛ㄥ崟鏍¢獙
+      rules: {
+        deleted: [
+          {
+            required: true,
+            message: "$comment涓嶈兘涓虹┖",
+            trigger: "blur",
+          },
+        ],
+      },
+    };
+  },
+  created() {
+    // this.getList();
+    this.getdate();
+  },
+  methods: {
+    getdate() {
+      getNewDateList().then((res) => {
+        this.createTimeList = [
+          moment(res.data).format("YYYY-MM-DD 00:00:00"),
+          moment(res.data).format("YYYY-MM-DD 23:59:00"),
+        ];
+        this.getList();
+      });
+    },
+    getLocalTime(nS) {
+      var time = new Date(nS);
+      var y = time.getFullYear();
+      var m = time.getMonth() + 1;
+      var d = time.getDate();
+      return y + "-" + this.add0(m) + "-" + this.add0(d);
+    },
+    getNowTime() {
+      var curDate = new Date().getTime();
+      var dayNum = 7 * 24 * 3600 * 1000;
+      var threeDays = curDate - dayNum;
+      var sDay = this.getLocalTime(threeDays);
+      var end = this.getLocalTime(curDate);
+      this.createTimeList = [sDay, end];
+    },
+    add0(m) {
+      return m < 10 ? "0" + m : m;
+    },
+    dateChangebirthday1(val) {
+        this. startTime= val;
+    },
+    /** 鏌ヨ浣撴瀵兼鍗曟墦鍗拌褰曞垪琛� */
+    getList() {
+        if (this.startTime) {
+        this.queryParams.beginTime = this.startTime[0];
+        this.queryParams.endTime = this.startTime[1];
+      } else if (this.createTimeList) {
+        this.queryParams.beginTime = this.createTimeList[0];
+        this.queryParams.endTime = this.createTimeList[1];
+      } else if (this.createTimeList == null) {
+        this.queryParams.beginTime = null;
+        this.queryParams.endTime = null;
+      }
+      this.loading = true;
+      listDyjl(this.queryParams).then((response) => {
+        this.dyjlList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 鍙栨秷鎸夐挳
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 琛ㄥ崟閲嶇疆
+    reset() {
+      this.form = {
+        id: null,
+        tjNum: null,
+        cardId: null,
+        dycs: null,
+        createTime: null,
+        createBy: null,
+        updateTime: null,
+        updateBy: null,
+        deleted: null,
+        beginTime:null,
+        endTime: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;
+      getDyjl(id).then((response) => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "淇敼浣撴瀵兼鍗曟墦鍗拌褰�";
+      });
+    }, */
+    /* submitForm() {
+      this.$refs["form"].validate((valid) => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateDyjl(this.form).then((response) => {
+              this.$modal.msgSuccess("淇敼鎴愬姛");
+              this.kjbqopen = false;
+              this.getList();
+            });
+          } else {
+            addDyjl(this.form).then((response) => {
+              this.$modal.msgSuccess("鏂板鎴愬姛");
+              this.kjbqopen = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    }, */
+    /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal
+        .confirm('鏄惁纭鍒犻櫎advice缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�')
+        .then(function () {
+          return delAdvice(ids);
+        })
+        .then(() => {
+          this.getList();
+          this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+        })
+        .catch(() => {});
+    },
+    /** 瀵煎嚭鎸夐挳鎿嶄綔 */
+    handleExport() {
+      /* this.download(
+        "advice/advice/export",
+        {
+          ...this.queryParams,
+        },
+        `advice_${new Date().getTime()}.xlsx`
+      ); */
+    },
+  },
+};
+</script>

--
Gitblit v1.8.0