Commit 84149dbe by wangzhihui

Merge branch 'SAAS+V5.3.0-1117' of http://192.168.3.233:8090/saas_plus/dj-car-li…

…fe-system into SAAS+V5.3.0-1117
2 parents 5500e96e 40cd4de6
...@@ -262,7 +262,7 @@ export default { ...@@ -262,7 +262,7 @@ export default {
} }
.d2-search .el-form-item { .d2-search .el-form-item {
width: 80%; width: 94%;
} }
.d2-search .no-label.el-form-item--small .el-form-item__content, .d2-search .no-label.el-form-item--small .el-form-item__content,
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<div style="margin-top: 32px; text-align: center"> <div style="margin-top: 20px; text-align: center">
<el-button type="primary" class="width_100" @click="checkValidData(1)" <el-button type="primary" class="width_100" @click="checkValidData(1)"
>提交</el-button >提交</el-button
> >
...@@ -200,7 +200,12 @@ export default { ...@@ -200,7 +200,12 @@ export default {
}, },
rules: { rules: {
name: [ name: [
{ required: true, message: "请输入活动名称", trigger: "change" } { required: true, message: "请输入活动名称", trigger: "change" },
{
pattern: /^[a-zA-Z0-9\u4e00-\u9fa5_()()]*$/,
message: "活动名称只能包含中文、英文、数字、下划线、括号",
trigger: "change"
}
], ],
sceneType: [ sceneType: [
{ required: true, message: "请选择业务类型", trigger: "change" } { required: true, message: "请选择业务类型", trigger: "change" }
......
...@@ -9,8 +9,20 @@ ...@@ -9,8 +9,20 @@
<template v-for="(item, index) in contentListData"> <template v-for="(item, index) in contentListData">
<div class="cell align-items" v-if="item.show(formData)" :key="index"> <div class="cell align-items" v-if="item.show(formData)" :key="index">
<div class="label">{{ item.label }}</div> <div class="label">{{ item.label }}</div>
<div v-if="item.type == 'text'" class="value two-line-ellipsis-ok"> <div
{{ formData[item.prop] || "--" }} v-if="item.type == 'text'"
class="value two-line-ellipsis-ok online-status"
>
<span
class="dot"
v-if="item.prop == 'statusDesc'"
:style="{
background: ACTIVITY_STATUS_OPTIONS.find(
(item) => item.id == formData.status
).backgroundColor
}"
></span
>{{ formData[item.prop] || "--" }}
</div> </div>
</div> </div>
</template> </template>
...@@ -25,7 +37,15 @@ ...@@ -25,7 +37,15 @@
<div class="label">评选规则:</div> <div class="label">评选规则:</div>
<div class="content"> <div class="content">
<div class="editList"> <div class="editList">
<div v-html="formData.selectionRule || '--'"></div> <!-- <div v-html="formData.selectionRule || '--'"></div> -->
<!-- 图文编辑器 -->
<textBox
ref="TextBox"
:exclude-menus="['code', 'video']"
@change="(e) => handleTextBoxChange(e)"
@focus="handleTextBoxFocus"
:box-height="240"
></textBox>
</div> </div>
</div> </div>
</div> </div>
...@@ -109,11 +129,17 @@ ...@@ -109,11 +129,17 @@
<script> <script>
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import { ACTIVITY_STATUS_OPTIONS } from "../constant"
import textBox from "@/components/glsx-combi-form/textBox"
export default { export default {
name: "ActivityDetails", name: "ActivityDetails",
mixins: [reportTrackPageMixin], mixins: [reportTrackPageMixin],
components: {
textBox
},
data() { data() {
return { return {
ACTIVITY_STATUS_OPTIONS,
noDataImg: require("@/assets/empty-5.png"), noDataImg: require("@/assets/empty-5.png"),
contentListData: [ contentListData: [
{ {
...@@ -127,7 +153,7 @@ export default { ...@@ -127,7 +153,7 @@ export default {
{ {
label: "活动状态:", label: "活动状态:",
type: "text", type: "text",
prop: "status", prop: "statusDesc",
show() { show() {
return true return true
} }
...@@ -183,7 +209,9 @@ export default { ...@@ -183,7 +209,9 @@ export default {
console.log(info) console.log(info)
this.formData = info this.formData = info
this.activeName = this.formData.activityCycleResponses[0].id this.activeName = this.formData.activityCycleResponses
? this.formData.activityCycleResponses[0].id
: ""
console.log(this.formData) console.log(this.formData)
}, },
...@@ -212,6 +240,9 @@ export default { ...@@ -212,6 +240,9 @@ export default {
} }
] ]
this.actionSetDownloadList({ list, type: "dowloadList" }) this.actionSetDownloadList({ list, type: "dowloadList" })
},
handleTextBoxFocus() {
this.$refs.TextBox.setEdit(this.formData.selectionRule)
} }
} }
} }
...@@ -330,11 +361,7 @@ export default { ...@@ -330,11 +361,7 @@ export default {
width: 580px; width: 580px;
height: 240px; height: 240px;
border-radius: 4px; border-radius: 4px;
opacity: 1;
border: 1px solid #e5e5e5;
background: #f5f7fa;
overflow-y: scroll;
padding: 10px;
box-sizing: border-box; box-sizing: border-box;
} }
} }
...@@ -627,4 +654,15 @@ export default { ...@@ -627,4 +654,15 @@ export default {
display: flex !important; display: flex !important;
justify-content: center; justify-content: center;
} }
.online-status {
display: flex;
align-items: center;
.dot {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
}
</style> </style>
...@@ -8,6 +8,19 @@ ...@@ -8,6 +8,19 @@
:label-width="'100px'" :label-width="'100px'"
:form-data="showFormData" :form-data="showFormData"
> >
<template slot="searchdate">
<el-date-picker
size="mini"
v-model="searchForm.searchdate"
type="datetimerange"
range-separator="至"
format="yyyy-MM-dd HH:mm"
value-format="yyyy-MM-dd HH:mm"
start-placeholder="开始时间"
end-placeholder="结束时间"
:picker-options="rangePickertwoMonthOptions"
/>
</template>
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch"> <el-button size="small" type="primary" @click="handleSearch">
...@@ -117,7 +130,7 @@ ...@@ -117,7 +130,7 @@
label-width="120px" label-width="120px"
> >
<el-form-item label="评选周期:" prop="currentPeriod"> <el-form-item label="评选周期:" prop="currentPeriod">
<div style="margin-bottom: 10px"> <div style="margin-bottom: 6px">
<el-select <el-select
v-model="fileForm.currentPeriod" v-model="fileForm.currentPeriod"
placeholder="请选择" placeholder="请选择"
...@@ -129,45 +142,107 @@ ...@@ -129,45 +142,107 @@
:label="item.cycleName" :label="item.cycleName"
:value="item.id" :value="item.id"
> >
<div class="flex-option" v-if="item.partitionFlag == 1">
<el-input
v-show="editOptionIndex == subIndex"
:maxlength="10"
class="add-option-input"
:autofocus="true"
@click.stop.native="editOptionFocus"
v-model.trim="editOptionValue"
size="small"
placeholder="请输入"
/>
<span
v-show="
editOptionIndex == -1 || editOptionIndex != subIndex
"
class="add-option-input"
>{{ subItem[item.optionLabel] }}</span
>
<div>
<i
v-show="
item.optionList.length > 1 &&
editOptionIndex != subIndex
"
class="el-icon-edit edit_icon"
@click.stop="
editOption(
subIndex,
subItem[item.optionLabel],
item.partitionFlag
)
"
/>
<i
v-show="
item.optionList.length > 1 &&
editOptionIndex == subIndex
"
class="el-icon-check option_icon add_icon"
@click.stop="
editOptionConfirm(
subItem[item.optionId],
index,
item.partitionFlag
)
"
/>
<i
v-if="item.optionList.length > 1"
class="el-icon-close del_icon"
@click.stop="
delOption(
subItem[item.optionId],
index,
item.partitionFlag,
item
)
"
/>
</div>
</div>
</el-option> </el-option>
<div class="add-option">
<div v-if="addPeriodFlag" class="flex-option">
<el-input
placeholder="请输入"
v-model="cycleName"
maxlength="10"
style="
width: 432px;
height: 32px;
display: inline-block;
margin-right: 10px;
border-radius: 4px;
"
></el-input>
<div>
<i
v-if="cycleName"
class="el-icon-check option_icon add_icon"
@click="addPeriod"
/>
<i
class="el-icon-close option_icon del_icon"
@click="addPeriodFlag = false"
/>
</div>
</div>
<div style="display: flex; align-items: center">
<i
class="el-icon-circle-plus-outline"
style="color: #2a58ad; font-size: 20px; margin-right: 3px"
/>
<el-button type="text" @click.stop="addNew"
>新增一项</el-button
>
</div>
</div>
</el-select> </el-select>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="">
<div class="add-box flex" v-if="addPeriodFlag">
<el-input
placeholder="请输入"
v-model="cycleName"
maxlength="10"
style="
width: 432px;
height: 32px;
display: inline-block;
margin-right: 10px;
border-radius: 4px;
"
></el-input>
<el-button type="text" size="small" @click="addPeriod">
确认
</el-button>
<el-button
type="text"
size="small"
@click="addPeriodFlag = false"
>
取消
</el-button>
</div>
<el-button
v-if="!addPeriodFlag"
type="text"
size="small"
icon="el-icon-circle-plus-outline"
@click="addPeriodFlag = true"
>
新增周期
</el-button>
</el-form-item>
<el-form-item label="获奖名单:" prop="fileName"> <el-form-item label="获奖名单:" prop="fileName">
<div> <div>
...@@ -213,7 +288,7 @@ ...@@ -213,7 +288,7 @@
:key="item" :key="item"
v-if="index < 3" v-if="index < 3"
> >
{{ index + 1 }} {{ item }} {{ index + 1 }}. {{ item }}
</div> </div>
<div v-if="fileForm.errors.length > 3" style="color: #909399"> <div v-if="fileForm.errors.length > 3" style="color: #909399">
... ...
...@@ -247,6 +322,7 @@ import { ...@@ -247,6 +322,7 @@ import {
addActivityCycle, addActivityCycle,
importWinner importWinner
} from "@api/contentManager" } from "@api/contentManager"
import { rangePickertwoMonthOptions } from "@/common/format"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin" import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import dayjs from "dayjs" import dayjs from "dayjs"
...@@ -256,6 +332,7 @@ export default { ...@@ -256,6 +332,7 @@ export default {
mixins: [reportTrackPageMixin], mixins: [reportTrackPageMixin],
data() { data() {
return { return {
rangePickertwoMonthOptions,
ACTIVITY_STATUS_OPTIONS, ACTIVITY_STATUS_OPTIONS,
dayjs: dayjs, dayjs: dayjs,
fileVisible: false, fileVisible: false,
...@@ -283,7 +360,7 @@ export default { ...@@ -283,7 +360,7 @@ export default {
searchForm: { searchForm: {
name: "", name: "",
status: "", status: "",
searchdate: [new Date(), new Date()] searchdate: []
}, },
periodList: [], periodList: [],
searchFormSearch: {}, searchFormSearch: {},
...@@ -324,10 +401,7 @@ export default { ...@@ -324,10 +401,7 @@ export default {
{ {
label: "活动时间", label: "活动时间",
name: "searchdate", name: "searchdate",
type: "datePicker", addHtml: "searchdate"
dateType: "datetimerange",
isClear: false,
pickerOptions: "rangePickertwoMonthOptions"
} }
], ],
getListApi: getActivityPage, getListApi: getActivityPage,
...@@ -360,9 +434,9 @@ export default { ...@@ -360,9 +434,9 @@ export default {
label: "活动时间", label: "活动时间",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.startTime return cellValue.startTime
? Util.dateFormate(cellValue.startTime, "YYYY-MM-DD HH:mm:ss") + ? Util.dateFormate(cellValue.startTime, "YYYY-MM-DD HH:mm") +
" 至 " + " 至 " +
Util.dateFormate(cellValue.endTime, "YYYY-MM-DD HH:mm:ss") Util.dateFormate(cellValue.endTime, "YYYY-MM-DD HH:mm")
: "-" : "-"
}, },
minWidth: 180 minWidth: 180
...@@ -415,6 +489,8 @@ export default { ...@@ -415,6 +489,8 @@ export default {
}, },
handleReset() { handleReset() {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm
this.page = this.$options.data.call(this).page
this.$refs.table.refreshTable(true, true)
}, },
jumpAdd() { jumpAdd() {
this.$router.push({ this.$router.push({
...@@ -439,7 +515,8 @@ export default { ...@@ -439,7 +515,8 @@ export default {
}, },
async handleAccountConfirm(row) { async handleAccountConfirm(row) {
// this.fileForm = {} // this.fileForm = {}
this.cycleName = ""
this.addPeriodFlag = false
this.currentRow = row this.currentRow = row
await this.activityCyclePage() await this.activityCyclePage()
this.fileVisible = true this.fileVisible = true
...@@ -457,6 +534,7 @@ export default { ...@@ -457,6 +534,7 @@ export default {
cycleName: this.cycleName cycleName: this.cycleName
}).then(async (res) => { }).then(async (res) => {
this.addPeriodFlag = false this.addPeriodFlag = false
this.notice.okTips() this.notice.okTips()
await this.activityCyclePage() await this.activityCyclePage()
// this.fileForm.currentPeriod = this.periodList[0].id // this.fileForm.currentPeriod = this.periodList[0].id
...@@ -558,6 +636,10 @@ export default { ...@@ -558,6 +636,10 @@ export default {
}, },
exportError(errorFileUrl) { exportError(errorFileUrl) {
errorFileUrl && window.open(errorFileUrl) errorFileUrl && window.open(errorFileUrl)
},
addNew() {
this.cycleName = ""
this.addPeriodFlag = true
} }
} }
} }
...@@ -711,4 +793,36 @@ export default { ...@@ -711,4 +793,36 @@ export default {
::v-deep .el-dialog__header { ::v-deep .el-dialog__header {
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
} }
.flex-option {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.add-option {
padding: 0 20px;
display: flex;
flex-flow: column;
align-items: flex-start;
}
.add-option-input {
width: 285px !important;
display: inline-block;
}
.add-option-input .el-input__inner {
border: none;
padding: 0;
}
.option_icon {
font-size: 14px;
cursor: pointer;
}
.del_icon {
margin-left: 15px;
color: #eb4e4e;
}
.add_icon {
color: #3fcf77;
}
</style> </style>
...@@ -194,11 +194,11 @@ export default { ...@@ -194,11 +194,11 @@ export default {
label: "待审核" label: "待审核"
}, },
{ {
id: 2, id: 1,
label: "已通过" label: "已通过"
}, },
{ {
id: 1, id: 2,
label: "已驳回" label: "已驳回"
} }
], ],
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
minWidth: 180 minWidth: 180
}, },
{ {
label: "创建时间", label: "创建日期",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.reportDate return cellValue.reportDate
? Util.dateFormate(cellValue.reportDate, "YYYY-MM-DD") ? Util.dateFormate(cellValue.reportDate, "YYYY-MM-DD")
...@@ -337,6 +337,7 @@ export default { ...@@ -337,6 +337,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.onPageShow()
this.getOptionsList() this.getOptionsList()
}, },
methods: { methods: {
...@@ -464,6 +465,8 @@ export default { ...@@ -464,6 +465,8 @@ export default {
}, },
handleReset() { handleReset() {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm
this.page = this.$options.data.call(this).page
this.$refs.table.refreshTable(true, true)
}, },
examineDialogClose() { examineDialogClose() {
this.examineVisible = false this.examineVisible = false
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
prop: 'amt', prop: 'amt',
minWidth: 120, minWidth: 120,
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.amt != null ? `¥${cellValue.amt}` : "-" return cellValue.amt != null ? `¥${this.addZero(cellValue.amt, false)}` : "-"
} }
}, },
{ {
...@@ -209,10 +209,15 @@ export default { ...@@ -209,10 +209,15 @@ export default {
}, },
dataProcess (info) { dataProcess (info) {
if (info) { if (info) {
info.usageLimitText = info.usageLimit != null ? `${info.usageLimit.toLocaleString()}元` : '-' info.usageLimitText = info.usageLimit != null ? `${this.addZero(info.usageLimit)}元` : '-'
info.usedAmountText = info.usedAmount != null ? `${info.usedAmount.toLocaleString()}元` : '-' info.usedAmountText = info.usedAmount != null ? `${this.addZero(info.usedAmount)}元` : '-'
} }
}, },
addZero (num, hasThousands = true) {
let numStr = parseFloat(num).toFixed(2)
if (hasThousands) numStr = numStr.replace(/\B(?=(\d{3})+(?!\d))/g, ',')
return numStr
},
beforeSearchFn () { beforeSearchFn () {
return new Promise((resolve) => { return new Promise((resolve) => {
this.searchFormSearch = { this.searchFormSearch = {
...@@ -327,7 +332,7 @@ export default { ...@@ -327,7 +332,7 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
::v-deep .el-form-item__content { ::v-deep .el-form-item__content {
max-width: calc(100% - 110px); max-width: calc(100% - 150px);
word-break: break-all; word-break: break-all;
} }
.itemDiv { .itemDiv {
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
</div> </div>
<div class="form"> <div class="form">
<div class="tips"> <div class="tips">
每次“新增使用额度”都会重置上次限额,且上次未使用额度不会延续叠加使用(仅当期有效); 每次“新增使用额度”都会重置上次限额,且上次未使用额度不会延续叠加使用(仅当期有效);<br>
预警通知触发条件:当额度使用率达到70%、80%、90%、95%时,各触发一次预警; 预警通知触发条件:当额度使用率达到70%、80%、90%、95%时,各触发一次预警;<br>
“使用额度”仅控制二手车业务自动付款,超过当期额度后无法自动付款。 “使用额度”仅控制二手车业务自动付款,超过当期额度后无法自动付款。
</div> </div>
<el-form <el-form
...@@ -123,6 +123,7 @@ export default { ...@@ -123,6 +123,7 @@ export default {
{ required: true, message: "请填写当期使用额度", trigger: "blur" } { required: true, message: "请填写当期使用额度", trigger: "blur" }
], ],
warningEmail: [{ warningEmail: [{
required: true,
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
if (!value) { if (!value) {
return callback(new Error(`请填写预警通知邮箱`)) return callback(new Error(`请填写预警通知邮箱`))
......
...@@ -21,34 +21,6 @@ ...@@ -21,34 +21,6 @@
inputMaxLength="15" inputMaxLength="15"
></input-range> ></input-range>
</template> </template>
<template #selectDatePickerHtml>
<div class="select-date-picker">
<el-select
v-model="searchForm.dateType"
placeholder="请选择"
@change="searchForm.dateValue = ''"
class="select"
>
<el-option
v-for="(subItem, subIndex) in selectOption"
:key="subIndex"
:label="subItem.label"
:value="subItem.value"
/>
</el-select>
<el-date-picker
class="date-picker"
v-model="searchForm.dateValue"
type="datetimerange"
clearable
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="rangePickerOptions"
:default-time="['00:00:00', '23:59:59']"
/>
</div>
</template>
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button <el-button
...@@ -219,7 +191,7 @@ export default { ...@@ -219,7 +191,7 @@ export default {
prop: "usageLimit", prop: "usageLimit",
minWidth: 120, minWidth: 120,
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.usageLimit != null ? `¥${cellValue.usageLimit}` : "-" return cellValue.usageLimit != null ? `¥${this.addZero(cellValue.usageLimit)}` : "-"
} }
}, },
{ {
...@@ -227,7 +199,7 @@ export default { ...@@ -227,7 +199,7 @@ export default {
prop: "usageLimit", prop: "usageLimit",
minWidth: 120, minWidth: 120,
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.usedAmount != null ? `¥${cellValue.usedAmount}` : "-" return cellValue.usedAmount != null ? `¥${this.addZero(cellValue.usedAmount)}` : "-"
} }
}, },
{ {
...@@ -367,7 +339,11 @@ export default { ...@@ -367,7 +339,11 @@ export default {
addUsageLimitSuccess () { addUsageLimitSuccess () {
this.usageLimitDialogVisible = false this.usageLimitDialogVisible = false
this.$refs.usedCarFundWarningManageTable.refreshTable(true, true) this.$refs.usedCarFundWarningManageTable.refreshTable(true, true)
} },
addZero (num) {
let numStr = parseFloat(num).toFixed(2)
return numStr
},
} }
} }
</script> </script>
......
...@@ -266,7 +266,7 @@ export default { ...@@ -266,7 +266,7 @@ export default {
info.pushStatusText = PUSH_STATUS[info.pushStatus] info.pushStatusText = PUSH_STATUS[info.pushStatus]
info.nbTransferStatusText = NB_TRANSFER_STATUS[info.nbTransferStatus] info.nbTransferStatusText = NB_TRANSFER_STATUS[info.nbTransferStatus]
info.receiptStatusText = RECEIPT_STATUS[info.receiptStatus] info.receiptStatusText = RECEIPT_STATUS[info.receiptStatus]
info.amtText = info.amt != null ? `${info.amt.toLocaleString()}元` : '-' info.amtText = info.amt != null ? `${this.addZero(info.amt)}元` : '-'
if (this.$refs.form) this.$refs.form.parentNode.scrollTop = 0 if (this.$refs.form) this.$refs.form.parentNode.scrollTop = 0
} }
}, },
...@@ -297,7 +297,13 @@ export default { ...@@ -297,7 +297,13 @@ export default {
handleReceipt (url) { handleReceipt (url) {
this.setReportTrackData(0, 'usedcar_payment_receipt', {}) this.setReportTrackData(0, 'usedcar_payment_receipt', {})
window.open(url) window.open(url)
} },
addZero (num, hasThousands = true) {
let numStr = parseFloat(num).toFixed(2)
if (hasThousands) numStr = numStr.replace(/\B(?=(\d{3})+(?!\d))/g, ',')
return numStr
},
} }
} }
</script> </script>
......
...@@ -364,7 +364,7 @@ export default { ...@@ -364,7 +364,7 @@ export default {
minWidth: 120, minWidth: 120,
prop: "amt", prop: "amt",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.amt != null ? `¥${cellValue.amt}` : "-" return cellValue.amt != null ? `¥${this.addZero(cellValue.amt)}` : "-"
} }
}, },
{ {
...@@ -609,7 +609,11 @@ export default { ...@@ -609,7 +609,11 @@ export default {
closeDetailDialog (obj) { closeDetailDialog (obj) {
this.detailDialogVisible = false this.detailDialogVisible = false
if (obj.flag) this.$refs.usedCarPaymentManageTable.refreshTable(true, true) if (obj.flag) this.$refs.usedCarPaymentManageTable.refreshTable(true, true)
} },
addZero (num) {
let numStr = parseFloat(num).toFixed(2)
return numStr
},
} }
} }
</script> </script>
......
...@@ -145,7 +145,7 @@ const FORM_DATA = [ ...@@ -145,7 +145,7 @@ const FORM_DATA = [
isClear: true isClear: true
}, },
{ {
label: "是否成交(安心包)", label: "安心包是否成交",
name: "orderAxbTransactionFlag", name: "orderAxbTransactionFlag",
type: "select", type: "select",
optionList: [], optionList: [],
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<d2-search <d2-search
ref="showSearch" ref="showSearch"
class="show-search" class="show-search"
label-width="130px" label-width="138px"
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData" :form-data="showFormData"
> >
......
...@@ -11,9 +11,10 @@ ...@@ -11,9 +11,10 @@
</div> </div>
</glsx-combi-form> </glsx-combi-form>
<div class="title">拜访记录</div> <div class="title">拜访记录</div>
<d2-table ref="recordTable" :table-data="detailInfo.visitRecordList" :table-params="tableParams" :has-page="hasPage"> <d2-table ref="detailTable" class="detailTable" :table-data="detailInfo.visitRecordList" :table-params="tableParams" :has-page="hasPage">
<!-- 调整表格的图片样式 -->
<div slot="visitPhotos" slot-scope="scope"> <div slot="visitPhotos" slot-scope="scope">
<glskPreview v-if="scope.scope[visitPhotos]" :image-url-arr="[scope.scope[visitPhotos]]" :pic-options="{ ...picOptions, type: 'image' }" limit="1"></glskPreview> <glskPreview v-if="scope.scope.visitPhotos" :image-url-arr="[scope.scope.visitPhotos]" :pic-options="{ ...picOptions, type: 'image' }" limit="1"></glskPreview>
<div v-else>-</div> <div v-else>-</div>
</div> </div>
</d2-table> </d2-table>
...@@ -289,7 +290,8 @@ export default { ...@@ -289,7 +290,8 @@ export default {
prop: 'contactPerson' prop: 'contactPerson'
}, { }, {
label: '拜访内容', label: '拜访内容',
prop: 'visitContent' prop: 'visitContent',
width: '300px'
}, { }, {
label: '拜访照片', label: '拜访照片',
prop: 'visitPhotos', prop: 'visitPhotos',
...@@ -372,6 +374,15 @@ export default { ...@@ -372,6 +374,15 @@ export default {
::v-deep .el-form-item--small .el-form-item__content { ::v-deep .el-form-item--small .el-form-item__content {
line-height: 20px; line-height: 20px;
} }
::v-deep .detailTable .activity-img-box {
justify-content: center;
}
::v-deep .detailTable .activity-img-box .pic-box {
margin: 0px;
}
::v-deep .detailTable .activity-img-box .pic-box .photo-activity {
position: relative;
}
.detail-info { .detail-info {
// display: flex; // display: flex;
// align-items: center; // align-items: center;
......
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
tableColumns: [{ tableColumns: [{
label: '创建时间', label: '创建时间',
prop: 'createdDate', prop: 'createdDate',
width: '150px' width: '80px'
}, { }, {
label: '门店名称', label: '门店名称',
prop: 'storeName', prop: 'storeName',
...@@ -237,11 +237,11 @@ export default { ...@@ -237,11 +237,11 @@ export default {
}, { }, {
label: '签约时间', label: '签约时间',
prop: 'signedTime', prop: 'signedTime',
width: '150px' width: '128px'
}, { }, {
label: '展业时间', label: '展业时间',
prop: 'expectedOperationDate', prop: 'expectedOperationDate',
width: '150px' width: '128px'
}, { }, {
label: '分润规则', label: '分润规则',
prop: 'profitRule', prop: 'profitRule',
......
...@@ -4,6 +4,15 @@ ...@@ -4,6 +4,15 @@
<d2-container> <d2-container>
<div class="d2-container-content" style="margin-top: 0;"> <div class="d2-container-content" style="margin-top: 0;">
<d2-table ref="organizeTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn"> <d2-table ref="organizeTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn">
<div slot="userList" slot-scope="scope">
<el-tooltip v-if="scope.scope.userList && scope.scope.userList.length" effect="dark" placement="top">
<div slot="content" class="tooltip-content-max">
<div>{{ scope.columnsObj.formatter(scope.scope) }}</div>
</div>
<span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span>
</el-tooltip>
<div v-else>-</div>
</div>
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
...@@ -40,6 +49,7 @@ export default { ...@@ -40,6 +49,7 @@ export default {
}, { }, {
label: '销售人员', label: '销售人员',
prop: 'userList', prop: 'userList',
addHtml: 'userList',
formatter: (cellValue) => { formatter: (cellValue) => {
// 人员类型(1.大区经理,2.销售人员) // 人员类型(1.大区经理,2.销售人员)
return (cellValue.userList && cellValue.userList.length) ? cellValue.userList.filter(item => item.userType == 2).map(item => item.userName).join(',') || '-' : '-' return (cellValue.userList && cellValue.userList.length) ? cellValue.userList.filter(item => item.userType == 2).map(item => item.userName).join(',') || '-' : '-'
...@@ -80,6 +90,10 @@ export default { ...@@ -80,6 +90,10 @@ export default {
</script> </script>
<style scoped> <style scoped>
.tooltip-content-max {
max-height: 320px;
overflow-y: scroll;
}
.count-txt { .count-txt {
font-weight: 700; font-weight: 700;
color: #2a58ad; color: #2a58ad;
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</span> --> </span> -->
<!-- <span class="form-sub">{{ systemSubName }}</span> --> <!-- <span class="form-sub">{{ systemSubName }}</span> -->
</div> </div>
<div class="form-login-title">账号密码登录</div> <div class="form-login-title">账户密码登录</div>
<div class="input-wrap"> <div class="input-wrap">
<el-form-item prop="userName"> <el-form-item prop="userName">
<el-input <el-input
...@@ -104,23 +104,28 @@ ...@@ -104,23 +104,28 @@
:key="index" :key="index"
@click.stop.prevent="handleSelectAccount(index)" @click.stop.prevent="handleSelectAccount(index)"
> >
<i class="muti-dot" /> <!-- <i class="muti-dot" /> -->
<div class="muti-merchant-info"> <div class="muti-merchant-info">
<p class="muti-merchant-name"> <div class="muti-merchant-box">
{{ item.merchantName }} <div class="muti-merchant-name">
</p> {{ item.merchantName }}
<p class="muti-merchant-code">
</div>
<div class="muti-merchant-level">
{{
baseData.accountLevelList.find(
(k) => +k.confId == item.accountLevel
).confName
}}
</div>
</div>
<div class="muti-merchant-code">
商户编号:{{ item.merchantNo }} 商户编号:{{ item.merchantNo }}
</p> </div>
</div> </div>
<p class="muti-merchant-level">
{{ <i class="muti-arrow el-icon-arrow-right" style="color: #333333;" />
baseData.accountLevelList.find(
(k) => +k.confId == item.accountLevel
).confName
}}
</p>
<i class="muti-arrow el-icon-arrow-right" />
</div> </div>
</div> </div>
</div> </div>
...@@ -443,15 +448,15 @@ export default { ...@@ -443,15 +448,15 @@ export default {
} }
&--muti-form { &--muti-form {
width: 556px; width: 420px;
height: 360px; height: 460px;
text-align: center; text-align: center;
margin: 20px auto; margin: 32px auto;
// overflow: scroll; // overflow: scroll;
.muti-title { .muti-title {
font-size: 24px; font-size: 24px;
color: #3a3a3a; color: #000;
letter-spacing: 1.2px; letter-spacing: 1.2px;
font-weight: 700; font-weight: 700;
margin-bottom: 30px; margin-bottom: 30px;
...@@ -459,7 +464,7 @@ export default { ...@@ -459,7 +464,7 @@ export default {
.muti-form-box { .muti-form-box {
width: 100%; width: 100%;
height: 299px; height: 350px;
overflow-y: scroll; overflow-y: scroll;
.muti-merchant-item { .muti-merchant-item {
...@@ -468,11 +473,12 @@ export default { ...@@ -468,11 +473,12 @@ export default {
height: 73px; height: 73px;
min-height: 73px; min-height: 73px;
background: #fafafa; background: #fafafa;
border-radius: 4px; border-radius: 8px;
display: flex; display: flex;
box-sizing: border-box; box-sizing: border-box;
padding: 20px 0 0 18px; padding: 12px 0 0 12px;
margin-top: 30px; // padding-left: 20px;
margin-top: 12px;
cursor: pointer; cursor: pointer;
p { p {
...@@ -490,36 +496,42 @@ export default { ...@@ -490,36 +496,42 @@ export default {
.muti-merchant-info { .muti-merchant-info {
text-align: left; text-align: left;
.muti-merchant-box {
display: flex;
align-items: center ;
}
.muti-merchant-name { .muti-merchant-name {
font-size: 16px; font-size: 16px;
color: #8d8d8d; color: #333333;
letter-spacing: 0; letter-spacing: 0;
font-weight: 500; font-weight: 500;
max-width: 392px; max-width: 288px;
word-wrap: break-word; overflow: hidden;
word-break: break-all; text-overflow: ellipsis;
white-space: nowrap;
} }
.muti-merchant-code { .muti-merchant-code {
font-size: 12px; font-size: 14px;
color: #adadad; color: #666666;
letter-spacing: 0; letter-spacing: 0;
font-weight: 500; // font-weight: 500;
margin-top: 6px; margin-top: 6px;
} }
} }
.muti-merchant-level { .muti-merchant-level {
border: 1px solid #5850ff; // border: 1px solid #5850ff;
background-color: rgba(42, 88, 173, 0.1);
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
color: #5f5efb; color: #2A58AD;
font-weight: 400; font-weight: 400;
padding: 1px 24px; padding: 0 12px;
width: 28px; // width: 28px;
height: 22px; height: 24px;
line-height: 22px; line-height: 24px;
margin: 0 0 0 10px; margin: 0 0 0 10px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!