|
|
@@ -191,6 +191,16 @@
|
|
|
><svg-icon icon-class="icon-mark"></svg-icon
|
|
|
></el-button>
|
|
|
</el-tooltip>
|
|
|
+ <el-tooltip
|
|
|
+ placement="right"
|
|
|
+ style="height: 32px"
|
|
|
+ v-if="studyTips"
|
|
|
+ >
|
|
|
+ <div slot="content">{{ studyTips }}</div>
|
|
|
+ <el-button class="tooltip-btn"
|
|
|
+ ><svg-icon icon-class="icon-mark"></svg-icon
|
|
|
+ ></el-button>
|
|
|
+ </el-tooltip>
|
|
|
</ul>
|
|
|
<div
|
|
|
v-if="
|
|
|
@@ -272,7 +282,9 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <template v-if="orderTotalNumber !== -1">
|
|
|
+ <template
|
|
|
+ v-if="orderTotalNumber !== -1 && orderTotalNumber !== -3"
|
|
|
+ >
|
|
|
<template v-if="orderTotalNumber === -2">
|
|
|
<el-input-number
|
|
|
v-model="customizeNum"
|
|
|
@@ -385,6 +397,19 @@
|
|
|
<span class="old-price">¥30.20</span>
|
|
|
</div>
|
|
|
</div> -->
|
|
|
+ <!-- <div class="info-item order-item" v-if="orderTotalNumber === -1">
|
|
|
+ <label>自动升学</label>
|
|
|
+ <el-radio-group v-model="is_auto" class="is-auto-box">
|
|
|
+ <el-radio label="false">否</el-radio>
|
|
|
+ <el-radio label="true">是</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ <el-tooltip placement="right">
|
|
|
+ <div slot="content">双刊、特辑、寒暑假合刊除外</div>
|
|
|
+ <el-button class="tooltip-btn"
|
|
|
+ ><svg-icon icon-class="icon-mark"></svg-icon
|
|
|
+ ></el-button>
|
|
|
+ </el-tooltip>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
<div class="btn-box">
|
|
|
<el-button
|
|
|
@@ -519,54 +544,12 @@ export default {
|
|
|
label: "年订阅(当月起订)",
|
|
|
value: -1,
|
|
|
},
|
|
|
- ],
|
|
|
- orderTable: [
|
|
|
- {
|
|
|
- name: "915 期(合刊)",
|
|
|
- date: "2023-06-26",
|
|
|
- price: 12,
|
|
|
- },
|
|
|
{
|
|
|
- name: "915 期(合刊)",
|
|
|
- date: "2023-06-26",
|
|
|
- price: 12,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "915 期(合刊)",
|
|
|
- date: "2023-06-26",
|
|
|
- price: 12,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "915 期(合刊)",
|
|
|
- date: "2023-06-26",
|
|
|
- price: 12,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "915 期(合刊)",
|
|
|
- date: "2023-06-26",
|
|
|
- price: 12,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "915 期(合刊)",
|
|
|
- date: "2023-06-26",
|
|
|
- price: 12,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "915 期(合刊)",
|
|
|
- date: "2023-06-26",
|
|
|
- price: 12,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "915 期(合刊)",
|
|
|
- date: "2023-06-26",
|
|
|
- price: 12,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "915 期(合刊)",
|
|
|
- date: "2023-06-26",
|
|
|
- price: 12,
|
|
|
+ label: "年订阅(当月起订)",
|
|
|
+ value: -3,
|
|
|
},
|
|
|
],
|
|
|
+ orderTable: [],
|
|
|
customizeNum: 1, // 自定义期数
|
|
|
customPage: 0,
|
|
|
custonList: [
|
|
|
@@ -693,6 +676,8 @@ export default {
|
|
|
coverObj: [], // 存放选中期数的封面图
|
|
|
coverSrc: "", // 显示的封面图
|
|
|
coverNew: "", // 新的封面图
|
|
|
+ is_auto: "true", // 自动升学
|
|
|
+ studyTips: "",
|
|
|
};
|
|
|
},
|
|
|
//计算属性 类似于data概念
|
|
|
@@ -737,7 +722,7 @@ export default {
|
|
|
}
|
|
|
this.tips = "";
|
|
|
if (this.bookType === "baozhi") {
|
|
|
- if (this.orderTotalNumber !== -1) {
|
|
|
+ if (this.orderTotalNumber !== -1 && this.orderTotalNumber !== -3) {
|
|
|
let MethodName =
|
|
|
"/ShopServer/Client/ReservationQuery/GetReservationInfo_Issue";
|
|
|
let data = {
|
|
|
@@ -747,6 +732,8 @@ export default {
|
|
|
this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
+ : this.orderTotalNumber === -3
|
|
|
+ ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length,
|
|
|
is_custom_select_issue_no:
|
|
|
@@ -801,6 +788,8 @@ export default {
|
|
|
(this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
+ : this.orderTotalNumber === -3
|
|
|
+ ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length)
|
|
|
) {
|
|
|
@@ -810,7 +799,7 @@ export default {
|
|
|
}
|
|
|
} else if (this.bookType === "huakan") {
|
|
|
this.loading = false;
|
|
|
- if (this.orderTotalNumber !== -1) {
|
|
|
+ if (this.orderTotalNumber !== -1 && this.orderTotalNumber !== -3) {
|
|
|
let MethodName =
|
|
|
"/ShopServer/Client/ReservationQuery/GetReservationInfo_Issue";
|
|
|
let data = {
|
|
|
@@ -820,6 +809,8 @@ export default {
|
|
|
this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
+ : this.orderTotalNumber === -3
|
|
|
+ ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length,
|
|
|
is_custom_select_issue_no:
|
|
|
@@ -905,6 +896,8 @@ export default {
|
|
|
(this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
+ : this.orderTotalNumber === -3
|
|
|
+ ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length)
|
|
|
) {
|
|
|
@@ -956,6 +949,8 @@ export default {
|
|
|
this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
+ : this.orderTotalNumber === -3
|
|
|
+ ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length,
|
|
|
is_custom_select_issue_no:
|
|
|
@@ -1004,6 +999,7 @@ export default {
|
|
|
this.handleCoverSrc();
|
|
|
this.handleOrderYearStartNO();
|
|
|
await this.handleIssueLength();
|
|
|
+ this.handleBeginDate();
|
|
|
},
|
|
|
changeOrderNumber(item, flag) {
|
|
|
if (flag && item.value !== -2) return false;
|
|
|
@@ -1056,8 +1052,12 @@ export default {
|
|
|
this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
+ : this.orderTotalNumber === -3
|
|
|
+ ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length,
|
|
|
+ is_auto_adjust_study_phase:
|
|
|
+ this.orderTotalNumber === -3 ? "true" : "false",
|
|
|
is_custom_select_issue_no:
|
|
|
this.orderTotalNumber !== 10000 ? "false" : "true",
|
|
|
issue_no_list: this.customOrderNumberList,
|
|
|
@@ -1209,6 +1209,20 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 计算学段的下一学段与起始日期
|
|
|
+ handleBeginDate() {
|
|
|
+ let MethodName =
|
|
|
+ "/ShopServer/Client/ReservationQuery/ComputeNextStudyPhaseAndBeginDate";
|
|
|
+ let data = {
|
|
|
+ study_phase: this.bookType === "baozhi" ? this.studyType : 1,
|
|
|
+ };
|
|
|
+ getLogin(MethodName, data)
|
|
|
+ .then((res) => {
|
|
|
+ this.studyTips =
|
|
|
+ res.begin_date + "自动升学为" + res.next_study_phase_name + "内容";
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
// 计算年订阅起始期数
|
|
|
handleOrderYearStartNO() {
|
|
|
let MethodName =
|
|
|
@@ -1222,8 +1236,11 @@ export default {
|
|
|
if (res.status === 1 && res.issue_no_start) {
|
|
|
this.orderList[5].label =
|
|
|
"年订阅(当月起订," + res.issue_no_start + "期起)";
|
|
|
+ this.orderList[6].label =
|
|
|
+ "年订阅(当月起订," + res.issue_no_start + "期起)(自动升学)";
|
|
|
} else {
|
|
|
this.orderList[5].label = "年订阅(当月起订)";
|
|
|
+ this.orderList[5].label = "年订阅(当月起订)(自动升学)";
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
@@ -1280,6 +1297,7 @@ export default {
|
|
|
this.handleOrder();
|
|
|
}
|
|
|
this.getTotalSales();
|
|
|
+ this.handleBeginDate();
|
|
|
},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
@@ -1765,6 +1783,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.is-auto-box {
|
|
|
+ display: flex;
|
|
|
+ :deep .el-radio {
|
|
|
+ width: 40px !important;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|
|
|
<style lang="scss">
|
|
|
.bookItem {
|