Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d2684ffa
authored
Jan 27, 2021
by
吴娟华
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.1.1' of
http://192.168.3.233:8090/glsx-business/dj-car-life-system
into v1.1.1
2 parents
0049a6cb
1e64dc2e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
15 deletions
src/components/d2-form/index.vue
src/components/d2-form/relateProDialog.vue
src/views/customer/editCustomer.vue
src/views/goods/editCommodity.vue
src/views/systemConfig/serviceStore.vue
src/components/d2-form/index.vue
View file @
d2684ff
...
@@ -76,6 +76,7 @@
...
@@ -76,6 +76,7 @@
:disabled="item.isDisabled"
:disabled="item.isDisabled"
clearable
clearable
@input="item.handleInput"
@input="item.handleInput"
@blur="item.handleBlur"
>
>
<i
<i
slot=
"suffix"
slot=
"suffix"
...
...
src/components/d2-form/relateProDialog.vue
View file @
d2684ff
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
placeholder=
"请输入建议到店价格"
placeholder=
"请输入建议到店价格"
class=
"dis-in-block"
class=
"dis-in-block"
@
input=
"handleShopPrice"
@
input=
"handleShopPrice"
@
blur=
"handleShopPriceBlur"
>
>
<i
<i
slot=
"suffix"
slot=
"suffix"
...
@@ -285,7 +286,7 @@ export default {
...
@@ -285,7 +286,7 @@ export default {
upgradePrice
:
[
upgradePrice
:
[
{
required
:
true
,
message
:
'请输入建议升级价'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入建议升级价'
,
trigger
:
'blur'
},
{
required
:
true
,
{
required
:
true
,
trigger
:
'
change
'
,
trigger
:
'
blur
'
,
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
(
+
value
<
+
this
.
proInfo
.
shopPrice
)
?
callback
(
new
Error
(
'建议升级价需要大于或等于到店价格'
))
:
callback
()
(
+
value
<
+
this
.
proInfo
.
shopPrice
)
?
callback
(
new
Error
(
'建议升级价需要大于或等于到店价格'
))
:
callback
()
}
}
...
@@ -358,8 +359,12 @@ export default {
...
@@ -358,8 +359,12 @@ export default {
handleShopPrice
(
newVal
)
{
handleShopPrice
(
newVal
)
{
this
.
proInfo
.
shopPrice
=
limitPrice
(
newVal
,
this
.
oldVal
.
shopPrice
,
6
,
2
)
this
.
proInfo
.
shopPrice
=
limitPrice
(
newVal
,
this
.
oldVal
.
shopPrice
,
6
,
2
)
this
.
oldVal
.
shopPrice
=
this
.
proInfo
.
shopPrice
this
.
oldVal
.
shopPrice
=
this
.
proInfo
.
shopPrice
},
handleShopPriceBlur
()
{
if
(
this
.
proInfo
.
upgradePrice
)
{
var
validateObj
=
(
this
.
proInfo
.
shopPrice
<=
this
.
proInfo
.
upgradePrice
)
?
'clearValidate'
:
'validateField'
var
validateObj
=
(
this
.
proInfo
.
shopPrice
<=
this
.
proInfo
.
upgradePrice
)
?
'clearValidate'
:
'validateField'
this
.
$refs
.
proRuleForm1
[
validateObj
](
'upgradePrice'
)
this
.
$refs
.
proRuleForm1
[
validateObj
](
'upgradePrice'
)
}
},
},
handleMaxUpgradeDiscount
(
newVal
)
{
handleMaxUpgradeDiscount
(
newVal
)
{
this
.
proInfo
.
maxUpgradeDiscount
=
limitPrice
(
newVal
,
this
.
oldVal
.
maxUpgradeDiscount
,
1
,
1
,
1
)
this
.
proInfo
.
maxUpgradeDiscount
=
limitPrice
(
newVal
,
this
.
oldVal
.
maxUpgradeDiscount
,
1
,
1
,
1
)
...
...
src/views/customer/editCustomer.vue
View file @
d2684ff
...
@@ -195,6 +195,7 @@
...
@@ -195,6 +195,7 @@
v-if=
"form.carChildsBrandId"
v-if=
"form.carChildsBrandId"
v-model=
"form.carSeriesId"
v-model=
"form.carSeriesId"
placeholder=
"请选择车系"
placeholder=
"请选择车系"
@
change=
"getCarType(form.carSeriesId)"
style=
"width:150px; margin-right: 20px;"
style=
"width:150px; margin-right: 20px;"
>
>
<el-option
<el-option
...
@@ -604,20 +605,20 @@ export default {
...
@@ -604,20 +605,20 @@ export default {
},
},
// 根据车系id获取车辆类型
// 根据车系id获取车辆类型
//
getCarType(id, fn = () => { }) {
getCarType
(
id
,
fn
=
()
=>
{
})
{
// this.$set(this.form, 'carTypeId', '')
// this.$set(this.form, 'carTypeId', '')
// this.carTypeOptions = []
// this.carTypeOptions = []
//
if (id) {
if
(
id
)
{
// const params = { 'seriesId': id }
// const params = { 'seriesId': id }
// getCarType(params).then(res => {
// getCarType(params).then(res => {
// this.carTypeOptions = res || []
// this.carTypeOptions = res || []
//
const o = this.carSeriesOptions.find(k => k.carSeriesId == id)
const
o
=
this
.
carSeriesOptions
.
find
(
k
=>
k
.
carSeriesId
==
id
)
//
this.form.carSeriesName = o.carSeriesName
this
.
form
.
carSeriesName
=
o
.
carSeriesName
// })
// })
//
fn()
fn
()
//
}
}
//
},
},
// changeCarType(id) {
// changeCarType(id) {
// const o = this.carTypeOptions.find(k => k.id == id)
// const o = this.carTypeOptions.find(k => k.id == id)
...
...
src/views/goods/editCommodity.vue
View file @
d2684ff
...
@@ -54,7 +54,7 @@ export default {
...
@@ -54,7 +54,7 @@ export default {
retailPrice
:
[
retailPrice
:
[
{
required
:
true
,
message
:
'请输入零售价格'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入零售价格'
,
trigger
:
'blur'
},
{
required
:
true
,
{
required
:
true
,
trigger
:
'
change
'
,
trigger
:
'
blur
'
,
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
(
+
value
<
+
this
.
markOldVal
.
shopPrice
)
?
callback
(
new
Error
(
'配置零售价格需要大于或等于到店价格'
))
:
callback
()
(
+
value
<
+
this
.
markOldVal
.
shopPrice
)
?
callback
(
new
Error
(
'配置零售价格需要大于或等于到店价格'
))
:
callback
()
}
}
...
@@ -98,11 +98,15 @@ export default {
...
@@ -98,11 +98,15 @@ export default {
label
:
'到店价格'
,
label
:
'到店价格'
,
type
:
'input'
,
type
:
'input'
,
unit
:
'元'
,
unit
:
'元'
,
handleBlur
:
()
=>
{
if
(
this
.
markOldVal
.
retailPrice
)
{
var
validateObj
=
(
this
.
markOldVal
.
shopPrice
<=
this
.
markOldVal
.
retailPrice
)
?
'clearValidate'
:
'validateField'
this
.
$refs
.
d2Form
.
$refs
[
this
.
comFormRef
+
'd2FormRuleForm'
][
validateObj
](
'retailPrice'
)
}
},
handleInput
:
(
newVal
)
=>
{
handleInput
:
(
newVal
)
=>
{
this
.
$refs
.
d2Form
.
formData
.
shopPrice
=
limitPrice
(
newVal
,
this
.
markOldVal
.
shopPrice
,
6
,
2
)
this
.
$refs
.
d2Form
.
formData
.
shopPrice
=
limitPrice
(
newVal
,
this
.
markOldVal
.
shopPrice
,
6
,
2
)
this
.
markOldVal
.
shopPrice
=
this
.
$refs
.
d2Form
.
formData
.
shopPrice
this
.
markOldVal
.
shopPrice
=
this
.
$refs
.
d2Form
.
formData
.
shopPrice
var
validateObj
=
(
this
.
markOldVal
.
shopPrice
<=
this
.
markOldVal
.
retailPrice
)
?
'clearValidate'
:
'validateField'
this
.
$refs
.
d2Form
.
$refs
[
this
.
comFormRef
+
'd2FormRuleForm'
][
validateObj
](
'retailPrice'
)
}
}
},
{
},
{
name
:
'retailPrice'
,
name
:
'retailPrice'
,
...
...
src/views/systemConfig/serviceStore.vue
View file @
d2684ff
...
@@ -211,12 +211,9 @@ export default {
...
@@ -211,12 +211,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
// if (this.userInfo.beSuper) {
!
this
.
userInfo
.
beSuper
&&
(
this
.
storeSearchForm
.
yqMerchantId
=
this
.
userInfo
.
detail
.
merchantId
)
this
.
userInfo
.
beSuper
&&
getParkStore
({}).
then
(
res
=>
{
this
.
userInfo
.
beSuper
&&
getParkStore
({}).
then
(
res
=>
{
this
.
parkServiceList
=
res
this
.
parkServiceList
=
res
})
})
// }
},
},
methods
:
{
methods
:
{
...
@@ -247,10 +244,10 @@ export default {
...
@@ -247,10 +244,10 @@ export default {
this
.
storeSelected
=
[]
this
.
storeSelected
=
[]
},
},
handleRelateStoreConfirm
(
selectedData
)
{
handleRelateStoreConfirm
(
selectedData
)
{
this
.
storeSearchForm
.
yqMerchantId
=
this
.
userInfo
.
beSuper
?
this
.
storeSearchForm
.
yqMerchantId
:
this
.
userInfo
.
detail
.
merchantId
this
.
$refs
.
relate
.
validate
(
valid
=>
{
this
.
$refs
.
relate
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
!
selectedData
.
length
)
{
if
(
!
selectedData
.
length
)
{
// this.notice.warningTips('请选择关联门店')
this
.
$message
({
this
.
$message
({
message
:
'请选择关联门店'
,
message
:
'请选择关联门店'
,
type
:
'warning'
,
type
:
'warning'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment