Sfoglia il codice sorgente

讲义资料遗漏

Tang 2 anni fa
parent
commit
f73c0df39c

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

@@ -146,6 +146,7 @@ export default {
         { label: "补考商品", value: 3 },
         { label: "前培商品", value: 4 },
         { label: "直播商品", value: 6 },
+        { label: "讲义资料商品", value: 8 },
       ],
       topData: {
         type: [],

+ 4 - 8
src/views/Marketing/order/offlineOrder/batchRecord/secondStep/index.vue

@@ -10,7 +10,8 @@
       >题库、<strong style="color: red">{{ compay(tableData, 3) }}</strong
       >补考、<strong style="color: red">{{ compay(tableData, 4) }}</strong
       >前培、<strong style="color: red">{{ compay(tableData, 6) }}</strong
-      >直播);总价<strong style="color: red"
+      >直播、<strong style="color: red">{{ compay(tableData, 8) }}</strong
+      >讲义资料);总价<strong style="color: red"
         >¥{{ compay(tableData, 5).toFixed(2) }}</strong
       >
     </div>
@@ -242,6 +243,8 @@ export default {
           case 2:
           case 3:
           case 4:
+          case 6:
+          case 8:
             data.forEach((item) => {
               if (item.goodsType === int && item.checked) {
                 num++;
@@ -255,13 +258,6 @@ export default {
               }
             });
             break;
-          case 6:
-            data.forEach((item) => {
-              if (item.goodsType === int && item.checked) {
-                num++;
-              }
-            });
-            break;
           case 7:       
             data.forEach((item) => {
               if (

+ 3 - 0
src/views/Marketing/order/offlineOrder/batchRecord/secondStep/setGoodsList.vue

@@ -331,6 +331,9 @@ export default {
           if (oldObj.type.indexOf(6) !== -1) {
             options.push({ label: "直播商品", value: 6 });
           }
+          if (oldObj.type.indexOf(8) !== -1) {
+            options.push({ label: "讲义资料商品", value: 8 });
+          }
           this.dataList = res.rows.map((item) => {
             return {
               id: item.id,