ソースを参照

[dev] 药房管理 - 处方审核、溯源管理、调配管理 列表时间控件添加默认值

xiong 1 年間 前
コミット
4dc41eed4c

+ 5 - 1
src/views/pharmacyManagement/business/blend/index.vue

@@ -398,10 +398,12 @@
 import { getPrescriptionCore } from '@/api/prescription/prescriptionCore';
 import { listMedicalMechanism } from '@/api/medical/mechanism';
 import { assignAndPinOrder, assignOrder, listAllocateCore, listDispatcher, pinOrder } from '@/api/pharmacy/blend';
+import dayjs from 'dayjs'
 export default {
   name: 'BlendCore',
   components: {},
   data() {
+    const now = dayjs().format('YYYY-MM-DD');
     return {
       maxHeight: Math.floor(window.innerHeight * 0.6),
       $baseUrl: this.$baseUrl,
@@ -459,7 +461,7 @@ export default {
         // 调配师 Id
         pharmacistUserId: null,
         allocateNickName: null,
-        checkTime: [],
+        checkTime: [now, now],
         disCode: null,
         disName: null,
         symCode: null,
@@ -597,6 +599,8 @@ export default {
     /** 重置按钮操作 */
     resetQuery() {
       this.resetForm('queryForm');
+      const now = dayjs().format('YYYY-MM-DD');
+      this.queryParams.checkTime = [now, now];
       this.handleQuery();
     },
     handleDispatcherChange(selection, a) {

+ 5 - 1
src/views/pharmacyManagement/business/deploy/index.vue

@@ -535,11 +535,13 @@ import {selectOrderDetail} from "@/api/prescription/prescriptionAudit";
 
 import JsBarcode from "@/components/JsBarcode/index.vue";
 import Pres from "@/components/Pres/index.vue";
+import dayjs     from 'dayjs'
 
 export default {
   name: "PrescriptionCore",
   components:{ JsBarcode,},
   data() {
+    const now = dayjs().format('YYYY-MM-DD');
     return {
       curPreNo:'',
       curName:'',
@@ -660,7 +662,7 @@ export default {
         age: null,
         department: null,
         doctor: null,
-        prescriptionTime: null,
+        prescriptionTime: [now, now],
         disCode: null,
         disName: null,
         symCode: null,
@@ -862,6 +864,8 @@ export default {
     /** 重置按钮操作 */
     resetQuery() {
       this.resetForm("queryForm");
+      const now = dayjs().format('YYYY-MM-DD');
+      this.queryParams.prescriptionTime = [now, now];
       this.handleQuery();
     },
     // 多选框选中数据

+ 5 - 1
src/views/rescription/prescriptionCore/index.vue

@@ -526,12 +526,14 @@ import {releaseOrder, selectOrderDetail} from "@/api/prescription/prescriptionAu
 import { updatePrintStatus } from "@/api/prescription/prescriptionCore"
 import Pres from "@/components/Pres/index.vue";
 import JsBarcode from "@/components/JsBarcode/index.vue";
+import dayjs from 'dayjs'
 
 // import JsBarcode from "jsbarcode"
 export default {
   name: "PrescriptionCore",
   components:{Pres, JsBarcode,},
   data() {
+    const now = dayjs().format('YYYY-MM-DD');
     return {
       curPreNo:'',
       curName:'',
@@ -635,7 +637,7 @@ export default {
         age: null,
         department: null,
         doctor: null,
-        prescriptionTime: [],
+        prescriptionTime: [now, now],
         disCode: null,
         disName: null,
         symCode: null,
@@ -878,6 +880,8 @@ export default {
     /** 重置按钮操作 */
     resetQuery() {
       this.resetForm("queryForm");
+      const now = dayjs().format('YYYY-MM-DD');
+      this.queryParams.prescriptionTime = [now, now];
       this.handleQuery();
     },
     // 多选框选中数据