Commit 95f7f0f6 by 李伟康

feat: 新增日报相关功能并优化门店日报流程

1.  新增多选组件OptionsComponent,支持自定义多选场景
2.  新增日报标签、实际交付日期字段,适配精品和权益工具页
3.  调整环境配置,切换默认环境为uat
4.  新增客户标签映射字典与格式化展示
5.  优化弹窗交互与表单校验逻辑
6.  新增门店日报专属路由与拦截配置
7.  修复部分页面样式与代码格式问题
1 parent f9fe7ce2
...@@ -221,14 +221,14 @@ export default { ...@@ -221,14 +221,14 @@ export default {
pageDirect: true, pageDirect: true,
noInterception: true noInterception: true
}, },
{ // {
icon: 'negotiation-detail', // icon: 'negotiation-detail',
name: 'NegotiationDetail', // name: 'NegotiationDetail',
label: '洽谈明细', // label: '洽谈明细',
page: '/pages/common/dailyNewspaper/index', // page: '/pages/common/dailyNewspaper/index',
eventCode: 'negotiation_detail_page', // eventCode: 'negotiation_detail_page',
noInterception: true // noInterception: true
}, // },
] ]
try { try {
let userInfo = uni.$storage.get('userInfo'), let userInfo = uni.$storage.get('userInfo'),
...@@ -236,14 +236,15 @@ export default { ...@@ -236,14 +236,15 @@ export default {
newReport = await this.isNewVersionNeed(shopMerchantId) newReport = await this.isNewVersionNeed(shopMerchantId)
if (newReport && sceneType != 7) { if (newReport && sceneType != 7) {
let [staffDailyReport] = entranceList let [staffDailyReport] = entranceList
entranceList[0] = { // entranceList[0] = {
...staffDailyReport, // ...staffDailyReport,
name: 'staffDailyReport', // name: 'staffDailyReport',
page: '/pages/common/dailyNewspaper/index', // page: '/pages/common/dailyNewspaper/index',
eventCode: 'staff_daily_report_page', // eventCode: 'staff_daily_report_page',
} // }
delete entranceList[0]
entranceList.map(e => { entranceList.map(e => {
if (['staffDailyReport', 'storeDailyReport', 'NegotiationDetail'].includes(e.name)) e.sceneType = [0, 1] if (['storeDailyReport'].includes(e.name)) e.sceneType = [0, 1]
}) })
} }
this.$store.dispatch('setNewReport', newReport) this.$store.dispatch('setNewReport', newReport)
......
<template> <template>
<view class="gl-cell"> <view class="gl-cell">
<view <view v-for="(items, boxIdx) in formList" :key="boxIdx" class="cell-box-block">
v-for="(items, boxIdx) in formList" <view class="cell-box" v-if="items.some(i => !i.hidden)" :style="cellBoxStyle">
:key="boxIdx"
class="cell-box-block"
>
<view
class="cell-box"
v-if="items.some(i => !i.hidden)"
:style="cellBoxStyle"
>
<template v-if="titleList.length"> <template v-if="titleList.length">
<view <view class="cell-title flex"
class="cell-title flex" v-if="titleList[boxIdx] && (titleList[boxIdx].name || titleList[boxIdx].addHtml)">
v-if="titleList[boxIdx] && (titleList[boxIdx].name || titleList[boxIdx].addHtml)"
>
<template v-if="titleList[boxIdx].name"> <template v-if="titleList[boxIdx].name">
{{titleList[boxIdx].name}} {{ titleList[boxIdx].name }}
</template> </template>
<template v-if="titleList[boxIdx].addHtml"> <template v-if="titleList[boxIdx].addHtml">
<slot :name="titleList[boxIdx].addHtml" /> <slot :name="titleList[boxIdx].addHtml" />
</template> </template>
<template v-if="collapseControl"> <template v-if="collapseControl">
<view <view :class="['collapse-control', { down: !titleList[boxIdx].collapseAll }]"
:class="['collapse-control',{down:!titleList[boxIdx].collapseAll}]" @click="collapseAll(boxIdx)">
@click="collapseAll(boxIdx)"
>
<view class="sprite-icon icon-collapse-all"></view> <view class="sprite-icon icon-collapse-all"></view>
</view> </view>
</template> </template>
...@@ -33,53 +21,29 @@ ...@@ -33,53 +21,29 @@
</template> </template>
<template v-for="(item, idx) in items"> <template v-for="(item, idx) in items">
<view :key="idx"> <view :key="idx">
<view <view :class="['cell-row', { 'cell-hide': collapseControl && !titleList[boxIdx].collapseAll }]" :key="idx"
:class="['cell-row',{'cell-hide':collapseControl && !titleList[boxIdx].collapseAll}]" v-if="!item.hidden">
:key="idx" <view class="cell" @click="onCellClick(item)"
v-if="!item.hidden" :class="[item.noBorder ? '' : 'border', item.onlyLabel ? 'small-height' : '', item.class]">
>
<view
class="cell"
@click="onCellClick(item)"
:class="[item.noBorder ? '' : 'border', item.onlyLabel ? 'small-height' : '', item.class]"
>
<view :class="['cell-label', { 'only-label': item.onlyLabel }]"> <view :class="['cell-label', { 'only-label': item.onlyLabel }]">
<view <view v-if="item.labellIcon" :class="['sprite-icon', `icon-${item.labellIcon}`]"></view>
v-if="item.labellIcon"
:class="['sprite-icon', `icon-${item.labellIcon}`]"
></view>
{{ item.label }} {{ item.label }}
<view <view v-if="item.required" class="required">*</view>
v-if="item.required"
class="required"
>*</view>
<template v-if="item.labelTips"> <template v-if="item.labelTips">
<view <view class="label-tips" @click.stop="onLabelTipsClick(item)">{{ item.labelTips }}</view>
class="label-tips"
@click.stop="onLabelTipsClick(item)"
>{{ item.labelTips }}</view>
</template> </template>
</view> </view>
<view class="cell-value"> <view class="cell-value">
<!-- 输入框 --> <!-- 输入框 -->
<template v-if="item.type === 'input'"> <template v-if="item.type === 'input'">
<view class="input-box"> <view class="input-box">
<input <input class="input-value" v-model="formData[item.value]" :type="item.inputType || 'text'"
class="input-value" @blur="handleBlur($event, item)" :placeholder="item.placeholder || '请输入'"
v-model="formData[item.value]" :maxlength="item.maxlength ? item.maxlength : -1" placeholder-class="input-placeholder"
:type="item.inputType || 'text'"
@blur="handleBlur($event, item)"
:placeholder="item.placeholder || '请输入'"
:maxlength="item.maxlength ? item.maxlength : -1"
placeholder-class="input-placeholder"
@input="item.inputType === 'number' && item.maxlength ? (formData[item.value] = String($event.target.value).slice(0, item.maxlength)) : null" @input="item.inputType === 'number' && item.maxlength ? (formData[item.value] = String($event.target.value).slice(0, item.maxlength)) : null"
:disabled="item.readonly || item.disabled || false" :disabled="item.readonly || item.disabled || false" />
/> <view v-if="item.valueIcon" :class="['sprite-icon', `icon-${item.valueIcon}`]"
<view @click="onValueClick(item)"></view>
v-if="item.valueIcon"
:class="['sprite-icon', `icon-${item.valueIcon}`]"
@click="onValueClick(item)"
></view>
</view> </view>
</template> </template>
<!-- 下拉选择 --> <!-- 下拉选择 -->
...@@ -100,43 +64,39 @@ ...@@ -100,43 +64,39 @@
</template> </template>
<!-- 单选框 --> <!-- 单选框 -->
<template v-else-if="item.type === 'radio'"> <template v-else-if="item.type === 'radio'">
<radio-group <template v-if="item.multiple">
class="radio-group value" <view class="radio-group value">
@change="onRadioChange($event, item)" <label class="uni-list-cell uni-list-cell-pd" v-for="radio in item.radioList"
> :key="radio.value + item.value" @click="onRadioChange(radio.value, item)">
<label <radio style="transform: scale(0.65) translateY(-3px)" :value="radio.value"
class="uni-list-cell uni-list-cell-pd" :disabled="item.disabled || radio.disabled"
v-for="radio in item.radioList" color="#4673FF"
:key="radio.value + item.value" :checked="formData[item.value] && formData[item.value].includes(radio.value)" />
> <view class="radio-name">{{ radio.name }}</view>
<radio </label>
style="transform: scale(0.65) translateY(-3px)" </view>
:value="radio.value" </template>
:disabled="item.disabled || radio.disabled" <template v-else>
:checked="radio.value == item.current" <radio-group class="radio-group value" @change="onRadioChange($event, item)">
/> <label class="uni-list-cell uni-list-cell-pd" v-for="radio in item.radioList"
<view class="radio-name">{{ radio.name }}</view> :key="radio.value + item.value">
</label> <radio style="transform: scale(0.65) translateY(-3px)" :value="radio.value"
</radio-group> color="#4673FF"
:disabled="item.disabled || radio.disabled" :checked="radio.value == item.current" />
<view class="radio-name">{{ radio.name }}</view>
</label>
</radio-group>
</template>
</template> </template>
<!-- 多行文本 --> <!-- 多行文本 -->
<template v-else-if="item.type === 'textarea'"> <template v-else-if="item.type === 'textarea'">
<textarea <textarea class="textarea" v-model="formData[item.value]" :placeholder="item.placeholder || '请输入'"
class="textarea" placeholder-class="textarea-placeholder" confirm-type="done" auto-height
v-model="formData[item.value]" :maxlength="item.maxlength"></textarea>
:placeholder="item.placeholder || '请输入'"
placeholder-class="textarea-placeholder"
confirm-type="done"
auto-height
:maxlength="item.maxlength"
></textarea>
</template> </template>
<template v-else-if="item.type === 'single-calendar'"> <template v-else-if="item.type === 'single-calendar'">
<view <view class="value" @click="openCalendar(boxIdx, idx)">
class="value" <template v-if="!item.addHtml && formData[item.value]">
@click="openCalendar(boxIdx,idx)"
>
<template v-if="!item.addHtml && formData[item.value]">
{{ formData[item.value] }} {{ formData[item.value] }}
</template> </template>
<template v-else> <template v-else>
...@@ -144,23 +104,14 @@ ...@@ -144,23 +104,14 @@
</template> </template>
<view class="sprite-icon icon-icon-select"></view> <view class="sprite-icon icon-icon-select"></view>
</view> </view>
<uni-calendar <uni-calendar :ref="`calendar-${boxIdx}-${idx}`" :insert="false" :clearDate="false"
:ref="`calendar-${boxIdx}-${idx}`" :startDate="item.startDate || ''" :endDate="item.endDate || ''"
:insert="false" :date="formData[item.value] || item.endDate" showBottomBtn
:clearDate="false" @confirm="confirmCalendar($event, item.value)" />
:startDate="item.startDate || ''"
:endDate="item.endDate || ''"
:date="formData[item.value] || item.endDate"
showBottomBtn
@confirm="confirmCalendar($event,item.value )"
/>
</template> </template>
<template v-else-if="item.type === 'range-calendar'"> <template v-else-if="item.type === 'range-calendar'">
<view <view class="value" @click="openCalendar(boxIdx, idx)">
class="value" <template v-if="!item.addHtml && formData[item.value]">
@click="openCalendar(boxIdx,idx)"
>
<template v-if="!item.addHtml && formData[item.value]">
{{ formData[item.value] }} {{ formData[item.value] }}
</template> </template>
<template v-else> <template v-else>
...@@ -168,37 +119,21 @@ ...@@ -168,37 +119,21 @@
</template> </template>
<view class="sprite-icon icon-icon-select"></view> <view class="sprite-icon icon-icon-select"></view>
</view> </view>
<uni-calendar <uni-calendar :ref="`calendar-${boxIdx}-${idx}`" range :insert="false" :clearDate="false"
:ref="`calendar-${boxIdx}-${idx}`" :startDate="item.startDate || ''" :endDate="item.endDate || ''" :rangeValue="formData[item.value]"
range showBottomBtn @confirm="confirmCalendar($event, item.value)" />
:insert="false"
:clearDate="false"
:startDate="item.startDate || ''"
:endDate="item.endDate || ''"
:rangeValue="formData[item.value]"
showBottomBtn
@confirm="confirmCalendar($event,item.value)"
/>
</template> </template>
<slot <slot v-else-if="item.cellHtml" :name="item.cellHtml"></slot>
v-else-if="item.cellHtml"
:name="item.cellHtml"
></slot>
<template v-if="item.suffix"> <template v-if="item.suffix">
<view class="suffix">{{item.suffix}}</view> <view class="suffix">{{ item.suffix }}</view>
</template> </template>
</view> </view>
</view> </view>
<slot <slot v-if="item.addHtml" :name="item.addHtml"></slot>
v-if="item.addHtml"
:name="item.addHtml"
></slot>
</view> </view>
<view <view v-if="item.rowHtml"
v-if="item.rowHtml" :class="['row-html', { 'cell-hide': collapseControl && !titleList[boxIdx].collapseAll }]">
:class="['row-html',{'cell-hide':collapseControl && !titleList[boxIdx].collapseAll}]"
>
<slot :name="item.rowHtml"></slot> <slot :name="item.rowHtml"></slot>
</view> </view>
</view> </view>
...@@ -241,40 +176,40 @@ export default { ...@@ -241,40 +176,40 @@ export default {
cellBoxStyle: String, cellBoxStyle: String,
index: Number index: Number
}, },
data () { data() {
return { return {
userInfo: {} userInfo: {}
} }
}, },
mounted () { mounted() {
this.userInfo = uni.$storage.get('userInfo') || {} this.userInfo = uni.$storage.get('userInfo') || {}
}, },
methods: { methods: {
onCellClick (item) { onCellClick(item) {
if (item.type === 'select') { if (item.type === 'select') {
this.$emit('handleCell', item, this.index) this.$emit('handleCell', item, this.index)
} }
}, },
onRadioChange (e, item) { onRadioChange(e, item) {
this.$emit('radioChange', e, item) this.$emit('radioChange', e, item)
}, },
onValueClick (item) { onValueClick(item) {
this.$emit('handleValue', item) this.$emit('handleValue', item)
}, },
handleBlur (e, item) { handleBlur(e, item) {
this.$emit('inputBlur', e, item, this.index) this.$emit('inputBlur', e, item, this.index)
}, },
collapseAll (index) { collapseAll(index) {
this.$emit('collapseAll', index) this.$emit('collapseAll', index)
}, },
confirmCalendar (e, key) { confirmCalendar(e, key) {
this.$emit('confirmCalendar', e, key, this.index) this.$emit('confirmCalendar', e, key, this.index)
}, },
openCalendar (index, ind) { openCalendar(index, ind) {
let [calendar] = this.$refs[`calendar-${index}-${ind}`] let [calendar] = this.$refs[`calendar-${index}-${ind}`]
if (calendar) calendar.open() if (calendar) calendar.open()
}, },
onLabelTipsClick (item) { onLabelTipsClick(item) {
this.$emit('handleLabelTips', item) this.$emit('handleLabelTips', item)
} }
} }
...@@ -291,37 +226,45 @@ export default { ...@@ -291,37 +226,45 @@ export default {
} }
} }
} }
.cell-box { .cell-box {
background-color: #fff; background-color: #fff;
border-radius: toRpx(16); border-radius: toRpx(16);
overflow: hidden; overflow: hidden;
margin-top: toRpx(18); margin-top: toRpx(18);
} }
.cell-title { .cell-title {
min-height: 72rpx; min-height: 72rpx;
padding: 0 32rpx; padding: 0 32rpx;
color: #777; color: #777;
font-size: 24rpx; font-size: 24rpx;
.collapse-control { .collapse-control {
margin-left: auto; margin-left: auto;
width: 48rpx; width: 48rpx;
height: 48rpx; height: 48rpx;
transition: all 0.15s; transition: all 0.15s;
.sprite-icon { .sprite-icon {
zoom: 2; zoom: 2;
} }
} }
.down { .down {
transform: rotate(180deg); transform: rotate(180deg);
} }
} }
.cell-row { .cell-row {
padding-left: toRpx(32); padding-left: toRpx(32);
transition: all 0.15s; transition: all 0.15s;
} }
.cell-hide { .cell-hide {
height: 0; height: 0;
} }
.cell { .cell {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -348,12 +291,14 @@ export default { ...@@ -348,12 +291,14 @@ export default {
font-size: toRpx(28); font-size: toRpx(28);
display: flex; display: flex;
align-items: center; align-items: center;
.label-tips { .label-tips {
margin-left: 8rpx; margin-left: 8rpx;
color: #4673ff; color: #4673ff;
font-size: 24rpx; font-size: 24rpx;
font-weight: 400; font-weight: 400;
} }
.sprite-icon { .sprite-icon {
margin-right: toRpx(8); margin-right: toRpx(8);
} }
...@@ -389,10 +334,12 @@ export default { ...@@ -389,10 +334,12 @@ export default {
font-size: toRpx(28); font-size: toRpx(28);
display: flex; display: flex;
align-items: center; align-items: center;
.suffix { .suffix {
flex-shrink: 0; flex-shrink: 0;
margin-left: 16rpx; margin-left: 16rpx;
} }
uni-input { uni-input {
font-size: toRpx(28); font-size: toRpx(28);
} }
...@@ -408,6 +355,7 @@ export default { ...@@ -408,6 +355,7 @@ export default {
height: 100%; height: 100%;
width: 100%; width: 100%;
word-break: break-all; word-break: break-all;
.sprite-icon { .sprite-icon {
margin-bottom: toRpx(2); margin-bottom: toRpx(2);
} }
...@@ -423,6 +371,7 @@ export default { ...@@ -423,6 +371,7 @@ export default {
.sprite-icon { .sprite-icon {
margin-left: toRpx(8); margin-left: toRpx(8);
} }
.input-placeholder { .input-placeholder {
color: #999ea8 !important; color: #999ea8 !important;
font-size: toRpx(28) !important; font-size: toRpx(28) !important;
...@@ -437,6 +386,7 @@ export default { ...@@ -437,6 +386,7 @@ export default {
padding: 0; padding: 0;
background-color: transparent; background-color: transparent;
} }
.input-bottom { .input-bottom {
min-height: toRpx(100); min-height: toRpx(100);
line-height: toRpx(56); line-height: toRpx(56);
......
...@@ -517,7 +517,7 @@ export default { ...@@ -517,7 +517,7 @@ export default {
/** /**
* 获取员工场景小分类 * 获取员工场景小分类
*/ */
this.getStaffBaseSceneCodeList() // this.getStaffBaseSceneCodeList()
/** /**
* 获取门店场景小分类 * 获取门店场景小分类
*/ */
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 3 const index = 1
/** /**
* *
0本地 0本地
......
...@@ -98,13 +98,13 @@ export default { ...@@ -98,13 +98,13 @@ export default {
if (currentPage.route == 'pages/boutique/tool/index') { if (currentPage.route == 'pages/boutique/tool/index') {
if (isNewReport) if (isNewReport)
uni.redirectTo({ uni.redirectTo({
url: `/pages/common/dailyNewspaper/index?componentName=StaffDailyReport&currentDate=${formattedDate}` url: `/pages/common/dailyNewspaper/index?componentName=StoreDailyReport&currentDate=${formattedDate}`
}) })
else uni.$emit('jumpToDailyReport', formattedDate) else uni.$emit('jumpToDailyReport', formattedDate)
} else { } else {
if (isNewReport) if (isNewReport)
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/dailyNewspaper/index?componentName=StaffDailyReport&currentDate=${formattedDate}` url: `/pages/common/dailyNewspaper/index?componentName=StoreDailyReport&currentDate=${formattedDate}`
}) })
else else
uni.navigateTo({ uni.navigateTo({
...@@ -207,6 +207,7 @@ export default { ...@@ -207,6 +207,7 @@ export default {
sceneType: 0 sceneType: 0
}) })
.then(data => { .then(data => {
return resolve(false)
if (data) { if (data) {
// 获取当前日期 // 获取当前日期
let currentDate = new Date() let currentDate = new Date()
...@@ -226,13 +227,13 @@ export default { ...@@ -226,13 +227,13 @@ export default {
if (currentPage.route == 'pages/equity/tool/index') { if (currentPage.route == 'pages/equity/tool/index') {
if (isNewReport) if (isNewReport)
uni.redirectTo({ uni.redirectTo({
url: `/pages/common/dailyNewspaper/index?componentName=StaffDailyReport&currentDate=${formattedDate}` url: `/pages/common/dailyNewspaper/index?componentName=StoreDailyReport&currentDate=${formattedDate}`
}) })
else uni.$emit('jumpToDailyReport', formattedDate) else uni.$emit('jumpToDailyReport', formattedDate)
} else { } else {
if (isNewReport) if (isNewReport)
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/dailyNewspaper/index?componentName=StaffDailyReport&currentDate=${formattedDate}` url: `/pages/common/dailyNewspaper/index?componentName=StoreDailyReport&currentDate=${formattedDate}`
}) })
else else
uni.navigateTo({ uni.navigateTo({
......
...@@ -3,11 +3,13 @@ ...@@ -3,11 +3,13 @@
<view class="order-card" @click.stop="cardClick"> <view class="order-card" @click.stop="cardClick">
<view class="order-card-top-box flex justify-between"> <view class="order-card-top-box flex justify-between">
<text>{{ orderCardDetail.customer.customerName }}</text> <text>{{ orderCardDetail.customer.customerName }}</text>
<view class="status text-center" :style="{ color: orderCardDetail.statuscolor, 'background-color': orderCardDetail.statusbackground }"> <view class="status text-center"
:style="{ color: orderCardDetail.statuscolor, 'background-color': orderCardDetail.statusbackground }">
<view v-if="orderCardDetail.status == 1 || orderCardDetail.status == 3"> <view v-if="orderCardDetail.status == 1 || orderCardDetail.status == 3">
<view v-if="status[orderCardDetail.status].background"> <view v-if="status[orderCardDetail.status].background">
<view class="arc y-center"> <view class="arc y-center">
<view class="outside box-center" :style="{ 'background-color': status[orderCardDetail.status].background }" /> <view class="outside box-center"
:style="{ 'background-color': status[orderCardDetail.status].background }" />
<view class="inside box-center" :style="{ 'background-color': status[orderCardDetail.status].color }" /> <view class="inside box-center" :style="{ 'background-color': status[orderCardDetail.status].color }" />
</view> </view>
</view> </view>
...@@ -18,15 +20,15 @@ ...@@ -18,15 +20,15 @@
</view> </view>
</view> </view>
<view> <view>
<view class="goods-list" :style="{ paddingBottom: cardGoodsList.length < 1 ? '0' : '' }" v-if="cardGoodsList.length > 0"> <view class="goods-list" :style="{ paddingBottom: cardGoodsList.length < 1 ? '0' : '' }"
v-if="cardGoodsList.length > 0">
<view> <view>
<view v-for="(i, sindex) in cardGoodsList" :key="sindex" class="goods flex justify-between" :class="{ 'no-margin': cardGoodsList.length === 1 }" v-if="orderCardDetail.showAllGoodsListFlag ? true : sindex < 2"> <view v-for="(i, sindex) in cardGoodsList" :key="sindex" class="goods flex justify-between"
:class="{ 'no-margin': cardGoodsList.length === 1 }"
v-if="orderCardDetail.showAllGoodsListFlag ? true : sindex < 2">
<view class="goods-name flex align-center"> <view class="goods-name flex align-center">
<view class="point"></view> <view class="point"></view>
<view <view v-if="shouldShowMarketingIcon(i)" class="sprite-icon icon-activeIcon marketing-icon"></view>
v-if="shouldShowMarketingIcon(i)"
class="sprite-icon icon-activeIcon marketing-icon"
></view>
<text class="goods-name-text text-hide">{{ getGoodsDisplayName(i) }}</text> <text class="goods-name-text text-hide">{{ getGoodsDisplayName(i) }}</text>
</view> </view>
<view class="goods-price"> <view class="goods-price">
...@@ -75,41 +77,53 @@ ...@@ -75,41 +77,53 @@
</view> </view>
</view> </view>
<view class="info-box"> <view class="info-box">
<view class="order-list align-center" v-for="(item, sindex) in orderCardDetail.deliveryUserId ? pointsMultiObj : orderObj" :key="sindex"> <view class="order-list align-center"
v-for="(item, sindex) in orderCardDetail.deliveryUserId ? pointsMultiObj : orderObj" :key="sindex">
<view class="order flex align-center"> <view class="order flex align-center">
<view class="order-label">{{ item.label }}</view> <view class="order-label">{{ item.label }}</view>
<view class="order-value flex"> <view class="order-value flex">
<view v-if="item.arr" class="flex"> <template v-if="item.format">
<view v-if="orderCardDetail[item.arr[1]]" class="flex"> {{ item.format(orderCardDetail) }}
<view v-for="(k, arr_index) in item.arr" :key="arr_index" class="flex"> </template>
<view class="order-value-item text-hide flex"> <template v-else>
<view v-if="arr_index == 1"> <view v-if="item.arr" class="flex">
<text class="split">|</text> <view v-if="orderCardDetail[item.arr[1]]" class="flex">
<view v-for="(k, arr_index) in item.arr" :key="arr_index" class="flex">
<view class="order-value-item text-hide flex">
<view v-if="arr_index == 1">
<text class="split">|</text>
</view>
{{ orderCardDetail[k] }}
</view> </view>
{{ orderCardDetail[k] }}
</view> </view>
</view> </view>
<view v-else>{{ orderCardDetail[item.key] || '' }}</view>
</view> </view>
<view v-else>{{ orderCardDetail[item.key] || '' }}</view> <view v-else>{{ orderCardDetail[item.key] || '' }}</view>
</view> </template>
<view v-else>{{ orderCardDetail[item.key] || '' }}</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<!-- 支付方式 --> <!-- 支付方式 -->
<view class="order-payType flex" v-if="orderCardDetail.selectPayType !== undefined && orderCardDetail.selectPayType !== null"> <view class="order-payType flex"
v-if="orderCardDetail.selectPayType !== undefined && orderCardDetail.selectPayType !== null">
<view class="payType flex align-center"> <view class="payType flex align-center">
<view class="payType-label">支付方式</view> <view class="payType-label">支付方式</view>
<view class="payType-value flex align-center"> <view class="payType-value flex align-center">
{{ payType[orderCardDetail['selectPayType']] }} {{ payType[orderCardDetail['selectPayType']] }}
<image v-if="orderCardDetail.selectPayType == 1" class="payType-image" :src="IMG_URL + 'miniProgram/wxPay.png'" mode="" /> <image v-if="orderCardDetail.selectPayType == 1" class="payType-image"
<image v-if="orderCardDetail.selectPayType == 2" class="payType-image" :src="IMG_URL + 'miniProgram/store_pay.png'" mode="" /> :src="IMG_URL + 'miniProgram/wxPay.png'" mode="" />
<image v-if="orderCardDetail.selectPayType == 3" class="payType-image" :src="IMG_URL + 'miniProgram/posPay.png'" mode="" /> <image v-if="orderCardDetail.selectPayType == 2" class="payType-image"
:src="IMG_URL + 'miniProgram/store_pay.png'" mode="" />
<image v-if="orderCardDetail.selectPayType == 3" class="payType-image"
:src="IMG_URL + 'miniProgram/posPay.png'" mode="" />
</view> </view>
</view> </view>
<view v-if="orderCardDetail.status != 1 && orderCardDetail.selectPayType != 0 && orderCardDetail.total_price != 0" class="order-price flex align-center"> <view
v-if="orderCardDetail.status != 1 && orderCardDetail.selectPayType != 0 && orderCardDetail.total_price != 0"
class="order-price flex align-center">
<view class="order-price-label">实付金额</view> <view class="order-price-label">实付金额</view>
<view class="price"> <view class="price">
<text class="unit">¥</text> <text class="unit">¥</text>
...@@ -123,7 +137,8 @@ ...@@ -123,7 +137,8 @@
<view class="staff-label">施工技师</view> <view class="staff-label">施工技师</view>
<view class="staff-value">{{ orderCardDetail.technicianName }}</view> <view class="staff-value">{{ orderCardDetail.technicianName }}</view>
</view> </view>
<PublishPopup ref="recordOrderPopup" popupClass="recordOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="请选择录单入口"> <PublishPopup ref="recordOrderPopup" popupClass="recordOrderPopup" type="center" :showClose="true"
:isMaskClick="false" title="请选择录单入口">
<template #content> <template #content>
<view class="modatcontent"> <view class="modatcontent">
<view class="modalbox com" :class="selectType == 1 ? 'act' : ''" @click="changeType(1)"> <view class="modalbox com" :class="selectType == 1 ? 'act' : ''" @click="changeType(1)">
...@@ -134,11 +149,14 @@ ...@@ -134,11 +149,14 @@
<view class="sprite-icon icon-defeatOrder"></view> <view class="sprite-icon icon-defeatOrder"></view>
战败下单 战败下单
</view> </view>
<view v-if="isSettingExpiredTraffic && !isScan" class="modalbox cancle" :class="selectType == 3 ? 'act' : ''" @click="changeType(3)"> <view v-if="isSettingExpiredTraffic && !isScan" class="modalbox cancle" :class="selectType == 3 ? 'act' : ''"
@click="changeType(3)">
<view class="sprite-icon icon-isExpiredTrafficIcon"></view> <view class="sprite-icon icon-isExpiredTrafficIcon"></view>
失效客户 失效客户
</view> </view>
<view class="modalbox cancle" v-if="orderCardDetail.constructionFlag !== 'Y' && orderCardDetail.selectPayType !== 1 && orderCardDetail.selectPayType !== 3 && orderCardDetail.selectPayType !== 4 && orderCardDetail.status !== 9" :class="selectType == 4 ? 'act' : ''" @click="changeType(4)"> <view class="modalbox cancle"
v-if="orderCardDetail.constructionFlag !== 'Y' && orderCardDetail.selectPayType !== 1 && orderCardDetail.selectPayType !== 3 && orderCardDetail.selectPayType !== 4 && orderCardDetail.status !== 9"
:class="selectType == 4 ? 'act' : ''" @click="changeType(4)">
<view class="sprite-icon icon-revokeOrder"></view> <view class="sprite-icon icon-revokeOrder"></view>
撤销工单 撤销工单
</view> </view>
...@@ -152,7 +170,9 @@ ...@@ -152,7 +170,9 @@
</template> </template>
</PublishPopup> </PublishPopup>
<!-- 学习中心权限弹窗 --> <!-- 学习中心权限弹窗 -->
<StudyPopup :show.sync="showStudyPermissionPopup" title="" :width="848" :height="870" :topImage="require('@/assets/images/common/warning-notice.webp')" :topImageWidth="848" :topImageHeight="248" style="overflow: hidden"> <StudyPopup :show.sync="showStudyPermissionPopup" title="" :width="848" :height="870"
:topImage="require('@/assets/images/common/warning-notice.webp')" :topImageWidth="848" :topImageHeight="248"
style="overflow: hidden">
<StudyCenterPermissionPopup :lockReason="lockReason" @confirm="handleStudyPermissionConfirm" /> <StudyCenterPermissionPopup :lockReason="lockReason" @confirm="handleStudyPermissionConfirm" />
</StudyPopup> </StudyPopup>
</view> </view>
...@@ -167,6 +187,8 @@ import StudyPopup from '@/components/StudyPopup.vue' ...@@ -167,6 +187,8 @@ import StudyPopup from '@/components/StudyPopup.vue'
import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue' import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue'
import { shouldShowMarketingIcon as checkMarketingIcon } from '@/utils/marketingFlag' import { shouldShowMarketingIcon as checkMarketingIcon } from '@/utils/marketingFlag'
import { debounce } from 'lodash' import { debounce } from 'lodash'
import dayjs from 'dayjs'
export default { export default {
mixins: [interceptionMixin], mixins: [interceptionMixin],
name: 'OrderCard', name: 'OrderCard',
...@@ -203,6 +225,9 @@ export default { ...@@ -203,6 +225,9 @@ export default {
return [...singles, ...packageList] return [...singles, ...packageList]
} }
return subList return subList
},
customerTags() {
return order_mixins.data.CUSTOMER_TAGS || {}
} }
}, },
data() { data() {
...@@ -216,6 +241,22 @@ export default { ...@@ -216,6 +241,22 @@ export default {
key: 'baseSceneName' key: 'baseSceneName'
}, },
{ {
label: '日报标签',
key: 'customerTags',
format: (item) => {
let val = item.customer?.customerTags
return val ? val.split(',').map(e => this.customerTags[e] || e).join('/') : '-'
}
},
{
label: '实际交付日期',
key: 'actualDeliveryDate',
format: (item) => {
let val = item.customer?.actualDeliveryDate
return val ? dayjs(val).format('YYYY-MM-DD') : '-'
}
},
{
label: '销售顾问 /录单员', label: '销售顾问 /录单员',
arr: ['merchantName', 'employeeName'] arr: ['merchantName', 'employeeName']
}, },
...@@ -242,6 +283,22 @@ export default { ...@@ -242,6 +283,22 @@ export default {
key: 'baseSceneName' key: 'baseSceneName'
}, },
{ {
label: '日报标签',
key: 'customerTags',
format: (item) => {
let val = item.customer?.customerTags
return val ? val.split(',').map(e => this.customerTags[e] || e).join('/') : '-'
}
},
{
label: '实际交付日期',
key: 'actualDeliveryDate',
format: (item) => {
let val = item.customer?.actualDeliveryDate
return val ? dayjs(val).format('YYYY-MM-DD') : '-'
}
},
{
label: '销售顾问', label: '销售顾问',
arr: ['merchantName', 'employeeName'] arr: ['merchantName', 'employeeName']
}, },
...@@ -321,8 +378,8 @@ export default { ...@@ -321,8 +378,8 @@ export default {
} else if (userType == 2) { } else if (userType == 2) {
item item
? this.showSelectType({ ? this.showSelectType({
item item
}) })
: this.$emit('jump', name, { paramsData: this.orderCardDetail, type: 'createWithPay' }) : this.$emit('jump', name, { paramsData: this.orderCardDetail, type: 'createWithPay' })
} else { } else {
utils.showNoAccess() utils.showNoAccess()
...@@ -429,14 +486,17 @@ export default { ...@@ -429,14 +486,17 @@ export default {
width: toRpx(848); width: toRpx(848);
height: toRpx(968); height: toRpx(968);
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%); background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
.popup-top-box { .popup-top-box {
text-align: left; text-align: left;
padding: toRpx(48) toRpx(64); padding: toRpx(48) toRpx(64);
&-title { &-title {
color: #1a1a1a; color: #1a1a1a;
font-size: toRpx(40); font-size: toRpx(40);
font-weight: 500; font-weight: 500;
} }
.icon-close { .icon-close {
font-size: toRpx(40) !important; font-size: toRpx(40) !important;
color: rgba(26, 26, 26, 0.6) !important; color: rgba(26, 26, 26, 0.6) !important;
...@@ -446,6 +506,7 @@ export default { ...@@ -446,6 +506,7 @@ export default {
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: 0 toRpx(64); padding: 0 toRpx(64);
.modalbox { .modalbox {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -458,9 +519,11 @@ export default { ...@@ -458,9 +519,11 @@ export default {
color: #292d33; color: #292d33;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 500; font-weight: 500;
& + .modalbox {
&+.modalbox {
margin-top: toRpx(16); margin-top: toRpx(16);
} }
.sprite-icon { .sprite-icon {
margin: 0 toRpx(24) 0 toRpx(32); margin: 0 toRpx(24) 0 toRpx(32);
} }
...@@ -471,6 +534,7 @@ export default { ...@@ -471,6 +534,7 @@ export default {
background: #347bff1a; background: #347bff1a;
} }
} }
.footer-box { .footer-box {
width: 100%; width: 100%;
height: toRpx(164); height: toRpx(164);
...@@ -478,6 +542,7 @@ export default { ...@@ -478,6 +542,7 @@ export default {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
border-radius: 0 0 toRpx(32) toRpx(32); border-radius: 0 0 toRpx(32) toRpx(32);
.btn { .btn {
width: 40%; width: 40%;
height: toRpx(80); height: toRpx(80);
...@@ -489,9 +554,11 @@ export default { ...@@ -489,9 +554,11 @@ export default {
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 500; font-weight: 500;
} }
.cancle-btn { .cancle-btn {
background: #f0f1f5; background: #f0f1f5;
} }
.sure-btn { .sure-btn {
color: #fff; color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
...@@ -499,6 +566,7 @@ export default { ...@@ -499,6 +566,7 @@ export default {
} }
} }
} }
.order-card { .order-card {
padding: toRpx(36) toRpx(32); padding: toRpx(36) toRpx(32);
border-radius: toRpx(24); border-radius: toRpx(24);
...@@ -507,6 +575,7 @@ export default { ...@@ -507,6 +575,7 @@ export default {
box-shadow: 0 toRpx(8) toRpx(24) 0 #2a61eb1a; box-shadow: 0 toRpx(8) toRpx(24) 0 #2a61eb1a;
margin-bottom: toRpx(24); margin-bottom: toRpx(24);
} }
.status { .status {
padding: toRpx(8); padding: toRpx(8);
font-size: toRpx(24); font-size: toRpx(24);
...@@ -514,6 +583,7 @@ export default { ...@@ -514,6 +583,7 @@ export default {
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(1) solid transparent; border: toRpx(1) solid transparent;
} }
.errorBox { .errorBox {
background: #f7f8fa; background: #f7f8fa;
border-radius: toRpx(16); border-radius: toRpx(16);
...@@ -522,18 +592,21 @@ export default { ...@@ -522,18 +592,21 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
margin-bottom: toRpx(20); margin-bottom: toRpx(20);
} }
.errorTips { .errorTips {
color: #eb4e4e; color: #eb4e4e;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
margin-left: toRpx(16); margin-left: toRpx(16);
} }
.priceName { .priceName {
color: #5a5e66; color: #5a5e66;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
margin-left: toRpx(30); margin-left: toRpx(30);
} }
.info-box { .info-box {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -564,6 +637,7 @@ export default { ...@@ -564,6 +637,7 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #666666; color: #666666;
font-weight: 400; font-weight: 400;
.split { .split {
margin: 0 toRpx(6); margin: 0 toRpx(6);
} }
...@@ -575,6 +649,7 @@ export default { ...@@ -575,6 +649,7 @@ export default {
width: 50%; width: 50%;
padding: toRpx(10) toRpx(20) toRpx(10) 0; padding: toRpx(10) toRpx(20) toRpx(10) 0;
box-sizing: border-box; box-sizing: border-box;
.payType-label { .payType-label {
width: toRpx(120); width: toRpx(120);
margin-right: toRpx(24); margin-right: toRpx(24);
...@@ -595,6 +670,7 @@ export default { ...@@ -595,6 +670,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding-right: 0; padding-right: 0;
padding-left: toRpx(20); padding-left: toRpx(20);
.order-price-label { .order-price-label {
width: toRpx(120); width: toRpx(120);
margin-right: toRpx(24); margin-right: toRpx(24);
...@@ -628,6 +704,7 @@ export default { ...@@ -628,6 +704,7 @@ export default {
width: 50%; width: 50%;
padding: toRpx(10) toRpx(20) toRpx(10) 0; padding: toRpx(10) toRpx(20) toRpx(10) 0;
box-sizing: border-box; box-sizing: border-box;
.staff-label { .staff-label {
width: toRpx(120); width: toRpx(120);
margin-right: toRpx(24); margin-right: toRpx(24);
...@@ -635,6 +712,7 @@ export default { ...@@ -635,6 +712,7 @@ export default {
font-weight: 400; font-weight: 400;
color: #999ea8; color: #999ea8;
} }
.staff-value { .staff-value {
font-size: toRpx(24); font-size: toRpx(24);
color: #666666; color: #666666;
...@@ -650,14 +728,17 @@ export default { ...@@ -650,14 +728,17 @@ export default {
background: #f5f7fa; background: #f5f7fa;
margin: toRpx(20) 0; margin: toRpx(20) 0;
padding: toRpx(20) toRpx(32); padding: toRpx(20) toRpx(32);
.goods { .goods {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
margin-bottom: toRpx(16); margin-bottom: toRpx(16);
&.no-margin { &.no-margin {
margin-bottom: 0; margin-bottom: 0;
} }
.goods-name { .goods-name {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
...@@ -686,6 +767,7 @@ export default { ...@@ -686,6 +767,7 @@ export default {
} }
} }
} }
.goods-more { .goods-more {
color: #4673ff; color: #4673ff;
font-size: toRpx(24); font-size: toRpx(24);
......
import dayjs from 'dayjs'
const CUSTOMER_TAGS = {
1: '已触客',
2: '已拉群',
3: '已交付引荐',
4: '首保维保客户 ',
5: '事故车客户'
}
module.exports = { module.exports = {
data: { data: {
CUSTOMER_TAGS,
orderObj: [ orderObj: [
{ {
label: '工单编号', label: '工单编号',
...@@ -29,6 +38,18 @@ module.exports = { ...@@ -29,6 +38,18 @@ module.exports = {
key: 'customerName' key: 'customerName'
}, },
{ {
label: '日报标签',
key: 'customerTags',
format: (data) => {
return data.split(',').map(item => CUSTOMER_TAGS[item]).join('/')
}
},
{
label:'实际交付日期',
key: 'actualDeliveryDate',
format: (val) => dayjs(val).format('YYYY-MM-DD')
},
{
label: '性别', label: '性别',
key: 'customerSex', key: 'customerSex',
enum: { enum: {
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
<text class="fs-32 fw-7">等待客户付款</text> <text class="fs-32 fw-7">等待客户付款</text>
<text class="fs-26 ml-12">点击下一步,锁定并生成工单码。</text> <text class="fs-26 ml-12">点击下一步,锁定并生成工单码。</text>
</view> </view>
<view class="top-tips flex align-center" v-if="orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7"> <view class="top-tips flex align-center"
v-if="orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7">
<view class="fs-32 fw-7">请上传付款凭证结束工单</view> <view class="fs-32 fw-7">请上传付款凭证结束工单</view>
<view class="fs-26 ml-12">点击确认工单,提交付款凭证。</view> <view class="fs-26 ml-12">点击确认工单,提交付款凭证。</view>
</view> </view>
...@@ -14,7 +15,9 @@ ...@@ -14,7 +15,9 @@
<view class="fs-32 fw-7">请提交客户拒绝升级原因</view> <view class="fs-32 fw-7">请提交客户拒绝升级原因</view>
<view class="fs-26 ml-12">点击确认工单,根据操作结束工单。</view> <view class="fs-26 ml-12">点击确认工单,根据操作结束工单。</view>
</view> </view>
<view v-if="!isErrorOrder && (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7)" class="box date-box box-shell flex justify-between align-center"> <view
v-if="!isErrorOrder && (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7)"
class="box date-box box-shell flex justify-between align-center">
<view class="date-box-label"> <view class="date-box-label">
收款时间 收款时间
<text class="required">*</text> <text class="required">*</text>
...@@ -31,10 +34,7 @@ ...@@ -31,10 +34,7 @@
<view class="meal-box" v-for="(item, index) in orderInfo.packageGoodsList"> <view class="meal-box" v-for="(item, index) in orderInfo.packageGoodsList">
<view class="meal-hd flex justify-between align-center"> <view class="meal-hd flex justify-between align-center">
<view class="meal-hd-name flex align-center"> <view class="meal-hd-name flex align-center">
<view <view v-if="shouldShowMarketingIcon(item)" class="sprite-icon icon-activeIcon marketing-icon"></view>
v-if="shouldShowMarketingIcon(item)"
class="sprite-icon icon-activeIcon marketing-icon"
></view>
<view>{{ item.packageAlias || item.packageName }}</view> <view>{{ item.packageAlias || item.packageName }}</view>
</view> </view>
<view class="price">¥{{ item.finalPrice }}</view> <view class="price">¥{{ item.finalPrice }}</view>
...@@ -59,10 +59,7 @@ ...@@ -59,10 +59,7 @@
<view class="good mt-16" v-for="(item, index) in orderInfo.subOrderList"> <view class="good mt-16" v-for="(item, index) in orderInfo.subOrderList">
<view class="flex justify-between align-center"> <view class="flex justify-between align-center">
<view class="good-name flex align-center"> <view class="good-name flex align-center">
<view <view v-if="shouldShowMarketingIcon(item)" class="sprite-icon icon-activeIcon marketing-icon"></view>
v-if="shouldShowMarketingIcon(item)"
class="sprite-icon icon-activeIcon marketing-icon"
></view>
<text class="good-name-text text-hide">商品名称:{{ replaceItemText(item.upgradeGoodsName) || '' }}</text> <text class="good-name-text text-hide">商品名称:{{ replaceItemText(item.upgradeGoodsName) || '' }}</text>
</view> </view>
<text class="good-price">¥{{ item.price }}</text> <text class="good-price">¥{{ item.price }}</text>
...@@ -78,7 +75,8 @@ ...@@ -78,7 +75,8 @@
</view> </view>
<view class="flex align-center py-16 coupon" v-if="orderInfo"> <view class="flex align-center py-16 coupon" v-if="orderInfo">
<view class="sprite-icon icon-coupon"></view> <view class="sprite-icon icon-coupon"></view>
<text class="fs-28 coupon-name">{{ orderInfo.couponName || '' }}{{ orderInfo.customerCoupon.customerCouponCode || '' }}({{ orderInfo.customerCoupon.employeeName || '' }})</text> <text class="fs-28 coupon-name">{{ orderInfo.couponName || '' }}{{ orderInfo.customerCoupon.customerCouponCode
|| '' }}({{ orderInfo.customerCoupon.employeeName || '' }})</text>
</view> </view>
<view class="flex justify-end align-center mt-24" v-if="orderInfo"> <view class="flex justify-end align-center mt-24" v-if="orderInfo">
<text class="good-total-lable">商品总金额:</text> <text class="good-total-lable">商品总金额:</text>
...@@ -113,11 +111,13 @@ ...@@ -113,11 +111,13 @@
<view class="customize-btn" v-if="item.dateChange" @click.stop="customizeDate">自定义</view> <view class="customize-btn" v-if="item.dateChange" @click.stop="customizeDate">自定义</view>
</view> </view>
<view v-if="(orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length"> <view
v-if="(orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length">
<view class="flex align-center pt-8"> <view class="flex align-center pt-8">
<view class="label">付款凭证</view> <view class="label">付款凭证</view>
<view class="image-box"> <view class="image-box">
<view class="value" @click.stop="previewImage" v-for="(item, index) in orderInfo.payVoucherList" :key="index"> <view class="value" @click.stop="previewImage" v-for="(item, index) in orderInfo.payVoucherList"
:key="index">
<view class="image"> <view class="image">
<!-- <image src="{{item.payVoucher}}" /> --> <!-- <image src="{{item.payVoucher}}" /> -->
</view> </view>
...@@ -144,19 +144,24 @@ ...@@ -144,19 +144,24 @@
<view class="label">{{ item.label }}</view> <view class="label">{{ item.label }}</view>
<view class="flex flex-1"> <view class="flex flex-1">
<view class="value" :style="{ color: item.color || '#333' }"> <view class="value" :style="{ color: item.color || '#333' }">
<view v-if="item.arr"> <template v-if="item.format">
<view v-if="orderInfo[item.arr[1]]" class="flex"> {{ item.format(orderInfo[item.key]) }}
<view v-for="(i, ind) in item.arr" :key="ind"> </template>
<view class="value-item text-hide"> <template v-else>
<text v-if="ind == 1" class="lineText">|</text> <view v-if="item.arr">
{{ orderInfo[i] }} <view v-if="orderInfo[item.arr[1]]" class="flex">
<view v-for="(i, ind) in item.arr" :key="ind">
<view class="value-item text-hide">
<text v-if="ind == 1" class="lineText">|</text>
{{ orderInfo[i] }}
</view>
</view> </view>
</view> </view>
</view> </view>
</view> <view v-else>
<view v-else> {{ item.enum ? item.enum[orderInfo[item.key]] : orderInfo[item.key] || '' }}
{{ item.enum ? item.enum[orderInfo[item.key]] : orderInfo[item.key] || '' }} </view>
</view> </template>
</view> </view>
<view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])"> <view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view> <view class="sprite-icon icon-icon-copy copy"></view>
...@@ -179,7 +184,8 @@ ...@@ -179,7 +184,8 @@
<view class="confirm btn" @click.stop="confirm">确认</view> <view class="confirm btn" @click.stop="confirm">确认</view>
</view> </view>
</view> </view>
<PublishPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" @confirm="confirmTips"> <PublishPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false"
@confirm="confirmTips">
<template #content> <template #content>
<view> <view>
<image class="tipsPopupBg" :src="popupBg" /> <image class="tipsPopupBg" :src="popupBg" />
...@@ -192,7 +198,8 @@ ...@@ -192,7 +198,8 @@
</view> </view>
</template> </template>
</PublishPopup> </PublishPopup>
<PublishPopup ref="calendarPopup" popupClass="calendarPopup" :showClose="false" :showTitle="false" @confirm="confirmCalendar"> <PublishPopup ref="calendarPopup" popupClass="calendarPopup" :showClose="false" :showTitle="false"
@confirm="confirmCalendar">
<template #content> <template #content>
<uni-calendar class="calendar" :showMonth="false" :endDate="endDate" @change="calendarChange" /> <uni-calendar class="calendar" :showMonth="false" :endDate="endDate" @change="calendarChange" />
</template> </template>
...@@ -213,7 +220,8 @@ ...@@ -213,7 +220,8 @@
<view class="pos-popup" v-if="orderInfo"> <view class="pos-popup" v-if="orderInfo">
<view class="price">¥{{ orderInfo.total_price }}</view> <view class="price">¥{{ orderInfo.total_price }}</view>
<image class="qrcode" :src="orderInfo.selectPayType == 1 ? wxqrcode : posQrCode"></image> <image class="qrcode" :src="orderInfo.selectPayType == 1 ? wxqrcode : posQrCode"></image>
<view class="level-1-tips">{{ orderInfo.selectPayType == 1 ? '请让客户打开微信扫描上方付款码进行支付' : '请使用POS机扫描此码,再向客户收款' }}</view> <view class="level-1-tips">{{ orderInfo.selectPayType == 1 ? '请让客户打开微信扫描上方付款码进行支付' : '请使用POS机扫描此码,再向客户收款' }}
</view>
<view class="level-2-tips">超过24小时未支付将关闭此订单</view> <view class="level-2-tips">超过24小时未支付将关闭此订单</view>
</view> </view>
</template> </template>
...@@ -273,7 +281,7 @@ export default { ...@@ -273,7 +281,7 @@ export default {
mounted() { mounted() {
// this.getPositionList() // this.getPositionList()
// // "this.transmissionOfData.orderCode" // // "this.transmissionOfData.orderCode"
// this.getDetail('250826172036851') // this.getDetail('260812100446807')
// this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss') // this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
}, },
methods: { methods: {
...@@ -663,11 +671,13 @@ export default { ...@@ -663,11 +671,13 @@ export default {
height: toRpx(744); height: toRpx(744);
border-radius: toRpx(42); border-radius: toRpx(42);
background: rgb(255, 255, 255) !important; background: rgb(255, 255, 255) !important;
.tipsPopupBg { .tipsPopupBg {
border-radius: toRpx(42) toRpx(42) 0 0; border-radius: toRpx(42) toRpx(42) 0 0;
width: 100%; width: 100%;
height: toRpx(244); height: toRpx(244);
} }
.title { .title {
color: #333333; color: #333333;
font-size: toRpx(40); font-size: toRpx(40);
...@@ -675,48 +685,58 @@ export default { ...@@ -675,48 +685,58 @@ export default {
text-align: center; text-align: center;
margin-top: toRpx(48); margin-top: toRpx(48);
} }
.tipsConent { .tipsConent {
color: #666666; color: #666666;
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 400; font-weight: 400;
padding: toRpx(16) toRpx(64); padding: toRpx(16) toRpx(64);
line-height: toRpx(48); line-height: toRpx(48);
text { text {
color: #347bff; color: #347bff;
} }
} }
} }
::v-deep .calendarPopup .uni-popup__wrapper { ::v-deep .calendarPopup .uni-popup__wrapper {
width: 100%; width: 100%;
height: 62vh; height: 62vh;
.calendar { .calendar {
width: 100%; width: 100%;
height: calc(100% - #{toRpx(164)}); height: calc(100% - #{toRpx(164)});
} }
} }
::v-deep .payPopup .uni-popup__wrapper { ::v-deep .payPopup .uni-popup__wrapper {
width: 60%; width: 60%;
border-radius: toRpx(48); border-radius: toRpx(48);
background: #ffffff !important; background: #ffffff !important;
.popup-top { .popup-top {
border-radius: toRpx(48) toRpx(48) 0 0; border-radius: toRpx(48) toRpx(48) 0 0;
background: url('@/assets/images/boutique/payTipsBc.webp') no-repeat; background: url('@/assets/images/boutique/payTipsBc.webp') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
margin-bottom: toRpx(16); margin-bottom: toRpx(16);
.popup-top-box { .popup-top-box {
color: #333333; color: #333333;
font-size: toRpx(36); font-size: toRpx(36);
font-weight: 500; font-weight: 500;
text-align: center; text-align: center;
padding: toRpx(32); padding: toRpx(32);
.popup-top-box-title { .popup-top-box-title {
flex: 1; flex: 1;
} }
.icon-close { .icon-close {
text-align: end; text-align: end;
} }
} }
} }
.pos-popup { .pos-popup {
text-align: center; text-align: center;
box-shadow: 0 toRpx(12) toRpx(24) 0 #2c66f726; box-shadow: 0 toRpx(12) toRpx(24) 0 #2c66f726;
...@@ -725,23 +745,27 @@ export default { ...@@ -725,23 +745,27 @@ export default {
background: #ffffff; background: #ffffff;
margin: 0 auto toRpx(63) auto; margin: 0 auto toRpx(63) auto;
padding: toRpx(63) 0; padding: toRpx(63) 0;
.qrcode { .qrcode {
width: toRpx(320); width: toRpx(320);
height: toRpx(320); height: toRpx(320);
margin-bottom: toRpx(32); margin-bottom: toRpx(32);
} }
.price { .price {
color: #4673ff; color: #4673ff;
font-size: toRpx(56); font-size: toRpx(56);
font-weight: 700; font-weight: 700;
margin-bottom: toRpx(32); margin-bottom: toRpx(32);
} }
.level-1-tips { .level-1-tips {
color: #1a1a1a; color: #1a1a1a;
font-size: toRpx(40); font-size: toRpx(40);
font-weight: 500; font-weight: 500;
margin-bottom: toRpx(16); margin-bottom: toRpx(16);
} }
.level-2-tips { .level-2-tips {
color: #808291; color: #808291;
font-size: toRpx(32); font-size: toRpx(32);
...@@ -749,6 +773,7 @@ export default { ...@@ -749,6 +773,7 @@ export default {
} }
} }
} }
.order-confirm { .order-confirm {
position: relative; position: relative;
height: 100%; height: 100%;
...@@ -757,63 +782,82 @@ export default { ...@@ -757,63 +782,82 @@ export default {
border-radius: toRpx(16); border-radius: toRpx(16);
height: calc(100% - #{toRpx(296)}); height: calc(100% - #{toRpx(296)});
overflow-y: scroll; overflow-y: scroll;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 0; width: 0;
height: 0; height: 0;
background: transparent; background: transparent;
} }
} }
.px-48 { .px-48 {
padding: 0 toRpx(48); padding: 0 toRpx(48);
} }
.pt-6 { .pt-6 {
padding-top: toRpx(6); padding-top: toRpx(6);
} }
.pt-8 { .pt-8 {
padding-top: toRpx(8); padding-top: toRpx(8);
} }
.pt-16 { .pt-16 {
padding-top: toRpx(16); padding-top: toRpx(16);
} }
.pt-12 { .pt-12 {
padding-top: toRpx(12); padding-top: toRpx(12);
} }
.pt-24 { .pt-24 {
padding-top: toRpx(24); padding-top: toRpx(24);
} }
.fs-14 { .fs-14 {
font-size: toRpx(14); font-size: toRpx(14);
} }
.fs-32 { .fs-32 {
font-size: toRpx(32); font-size: toRpx(32);
} }
.fs-28 { .fs-28 {
font-size: toRpx(28); font-size: toRpx(28);
} }
.fs-26 { .fs-26 {
font-size: toRpx(26); font-size: toRpx(26);
} }
.fw-7 { .fw-7 {
font-weight: 700; font-weight: 700;
} }
.fs-13 { .fs-13 {
font-size: toRpx(13); font-size: toRpx(13);
} }
.ml-12 { .ml-12 {
margin-left: toRpx(12); margin-left: toRpx(12);
} }
.mt-16 { .mt-16 {
margin-top: toRpx(16); margin-top: toRpx(16);
} }
.mt-24 { .mt-24 {
margin-top: toRpx(24); margin-top: toRpx(24);
} }
.py-16 { .py-16 {
padding: toRpx(16) 0; padding: toRpx(16) 0;
} }
.flex-1 { .flex-1 {
flex: 1; flex: 1;
} }
.date-box { .date-box {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -836,27 +880,32 @@ export default { ...@@ -836,27 +880,32 @@ export default {
color: #f00; color: #f00;
margin-left: toRpx(8); margin-left: toRpx(8);
} }
.handlerBtn { .handlerBtn {
color: #4673ff; color: #4673ff;
font-size: toRpx(26); font-size: toRpx(26);
font-weight: 400; font-weight: 400;
margin-left: toRpx(8); margin-left: toRpx(8);
} }
.customize-btn { .customize-btn {
color: #4673ff; color: #4673ff;
font-size: toRpx(26); font-size: toRpx(26);
font-weight: 400; font-weight: 400;
margin-left: toRpx(16); margin-left: toRpx(16);
} }
.copy-btn { .copy-btn {
display: flex; display: flex;
align-items: center; align-items: center;
color: #808291; color: #808291;
.copy { .copy {
margin-right: toRpx(8); margin-right: toRpx(8);
margin-left: toRpx(20); margin-left: toRpx(20);
} }
} }
.top-tips { .top-tips {
width: 100%; width: 100%;
height: toRpx(86); height: toRpx(86);
...@@ -866,17 +915,20 @@ export default { ...@@ -866,17 +915,20 @@ export default {
color: #fff; color: #fff;
padding: toRpx(48) toRpx(32); padding: toRpx(48) toRpx(32);
} }
.box-shell { .box-shell {
width: 100%; width: 100%;
border-radius: toRpx(16); border-radius: toRpx(16);
background: #ffffff; background: #ffffff;
padding: toRpx(24) toRpx(32); padding: toRpx(24) toRpx(32);
margin-top: toRpx(16); margin-top: toRpx(16);
&-title { &-title {
font-size: toRpx(28); font-size: toRpx(28);
color: #333333; color: #333333;
font-weight: 400; font-weight: 400;
} }
.meal-box { .meal-box {
border-radius: toRpx(24); border-radius: toRpx(24);
border: toRpx(2) solid #dce0e6; border: toRpx(2) solid #dce0e6;
...@@ -895,53 +947,64 @@ export default { ...@@ -895,53 +947,64 @@ export default {
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 400; font-weight: 400;
margin-bottom: toRpx(20); margin-bottom: toRpx(20);
.meal-hd-name { .meal-hd-name {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
} }
.price { .price {
font-weight: 500; font-weight: 500;
} }
} }
.meal-bd { .meal-bd {
background: #f6f7fa; background: #f6f7fa;
border-radius: toRpx(16); border-radius: toRpx(16);
padding: 0 toRpx(32); padding: 0 toRpx(32);
box-sizing: border-box; box-sizing: border-box;
.meal-bd-head { .meal-bd-head {
border-bottom: toRpx(2) solid #dce0e6; border-bottom: toRpx(2) solid #dce0e6;
padding: toRpx(24) 0; padding: toRpx(24) 0;
.name { .name {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
min-width: 0; min-width: 0;
} }
.meal-bd-bottom { .meal-bd-bottom {
color: #999999; color: #999999;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
margin-left: toRpx(8); margin-left: toRpx(8);
} }
.price { .price {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
} }
} }
.meal-bd-box:last-child .meal-bd-head { .meal-bd-box:last-child .meal-bd-head {
border-bottom: none; border-bottom: none;
} }
} }
} }
.good-list { .good-list {
margin-top: toRpx(16); margin-top: toRpx(16);
.good { .good {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
border-radius: toRpx(24); border-radius: toRpx(24);
background: #f5f7fa; background: #f5f7fa;
padding: toRpx(24); padding: toRpx(24);
.good-name { .good-name {
font-weight: 400; font-weight: 400;
flex: 4; flex: 4;
...@@ -956,26 +1019,31 @@ export default { ...@@ -956,26 +1019,31 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
} }
.marketing-icon { .marketing-icon {
display: inline-block !important; display: inline-block !important;
flex-shrink: 0; flex-shrink: 0;
margin-right: toRpx(8); margin-right: toRpx(8);
} }
.good-price { .good-price {
font-weight: 500; font-weight: 500;
flex: 1; flex: 1;
text-align: right; text-align: right;
} }
.good-alias { .good-alias {
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
} }
.good-sku { .good-sku {
color: #999999; color: #999999;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
margin-right: toRpx(24); margin-right: toRpx(24);
} }
.good-count { .good-count {
color: #999999; color: #999999;
font-size: toRpx(24); font-size: toRpx(24);
...@@ -983,8 +1051,10 @@ export default { ...@@ -983,8 +1051,10 @@ export default {
} }
} }
} }
.coupon { .coupon {
border-bottom: 1px solid #f7f7f6; border-bottom: 1px solid #f7f7f6;
.coupon-name { .coupon-name {
color: #292d33; color: #292d33;
font-size: toRpx(28); font-size: toRpx(28);
...@@ -998,6 +1068,7 @@ export default { ...@@ -998,6 +1068,7 @@ export default {
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
} }
.good-total-value { .good-total-value {
color: #4673ff; color: #4673ff;
font-size: toRpx(40); font-size: toRpx(40);
...@@ -1008,12 +1079,14 @@ export default { ...@@ -1008,12 +1079,14 @@ export default {
.value .value-item text { .value .value-item text {
margin: 0 toRpx(6); margin: 0 toRpx(6);
} }
.label { .label {
width: toRpx(156); width: toRpx(186);
color: #999999; color: #999999;
font-size: toRpx(26); font-size: toRpx(26);
font-weight: 400; font-weight: 400;
} }
.value { .value {
color: #222222; color: #222222;
font-size: toRpx(26); font-size: toRpx(26);
...@@ -1028,6 +1101,7 @@ export default { ...@@ -1028,6 +1101,7 @@ export default {
bottom: toRpx(24); bottom: toRpx(24);
width: 100%; width: 100%;
left: 0; left: 0;
.btn { .btn {
width: 42%; width: 42%;
height: toRpx(80); height: toRpx(80);
...@@ -1037,11 +1111,13 @@ export default { ...@@ -1037,11 +1111,13 @@ export default {
line-height: toRpx(80); line-height: toRpx(80);
text-align: center; text-align: center;
} }
.confirm { .confirm {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff; color: #ffffff;
margin-left: toRpx(32); margin-left: toRpx(32);
} }
.edit { .edit {
background: #3b73ff1a; background: #3b73ff1a;
color: #4673ff; color: #4673ff;
......
...@@ -4,43 +4,55 @@ ...@@ -4,43 +4,55 @@
<view class="box"> <view class="box">
<scroll-view class="scroll-view" scroll-y="true"> <scroll-view class="scroll-view" scroll-y="true">
<view class="box-content"> <view class="box-content">
<GlCell :formList="formList" :formData="orderObj" :titleList="titleList" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell"> <GlCell :formList="formList" :formData="orderObj" :titleList="titleList" @radioChange="radioChange"
@inputBlur="inputBlur" @handleCell="handleCell" @confirmCalendar="confirmCalendar">
<template slot="customer"> <template slot="customer">
<view class="customer-title flex"> <view class="customer-title flex">
客户信息 客户信息
<view <view class="customer-file flex" @click="
class="customer-file flex" handleCell({
@click=" key: 'customer'
handleCell({ })
key: 'customer' ">
})
"
>
<view class="sprite-icon icon-customer-list"></view> <view class="sprite-icon icon-customer-list"></view>
客户档案 客户档案
</view> </view>
</view> </view>
</template> </template>
<template slot="frontGear"> <template slot="frontGear">
<Product v-if="orderObj.frontGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontGear" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData" :orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Product> <Product v-if="orderObj.frontGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontGear"
:positionTypeList="positionTypeList" :baseConfigData="baseConfigData"
:orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Product>
</template> </template>
<template slot="frontWindow"> <template slot="frontWindow">
<Product v-if="orderObj.frontWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontWindow" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData" :orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Product> <Product v-if="orderObj.frontWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.frontWindow"
:positionTypeList="positionTypeList" :baseConfigData="baseConfigData"
:orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Product>
</template> </template>
<template slot="rearWindow"> <template slot="rearWindow">
<Product v-if="orderObj.rearWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearWindow" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData" :orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Product> <Product v-if="orderObj.rearWindow" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearWindow"
:positionTypeList="positionTypeList" :baseConfigData="baseConfigData"
:orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Product>
</template> </template>
<template slot="rearGear"> <template slot="rearGear">
<Product v-if="orderObj.rearGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearGear" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData" :orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Product> <Product v-if="orderObj.rearGear" @changeTotalPrice="changeTotalPrice" :list="orderObj.rearGear"
:positionTypeList="positionTypeList" :baseConfigData="baseConfigData"
:orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Product>
</template> </template>
<template slot="sunRoof"> <template slot="sunRoof">
<Product v-if="orderObj.sunRoof" @changeTotalPrice="changeTotalPrice" :list="orderObj.sunRoof" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData" :orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Product> <Product v-if="orderObj.sunRoof" @changeTotalPrice="changeTotalPrice" :list="orderObj.sunRoof"
:positionTypeList="positionTypeList" :baseConfigData="baseConfigData"
:orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Product>
</template> </template>
<template slot="package"> <template slot="package">
<Package v-if="orderObj.package" @changeTotalPrice="changeTotalPrice" :list="orderObj.package" :positionTypeList="positionTypeList" :orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></Package> <Package v-if="orderObj.package" @changeTotalPrice="changeTotalPrice" :list="orderObj.package"
:positionTypeList="positionTypeList" :orderTypeCode="orderObj.orderTypeCode"
:show-marketing-icon="true"></Package>
</template> </template>
<template slot="skuGoods"> <template slot="skuGoods">
<SkuGoods v-if="orderObj.skuGoods" :list="orderObj.skuGoods" @changeTotalPrice="changeTotalPrice" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData" :orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></SkuGoods> <SkuGoods v-if="orderObj.skuGoods" :list="orderObj.skuGoods" @changeTotalPrice="changeTotalPrice"
:positionTypeList="positionTypeList" :baseConfigData="baseConfigData"
:orderTypeCode="orderObj.orderTypeCode" :show-marketing-icon="true"></SkuGoods>
<view class="total" v-if="totalPrice > 0"> <view class="total" v-if="totalPrice > 0">
<view class="total-left">总价</view> <view class="total-left">总价</view>
<view class="total-right">¥{{ totalPrice }}</view> <view class="total-right">¥{{ totalPrice }}</view>
...@@ -55,7 +67,9 @@ ...@@ -55,7 +67,9 @@
</scroll-view> </scroll-view>
</view> </view>
<!-- 弹窗 --> <!-- 弹窗 -->
<order-popup ref="orderPopup" :data="orderObj" :dataKey="valueKey" @onConfirm="onConfirm" :externalData="externalData" :popupType="popupType" :show-marketing-icon="true" :boutique-order-types-only="boutiqueOrderTypesOnly" /> <order-popup ref="orderPopup" :data="orderObj" :dataKey="valueKey" @onConfirm="onConfirm"
:externalData="externalData" :popupType="popupType" :show-marketing-icon="true"
:boutique-order-types-only="boutiqueOrderTypesOnly" />
</view> </view>
</template> </template>
...@@ -148,19 +162,45 @@ export default { ...@@ -148,19 +162,45 @@ export default {
rearGear: null, // 4 rearGear: null, // 4
sunRoof: null, // 5, 6,7 sunRoof: null, // 5, 6,7
package: null, package: null,
skuGoods: null // upgradeGoodsPosition 为空,则是其他精品单商品 skuGoods: null, // upgradeGoodsPosition 为空,则是其他精品单商品
customerTags: [], // 日报标签
actualDeliveryDate: '', // 实际交付日期
} }
this.initData() this.initData()
} }
}, },
immediate: true immediate: true
},
'orderObj.salesType': {
handler(newVal) {
const selected = Boolean(this.orderObj && (this.orderObj.baseSceneCodeValue || this.orderObj.baseSceneCode))
let formList = this.formList
let { isHarmony } = this
formList.map(item => {
item.map(child => {
if (child.value == 'customerTags') {
let hidden = !selected || newVal == 2
child.hidden = hidden
if (hidden) this.$set(this.orderObj, 'customerTags', [])
}
if (child.value == 'actualDeliveryDate') {
let hidden = (isHarmony ? ![3].includes(+newVal) : ![0, 3].includes(+newVal)) || !selected
child.hidden = hidden
if (hidden) this.$set(this.orderObj, 'actualDeliveryDate', '')
}
})
})
this.formList = formList
},
immediate: true,
deep: true
} }
}, },
data() { data() {
return { return {
orderCreateType: 'createWithPay', // supplementOrder(补录订单) createWithPay(新增) orderCreateType: 'createWithPay', // supplementOrder(补录订单) createWithPay(新增)
titleList, titleList,
formList: utils.deepClone(FORM_LIST), formList: [],
baseConfigData: {}, baseConfigData: {},
requiredList: [], // 录单设置的必填项 requiredList: [], // 录单设置的必填项
orderObj: { orderObj: {
...@@ -177,7 +217,9 @@ export default { ...@@ -177,7 +217,9 @@ export default {
rearGear: null, // 4 rearGear: null, // 4
sunRoof: null, // 5, 6,7 sunRoof: null, // 5, 6,7
package: null, package: null,
skuGoods: null // upgradeGoodsPosition 为空,则是其他精品单商品 skuGoods: null, // upgradeGoodsPosition 为空,则是其他精品单商品
customerTags: [], // 日报标签
actualDeliveryDate: '', // 实际交付日期
}, // 弹窗传入的数据}, }, // 弹窗传入的数据},
popupType: 0, popupType: 0,
popupTypeEnum, popupTypeEnum,
...@@ -217,19 +259,55 @@ export default { ...@@ -217,19 +259,55 @@ export default {
hideSceneNameField() { hideSceneNameField() {
const { sceneType } = this.userInfo || {} const { sceneType } = this.userInfo || {}
return sceneType == 1 && this.orderCreateType === 'createWithPay' return sceneType == 1 && this.orderCreateType === 'createWithPay'
} },
isHarmony() {
const { channelType } = uni.$storage.get('userInfo')
return channelType == 1
},
}, },
mounted() { mounted() {
let formList = utils.deepClone(FORM_LIST),
dailyTagList = [
{
value: '1',
name: '已触客'
},
{
value: '2',
name: '已拉群'
},
{
value: '3',
name: '已交付引荐'
},
{
value: '4',
name: '首保维保客户 '
},
{
value: '5',
name: '事故车客户'
}
]
formList.forEach(item => {
item.forEach(child => {
if (child.value == 'customerTags') {
child.radioList = this.isHarmony ? dailyTagList : dailyTagList.filter(item => ['1'].includes(item.value))
}
})
})
console.log('mounted', this.orderCreateType) console.log('mounted', this.orderCreateType)
console.log(formList, 'formList')
this.baseConfigData = uni.$storage.get('mock_data') || {} this.baseConfigData = uni.$storage.get('mock_data') || {}
this.formList = formList
this.initData() this.initData()
}, },
methods: { methods: {
updateSceneGate () { updateSceneGate() {
const selected = Boolean(this.orderObj && (this.orderObj.baseSceneCodeValue || this.orderObj.baseSceneCode)) const selected = Boolean(this.orderObj && (this.orderObj.baseSceneCodeValue || this.orderObj.baseSceneCode))
const list = this.formList || [] const list = this.formList || []
list.forEach(group => { list.forEach(group => {
;(group || []).forEach(item => { ; (group || []).forEach(item => {
if (!item) return if (!item) return
if (item._originHidden === undefined) item._originHidden = Boolean(item.hidden) if (item._originHidden === undefined) item._originHidden = Boolean(item.hidden)
if (!selected) { if (!selected) {
...@@ -245,9 +323,9 @@ export default { ...@@ -245,9 +323,9 @@ export default {
this.formList = list this.formList = list
return selected return selected
}, },
async initRecentSceneEcho () { async initRecentSceneEcho() {
try { try {
const userInfo = this.userInfo || (uni.$storage.get('userInfo') || {}) const userInfo = this.userInfo || uni.$storage.get('userInfo') || {}
const phone = userInfo.phone const phone = userInfo.phone
const userSceneType = userInfo.sceneType const userSceneType = userInfo.sceneType
if (!phone || userSceneType === undefined || userSceneType === null) return if (!phone || userSceneType === undefined || userSceneType === null) return
...@@ -256,6 +334,7 @@ export default { ...@@ -256,6 +334,7 @@ export default {
phone, phone,
sceneType: userSceneType sceneType: userSceneType
}) })
recent.baseSceneCode = '100101'
// HTTP 层已将 data.data 解包,recent 直接是 { baseSceneCode: '...' } // HTTP 层已将 data.data 解包,recent 直接是 { baseSceneCode: '...' }
const recentBaseSceneCode = recent?.baseSceneCode || recent?.uuid const recentBaseSceneCode = recent?.baseSceneCode || recent?.uuid
if (!recentBaseSceneCode) return if (!recentBaseSceneCode) return
...@@ -275,7 +354,7 @@ export default { ...@@ -275,7 +354,7 @@ export default {
// 同步表单展示(GlCell 某些字段依赖 current) // 同步表单展示(GlCell 某些字段依赖 current)
const sceneCell = this.formList?.[0]?.find(v => v && v.value === 'baseSceneCode') const sceneCell = this.formList?.[0]?.find(v => v && v.value === 'baseSceneCode')
if (sceneCell) sceneCell.current = item.name || item.staffName || '' if (sceneCell) sceneCell.current = item.name || item.staffName || ''
} catch (e) {} } catch (e) { }
}, },
// 计算单个商品的最终价格(与页面展示保持一致:先算单件优惠价,再乘数量,均向上取整两位) // 计算单个商品的最终价格(与页面展示保持一致:先算单件优惠价,再乘数量,均向上取整两位)
calculateFinalPrice(goods, sellPrice, number, orderTypeCode) { calculateFinalPrice(goods, sellPrice, number, orderTypeCode) {
...@@ -612,12 +691,27 @@ export default { ...@@ -612,12 +691,27 @@ export default {
}, },
// 单选框change事件 // 单选框change事件
radioChange(e, val) { radioChange(e, val) {
console.log(e, val) if (val.multiple) {
this.$set(this.orderObj, val.value, e.detail.value) let key = val.value,
if (val.value == 'payeeType') { value = this.orderObj[key] || []
this.changePayee() if (value.includes(e)) {
value = value.filter(item => item !== e)
} else {
value.push(e)
}
this.$set(this.orderObj, key, value)
} else {
this.$set(this.orderObj, val.value, e.detail.value)
if (val.value == 'payeeType') {
this.changePayee()
}
} }
}, },
// 选择日期事件
confirmCalendar(e, key) {
let value = e.fulldate
this.$set(this.orderObj, key, value)
},
// 弹窗确认回调 // 弹窗确认回调
onConfirm(val, flag) { onConfirm(val, flag) {
this.externalData = [] this.externalData = []
...@@ -701,7 +795,7 @@ export default { ...@@ -701,7 +795,7 @@ export default {
this.$set(this.orderObj, 'baseSceneCodeValue', chooseContent.baseSceneCode || chooseContent.uuid) this.$set(this.orderObj, 'baseSceneCodeValue', chooseContent.baseSceneCode || chooseContent.uuid)
this.$set(this.orderObj, 'sceneType', chooseContent.sceneType) this.$set(this.orderObj, 'sceneType', chooseContent.sceneType)
// 选择后保存最近选中场景(sceneType 用登录场景) // 选择后保存最近选中场景(sceneType 用登录场景)
const userInfo = this.userInfo || (uni.$storage.get('userInfo') || {}) const userInfo = this.userInfo || uni.$storage.get('userInfo') || {}
if (userInfo.phone) { if (userInfo.phone) {
uni.$api.equityApi.saveUserRecentScene({ uni.$api.equityApi.saveUserRecentScene({
phone: userInfo.phone, phone: userInfo.phone,
...@@ -990,8 +1084,6 @@ export default { ...@@ -990,8 +1084,6 @@ export default {
return return
} }
// 低价提示 // 低价提示
const belowMinSellItems = collectBelowMinSellPriceItems(this.orderObj) const belowMinSellItems = collectBelowMinSellPriceItems(this.orderObj)
if (belowMinSellItems.length > 0) { if (belowMinSellItems.length > 0) {
...@@ -1012,11 +1104,17 @@ export default { ...@@ -1012,11 +1104,17 @@ export default {
// 场景名称:界面展示用 name;提交入参需要 code // 场景名称:界面展示用 name;提交入参需要 code
if (obj.baseSceneCodeValue) obj.baseSceneCode = obj.baseSceneCodeValue if (obj.baseSceneCodeValue) obj.baseSceneCode = obj.baseSceneCodeValue
delete obj.baseSceneCodeValue delete obj.baseSceneCodeValue
const otherCustomer = ['standNo', 'plateNumber', 'customerSex', 'experienceFlag', 'salesType'] const otherCustomer = ['standNo', 'plateNumber', 'customerSex', 'experienceFlag', 'salesType','actualDeliveryDate','customerTags']
obj.customer = { obj.customer = {
...obj.customer, ...obj.customer,
...otherCustomer.reduce((acc, key) => { ...otherCustomer.reduce((acc, key) => {
if (obj[key] !== undefined) { if (obj[key] !== undefined) {
if(key == 'customerTags'){
obj[key] = obj[key].join(',')
}
if(key == 'actualDeliveryDate'){
obj[key] += ' 00:00:00'
}
acc[key] = obj[key] acc[key] = obj[key]
delete obj[key] delete obj[key]
} }
...@@ -1261,10 +1359,10 @@ export default { ...@@ -1261,10 +1359,10 @@ export default {
notUpgradeExperience: 'foEfRequiredFlag', notUpgradeExperience: 'foEfRequiredFlag',
notUpgradeRejectionReason: 'foRrRequiredFlag' notUpgradeRejectionReason: 'foRrRequiredFlag'
} }
;(data.orderFieldSettingList || []).forEach(e => { ; (data.orderFieldSettingList || []).forEach(e => {
const key = keyMap[e.fieldKey] || e.fieldKey const key = keyMap[e.fieldKey] || e.fieldKey
YQorderSetting[key] = e.isRequired ? 'Y' : 'N' YQorderSetting[key] = e.isRequired ? 'Y' : 'N'
}) })
YQorderSetting.shopMerchantId = userInfo.shopMerchantId YQorderSetting.shopMerchantId = userInfo.shopMerchantId
// 过滤园区店是否需要屏蔽手机号选项 // 过滤园区店是否需要屏蔽手机号选项
...@@ -1335,9 +1433,7 @@ export default { ...@@ -1335,9 +1433,7 @@ export default {
const { shopMerchantId, sceneType, merchantId } = userInfo, const { shopMerchantId, sceneType, merchantId } = userInfo,
data = await uni.$api.popupApi.getEmployeeList({ data = await uni.$api.popupApi.getEmployeeList({
merchantId: orderObj.idKey == 'sellerUserId' ? merchantId : shopMerchantId, merchantId: orderObj.idKey == 'sellerUserId' ? merchantId : shopMerchantId,
sceneList: orderObj.idKey == 'sellerUserId' sceneList: orderObj.idKey == 'sellerUserId' ? '' : [this.orderObj.sceneType != null ? this.orderObj.sceneType : sceneType]
? ''
: [this.orderObj.sceneType != null ? this.orderObj.sceneType : sceneType]
}) })
if (data && data.length) { if (data && data.length) {
this.employeeList = data this.employeeList = data
...@@ -1683,19 +1779,11 @@ export default { ...@@ -1683,19 +1779,11 @@ export default {
const newStrategyConfig = this.buildStrategyConfigFromDiscountFields(item, goodsOrderTypeCode) const newStrategyConfig = this.buildStrategyConfigFromDiscountFields(item, goodsOrderTypeCode)
goodsData.strategyConfig = newStrategyConfig goodsData.strategyConfig = newStrategyConfig
} }
const resolvedMarketingFlag = const resolvedMarketingFlag = item.marketingFlag ?? temp.marketingFlag ?? data.multipleSpecificationsGoods?.marketingFlag ?? getMarketingFlag(data)
item.marketingFlag ??
temp.marketingFlag ??
data.multipleSpecificationsGoods?.marketingFlag ??
getMarketingFlag(data)
if (resolvedMarketingFlag != null && resolvedMarketingFlag !== '') { if (resolvedMarketingFlag != null && resolvedMarketingFlag !== '') {
goodsData.marketingFlag = resolvedMarketingFlag goodsData.marketingFlag = resolvedMarketingFlag
} }
const resolvedActivityId = const resolvedActivityId = item.activityId ?? temp.activityId ?? data.multipleSpecificationsGoods?.activityId ?? getActivityId(data)
item.activityId ??
temp.activityId ??
data.multipleSpecificationsGoods?.activityId ??
getActivityId(data)
if (resolvedActivityId != null && resolvedActivityId !== '') { if (resolvedActivityId != null && resolvedActivityId !== '') {
goodsData.activityId = resolvedActivityId goodsData.activityId = resolvedActivityId
} }
...@@ -1745,9 +1833,7 @@ export default { ...@@ -1745,9 +1833,7 @@ export default {
if ((activityId == null || activityId === '') && catalogMatch) { if ((activityId == null || activityId === '') && catalogMatch) {
activityId = getActivityId(catalogMatch) activityId = getActivityId(catalogMatch)
if ((activityId == null || activityId === '') && orderItem.goodsFlag == 3 && goods?.merchantGoodsId) { if ((activityId == null || activityId === '') && orderItem.goodsFlag == 3 && goods?.merchantGoodsId) {
const pkgGoods = catalogMatch.packageGoods?.goodsList?.find( const pkgGoods = catalogMatch.packageGoods?.goodsList?.find(g => g.merchantGoodsId == goods.merchantGoodsId)
g => g.merchantGoodsId == goods.merchantGoodsId
)
activityId = pkgGoods?.activityId activityId = pkgGoods?.activityId
} }
} }
...@@ -1826,9 +1912,7 @@ export default { ...@@ -1826,9 +1912,7 @@ export default {
item.packageGoods.activityId = catalogActivityId item.packageGoods.activityId = catalogActivityId
} }
item.packageGoods.goodsList?.forEach(g => { item.packageGoods.goodsList?.forEach(g => {
const catalogGoods = catalogMatch.packageGoods?.goodsList?.find( const catalogGoods = catalogMatch.packageGoods?.goodsList?.find(cg => cg.merchantGoodsId == g.merchantGoodsId)
cg => cg.merchantGoodsId == g.merchantGoodsId
)
if (!catalogGoods) return if (!catalogGoods) return
if (catalogGoods.marketingFlag != null && catalogGoods.marketingFlag !== '' && (g.marketingFlag == null || g.marketingFlag === '')) { if (catalogGoods.marketingFlag != null && catalogGoods.marketingFlag !== '' && (g.marketingFlag == null || g.marketingFlag === '')) {
g.marketingFlag = catalogGoods.marketingFlag g.marketingFlag = catalogGoods.marketingFlag
...@@ -2014,8 +2098,8 @@ export default { ...@@ -2014,8 +2098,8 @@ export default {
console.log('获取订单备注***', customerId) console.log('获取订单备注***', customerId)
if (!customerId) return if (!customerId) return
try { try {
const res = await uni.$api.commonApi.updateGoodsOrderRemark({ id:customerId }) const res = await uni.$api.commonApi.updateGoodsOrderRemark({ id: customerId })
console.log('获取订单备注***', res) console.log('获取订单备注***', res)
const remark = res?.remark || '' const remark = res?.remark || ''
this.$set(this.orderObj, 'remark', remark) this.$set(this.orderObj, 'remark', remark)
} catch (e) { } catch (e) {
...@@ -2061,7 +2145,7 @@ export default { ...@@ -2061,7 +2145,7 @@ export default {
.then(result => { .then(result => {
this.validateState = result.data.valid this.validateState = result.data.valid
}) })
.catch(() => {}) .catch(() => { })
} }
} }
} }
...@@ -2128,8 +2212,10 @@ export default { ...@@ -2128,8 +2212,10 @@ export default {
margin-left: toRpx(20); margin-left: toRpx(20);
color: #347bff; color: #347bff;
font-size: toRpx(24); font-size: toRpx(24);
.sprite-icon { .sprite-icon {
margin-right: toRpx(4); margin-right: toRpx(4);
transform: translateY(toRpx(3));
} }
} }
} }
......
<template> <template>
<view class="order-detail"> <view class="order-detail">
<view class="common-title">{{ orderInfo.constructionFlag == 'Y' && orderInfo.status != 10 ? '完成施工' : '工单详情' }}</view> <view class="common-title">{{ orderInfo.constructionFlag == 'Y' && orderInfo.status != 10 ? '完成施工' : '工单详情' }}
</view>
<view v-if="isShow" class="px-48 scroll-y" :class="{ 'construction-flag-y': !isMake }"> <view v-if="isShow" class="px-48 scroll-y" :class="{ 'construction-flag-y': !isMake }">
<view class="top-tips flex align-center" v-if="orderInfo.status != 10 && orderInfo.status != 9 && orderInfo.constructionFlag !== 'Y'"> <view class="top-tips flex align-center"
v-if="orderInfo.status != 10 && orderInfo.status != 9 && orderInfo.constructionFlag !== 'Y'">
<view class="sprite-icon icon-successIcon checkbox-filled"></view> <view class="sprite-icon icon-successIcon checkbox-filled"></view>
<view> <view>
<view class="fs-34 fw-5">客户已付款</view> <view class="fs-34 fw-5">客户已付款</view>
...@@ -29,7 +31,8 @@ ...@@ -29,7 +31,8 @@
<view class="flex justify-between align-center"> <view class="flex justify-between align-center">
<view class="box-shell-title">审批</view> <view class="box-shell-title">审批</view>
<view class="status-tag" :class="`status-tag-${orderInfo.goodsOrderApplyStatus}`"> <view class="status-tag" :class="`status-tag-${orderInfo.goodsOrderApplyStatus}`">
{{ goodsOrderApplyStatus && orderInfo.goodsOrderApplyStatus ? goodsOrderApplyStatus[orderInfo.goodsOrderApplyStatus] : '-' }} {{ goodsOrderApplyStatus && orderInfo.goodsOrderApplyStatus ?
goodsOrderApplyStatus[orderInfo.goodsOrderApplyStatus] : '-' }}
</view> </view>
</view> </view>
...@@ -42,7 +45,9 @@ ...@@ -42,7 +45,9 @@
<view class="value" :style="{ color: i.statusColor }">{{ i.status }}</view> <view class="value" :style="{ color: i.statusColor }">{{ i.status }}</view>
</view> </view>
<view class="item-mark"> <view class="item-mark">
<view :class="['circle', { first: index == 0, 'status-approved': i.status === '审批通过', 'status-pending': i.status === '审批中', 'status-rejected': i.status === '驳回' }]"></view> <view
:class="['circle', { first: index == 0, 'status-approved': i.status === '审批通过', 'status-pending': i.status === '审批中', 'status-rejected': i.status === '驳回' }]">
</view>
<view class="mark-line" v-if="index != logList.length - 1"></view> <view class="mark-line" v-if="index != logList.length - 1"></view>
</view> </view>
</view> </view>
...@@ -107,7 +112,9 @@ ...@@ -107,7 +112,9 @@
</view> </view>
<view class="flex align-center my-16"> <view class="flex align-center my-16">
<view class="sprite-icon icon-coupon fs-14"></view> <view class="sprite-icon icon-coupon fs-14"></view>
<text class="fs-14 coupon-name">{{ orderInfo.couponName || '' }}{{ orderInfo.customerCoupon.customerCouponCode || '' }}({{ orderInfo.customerCoupon.employeeName || '' }})</text> <text class="fs-14 coupon-name">{{ orderInfo.couponName || '' }}{{ orderInfo.customerCoupon.customerCouponCode
|| ''
}}({{ orderInfo.customerCoupon.employeeName || '' }})</text>
</view> </view>
<view class="flex justify-end align-center"> <view class="flex justify-end align-center">
<text class="good-total-lable">商品总金额:</text> <text class="good-total-lable">商品总金额:</text>
...@@ -142,11 +149,13 @@ ...@@ -142,11 +149,13 @@
<!-- <view class="customize-btn" v-if="item.dateChange" @click.stop="customizeDate">自定义</view> --> <!-- <view class="customize-btn" v-if="item.dateChange" @click.stop="customizeDate">自定义</view> -->
</view> </view>
<view v-if="(orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length"> <view
v-if="(orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length">
<view class="flex align-start pt-16"> <view class="flex align-start pt-16">
<view class="label">付款凭证</view> <view class="label">付款凭证</view>
<view class="image-box flex"> <view class="image-box flex">
<view class="value" @click="previewImage" v-for="(item, index) in orderInfo.payVoucherList" :key="index"> <view class="value" @click="previewImage" v-for="(item, index) in orderInfo.payVoucherList"
:key="index">
<view class="image"> <view class="image">
<image :src="item.payVoucher" /> <image :src="item.payVoucher" />
</view> </view>
...@@ -173,19 +182,24 @@ ...@@ -173,19 +182,24 @@
<view class="label">{{ item.label }}</view> <view class="label">{{ item.label }}</view>
<view class="flex flex-1"> <view class="flex flex-1">
<view class="value" :style="{ color: item.color || '#333' }"> <view class="value" :style="{ color: item.color || '#333' }">
<view v-if="item.arr"> <template v-if="item.format">
<view v-if="orderInfo[item.arr[1]]" class="flex"> {{ item.format(orderInfo[item.key]) }}
<view v-for="(i, ind) in item.arr" :key="ind"> </template>
<view class="value-item text-hide"> <template v-else>
<text v-if="ind == 1" class="lineText">|</text> <view v-if="item.arr">
{{ orderInfo[i] }} <view v-if="orderInfo[item.arr[1]]" class="flex">
<view v-for="(i, ind) in item.arr" :key="ind">
<view class="value-item text-hide">
<text v-if="ind == 1" class="lineText">|</text>
{{ orderInfo[i] }}
</view>
</view> </view>
</view> </view>
</view> </view>
</view> <view v-else>
<view v-else> {{ item.enum ? item.enum[orderInfo[item.key]] : orderInfo[item.key] || '' }}
{{ item.enum ? item.enum[orderInfo[item.key]] : orderInfo[item.key] || '' }} </view>
</view> </template>
</view> </view>
<view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])"> <view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view> <view class="sprite-icon icon-icon-copy copy"></view>
...@@ -212,7 +226,8 @@ ...@@ -212,7 +226,8 @@
<view class="label">质保产品</view> <view class="label">质保产品</view>
<view class="value">{{ replaceItemText(item.goodsName) }}</view> <view class="value">{{ replaceItemText(item.goodsName) }}</view>
</view> </view>
<view class="flex align-center edit-warranty" @click="warrantyEdit(item)" v-if="orderInfo.constructionFlag == 'Y'"> <view class="flex align-center edit-warranty" @click="warrantyEdit(item)"
v-if="orderInfo.constructionFlag == 'Y'">
<view class="sprite-icon icon-edit mr-8"></view> <view class="sprite-icon icon-edit mr-8"></view>
质保价格 质保价格
</view> </view>
...@@ -244,16 +259,19 @@ ...@@ -244,16 +259,19 @@
</view> </view>
</view> </view>
<view class="flex align-center footer-box justify-center" v-if="isMake && orderInfo.status !== 12 && orderInfo.goodsOrderApplyStatus != 1 && orderInfo.goodsOrderApplyStatus != 2"> <view class="flex align-center footer-box justify-center"
v-if="isMake && orderInfo.status !== 12 && orderInfo.goodsOrderApplyStatus != 1 && orderInfo.goodsOrderApplyStatus != 2">
<view class="edit btn flex-1" @click="repeal">撤销工单</view> <view class="edit btn flex-1" @click="repeal">撤销工单</view>
</view> </view>
<!-- <view class="flex align-center footer-box justify-center" v-if="orderInfo.constructionFlag == 'Y'"> <!-- <view class="flex align-center footer-box justify-center" v-if="orderInfo.constructionFlag == 'Y'">
<view class="edit btn flex-1" @click="repeal">再来一单</view> <view class="edit btn flex-1" @click="repeal">再来一单</view>
</view> --> </view> -->
<!-- 已支付4 战败2 已评价6 三种状态才展示 并且不是通过失效客户录入的战败单 --> <!-- 已支付4 战败2 已评价6 三种状态才展示 并且不是通过失效客户录入的战败单 -->
<view v-if="!userInfo.isSuper && userInfo.loginRole != 3 && userInfo.loginRole != 6 && userInfo.userType == 2 && (orderInfo.status == 4 || orderInfo.status == 2 || orderInfo.status == 6) && ((orderInfo.subOrderList && orderInfo.subOrderList.length) || (orderInfo.packageGoodsList && orderInfo.packageGoodsList.length))"> <view
v-if="!userInfo.isSuper && userInfo.loginRole != 3 && userInfo.loginRole != 6 && userInfo.userType == 2 && (orderInfo.status == 4 || orderInfo.status == 2 || orderInfo.status == 6) && ((orderInfo.subOrderList && orderInfo.subOrderList.length) || (orderInfo.packageGoodsList && orderInfo.packageGoodsList.length))">
<!-- 不需要走签名逻辑 --> <!-- 不需要走签名逻辑 -->
<view v-if="signatureSwitch && orderInfo.selectPayType != 0" class="btn-box" :class="isFullSucreen ? 'isFullSucreen-btn' : ''"> <view v-if="signatureSwitch && orderInfo.selectPayType != 0" class="btn-box"
:class="isFullSucreen ? 'isFullSucreen-btn' : ''">
<view class="btn text-center" bindtap="navOrderSignature">客户签名确认</view> <view class="btn text-center" bindtap="navOrderSignature">客户签名确认</view>
</view> </view>
<view v-else class="btn-box" :class="isFullSucreen ? 'isFullSucreen-btn' : ''"> <view v-else class="btn-box" :class="isFullSucreen ? 'isFullSucreen-btn' : ''">
...@@ -263,7 +281,8 @@ ...@@ -263,7 +281,8 @@
</view> </view>
</view> </view>
</view> </view>
<PublishPopup ref="calendarPopup" popupClass="calendarPopup" :showClose="false" :showTitle="false" @confirm="confirmCalendar"> <PublishPopup ref="calendarPopup" popupClass="calendarPopup" :showClose="false" :showTitle="false"
@confirm="confirmCalendar">
<template #content> <template #content>
<uni-calendar class="calendar" :showMonth="false" @change="calendarChange" /> <uni-calendar class="calendar" :showMonth="false" @change="calendarChange" />
</template> </template>
...@@ -296,12 +315,14 @@ ...@@ -296,12 +315,14 @@
</view> </view>
</template> </template>
</PublishPopup> </PublishPopup>
<PublishPopup :key="popupKey" ref="warrantyPopup" popupClass="warrantyPopup" type="center" title="质保价格" :showClose="true" @confirm="confirmEdit"> <PublishPopup :key="popupKey" ref="warrantyPopup" popupClass="warrantyPopup" type="center" title="质保价格"
:showClose="true" @confirm="confirmEdit">
<template #content> <template #content>
<view class="warranty-content"> <view class="warranty-content">
<view class="name">产品:{{ replaceItemText(warrantyEditObj.goodsName) }}</view> <view class="name">产品:{{ replaceItemText(warrantyEditObj.goodsName) }}</view>
<view class="label">质保价格</view> <view class="label">质保价格</view>
<textarea class="warranty-input" v-model="warrantyEditObj.warrantyPrice" maxlength="50" placeholder="请输入(最多50字)" /> <textarea class="warranty-input" v-model="warrantyEditObj.warrantyPrice" maxlength="50"
placeholder="请输入(最多50字)" />
<view class="tips">质保价格输入的内容会在车主查询质保卡时显示</view> <view class="tips">质保价格输入的内容会在车主查询质保卡时显示</view>
</view> </view>
</template> </template>
...@@ -377,7 +398,7 @@ export default { ...@@ -377,7 +398,7 @@ export default {
popupKey: 0 popupKey: 0
} }
}, },
async mounted() {}, async mounted() { },
methods: { methods: {
shouldShowMarketingIcon(item) { shouldShowMarketingIcon(item) {
return checkMarketingIcon(item, true) return checkMarketingIcon(item, true)
...@@ -674,7 +695,7 @@ export default { ...@@ -674,7 +695,7 @@ export default {
this.$set(this.warrantyCardList[index], 'barCodeUrl', data) this.$set(this.warrantyCardList[index], 'barCodeUrl', data)
console.log(this.warrantyCardList, 'getBarCode') console.log(this.warrantyCardList, 'getBarCode')
}) })
.catch(err => {}) .catch(err => { })
}, 1000 * index) }, 1000 * index)
}) })
}, },
...@@ -769,7 +790,7 @@ export default { ...@@ -769,7 +790,7 @@ export default {
this.$refs.warrantyPopup.closePopup() this.$refs.warrantyPopup.closePopup()
this.getOrderDetail(this.orderInfo.orderCode) this.getOrderDetail(this.orderInfo.orderCode)
}) })
.catch(err => {}) .catch(err => { })
} }
} }
} }
...@@ -778,17 +799,20 @@ export default { ...@@ -778,17 +799,20 @@ export default {
.order-detail { .order-detail {
position: relative; position: relative;
height: 100%; height: 100%;
// Popup样式 // Popup样式
::v-deep .tipsPopup .uni-popup__wrapper { ::v-deep .tipsPopup .uni-popup__wrapper {
width: toRpx(848); width: toRpx(848);
height: toRpx(744); height: toRpx(744);
border-radius: toRpx(42); border-radius: toRpx(42);
background: rgb(255, 255, 255) !important; background: rgb(255, 255, 255) !important;
.tipsPopupBg { .tipsPopupBg {
border-radius: toRpx(42) toRpx(42) 0 0; border-radius: toRpx(42) toRpx(42) 0 0;
width: 100%; width: 100%;
height: toRpx(244); height: toRpx(244);
} }
.title { .title {
color: #333333; color: #333333;
font-size: toRpx(40); font-size: toRpx(40);
...@@ -796,6 +820,7 @@ export default { ...@@ -796,6 +820,7 @@ export default {
text-align: center; text-align: center;
margin-top: toRpx(48); margin-top: toRpx(48);
} }
.tipsConent { .tipsConent {
text-align: center; text-align: center;
color: #666666; color: #666666;
...@@ -803,10 +828,12 @@ export default { ...@@ -803,10 +828,12 @@ export default {
font-weight: 400; font-weight: 400;
padding: toRpx(16) toRpx(64); padding: toRpx(16) toRpx(64);
line-height: toRpx(48); line-height: toRpx(48);
text { text {
color: #347bff; color: #347bff;
} }
} }
.isExistTips-btn-box { .isExistTips-btn-box {
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -814,6 +841,7 @@ export default { ...@@ -814,6 +841,7 @@ export default {
border-radius: 0 0 toRpx(42) toRpx(42); border-radius: 0 0 toRpx(42) toRpx(42);
bottom: toRpx(40); bottom: toRpx(40);
width: 100%; width: 100%;
.btn { .btn {
height: toRpx(80); height: toRpx(80);
border-radius: toRpx(48); border-radius: toRpx(48);
...@@ -832,11 +860,13 @@ export default { ...@@ -832,11 +860,13 @@ export default {
} }
} }
} }
::v-deep .warrantyPopup .uni-popup__wrapper { ::v-deep .warrantyPopup .uni-popup__wrapper {
width: 36%; width: 36%;
height: toRpx(808); height: toRpx(808);
border-radius: toRpx(32); border-radius: toRpx(32);
background: #fff !important; background: #fff !important;
.popup-top-box { .popup-top-box {
padding: toRpx(48) toRpx(64); padding: toRpx(48) toRpx(64);
border-radius: toRpx(32); border-radius: toRpx(32);
...@@ -845,20 +875,24 @@ export default { ...@@ -845,20 +875,24 @@ export default {
text-align: left; text-align: left;
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%) !important; background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%) !important;
} }
.warranty-content { .warranty-content {
padding: toRpx(0) toRpx(64); padding: toRpx(0) toRpx(64);
.name { .name {
color: #666666; color: #666666;
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 400; font-weight: 400;
margin-bottom: toRpx(48); margin-bottom: toRpx(48);
} }
.label { .label {
color: #333333; color: #333333;
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 400; font-weight: 400;
margin-bottom: toRpx(24); margin-bottom: toRpx(24);
} }
.warranty-input { .warranty-input {
border-radius: 12px; border-radius: 12px;
background: #f4f5f7; background: #f4f5f7;
...@@ -866,12 +900,14 @@ export default { ...@@ -866,12 +900,14 @@ export default {
width: 100%; width: 100%;
margin-bottom: toRpx(24); margin-bottom: toRpx(24);
padding: toRpx(32) toRpx(32) toRpx(32) toRpx(32); padding: toRpx(32) toRpx(32) toRpx(32) toRpx(32);
.uni-textarea-placeholder { .uni-textarea-placeholder {
color: #999999; color: #999999;
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 400; font-weight: 400;
} }
} }
.tips { .tips {
color: #666666; color: #666666;
font-size: toRpx(28); font-size: toRpx(28);
...@@ -879,101 +915,132 @@ export default { ...@@ -879,101 +915,132 @@ export default {
} }
} }
} }
::v-deep .calendarPopup .uni-popup__wrapper { ::v-deep .calendarPopup .uni-popup__wrapper {
width: 100%; width: 100%;
height: 62vh; height: 62vh;
.calendar { .calendar {
width: 100%; width: 100%;
height: calc(100% - #{toRpx(164)}); height: calc(100% - #{toRpx(164)});
} }
} }
.scroll-y { .scroll-y {
height: calc(100% - #{toRpx(248)}); height: calc(100% - #{toRpx(248)});
overflow-y: scroll; overflow-y: scroll;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 0; width: 0;
height: 0; height: 0;
background: transparent; background: transparent;
} }
} }
.construction-flag-y { .construction-flag-y {
height: calc(100% - #{toRpx(182)}); height: calc(100% - #{toRpx(182)});
} }
.px-48 { .px-48 {
padding: 0 toRpx(48); padding: 0 toRpx(48);
} }
.pt-6 { .pt-6 {
padding-top: toRpx(6); padding-top: toRpx(6);
} }
.pt-8 { .pt-8 {
padding-top: toRpx(8); padding-top: toRpx(8);
} }
.pt-16 { .pt-16 {
padding-top: toRpx(16); padding-top: toRpx(16);
} }
.pt-20 { .pt-20 {
padding-top: toRpx(20); padding-top: toRpx(20);
} }
.pt-12 { .pt-12 {
padding-top: toRpx(12); padding-top: toRpx(12);
} }
.mb-12 { .mb-12 {
margin-bottom: toRpx(12); margin-bottom: toRpx(12);
} }
.fs-14 { .fs-14 {
font-size: toRpx(14); font-size: toRpx(14);
} }
.fs-32 { .fs-32 {
font-size: toRpx(32); font-size: toRpx(32);
} }
.fs-26 { .fs-26 {
font-size: toRpx(26); font-size: toRpx(26);
} }
.fs-34 { .fs-34 {
font-size: toRpx(34); font-size: toRpx(34);
} }
.fw-5 { .fw-5 {
font-weight: 500; font-weight: 500;
} }
.fw-7 { .fw-7 {
font-weight: 700; font-weight: 700;
} }
.fs-13 { .fs-13 {
font-size: toRpx(13); font-size: toRpx(13);
} }
.ml-12 { .ml-12 {
margin-left: toRpx(12); margin-left: toRpx(12);
} }
.mr-8 { .mr-8 {
margin-right: toRpx(8); margin-right: toRpx(8);
} }
.mt-12 { .mt-12 {
margin-top: toRpx(12); margin-top: toRpx(12);
} }
.mt-20 { .mt-20 {
margin-top: toRpx(20); margin-top: toRpx(20);
} }
.my-16 { .my-16 {
margin: toRpx(16) 0; margin: toRpx(16) 0;
} }
.py-8 { .py-8 {
padding: toRpx(8) 0; padding: toRpx(8) 0;
} }
.py-16 { .py-16 {
padding: toRpx(16) 0; padding: toRpx(16) 0;
} }
.pt-32 { .pt-32 {
padding-top: toRpx(32) !important; padding-top: toRpx(32) !important;
} }
.mb-20 { .mb-20 {
margin-bottom: toRpx(20); margin-bottom: toRpx(20);
} }
.cl-gray { .cl-gray {
color: #666666; color: #666666;
} }
.flex-1 { .flex-1 {
flex: 1; flex: 1;
} }
.date-box { .date-box {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -996,27 +1063,32 @@ export default { ...@@ -996,27 +1063,32 @@ export default {
color: #f00; color: #f00;
margin-left: toRpx(8); margin-left: toRpx(8);
} }
.handlerBtn { .handlerBtn {
color: #4673ff; color: #4673ff;
font-size: toRpx(26); font-size: toRpx(26);
font-weight: 400; font-weight: 400;
margin-left: toRpx(8); margin-left: toRpx(8);
} }
.customize-btn { .customize-btn {
color: #4673ff; color: #4673ff;
font-size: toRpx(26); font-size: toRpx(26);
font-weight: 400; font-weight: 400;
margin-left: toRpx(16); margin-left: toRpx(16);
} }
.copy-btn { .copy-btn {
display: flex; display: flex;
align-items: center; align-items: center;
color: #808291; color: #808291;
.copy { .copy {
margin-right: toRpx(8); margin-right: toRpx(8);
margin-left: toRpx(20); margin-left: toRpx(20);
} }
} }
.top-tips { .top-tips {
width: 100%; width: 100%;
height: toRpx(152); height: toRpx(152);
...@@ -1025,26 +1097,31 @@ export default { ...@@ -1025,26 +1097,31 @@ export default {
color: #333333; color: #333333;
padding: 0 toRpx(32); padding: 0 toRpx(32);
position: relative; position: relative;
.checkbox-filled { .checkbox-filled {
margin-right: toRpx(24); margin-right: toRpx(24);
} }
.topTipsRightIcon { .topTipsRightIcon {
position: absolute !important; position: absolute !important;
bottom: 0; bottom: 0;
right: toRpx(16); right: toRpx(16);
} }
} }
.box-shell { .box-shell {
width: 100%; width: 100%;
border-radius: toRpx(16); border-radius: toRpx(16);
background: #ffffff; background: #ffffff;
padding: toRpx(24) toRpx(32); padding: toRpx(24) toRpx(32);
margin-top: toRpx(16); margin-top: toRpx(16);
&-title { &-title {
font-size: toRpx(28); font-size: toRpx(28);
color: #333333; color: #333333;
font-weight: 400; font-weight: 400;
} }
.status-tag-3 { .status-tag-3 {
color: #2cca74; color: #2cca74;
font-size: toRpx(24); font-size: toRpx(24);
...@@ -1053,6 +1130,7 @@ export default { ...@@ -1053,6 +1130,7 @@ export default {
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(2) solid #2cca74; border: toRpx(2) solid #2cca74;
} }
.status-tag-4 { .status-tag-4 {
color: #f24724; color: #f24724;
font-size: toRpx(24); font-size: toRpx(24);
...@@ -1061,6 +1139,7 @@ export default { ...@@ -1061,6 +1139,7 @@ export default {
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(2) solid #f24724; border: toRpx(2) solid #f24724;
} }
.status-tag-2 { .status-tag-2 {
color: #faa827; color: #faa827;
font-size: toRpx(24); font-size: toRpx(24);
...@@ -1069,6 +1148,7 @@ export default { ...@@ -1069,6 +1148,7 @@ export default {
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(2) solid #faa827; border: toRpx(2) solid #faa827;
} }
.status-tag-1 { .status-tag-1 {
color: #faa827; color: #faa827;
font-size: toRpx(24); font-size: toRpx(24);
...@@ -1077,30 +1157,38 @@ export default { ...@@ -1077,30 +1157,38 @@ export default {
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(2) solid #faa827; border: toRpx(2) solid #faa827;
} }
.log-info { .log-info {
margin-bottom: 0; margin-bottom: 0;
.log-box { .log-box {
padding-top: toRpx(32); padding-top: toRpx(32);
.log-item { .log-item {
min-height: toRpx(84); min-height: toRpx(84);
position: relative; position: relative;
padding-left: toRpx(60); padding-left: toRpx(60);
.item { .item {
margin-top: toRpx(16); margin-top: toRpx(16);
.label { .label {
width: toRpx(168); width: toRpx(186);
color: #292d33; color: #292d33;
} }
.value { .value {
width: calc(100% - #{toRpx(168)}); width: calc(100% - #{toRpx(186)});
word-break: break-all; word-break: break-all;
} }
} }
.item-mark { .item-mark {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: toRpx(32); width: toRpx(32);
.mark-line { .mark-line {
height: toRpx(80); height: toRpx(80);
width: toRpx(2); width: toRpx(2);
...@@ -1110,6 +1198,7 @@ export default { ...@@ -1110,6 +1198,7 @@ export default {
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
} }
.circle { .circle {
position: relative; position: relative;
width: toRpx(20); width: toRpx(20);
...@@ -1119,11 +1208,13 @@ export default { ...@@ -1119,11 +1208,13 @@ export default {
margin: toRpx(8) auto 0; margin: toRpx(8) auto 0;
z-index: 2; z-index: 2;
} }
.first { .first {
width: toRpx(32); width: toRpx(32);
height: toRpx(32); height: toRpx(32);
background: #d6e4ff; background: #d6e4ff;
position: relative; position: relative;
&::before, &::before,
&::after { &::after {
content: ''; content: '';
...@@ -1133,11 +1224,13 @@ export default { ...@@ -1133,11 +1224,13 @@ export default {
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
&::before { &::before {
width: toRpx(20); width: toRpx(20);
height: toRpx(20); height: toRpx(20);
background: var(--status-color, #2c66f7); background: var(--status-color, #2c66f7);
} }
&::after { &::after {
width: toRpx(10); width: toRpx(10);
height: toRpx(10); height: toRpx(10);
...@@ -1146,6 +1239,7 @@ export default { ...@@ -1146,6 +1239,7 @@ export default {
} }
} }
} }
.log-title { .log-title {
color: #333333; color: #333333;
font-size: toRpx(32); font-size: toRpx(32);
...@@ -1154,8 +1248,10 @@ export default { ...@@ -1154,8 +1248,10 @@ export default {
} }
} }
} }
.remarkBox { .remarkBox {
margin-top: toRpx(32); margin-top: toRpx(32);
.labelremark { .labelremark {
color: #999999; color: #999999;
font-size: toRpx(26); font-size: toRpx(26);
...@@ -1164,6 +1260,7 @@ export default { ...@@ -1164,6 +1260,7 @@ export default {
margin-right: toRpx(16); margin-right: toRpx(16);
flex-shrink: 0; flex-shrink: 0;
} }
.valueremark { .valueremark {
color: #222222; color: #222222;
font-size: toRpx(26); font-size: toRpx(26);
...@@ -1174,6 +1271,7 @@ export default { ...@@ -1174,6 +1271,7 @@ export default {
white-space: normal; white-space: normal;
} }
} }
.meal-box { .meal-box {
border-radius: toRpx(24); border-radius: toRpx(24);
border: toRpx(2) solid #dce0e6; border: toRpx(2) solid #dce0e6;
...@@ -1186,52 +1284,63 @@ export default { ...@@ -1186,52 +1284,63 @@ export default {
flex-shrink: 0; flex-shrink: 0;
margin-right: toRpx(8); margin-right: toRpx(8);
} }
.meal-hd { .meal-hd {
color: #333333; color: #333333;
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 400; font-weight: 400;
margin-bottom: toRpx(20); margin-bottom: toRpx(20);
.meal-hd-name { .meal-hd-name {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
} }
.price { .price {
font-weight: 500; font-weight: 500;
} }
} }
.meal-bd { .meal-bd {
background: #f6f7fa; background: #f6f7fa;
border-radius: toRpx(16); border-radius: toRpx(16);
padding: 0 toRpx(32); padding: 0 toRpx(32);
box-sizing: border-box; box-sizing: border-box;
.meal-bd-head { .meal-bd-head {
border-bottom: toRpx(2) solid #dce0e6; border-bottom: toRpx(2) solid #dce0e6;
padding: toRpx(24) 0; padding: toRpx(24) 0;
.name { .name {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
min-width: 0; min-width: 0;
} }
.meal-bd-bottom { .meal-bd-bottom {
color: #999999; color: #999999;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
margin-left: toRpx(8); margin-left: toRpx(8);
} }
.price { .price {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
} }
} }
.meal-bd-box:last-child .meal-bd-head { .meal-bd-box:last-child .meal-bd-head {
border-bottom: none; border-bottom: none;
} }
} }
} }
.good-list { .good-list {
margin-top: toRpx(16); margin-top: toRpx(16);
.good { .good {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
...@@ -1239,6 +1348,7 @@ export default { ...@@ -1239,6 +1348,7 @@ export default {
background: #f5f7fa; background: #f5f7fa;
padding: toRpx(30) toRpx(24) toRpx(24) toRpx(24); padding: toRpx(30) toRpx(24) toRpx(24) toRpx(24);
margin-bottom: toRpx(16); margin-bottom: toRpx(16);
.good-name { .good-name {
font-weight: 400; font-weight: 400;
flex: 4; flex: 4;
...@@ -1253,25 +1363,30 @@ export default { ...@@ -1253,25 +1363,30 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
} }
.marketing-icon { .marketing-icon {
display: inline-block !important; display: inline-block !important;
flex-shrink: 0; flex-shrink: 0;
margin-right: toRpx(8); margin-right: toRpx(8);
} }
.good-price { .good-price {
font-weight: 500; font-weight: 500;
flex: 1; flex: 1;
text-align: right; text-align: right;
} }
.good-alias { .good-alias {
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
} }
.good-sku { .good-sku {
color: #999999; color: #999999;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
} }
.good-count { .good-count {
color: #999999; color: #999999;
font-size: toRpx(24); font-size: toRpx(24);
...@@ -1279,17 +1394,20 @@ export default { ...@@ -1279,17 +1394,20 @@ export default {
} }
} }
} }
.coupon-name { .coupon-name {
color: #292d33; color: #292d33;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
margin-left: toRpx(8); margin-left: toRpx(8);
} }
.good-total-lable { .good-total-lable {
color: #757980; color: #757980;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
} }
.good-total-value { .good-total-value {
color: #4673ff; color: #4673ff;
font-size: toRpx(40); font-size: toRpx(40);
...@@ -1300,22 +1418,26 @@ export default { ...@@ -1300,22 +1418,26 @@ export default {
.value .value-item text { .value .value-item text {
margin: 0 toRpx(6); margin: 0 toRpx(6);
} }
.label { .label {
width: toRpx(156); width: toRpx(186);
color: #999999; color: #999999;
font-size: toRpx(26); font-size: toRpx(26);
font-weight: 400; font-weight: 400;
} }
.value { .value {
color: #222222; color: #222222;
font-size: toRpx(26); font-size: toRpx(26);
font-weight: 400; font-weight: 400;
} }
.image-box { .image-box {
.image { .image {
width: toRpx(106); width: toRpx(106);
height: toRpx(112); height: toRpx(112);
margin-right: toRpx(16); margin-right: toRpx(16);
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -1329,37 +1451,44 @@ export default { ...@@ -1329,37 +1451,44 @@ export default {
.value .value-item text { .value .value-item text {
margin: 0 toRpx(6); margin: 0 toRpx(6);
} }
.label { .label {
width: toRpx(156); width: toRpx(156);
color: #999999; color: #999999;
font-size: toRpx(26); font-size: toRpx(26);
font-weight: 400; font-weight: 400;
} }
.value { .value {
color: #222222; color: #222222;
font-size: toRpx(26); font-size: toRpx(26);
font-weight: 400; font-weight: 400;
} }
.codeImg-box { .codeImg-box {
.barCode { .barCode {
color: #292d33; color: #292d33;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
} }
.barCodeImg { .barCodeImg {
width: toRpx(600); width: toRpx(600);
height: toRpx(158); height: toRpx(158);
} }
} }
.edit-warranty { .edit-warranty {
color: #347bff; color: #347bff;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
} }
} }
.warranty-tips { .warranty-tips {
margin-bottom: toRpx(12); margin-bottom: toRpx(12);
} }
.customerService { .customerService {
width: toRpx(320); width: toRpx(320);
height: toRpx(320); height: toRpx(320);
...@@ -1371,6 +1500,7 @@ export default { ...@@ -1371,6 +1500,7 @@ export default {
bottom: toRpx(24); bottom: toRpx(24);
width: 100%; width: 100%;
left: 0; left: 0;
.btn { .btn {
width: 80%; width: 80%;
height: toRpx(80); height: toRpx(80);
...@@ -1380,11 +1510,13 @@ export default { ...@@ -1380,11 +1510,13 @@ export default {
line-height: toRpx(80); line-height: toRpx(80);
text-align: center; text-align: center;
} }
.confirm { .confirm {
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff; color: #ffffff;
margin-left: toRpx(32); margin-left: toRpx(32);
} }
.edit { .edit {
background: #3b73ff1a; background: #3b73ff1a;
color: #4673ff; color: #4673ff;
......
...@@ -75,6 +75,19 @@ const FORM_LIST = [ ...@@ -75,6 +75,19 @@ const FORM_LIST = [
required: true required: true
}, },
{ {
hidden: false,
label: '日报标签',
value:'customerTags',
type:'radio',
multiple: true,
},
{
hidden: false,
label:'实际交付日期',
value:'actualDeliveryDate',
type:"single-calendar"
},
{
label: '性别', label: '性别',
value: 'customerSex', value: 'customerSex',
type: 'radio', type: 'radio',
......
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
}, },
async entranceClick (item) { async entranceClick (item) {
if (this.toolComponentName == item.name) return if (this.toolComponentName == item.name) return
const noInterceptPage = ['DailyReport'] const noInterceptPage = ['DailyReport','storeDailyReport']
// 原禁止提单inspectionOfProhibitionBill方法被替换getLimitRecord // 原禁止提单inspectionOfProhibitionBill方法被替换getLimitRecord
// if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return // if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return
if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport())) return if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport())) return
......
...@@ -47,11 +47,14 @@ ...@@ -47,11 +47,14 @@
</view> </view>
<view class="footer"> <view class="footer">
<Footer> <Footer>
<view :class="['btn default-btn', { w50: !saveBtn || !showPushBtn }]" @click="$emit('showNegotiationList')">查看洽谈明细表汇总</view> <!-- <view :class="['btn default-btn', { w100: !saveBtn || !showPushBtn }]" @click="$emit('showNegotiationList')">
<view :class="['btn default-btn',{w50:!saveBtn || !showPushBtn}]" @click="saveBtn = true" v-if="!saveBtn">编辑</view> 查看洽谈明细表汇总</view> -->
<view :class="['btn default-btn', { w100: !saveBtn || !showPushBtn }]" @click="saveBtn = true"
v-if="!saveBtn">编辑
</view>
<template v-else> <template v-else>
<view :class="['btn default-btn',{w50:!showPushBtn}]" @click="$emit('saveReport', list)">保存</view> <view :class="['btn default-btn', { w100: !showPushBtn }]" @click="$emit('saveReport', list)">保存</view>
<view class="btn" @click="$emit('submitReport', list )" v-if="showPushBtn">上报数据</view> <view class="btn" @click="$emit('submitReport', list)" v-if="showPushBtn">上报数据</view>
</template> </template>
</Footer> </Footer>
</view> </view>
...@@ -75,7 +78,7 @@ import DailyPopup from '../components/DailyPopup/index.vue' ...@@ -75,7 +78,7 @@ import DailyPopup from '../components/DailyPopup/index.vue'
export default { export default {
name: 'StoreDailyReport', name: 'StoreDailyReport',
components: { Table, Nothing, Footer, EditForm, FormItem, DailyPopup }, components: { Table, Nothing, Footer, EditForm, FormItem, DailyPopup },
inject: ['userInfo', 'sceneType'], inject: ['userInfo', 'sceneType','dailyReportRecordId'],
props: { props: {
templateData: { templateData: {
type: Array, type: Array,
...@@ -83,8 +86,8 @@ export default { ...@@ -83,8 +86,8 @@ export default {
}, },
reportDate: String, reportDate: String,
ReportStatus: null, ReportStatus: null,
isToday:Boolean, isToday: Boolean,
SubmissionStatus:null SubmissionStatus: null
}, },
data() { data() {
return { return {
...@@ -94,8 +97,8 @@ export default { ...@@ -94,8 +97,8 @@ export default {
} }
}, },
computed: { computed: {
showPushBtn(){ showPushBtn() {
return this.SubmissionStatus != 1 && this.isToday return this.SubmissionStatus == 2 && this.isToday && this.dailyReportRecordId()
} }
}, },
watch: { watch: {
...@@ -105,7 +108,7 @@ export default { ...@@ -105,7 +108,7 @@ export default {
this.list = utils.deepClone(val) this.list = utils.deepClone(val)
setTimeout(() => { setTimeout(() => {
this.loadComplete = true this.loadComplete = true
if (val.length) this.getMonthlyPendingCount() // if (val.length) this.getMonthlyPendingCount()
}, 200) }, 200)
}, },
immediate: true, immediate: true,
...@@ -129,12 +132,22 @@ export default { ...@@ -129,12 +132,22 @@ export default {
mounted() { mounted() {
}, },
methods: { methods: {
getCurrentStaff() {
const { name, uuid } = uni.$storage.get("userInfo"),
key = 'F2-107-6'
return {
name,
uuid,
key
}
},
itemShow(i) { itemShow(i) {
if (i.rules) { if (i.rules) {
let { keys, result } = i.rules, let { keys, result } = i.rules,
{ list } = this { list } = this
if (keys && result) { if (keys && result) {
console.log(result, keys)
let params = keys.map((c, index) => `val${index + 1}`), let params = keys.map((c, index) => `val${index + 1}`),
// 将 new Function 改为 eval 方式 // 将 new Function 改为 eval 方式
func = eval(`(function(${params.join(',')}) { return ${result}; })`), func = eval(`(function(${params.join(',')}) { return ${result}; })`),
...@@ -165,11 +178,22 @@ export default { ...@@ -165,11 +178,22 @@ export default {
addItem(index) { addItem(index) {
let { templateData, saveBtn } = this let { templateData, saveBtn } = this
if (!saveBtn) return if (!saveBtn) return
this.list[index].children.push(templateData[index].origin_children) try {
let data = this.list[index].children[this.list[index].children.length - 1], this.list[index].children.push(templateData[index].origin_children)
c_index = this.list[index].children.length - 1, let data = this.list[index].children[this.list[index].children.length - 1],
parent = this.list[index] c_index = this.list[index].children.length - 1,
this.$refs.editForm.open(data, c_index, index, parent) parent = this.list[index]
let { name, uuid, key } = this.getCurrentStaff()
data.forEach(item => {
if (item.key == key) {
item.value = name
item[key] = uuid
}
})
this.$refs.editForm.open(data, c_index, index, parent)
} catch (error) {
console.log(error)
}
}, },
confirm(data, c_index, index) { confirm(data, c_index, index) {
this.$set(this.list[index].children, c_index, utils.deepClone(data)) this.$set(this.list[index].children, c_index, utils.deepClone(data))
...@@ -385,7 +409,7 @@ export default { ...@@ -385,7 +409,7 @@ export default {
} }
.btn { .btn {
width: calc(100% / 3 - #{toRpx(32)}); width: calc(100% / 2 - #{toRpx(32)});
height: toRpx(80); height: toRpx(80);
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -401,8 +425,9 @@ export default { ...@@ -401,8 +425,9 @@ export default {
background: #3b73ff1a; background: #3b73ff1a;
color: #4673ff; color: #4673ff;
} }
.w50{
width: calc(100% / 2 - #{toRpx(32)}); .w100 {
width: 100%;
} }
} }
} }
......
<template> <template>
<view class="car-model-box"> <view class="car-model-box">
<scroll-view <scroll-view class="scroll-view" scroll-y :scroll-into-view="letter">
class="scroll-view"
scroll-y
:scroll-into-view="letter"
>
<template v-if="listData.length"> <template v-if="listData.length">
<template v-for="(i, index) in listData"> <template v-for="(i, index) in listData">
<view <view class="item-box" :key="index" :id="i.letter">
class="item-box" <view class="letter-title flex">{{ i.letter }}</view>
:key="index" <template v-for="(c, cindex) in i.list">
:id="i.letter" <view class="car-model" :key="cindex">
> <view class="brand-name">{{ c.name }}</view>
<view class="letter-title flex">{{i.letter}}</view>
<template v-for="(c,cindex) in i.list">
<view
class="car-model"
:key="cindex"
>
<view class="brand-name">{{c.name}}</view>
<template v-for="(j, jindex) in c.childs"> <template v-for="(j, jindex) in c.childs">
<view <view :key="jindex" class="car-block">
:key="jindex" <view class="sub-brand-name" @click="getCarSeries(j, c)">
class="car-block" {{ j.name }}
>
<view
class="sub-brand-name"
@click="getCarSeries(j,c)"
>
{{j.name}}
</view> </view>
<view class="series-list"> <view class="series-list">
<template v-for="(k, kindex) in j.childs"> <template v-for="(k, kindex) in j.childs">
<view <view class="series-name" :key="kindex">
class="series-name" <view :class="['series-name flex', { active: checkActive(k) }]" @click="getCarTypeList(c,j, k)">
:key="kindex" {{ k.name }}
> <uni-icons :type="`${k.childs && k.childs.length && k.open ? 'down' : 'right'}`"
<view size="18"></uni-icons>
class="series-name flex"
@click="getCarTypeList(k)"
>
{{k.name}}
<uni-icons
:type="`${k.childs && k.childs.length && k.open ?'down':'right'}`"
size="18"
></uni-icons>
</view> </view>
<view <view class="brand-list" v-if="k.open">
class="brand-list" <template v-for="(s, sindex) in k.childs">
v-if="k.open" <view :class="['item flex', { active: checkActive(s) }]" :key="`${s.id}_${sindex}`"
> @click.stop="chooseCarType(s, c)">
<template v-for="(s,sindex) in k.childs"> {{ s.name }}
<view
:class="['item flex',{active: checkActive(s)}]"
:key="`${s.id}_${sindex}`"
@click.stop="chooseCarType(s,c)"
>
{{s.name}}
<view class="sprite-icon icon-tag-checked"></view> <view class="sprite-icon icon-tag-checked"></view>
</view> </view>
</template> </template>
...@@ -76,12 +45,8 @@ ...@@ -76,12 +45,8 @@
</scroll-view> </scroll-view>
<view class="letter-list"> <view class="letter-list">
<template v-for="(i, index) in listData"> <template v-for="(i, index) in listData">
<view <view class="letter-item" :key="index" @click="letter = i.letter">
class="letter-item" {{ i.letter }}
:key="index"
@click="letter = i.letter"
>
{{i.letter}}
</view> </view>
</template> </template>
</view> </view>
...@@ -93,15 +58,15 @@ import popupmixin from './popupmixin' ...@@ -93,15 +58,15 @@ import popupmixin from './popupmixin'
export default { export default {
mixins: [popupmixin], mixins: [popupmixin],
name: 'CarModelList', name: 'CarModelList',
data () { data() {
return { return {
letter: 'A', letter: 'A',
} }
}, },
mounted () { mounted() {
}, },
methods: { methods: {
async getList (searchValue) { async getList(searchValue) {
const { userInfo, params } = this, const { userInfo, params } = this,
{ cacheData } = params { cacheData } = params
this.currentId = '' this.currentId = ''
...@@ -115,7 +80,7 @@ export default { ...@@ -115,7 +80,7 @@ export default {
{ carBrandList } = data[0] { carBrandList } = data[0]
this.updateParams(params, carBrandList || []) this.updateParams(params, carBrandList || [])
}, },
initData (carData) { initData(carData) {
let { params: { idKey }, data: { customer, carInfo } } = this, let { params: { idKey }, data: { customer, carInfo } } = this,
letterList = Array.from(new Set([...carData.map((e) => e.letter)])), letterList = Array.from(new Set([...carData.map((e) => e.letter)])),
carModelList = letterList.map(e => { carModelList = letterList.map(e => {
...@@ -134,7 +99,7 @@ export default { ...@@ -134,7 +99,7 @@ export default {
this.list = carModelList this.list = carModelList
this.$emit('onComplete') this.$emit('onComplete')
}, },
handleSearch (searchValue) { handleSearch(searchValue) {
if (!searchValue) { if (!searchValue) {
this.searchStatus = false this.searchStatus = false
this.letter = 'A' this.letter = 'A'
...@@ -178,7 +143,7 @@ export default { ...@@ -178,7 +143,7 @@ export default {
} }
}, },
async getCarSeries (j, c) { async getCarSeries(j, c) {
if (j.childs && j.childs.length) return if (j.childs && j.childs.length) return
uni.showLoading({ uni.showLoading({
mask: true mask: true
...@@ -191,7 +156,17 @@ export default { ...@@ -191,7 +156,17 @@ export default {
j.childs = data j.childs = data
this.$forceUpdate() this.$forceUpdate()
}, },
async getCarTypeList (k) { async getCarTypeList(c,j, k) {
let chooseItem = {
vehicleBrandId: c.id,
vehicleBrandName: c.name,
vehicleSubBrandId: j.id,
vehicleSubBrandName: j.name,
vehicleSeriesId: k.id,
vehicleSeriesName: k.name
}
this.currentId = k.id
this.$emit('choose', chooseItem)
if (k.childs && k.childs.length) { if (k.childs && k.childs.length) {
k.open = !k.open k.open = !k.open
this.$forceUpdate() this.$forceUpdate()
...@@ -215,7 +190,7 @@ export default { ...@@ -215,7 +190,7 @@ export default {
}) })
}, },
chooseCarType (s, c) { chooseCarType(s, c) {
let chooseItem = { let chooseItem = {
vehicleBrandId: c.id, vehicleBrandId: c.id,
vehicleBrandName: c.name, vehicleBrandName: c.name,
...@@ -229,11 +204,11 @@ export default { ...@@ -229,11 +204,11 @@ export default {
this.currentId = s.id this.currentId = s.id
this.$emit('choose', chooseItem) this.$emit('choose', chooseItem)
}, },
checkActive (s) { checkActive(s) {
let { currentId, data, params, data: { key } } = this, let { currentId, data, params, data: { key } } = this,
carInfo = data[key] || {} carInfo = data[key] || {}
return (currentId ? s.id == currentId : s.id == carInfo[params.idKey] || '' ) return (currentId ? s.id == currentId : s.id == carInfo[params.idKey] || '')
}, },
} }
} }
...@@ -244,9 +219,11 @@ export default { ...@@ -244,9 +219,11 @@ export default {
position: relative; position: relative;
height: 100%; height: 100%;
width: 100%; width: 100%;
.scroll-view { .scroll-view {
height: 100%; height: 100%;
} }
.letter-list { .letter-list {
position: absolute; position: absolute;
top: 50%; top: 50%;
...@@ -258,8 +235,10 @@ export default { ...@@ -258,8 +235,10 @@ export default {
padding: 0 toRpx(18); padding: 0 toRpx(18);
text-align: center; text-align: center;
} }
.item-box { .item-box {
margin-bottom: toRpx(32); margin-bottom: toRpx(32);
.letter-title { .letter-title {
color: #888888; color: #888888;
font-size: toRpx(28); font-size: toRpx(28);
...@@ -267,8 +246,10 @@ export default { ...@@ -267,8 +246,10 @@ export default {
background: #f5f7fa; background: #f5f7fa;
padding-left: toRpx(48); padding-left: toRpx(48);
} }
.car-model { .car-model {
margin: 0 toRpx(48); margin: 0 toRpx(48);
.brand-name { .brand-name {
color: #000; color: #000;
font-size: toRpx(40); font-size: toRpx(40);
...@@ -276,9 +257,11 @@ export default { ...@@ -276,9 +257,11 @@ export default {
margin: toRpx(20) 0; margin: toRpx(20) 0;
font-weight: 500; font-weight: 500;
} }
.car-block { .car-block {
border-bottom: toRpx(2) solid #dce0e6; border-bottom: toRpx(2) solid #dce0e6;
} }
.sub-brand-name { .sub-brand-name {
color: #333; color: #333;
font-size: toRpx(32); font-size: toRpx(32);
...@@ -288,17 +271,23 @@ export default { ...@@ -288,17 +271,23 @@ export default {
margin: toRpx(16) 0; margin: toRpx(16) 0;
padding-left: toRpx(10); padding-left: toRpx(10);
} }
.series-name { .series-name {
color: #555; color: #555;
font-size: toRpx(28); font-size: toRpx(30);
line-height: toRpx(40); line-height: toRpx(40);
width: 100%; width: 100%;
flex-shrink: 0; flex-shrink: 0;
margin-bottom: toRpx(16); margin-bottom: toRpx(16);
padding-left: toRpx(20); padding-left: toRpx(20);
} }
.series-name.active {
color: #2c66f7;
font-weight: 500;
}
} }
} }
.brand-list { .brand-list {
// display: grid; // display: grid;
// grid-template-columns: repeat(4, 1fr); // grid-template-columns: repeat(4, 1fr);
...@@ -307,17 +296,18 @@ export default { ...@@ -307,17 +296,18 @@ export default {
// gap: toRpx(32) 0; // gap: toRpx(32) 0;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0 toRpx(20); padding: 0 toRpx(20);
.item { .item {
width: calc((100% - #{toRpx(96)}) / 4); width: calc((100% - #{toRpx(96)}) / 4);
justify-content: center; justify-content: center;
min-height: toRpx(72); min-height: toRpx(64);
border-radius: toRpx(8); border-radius: toRpx(8);
border: toRpx(2) solid #dce0e6; border: toRpx(2) solid #dce0e6;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
color: #333333; color: #333333;
font-size: toRpx(32); font-size: toRpx(26);
padding: toRpx(10) toRpx(20); padding: toRpx(6) toRpx(14);
box-sizing: border-box; box-sizing: border-box;
.sprite-icon { .sprite-icon {
display: none; display: none;
...@@ -326,10 +316,12 @@ export default { ...@@ -326,10 +316,12 @@ export default {
right: 0; right: 0;
} }
} }
.active { .active {
border-color: #2c66f7; border-color: #2c66f7;
background: #ecf1ff; background: #ecf1ff;
color: #2c66f7; color: #2c66f7;
.sprite-icon { .sprite-icon {
display: block; display: block;
} }
......
<template>
<view class="options-list">
<template v-for="(i, index) in listData">
<view :key="index" @click="choose(i)" :class="['item flex', { active: checkActive(i) }]">
<view class="sprite-icon icon-tag-checked"></view>
{{ i.label }}
</view>
</template>
</view>
</template>
<script type="text/ecmascript-6">
import popupmixin from './popupmixin'
export default {
mixins: [popupmixin],
name: 'OptionsComponent',
inject: ['userInfo'],
data() {
return {
}
},
computed: {
},
mounted() {
},
methods: {
async getList() {
const hasCommonElement = (arrA, arrB) => {
return arrA.some(item => arrB.includes(item))
}
const isSubset = (arrA, arrB) => {
// 检查arrB的每个元素是否都在arrA中
const setA = new Set(arrA)
return arrB.every(item => setA.has(item))
}
let { params, data: { options }, STORE_BASE_SCENE_CODE, CAR_BRAND_ID } = this
this.currentId = ''
this.currentIds = []
this.chooseList = []
this.componentLoading(params)
options = options.filter(item => {
// 品牌过滤
let filterBrand = true,
filterScene = true,
brandId = true,
flag = true
if (item.filterBrandId && item.filterBrandId.length) {
filterBrand = !isSubset(item.filterBrandId, CAR_BRAND_ID)
} else {
brandId = item.brandId && item.brandId.length ? hasCommonElement(item.brandId, CAR_BRAND_ID) : true
}
filterScene = item.baseSceneCode&& item.baseSceneCode?.length ? hasCommonElement(item.baseSceneCode, STORE_BASE_SCENE_CODE) : true
flag = filterBrand && brandId && filterScene
if(item.matchEffect) flag = true
return flag
})
this.updateParams(params, options || [])
},
initData(list) {
const { data, data: { key }, params: { multiple } } = this
if (data[key]) {
if (!multiple) {
this.currentId = data[key]
let item = list.find(i => i.value == this.currentId)
this.$emit('choose', item)
} else {
let arr = data[key]
if (typeof arr == 'string') arr = arr.split(',')
this.chooseList = arr.map(i => list.find(e => e.value == i))
this.currentIds = arr
this.$emit('choose', this.chooseList)
}
}
this.list = list
this.$emit('onComplete')
},
choose(i) {
let { params: { multiple }, currentIds } = this
if (!multiple) {
this.currentId = i.value
this.$emit('choose', i)
} else {
let index = currentIds.indexOf(i.value)
if (index == -1) {
this.currentIds.push(i.value)
this.chooseList.push(i)
} else {
this.currentIds.splice(index, 1)
this.chooseList.splice(index, 1)
}
this.$emit('choose', this.chooseList)
}
},
checkActive(i) {
let { currentId, currentIds, data: { key }, data } = this
if (currentIds && currentIds.length) return currentIds.includes(i.value)
return currentId ? i.value == currentId : i.value == data[key]
}
}
}
</script>
<style scoped lang="scss">
.options-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: toRpx(32);
margin: 0 toRpx(48);
.item {
justify-content: center;
height: toRpx(72);
border-radius: toRpx(8);
border: toRpx(2) solid #dce0e6;
box-sizing: border-box;
position: relative;
color: #333333;
font-size: toRpx(32);
.sprite-icon {
display: none;
position: absolute;
top: 0;
right: 0;
}
}
.active {
border-color: #2c66f7;
background: #ecf1ff;
color: #2c66f7;
.sprite-icon {
display: block;
}
}
}
</style>
export default { export default {
inject: ['userInfo', 'baseConfigData'], inject: ['userInfo', 'baseConfigData'],
data () { data() {
return { return {
list: [], list: [],
searchStatus: false, searchStatus: false,
searchList: [], searchList: [],
chooseList: [], chooseList: [],
currentId: '', currentId: '',
currentIds: [], currentIds: []
} }
}, },
props: { props: {
...@@ -16,22 +16,31 @@ export default { ...@@ -16,22 +16,31 @@ export default {
dataKey: String, dataKey: String,
isDefeatOrder: Boolean, isDefeatOrder: Boolean,
positionTypeList: Array, positionTypeList: Array,
reqParams: Object, reqParams: Object
}, },
computed: { computed: {
listData () { listData() {
return this.searchStatus ? this.searchList : this.list return this.searchStatus ? this.searchList : this.list
}, },
noData () { noData() {
return !this.listData.length return !this.listData.length
}, },
sceneType(){ sceneType() {
return uni.$storage.get('userInfo').sceneType return uni.$storage.get('userInfo').sceneType
},
CAR_BRAND_ID() {
const carBrandList = uni.$storage.get('carBrandList'),
carBrandId = carBrandList.map(item => item.id)
return carBrandId
},
STORE_BASE_SCENE_CODE() {
const storeBaseSceneCode = uni.$storage.get('storeBaseSceneCode')
return storeBaseSceneCode
} }
}, },
watch: { watch: {
noData: { noData: {
handler (val) { handler(val) {
let { params } = this let { params } = this
params.noData = val params.noData = val
this.updateParams(params) this.updateParams(params)
...@@ -40,17 +49,16 @@ export default { ...@@ -40,17 +49,16 @@ export default {
} }
}, },
methods: { methods: {
updateParams (params, data) { updateParams(params, data) {
if (data) { if (data) {
this.initData && this.initData(data) this.initData && this.initData(data)
params.cacheData = data params.cacheData = data
} }
this.$emit('update:params', params) this.$emit('update:params', params)
}, },
componentLoading (params) { componentLoading(params) {
params.loadComplete = false params.loadComplete = false
this.$emit('update:params', this.params) this.$emit('update:params', this.params)
} }
} }
}
\ No newline at end of file \ No newline at end of file
}
...@@ -71,6 +71,18 @@ const componentConfig = { ...@@ -71,6 +71,18 @@ const componentConfig = {
loadComplete: false, loadComplete: false,
searchValue: '', searchValue: '',
noData: false noData: false
},
7: {
name: 'OptionsComponent',
title: '多选',
multiple: true,
placeholder: '请输入选项',
nullTips: '请选择选项',
cacheData: [],
loadComplete: false,
searchValue: '',
noData: false,
hideSearch: true
} }
} }
......
...@@ -100,6 +100,7 @@ import OrderList from './components/OrderList.vue' ...@@ -100,6 +100,7 @@ import OrderList from './components/OrderList.vue'
import DateTime from './components/DateTime.vue' import DateTime from './components/DateTime.vue'
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import utils from '@/utils/utils' import utils from '@/utils/utils'
import OptionsComponent from './components/OptionsComponent.vue'
export default { export default {
components: { components: {
...@@ -108,6 +109,7 @@ export default { ...@@ -108,6 +109,7 @@ export default {
CarModelList, CarModelList,
OrderList, OrderList,
DateTime, DateTime,
OptionsComponent,
}, },
name: '', name: '',
props: { props: {
......
...@@ -77,6 +77,15 @@ export default { ...@@ -77,6 +77,15 @@ export default {
return rules?.maxDate ? dayjs(eval(rules.maxDate)).format('YYYY-MM-DD') : '2099-12-31' return rules?.maxDate ? dayjs(eval(rules.maxDate)).format('YYYY-MM-DD') : '2099-12-31'
} }
}, },
STORE_BASE_SCENE_CODE() {
const storeBaseSceneCode = uni.$storage.get('storeBaseSceneCode')
return storeBaseSceneCode.map(item => String(item)) || []
},
CAR_BRAND_ID() {
const carBrandList = uni.$storage.get('carBrandList'),
carBrandId = carBrandList.map(item => String(item.id))
return carBrandId || []
},
}, },
mounted() { mounted() {
}, },
...@@ -95,6 +104,19 @@ export default { ...@@ -95,6 +104,19 @@ export default {
* @param parent 父级数据 * @param parent 父级数据
*/ */
open(data, c_index, index, parent) { open(data, c_index, index, parent) {
const hasCommonElement = (arrA, arrB) => {
arrA = arrA.map(item => String(item))
arrB = arrB.map(item => String(item))
return arrA.some(i => arrB.includes(i))
}
data.forEach(item => {
if (item.type == 'select' && !item.optionsKey) {
item.options = item.options.filter(i => i.baseSceneCode && i.baseSceneCode?.length ? hasCommonElement(i.baseSceneCode, this.STORE_BASE_SCENE_CODE) : true)
}
})
data.$sceneCodes = this.STORE_BASE_SCENE_CODE
data.$brandIds = this.CAR_BRAND_ID || []
this.data = utils.deepClone(data) || {} this.data = utils.deepClone(data) || {}
this.c_index = c_index || 0 this.c_index = c_index || 0
this.index = index || 0 this.index = index || 0
...@@ -131,8 +153,9 @@ export default { ...@@ -131,8 +153,9 @@ export default {
func = eval(`(function(${params.join(',')}) { return ${result}; })`), func = eval(`(function(${params.join(',')}) { return ${result}; })`),
value = [] value = []
keys.map(key => { keys.map(key => {
let item = data.find(i => i.key == key) let i = data.find(i => i.key == key)
if (item) value.push(item.value || null) if (data[key]) value.push(data[key])
if (i) value.push(i.type == 'multipleSelect' ? i[i.key] : i.value || null)
}) })
let show = func(...value) let show = func(...value)
item.show = show item.show = show
...@@ -150,8 +173,12 @@ export default { ...@@ -150,8 +173,12 @@ export default {
onInput(val, index) { onInput(val, index) {
this.$set(this.data[index], 'value', val) this.$set(this.data[index], 'value', val)
}, },
onSelect(val, index) { onSelect(item, index) {
this.$set(this.data[index], 'value', val) console.log(item, index)
let { key } = this.data[index]
console.log(this.data[index])
this.$set(this.data[index], key, item.value)
this.$set(this.data[index], 'value', item.label)
}, },
openSelect(item, type, index) { openSelect(item, type, index) {
let list = this.data || [] let list = this.data || []
...@@ -169,12 +196,15 @@ export default { ...@@ -169,12 +196,15 @@ export default {
/** 根据 popupType 处理数据 /** 根据 popupType 处理数据
* 5: 日期时间选择 * 5: 日期时间选择
* 6: 日历 * 6: 日历
* 7: 多选
*/ */
if (popupType == 6 || popupType == 5) { if (popupType == 6 || popupType == 5) {
this.$set(this.data[itemIndex], 'value', chooseContent) this.$set(this.data[itemIndex], 'value', chooseContent)
} else if (popupType == 3) { } else if (popupType == 3) {
const { vehicleBrandName, vehicleSubBrandName, vehicleSeriesName, vehicleShapeName } = chooseContent const { vehicleBrandName, vehicleSubBrandName, vehicleSeriesName, vehicleShapeName } = chooseContent
this.$set(this.data[itemIndex], 'value', `${vehicleBrandName}-${vehicleSubBrandName}-${vehicleSeriesName}-${vehicleShapeName}`) let carName = `${vehicleBrandName}-${vehicleSubBrandName}-${vehicleSeriesName}`
if (vehicleShapeName) carName += `-${vehicleShapeName}`
this.$set(this.data[itemIndex], 'value', carName)
this.$set(this.data[itemIndex], this.data[itemIndex].key, chooseContent) this.$set(this.data[itemIndex], this.data[itemIndex].key, chooseContent)
} else if (popupType == 4) { } else if (popupType == 4) {
...@@ -189,6 +219,11 @@ export default { ...@@ -189,6 +219,11 @@ export default {
}) })
} }
} else if (popupType == 7) {
let label = chooseContent.map(item => item.label).join('/'),
value = chooseContent.map(item => item.value)
this.$set(this.data[itemIndex], 'value', label)
this.$set(this.data[itemIndex], this.data[itemIndex].key, value)
} else { } else {
this.$set(this.data[itemIndex], 'value', chooseContent.staffName) this.$set(this.data[itemIndex], 'value', chooseContent.staffName)
this.$set(this.data[itemIndex], this.data[itemIndex].key, chooseContent.uuid) this.$set(this.data[itemIndex], this.data[itemIndex].key, chooseContent.uuid)
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
</template> </template>
<template v-else> <template v-else>
<picker class="picker" mode="selector" @change="select" :range="item.options || []" range-key="label"> <picker class="picker" mode="selector" @change="select" :range="item.options || []" range-key="label">
<view :class="['select flex', { 'placeholderStyle': !item.value }]" ><text <view :class="['select flex', { 'placeholderStyle': !item.value }]"><text class="text-hide">{{ item.value
class="text-hide">{{ item.value || item.placeholder || '请选择' }}</text> || item.placeholder || '请选择' }}</text>
<view class="sprite-icon icon-icon-select"></view> <view class="sprite-icon icon-icon-select"></view>
</view> </view>
</picker> </picker>
...@@ -75,10 +75,7 @@ ...@@ -75,10 +75,7 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import dayjs from 'dayjs';
import utils from '@/utils/utils'
import permision from '@/js_sdk/wa-permission/permission.js' import permision from '@/js_sdk/wa-permission/permission.js'
export default { export default {
name: 'FormItem', name: 'FormItem',
props: { props: {
...@@ -142,10 +139,10 @@ export default { ...@@ -142,10 +139,10 @@ export default {
if (item.optionsKey || ['date', 'datetime', 'carBrandSelect'].includes(item.type)) { if (item.optionsKey || ['date', 'datetime', 'carBrandSelect'].includes(item.type)) {
if (item.optionsKey == 'storeStaffList' && item.type == 'select') popupType = 1 if (item.optionsKey == 'storeStaffList' && item.type == 'select') popupType = 1
if (item.optionsKey == 'orderList') popupType = 4 if (item.optionsKey == 'orderList') popupType = 4
if (item.optionsKey == 'options') popupType = 7
this.$emit('openSelect', item, popupType) this.$emit('openSelect', item, popupType)
} else { } else {
this.$emit('onSelect', item.options[e.detail.value].value) this.$emit('onSelect', item.options[e.detail.value])
} }
}, },
async clickPrefix() { async clickPrefix() {
...@@ -415,7 +412,8 @@ export default { ...@@ -415,7 +412,8 @@ export default {
background: #f4f5f7; background: #f4f5f7;
padding: toRpx(24); padding: toRpx(24);
box-sizing: border-box; box-sizing: border-box;
.select{
.select {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: block; display: block;
......
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
dailyReportRecordId: '', dailyReportRecordId: '',
reportStatus: '', reportStatus: '',
submissionStatus: '', submissionStatus: '',
submissionDate:'' submissionDate: ''
} }
}, },
onBackPress(options) { onBackPress(options) {
...@@ -104,10 +104,10 @@ export default { ...@@ -104,10 +104,10 @@ export default {
carBrandId = carBrandList.map(item => item.id) carBrandId = carBrandList.map(item => item.id)
return carBrandId return carBrandId
}, },
BASE_SCENE_CODE() { // BASE_SCENE_CODE() {
const baseSceneCode = uni.$storage.get('baseSceneCode') // const baseSceneCode = uni.$storage.get('baseSceneCode')
return baseSceneCode // return baseSceneCode
}, // },
STORE_BASE_SCENE_CODE() { STORE_BASE_SCENE_CODE() {
const storeBaseSceneCode = uni.$storage.get('storeBaseSceneCode') const storeBaseSceneCode = uni.$storage.get('storeBaseSceneCode')
return storeBaseSceneCode return storeBaseSceneCode
...@@ -212,14 +212,10 @@ export default { ...@@ -212,14 +212,10 @@ export default {
const setA = new Set(arrA) const setA = new Set(arrA)
return arrB.every(item => setA.has(item)) return arrB.every(item => setA.has(item))
} }
const { templateType, CAR_BRAND_ID, BASE_SCENE_CODE, STORE_BASE_SCENE_CODE } = this, const { templateType, CAR_BRAND_ID, STORE_BASE_SCENE_CODE } = this,
data = await uni.$api.dailyTemplateApi.getDailyTemplate(templateType), data = await uni.$api.dailyTemplateApi.getDailyTemplate(templateType),
baseCode = templateType == 2 ? STORE_BASE_SCENE_CODE : BASE_SCENE_CODE baseCode = STORE_BASE_SCENE_CODE
let templateData = Object.values(data) let templateData = Object.values(data)
// .filter(item => {
// // 场景类型过滤
// return item.sceneType.length ? item.sceneType.includes(SCENE_TYPE) : true
// })
.filter(item => { .filter(item => {
// 品牌过滤 // 品牌过滤
if (item.filterBrandId && item.filterBrandId.length) { if (item.filterBrandId && item.filterBrandId.length) {
...@@ -270,6 +266,7 @@ export default { ...@@ -270,6 +266,7 @@ export default {
} }
}) })
uni.hideLoading() uni.hideLoading()
console.log(templateData)
this.templateData = templateData this.templateData = templateData
}, },
setCurrentDate(currentDate) { setCurrentDate(currentDate) {
...@@ -283,13 +280,9 @@ export default { ...@@ -283,13 +280,9 @@ export default {
}, },
async checkReport() { async checkReport() {
let componentRef = this.$refs[`ref-${this.componentName}`], let componentRef = this.$refs[`ref-${this.componentName}`],
{ templateData, templateType, currentDate } = this { templateData, currentDate } = this
// if (templateType != 1) {
// if (!componentRef.isToday) return false
// } else {
let lastDay = dayjs().subtract(30, 'day') let lastDay = dayjs().subtract(30, 'day')
if (!lastDay.isBefore(dayjs(currentDate), 'day')) return false if (!lastDay.isBefore(dayjs(currentDate), 'day')) return false
// }
return templateData.length ? componentRef.saveBtnStatus : false return templateData.length ? componentRef.saveBtnStatus : false
}, },
...@@ -450,8 +443,8 @@ export default { ...@@ -450,8 +443,8 @@ export default {
uni.showLoading({ title: '提交中...', mask: true }) uni.showLoading({ title: '提交中...', mask: true })
const saveData = await uni.$api.dailyTemplateApi.saveDraft(reportParams) const saveData = await uni.$api.dailyTemplateApi.saveDraft(reportParams)
if (saveData) { if (saveData) {
const dailyReportRecordId = await this.getReportDetail(true), const { dailyReportRecordId } = this,
data = await uni.$api.dailyTemplateApi.submitReport({ dailyReportRecordId }) data = await uni.$api.dailyTemplateApi.submitReport({ dailyReportRecordId })
uni.hideLoading() uni.hideLoading()
if (data) { if (data) {
uni.showToast({ title: '操作成功', icon: 'success', mask: true }) uni.showToast({ title: '操作成功', icon: 'success', mask: true })
......
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
}, },
ReportStatus: null, ReportStatus: null,
SubmissionStatus: null, SubmissionStatus: null,
submissionDate:[String, Number] submissionDate: [String, Number]
}, },
computed: { computed: {
/**可编辑日期 */ /**可编辑日期 */
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
}, },
reportParams() { reportParams() {
let { shopMerchantId, shopMerchantName, uuid, name, merchantId, merchantName } = this.userInfo, let { shopMerchantId, shopMerchantName, uuid, name, merchantId, merchantName } = this.userInfo,
{ currentDate, templateType, dailyReportRecordId, sceneType, SubmissionStatus , submissionDate} = this, { currentDate, templateType, dailyReportRecordId, sceneType, SubmissionStatus, submissionDate } = this,
params = { params = {
merchantId: shopMerchantId, merchantId: shopMerchantId,
merchantName: shopMerchantName, merchantName: shopMerchantName,
...@@ -44,11 +44,11 @@ export default { ...@@ -44,11 +44,11 @@ export default {
templateType: templateType(), templateType: templateType(),
yqMerchantId: merchantId, yqMerchantId: merchantId,
yqMerchantName: merchantName, yqMerchantName: merchantName,
sceneType, sceneType
} }
if (!SubmissionStatus) params.submissionStatus = 2 if (!SubmissionStatus) params.submissionStatus = 2
else params.submissionStatus = SubmissionStatus else params.submissionStatus = SubmissionStatus
if(!submissionDate) params.submissionDate = dayjs().format('YYYY-MM-DD HH:mm:ss') if (!submissionDate) params.submissionDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
else params.submissionDate = dayjs(submissionDate).format('YYYY-MM-DD HH:mm:ss') else params.submissionDate = dayjs(submissionDate).format('YYYY-MM-DD HH:mm:ss')
if (dailyReportRecordId()) params.dailyReportRecordId = dailyReportRecordId() if (dailyReportRecordId()) params.dailyReportRecordId = dailyReportRecordId()
return params return params
...@@ -67,8 +67,9 @@ export default { ...@@ -67,8 +67,9 @@ export default {
func = eval(`(function(${params.join(',')}) { return ${result}; })`), func = eval(`(function(${params.join(',')}) { return ${result}; })`),
value = [] value = []
keys.map(key => { keys.map(key => {
let item = data.find(i => i.key == key) let i = data.find(i => i.key == key)
if (item) value.push(item.value || null) if (data[key]) value.push(data[key])
if (i) value.push(i.type == 'multipleSelect' ? i[i.key] : i.value || null)
}) })
let show = func(...value) let show = func(...value)
return show return show
...@@ -141,10 +142,11 @@ export default { ...@@ -141,10 +142,11 @@ export default {
}) })
const { shopMerchantId } = this.userInfo, const { shopMerchantId } = this.userInfo,
{ sceneType } = this, { sceneType } = this,
carBrandList = await uni.$api.boutiqueApi.getDailyReportCarBrand({ carBrandList =
merchantId: shopMerchantId, (await uni.$api.boutiqueApi.getDailyReportCarBrand({
sceneType merchantId: shopMerchantId,
}) || [] sceneType
})) || []
requestJson.carBrandList = carBrandList.map(({ firstBrandId, firstBrandName, brandId, brandName }) => ({ requestJson.carBrandList = carBrandList.map(({ firstBrandId, firstBrandName, brandId, brandName }) => ({
firstBrandId, firstBrandId,
firstBrandName, firstBrandName,
...@@ -169,7 +171,7 @@ export default { ...@@ -169,7 +171,7 @@ export default {
} }
}, },
async submitReport(res) { async submitReport(res) {
let reportParams = await this.saveReport(res, true) let reportParams = await this.saveReport(res, true)
this.$emit('submitReport', reportParams) this.$emit('submitReport', reportParams)
} }
} }
......
const CUSTOMER_TAGS = {
1: '已触客',
2: '已拉群',
3: '已交付引荐',
4: '首保维保客户 ',
5: '事故车客户'
}
module.exports = { module.exports = {
data: { data: {
CUSTOMER_TAGS,
orderObj: [ orderObj: [
{ {
label: '工单编号', label: '工单编号',
...@@ -29,6 +37,21 @@ module.exports = { ...@@ -29,6 +37,21 @@ module.exports = {
key: 'customerName' key: 'customerName'
}, },
{ {
label: '日报标签',
key: 'customerTags',
format: data => {
return data
.split(',')
.map(item => CUSTOMER_TAGS[item])
.join('/')
}
},
{
label: '实际交付日期',
key: 'actualDeliveryDate',
format: val => dayjs(val).format('YYYY-MM-DD')
},
{
label: '性别', label: '性别',
key: 'customerSex', key: 'customerSex',
enum: { enum: {
...@@ -220,7 +243,7 @@ module.exports = { ...@@ -220,7 +243,7 @@ module.exports = {
goodsOrderApplyStatus: { goodsOrderApplyStatus: {
0: '审批中', //区域运营待审核 0: '审批中', //区域运营待审核
1: '审批通过', //线上运营待审核 1: '审批通过', //线上运营待审核
2: '审批驳回', 2: '审批驳回'
}, },
orderType: { orderType: {
1: '正常订单', 1: '正常订单',
...@@ -228,7 +251,7 @@ module.exports = { ...@@ -228,7 +251,7 @@ module.exports = {
3: '买赠策略', 3: '买赠策略',
4: '冲量活动', 4: '冲量活动',
5: '组合付款', 5: '组合付款',
6:'内部结算' 6: '内部结算'
} }
} }
} }
...@@ -5,18 +5,16 @@ ...@@ -5,18 +5,16 @@
<view class="box"> <view class="box">
<scroll-view class="scroll-view" scroll-y="true"> <scroll-view class="scroll-view" scroll-y="true">
<view class="box-content"> <view class="box-content">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell" :titleList="titleList"> <GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur"
@handleCell="handleCell" :titleList="titleList" @confirmCalendar="confirmCalendar">
<template slot="customer"> <template slot="customer">
<view class="customer-title flex"> <view class="customer-title flex">
客户信息 客户信息
<view <view class="customer-file flex" @click="
class="customer-file flex" handleCell({
@click=" key: 'customer'
handleCell({ })
key: 'customer' ">
})
"
>
<view class="sprite-icon icon-customer-list"></view> <view class="sprite-icon icon-customer-list"></view>
客户档案 客户档案
</view> </view>
...@@ -24,7 +22,9 @@ ...@@ -24,7 +22,9 @@
</template> </template>
<template slot="skuGoods"> <template slot="skuGoods">
<template v-if="orderObj.skuGoods.length"> <template v-if="orderObj.skuGoods.length">
<SkuGoods :list="orderObj.skuGoods" @changeTotalPrice="changeTotalPrice" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData" :orderTypeCode="orderObj.orderTypeCode"></SkuGoods> <SkuGoods :list="orderObj.skuGoods" @changeTotalPrice="changeTotalPrice"
:positionTypeList="positionTypeList" :baseConfigData="baseConfigData"
:orderTypeCode="orderObj.orderTypeCode"></SkuGoods>
</template> </template>
<template v-if="orderObj.total > 0"> <template v-if="orderObj.total > 0">
<view class="total"> <view class="total">
...@@ -46,7 +46,8 @@ ...@@ -46,7 +46,8 @@
</view> </view>
</view> </view>
<!-- 弹窗 --> <!-- 弹窗 -->
<order-popup ref="orderPopup" :data="orderObj" :dataKey="valueKey" @onConfirm="onConfirm" :externalData="externalData" :popupType="popupType" :popupTitle="popupTitle" /> <order-popup ref="orderPopup" :data="orderObj" :dataKey="valueKey" @onConfirm="onConfirm"
:externalData="externalData" :popupType="popupType" :popupTitle="popupTitle" />
<template v-if="showUpload"> <template v-if="showUpload">
<view class="upload-box"> <view class="upload-box">
<upload-proof-of-payment @back="clearPayMentDocList" @confirm="uploadConfirm" /> <upload-proof-of-payment @back="clearPayMentDocList" @confirm="uploadConfirm" />
...@@ -120,6 +121,31 @@ export default { ...@@ -120,6 +121,31 @@ export default {
}, },
deep: true, deep: true,
immediate: true immediate: true
},
"orderObj.salesType": {
handler(newVal) {
const selected = Boolean(this.orderObj && (this.orderObj.baseSceneCodeValue || this.orderObj.baseSceneCode))
console.log(newVal, 'newVal')
let formList = this.formList
formList.map(item => {
item.map(child => {
if (child.value == 'customerTags') {
let hidden = !selected || newVal == 2
child.hidden = hidden
if (hidden) this.$set(this.orderObj, 'customerTags', [])
}
if (child.value == 'actualDeliveryDate') {
let hidden = ![0].includes(+newVal) || !selected
child.hidden = hidden
if (hidden) this.$set(this.orderObj, 'actualDeliveryDate', '')
}
})
})
this.formList = formList
},
immediate: true,
deep: true
} }
}, },
data() { data() {
...@@ -149,7 +175,9 @@ export default { ...@@ -149,7 +175,9 @@ export default {
ownerGender: '男', ownerGender: '男',
salesType: '0', salesType: '0',
carInfo: {}, carInfo: {},
price: '' price: '',
customerTags: [], // 日报标签
actualDeliveryDate: '', // 实际交付日期
}, // 弹窗传入的数据}, }, // 弹窗传入的数据},
popupType: 0, popupType: 0,
popupTypeEnum, popupTypeEnum,
...@@ -184,11 +212,11 @@ export default { ...@@ -184,11 +212,11 @@ export default {
this.initData() this.initData()
}, },
methods: { methods: {
updateSceneGate () { updateSceneGate() {
const selected = Boolean(this.orderObj && (this.orderObj.baseSceneCodeValue || this.orderObj.baseSceneCode)) const selected = Boolean(this.orderObj && (this.orderObj.baseSceneCodeValue || this.orderObj.baseSceneCode))
const list = this.formList || [] const list = this.formList || []
list.forEach(group => { list.forEach(group => {
;(group || []).forEach(item => { ; (group || []).forEach(item => {
if (!item) return if (!item) return
if (item._originHidden === undefined) item._originHidden = Boolean(item.hidden) if (item._originHidden === undefined) item._originHidden = Boolean(item.hidden)
if (!selected) { if (!selected) {
...@@ -201,7 +229,7 @@ export default { ...@@ -201,7 +229,7 @@ export default {
this.formList = list this.formList = list
return selected return selected
}, },
async initRecentSceneEcho () { async initRecentSceneEcho() {
try { try {
const userInfo = this.userInfo || (uni.$storage.get('userInfo') || {}) const userInfo = this.userInfo || (uni.$storage.get('userInfo') || {})
const phone = userInfo.phone const phone = userInfo.phone
...@@ -231,7 +259,7 @@ export default { ...@@ -231,7 +259,7 @@ export default {
// 同步表单展示(GlCell 部分字段依赖 current) // 同步表单展示(GlCell 部分字段依赖 current)
const sceneCell = this.formList?.[0]?.find(v => v && v.value === 'baseSceneCode') const sceneCell = this.formList?.[0]?.find(v => v && v.value === 'baseSceneCode')
if (sceneCell) sceneCell.current = item.name || item.staffName || '' if (sceneCell) sceneCell.current = item.name || item.staffName || ''
} catch (e) {} } catch (e) { }
}, },
async getQuotationInfoById(id) { async getQuotationInfoById(id) {
try { try {
...@@ -584,7 +612,7 @@ export default { ...@@ -584,7 +612,7 @@ export default {
0: pointsMultiRole == 'Y' ? '销售顾问/录单员' : '推荐人', 0: pointsMultiRole == 'Y' ? '销售顾问/录单员' : '推荐人',
4: '车型', 4: '车型',
13: payType == 2 ? '4S店收款时间' : '嘀加收款时间', 13: payType == 2 ? '4S店收款时间' : '嘀加收款时间',
29:'确认业务场景名称' 29: '确认业务场景名称'
}[this.popupType] }[this.popupType]
// 确保 orderPopup 引用存在后再调用 open 方法 // 确保 orderPopup 引用存在后再调用 open 方法
if (this.$refs.orderPopup && this.$refs.orderPopup.open) { if (this.$refs.orderPopup && this.$refs.orderPopup.open) {
...@@ -595,8 +623,19 @@ export default { ...@@ -595,8 +623,19 @@ export default {
}, },
// 单选框change事件 // 单选框change事件
radioChange(e, val) { radioChange(e, val) {
this.$set(this.orderObj, val.value, e.detail.value) if (val.multiple) {
if (val.value == 'payee') this.changePayee() let key = val.value,
value = this.orderObj[key] || []
if (value.includes(e)) {
value = value.filter(item => item !== e)
} else {
value.push(e)
}
this.$set(this.orderObj, key, value)
} else {
this.$set(this.orderObj, val.value, e.detail.value)
if (val.value == 'payee') this.changePayee()
}
}, },
// 弹窗确认回调 // 弹窗确认回调
onConfirm(val, flag) { onConfirm(val, flag) {
...@@ -1184,12 +1223,19 @@ export default { ...@@ -1184,12 +1223,19 @@ export default {
return pre return pre
}, []) }, [])
let keyList = ['mode', 'payee', 'payType', 'referrerId', 'referrer', 'deliveryId', 'deliveryName', 'total', 'notes', 'tradeNo', 'transactionNo', 'paymentDocList', 'id', 'orderId', 'pay2Time'], let keyList = ['mode', 'payee', 'payType', 'referrerId', 'referrer', 'deliveryId', 'deliveryName', 'total', 'notes', 'tradeNo', 'transactionNo', 'paymentDocList', 'id', 'orderId', 'pay2Time'],
customerKeyList = ['owner', 'phone', 'certificateNo', 'carVin', 'seat', 'price', 'ownerGender', 'city', 'ageRange', 'hobby', 'companion', 'carColor', 'salesType'] customerKeyList = ['owner', 'phone', 'certificateNo', 'carVin', 'seat', 'price', 'ownerGender', 'city', 'ageRange', 'hobby', 'companion', 'carColor', 'salesType', 'customerTags', 'actualDeliveryDate']
keyList.map(key => { keyList.map(key => {
if (orderInfo[key] != null) params[key] = orderInfo[key] if (orderInfo[key] != null) params[key] = orderInfo[key]
}) })
customerKeyList.map(key => { customerKeyList.map(key => {
if (orderInfo[key] != null) params.owner[key] = orderInfo[key] if (orderInfo[key] != null) {
if (key == 'customerTags'){
if(orderInfo[key].length > 0) orderInfo[key] = orderInfo[key].join(',')
else orderInfo[key] = ''
}
if (orderInfo[key] && key == 'actualDeliveryDate') orderInfo[key] += ' 00:00:00'
params.owner[key] = orderInfo[key]
}
}) })
if (orderInfo.ownerId) params.owner.id = orderInfo.ownerId if (orderInfo.ownerId) params.owner.id = orderInfo.ownerId
return params return params
...@@ -1394,7 +1440,9 @@ export default { ...@@ -1394,7 +1440,9 @@ export default {
certificateNo: customerInfo.customerCertificateNo || '', certificateNo: customerInfo.customerCertificateNo || '',
salesType, salesType,
carVin: customerInfo.carVin || '', carVin: customerInfo.carVin || '',
carColor: customerInfo.carColor || '' carColor: customerInfo.carColor || '',
customerTags: customerInfo.customerTags || [],
actualDeliveryDate: customerInfo.actualDeliveryDate ? dayjs(customerInfo.actualDeliveryDate).format('YYYY-MM-DD') : ''
}) })
this.formList[1].map(e => { this.formList[1].map(e => {
if (e.value == 'salesType') e.current = salesType if (e.value == 'salesType') e.current = salesType
...@@ -1465,7 +1513,12 @@ export default { ...@@ -1465,7 +1513,12 @@ export default {
this.showUpload = false this.showUpload = false
this.orderObj.paymentDocList = [] this.orderObj.paymentDocList = []
this.orderObj.transactionNo = '' this.orderObj.transactionNo = ''
} },
// 选择日期事件
confirmCalendar(e, key) {
let value = e.fulldate
this.$set(this.orderObj, key, value)
},
} }
} }
</script> </script>
...@@ -1474,14 +1527,17 @@ export default { ...@@ -1474,14 +1527,17 @@ export default {
.order { .order {
height: 100%; height: 100%;
position: relative; position: relative;
&-box { &-box {
visibility: visible; visibility: visible;
height: 100%; height: 100%;
} }
.hide { .hide {
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
} }
.upload-box { .upload-box {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -1528,9 +1584,11 @@ export default { ...@@ -1528,9 +1584,11 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999; color: #999;
} }
.btns { .btns {
padding: toRpx(24) toRpx(128); padding: toRpx(24) toRpx(128);
gap: toRpx(32); gap: toRpx(32);
.save { .save {
background: #3b73ff1a; background: #3b73ff1a;
color: #4673ff; color: #4673ff;
...@@ -1538,6 +1596,7 @@ export default { ...@@ -1538,6 +1596,7 @@ export default {
font-weight: 500; font-weight: 500;
} }
} }
.btn { .btn {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -1548,11 +1607,13 @@ export default { ...@@ -1548,11 +1607,13 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
} }
.customer-title { .customer-title {
.customer-file { .customer-file {
margin-left: toRpx(20); margin-left: toRpx(20);
color: #347bff; color: #347bff;
font-size: toRpx(24); font-size: toRpx(24);
.sprite-icon { .sprite-icon {
margin-right: toRpx(4); margin-right: toRpx(4);
} }
......
...@@ -6,15 +6,22 @@ ...@@ -6,15 +6,22 @@
<text class="mr-20">{{ orderCardDetail.customerName }}</text> <text class="mr-20">{{ orderCardDetail.customerName }}</text>
<!-- 标记为已开票的 不可编辑客户信息 invoicing 2已开票 --> <!-- 标记为已开票的 不可编辑客户信息 invoicing 2已开票 -->
<view v-if="isOrder"> <view v-if="isOrder">
<view v-if="orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 5 || orderCardDetail.orderStatus == -1" @click="jumpUpdate" :class="['updateInfo flex', orderCardDetail.orderStatus == '6' || orderCardDetail.invoicing == '2' ? 'isHide' : '']"> <view
v-if="orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 5 || orderCardDetail.orderStatus == -1"
@click="jumpUpdate"
:class="['updateInfo flex', orderCardDetail.orderStatus == '6' || orderCardDetail.invoicing == '2' ? 'isHide' : '']">
<view class="sprite-icon icon-edit mr-8"></view> <view class="sprite-icon icon-edit mr-8"></view>
客户信息 客户信息
</view> </view>
</view> </view>
</view> </view>
<!-- 待上传合同协议且是已支付的订单 --> <!-- 待上传合同协议且是已支付的订单 -->
<view class="status text-center" :style="{ color: (status[0] && status[0].color) || '#FF9D0A', 'background-color': (status[0] && status[0].background) || '#FFF5E6' }" v-if="orderCardDetail.zyPayStatus == 1 && (orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 4 || orderCardDetail.orderStatus == 7)">待上传</view> <view class="status text-center"
<view v-else class="status text-center" :style="{ color: currentStatusConfig.color, 'background-color': currentStatusConfig.background }"> :style="{ color: (status[0] && status[0].color) || '#FF9D0A', 'background-color': (status[0] && status[0].background) || '#FFF5E6' }"
v-if="orderCardDetail.zyPayStatus == 1 && (orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 4 || orderCardDetail.orderStatus == 7)">
待上传</view>
<view v-else class="status text-center"
:style="{ color: currentStatusConfig.color, 'background-color': currentStatusConfig.background }">
{{ currentStatusConfig.text }} {{ currentStatusConfig.text }}
</view> </view>
</view> </view>
...@@ -48,7 +55,9 @@ ...@@ -48,7 +55,9 @@
<view class="order-value flex">{{ goodsOrderApplyStatus[orderCardDetail.approveStatus] || '-' }}</view> <view class="order-value flex">{{ goodsOrderApplyStatus[orderCardDetail.approveStatus] || '-' }}</view>
</view> </view>
</view> </view>
<view class="order-list align-center" v-for="(item, sindex) in orderCardDetail.deliveryId ? pointsMultiObj : orderObj" :key="sindex" v-if="(item.key !== 'remark' || orderCardDetail.orderStatus === '-1') && (item.key !== 'payTime' || orderCardDetail.orderStatus === '3' || orderCardDetail.orderStatus === '5')"> <view class="order-list align-center"
v-for="(item, sindex) in orderCardDetail.deliveryId ? pointsMultiObj : orderObj" :key="sindex"
v-if="(item.key !== 'remark' || orderCardDetail.orderStatus === '-1') && (item.key !== 'payTime' || orderCardDetail.orderStatus === '3' || orderCardDetail.orderStatus === '5')">
<view v-if="item.key == 'remark' || item.key == 'payTime' || item.key == 'createdTime'"> <view v-if="item.key == 'remark' || item.key == 'payTime' || item.key == 'createdTime'">
<view class="order flex align-center" v-if="item.key == 'remark' && orderCardDetail.orderStatus == '-1'"> <view class="order flex align-center" v-if="item.key == 'remark' && orderCardDetail.orderStatus == '-1'">
<view class="order-label">{{ item.label }}</view> <view class="order-label">{{ item.label }}</view>
...@@ -56,7 +65,8 @@ ...@@ -56,7 +65,8 @@
<view>{{ orderCardDetail[item.key] || '' }}</view> <view>{{ orderCardDetail[item.key] || '' }}</view>
</view> </view>
</view> </view>
<view class="order flex align-center" v-if="item.key == 'payTime' && (orderCardDetail.orderStatus == '3' || orderCardDetail.orderStatus == '5')"> <view class="order flex align-center"
v-if="item.key == 'payTime' && (orderCardDetail.orderStatus == '3' || orderCardDetail.orderStatus == '5')">
<view class="order-label">{{ item.label }}</view> <view class="order-label">{{ item.label }}</view>
<view class="order-value"> <view class="order-value">
<view>{{ orderCardDetail[item.key] || '' }}</view> <view>{{ orderCardDetail[item.key] || '' }}</view>
...@@ -72,28 +82,35 @@ ...@@ -72,28 +82,35 @@
<view class="order flex align-center" v-else> <view class="order flex align-center" v-else>
<view class="order-label">{{ item.label }}</view> <view class="order-label">{{ item.label }}</view>
<view class="order-value flex"> <view class="order-value flex">
<view v-if="item.arr" class="flex"> <template v-if="item.format">
<view v-if="orderCardDetail[item.arr[1]]" class="flex"> {{ item.format(orderCardDetail) }}
<view v-for="(k, arr_index) in item.arr" :key="arr_index" class="flex"> </template>
<view class="order-value-item text-hide flex"> <template v-else>
<view v-if="arr_index == 1"> <view v-if="item.arr" class="flex">
<text class="split">|</text> <view v-if="orderCardDetail[item.arr[1]]" class="flex">
<view v-for="(k, arr_index) in item.arr" :key="arr_index" class="flex">
<view class="order-value-item text-hide flex">
<view v-if="arr_index == 1">
<text class="split">|</text>
</view>
<text class="value-text">{{ orderCardDetail[k] }}</text>
</view> </view>
<text class="value-text">{{ orderCardDetail[k] }}</text>
</view> </view>
</view> </view>
<view v-else class="order-value-single">
<text class="value-text">{{ orderCardDetail[item.key] || '' }}</text>
</view>
</view> </view>
<view v-else class="order-value-single"> <view v-else class="order-value-single flex">
<text class="value-text">{{ orderCardDetail[item.key] || '' }}</text> <text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || ''
</view> }}</text>
</view> <text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text>
<view v-else class="order-value-single flex"> <view v-if="item.canCopy && orderCardDetail[item.key]" class="copy-btn"
<text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text> @click.stop="copyText(orderCardDetail[item.key])">
<text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text> <view class="sprite-icon icon-icon-copy copy"></view>
<view v-if="item.canCopy && orderCardDetail[item.key]" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])"> </view>
<view class="sprite-icon icon-icon-copy copy"></view>
</view> </view>
</view> </template>
</view> </view>
</view> </view>
</view> </view>
...@@ -127,12 +144,14 @@ ...@@ -127,12 +144,14 @@
<view class="staff-value">{{ orderCardDetail.technicianName }}</view> <view class="staff-value">{{ orderCardDetail.technicianName }}</view>
</view> </view>
<view v-if="orderCardDetail.zyPayStatus != 1" class=""> <view v-if="orderCardDetail.zyPayStatus != 1" class="">
<view class="flex px-24 tips" v-if="(orderCardDetail.orderStatus == 3 && orderCardDetail.equityOrderStatus == 0 && orderCardDetail.equityGoodsFlag == 1) || (orderCardDetail.orderStatus == 5 && orderCardDetail.equityOrderStatus == 0)"> <view class="flex px-24 tips"
v-if="(orderCardDetail.orderStatus == 3 && orderCardDetail.equityOrderStatus == 0 && orderCardDetail.equityGoodsFlag == 1) || (orderCardDetail.orderStatus == 5 && orderCardDetail.equityOrderStatus == 0)">
<view class="sprite-icon icon-study-tips"></view> <view class="sprite-icon icon-study-tips"></view>
订单已支付,未录入权益合同 订单已支付,未录入权益合同
</view> </view>
<!-- 已录单未签名 --> <!-- 已录单未签名 -->
<view class="flex px-24 tips" v-else-if="orderCardDetail.orderStatus == 3 && orderCardDetail.equityOrderStatus == 2"> <view class="flex px-24 tips"
v-else-if="orderCardDetail.orderStatus == 3 && orderCardDetail.equityOrderStatus == 2">
<view class="sprite-icon icon-study-tips"></view> <view class="sprite-icon icon-study-tips"></view>
订单已支付,尚未签名确认 订单已支付,尚未签名确认
</view> </view>
...@@ -165,9 +184,11 @@ ...@@ -165,9 +184,11 @@
</view> </view>
</view> </view>
<NoticePopup ref="notice" title="提示" text="是否撤销该笔客户工单,撤销后客户工单为「已撤销」状态,不再统计订单数和订单金额。" type="warning"></NoticePopup> <NoticePopup ref="notice" title="提示" text="是否撤销该笔客户工单,撤销后客户工单为「已撤销」状态,不再统计订单数和订单金额。" type="warning"></NoticePopup>
<NoticePopup ref="reportNotice" :title="noticeObj.title" :text="noticeObj.text" :type="noticeObj.type || 'success'" :buttons="noticeObj.buttons"></NoticePopup> <NoticePopup ref="reportNotice" :title="noticeObj.title" :text="noticeObj.text" :type="noticeObj.type || 'success'"
:buttons="noticeObj.buttons"></NoticePopup>
<ContractPopup ref="contractPopupRef" @onConfirm="onConfirm"></ContractPopup> <ContractPopup ref="contractPopupRef" @onConfirm="onConfirm"></ContractPopup>
<PublishPopup ref="defeatOrderPopup" popupClass="defeatOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="战败原因"> <PublishPopup ref="defeatOrderPopup" popupClass="defeatOrderPopup" type="center" :showClose="true"
:isMaskClick="false" title="战败原因">
<template #content> <template #content>
<view class="defeat-order-box modatcontent"> <view class="defeat-order-box modatcontent">
<textarea class="defeat-textarea" placeholder="请填写战败原因" maxlength="30" v-model="textareaValue" /> <textarea class="defeat-textarea" placeholder="请填写战败原因" maxlength="30" v-model="textareaValue" />
...@@ -180,7 +201,8 @@ ...@@ -180,7 +201,8 @@
</view> </view>
</template> </template>
</PublishPopup> </PublishPopup>
<PublishPopup ref="errorOrderPopup" popupClass="errorOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="工单标记"> <PublishPopup ref="errorOrderPopup" popupClass="errorOrderPopup" type="center" :showClose="true"
:isMaskClick="false" title="工单标记">
<template #content> <template #content>
<view class="error-order-box modatcontent"> <view class="error-order-box modatcontent">
<view class="error-order-title">订单编号:{{ orderCardDetail.payId }}</view> <view class="error-order-title">订单编号:{{ orderCardDetail.payId }}</view>
...@@ -206,6 +228,8 @@ import { interceptionMixin } from '@/mixin/index' ...@@ -206,6 +228,8 @@ import { interceptionMixin } from '@/mixin/index'
import PublishPopup from '@/components/PublishPopup.vue' import PublishPopup from '@/components/PublishPopup.vue'
import NoticePopup from '@/components/NoticePopup.vue' import NoticePopup from '@/components/NoticePopup.vue'
import ContractPopup from './ContractPopup.vue' import ContractPopup from './ContractPopup.vue'
import dayjs from 'dayjs'
export default { export default {
mixins: [interceptionMixin], mixins: [interceptionMixin],
name: 'OrderCard', name: 'OrderCard',
...@@ -388,6 +412,9 @@ export default { ...@@ -388,6 +412,9 @@ export default {
} }
return config return config
},
customerTags() {
return order_mixins.data.CUSTOMER_TAGS || {}
} }
}, },
data() { data() {
...@@ -401,6 +428,22 @@ export default { ...@@ -401,6 +428,22 @@ export default {
key: 'baseSceneName' key: 'baseSceneName'
}, },
{ {
label: '日报标签',
key: 'customerTags',
format: (item) => {
let val = item?.customerTags
return val ? val.split(',').map(e => this.customerTags[e] || e).join('/') : '-'
}
},
{
label: '实际交付日期',
key: 'actualDeliveryDate',
format: (item) => {
let val = item?.actualDeliveryDate
return val ? dayjs(val).format('YYYY-MM-DD') : '-'
}
},
{
label: '销售顾问 /录单员', label: '销售顾问 /录单员',
arr: ['merchantName', 'referrerName'] arr: ['merchantName', 'referrerName']
}, },
...@@ -461,6 +504,22 @@ export default { ...@@ -461,6 +504,22 @@ export default {
key: 'baseSceneName' key: 'baseSceneName'
}, },
{ {
label: '日报标签',
key: 'customerTags',
format: (item) => {
let val = item?.customerTags
return val ? val.split(',').map(e => this.customerTags[e] || e).join('/') : '-'
}
},
{
label: '实际交付日期',
key: 'actualDeliveryDate',
format: (item) => {
let val = item?.actualDeliveryDate
return val ? dayjs(val).format('YYYY-MM-DD') : '-'
}
},
{
label: '销售顾问', label: '销售顾问',
arr: ['merchantName', 'referrerName'] arr: ['merchantName', 'referrerName']
}, },
...@@ -867,11 +926,13 @@ export default { ...@@ -867,11 +926,13 @@ export default {
padding: toRpx(48) toRpx(64); padding: toRpx(48) toRpx(64);
border-radius: toRpx(32) toRpx(32) 0 0; border-radius: toRpx(32) toRpx(32) 0 0;
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%); background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
&-title { &-title {
color: #1a1a1a; color: #1a1a1a;
font-size: toRpx(40); font-size: toRpx(40);
font-weight: 500; font-weight: 500;
} }
.icon-close { .icon-close {
font-size: toRpx(40) !important; font-size: toRpx(40) !important;
color: rgba(26, 26, 26, 0.6) !important; color: rgba(26, 26, 26, 0.6) !important;
...@@ -881,6 +942,7 @@ export default { ...@@ -881,6 +942,7 @@ export default {
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: 0 toRpx(64); padding: 0 toRpx(64);
.modalbox { .modalbox {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -893,9 +955,11 @@ export default { ...@@ -893,9 +955,11 @@ export default {
color: #292d33; color: #292d33;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 500; font-weight: 500;
& + .modalbox {
&+.modalbox {
margin-top: toRpx(16); margin-top: toRpx(16);
} }
.sprite-icon { .sprite-icon {
margin: 0 toRpx(24) 0 toRpx(32); margin: 0 toRpx(24) 0 toRpx(32);
} }
...@@ -906,6 +970,7 @@ export default { ...@@ -906,6 +970,7 @@ export default {
background: #347bff1a; background: #347bff1a;
} }
} }
.footer-box { .footer-box {
width: 100%; width: 100%;
height: toRpx(164); height: toRpx(164);
...@@ -913,6 +978,7 @@ export default { ...@@ -913,6 +978,7 @@ export default {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
border-radius: 0 0 toRpx(32) toRpx(32); border-radius: 0 0 toRpx(32) toRpx(32);
.btn { .btn {
width: 40%; width: 40%;
height: toRpx(80); height: toRpx(80);
...@@ -924,15 +990,18 @@ export default { ...@@ -924,15 +990,18 @@ export default {
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 500; font-weight: 500;
} }
.cancle-btn { .cancle-btn {
background: #f0f1f5; background: #f0f1f5;
} }
.sure-btn { .sure-btn {
color: #fff; color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
margin-left: toRpx(32); margin-left: toRpx(32);
} }
} }
.defeat-textarea { .defeat-textarea {
height: toRpx(568); height: toRpx(568);
border-radius: toRpx(16); border-radius: toRpx(16);
...@@ -940,11 +1009,13 @@ export default { ...@@ -940,11 +1009,13 @@ export default {
width: 100%; width: 100%;
padding: toRpx(24); padding: toRpx(24);
box-sizing: border-box; box-sizing: border-box;
.uni-input-wrapper { .uni-input-wrapper {
background: #f5f7fa; background: #f5f7fa;
} }
} }
} }
::v-deep .errorOrderPopup .uni-popup__wrapper { ::v-deep .errorOrderPopup .uni-popup__wrapper {
position: relative; position: relative;
border-radius: toRpx(32); border-radius: toRpx(32);
...@@ -952,16 +1023,19 @@ export default { ...@@ -952,16 +1023,19 @@ export default {
width: toRpx(848); width: toRpx(848);
height: toRpx(512); height: toRpx(512);
background-color: #fff !important; background-color: #fff !important;
.popup-top-box { .popup-top-box {
text-align: left; text-align: left;
padding: toRpx(48) toRpx(64); padding: toRpx(48) toRpx(64);
border-radius: toRpx(32) toRpx(32) 0 0; border-radius: toRpx(32) toRpx(32) 0 0;
background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%); background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
&-title { &-title {
color: #1a1a1a; color: #1a1a1a;
font-size: toRpx(40); font-size: toRpx(40);
font-weight: 500; font-weight: 500;
} }
.icon-close { .icon-close {
font-size: toRpx(40) !important; font-size: toRpx(40) !important;
color: rgba(26, 26, 26, 0.6) !important; color: rgba(26, 26, 26, 0.6) !important;
...@@ -971,6 +1045,7 @@ export default { ...@@ -971,6 +1045,7 @@ export default {
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: 0 toRpx(64); padding: 0 toRpx(64);
.modalbox { .modalbox {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -983,9 +1058,11 @@ export default { ...@@ -983,9 +1058,11 @@ export default {
color: #292d33; color: #292d33;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 500; font-weight: 500;
& + .modalbox {
&+.modalbox {
margin-top: toRpx(16); margin-top: toRpx(16);
} }
.sprite-icon { .sprite-icon {
margin: 0 toRpx(24) 0 toRpx(32); margin: 0 toRpx(24) 0 toRpx(32);
} }
...@@ -995,11 +1072,13 @@ export default { ...@@ -995,11 +1072,13 @@ export default {
border: toRpx(2) solid #347bff; border: toRpx(2) solid #347bff;
background: #347bff1a; background: #347bff1a;
} }
.error-order-title { .error-order-title {
color: #666666; color: #666666;
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 400; font-weight: 400;
} }
.error-order-content { .error-order-content {
margin-top: toRpx(16); margin-top: toRpx(16);
color: #666666; color: #666666;
...@@ -1007,6 +1086,7 @@ export default { ...@@ -1007,6 +1086,7 @@ export default {
font-weight: 400; font-weight: 400;
} }
} }
.footer-box { .footer-box {
width: 100%; width: 100%;
height: toRpx(164); height: toRpx(164);
...@@ -1014,6 +1094,7 @@ export default { ...@@ -1014,6 +1094,7 @@ export default {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
border-radius: 0 0 toRpx(32) toRpx(32); border-radius: 0 0 toRpx(32) toRpx(32);
.btn { .btn {
width: 40%; width: 40%;
height: toRpx(80); height: toRpx(80);
...@@ -1025,9 +1106,11 @@ export default { ...@@ -1025,9 +1106,11 @@ export default {
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 500; font-weight: 500;
} }
.cancle-btn { .cancle-btn {
background: #f0f1f5; background: #f0f1f5;
} }
.sure-btn { .sure-btn {
color: #fff; color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
...@@ -1035,6 +1118,7 @@ export default { ...@@ -1035,6 +1118,7 @@ export default {
} }
} }
} }
.order-card { .order-card {
padding: toRpx(36) toRpx(32); padding: toRpx(36) toRpx(32);
border-radius: toRpx(24); border-radius: toRpx(24);
...@@ -1043,6 +1127,7 @@ export default { ...@@ -1043,6 +1127,7 @@ export default {
box-shadow: 0 toRpx(8) toRpx(24) 0 #2a61eb1a; box-shadow: 0 toRpx(8) toRpx(24) 0 #2a61eb1a;
margin-bottom: toRpx(24); margin-bottom: toRpx(24);
} }
.status { .status {
padding: toRpx(8); padding: toRpx(8);
font-size: toRpx(24); font-size: toRpx(24);
...@@ -1050,6 +1135,7 @@ export default { ...@@ -1050,6 +1135,7 @@ export default {
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(1) solid transparent; border: toRpx(1) solid transparent;
} }
.errorBox { .errorBox {
background: #f7f8fa; background: #f7f8fa;
border-radius: toRpx(16); border-radius: toRpx(16);
...@@ -1058,12 +1144,14 @@ export default { ...@@ -1058,12 +1144,14 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
margin-bottom: toRpx(20); margin-bottom: toRpx(20);
} }
.priceName { .priceName {
color: #5a5e66; color: #5a5e66;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
margin-left: toRpx(30); margin-left: toRpx(30);
} }
.info-box { .info-box {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -1124,16 +1212,19 @@ export default { ...@@ -1124,16 +1212,19 @@ export default {
font-size: toRpx(26); font-size: toRpx(26);
font-weight: 700; font-weight: 700;
} }
.price { .price {
color: #347bff; color: #347bff;
font-size: toRpx(32); font-size: toRpx(32);
font-weight: 700; font-weight: 700;
align-items: baseline;
} }
.construction-staff { .construction-staff {
width: 50%; width: 50%;
padding: toRpx(10) toRpx(20) toRpx(10) 0; padding: toRpx(10) toRpx(20) toRpx(10) 0;
box-sizing: border-box; box-sizing: border-box;
.staff-label { .staff-label {
width: toRpx(120); width: toRpx(120);
margin-right: toRpx(24); margin-right: toRpx(24);
...@@ -1141,6 +1232,7 @@ export default { ...@@ -1141,6 +1232,7 @@ export default {
font-weight: 400; font-weight: 400;
color: #999ea8; color: #999ea8;
} }
.staff-value { .staff-value {
font-size: toRpx(24); font-size: toRpx(24);
color: #666666; color: #666666;
...@@ -1156,14 +1248,17 @@ export default { ...@@ -1156,14 +1248,17 @@ export default {
background: #f5f7fa; background: #f5f7fa;
margin: toRpx(20) 0; margin: toRpx(20) 0;
padding: toRpx(20) toRpx(32); padding: toRpx(20) toRpx(32);
.goods { .goods {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
margin-bottom: toRpx(16); margin-bottom: toRpx(16);
&.no-margin { &.no-margin {
margin-bottom: 0; margin-bottom: 0;
} }
.goods-name { .goods-name {
.point { .point {
width: toRpx(12); width: toRpx(12);
...@@ -1176,6 +1271,7 @@ export default { ...@@ -1176,6 +1271,7 @@ export default {
} }
} }
} }
.goods-more { .goods-more {
color: #4673ff; color: #4673ff;
font-size: toRpx(24); font-size: toRpx(24);
...@@ -1184,6 +1280,7 @@ export default { ...@@ -1184,6 +1280,7 @@ export default {
margin-top: toRpx(12); margin-top: toRpx(12);
} }
} }
.item-footer { .item-footer {
display: flex; display: flex;
justify-content: end; justify-content: end;
...@@ -1193,6 +1290,7 @@ export default { ...@@ -1193,6 +1290,7 @@ export default {
border-top: 1 solid #ededed; border-top: 1 solid #ededed;
padding: toRpx(32) toRpx(32) 0; padding: toRpx(32) toRpx(32) 0;
} }
.btn_class { .btn_class {
display: flex; display: flex;
gap: toRpx(16); gap: toRpx(16);
...@@ -1303,6 +1401,7 @@ export default { ...@@ -1303,6 +1401,7 @@ export default {
width: toRpx(192); width: toRpx(192);
height: toRpx(64); height: toRpx(64);
} }
.tips { .tips {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -1314,6 +1413,7 @@ export default { ...@@ -1314,6 +1413,7 @@ export default {
background: #fef5ea; background: #fef5ea;
margin: toRpx(16) 0; margin: toRpx(16) 0;
color: #ff9d0a; color: #ff9d0a;
&-text { &-text {
margin-top: toRpx(4); margin-top: toRpx(4);
} }
...@@ -1322,6 +1422,7 @@ export default { ...@@ -1322,6 +1422,7 @@ export default {
margin-right: toRpx(8); margin-right: toRpx(8);
} }
} }
.copy-btn { .copy-btn {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -1333,13 +1434,16 @@ export default { ...@@ -1333,13 +1434,16 @@ export default {
margin-left: toRpx(16); margin-left: toRpx(16);
} }
} }
.order-card-top-box { .order-card-top-box {
margin-bottom: toRpx(6); margin-bottom: toRpx(6);
} }
.order-card-bottom-box { .order-card-bottom-box {
border-bottom: toRpx(2) solid #f7f7f6; border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(20); padding-bottom: toRpx(20);
} }
.updateInfo { .updateInfo {
color: #347bff; color: #347bff;
font-size: toRpx(24); font-size: toRpx(24);
...@@ -1351,12 +1455,14 @@ export default { ...@@ -1351,12 +1455,14 @@ export default {
.updateInfo.isHide { .updateInfo.isHide {
display: none; display: none;
} }
.errorTips { .errorTips {
color: #eb4e4e; color: #eb4e4e;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
margin-left: toRpx(16); margin-left: toRpx(16);
} }
.refund-box { .refund-box {
margin-left: toRpx(16); margin-left: toRpx(16);
background: #fff2e0; background: #fff2e0;
......
...@@ -60,6 +60,29 @@ const FORM_LIST = [ ...@@ -60,6 +60,29 @@ const FORM_LIST = [
required: true required: true
}, },
{ {
hidden: false,
label: '日报标签',
value: 'customerTags',
type: 'radio',
multiple: true,
radioList: [
{
value: '1',
name: '已触客'
},
{
value: '3',
name: '已交付引荐'
},
]
},
{
hidden: false,
label: '实际交付日期',
value: 'actualDeliveryDate',
type:"single-calendar"
},
{
label: '性别', label: '性别',
value: 'ownerGender', value: 'ownerGender',
type: 'radio', type: 'radio',
......
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
}, },
async entranceClick (item) { async entranceClick (item) {
if (this.toolComponentName == item.name) return if (this.toolComponentName == item.name) return
const noInterceptPage = ['DailyReport'] const noInterceptPage = ['DailyReport','storeDailyReport']
// if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return // if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return
if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport())) return if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport())) return
// 提示去学习中心弹窗 // 提示去学习中心弹窗
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!