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
ae99d146
Commit
ae99d146
authored
Apr 12, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lanbm 2024-04-12添加单价模式校验
parent
3d3d1771
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
10 deletions
+23
-10
batchEdit.vue
src/views/ecw/productPrice/batchEdit.vue
+14
-5
batchEditAir.vue
src/views/ecw/productPrice/batchEditAir.vue
+9
-5
No files found.
src/views/ecw/productPrice/batchEdit.vue
View file @
ae99d146
...
...
@@ -317,11 +317,7 @@ export default {
specialProducts
:
[],
// priceStepList: [{},{}], // 阶梯价格
// specialList:[], // 特殊需求,默认四个
rules
()
{
return
{
priceType
:
[{
required
:
true
,
message
:
this
.
$t
(
"
请选择单价模式
"
)
}],
};
},
rules
()
{},
product
:
null
,
/* productType: null, */
currencyList
:
[],
...
...
@@ -335,6 +331,11 @@ export default {
};
},
computed
:
{
rules
()
{
return
{
priceType
:
[{
required
:
true
,
message
:
this
.
$t
(
"
请选择单价模式
"
)
}],
};
},
// 类型,默认海运sea,air表示空运
type
()
{
let
type
=
this
.
$route
.
path
.
split
(
/
[
-_
]
/
).
pop
();
...
...
@@ -673,6 +674,14 @@ export default {
if
(
!
valid
)
{
return
;
}
//lanbm 2024-04-12 添加单价模式校验
if
(
this
.
form
.
priceType
==
0
||
this
.
form
.
priceType
==
1
)
{
}
else
{
this
.
$message
.
error
(
this
.
$t
(
"
请选择单价模式
"
));
return
;
}
//end lanbm 2024-04-12 添加单价模式校验
// 只有新增的时候做判断
if
(
...
...
src/views/ecw/productPrice/batchEditAir.vue
View file @
ae99d146
...
...
@@ -232,11 +232,7 @@ export default {
isAllProduct
:
false
,
// 是否全部商品
isAllFilteredProduct
:
false
,
// 是否勾選全部搜索結果
specialProducts
:
[],
rules
()
{
return
{
priceType
:
[{
required
:
true
,
message
:
this
.
$t
(
"
请选择单价模式
"
)
}],
};
},
rules
()
{},
product
:
null
,
currencyList
:
[],
unitList
:
[],
...
...
@@ -445,6 +441,14 @@ export default {
return
;
}
//lanbm 2024-04-12 添加单价模式校验
if
(
this
.
form
.
priceType
==
0
||
this
.
form
.
priceType
==
1
)
{
}
else
{
this
.
$message
.
error
(
this
.
$t
(
"
请选择单价模式
"
));
return
;
}
//end lanbm 2024-04-12 添加单价模式校验
// 只有新增的时候做判断
if
(
!
this
.
$route
.
query
.
ids
&&
...
...
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