|
@@ -880,7 +880,8 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="费用止期">
|
|
<el-form-item label="费用止期">
|
|
|
<el-date-picker style="width: 100%" v-model="productcopyItemPageRequest.costsEndDate" type="date"
|
|
<el-date-picker style="width: 100%" v-model="productcopyItemPageRequest.costsEndDate" type="date"
|
|
|
- placeholder="选择费用结束日期" @change="costsEndDateChange1" value-format="yyyy-MM-dd">
|
|
|
|
|
|
|
+ placeholder="选择费用结束日期" @change="costsEndDateChange1" :picker-options="productcopypickerOptions"
|
|
|
|
|
+ value-format="yyyy-MM-dd">
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="费用描述">
|
|
<el-form-item label="费用描述">
|
|
@@ -1258,6 +1259,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+
|
|
|
insuranceCompanyId: "",
|
|
insuranceCompanyId: "",
|
|
|
productUpdateObj: {
|
|
productUpdateObj: {
|
|
|
productId: "",
|
|
productId: "",
|
|
@@ -1377,6 +1379,8 @@ export default {
|
|
|
],
|
|
],
|
|
|
underwritingRulesColumns: [
|
|
underwritingRulesColumns: [
|
|
|
{ prop: "validInd", label: " 是否有效", minWidth: 160, formatter: this.validIndFormatter, },
|
|
{ prop: "validInd", label: " 是否有效", minWidth: 160, formatter: this.validIndFormatter, },
|
|
|
|
|
+ { prop: "rulesStartDate", label: " 规则起期", minWidth: 160 },
|
|
|
|
|
+ { prop: "rulesEndDate", label: " 规则止期", minWidth: 160 },
|
|
|
{ prop: "ruleDescription", label: " 规则描述", minWidth: 160 },
|
|
{ prop: "ruleDescription", label: " 规则描述", minWidth: 160 },
|
|
|
{ prop: "desc", label: " 规则因子描述", minWidth: 660 },
|
|
{ prop: "desc", label: " 规则因子描述", minWidth: 660 },
|
|
|
],
|
|
],
|
|
@@ -2230,6 +2234,11 @@ export default {
|
|
|
disabledDate: this.disabledDate,
|
|
disabledDate: this.disabledDate,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ productcopypickerOptions() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ disabledDate: this.disabledDate1,
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.peopleid = Cookies.get("user");
|
|
this.peopleid = Cookies.get("user");
|
|
@@ -2466,14 +2475,6 @@ export default {
|
|
|
type: "error",
|
|
type: "error",
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- if (!this.validateEndDate(tempStartDate, tempEndDate)) {
|
|
|
|
|
- this.productcopyItemPageRequest.costsEndDate = null;
|
|
|
|
|
- this.$message({
|
|
|
|
|
- message: "止期不能小于/等于起期!",
|
|
|
|
|
- type: "error",
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
productcopyItemQuery() {
|
|
productcopyItemQuery() {
|
|
|
this.productcopyItemFindPage();
|
|
this.productcopyItemFindPage();
|
|
@@ -3088,6 +3089,11 @@ export default {
|
|
|
return time.getTime() < Date.now() - 8.64e7;
|
|
return time.getTime() < Date.now() - 8.64e7;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ disabledDate1(time) {
|
|
|
|
|
+ let datetime = this.productcopyItemPageRequest.costStartDate;
|
|
|
|
|
+ const disabledTime = new Date(datetime).getTime() - 8.64e7;
|
|
|
|
|
+ return time.getTime() < disabledTime;
|
|
|
|
|
+ },
|
|
|
validateEndDate(startDateStr, endDateStr) {
|
|
validateEndDate(startDateStr, endDateStr) {
|
|
|
const startDate = new Date(startDateStr);
|
|
const startDate = new Date(startDateStr);
|
|
|
const endDate = new Date(endDateStr);
|
|
const endDate = new Date(endDateStr);
|