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 b1d21472
authored
Oct 11, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
BUG修复
1 parent
a9a9dfd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
34 deletions
src/views/systemConfig/yqStoreManage/editLaunch.vue
src/views/systemConfig/yqStoreManage/editLaunch.vue
View file @
b1d2147
...
...
@@ -197,7 +197,7 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"运营主体名称:"
prop=
"
yqCode
"
>
prop=
"
operationSubjectId
"
>
<el-select
v-model=
"formData.operationSubjectId"
clearable
filterable
...
...
@@ -257,9 +257,10 @@
<el-date-picker
v-model=
"formData.businessStartDate"
type=
"date"
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd
HH:mm:ss
"
format=
"yyyy-MM-dd"
style=
"width: 390px;"
placeholder=
"选择日期"
>
placeholder=
"选择日期"
:editable=
"false"
>
</el-date-picker>
</el-form-item>
</el-form>
...
...
@@ -812,14 +813,14 @@
</el-col>
</el-row>
<!-- 表格 -->
<el-form-item
v-show=
"formData[type.key].serviceDetailsList && formData[type.key].serviceDetailsList.length > 0"
class=
"edit-form-item-table
"
>
<el-form-item
v-show=
"formData[type.key].serviceDetailsList && formData[type.key].serviceDetailsList.length > 0
"
>
<el-table
:data=
"formData[type.key].serviceDetailsList"
:header-cell-style=
"headerCellStyle"
:row-style=
"{ height: '80px' }"
:cell-style=
"{ 'text-align': 'center' }"
border
style=
"width: 100%
"
>
class=
"edit-form-item-table
"
>
<el-table-column
label=
"服务承接类型"
width=
"250"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -891,7 +892,7 @@
</el-form-item>
</
template
>
</el-table-column>
<el-table-column
label=
"
分润模式
"
>
<el-table-column
label=
"
预估安装成本
"
>
<
template
slot-scope=
"scope"
>
<el-form-item
class=
"edit-form-item-table-children"
required
...
...
@@ -975,7 +976,7 @@ export default {
usableArea
:
""
,
parkingCount
:
""
,
operationSubjectClass
:
null
,
operationSubjectId
:
""
,
operationSubjectId
:
null
,
monthlyRent
:
""
,
rentUnitPrice
:
""
,
decorationTotalCost
:
""
,
...
...
@@ -1338,17 +1339,31 @@ export default {
// this.formData = copyResult
this
.
assignDeep
(
this
.
formData
,
copyResult
,
[
'createdBy'
,
'createdDate'
,
'updatedBy'
,
'updatedDate'
,
'deletedFlag'
])
console
.
log
(
'this.assignDeep:this.formData'
,
this
.
formData
)
// 提取当前可用选项中的所有 directorUserId,转为 Set 便于查找
const
validIds
=
new
Set
(
this
.
baseData
.
bizResponsibleListOpt
.
map
(
item
=>
item
.
directorUserId
)
)
console
.
log
(
'validIds'
,
validIds
)
if
(
this
.
formData
.
bizResponsibleList
&&
this
.
formData
.
bizResponsibleList
.
length
>
0
)
{
this
.
formData
.
bizResponsibleList
=
this
.
formData
.
bizResponsibleList
.
map
(
item
=>
{
return
Number
(
item
.
directorUserId
)
})
}
// 过滤掉不在有效选项中的已选值
this
.
formData
.
bizResponsibleList
=
this
.
formData
.
bizResponsibleList
.
filter
(
id
=>
validIds
.
has
(
id
)
)
console
.
log
(
'this.formData.bizResponsibleList'
,
this
.
formData
.
bizResponsibleList
)
if
(
this
.
formData
.
operationResponsibleList
&&
this
.
formData
.
operationResponsibleList
.
length
>
0
)
{
this
.
formData
.
operationResponsibleList
=
this
.
formData
.
operationResponsibleList
.
map
(
item
=>
{
return
Number
(
item
.
directorUserId
)
})
}
// 过滤掉不在有效选项中的已选值
this
.
formData
.
operationResponsibleList
=
this
.
formData
.
operationResponsibleList
.
filter
(
id
=>
validIds
.
has
(
id
)
)
console
.
log
(
'this.formData.operationResponsibleList'
,
this
.
formData
.
operationResponsibleList
)
if
(
!
this
.
formData
.
solarFilmInfo
)
{
this
.
formData
.
solarFilmInfo
=
{
...
...
@@ -1425,6 +1440,9 @@ export default {
this
.
compute_rentUnitPrice
()
}
else
if
([
'decorationTotalCost'
].
includes
(
field
))
{
this
.
compute_decorationUnitPrice
()
}
else
if
([
'usableArea'
].
includes
(
field
))
{
this
.
compute_rentUnitPrice
()
this
.
compute_decorationUnitPrice
()
}
},
// 工具函数:获取嵌套字段值
...
...
@@ -1482,13 +1500,21 @@ export default {
// 计算租金单价(场地月租金/使用面积)
compute_rentUnitPrice
()
{
if
(
this
.
formData
.
monthlyRent
&&
this
.
formData
.
usableArea
)
{
this
.
formData
.
rentUnitPrice
=
precision
.
divide
(
this
.
formData
.
monthlyRent
,
this
.
formData
.
usableArea
).
toFixed
(
2
)
if
(
this
.
formData
.
usableArea
==
0
)
{
this
.
formData
.
rentUnitPrice
=
0
}
else
{
this
.
formData
.
rentUnitPrice
=
precision
.
divide
(
this
.
formData
.
monthlyRent
,
this
.
formData
.
usableArea
).
toFixed
(
2
)
}
}
},
// 计算装修单价(装修总费用/使用面积)
compute_decorationUnitPrice
()
{
if
(
this
.
formData
.
decorationTotalCost
&&
this
.
formData
.
usableArea
)
{
this
.
formData
.
decorationUnitPrice
=
precision
.
divide
(
this
.
formData
.
decorationTotalCost
,
this
.
formData
.
usableArea
).
toFixed
(
2
)
if
(
this
.
formData
.
usableArea
==
0
)
{
this
.
formData
.
decorationUnitPrice
=
0
}
else
{
this
.
formData
.
decorationUnitPrice
=
precision
.
divide
(
this
.
formData
.
decorationTotalCost
,
this
.
formData
.
usableArea
).
toFixed
(
2
)
}
}
},
// 控制输入-当前信息量
...
...
@@ -1550,6 +1576,10 @@ export default {
// 添加一行
addRow
(
obj
)
{
if
(
this
.
formData
[
obj
].
serviceDetailsList
.
length
>=
5
)
{
this
.
$message
.
warning
(
'最多添加5行'
)
return
}
const
serviceItem
=
{
serviceType
:
this
.
formData
[
obj
].
serviceType
,
serviceUndertakeType
:
null
,
...
...
@@ -1627,24 +1657,25 @@ export default {
this
.
formData
[
obj
].
serviceDetailsList
.
splice
(
index
,
1
)
},
submitValidate
()
{
let
validFlag
=
true
let
editFromValid
=
true
this
.
$refs
.
editFrom
.
validate
((
valid
)
=>
{
console
.
log
(
"editFrom.valid"
,
valid
)
validFlag
=
valid
editFromValid
=
valid
})
let
editFrom2Valid
=
true
this
.
$refs
.
editFrom2
.
validate
((
valid
)
=>
{
console
.
log
(
"editFrom2.valid"
,
valid
)
validFlag
=
valid
editFrom2Valid
=
valid
})
console
.
log
(
"
validFlag"
,
validFlag
)
return
validFlag
console
.
log
(
"
editFromValid&&editFrom2Valid"
,
editFromValid
&&
editFrom2Valid
)
return
editFromValid
&&
editFrom2Valid
},
handleConfirm
()
{
const
validFlag
=
this
.
submitValidate
()
if
(
validFlag
)
{
console
.
log
(
'formData'
,
this
.
formData
)
this
.
$confirm
(
"提交后,后续基
本
当前园区店进行上架的门店将应用对应的信息;是否确定提交?"
,
"提交后,后续基
于
当前园区店进行上架的门店将应用对应的信息;是否确定提交?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
...
...
@@ -1747,30 +1778,23 @@ export default {
.edit-form-item-table
{
width
:
90%
!important
;
::v-deep
.is-error
{
margin-bottom
:
20px
;
display
:
flex
;
justify-content
:
center
;
/* 水平居中 */
align-items
:
center
;
}
}
.edit-form-item-table-children
{
width
:
100%
!important
;
}
/* 确保错误提示可见 */
:deep
(
.edit-form-item-table
.el-form-item__error
)
{
z-index
:
9999
!important
;
white-space
:
nowrap
!important
;
background
:
#fff
;
padding
:
4px
8px
;
border
:
1px
solid
#f56c6c
;
box-shadow
:
0
2px
8px
rgba
(
0
,
0
,
0
,
0.15
);
}
:deep
(
.edit-form-item-table
td
)
{
overflow
:
visible
!important
;
position
:
relative
!important
;
}
.w-150-per
{
//
width
:
150px
;
.el-input__inner
{
padding
:
0
10px
;
.goodFrom
{
/* 处理字数统计遮挡输入框文字的问题 */
::v-deep
.w-150-per
.el-input__inner
{
padding-right
:
60px
!important
;
/* 默认是 30px,增加到 60px */
}
}
</
style
>
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