Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 387638e1
authored
Feb 21, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
53d9b524
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
100 additions
and
79 deletions
src/components/d2-dialog/index.vue
src/main.js
src/views/beforeSale/editEquity.vue
src/views/serviceConfig/addExtended.vue
src/views/serviceConfig/addService.vue
src/views/serviceConfig/components/ServicesTable/index.vue
src/views/serviceConfig/components/inputNumberRange.vue
src/views/serviceConfig/components/multipleSpecificationForm.vue
src/views/serviceConfig/components/skuDialog/index.vue
src/components/d2-dialog/index.vue
View file @
387638e
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
appendToBody
:
{
appendToBody
:
{
// 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
// 是否将自身插入至 body 元素,有嵌套的弹窗时一定要设置
type
:
Boolean
,
type
:
Boolean
,
default
:
fals
e
default
:
tru
e
},
},
fullscreen
:
Boolean
fullscreen
:
Boolean
},
},
...
...
src/main.js
View file @
387638e
...
@@ -19,6 +19,31 @@ import { start } from '@/setup'
...
@@ -19,6 +19,31 @@ import { start } from '@/setup'
Vue
.
use
(
chaining
)
Vue
.
use
(
chaining
)
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
$apis
=
apis
Vue
.
prototype
.
$apis
=
apis
Vue
.
directive
(
'preventReClick'
,
{
bind
:
(
el
,
binding
)
=>
{
let
time
=
binding
.
value
// 防抖时间
if
(
!
time
)
{
// 用户若不设置防抖时间,则默认1s
time
=
1000
}
let
fun
el
.
addEventListener
(
'click'
,
event
=>
{
if
(
!
fun
)
{
// 第一次执行
fun
=
setTimeout
(()
=>
{
fun
=
null
},
time
)
}
else
{
// 直接取消当前事件
event
&&
event
.
stopImmediatePropagation
()
}
},
true
)
}
})
start
()
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
...
...
src/views/beforeSale/editEquity.vue
View file @
387638e
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
<div
class=
"page-btm-btn"
>
<div
class=
"page-btm-btn"
>
<el-button
v-if=
"![3, 5].includes(routeInfo.addOrEdit)"
class=
"custom_black"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
v-if=
"![3, 5].includes(routeInfo.addOrEdit)"
class=
"custom_black"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
class=
"custom_blue"
v-if=
"![3, 5].includes(routeInfo.addOrEdit)"
@
click=
"handleDraft"
>
草稿
</el-button>
<el-button
class=
"custom_blue"
v-if=
"![3, 5].includes(routeInfo.addOrEdit)"
@
click=
"handleDraft"
>
草稿
</el-button>
<el-button
v-if=
"routeInfo.addOrEdit != '5'"
type=
"primary"
@
click=
"checkRefitInfo()"
>
{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}
</el-button>
<el-button
v-if=
"routeInfo.addOrEdit != '5'"
type=
"primary"
v-preventReClick
@
click=
"checkRefitInfo()"
>
{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}
</el-button>
</div>
</div>
<!-- 二维码 -->
<!-- 二维码 -->
...
@@ -1928,9 +1928,9 @@ export default {
...
@@ -1928,9 +1928,9 @@ export default {
if
(
cartype
&&
this
.
editForm
.
orderStatus
!=
2
)
{
if
(
cartype
&&
this
.
editForm
.
orderStatus
!=
2
)
{
let
_list
=
[]
let
_list
=
[]
this
.
copyCustomProductList
.
forEach
(
item
=>
{
this
.
copyCustomProductList
.
forEach
(
item
=>
{
// 套餐商品不做过滤
// 套餐商品不做过滤
没有这个字段也给全部默认显示
console
.
log
(
item
,
'copyCustomProductList'
)
console
.
log
(
item
,
'copyCustomProductList'
)
if
(
item
.
vehicleSeriesConfigs
&&
item
.
vehicleSeriesConfigs
.
some
(
ele
=>
ele
.
vehicleSeriesId
==
cartype
))
{
if
(
!
item
.
vehicleSeriesConfigs
||
(
item
.
vehicleSeriesConfigs
&&
item
.
vehicleSeriesConfigs
.
some
(
ele
=>
ele
.
vehicleSeriesId
==
cartype
)
))
{
_list
.
push
(
item
)
_list
.
push
(
item
)
}
else
{
}
else
{
if
(
this
.
autoPackageCodeList
.
includes
(
item
.
packageCode
))
{
if
(
this
.
autoPackageCodeList
.
includes
(
item
.
packageCode
))
{
...
...
src/views/serviceConfig/addExtended.vue
View file @
387638e
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
<div
slot=
"s
kuConten
t"
class=
"skuContent"
>
<div
slot=
"s
pecificationDetailLis
t"
class=
"skuContent"
>
<div
class=
"add-btns"
>
<div
class=
"add-btns"
>
<el-button
v-if=
"routeInfo.type != 2"
icon=
"el-icon-plus"
@
click=
"handleSpecsEdit(1)"
>
新增规格
</el-button>
<el-button
v-if=
"routeInfo.type != 2"
icon=
"el-icon-plus"
@
click=
"handleSpecsEdit(1)"
>
新增规格
</el-button>
<el-button
v-if=
"routeInfo.type != 2"
type=
"text"
@
click=
"handleSKuEdit"
>
规格组合管理
</el-button>
<el-button
v-if=
"routeInfo.type != 2"
type=
"text"
@
click=
"handleSKuEdit"
>
规格组合管理
</el-button>
...
@@ -107,10 +107,12 @@ export default {
...
@@ -107,10 +107,12 @@ export default {
{
required
:
true
,
message
:
'请输入自定义保障部件'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入自定义保障部件'
,
trigger
:
'blur'
},
{
validator
:
validateSupportPositionOther
,
trigger
:
'blur'
}
{
validator
:
validateSupportPositionOther
,
trigger
:
'blur'
}
],
],
contractList
:
[{
required
:
true
,
message
:
'请选择关联合同'
,
trigger
:
[
'blur'
,
'change'
]
}]
contractList
:
[{
required
:
true
,
message
:
'请选择关联合同'
,
trigger
:
[
'blur'
,
'change'
]
}],
specificationDetailList
:
[{
required
:
true
,
message
:
'请选择规格'
,
trigger
:
[
'blur'
,
'change'
]
}]
},
},
formObj
:
{
formObj
:
{
contractList
:
[]
contractList
:
[],
specificationDetailList
:
[]
},
},
formData
:
[
formData
:
[
{
{
...
@@ -155,8 +157,8 @@ export default {
...
@@ -155,8 +157,8 @@ export default {
},
},
{
{
label
:
'成本管理:'
,
label
:
'成本管理:'
,
name
:
's
kuConten
t'
,
name
:
's
pecificationDetailLis
t'
,
addHtml
:
's
kuConten
t'
addHtml
:
's
pecificationDetailLis
t'
}
}
],
],
contractTableParams
:
{
contractTableParams
:
{
...
...
src/views/serviceConfig/addService.vue
View file @
387638e
...
@@ -126,7 +126,7 @@ const TIP_OBJ = {
...
@@ -126,7 +126,7 @@ const TIP_OBJ = {
minPrice
:
'最小值'
,
minPrice
:
'最小值'
,
maxPrice
:
'最大值'
,
maxPrice
:
'最大值'
,
standardSalesCost
:
'上架成本'
,
standardSalesCost
:
'上架成本'
,
standardShelfCost
:
'
销售
成本'
,
standardShelfCost
:
'
嘀加
成本'
,
priceCoefficient
:
'价格系数'
priceCoefficient
:
'价格系数'
}
}
export
default
{
export
default
{
...
@@ -419,7 +419,7 @@ export default {
...
@@ -419,7 +419,7 @@ export default {
salePeriodData
.
forEach
(
element
=>
{
salePeriodData
.
forEach
(
element
=>
{
let
{
servicePeriod
,
standardSalesCost
,
standardShelfCost
}
=
element
let
{
servicePeriod
,
standardSalesCost
,
standardShelfCost
}
=
element
if
(
this
.
isEmpty
(
standardSalesCost
)
||
this
.
isEmpty
(
standardShelfCost
))
{
if
(
this
.
isEmpty
(
standardSalesCost
)
||
this
.
isEmpty
(
standardShelfCost
))
{
throw
new
Error
(
`请输入
${
serviceGrade
}
规格
${
servicePeriod
}
年版的
${
this
.
isEmpty
(
standardSalesCost
)
?
'
销售
成本'
:
'上架成本'
}
`
)
throw
new
Error
(
`请输入
${
serviceGrade
}
规格
${
servicePeriod
}
年版的
${
this
.
isEmpty
(
standardSalesCost
)
?
'
嘀加
成本'
:
'上架成本'
}
`
)
}
}
})
})
// 计算/自定义行数据
// 计算/自定义行数据
...
@@ -427,13 +427,13 @@ export default {
...
@@ -427,13 +427,13 @@ export default {
let
{
servicePeriod
,
standardSalesCost
,
standardShelfCost
,
salesCost
,
shelfCost
}
=
element
let
{
servicePeriod
,
standardSalesCost
,
standardShelfCost
,
salesCost
,
shelfCost
}
=
element
const
it
=
salePeriodData
.
find
(
v
=>
v
.
servicePeriod
==
servicePeriod
)
const
it
=
salePeriodData
.
find
(
v
=>
v
.
servicePeriod
==
servicePeriod
)
if
(
computeFlag
==
0
)
{
if
(
computeFlag
==
0
)
{
shelfCost
=
this
.
calcPrice
(
it
?.
standardShelfCost
,
priceCoefficient
)
||
0
// 计算后
销售
成本
shelfCost
=
this
.
calcPrice
(
it
?.
standardShelfCost
,
priceCoefficient
)
||
0
// 计算后
嘀加
成本
salesCost
=
this
.
calcPrice
(
it
?.
standardSalesCost
,
priceCoefficient
)
||
0
// 计算后上架成本
salesCost
=
this
.
calcPrice
(
it
?.
standardSalesCost
,
priceCoefficient
)
||
0
// 计算后上架成本
}
}
if
(
this
.
isEmpty
(
salesCost
)
||
this
.
isEmpty
(
shelfCost
))
{
if
(
this
.
isEmpty
(
salesCost
)
||
this
.
isEmpty
(
shelfCost
))
{
throw
new
Error
(
`请输入
${
serviceGrade
}
规格
${
servicePeriod
}
年版的
${
this
.
isEmpty
(
salesCost
)
?
'
销售
成本'
:
'上架成本'
}
`
)
throw
new
Error
(
`请输入
${
serviceGrade
}
规格
${
servicePeriod
}
年版的
${
this
.
isEmpty
(
salesCost
)
?
'
嘀加
成本'
:
'上架成本'
}
`
)
}
}
standardSalesCost
=
NP
.
times
(
it
?.
standardSalesCost
||
0
,
100
)
// 标准
销售
成本
standardSalesCost
=
NP
.
times
(
it
?.
standardSalesCost
||
0
,
100
)
// 标准
嘀加
成本
standardShelfCost
=
NP
.
times
(
it
?.
standardShelfCost
||
0
,
100
)
// 标准上架成本
standardShelfCost
=
NP
.
times
(
it
?.
standardShelfCost
||
0
,
100
)
// 标准上架成本
let
min_price
=
NP
.
times
(
minPrice
||
0
,
1000000
)
let
min_price
=
NP
.
times
(
minPrice
||
0
,
1000000
)
let
max_price
=
NP
.
times
(
maxPrice
||
0
,
1000000
)
let
max_price
=
NP
.
times
(
maxPrice
||
0
,
1000000
)
...
...
src/views/serviceConfig/components/ServicesTable/index.vue
View file @
387638e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<th
rowspan=
"2"
>
是否计算
</th>
<th
rowspan=
"2"
>
是否计算
</th>
<th
rowspan=
"2"
>
价格系数
</th>
<th
rowspan=
"2"
>
价格系数
</th>
<th
colspan=
"2"
v-for=
"(item, index) in tableData.salePeriodData"
:key=
"index"
>
{{
item
.
servicePeriod
}}
年版
</th>
<th
colspan=
"2"
v-for=
"(item, index) in tableData.salePeriodData"
:key=
"index"
>
{{
item
.
servicePeriod
}}
年版
</th>
<th
rowspan=
"2"
style=
"white-space: nowrap
;
"
>
操作
</th>
<th
rowspan=
"2"
style=
"white-space: nowrap"
>
操作
</th>
</tr>
</tr>
<tr>
<tr>
<template
v-for=
"(item, index) in tableData.salePeriodData"
>
<template
v-for=
"(item, index) in tableData.salePeriodData"
>
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</el-tooltip>
-->
</el-tooltip>
-->
</th>
</th>
<th
:key=
"index"
>
<th
:key=
"index"
>
销售
成本
滴加
成本
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"提示待运营提供"
placement=
"top"
>
<!--
<el-tooltip
class=
"item"
effect=
"dark"
content=
"提示待运营提供"
placement=
"top"
>
<img
class=
"tip"
:src=
"require('@/assets/tip.png')"
/>
<img
class=
"tip"
:src=
"require('@/assets/tip.png')"
/>
</el-tooltip>
-->
</el-tooltip>
-->
...
@@ -154,7 +154,7 @@ export default {
...
@@ -154,7 +154,7 @@ export default {
.
replace
(
new
RegExp
(
`^(\\-)*(\\d+)\\.(\\d{
${
decimal
}
}).*`
,
'g'
),
'$1$2.$3'
)
.
replace
(
new
RegExp
(
`^(\\-)*(\\d+)\\.(\\d{
${
decimal
}
}).*`
,
'g'
),
'$1$2.$3'
)
:
''
:
''
},
},
changeComputeFlag
(
e
,
item
)
{
changeComputeFlag
(
e
,
item
)
{
if
(
e
==
1
)
{
if
(
e
==
1
)
{
item
?.
childSalePeriodData
?.
forEach
(
ele
=>
{
item
?.
childSalePeriodData
?.
forEach
(
ele
=>
{
ele
.
shelfCost
=
''
ele
.
shelfCost
=
''
...
@@ -190,7 +190,7 @@ export default {
...
@@ -190,7 +190,7 @@ export default {
// 获取最后一个的最大价格赋值到新增的最小价格
// 获取最后一个的最大价格赋值到新增的最小价格
const
minPrice
=
this
.
tableData
.
gradeConfigList
[
this
.
tableData
.
gradeConfigList
.
length
-
1
].
maxPrice
const
minPrice
=
this
.
tableData
.
gradeConfigList
[
this
.
tableData
.
gradeConfigList
.
length
-
1
].
maxPrice
const
arr
=
this
.
tableData
.
salePeriodData
.
map
(
item
=>
{
const
arr
=
this
.
tableData
.
salePeriodData
.
map
(
item
=>
{
return
{
servicePeriod
:
item
.
servicePeriod
,
standardShelfCost
:
''
,
standardSalesCost
:
''
,
shelfCost
:
''
,
salesCost
:
''
}
return
{
servicePeriod
:
item
.
servicePeriod
,
standardShelfCost
:
''
,
standardSalesCost
:
''
,
shelfCost
:
''
,
salesCost
:
''
}
})
})
let
sectionItem
=
{
let
sectionItem
=
{
servicePeriod
:
''
,
servicePeriod
:
''
,
...
...
src/views/serviceConfig/components/inputNumberRange.vue
View file @
387638e
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
<div
class=
"input-number-range"
:class=
"
{ 'is-disabled': disabled }">
<div
class=
"input-number-range"
:class=
"
{ 'is-disabled': disabled }">
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"from"
>
<div
class=
"from"
>
<el-input
ref=
"input_from"
v-model=
"userInputForm"
:disabled=
"disabled"
placeholder=
"最小值"
@
keyup
.
enter
.
native=
"handleBlurFrom"
@
blur=
"handleBlurFrom"
@
focus=
"handleFocusFrom"
@
input=
"handleInput
From"
@
change=
"handleInputChangeFrom
"
></el-input>
<el-input
ref=
"input_from"
v-model=
"userInputForm"
:disabled=
"disabled"
placeholder=
"最小值"
@
keyup
.
enter
.
native=
"handleBlurFrom"
@
blur=
"handleBlurFrom"
@
focus=
"handleFocusFrom"
@
input=
"handleInput
ChangeFrom"
@
change=
"handleInputChangeFromChange
"
></el-input>
</div>
</div>
<div
class=
"center"
>
<div
class=
"center"
>
<span>
-
</span>
<span>
-
</span>
</div>
</div>
<div
class=
"to from"
>
<div
class=
"to from"
>
<el-input
ref=
"input_to"
v-model=
"userInputTo"
:disabled=
"disabled"
placeholder=
"最大值"
@
keyup
.
enter
.
native=
"handleBlurTo"
@
blur=
"handleBlurTo"
@
focus=
"handleFocusTo"
@
input=
"handleInput
To"
@
change=
"handleInputChangeTo
"
></el-input>
<el-input
ref=
"input_to"
v-model=
"userInputTo"
:disabled=
"disabled"
placeholder=
"最大值"
@
keyup
.
enter
.
native=
"handleBlurTo"
@
blur=
"handleBlurTo"
@
focus=
"handleFocusTo"
@
input=
"handleInput
ChangeTo"
@
change=
"handleInputChangeToChange
"
></el-input>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -95,16 +95,11 @@ export default {
...
@@ -95,16 +95,11 @@ export default {
},
},
handleBlurTo
(
event
)
{
handleBlurTo
(
event
)
{
this
.
confirm
()
this
.
confirm
()
this
.
$emit
(
'blurto'
,
event
)
},
},
handleFocusTo
(
event
)
{
handleFocusTo
(
event
)
{},
this
.
$emit
(
'focusto'
,
event
)
},
handleInputFrom
(
value
)
{
handleInputFrom
(
value
)
{},
this
.
$emit
(
'inputfrom'
,
value
)
},
handleInputTo
(
value
)
{
handleInputTo
(
value
)
{
this
.
$emit
(
'inputto'
,
value
)
this
.
$emit
(
'inputto'
,
value
)
...
@@ -112,51 +107,28 @@ export default {
...
@@ -112,51 +107,28 @@ export default {
// from输入框change事件
// from输入框change事件
handleInputChangeFrom
(
value
)
{
handleInputChangeFrom
(
value
)
{
// 如果是非数字空返回null
this
.
userInputForm
=
value
.
replace
(
/^
(
100|
[
1-9
]?\d)(\.\d{0,2})?
.*$/
,
'$1$2'
)
if
(
isNaN
(
value
)
||
value
===
''
)
{
},
this
.
$emit
(
'input'
,
[
null
,
this
.
userInputTo
])
this
.
$emit
(
'changefrom'
,
this
.
userInputForm
)
return
}
// 初始化数字精度
this
.
userInputForm
=
this
.
setPrecisionValue
(
value
)
// 如果from > to 将from值替换成to
handleInputChangeFromChange
()
{
if
(
typeof
this
.
userInputTo
===
'number'
)
{
// 看一下this.userInputTo 是否有值,如果有应该比它小
this
.
userInputForm
=
parseFloat
(
this
.
userInputForm
)
<=
parseFloat
(
this
.
userInputTo
)
?
this
.
userInputForm
:
this
.
userInputTo
if
(
this
.
userInputTo
)
{
console
.
log
(
'this.userInputTo'
,
this
.
userInputTo
,
this
.
userInputForm
,
this
.
userInputTo
<
this
.
userInputForm
)
if
(
parseInt
(
this
.
userInputTo
)
<
parseInt
(
this
.
userInputForm
))
{
this
.
userInputForm
=
this
.
userInputTo
}
}
}
this
.
$emit
(
'input'
,
[
this
.
userInputForm
,
this
.
userInputTo
])
this
.
$emit
(
'changefrom'
,
this
.
userInputForm
)
},
},
// to输入框change事件
// to输入框change事件
handleInputChangeTo
(
value
)
{
handleInputChangeTo
(
value
)
{
// 如果是非数字空返回null
this
.
userInputTo
=
value
.
replace
(
/^
(
100|
[
1-9
]?\d)(\.\d{0,2})?
.*$/
,
'$1$2'
)
if
(
isNaN
(
value
)
||
value
===
''
)
{
this
.
$emit
(
'input'
,
[
this
.
userInputForm
,
null
])
this
.
$emit
(
'changefrom'
,
this
.
userInputTo
)
return
}
// 初始化数字精度
this
.
userInputTo
=
this
.
setPrecisionValue
(
value
)
// 如果to < tfrom 将to值替换成from
if
(
typeof
this
.
userInputForm
===
'number'
)
{
this
.
userInputTo
=
parseFloat
(
this
.
userInputTo
)
>=
parseFloat
(
this
.
userInputForm
)
?
this
.
userInputTo
:
this
.
userInputForm
}
this
.
$emit
(
'input'
,
[
this
.
userInputForm
,
this
.
userInputTo
])
this
.
$emit
(
'changeto'
,
this
.
userInputTo
)
},
},
handleInputChangeToChange
()
{
// 设置成精度数字
// 看一下this.userInputForm 是否有值,如果有应该比它大
setPrecisionValue
(
value
)
{
if
(
parseInt
(
this
.
userInputTo
)
<
parseInt
(
this
.
userInputForm
))
{
if
(
this
.
precision
!==
undefined
)
{
this
.
userInputTo
=
this
.
userInputForm
const
val
=
this
.
toPrecision
(
value
,
this
.
precision
)
return
val
}
}
return
null
}
}
}
}
}
}
...
...
src/views/serviceConfig/components/multipleSpecificationForm.vue
View file @
387638e
...
@@ -74,7 +74,8 @@
...
@@ -74,7 +74,8 @@
</el-input>
</el-input>
</td>
</td>
<td>
<td>
<el-select
placeholder=
"车型"
:disabled=
"routeInfo.type == 2"
size=
"small"
multiple
collapse-tags
:class=
"
{ 'w-200-per': true }" style="width: 200px" v-model="subItem.seriesConfigList" @focus="carTypeSelect(false, subItem)" value-key="seriesId">
<!-- style="width: 200px" -->
<el-select
ref=
"chooseProjectName"
placeholder=
"车型"
:disabled=
"routeInfo.type == 2"
size=
"small"
multiple
collapse-tags
:class=
"
{ 'w-200-per': false }" v-model="subItem.seriesConfigList" @focus="carTypeSelect(false, subItem, subIndex)" value-key="seriesId">
<el-option
v-for=
"item in subItem.seriesConfigList"
:key=
"item.vehicleSeriesId"
:label=
"item.vehicleSeriesName"
:value=
"item"
></el-option>
<el-option
v-for=
"item in subItem.seriesConfigList"
:key=
"item.vehicleSeriesId"
:label=
"item.vehicleSeriesName"
:value=
"item"
></el-option>
</el-select>
</el-select>
</td>
</td>
...
@@ -88,10 +89,8 @@
...
@@ -88,10 +89,8 @@
<div
style=
"margin-top: 10px"
>
<div
style=
"margin-top: 10px"
>
共
共
<span
class=
"tip-text"
>
{{
goodsInfoData
.
goodsSpecificationList
.
length
}}
</span>
<span
class=
"tip-text"
>
{{
filterStatus
.
length
}}
</span>
件规格商品。
件规格商品。
<!-- 价格区间 -->
<!--
<span
class=
"tip-text"
>
¥
{{
minPrice
}}
~
{{
maxPrice
}}
</span>
-->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -264,7 +263,8 @@ export default {
...
@@ -264,7 +263,8 @@ export default {
watch
:
{
watch
:
{
specificationVisible
:
{
specificationVisible
:
{
handler
()
{
handler
()
{
;(
this
.
isChange
=
false
),
(
this
.
spescInputVal
=
''
)
this
.
isChange
=
false
this
.
spescInputVal
=
''
},
},
deep
:
true
deep
:
true
}
}
...
@@ -304,7 +304,7 @@ export default {
...
@@ -304,7 +304,7 @@ export default {
methods
:
{
methods
:
{
...
mapMutations
(
'goodsInfoData'
,
[
'setUpdateGoodsInfo'
]),
...
mapMutations
(
'goodsInfoData'
,
[
'setUpdateGoodsInfo'
]),
// 打开门店弹窗或者品牌弹窗
// 打开门店弹窗或者品牌弹窗
carTypeSelect
(
type
=
false
,
item
)
{
carTypeSelect
(
type
=
false
,
item
,
rowindex
)
{
// if (this.formData.showMerchant == 1) {
// if (this.formData.showMerchant == 1) {
// this.brandVisible = true
// this.brandVisible = true
// } else {
// } else {
...
@@ -315,6 +315,12 @@ export default {
...
@@ -315,6 +315,12 @@ export default {
// }
// }
console
.
log
(
'type'
,
item
)
console
.
log
(
'type'
,
item
)
// 阻止下拉框弹出
let
_this
=
this
console
.
log
(
_this
.
$refs
.
chooseProjectName
[
rowindex
])
_this
.
$refs
.
chooseProjectName
[
rowindex
].
blur
()
if
(
!
type
)
{
if
(
!
type
)
{
this
.
carSelectName
=
item
.
specsValueList
this
.
carSelectName
=
item
.
specsValueList
this
.
storeSelected
=
deepClone
(
item
.
seriesConfigList
||
[])
this
.
storeSelected
=
deepClone
(
item
.
seriesConfigList
||
[])
...
@@ -471,6 +477,10 @@ export default {
...
@@ -471,6 +477,10 @@ export default {
return
data
instanceof
Array
?
data
.
length
<=
0
:
(
data
??
''
)
===
''
return
data
instanceof
Array
?
data
.
length
<=
0
:
(
data
??
''
)
===
''
},
},
handleSpescClose
()
{
handleSpescClose
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'spescRef'
].
clearValidate
()
})
this
.
specificationVisible
=
!
this
.
specificationVisible
this
.
specificationVisible
=
!
this
.
specificationVisible
},
},
showInput
()
{
showInput
()
{
...
@@ -567,10 +577,13 @@ export default {
...
@@ -567,10 +577,13 @@ export default {
// debugger
// debugger
// console.log('changeSpecs')
// console.log('changeSpecs')
this
.
computedTableWidth
(
this
.
goodsInfoData
.
goodsType
)
this
.
computedTableWidth
(
this
.
goodsInfoData
.
goodsType
)
const
copySpecificationValueList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
goodsInfoData
.
upgradeGoodsList
))
console
.
log
(
this
.
goodsInfoData
,
'goodsInfoData'
)
const
copySpecificationValueList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
goodsInfoData
.
goodsSpecificationList
))
// const copySpecificationValueList = JSON.parse(JSON.stringify(this.goodsInfoData.goodsSpecificationList))
const
copyDetailLength
=
this
.
goodsInfoData
.
goodsSpecificationNameList
?.
length
const
copyDetailLength
=
this
.
goodsInfoData
.
goodsSpecificationNameList
?.
length
const
copyDetailData
=
this
.
goodsInfoData
.
goodsSpecificationNameList
const
copyDetailData
=
this
.
goodsInfoData
.
goodsSpecificationNameList
this
.
goodsInfoData
.
goodsSpecificationList
=
[]
this
.
goodsInfoData
.
goodsSpecificationList
=
[]
console
.
log
(
copySpecificationValueList
,
'copySpecificationValueList'
)
let
flag
=
true
let
flag
=
true
var
markIdx
=
0
var
markIdx
=
0
for
(
var
i
=
0
;
i
<
this
.
goodsInfoData
.
specificationDetailList
?.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
goodsInfoData
.
specificationDetailList
?.
length
;
i
++
)
{
...
@@ -603,6 +616,7 @@ export default {
...
@@ -603,6 +616,7 @@ export default {
insuranceCost
:
''
,
// 投保成本,单位元
insuranceCost
:
''
,
// 投保成本,单位元
shelfCost
:
''
,
// 上架成本,单位元
shelfCost
:
''
,
// 上架成本,单位元
salesCost
:
''
,
// salesCost
salesCost
:
''
,
// salesCost
seriesConfigList
:
[],
useStatus
:
0
useStatus
:
0
})
})
}
else
{
}
else
{
...
@@ -645,7 +659,7 @@ export default {
...
@@ -645,7 +659,7 @@ export default {
this
.
goodsInfoData
.
goodsSpecificationList
.
forEach
(
item
=>
{
this
.
goodsInfoData
.
goodsSpecificationList
.
forEach
(
item
=>
{
for
(
var
i
=
0
;
i
<
copySpecificationValueList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
copySpecificationValueList
.
length
;
i
++
)
{
var
temp
=
copySpecificationValueList
[
i
]
var
temp
=
copySpecificationValueList
[
i
]
console
.
log
(
flag
,
!
restData
,
'!restData'
)
console
.
log
(
flag
,
!
restData
,
temp
.
specificationData
,
item
.
specsValueList
.
join
(
';~;'
),
'!restData'
)
if
(
temp
.
specificationData
==
item
.
specsValueList
.
join
(
';~;'
)
&&
flag
&&
!
restData
)
{
if
(
temp
.
specificationData
==
item
.
specsValueList
.
join
(
';~;'
)
&&
flag
&&
!
restData
)
{
item
.
id
=
temp
.
id
?
temp
.
id
:
''
item
.
id
=
temp
.
id
?
temp
.
id
:
''
// item.upgradePrice = this.equitySceneType.includes(this.goodsInfoData.goodsType) && this.baseConfig.supplierCode.includes(`${this.goodsInfoData.supplierCode}`) ? 0 : temp.upgradePrice
// item.upgradePrice = this.equitySceneType.includes(this.goodsInfoData.goodsType) && this.baseConfig.supplierCode.includes(`${this.goodsInfoData.supplierCode}`) ? 0 : temp.upgradePrice
...
@@ -666,6 +680,7 @@ export default {
...
@@ -666,6 +680,7 @@ export default {
item
.
shelfCost
=
temp
.
shelfCost
item
.
shelfCost
=
temp
.
shelfCost
item
.
salesCost
=
temp
.
salesCost
item
.
salesCost
=
temp
.
salesCost
item
.
useStatus
=
temp
.
useStatus
item
.
useStatus
=
temp
.
useStatus
item
.
seriesConfigList
=
temp
.
seriesConfigList
break
break
}
}
}
}
...
@@ -810,7 +825,7 @@ export default {
...
@@ -810,7 +825,7 @@ export default {
// subItem.salesCost) && subItem.salesCostEmpty
// subItem.salesCost) && subItem.salesCostEmpty
newValue
=
newValue
.
replace
(
/
[^\d
.
]
/g
,
''
)
newValue
=
newValue
.
replace
(
/
[^\d
.
]
/g
,
''
)
let
oldValue
=
`
${
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'oldsalesCost'
]}
`
let
oldValue
=
`
${
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'oldsalesCost'
]}
`
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'salesCost'
,
limitPrice
(
newValue
,
oldValue
,
3
,
1
,
0
))
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'salesCost'
,
limitPrice
(
newValue
,
oldValue
,
20
,
2
,
0
))
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'oldsalesCost'
,
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'salesCost'
])
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'oldsalesCost'
,
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'salesCost'
])
},
},
handlePurchasePriceBlur
(
e
,
index
)
{
handlePurchasePriceBlur
(
e
,
index
)
{
...
@@ -836,7 +851,7 @@ export default {
...
@@ -836,7 +851,7 @@ export default {
// subItem.shelfCost) && subItem.salesCostEmpty
// subItem.shelfCost) && subItem.salesCostEmpty
newValue
=
newValue
.
replace
(
/
[^\d
.
]
/g
,
''
)
newValue
=
newValue
.
replace
(
/
[^\d
.
]
/g
,
''
)
let
oldValue
=
`
${
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'oldshelfCost'
]}
`
let
oldValue
=
`
${
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'oldshelfCost'
]}
`
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'shelfCost'
,
limitPrice
(
newValue
,
oldValue
,
3
,
1
,
0
))
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'shelfCost'
,
limitPrice
(
newValue
,
oldValue
,
20
,
2
,
0
))
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'oldshelfCost'
,
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'shelfCost'
])
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'oldshelfCost'
,
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'shelfCost'
])
},
},
handleWarrantyPeriodBlur
(
e
,
index
)
{
handleWarrantyPeriodBlur
(
e
,
index
)
{
...
@@ -858,7 +873,7 @@ export default {
...
@@ -858,7 +873,7 @@ export default {
handleKilometersInput
(
newValue
,
index
)
{
handleKilometersInput
(
newValue
,
index
)
{
newValue
=
newValue
.
replace
(
/
[^\d
.
]
/g
,
''
)
newValue
=
newValue
.
replace
(
/
[^\d
.
]
/g
,
''
)
let
oldValue
=
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'oldInsuranceCost'
]
?
`
${
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'oldInsuranceCost'
]}
`
:
''
let
oldValue
=
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'oldInsuranceCost'
]
?
`
${
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'oldInsuranceCost'
]}
`
:
''
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'insuranceCost'
,
limitPrice
(
newValue
,
oldValue
,
3
,
0
,
0
,
10
0
))
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'insuranceCost'
,
limitPrice
(
newValue
,
oldValue
,
20
,
2
,
0
))
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'oldInsuranceCost'
,
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'insuranceCost'
])
this
.
$set
(
this
.
goodsInfoData
.
goodsSpecificationList
[
index
],
'oldInsuranceCost'
,
this
.
goodsInfoData
.
goodsSpecificationList
[
index
][
'insuranceCost'
])
},
},
handleKilometersBlur
(
e
,
index
)
{
handleKilometersBlur
(
e
,
index
)
{
...
@@ -993,10 +1008,10 @@ export default {
...
@@ -993,10 +1008,10 @@ export default {
overflow-y
:
overlay
;
overflow-y
:
overlay
;
}
}
}
}
.input-new-tag
{
}
width
:
90px
!important
;
.input-new-tag
{
vertical-align
:
bottom
;
width
:
90px
!important
;
}
vertical-align
:
bottom
;
}
}
.selectOpt
{
.selectOpt
{
margin-top
:
10px
;
margin-top
:
10px
;
...
...
src/views/serviceConfig/components/skuDialog/index.vue
View file @
387638e
...
@@ -34,6 +34,11 @@
...
@@ -34,6 +34,11 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
<div
style=
"margin-top: 10px"
>
共
<span
class=
"tip-text"
>
{{ tableData.length }}
</span>
件规格商品。
</div>
</div>
</div>
</d2-dialog>
</d2-dialog>
</template>
</template>
...
@@ -135,6 +140,7 @@ export default {
...
@@ -135,6 +140,7 @@ export default {
}
}
})
})
})
})
this
.
$message
.
success
(
'启用成功'
)
},
},
handleRelateStop
()
{
handleRelateStop
()
{
if
(
!
this
.
selectedData
.
length
)
{
if
(
!
this
.
selectedData
.
length
)
{
...
@@ -147,6 +153,7 @@ export default {
...
@@ -147,6 +153,7 @@ export default {
}
}
})
})
})
})
this
.
$message
.
success
(
'禁用成功'
)
},
},
clickSwitch
(
row
,
val
)
{},
clickSwitch
(
row
,
val
)
{},
recoverySelection
()
{
recoverySelection
()
{
...
...
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