فهرست منبع

显示中药制剂 / 适宜技术处方 相关数据
eb9c1ca8cbbc258981fdbfc4ba48c2653f657bbd

控制台配置:
ZYZJ=true
SYJS=true

(cherry picked from commit c499630121cdf798663b5732890f61217711887c)

cc12458 1 سال پیش
والد
کامیت
aff97ea07c
1فایلهای تغییر یافته به همراه16 افزوده شده و 6 حذف شده
  1. 16 6
      src/views/diagnosis/Prescribing.vue

+ 16 - 6
src/views/diagnosis/Prescribing.vue

@@ -1362,6 +1362,12 @@ export default {
     };
   },
   created() {
+    try {
+      this.contentTabs.find(item => item.name === '中药制剂' ).hide = !window.ZYZJ
+      this.contentTabs.find(item => item.name === '适宜技术处方' ).hide = !window.SYJS
+    } catch (e) {
+
+    }
     // console.log(this.getIsSee, 'issee');
     this.showSubmit = String(this.getIsSee) == "true" ? true : false;
 
@@ -2640,13 +2646,17 @@ export default {
       this.saving = false;
 
       let chengPrescriptionVo = {};
-      // setTimeout(() => {
-      //   chengPrescriptionVo = this.dealRecipe2();
-      // }, 100);
+      if(window.ZYZJ) {
+        setTimeout(() => {
+          chengPrescriptionVo = this.dealRecipe2();
+        }, 100);
+      }
       let technologyPrescriptionVo = {};
-      // setTimeout(() => {
-      //   technologyPrescriptionVo = this.dealRecipe3();
-      // }, 200);
+      if(window.SYJS) {
+        setTimeout(() => {
+          technologyPrescriptionVo = this.dealRecipe3();
+        }, 200);
+      }
 
       setTimeout(() => {
         /*if (technologyPrescriptionVo === false) {