yangdamao 3 жил өмнө
parent
commit
7b8d9cb942

+ 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;
         }

+ 4 - 1
src/views/Marketing/order/offlineOrder/batchRecord/secondStep/setGoodsList.vue

@@ -227,7 +227,7 @@ export default {
         goodsType: type,
         goodsName: this.goodsName || "",
         standPrice: this.goodsPrice || "",
-        goodsStatus: 1,
+        // goodsStatus: 1,
         status: 1,
         businessIds: this.oldObj.businessId,
         subjectId : subjectId
@@ -313,6 +313,9 @@ export default {
           if (oldObj.type.indexOf(4) !== -1) {
             options.push({ label: "前培商品", value: 4 });
           }
+          if (oldObj.type.indexOf(6) !== -1) {
+            options.push({ label: "直播商品", value: 6 });
+          }
           this.dataList = res.rows.map((item) => {
             return {
               id: item.id,