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
c1e66daf
Commit
c1e66daf
authored
Jun 24, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阶梯价格必填项
parent
fe71b581
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
19 deletions
+45
-19
index.vue
src/views/ecw/product/index.vue
+15
-2
edit.vue
src/views/ecw/productAttr/edit.vue
+30
-17
No files found.
src/views/ecw/product/index.vue
View file @
c1e66daf
...
@@ -595,14 +595,27 @@ export default {
...
@@ -595,14 +595,27 @@ export default {
})
})
});
});
},
},
verify
(
row
){
return
(
row
.
startNum
!==
''
&&
row
.
endNum
!==
''
&&
row
.
clearancePrice
!==
''
&&
row
.
clearancePriceUnit
!==
''
&&
row
.
clearanceVolumeUnit
!==
''
)
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
console
.
log
(
this
.
form
);
this
.
$refs
[
"
form
"
].
validate
(
valid
=>
{
this
.
$refs
[
"
form
"
].
validate
(
valid
=>
{
if
(
!
valid
)
{
if
(
!
valid
)
{
return
;
return
;
}
}
if
(
!
this
.
form
.
airWeightLimit
){
return
this
.
$message
.
warning
(
'
请输入空运订单重量上限
'
)
}
if
(
this
.
form
.
priceStepClearanceList
.
length
===
0
){
return
this
.
$message
.
warning
(
'
阶梯定价输入不完整!
'
)
}
else
{
let
bol
=
this
.
form
.
priceStepClearanceList
.
every
(
this
.
verify
)
if
(
!
bol
){
return
this
.
$message
.
warning
(
'
阶梯定价输入不完整!
'
)
}
}
//商品特性转字符串
//商品特性转字符串
this
.
form
.
attrId
=
this
.
form
.
attrArray
.
join
(
'
,
'
);
this
.
form
.
attrId
=
this
.
form
.
attrArray
.
join
(
'
,
'
);
// 修改的提交
// 修改的提交
...
...
src/views/ecw/productAttr/edit.vue
View file @
c1e66daf
...
@@ -219,25 +219,38 @@ export default {
...
@@ -219,25 +219,38 @@ export default {
this
.
attrIds
=
[]
this
.
attrIds
=
[]
this
.
resetForm
(
"
form
"
);
this
.
resetForm
(
"
form
"
);
},
},
verify
(
row
){
return
(
row
.
startNum
!==
''
&&
row
.
endNum
!==
''
&&
row
.
clearancePrice
!==
''
&&
row
.
clearancePriceUnit
!==
''
&&
row
.
clearanceVolumeUnit
!==
''
)
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
this
.
$refs
[
"
form
"
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
;
}
let
data
=
Object
.
assign
({},
this
.
form
)
if
(
!
data
.
isAllProduct
&&
!
data
.
idList
.
length
){
return
this
.
$message
(
this
.
$t
(
'
请选择商品或勾选全部
'
))
}
if
(
!
this
.
form
.
airWeightLimit
){
return
this
.
$message
.
warning
(
'
请输入空运订单重量上限
'
)
}
if
(
this
.
form
.
priceStepClearanceList
.
length
===
0
){
return
this
.
$message
.
warning
(
'
阶梯定价输入不完整!
'
)
}
else
{
let
bol
=
this
.
form
.
priceStepClearanceList
.
every
(
this
.
verify
)
if
(
!
bol
){
return
this
.
$message
.
warning
(
'
阶梯定价输入不完整!
'
)
}
}
batchUpdateProduct
(
data
).
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
));
this
.
reset
()
this
.
reset
()
console
.
log
(
this
.
form
.
priceStepClearanceList
,
'
priceStepClearanceList
'
)
this
.
$forceUpdate
()
// this.$refs["form"].validate((valid) => {
// this.$store.dispatch('tagsView/delCurrentView')
// if (!valid) {
});
// return;
});
// }
// let data = Object.assign({}, this.form)
// if(!data.isAllProduct && !data.idList.length){
// return this.$message(this.$t('请选择商品或勾选全部'))
// }
// batchUpdateProduct(data).then((response) => {
// this.$modal.msgSuccess(this.$t("修改成功"));
// this.$forceUpdate()
// // this.$store.dispatch('tagsView/delCurrentView')
// });
// });
},
},
},
},
};
};
...
...
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