Commit 0471cea9 by wangzhihui

优化

1 parent b1e75db0
...@@ -1555,17 +1555,14 @@ export const electronicContractTypeOpt = [ ...@@ -1555,17 +1555,14 @@ export const electronicContractTypeOpt = [
] ]
//合同流转状态 //合同流转状态
export const electronicContractStatusOpt = [ export const electronicContractStatusOpt = [
{ confId: "0", confValue: "合同创建" },
{ confId: "1", confValue: "合同签署中" }, { confId: "1", confValue: "合同签署中" },
{ confId: "2", confValue: "合同签署完成" }, { confId: "2", confValue: "合同签署完成" }
{ confId: "7", confValue: "合同拒签" },
{ confId: "3", confValue: "合同撤回" }
] ]
//付款状态 //付款状态
export const payStatusOpt = [ export const payStatusOpt = [
{ confId: "1", confValue: "定金支付" }, { confId: "1", confValue: "定金" },
{ confId: "2", confValue: "尾款支付" }, { confId: "2", confValue: "尾款" },
{ confId: "3", confValue: "全款支付" } { confId: "3", confValue: "全款" }
] ]
// 拆分支付 // 拆分支付
export const splitPayOpt = [ export const splitPayOpt = [
...@@ -1582,6 +1579,6 @@ export const oaFlowStatusOpt = [ ...@@ -1582,6 +1579,6 @@ export const oaFlowStatusOpt = [
//支付状态 //支付状态
export const oaFlowPaymentStatusOpt = [ export const oaFlowPaymentStatusOpt = [
{ confId: "1", confValue: "支付成功", color: "#2CCA74" }, { confId: "1", confValue: "支付成功", color: "#2CCA74" },
{ confId: "3", confValue: "支付中", color: "#FDB757" }, { confId: "2", confValue: "支付失败", color: "#EB4E4E" },
{ confId: "2", confValue: "支付失败", color: "#EB4E4E" } { confId: "3", confValue: "支付中", color: "#FDB757" }
] ]
...@@ -102,8 +102,8 @@ export default { ...@@ -102,8 +102,8 @@ export default {
callback(new Error("请输入有效数字")) callback(new Error("请输入有效数字"))
} else if (numValue <= 0) { } else if (numValue <= 0) {
callback(new Error("评估价必须大于0")) callback(new Error("评估价必须大于0"))
} else if (numValue > 99999999.99) { } else if (numValue > 9999999.99) {
callback(new Error("评估价必须小于99999999.99")) callback(new Error("评估价必须小于9999999.99"))
} else { } else {
callback() callback()
} }
...@@ -132,10 +132,20 @@ export default { ...@@ -132,10 +132,20 @@ export default {
}, },
methods: { methods: {
async confirm() { async confirm() {
const isValid = await this.$refs.editFormRef.$refs[ try {
this.editChildRef const formRef = this.$refs.editFormRef
].validate() if (!formRef || !formRef.$refs || !formRef.$refs[this.editChildRef]) {
return isValid console.error("Form reference not found")
return false
}
const isValid = await formRef.$refs[this.editChildRef].validate()
console.log(isValid, "isValid")
return isValid
} catch (error) {
console.error("Validation failed:", error)
return false
}
} }
} }
} }
......
...@@ -11,9 +11,12 @@ ...@@ -11,9 +11,12 @@
> >
<div class="time-box"> <div class="time-box">
<div class="createdBy"> <div class="createdBy">
{{ item.opType == 20 ? "驻店人员" : "总部定价师" }}:<span>{{ <div>
item.createdBy {{ item.opType == 20 ? "驻店人员" : "总部定价师" }}:<span>{{
}}</span> item.createdBy
}}</span>
</div>
<div class="time">{{ item.quoteTime }}</div>
</div> </div>
<!-- 评估师驳回 --> <!-- 评估师驳回 -->
<template v-if="item.opType == 30"> <template v-if="item.opType == 30">
...@@ -66,23 +69,33 @@ export default { ...@@ -66,23 +69,33 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.dynamics-wrapper { .dynamics-wrapper {
background: #fff; background: #fff;
margin: 0 20px; margin: 0 20px 20px;
.title { .title {
color: #333333; color: #333333;
font-size: 16px; font-size: 16px;
padding: 13.5px 20px; padding: 13.5px 20px;
line-height: 23px; line-height: 23px;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
font-weight: 600;
} }
.timeline-box { .timeline-box {
padding: 18px 20px; padding: 18px 20px;
.time-box { .time-box {
.createdBy { .createdBy {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 896px;
margin-bottom: 4px; margin-bottom: 4px;
color: #666666; color: #666666;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
line-height: 20px; line-height: 20px;
.time {
color: #999999;
font-size: 12px;
font-weight: 400;
}
span { span {
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
...@@ -103,6 +116,7 @@ export default { ...@@ -103,6 +116,7 @@ export default {
.reason { .reason {
color: #333333; color: #333333;
font-weight: 400; font-weight: 400;
max-width: 832px;
} }
} }
} }
......
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
left: 50%; left: 50%;
text-align: center; text-align: center;
margin-left: -28px; margin-left: -28px;
padding: 20px; padding: 0 20px 20px;
cursor: pointer; cursor: pointer;
.cancel-btn { .cancel-btn {
color: #666666; color: #666666;
......
...@@ -49,8 +49,8 @@ export default { ...@@ -49,8 +49,8 @@ export default {
} }
this.submitData(params) this.submitData(params)
}, },
handleSave() { async handleSave() {
let isValid = this.$refs.assessRef.confirm() let isValid = await this.$refs.assessRef.confirm()
if (isValid) { if (isValid) {
let params = { let params = {
opType: 10, //10评估师报价,20客户报价,30评估师驳回 opType: 10, //10评估师报价,20客户报价,30评估师驳回
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
left: 50%; left: 50%;
text-align: center; text-align: center;
margin-left: -28px; margin-left: -28px;
padding: 20px; padding: 0 20px 20px;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
.save-btn { .save-btn {
......
...@@ -280,7 +280,7 @@ export default { ...@@ -280,7 +280,7 @@ export default {
name: "registrationDate", name: "registrationDate",
type: "datePicker", type: "datePicker",
isClear: true, isClear: true,
pickerOptions: "yesterdayPicker" pickerOptions: "rangePickerOptions"
}, },
{ {
label: "上牌城市", label: "上牌城市",
...@@ -390,7 +390,7 @@ export default { ...@@ -390,7 +390,7 @@ export default {
type: "datePicker", type: "datePicker",
dateType: "datetimerange", dateType: "datetimerange",
isClear: true, isClear: true,
pickerOptions: "yesterdayPicker" pickerOptions: "rangePickerOptions"
}, },
{ {
label: "评估单编号", label: "评估单编号",
......
...@@ -443,7 +443,7 @@ export default { ...@@ -443,7 +443,7 @@ export default {
] ]
}, },
{ {
operateTitle: "操作日志", operateTitle: "操作记录",
tableColumns: [ tableColumns: [
{ {
title: "操作人", title: "操作人",
...@@ -540,7 +540,7 @@ export default { ...@@ -540,7 +540,7 @@ export default {
left: 50%; left: 50%;
text-align: center; text-align: center;
margin-left: -28px; margin-left: -28px;
padding: 20px; padding: 0 20px 20px;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
.save-btn { .save-btn {
...@@ -581,9 +581,9 @@ export default { ...@@ -581,9 +581,9 @@ export default {
} }
} }
.operation-wrapper { .operation-wrapper {
background: #fafafa; background: #fff;
padding: 0 20px; padding: 0 20px;
margin-top: -20px; margin-top: 20px;
.operateTitle { .operateTitle {
color: #333333; color: #333333;
font-size: 16px; font-size: 16px;
......
...@@ -275,7 +275,9 @@ export default { ...@@ -275,7 +275,9 @@ export default {
previousOwnerName: "", previousOwnerName: "",
previousOwnerPhone: "", previousOwnerPhone: "",
oaFlowStatus: "", oaFlowStatus: "",
splitPay: "" splitPay: "",
oaFlowPaymentStatus: "",
paymentType: ""
}, },
showFormData: [ showFormData: [
{ {
...@@ -305,7 +307,7 @@ export default { ...@@ -305,7 +307,7 @@ export default {
type: "datePicker", type: "datePicker",
dateType: "datetimerange", dateType: "datetimerange",
isClear: true, isClear: true,
pickerOptions: "yesterdayPicker" pickerOptions: "rangePickerOptions"
}, },
{ {
label: "合同类型", label: "合同类型",
...@@ -370,7 +372,7 @@ export default { ...@@ -370,7 +372,7 @@ export default {
maxlength: 20 maxlength: 20
}, },
{ {
label: "车主电话", label: "车主联系方式",
name: "previousOwnerPhone", name: "previousOwnerPhone",
type: "input", type: "input",
isClear: true, isClear: true,
......
<template> <template>
<div class="range"> <div class="range">
<div :class="[ <div
' el-date-editor', :class="[
'el-range-editor', ' el-date-editor',
'el-input__inner', 'el-range-editor',
'el-date-editor--daterange', 'el-input__inner',
'el-range-editor--small', 'el-date-editor--daterange',
pickerVisible ? 'is-active' : '' 'el-range-editor--small',
]" pickerVisible ? 'is-active' : ''
@click="handleRangeClick" ]"
@mouseleave="showClose = false" @click="handleRangeClick"
@mousemove="handleMove" @mouseleave="showClose = false"
ref="reference"> @mousemove="handleMove"
ref="reference"
>
<template v-if="infinity"> <template v-if="infinity">
<el-input-number class="el-range-input hide-btn" <el-input-number
:placeholder="startPlaceholder" class="el-range-input hide-btn"
v-model="userInput[0]" :placeholder="startPlaceholder"
@blur="handleBlur(0)"></el-input-number> v-model="userInput[0]"
@blur="handleBlur(0)"
></el-input-number>
<span class="el-range-separator">至</span> <span class="el-range-separator">至</span>
<el-input-number class="el-range-input hide-btn" <el-input-number
:placeholder="endPlaceholder" class="el-range-input hide-btn"
v-model="userInput[1]" :placeholder="endPlaceholder"
@blur="handleBlur(1)"></el-input-number> v-model="userInput[1]"
@blur="handleBlur(1)"
></el-input-number>
</template> </template>
<template v-else> <template v-else>
<el-input v-model="userInput[0]" <el-input
:placeholder="startPlaceholder" v-model="userInput[0]"
@blur="handleBlur(0)" :placeholder="startPlaceholder"
@input="handleStartInput" @blur="handleBlur(0)"
class="el-range-input"></el-input> @input="handleStartInput"
class="el-range-input"
></el-input>
<span class="el-range-separator">至</span> <span class="el-range-separator">至</span>
<el-input v-model="userInput[1]" <el-input
:placeholder="endPlaceholder" v-model="userInput[1]"
@input="handleEndInput" :placeholder="endPlaceholder"
@focus="handleFocus" @input="handleEndInput"
@blur="handleBlur(1)" @focus="handleFocus"
class="el-range-input"></el-input> @blur="handleBlur(1)"
class="el-range-input"
></el-input>
</template> </template>
<i v-show="showClose" <i
@click="handleClickIcon" v-show="showClose"
class="el-icon-circle-close"></i> @click="handleClickIcon"
class="el-icon-circle-close"
></i>
</div> </div>
<div class="errorTips" <div class="errorTips" v-if="tipsShow">最大金额需大于最小金额</div>
v-if="tipsShow">最大金额需大于最小金额</div>
</div> </div>
</template> </template>
<script> <script>
import { limitPrice } from '@/common/format' import { limitPrice } from "@/common/format"
export default { export default {
data() { data() {
return { return {
...@@ -55,8 +65,8 @@ export default { ...@@ -55,8 +65,8 @@ export default {
showClose: false, showClose: false,
userInput: this.displayValue, userInput: this.displayValue,
oldVal: { oldVal: {
startInput: '', startInput: "",
endInput: '' endInput: ""
}, },
tipsShow: false tipsShow: false
} }
...@@ -70,7 +80,7 @@ export default { ...@@ -70,7 +80,7 @@ export default {
infinity: Boolean, infinity: Boolean,
regRuleStr: { regRuleStr: {
type: String, type: String,
default: 'priceReg' default: "priceReg"
} }
}, },
watch: { watch: {
...@@ -85,12 +95,28 @@ export default { ...@@ -85,12 +95,28 @@ export default {
}, },
methods: { methods: {
handleStartInput(event) { handleStartInput(event) {
this.userInput[0] = limitPrice(event, this.oldVal.startInput, 20, 2, '', '', this.regRuleStr) this.userInput[0] = limitPrice(
event,
this.oldVal.startInput,
15,
2,
"",
"",
this.regRuleStr
)
this.oldVal.startInput = this.userInput[0] this.oldVal.startInput = this.userInput[0]
}, },
handleEndInput(event) { handleEndInput(event) {
this.userInput[1] = limitPrice(event, this.oldVal.endInput, 20, 2, '', '', this.regRuleStr) this.userInput[1] = limitPrice(
event,
this.oldVal.endInput,
15,
2,
"",
"",
this.regRuleStr
)
this.oldVal.endInput = this.userInput[1] this.oldVal.endInput = this.userInput[1]
}, },
handleClickIcon(event) { handleClickIcon(event) {
...@@ -132,10 +158,10 @@ export default { ...@@ -132,10 +158,10 @@ export default {
contrastValue() { contrastValue() {
const val = this.userInput const val = this.userInput
if (Array.isArray(val)) { if (Array.isArray(val)) {
if (val[0] == '-') { if (val[0] == "-") {
val[0] = null val[0] = null
} }
if (val[1] == '-') { if (val[1] == "-") {
val[1] = null val[1] = null
} }
if (val[0] && val[1]) { if (val[0] && val[1]) {
......
...@@ -99,8 +99,8 @@ export default { ...@@ -99,8 +99,8 @@ export default {
callback(new Error("请输入有效数字")) callback(new Error("请输入有效数字"))
} else if (numValue <= 0) { } else if (numValue <= 0) {
callback(new Error("激励价格必须大于0")) callback(new Error("激励价格必须大于0"))
} else if (numValue > 99999999.99) { } else if (numValue > 9999999.99) {
callback(new Error("激励价格必须小于99999999.99")) callback(new Error("激励价格必须小于9999999.99"))
} else { } else {
callback() callback()
} }
......
...@@ -163,18 +163,19 @@ export default { ...@@ -163,18 +163,19 @@ export default {
optionLabel: "confValue", optionLabel: "confValue",
optionsName: "vehicleCategoryOpt" optionsName: "vehicleCategoryOpt"
}, },
{
label: "激励价格",
name: "sunlightInspiresPrice",
addHtml: "sunlightInspiresPriceHtml"
},
{ {
label: "录入时间", label: "录入时间",
name: "createdDate", name: "createdDate",
type: "datePicker", type: "datePicker",
dateType: "datetimerange", dateType: "datetimerange",
isClear: true, isClear: true,
pickerOptions: "yesterdayPicker" pickerOptions: "rangePickerOptions"
},
{
label: "激励价格",
name: "sunlightInspiresPrice",
addHtml: "sunlightInspiresPriceHtml"
} }
], ],
baseData: { baseData: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!