Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
369ce4bf
Commit
369ce4bf
authored
Dec 11, 2024
by
zs嵩
Browse files
Options
Browse Files
Download
Plain Diff
主营类别重复校验
parents
eee8b6cd
54b4d9d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
edit.vue
src/views/ecw/customer/edit.vue
+7
-2
index.vue
src/views/ecw/customer/index.vue
+1
-1
No files found.
src/views/ecw/customer/edit.vue
View file @
369ce4bf
...
...
@@ -228,8 +228,8 @@
</el-select>
</el-col>
<el-col
:span=
"6"
>
<el-button
type=
"
primary
"
@
click=
"form.products.splice(INDEX, 1)"
style=
"padding: 10px"
:disabled=
"!INDEX"
><i
class=
"el-icon-minus"
></i></el-button>
<el-button
type=
"
danger
"
@
click=
"handleAddProduct"
style=
"padding: 10px"
v-if=
"INDEX === form.products.length - 1"
><i
class=
"el-icon-plus"
></i></el-button>
<el-button
type=
"
danger
"
@
click=
"form.products.splice(INDEX, 1)"
style=
"padding: 10px"
:disabled=
"!INDEX"
><i
class=
"el-icon-minus"
></i></el-button>
<el-button
type=
"
primary
"
@
click=
"handleAddProduct"
style=
"padding: 10px"
v-if=
"INDEX === form.products.length - 1"
><i
class=
"el-icon-plus"
></i></el-button>
</el-col>
</el-row>
</div>
...
...
@@ -1021,6 +1021,11 @@ export default {
return
true
}
})
let
typeIds
=
this
.
form
.
products
.
map
(
item
=>
item
.
typeId
)
if
(
new
Set
(
typeIds
).
size
!==
typeIds
.
length
)
{
callback
(
new
Error
(
this
.
$t
(
"
主营类别不能重复
"
)))
return
}
if
(
!
r
)
{
callback
()
}
...
...
src/views/ecw/customer/index.vue
View file @
369ce4bf
...
...
@@ -164,7 +164,7 @@
<el-date-picker
type=
"datetimerange"
clearable
v-model=
"firstDealTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
</el-form-item>
<el-form-item
:label=
"$t('创建时间')"
v-show=
"showSearch"
>
<el-form-item
:label=
"$t('创建时间')"
>
<el-date-picker
type=
"datetimerange"
clearable
v-model=
"createTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
</el-form-item>
<el-form-item
style=
"padding-left: 20px"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment