fix: 生日有礼修改
This commit is contained in:
parent
46270cf7cc
commit
1329891ded
|
|
@ -49,7 +49,7 @@ const show = ref(false);
|
||||||
|
|
||||||
// 发放时间选项
|
// 发放时间选项
|
||||||
const deliverDates = ref([
|
const deliverDates = ref([
|
||||||
{ value: "mouth", label: "生日前一天" },
|
{ value: "mouth", label: "当月1号" },
|
||||||
{ value: "day", label: "当天" },
|
{ value: "day", label: "当天" },
|
||||||
{ value: "advance", label: "提前" },
|
{ value: "advance", label: "提前" },
|
||||||
]);
|
]);
|
||||||
|
|
@ -95,7 +95,7 @@ function submit() {
|
||||||
} else {
|
} else {
|
||||||
//提前多少天
|
//提前多少天
|
||||||
submitData.deliverDate = "day";
|
submitData.deliverDate = "day";
|
||||||
submitData.deliverTime = submitData.deliverTime * -1;
|
submitData.deliverTime = Math.abs(submitData.deliverTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
emits("submitSuccess", submitData, dataIndex);
|
emits("submitSuccess", submitData, dataIndex);
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ function editPlan(row, index) {
|
||||||
}
|
}
|
||||||
function returnDeliverDate(row) {
|
function returnDeliverDate(row) {
|
||||||
if (row.deliverDate === "advance") {
|
if (row.deliverDate === "advance") {
|
||||||
return "提前" + row.deliverTime + "天";
|
return "提前" + Math.abs(row.deliverTime) + "天";
|
||||||
}
|
}
|
||||||
if (row.deliverDate === "day") {
|
if (row.deliverDate === "day") {
|
||||||
if (row.deliverTime != 0) {
|
if (row.deliverTime != 0) {
|
||||||
|
|
@ -134,7 +134,7 @@ function returnDeliverDate(row) {
|
||||||
return "当天";
|
return "当天";
|
||||||
}
|
}
|
||||||
if (row.deliverDate === "mouth") {
|
if (row.deliverDate === "mouth") {
|
||||||
return "生日前一天";
|
return "当月1号";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function deletePlan(row) {
|
function deletePlan(row) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue