提交 fb471972 authored 作者: lidongxu's avatar lidongxu

fix(views/effectiveplan): 促销PC端_城市经理变更计划的时候只能是明日到月底的时间范围

同上
上级 8de749f5
...@@ -16,6 +16,5 @@ VITE_APP_REDIRECT_URL = 'http://localhost:8085' ...@@ -16,6 +16,5 @@ VITE_APP_REDIRECT_URL = 'http://localhost:8085'
# 积木报表服务地址 # 积木报表服务地址
VITE_APP_REPORT_URL = 'https://sfa-qa.wxl66.cn' VITE_APP_REPORT_URL = 'https://sfa-qa.wxl66.cn'
# 模板表格 # 模板表格
VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF3.0.xlsx' VITE_APP_PLAN_TEMPLATE_EXCEL = 'https://link-promotion.oss-cn-shanghai.aliyuncs.com/file/%E6%96%B0%E5%A2%9E%E6%88%96%E4%BF%AE%E6%94%B9%E8%AE%A1%E5%88%92-%E6%A8%A1%E6%9D%BF3.0.xlsx'
\ No newline at end of file
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
<el-time-picker v-model="addOrEditPlanForm.inTime" <el-time-picker v-model="addOrEditPlanForm.inTime"
placeholder="选择时间" placeholder="选择时间"
format="HH:mm" format="HH:mm"
value-format="HH:mm:ss"/> value-format="HH:mm:ss" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -319,7 +319,7 @@ import { v4 as uuidv4 } from 'uuid'; ...@@ -319,7 +319,7 @@ import { v4 as uuidv4 } from 'uuid';
import { getPlanListAPI, uploadFileToOSSAPI, addPlanAPI, savePlanAPI, deletePlanAPI, addPlanByRoleAPI, getChargeListAPI, addPlanByWebAPI, updatePlanByWebAPI, getPlanStoreListAPI, updatePlanAPI, batchUpdatePlanAPI } from '@/api' import { getPlanListAPI, uploadFileToOSSAPI, addPlanAPI, savePlanAPI, deletePlanAPI, addPlanByRoleAPI, getChargeListAPI, addPlanByWebAPI, updatePlanByWebAPI, getPlanStoreListAPI, updatePlanAPI, batchUpdatePlanAPI } from '@/api'
import { checkPlanExpire, checkPlanChangeExpire } from '@/hooks' import { checkPlanExpire, checkPlanChangeExpire } from '@/hooks'
import userStore from '@/store/modules/user' import userStore from '@/store/modules/user'
import { PROMOTION_ACTIVITY_MODE_LIST,getPromotionActiveStatus } from '@/dicts' import { PROMOTION_ACTIVITY_MODE_LIST, getPromotionActiveStatus } from '@/dicts'
import { parseTime } from '@/utils' import { parseTime } from '@/utils'
const props = defineProps({ const props = defineProps({
...@@ -539,8 +539,17 @@ const remoteStoreMethod = (query) => { ...@@ -539,8 +539,17 @@ const remoteStoreMethod = (query) => {
// 定义禁用日期的函数 // 定义禁用日期的函数
const disabledDateFn = (time) => { const disabledDateFn = (time) => {
// 城市经理只能新增下个月一整个月的 // 城市经理
if (isCityManager) { if (isCityManager) {
// 如果是变更状态,则只能修改次日到本月底最后一日
if (addOrEditPlanForm.value.id) {
const now = new Date();
const nextDay = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 1)
const end = new Date(now.getFullYear(), now.getMonth() + 1, 0);
return time.getTime() < nextDay.getTime() || time.getTime() > end.getTime()
}
// 如果是新增状态,只能新增下个月一整个月的
const now = new Date(); const now = new Date();
const start = new Date(now.getFullYear(), now.getMonth() + 1, 1); const start = new Date(now.getFullYear(), now.getMonth() + 1, 1);
const end = new Date(now.getFullYear(), now.getMonth() + 2, 0); const end = new Date(now.getFullYear(), now.getMonth() + 2, 0);
...@@ -1053,7 +1062,7 @@ defineExpose({ ...@@ -1053,7 +1062,7 @@ defineExpose({
} }
/* 工资和杂费输入框 */ /* 工资和杂费输入框 */
.el-input-number{ .el-input-number {
width: 170px; width: 170px;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论