Procházet zdrojové kódy

保存处方移除中药制剂 / 适宜技术处方 相关数据

cc12458 před 1 rokem
rodič
revize
eb9c1ca8cb
1 změnil soubory, kde provedl 15 přidání a 13 odebrání
  1. 15 13
      src/views/diagnosis/Prescribing.vue

+ 15 - 13
src/views/diagnosis/Prescribing.vue

@@ -1410,7 +1410,7 @@ export default {
       else if (query.type === "tuidao") {
         await Promise.all([
           this.inferRecipe(4, "1"),
-          this.inferRecipe(4, "3"),
+          // this.inferRecipe(4, "3"),
           this.inferRecipe(),
         ])
         this.isTuiDaoZy = true;
@@ -2594,17 +2594,17 @@ export default {
     // 提交中药处方
     submitRecipe1() {
       let zhongPrescriptionVo = this.dealRecipe1();
-      let chengPrescriptionVo = false;
-      setTimeout(() => {
-        chengPrescriptionVo = this.dealRecipe2();
-      }, 100);
-      let technologyPrescriptionVo = false;
-      setTimeout(() => {
-        technologyPrescriptionVo = this.dealRecipe3();
-      }, 200);
+      let chengPrescriptionVo = {};
+      // setTimeout(() => {
+      //   chengPrescriptionVo = this.dealRecipe2();
+      // }, 100);
+      let technologyPrescriptionVo = {};
+      // setTimeout(() => {
+      //   technologyPrescriptionVo = this.dealRecipe3();
+      // }, 200);
 
       setTimeout(() => {
-        if (technologyPrescriptionVo === false) {
+        /*if (technologyPrescriptionVo === false) {
           technologyPrescriptionVo = {};
           this.container_i = 2;
           return;
@@ -2614,7 +2614,7 @@ export default {
           chengPrescriptionVo = {};
           this.container_i = 1;
           return;
-        }
+        }*/
 
         if (zhongPrescriptionVo === false) {
           zhongPrescriptionVo = [];
@@ -2622,12 +2622,14 @@ export default {
           return;
         }
 
-        if (
+        if (Object.keys(zhongPrescriptionVo).length === 0) return;
+
+        /*if (
           zhongPrescriptionVo.length == 0 &&
           Object.keys(zhongPrescriptionVo).length == 0 &&
           Object.keys(technologyPrescriptionVo).length == 0
         )
-          return;
+          return;*/
 
         this.$refs.TCM.saveDiagnosisData();
         this._getRecipePriview(