Commit 37fc06b6 by cen

feat: 新增评估单页面

1 parent 277ffb90
No preview for this file type
...@@ -40,6 +40,13 @@ ...@@ -40,6 +40,13 @@
.flex { .flex {
display: flex; display: flex;
} }
.flex-col {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
-webkit-flex-direction: column;
flex-direction: column;
}
.justify-between { .justify-between {
-webkit-box-pack: justify; -webkit-box-pack: justify;
-ms-flex-pack: justify; -ms-flex-pack: justify;
...@@ -113,6 +120,21 @@ ...@@ -113,6 +120,21 @@
.ml-12 { .ml-12 {
margin-left: toRpx(12); margin-left: toRpx(12);
} }
.ml-16 {
margin-left: toRpx(16);
}
.ml-20 {
margin-left: toRpx(20);
}
.ml-24 {
margin-left: toRpx(24);
}
.ml-32 {
margin-left: toRpx(32);
}
.ml-48 {
margin-left: toRpx(48);
}
.mt-12 { .mt-12 {
margin-top: toRpx(12); margin-top: toRpx(12);
} }
...@@ -128,9 +150,21 @@ ...@@ -128,9 +150,21 @@
.mb-12 { .mb-12 {
margin-bottom: toRpx(12); margin-bottom: toRpx(12);
} }
.mb-16 {
margin-bottom: toRpx(16);
}
.mb-20 { .mb-20 {
margin-bottom: toRpx(20); margin-bottom: toRpx(20);
} }
.mb-24 {
margin-bottom: toRpx(24);
}
.mb-30 {
margin-bottom: toRpx(30);
}
.mb-48 {
margin-bottom: toRpx(48);
}
.my-16 { .my-16 {
margin: toRpx(16) 0; margin: toRpx(16) 0;
} }
...@@ -146,6 +180,15 @@ ...@@ -146,6 +180,15 @@
.px-48 { .px-48 {
padding: 0 toRpx(48); padding: 0 toRpx(48);
} }
.py-40 {
padding: toRpx(40) 0;
}
.px-20 {
padding: 0 toRpx(20);
}
.px-50 {
padding: 0 toRpx(50);
}
.pt-6 { .pt-6 {
padding-top: toRpx(6); padding-top: toRpx(6);
} }
......

2.73 MB | W: | H:

2.74 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
"dayjs": "^1.11.11", "dayjs": "^1.11.11",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3", "eslint-plugin-prettier": "^5.1.3",
"glsk-toolkit": "^1.0.0",
"hammerjs": "^2.0.8", "hammerjs": "^2.0.8",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"number-precision": "^1.6.0", "number-precision": "^1.6.0",
......
...@@ -195,6 +195,12 @@ ...@@ -195,6 +195,12 @@
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "pages/evaluationForm/addEvaluationFrom",
"style": {
"navigationStyle": "custom"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
<template> <template>
<div class="button-module"> <div class="button-module flex">
<button @click="handleClick" type="primary">查看详情</button> <view class="common-btn" @click="handleClick('details')">详情</view>
<view v-if="subStatus == '' && previousStatus != 100" class="common-btn ml-24" @click="handleClick('edit')">编辑</view>
<view v-if="previousStatus == 20 && subStatus == ''" class="common-btn ml-24" @click="handleClick('requote')">重新报价</view>
<view v-if="previousStatus == 20 && subStatus == ''" class="common-btn blue-btn ml-24" @click="handleClick('sign')">客户签约</view>
<view v-if="previousStatus == 20 && subStatus == 1" class="common-btn gray-btn ml-24" @click="handleClick('signing')">签约中</view>
<view v-if="previousStatus == 30 && subStatus == ''" class="common-btn ml-24" @click="handleClick('cancelSign')">取消签约</view>
<view v-if="previousStatus == 30 && subStatus == '' && paymentType == 1" class="common-btn blue-btn ml-24" @click="handleClick('payDeposit')">支付定金</view>
<view v-if="previousStatus == 30 && subStatus == '' && paymentType == 2" class="common-btn blue-btn ml-24" @click="handleClick('payFull')">支付全款</view>
<view v-if="subStatus == 2 || subStatus == 3" class="common-btn gray-btn ml-24" @click="handleClick('paying')">支付中</view>
<view v-if="previousStatus == 40 && subStatus == '' && paymentType == 1" class="common-btn blue-btn ml-24" @click="handleClick('payTail')">支付尾款</view>
<view v-if="previousStatus == 50 && subStatus == ''" class="common-btn blue-btn ml-24" @click="handleClick('confirmDelivery')">确认交车</view>
<view v-if="previousStatus == 1" class="common-btn blue-btn ml-24" @click="handleClick('reSubmit')">重新提交</view>
</div> </div>
</template> </template>
<script> <script>
import { method } from 'lodash'
export default { export default {
name: 'ButtonModule', name: 'ButtonModule',
props: { props: {
mediaType: { previousStatus: {
type: String, type: String,
default: 'image' default: '10'
}, },
src: { subStatus: {
type: String, type: String,
default: '' default: ''
}, },
alt: { paymentType: {
type: String, type: String,
default: '' default: '1'
},
controls: {
type: Boolean,
default: false
},
autoplay: {
type: Boolean,
default: false
},
loop: {
type: Boolean,
default: false
},
muted: {
type: Boolean,
default: true
} }
}, },
data() { data() {
...@@ -45,8 +38,10 @@ export default { ...@@ -45,8 +38,10 @@ export default {
} }
}, },
methods: { methods: {
handleClick() { handleClick(buttonType) {
this.$emit('jump', 'EvaluationFormDetails') this.$emit('button-click', {
type: buttonType
})
} }
} }
} }
...@@ -54,9 +49,21 @@ export default { ...@@ -54,9 +49,21 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.button-module { .button-module {
button { .common-btn {
width: 120px; border-radius: toRpx(64);
height: 30px; background: #e9effe;
color: #3b73ff;
font-size: toRpx(28);
font-weight: 400;
padding: toRpx(12) toRpx(40);
}
.blue-btn {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
}
.gray-btn {
background: #f0f1f5;
color: #999ea8;
} }
} }
</style> </style>
<!--针对弹窗穿透滚动,统一封装的popup-->
<template>
<page-meta :page-style="'overflow:' + (show ? 'hidden' : 'visible')"></page-meta>
<uni-popup :class="['customPopup', popupClass]" ref="publishPopup" :type="type" @change="change" :is-mask-click="isMaskClick" :safe-area="safeArea" :showClose="showClose">
<!-- 顶部标题栏插槽 -->
<slot name="header">
<view class="popup-top-box flex align-center" v-if="showTitle">
<text class="popup-top-box-title">{{ title }}</text>
<view @click.stop="closePopup">
<view class="sprite-icon icon-evaluationClose"></view>
</view>
</view>
</slot>
<!-- 主要内容插槽 -->
<view class="content">
<slot name="content"></slot>
</view>
<!-- 底部插槽 插槽有内容就优先自定义内容-->
<slot name="footer">
<view class="footer-box flex justify-center" v-if="isShowFooter">
<view class="cancle-btn btn" v-if="isShowCancel" @click.stop="closePopup">{{ cancelText }}</view>
<view class="sure-btn btn" @click.stop="confirm">{{ confirmText }}</view>
</view>
</slot>
</uni-popup>
</template>
<script>
export default {
name: 'GeneralPopup',
props: {
type: {
type: String,
default: 'bottom'
},
isMaskClick: {
type: Boolean,
default: true
},
safeArea: {
type: Boolean,
default: true
},
popupClass: {
type: String,
default: ''
},
showClose: {
type: Boolean,
default: true
},
title: {
type: String,
default: ''
},
showTitle: {
type: Boolean,
default: true
},
isShowFooter: {
type: Boolean,
default: true
},
cancelText: {
type: String,
default: '取消'
},
confirmText: {
type: String,
default: '确定'
},
isShowCancel: {
type: Boolean,
default: true
}
},
data() {
return {
show: false
}
},
methods: {
open() {
this.$nextTick(() => {
console.log(this.$refs)
if (this.$refs.publishPopup) {
this.$refs.publishPopup.open()
}
})
return new Promise((resolve, reject) => {
this.resolve = resolve
this.reject = reject
})
},
change(e) {
this.show = e.show
},
closePopup() {
this.$refs.publishPopup.close()
if (this.reject) {
this.reject(null)
}
this.$emit('close')
},
confirm() {
if (this.resolve) {
this.$refs.publishPopup.close()
this.resolve()
}
this.$emit('confirm')
}
}
}
</script>
<style scoped lang="scss">
::v-deep .customPopup .center {
width: toRpx(848);
border-radius: toRpx(36);
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
overflow: hidden;
.content {
min-height: 32vh;
max-height: 80vh;
padding: 0 toRpx(64);
}
.footer-box {
width: calc(100% - #{toRpx(128)});
left: toRpx(64);
}
}
.popup-top-box {
color: #1a1a1a;
font-size: toRpx(40);
font-weight: 500;
text-align: center;
padding: toRpx(48) toRpx(64);
.popup-top-box-title {
flex: 1;
text-align: left;
}
.icon-close {
text-align: end;
}
}
.justify-between {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.align-center {
align-items: center;
}
.uniui-closeempty {
color: #1a1a1a;
font-size: toRpx(24);
font-weight: 600;
}
.footer-box {
width: 100%;
height: toRpx(164);
// background-color: #fff;
position: absolute;
border-radius: 0 0 toRpx(42) toRpx(42);
bottom: 0;
.btn {
flex: 1;
height: toRpx(80);
border-radius: toRpx(48);
opacity: 1;
line-height: toRpx(80);
text-align: center;
color: rgba(26, 26, 26, 0.6);
font-size: toRpx(32);
font-weight: 500;
}
.cancle-btn {
background: #f0f1f5;
}
.sure-btn {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
}
</style>
<template> <template>
<view class="type-tab"> <view class="type-tab">
<view class="type-box"> <view class="type-box">
<view class="tab-item" v-for="(i, index) in typeList" :key="index" @click="tabClick(index)"> <view class="tab-item" :class="[tabClass(index)]" v-for="(i, index) in typeList" :key="index" @click="tabClick(index)">
<!-- <view <view
:class="['sprite-icon', tabClass(index)]" :class="['sprite-icon', tabClass(index)]"
:style="{ :style="{
left: blockLeft left: blockLeft
}" }"
></view> --> ></view>
<view class="text flex justify-center align-center" :class="[tabIndex == index ? `active` : '', tabClass(index)]"> <view class="text flex justify-center align-center" :class="[tabIndex == index ? `active` : '']">
<view>{{ i[nameKey] }}</view> <view>{{ i[nameKey] }}</view>
<view v-if="isShowCount" class="count ml-8">{{ i.count }}</view> <view v-if="isShowCount" class="count ml-8">{{ i.count }}</view>
</view> </view>
</view> </view>
</view> </view>
<view class="mask-box"></view>
</view> </view>
</template> </template>
...@@ -45,7 +44,7 @@ export default { ...@@ -45,7 +44,7 @@ export default {
blockLeft () { blockLeft () {
let { tabIndex } = this let { tabIndex } = this
return `${(tabIndex * 400) - (tabIndex == 0 ? 0 : 48)}rpx` return `${(tabIndex * 400) - (tabIndex == 0 ? 0 : 48)}rpx`
} },
}, },
mounted () { mounted () {
}, },
...@@ -53,7 +52,7 @@ export default { ...@@ -53,7 +52,7 @@ export default {
tabClass (index) { tabClass (index) {
let className = '' let className = ''
if (this.tabIndex == index) { if (this.tabIndex == index) {
className = 'active icon-' className = 'active tab-'
if (index == 0) className += 'first-nav' if (index == 0) className += 'first-nav'
else className += 'second-nav' else className += 'second-nav'
} }
...@@ -75,7 +74,7 @@ export default { ...@@ -75,7 +74,7 @@ export default {
display: flex; display: flex;
width: 100%; width: 100%;
background-color: #eef4fe; background-color: #eef4fe;
height: toRpx(160); height: toRpx(96);
line-height: toRpx(128); line-height: toRpx(128);
border-radius: toRpx(48) toRpx(48) 0 0; border-radius: toRpx(48) toRpx(48) 0 0;
overflow: hidden; overflow: hidden;
...@@ -85,22 +84,23 @@ export default { ...@@ -85,22 +84,23 @@ export default {
font-weight: 400; font-weight: 400;
font-size: toRpx(32); font-size: toRpx(32);
color: #1f2133; color: #1f2133;
padding: 0 toRpx(64);
position: relative;
.text { .text {
position: relative; position: relative;
text-align: center; text-align: center;
height: toRpx(80);
padding: 0 toRpx(64);
.count { .count {
font-size: toRpx(24); font-size: toRpx(24);
} }
} }
.active { .active {
position: absolute; position: relative;
top: 0;
z-index: -1;
font-weight: 700; font-weight: 700;
font-size: toRpx(32); font-size: toRpx(32);
color: #2c66f7; color: #2c66f7;
&::after { &::after {
content: ''; content: '';
position: absolute; position: absolute;
...@@ -117,16 +117,15 @@ export default { ...@@ -117,16 +117,15 @@ export default {
transition: left 0.15s; transition: left 0.15s;
} }
} }
} .tab-first-nav {
.mask-box { background: url('@/assets/spritesmith/first-nav.png') no-repeat;
position: absolute; background-size: 100% 100%;
height: 100vh; background-position: center;
width: 100%; }
background: #fff; .tab-second-nav {
left: 0; background: url('@/assets/spritesmith/second-nav.png') no-repeat;
top: toRpx(128); background-size: 100% 100%;
border-radius: toRpx(48); }
overflow: hidden;
} }
} }
</style> </style>
<!-- evaluationCard.vue -->
<template>
<view class="card-box">
<view class="flex align-center justify-between mb-24">
<view class="status-box">
<text class="label">工单编号:</text>
<text class="value">2323232323232323</text>
</view>
<view :class="['status', statusClass(carInfo.previousStatus)]">{{ statusMap[carInfo.previousStatus].name }}</view>
</view>
<view class="car-info-box flex align-start">
<image src="https://img.58tg.com/up/allimg/4k/s/03/2309201256325P4-0-lp.jpg" alt="" />
<view class="ml-32 flex-1">
<view class="flex align-center car-type-name mb-16">
奥迪A4L A4L 2021款 40 TFSI 豪华动感型
<view class="common-label ml-20">李女士 13912345678</view>
</view>
<view class="flex mb-16">
<view class="car-number mr-12">粤B12345</view>
<view class="car-number mr-12">2020年上牌</view>
<view class="car-number mr-12">1.8万公里</view>
<view class="car-number mr-12">二手车</view>
<view class="car-number">置换车</view>
</view>
<view class="info-row flex mb-30">
<view class="info-item flex align-center">
<text class="common-label flex-shrink-0">销售顾问</text>
<view class="common-value text-ellipsis ml-16">豪华车专家豪华车专家豪华车专家豪华车专家豪华车专家豪华车专家豪华车专家豪华车专家豪华车专家 | 张经理</view>
</view>
<view class="info-item flex align-center">
<text class="common-label flex-shrink-0">转化人员</text>
<view class="common-value text-ellipsis ml-16">深圳嘀嘀虎园区店 | 方可</view>
</view>
<view class="info-item flex align-center">
<text class="common-label flex-shrink-0">工单时间</text>
<view class="common-value text-ellipsis ml-16">2025-07-30 16:00:00</view>
</view>
<view class="info-item flex align-center">
<text class="common-label flex-shrink-0">签约时间</text>
<view class="common-value text-ellipsis ml-16">2025-07-30 16:00:00</view>
</view>
</view>
<view class="flex justify-between align-center">
<view class="flex">
<text class="common-label">评估价格</text>
<view class="price ml-16">评估中</view>
</view>
<ButtonModule @button-click="$emit('button-click', { ...$event, ...carInfo })" :previousStatus="carInfo.previousStatus" :subStatus="carInfo.subStatus" :paymentType="carInfo.paymentType"></ButtonModule>
</view>
<view v-if="carInfo.previousStatus == -1">
<view class="tips px-20">
<view class="sprite-icon icon-study-tips"></view>
<view class="text-ellipsis">驳回原因:车况不符合收车标准车况不符合收车标准车况不符合收车标准车况不符合收车标准车况不符合收车标准车况不符合收车标准车况不符合收车标准车</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import ButtonModule from './ButtonModule.vue'
import { statusMap } from '../evaluationFormMap.js'
export default {
components: {
ButtonModule
},
props: {
carInfo: {
type: Object,
default: () => {}
}
},
data() {
return {
statusMap
}
},
methods: {
statusClass(status) {
return status > 0 ? `status-${status}` : 'status-0'
}
}
}
</script>
<style scoped lang="scss">
.card-box {
border-radius: toRpx(24);
padding: toRpx(24) toRpx(40);
background: #ffffff;
box-shadow: 0 toRpx(6) toRpx(24) 0 #2a61eb1a;
.status-box {
.label {
color: #999ea8;
font-size: toRpx(24);
font-weight: 400;
}
.value {
color: #666666;
font-size: toRpx(24);
font-weight: 400;
}
}
.status {
border-radius: toRpx(4);
background: #fef4e8;
padding: toRpx(4) toRpx(20);
font-size: toRpx(24);
font-weight: 500;
}
// 状态颜色
.status-10 {
color: #f59619;
background: #fef4e8;
}
.status-20 {
color: #6a56f0;
background: #f0eefd;
}
.status-30 {
color: #2cca74;
background: #e9f9f1;
}
.status-40 {
color: #5842eb;
background: #eeecfd;
}
.status-50 {
color: #5842eb;
background: #eeecfd;
}
.status-100 {
color: #2cca74;
background: #e9f9f1;
}
// 驳回
.status-0 {
color: #eb4e4e;
background: #fdeded;
}
.car-info-box {
uni-image {
width: toRpx(240);
height: toRpx(180);
border-radius: toRpx(12);
}
.car-type-name {
color: #292d33;
font-size: toRpx(30);
font-weight: 500;
}
.car-number {
color: #9398a3;
font-size: toRpx(22);
border-radius: toRpx(4);
opacity: 1;
border: toRpx(2) solid #e8ecf0;
padding: toRpx(4) toRpx(12);
}
.common-label {
color: #999ea8;
font-size: toRpx(24);
font-weight: 400;
}
.common-value {
color: #666666;
font-size: toRpx(24);
font-weight: 400;
}
.text-ellipsis {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
word-break: break-all;
flex: 1;
}
.info-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: toRpx(16) toRpx(24);
.info-item {
min-width: 0;
}
.flex-shrink-0 {
flex-shrink: 0;
}
.price {
color: #666666;
font-size: toRpx(32);
font-weight: 400;
}
}
.tips {
display: flex;
align-items: center;
justify-content: center;
font-size: toRpx(28);
width: 100%;
height: toRpx(56);
border-radius: toRpx(16);
opacity: 1;
background: #fef5ea;
margin-top: toRpx(16);
color: #ff9d0a;
&-text {
margin-top: toRpx(4);
}
.icon-study-tips {
margin-right: toRpx(8);
}
.waitinputorder-btn {
width: toRpx(136);
height: toRpx(50);
border-radius: toRpx(48);
opacity: 1;
background: #ffffff;
color: #4673ff;
font-size: toRpx(24);
font-weight: 500;
text-align: center;
line-height: toRpx(50);
}
}
}
}
</style>
...@@ -41,19 +41,19 @@ export default { ...@@ -41,19 +41,19 @@ export default {
{ {
placeholder: '车主电话', placeholder: '车主电话',
key: 'carModel', key: 'carModel',
type: 'select', type: 'input',
popKey: 'carBrandListVisible' popKey: 'carBrandListVisible'
}, },
{ {
placeholder: '车架号', placeholder: '车架号',
key: 'carModel', key: 'carModel',
type: 'select', type: 'input',
popKey: 'carBrandListVisible' popKey: 'carBrandListVisible'
}, },
{ {
placeholder: '评估单号', placeholder: '评估单号',
key: 'carModel', key: 'carModel',
type: 'select', type: 'input',
popKey: 'carBrandListVisible' popKey: 'carBrandListVisible'
} }
], ],
......
...@@ -61,3 +61,46 @@ export const fileSuibtype = { ...@@ -61,3 +61,46 @@ export const fileSuibtype = {
type: 'video' type: 'video'
} }
} }
export const statusMap = {
10: {
name: '评估中',
type: 'primary'
},
20: {
name: '已报价',
type: 'primary'
},
30: {
name: '已签约',
type: 'primary'
},
40: {
name: '已支付-定金',
type: 'primary'
},
50: {
name: '已支付-尾款',
type: 'primary'
},
100: {
name: '已完成',
type: 'primary'
},
'-1': {
name: '已驳回',
type: 'primary'
},
1: {
name: '合同签署中',
type: 'primary'
},
2: {
name: '定金支付中',
type: 'primary'
},
3: {
name: '尾款支付中',
type: 'primary'
}
}
<template> <template>
<div class="evaluation-form-list"> <view class="evaluation-form-list">
<view class="nav-bar"> <view class="nav-bar">
<view class="back" @click="backPage"> <view class="back" @click="backPage">
<uni-icons type="left" :size="20" color="#000"></uni-icons> <uni-icons type="left" :size="20" color="#000"></uni-icons>
...@@ -10,28 +10,65 @@ ...@@ -10,28 +10,65 @@
<searchBox /> <searchBox />
<view class="box-class mt-32"> <view class="box-class mt-32">
<type-tab-component :typeList="typeList" :isShowCount="true" :tabIndex.sync="tabIndex"></type-tab-component> <type-tab-component :typeList="typeList" :isShowCount="true" :tabIndex.sync="tabIndex"></type-tab-component>
<view :class="['right-content', `${tabIndex != 0 ? 'hide-record' : 'show-record'}`]"> <z-paging ref="paging" :fixed="false" paging-class="paging-class px-50" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10">
<record-list @openRecordPage="openRecordPage" ref="recordListRef" :show="tabIndex == 0" /> <EvaluationCard @button-click="handleButtonClick" v-for="(item, index) in dataList" :key="index" :carInfo="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()" :class="{ 'mb-20': index < dataList.length - 1 }"></EvaluationCard>
</view> </z-paging>
<view :class="['right-content', `${tabIndex != 1 ? 'hide-record' : 'show-record'}`]"> <view class="mask-box flex flex-col justify-center align-center">
<customer-file @showSuccess="$refs.successRef.open()" ref="customerFile" @editCustomer="editCustomer" :show="tabIndex == 1" /> <image src="@/assets/images/evaluationForm/noData.png" />
<view>暂无客户工单</view>
</view> </view>
</view> </view>
</view> </view>
</div> <view class="addBtn" @click="addEvaluationForm">
<image src="@/assets/images/evaluationForm/noData.png"></image>
</view>
<GeneralPopup ref="requotePopup" popupClass="requotePopup" title="重新报价" confirmText="重新报价" type="center" :showClose="true" :isShowCancel="false">
<template #content>
<view class="requote-content">
<view class="requote-label mb-20">
客户意向报价
<text class="requiredLabel">*</text>
</view>
<input class="intention-input mb-48" type="idcard" placeholder="身份证输入键盘" />
<view class="requote-label mb-20">
客户意向报价
<text class="requiredLabel">*</text>
</view>
<textarea class="feedback-textarea" placeholder-style="color:#999999" placeholder="请输入 (200字以内)" />
</view>
</template>
</GeneralPopup>
<GeneralPopup ref="cancleSignPopup" popupClass="cancleSignPopup" title="取消签约" confirmText="取消签约" type="center" :showClose="true" :isShowCancel="false">
<template #content>
<view class="requote-content">
<view class="requote-label mb-20">
取消签约原因
<text class="requiredLabel">*</text>
</view>
<textarea class="feedback-textarea" placeholder-style="color:#999999" placeholder="请输入 (200字以内)" />
</view>
</template>
</GeneralPopup>
</view>
</template> </template>
<script> <script>
import { data } from '../boutique/order_mixins'
import ButtonModule from './components/ButtonModule.vue' import ButtonModule from './components/ButtonModule.vue'
import searchBox from './components/searchBox.vue' import searchBox from './components/searchBox.vue'
import TypeTabComponent from './components/TypeTabComponent.vue' import TypeTabComponent from './components/TypeTabComponent.vue'
import EvaluationCard from './components/evaluationCard.vue'
import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin'
import GeneralPopup from './components/GeneralPopup.vue'
export default { export default {
name: 'EvaluationFormList', name: 'EvaluationFormList',
mixins: [ZPMixin],
components: { components: {
ButtonModule, ButtonModule,
searchBox, searchBox,
TypeTabComponent TypeTabComponent,
EvaluationCard,
GeneralPopup
}, },
data() { data() {
return { return {
...@@ -45,7 +82,15 @@ export default { ...@@ -45,7 +82,15 @@ export default {
{ tabName: '已支付-尾款', count: 0 }, { tabName: '已支付-尾款', count: 0 },
{ tabName: '已完成', count: 0 }, { tabName: '已完成', count: 0 },
{ tabName: '已驳回', count: 0 } { tabName: '已驳回', count: 0 }
]) ]),
dataList: [
{ name: '1', count: 1, previousStatus: 10, subStatus: '', paymentType: '1' },
{ name: '2', count: 1, previousStatus: 20, subStatus: '', paymentType: '1' },
{ name: '3', count: 1, previousStatus: 30, subStatus: '', paymentType: '1' },
{ name: '4', count: 1, previousStatus: 40, subStatus: '', paymentType: '1' },
{ name: '5', count: 1, previousStatus: 50, subStatus: '', paymentType: '1' },
{ name: '6', count: 1, previousStatus: -1, subStatus: '', paymentType: '1' }
]
} }
}, },
methods: { methods: {
...@@ -54,6 +99,42 @@ export default { ...@@ -54,6 +99,42 @@ export default {
}, },
backPage() { backPage() {
uni.navigateBack() uni.navigateBack()
},
queryList() {
this.$refs.paging.complete(this.dataList)
},
addEvaluationForm() {
console.log('addEvaluationForm')
uni.navigateTo({
url: '/pages/evaluationForm/addEvaluationFrom'
})
},
handleButtonClick(e) {
if (e.type === 'requote') {
this.requote()
} else if (e.type === 'cancelSign') {
this.cancelSign()
}
},
requote() {
this.$refs.requotePopup
.open()
.then(() => {
console.log('重新报价成功')
})
.catch(() => {
console.log('重新报价取消')
})
},
cancelSign() {
this.$refs.cancleSignPopup
.open()
.then(() => {
console.log('取消签约成功')
})
.catch(() => {
console.log('取消签约取消')
})
} }
} }
} }
...@@ -66,7 +147,7 @@ export default { ...@@ -66,7 +147,7 @@ export default {
height: 100vh; height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp'); background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%; background-size: 100%;
padding: toRpx(160) toRpx(64) 0; padding: toRpx(160) toRpx(64) toRpx(48);
box-sizing: border-box; box-sizing: border-box;
.nav-bar { .nav-bar {
position: fixed; position: fixed;
...@@ -99,15 +180,76 @@ export default { ...@@ -99,15 +180,76 @@ export default {
.detail-content { .detail-content {
width: 100%; width: 100%;
height: calc(100vh - #{toRpx(212)}); height: 100%;
box-sizing: border-box;
overflow: hidden;
.box-class { .box-class {
height: 100%; height: calc(100% - #{toRpx(110)});
background: #ffffff59; background: #ffffff59;
backdrop-filter: blur(toRpx(16)); backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: toRpx(48); border-radius: toRpx(48);
overflow: hidden; overflow: hidden;
.paging-class {
padding-top: toRpx(40);
height: calc(100% - #{toRpx(96)});
box-sizing: border-box;
}
.mask-box {
height: calc(100% - #{toRpx(96)});
width: 100%;
background: #fff;
border-radius: toRpx(48);
}
} }
} }
.requote-content {
width: 100%;
height: 100%;
.requote-label {
color: #333333;
font-size: toRpx(32);
font-weight: 400;
display: flex;
align-items: flex-start;
}
.requiredLabel {
color: #f24724;
font-size: toRpx(28);
font-weight: 400;
margin-left: toRpx(8);
}
::v-deep .intention-input {
height: toRpx(96);
border-radius: toRpx(16);
.uni-input-wrapper {
background: #f4f5f7;
}
}
::v-deep .feedback-textarea {
height: toRpx(216);
border-radius: toRpx(16);
.uni-input-wrapper {
background: #f4f5f7;
}
}
}
.addBtn {
width: toRpx(128);
height: toRpx(128);
border-radius: toRpx(24);
opacity: 1;
border: toRpx(2) solid #ffffffe6;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
backdrop-filter: blur(toRpx(16));
box-shadow: 0 toRpx(8) toRpx(32) 0 #8f9eb380;
position: fixed;
top: calc(50vh - #{toRpx(128)} / 2);
right: toRpx(32);
}
} }
</style> </style>
This diff is collapsed. Click to expand it.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!