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

feat(mobile/inspectiontask/tabs/*): 修改:勤策内置 App_售点稽查:修改常规陈列,档期陈列,档期补差的分组最多只能是三组

上级 453fee90
......@@ -105,6 +105,11 @@ const checkProperty = (list) => {
}
// 创建任务组
const createTask = async () => {
// 判断不能超过三组
if (displayGroup.value.length >= 3) {
showNotify({ type: 'danger', message: '最多只能创建 3 组常规陈列' })
return
}
const { data } = await createInspectionTaskDetailAPI({
taskDetail: {
rstId: props.form.rstId,
......@@ -113,7 +118,6 @@ const createTask = async () => {
})
checkProperty([data])
displayGroup.value.push(data)
}
const init = () => {
// 查询外层是否传入初始数据
......
......@@ -104,6 +104,11 @@ const checkProperty = (list) => {
}
// 创建任务组
const createTask = async () => {
// 判断不能超过三组
if (displayGroup.value.length >= 3) {
showNotify({ type: 'danger', message: '最多只能创建 3 组档期补差' })
return
}
const { data } = await createInspectionTaskDetailAPI({
taskDetail: {
rstId: props.form.rstId,
......
......@@ -104,6 +104,11 @@ const checkProperty = (list) => {
}
// 创建任务组
const createTask = async () => {
// 判断不能超过三组
if (displayGroup.value.length >= 3) {
showNotify({ type: 'danger', message: '最多只能创建 3 组档期陈列' })
return
}
const { data } = await createInspectionTaskDetailAPI({
taskDetail: {
rstId: props.form.rstId,
......
......@@ -156,7 +156,6 @@
:after-read="temWorkPhotosRead"
preview-size="120"
@delete="deleteTemWorkPhotos">
</van-uploader>
</div>
<div class="form-item">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论