ソースを参照

复制处方移除审核状态

cc12458 1 年間 前
コミット
3b2000ea33

+ 1 - 0
src/views/rescription/prescriptionCore/edit.vue

@@ -154,6 +154,7 @@ export default {
         if (!this.isCheck) {
           this.model.id = null;
           this.model.tackleTime = '';
+          delete this.model.checkState;
         }
       } catch (e) {
         this.cancel();

+ 6 - 4
src/views/rescription/prescriptionCore/index.vue

@@ -1363,6 +1363,7 @@ export default {
       recipeEditId: null,
       recipeEditOpen: false,
       recipeEditShow: false,
+      recipeEditTitle: '',
 
       curPreNo: "",
       curName: "",
@@ -1588,10 +1589,6 @@ export default {
         return "否";
       }
     },
-    recipeEditTitle() {
-      if (this.recipeEditMode === 'check') return '处方审核查看'
-      return this.recipeEditId ? '复制处方' : '新增处方';
-    }
   },
   methods: {
     countDose() {
@@ -2041,6 +2038,11 @@ export default {
         this.recipeEditId = row.id;
         this.recipeEditShow = true;
         this.recipeEditOpen = true;
+        setTimeout(() => {
+          if (this.recipeEditMode === 'check') this.recipeEditTitle = ['处方审核查看', row.orderNo].filter(Boolean).join(' - ');
+          else if (this.recipeEditId) this.recipeEditTitle = '复制处方';
+          else this.recipeEditTitle = '新增处方';
+        }, 20)
         return;
       }
       this.reset();