Tang 3 жил өмнө
parent
commit
1690a85ada

+ 1 - 0
src/views/Marketing/order/offlineOrder/batchRecord/firstStep/index.vue

@@ -145,6 +145,7 @@ export default {
         { label: "题库商品", value: 2 },
         { label: "补考商品", value: 3 },
         { label: "前培商品", value: 4 },
+        { label: "直播商品", value: 6 },
       ],
       topData: {
         type: [],

+ 10 - 3
src/views/Marketing/order/offlineOrder/batchRecord/secondStep/index.vue

@@ -4,12 +4,13 @@
       已选择
       <strong style="color: red">{{ objCopy.length }}</strong> 人;共<strong
         style="color: red"
-        >{{ compay(tableData, 6) }}</strong
+        >{{ compay(tableData, 7) }}</strong
       >个商品(<strong style="color: red">{{ compay(tableData, 1) }}</strong
       >视频、<strong style="color: red">{{ compay(tableData, 2) }}</strong
       >题库、<strong style="color: red">{{ compay(tableData, 3) }}</strong
       >补考、<strong style="color: red">{{ compay(tableData, 4) }}</strong
-      >前培);总价<strong style="color: red"
+      >前培、<strong style="color: red">{{ compay(tableData, 6) }}</strong
+      >直播);总价<strong style="color: red"
         >¥{{ compay(tableData, 5).toFixed(2) }}</strong
       >
     </div>
@@ -255,6 +256,13 @@ export default {
             });
             break;
           case 6:
+            data.forEach((item) => {
+              if (item.goodsType === int && item.checked) {
+                num++;
+              }
+            });
+            break;
+          case 7:       
             data.forEach((item) => {
               if (
                 item.goodsType &&
@@ -266,7 +274,6 @@ export default {
               }
             });
             break;
-
           default:
             break;
         }