Commit a5b91cca by zhangxw

bug修复

1 parent 54f270ea
......@@ -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>
<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>
<template v-for="(ele, eIdx) in tableData.salePeriodData">
<template v-if="item.computeFlag == 0">
......@@ -60,10 +60,10 @@
<td class="del-btn"><span v-if="index > 2 && !disabled" class="btn" @click="delSection(index)">删除</span></td>
</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 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">
<label for="">服务条款概述:</label>
<Editor :disabled="disabled" :hasTool="false" :editorOption="overviewOption" v-model="tableData.serviceOverview"></Editor>
......@@ -71,7 +71,7 @@
</td>
</tr>
<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">
<label for="">规格详细描述:</label>
<Editor :disabled="disabled" :hasTool="false" :editorOption="DetailOption" v-model="tableData.serviceDetail"></Editor>
......
......@@ -279,8 +279,10 @@ export default {
serviceCode: row.serviceCode
}
this.$apis.serviceConfig.getServiceRecordApi(params).then(res => {
const spaces = " ".repeat(3)
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}年,`
let childContent = ''
val?.detailList?.forEach((v, index) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!