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