|
@@ -116,63 +116,25 @@
|
|
disabled
|
|
disabled
|
|
v-else-if="item.scope === 'startEndTime'"
|
|
v-else-if="item.scope === 'startEndTime'"
|
|
v-model="goodsData[item.prop]"
|
|
v-model="goodsData[item.prop]"
|
|
- type="daterange"
|
|
|
|
|
|
+ type="datetimerange"
|
|
|
|
+ value-format="timestamp"
|
|
|
|
+ range-separator="至"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ <el-date-picker
|
|
|
|
+ :size="size"
|
|
|
|
+ disabled
|
|
|
|
+ v-else-if="item.scope === 'studentTime'"
|
|
|
|
+ v-model="listData['studyTimeArrays']"
|
|
|
|
+ type="datetimerange"
|
|
value-format="timestamp"
|
|
value-format="timestamp"
|
|
range-separator="至"
|
|
range-separator="至"
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
>
|
|
>
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
- <div v-else-if="item.scope === 'studentTime'">
|
|
|
|
- <el-select
|
|
|
|
- disabled
|
|
|
|
- style="width: 150px"
|
|
|
|
- v-model="goodsData.serviceTimeType"
|
|
|
|
- placeholder="请选择学习服务器类型"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="(item, index) in styleType"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- <span
|
|
|
|
- v-if="
|
|
|
|
- goodsData.serviceTimeType === 1 ||
|
|
|
|
- goodsData.serviceTimeType === 2 ||
|
|
|
|
- goodsData.serviceTimeType === 3
|
|
|
|
- "
|
|
|
|
- ><span style="margin: 0px 6px">购买那刻开始计算</span
|
|
|
|
- ><el-input
|
|
|
|
- disabled
|
|
|
|
- style="width: 60px"
|
|
|
|
- v-model="goodsData.serviceTimeNum"
|
|
|
|
- ></el-input
|
|
|
|
- ><span style="margin-left: 6px">{{
|
|
|
|
- goodsData.serviceTimeType === 1
|
|
|
|
- ? "年"
|
|
|
|
- : goodsData.serviceTimeType === 2
|
|
|
|
- ? "月"
|
|
|
|
- : goodsData.serviceTimeType === 3
|
|
|
|
- ? "天"
|
|
|
|
- : ""
|
|
|
|
- }}</span></span
|
|
|
|
- >
|
|
|
|
-
|
|
|
|
- <el-date-picker
|
|
|
|
- disabled
|
|
|
|
- v-if="goodsData.serviceTimeType === 4"
|
|
|
|
- v-model="goodsData.studyTimeArrays"
|
|
|
|
- type="datetimerange"
|
|
|
|
- value-format="timestamp"
|
|
|
|
- range-separator="至"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
- >
|
|
|
|
- </el-date-picker>
|
|
|
|
- </div>
|
|
|
|
<el-input
|
|
<el-input
|
|
:size="size"
|
|
:size="size"
|
|
disabled
|
|
disabled
|
|
@@ -271,24 +233,6 @@ export default {
|
|
props: ["goodsId", "orderSn"],
|
|
props: ["goodsId", "orderSn"],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- styleType: [
|
|
|
|
- {
|
|
|
|
- label: "按年限",
|
|
|
|
- value: 1,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: "按月限",
|
|
|
|
- value: 2,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: "按天限",
|
|
|
|
- value: 3,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: "按具体时间区间",
|
|
|
|
- value: 4,
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
size: "",
|
|
size: "",
|
|
tableSet: [
|
|
tableSet: [
|
|
{
|
|
{
|
|
@@ -475,12 +419,6 @@ export default {
|
|
this.$methodsTools.time10to13(res.data.validityStartTime, 2),
|
|
this.$methodsTools.time10to13(res.data.validityStartTime, 2),
|
|
this.$methodsTools.time10to13(res.data.validityEndTime, 2),
|
|
this.$methodsTools.time10to13(res.data.validityEndTime, 2),
|
|
];
|
|
];
|
|
- if (res.data.serviceTimeType === 4) {
|
|
|
|
- res.data.studyTimeArrays = [
|
|
|
|
- this.$methodsTools.time10to13(res.data.studyStartTime, 2),
|
|
|
|
- this.$methodsTools.time10to13(res.data.studyEndTime, 2),
|
|
|
|
- ];
|
|
|
|
- }
|
|
|
|
res.data.standPriceJson = JSON.parse(res.data.standPriceJson);
|
|
res.data.standPriceJson = JSON.parse(res.data.standPriceJson);
|
|
this.goodsData = res.data;
|
|
this.goodsData = res.data;
|
|
});
|
|
});
|
|
@@ -490,6 +428,10 @@ export default {
|
|
goodsId: this.goodsId,
|
|
goodsId: this.goodsId,
|
|
})
|
|
})
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ res.data.studyTimeArrays = [
|
|
|
|
+ this.$methodsTools.time10to13(res.data.serviceStartTime, 2),
|
|
|
|
+ this.$methodsTools.time10to13(res.data.serviceEndTime, 2),
|
|
|
|
+ ];
|
|
this.listData = res.data;
|
|
this.listData = res.data;
|
|
this.$refs["listData"].resetFields();
|
|
this.$refs["listData"].resetFields();
|
|
});
|
|
});
|
|
@@ -503,7 +445,7 @@ export default {
|
|
border-bottom: 1px dotted #9a9a9a;
|
|
border-bottom: 1px dotted #9a9a9a;
|
|
margin-bottom: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
}
|
|
-// /deep/ .el-input__inner {
|
|
|
|
-// width: 350px;
|
|
|
|
-// }
|
|
|
|
|
|
+/deep/ .el-input__inner {
|
|
|
|
+ width: 350px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|