Bladeren bron

改变穴位和经络的顺序

张田田 2 dagen geleden
bovenliggende
commit
ca87437920
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6 6
      src/views/business/components/AcupointTable.vue

+ 6 - 6
src/views/business/components/AcupointTable.vue

@@ -650,7 +650,7 @@ function createPrescriptionData(options = {}) {
     unitPrice = 0,
   } = options;
   const singlePrice = (singleCount * unitPrice).toFixed(2);
-  const allTypes = ["穴位", "经络", "耳穴", "部位", "其他详情", "无详情"];
+  const allTypes = ["经络", "穴位", "耳穴", "部位", "其他详情", "无详情"];
   const detailTables = {};
   allTypes.forEach((type) => {
     if (type === "无详情") {
@@ -750,8 +750,8 @@ export default {
       meridianList: [],
       earAcupointList: [],
       detailTables: {
-        穴位: [createEmptyRow(1)],
         经络: [],
+        穴位: [createEmptyRow(1)],
         耳穴: [],
         部位: [],
         其他详情: [],
@@ -1143,8 +1143,8 @@ export default {
           if (this.prescriptions.length === 0) {
             this.activeIndex = 0;
             this.detailTables = {
-              穴位: [createEmptyRow(1)],
               经络: [],
+              穴位: [createEmptyRow(1)],
               耳穴: [],
               部位: [],
               其他详情: [],
@@ -1161,8 +1161,8 @@ export default {
     clearAll() {
       if (!this.prescriptions.length) {
         this.detailTables = {
-          穴位: [createEmptyRow(1)],
           经络: [],
+          穴位: [createEmptyRow(1)],
           耳穴: [],
           部位: [],
           其他详情: [],
@@ -1666,8 +1666,8 @@ export default {
         );
 
         const detailTables = {
-          穴位: [],
           经络: [],
+          穴位: [],
           耳穴: [],
           部位: [],
           其他详情: [],
@@ -1700,7 +1700,7 @@ export default {
           }
         });
 
-        ["穴位", "经络", "耳穴", "部位", "其他详情"].forEach((type) => {
+        ["经络", "穴位", "耳穴", "部位", "其他详情"].forEach((type) => {
           if (detailTables[type].length === 0) {
             detailTables[type] = [createEmptyRow(1)];
           }