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 a5b91cca
authored
Dec 09, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
54f270ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
src/views/serviceConfig/components/ServicesTable/index.vue
src/views/serviceConfig/index.vue
src/views/serviceConfig/components/ServicesTable/index.vue
View file @
a5b91cc
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<td><el-switch
v-model=
"item.computeFlag"
:active-value=
"0"
@
change=
"changeComputeFlag($event, item, index)"
:inactive-value=
"1"
:disabled=
"disabled"
></el-switch></td>
<td><el-switch
v-model=
"item.computeFlag"
:active-value=
"0"
@
change=
"changeComputeFlag($event, item, index)"
:inactive-value=
"1"
:disabled=
"disabled"
></el-switch></td>
<td>
<td>
<span
v-if=
"item.computeFlag == 1"
>
-
</span>
<span
v-if=
"item.computeFlag == 1"
>
-
</span>
<el-input
v-else
:placeholder=
"placeholder"
@
input=
"changePrice($event, item, 'priceCoefficient', index)"
:disabled=
"disabled"
v-model=
"item.priceCoefficient"
></el-input>
<el-input
v-else
:placeholder=
"placeholder"
@
input=
"changePrice($event, item, 'priceCoefficient', index)"
:disabled=
"disabled"
v-model=
"item.priceCoefficient"
@
blur=
"formatPrice($event, item, 'priceCoefficient', 100)"
></el-input>
</td>
</td>
<
template
v-for=
"(ele, eIdx) in tableData.salePeriodData"
>
<
template
v-for=
"(ele, eIdx) in tableData.salePeriodData"
>
<template
v-if=
"item.computeFlag == 0"
>
<template
v-if=
"item.computeFlag == 0"
>
...
@@ -60,10 +60,10 @@
...
@@ -60,10 +60,10 @@
<td
class=
"del-btn"
><span
v-if=
"index > 2 && !disabled"
class=
"btn"
@
click=
"delSection(index)"
>
删除
</span></td>
<td
class=
"del-btn"
><span
v-if=
"index > 2 && !disabled"
class=
"btn"
@
click=
"delSection(index)"
>
删除
</span></td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"add-btn"
:colspan=
"tableData.salePeriodData.length * 2 +
3
"
><span
v-if=
"!disabled"
class=
"btn"
@
click=
"addSection"
>
新增价格区间
</span></td>
<td
class=
"add-btn"
:colspan=
"tableData.salePeriodData.length * 2 +
4
"
><span
v-if=
"!disabled"
class=
"btn"
@
click=
"addSection"
>
新增价格区间
</span></td>
</tr>
</tr>
<tr
class=
"desc-wrap"
>
<tr
class=
"desc-wrap"
>
<td
class=
"desc-td"
:colspan=
"tableData.salePeriodData.length * 2 +
4
"
>
<td
class=
"desc-td"
:colspan=
"tableData.salePeriodData.length * 2 +
5
"
>
<div
class=
"desc"
>
<div
class=
"desc"
>
<label
for=
""
>
服务条款概述:
</label>
<label
for=
""
>
服务条款概述:
</label>
<Editor
:disabled=
"disabled"
:hasTool=
"false"
:editorOption=
"overviewOption"
v-model=
"tableData.serviceOverview"
></Editor>
<Editor
:disabled=
"disabled"
:hasTool=
"false"
:editorOption=
"overviewOption"
v-model=
"tableData.serviceOverview"
></Editor>
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
</td>
</td>
</tr>
</tr>
<tr
class=
"desc-wrap"
>
<tr
class=
"desc-wrap"
>
<td
class=
"desc-td"
:colspan=
"tableData.salePeriodData.length * 2 +
4
"
>
<td
class=
"desc-td"
:colspan=
"tableData.salePeriodData.length * 2 +
5
"
>
<div
class=
"desc"
>
<div
class=
"desc"
>
<label
for=
""
>
规格详细描述:
</label>
<label
for=
""
>
规格详细描述:
</label>
<Editor
:disabled=
"disabled"
:hasTool=
"false"
:editorOption=
"DetailOption"
v-model=
"tableData.serviceDetail"
></Editor>
<Editor
:disabled=
"disabled"
:hasTool=
"false"
:editorOption=
"DetailOption"
v-model=
"tableData.serviceDetail"
></Editor>
...
...
src/views/serviceConfig/index.vue
View file @
a5b91cc
...
@@ -279,8 +279,10 @@ export default {
...
@@ -279,8 +279,10 @@ export default {
serviceCode
:
row
.
serviceCode
serviceCode
:
row
.
serviceCode
}
}
this
.
$apis
.
serviceConfig
.
getServiceRecordApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
serviceConfig
.
getServiceRecordApi
(
params
).
then
(
res
=>
{
const
spaces
=
" "
.
repeat
(
3
)
res
?.
list
?.
forEach
(
val
=>
{
res
?.
list
?.
forEach
(
val
=>
{
val
.
createdDateStr
=
dayjs
(
val
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
val
.
createdDateStr
=
`
${
val
.
createdBy
}${
spaces
}${
dayjs
(
val
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)}
`
val
.
content
=
`规格
${
val
.
serviceGrade
}
,服务年限
${
val
.
servicePeriod
}
年,`
val
.
content
=
`规格
${
val
.
serviceGrade
}
,服务年限
${
val
.
servicePeriod
}
年,`
let
childContent
=
''
let
childContent
=
''
val
?.
detailList
?.
forEach
((
v
,
index
)
=>
{
val
?.
detailList
?.
forEach
((
v
,
index
)
=>
{
...
...
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