Commit 1eae1432 by 胡悦

Merge branch 'V4.56.0' of http://192.168.3.233:8090/glsx/gl_tape into V4.56.0

2 parents 1645734f 2e31f2ed
...@@ -228,6 +228,14 @@ module.exports = { ...@@ -228,6 +228,14 @@ module.exports = {
getServiceBaseInfo(data) { getServiceBaseInfo(data) {
return http.post({ method: 'dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo', projectName: 'boutique', ...data }) return http.post({ method: 'dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo', projectName: 'boutique', ...data })
}, },
/** 查询园区店是否开启签名配置 */
getSignatureSwitch(data) {
return http.post({ method: 'dj.api.smartcarlife.serviceMerchant.getSignatureSwitch', projectName: 'boutique', ...data })
},
// 获取服务商库存管理模式(是否使用膜卷号)
getServiceFilmRollSetting(data) {
return http.post({ method: 'dj.api.smarcarlife.stock.management.mode', projectName: 'boutique', ...data })
},
/** 获取转化员上一笔订单的销售顾问 */ /** 获取转化员上一笔订单的销售顾问 */
getLastUserOrderInfo(data) { getLastUserOrderInfo(data) {
return http.post({ return http.post({
...@@ -239,5 +247,83 @@ module.exports = { ...@@ -239,5 +247,83 @@ module.exports = {
/**根据订单号获取订单详情(含套餐) */ /**根据订单号获取订单详情(含套餐) */
getPackageGoodsDetail(data) { getPackageGoodsDetail(data) {
return http.post({ method: 'dj.api.smartcarlife.order.packageGoodsDetail', projectName: 'boutique', ...data }) return http.post({ method: 'dj.api.smartcarlife.order.packageGoodsDetail', projectName: 'boutique', ...data })
},
/**
* 查询日报门店主营品牌
*/
getDailyReportCarBrand(data) {
return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.car.brand',
projectName: 'boutique',
...data
})
},
/**
* 查询员工日报是否填写列表
*
*/
getStaffDailyReportDetailWeeklyList(data) {
return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.weekly.list',
projectName: 'boutique',
...data
})
},
/**
* 查询日报详情
*/
getStaffDailyReportDetail(data) {
return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.detail',
projectName: 'boutique',
...data
})
},
/** 修改订单备注 */
updateOrderRemark(data) {
return http.post({ method: 'dj.api.smartcarlife.order.updateRemark', projectName: 'boutique', ...data })
},
/** 修改工单时间 */
updateOrderTime(data) {
return http.post({ method: 'dj.api.smartcarlife.order.updateOrderTime', projectName: 'boutique', ...data })
},
/** 获取企微活码 */
getWorkWechatLiveQRCode(data) {
return http.post({ method: 'dj.api.smartcarlife.order.getWorkWechatLiveQRCode', projectName: 'boutique', ...data })
},
/** 升级商品生成条形码 */
createBarCode(data) {
return http.post({ method: 'dj.api.smartcarlife.common.createBarCode', projectName: 'boutique', ...data })
},
/**撤销工单 */
revokeOrder(data) {
return http.post({ method: 'dj.api.smartcarlife.order.revoke', projectName: 'boutique', ...data })
},
/** 获取园区店配置技师数据 */
getQYTechnicianList(data) {
return http.post({ method: 'dj.api.smartcarlife.roleTechnician.list', projectName: 'boutique', ...data })
},
// 生成生成小程序码
createQrcodeImage(data) {
// dj.api.smartcarlife.serviceMerchant.getByMerchantId
return http.post({ method: 'dj.api.smartcarlife.common.createWeappQrcode', projectName: 'boutique', ...data })
},
/**
* 保存日报
*/
saveStaffDailyReport(data) {
return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.save',
projectName: 'boutique',
...data
})
},
/** 不升级常用字符列表 */
getConfigList(data) {
return http.post({ method: 'dj.api.smartcarlife.config.list', projectName: 'boutique', ...data })
},
/** 战败订单批量补录 */
notUpgradeOrder(data) {
return http.post({ method: 'dj.api.smartcarlife.order.notUpgrade.batchInsert', projectName: 'boutique', ...data })
} }
} }
...@@ -280,7 +280,7 @@ module.exports = { ...@@ -280,7 +280,7 @@ module.exports = {
return http.post( return http.post(
{ {
// method: 'dj.pad.api.beisen.getUnreadCount', // method: 'dj.pad.api.beisen.getUnreadCount',
method: 'dj.pad.api.staff.getUnreadCount', // 修改为sop+北森的未读数 method: 'dj.pad.api.staff.getUnreadCount', // 修改为sop+北森的未读数
projectName: 'pad', projectName: 'pad',
...data ...data
}, },
......
...@@ -49,6 +49,9 @@ ...@@ -49,6 +49,9 @@
.align-center { .align-center {
align-items: center; align-items: center;
} }
.align-start {
align-items: start !important;
}
.justify-center { .justify-center {
-webkit-box-pack: center; -webkit-box-pack: center;
-ms-flex-pack: center; -ms-flex-pack: center;
...@@ -61,6 +64,11 @@ ...@@ -61,6 +64,11 @@
-webkit-justify-content: flex-end; -webkit-justify-content: flex-end;
justify-content: flex-end; justify-content: flex-end;
} }
.justify-around {
-ms-flex-pack: distribute;
-webkit-justify-content: space-around;
justify-content: space-around;
}
.flex-wrap { .flex-wrap {
-ms-flex-wrap: wrap; -ms-flex-wrap: wrap;
......

2.55 MB | W: | H:

2.61 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -4,15 +4,20 @@ ...@@ -4,15 +4,20 @@
<uni-popup :class="popupClass" ref="publishPopup" :type="type" @change="change" :is-mask-click="isMaskClick" :safe-area="safeArea" :showClose="showClose"> <uni-popup :class="popupClass" ref="publishPopup" :type="type" @change="change" :is-mask-click="isMaskClick" :safe-area="safeArea" :showClose="showClose">
<!-- 顶部标题栏插槽 --> <!-- 顶部标题栏插槽 -->
<slot name="header"> <slot name="header">
<view class="popup-top-box flex align-center"> <view class="popup-top-box flex align-center" v-if="showTitle">
<text class="popup-top-box-title">{{ title }}</text> <text class="popup-top-box-title">{{ title }}</text>
<uni-icons @click="closePopup" class="icon-close" type="closeempty"></uni-icons> <uni-icons @click="closePopup" class="icon-close" type="closeempty"></uni-icons>
</view> </view>
</slot> </slot>
<!-- 主要内容插槽 --> <!-- 主要内容插槽 -->
<slot name="content"></slot> <slot name="content"></slot>
<!-- 底部插槽 --> <!-- 底部插槽 插槽有内容就优先自定义内容-->
<slot name="footer"></slot> <slot name="footer">
<view class="footer-box flex justify-center" v-if="isShowFooter">
<view class="cancle-btn btn" @click.stop="closePopup">{{ cancelText }}</view>
<view class="sure-btn btn" @click.stop="confirm">{{ confirmText }}</view>
</view>
</slot>
</uni-popup> </uni-popup>
</template> </template>
...@@ -43,6 +48,22 @@ export default { ...@@ -43,6 +48,22 @@ export default {
title: { title: {
type: String, type: String,
default: '' default: ''
},
showTitle: {
type: Boolean,
default: true
},
isShowFooter: {
type: Boolean,
default: true
},
cancelText: {
type: String,
default: '取消'
},
confirmText: {
type: String,
default: '确定'
} }
}, },
data() { data() {
...@@ -51,7 +72,7 @@ export default { ...@@ -51,7 +72,7 @@ export default {
} }
}, },
methods: { methods: {
open() { open(callback) {
this.$refs.publishPopup.open() this.$refs.publishPopup.open()
}, },
change(e) { change(e) {
...@@ -60,6 +81,9 @@ export default { ...@@ -60,6 +81,9 @@ export default {
closePopup() { closePopup() {
this.$refs.publishPopup.close() this.$refs.publishPopup.close()
this.$emit('close') this.$emit('close')
},
confirm() {
this.$emit('confirm')
} }
} }
} }
...@@ -70,7 +94,7 @@ export default { ...@@ -70,7 +94,7 @@ export default {
font-size: toRpx(36); font-size: toRpx(36);
font-weight: 500; font-weight: 500;
text-align: center; text-align: center;
padding: toRpx(32);
.popup-top-box-title { .popup-top-box-title {
flex: 1; flex: 1;
} }
...@@ -92,4 +116,31 @@ export default { ...@@ -92,4 +116,31 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 600; font-weight: 600;
} }
.footer-box {
width: 100%;
height: toRpx(164);
background-color: #fff;
position: absolute;
border-radius: 0 0 toRpx(42) toRpx(42);
bottom: 0;
.btn {
width: 40%;
height: toRpx(80);
border-radius: toRpx(48);
opacity: 1;
line-height: toRpx(80);
text-align: center;
color: rgba(26, 26, 26, 0.6);
font-size: toRpx(32);
font-weight: 500;
}
.cancle-btn {
background: #f0f1f5;
}
.sure-btn {
color: #fff;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
margin-left: toRpx(32);
}
}
</style> </style>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</view> </view>
<view v-if="orderCardDetail.subOrderList.length > 2" class="goods-more"> <view v-if="orderCardDetail.subOrderList.length > 2" class="goods-more">
<text @click="showAllGoodsList"> <text @click.stop="showAllGoodsList">
{{ orderCardDetail.showAllGoodsListFlag ? '收起' : '查看全部' }} {{ orderCardDetail.showAllGoodsListFlag ? '收起' : '查看全部' }}
</text> </text>
(共{{ orderCardDetail.subOrderList.length }}件) (共{{ orderCardDetail.subOrderList.length }}件)
...@@ -219,13 +219,13 @@ export default { ...@@ -219,13 +219,13 @@ export default {
if (name == 'CreateOrder' && (await this.inspectionOfProhibitionBill())) return /**禁止提单 */ if (name == 'CreateOrder' && (await this.inspectionOfProhibitionBill())) return /**禁止提单 */
// 是微信支付直接跳转确认页面 // 是微信支付直接跳转确认页面
if (userType == 2 && item?.selectPayType == 1) { if (userType == 2 && item?.selectPayType == 1) {
this.$emit('jump', 'ConfirmOrder') this.$emit('jump', 'ConfirmOrder', this.orderCardDetail)
} else if (userType == 2) { } else if (userType == 2) {
item item
? this.showSelectType({ ? this.showSelectType({
item item
}) })
: this.$emit('jump', name) : this.$emit('jump', name, this.orderCardDetail)
} else { } else {
utils.showNoAccess() utils.showNoAccess()
} }
...@@ -234,10 +234,9 @@ export default { ...@@ -234,10 +234,9 @@ export default {
} }
// 已支付加已施工 // 已支付加已施工
} else if (item.constructionFlag == 'Y' && item.status != 10) { } else if (item.constructionFlag == 'Y' && item.status != 10) {
// wx.$router.go('tabWorkOrder.constructionOrderDetail', item) this.$emit('jump', name, this.orderCardDetail)
// this.$emit('jump', name, item)
} else { } else {
this.$emit('jump', name) this.$emit('jump', name, this.orderCardDetail)
} }
}, },
// 确定是否要显示 // 确定是否要显示
...@@ -249,30 +248,6 @@ export default { ...@@ -249,30 +248,6 @@ export default {
} }
this.$refs.recordOrderPopup.open() this.$refs.recordOrderPopup.open()
// this.uni.showModal({
// show: true,
// title: '请选择录单入口',
// tabTitleShow: false,
// success: async res => {
// // 跳转新增订单页面 并带特定参数
// console.log(item, 'showSelectType')
// if (this.selectType == 1) {
// if (await this.inspectionOfProhibitionBill()) return
// wx.$router.go('tabWorkOrder.createOrder', {
// scene,
// ...item
// })
// } else {
// wx.$router.go('tabWorkOrder.defeatOrder', {
// scene,
// ...item,
// isExpiredTraffic: this.selectType == 3
// })
// }
// },
// error: () => {}
// })
}, },
// 获取轻改录单配置是否启用流量失效 // 获取轻改录单配置是否启用流量失效
...@@ -294,10 +269,13 @@ export default { ...@@ -294,10 +269,13 @@ export default {
if (this.selectType == 1) { if (this.selectType == 1) {
console.log(await this.inspectionOfProhibitionBill()) console.log(await this.inspectionOfProhibitionBill())
if (await this.inspectionOfProhibitionBill()) return if (await this.inspectionOfProhibitionBill()) return
this.$emit('jump', 'CreateOrder') this.$emit('jump', 'CreateOrder', this.orderCardDetail)
} else { } else {
this.$emit('jump', 'DefeatOrder') this.$emit('jump', 'DefeatOrder', this.orderCardDetail)
} }
},
cancelSelection() {
this.$refs.recordOrderPopup.closePopup()
} }
} }
} }
......
...@@ -4,10 +4,17 @@ ...@@ -4,10 +4,17 @@
<input class="uni-input" v-model="keyword" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" /> <input class="uni-input" v-model="keyword" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
</view> </view>
<view class="tab-container"> <view class="tab-container flex justify-between">
<view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)"> <view class="flex">
<text>{{ item.tabName }}</text> <view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<text class="num">{{ item.num }}</text> <text>{{ item.tabName }}</text>
<text class="num">{{ item.num }}</text>
</view>
</view>
<view class="flex filter-item justify-center align-center" @click="openFilter">
筛选
<view class="sprite-icon icon-filter"></view>
</view> </view>
</view> </view>
<view class="px-48"> <view class="px-48">
...@@ -119,6 +126,7 @@ ...@@ -119,6 +126,7 @@
</scroll-view> </scroll-view>
</template> </template>
</PublishPopup> </PublishPopup>
<order-screen ref="openFilter" @onConfirm="openFilterConfirm" />
</view> </view>
</template> </template>
...@@ -130,12 +138,14 @@ import OrderCard from '../../components/OrderCard' ...@@ -130,12 +138,14 @@ import OrderCard from '../../components/OrderCard'
import PublishPopup from '@/components/PublishPopup.vue' import PublishPopup from '@/components/PublishPopup.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import utils from '@/utils/utils' import utils from '@/utils/utils'
import OrderScreen from '@/components/OrderScreen/index.vue'
export default { export default {
name: 'OrderManagement', name: 'OrderManagement',
mixins: [ZPMixin, interceptionMixin], mixins: [ZPMixin, interceptionMixin],
components: { components: {
OrderCard, OrderCard,
PublishPopup PublishPopup,
OrderScreen
}, },
data() { data() {
return { return {
...@@ -227,6 +237,14 @@ export default { ...@@ -227,6 +237,14 @@ export default {
delete this.searchObj.statusList delete this.searchObj.statusList
this.search() this.search()
}, },
openFilter() {
this.$refs.openFilter.open()
},
openFilterConfirm(val) {
console.log(val)
this.searchObj = val
this.search()
},
tabChange(index) { tabChange(index) {
this.activeIndex = index this.activeIndex = index
if (!this.normalOrderNoList.length) { if (!this.normalOrderNoList.length) {
...@@ -500,10 +518,20 @@ export default { ...@@ -500,10 +518,20 @@ export default {
.tab-container { .tab-container {
display: flex; display: flex;
justify-content: start; // justify-content: start;
padding: toRpx(0) toRpx(48) toRpx(24); padding: toRpx(0) toRpx(48) toRpx(24);
height: toRpx(80); height: toRpx(80);
margin-bottom: toRpx(20); margin-bottom: toRpx(20);
.filter-item {
width: toRpx(164);
height: toRpx(72);
border-radius: toRpx(16);
background: #fff;
border: toRpx(2) solid #ffffffcc;
color: #333333;
font-size: toRpx(28);
font-weight: 400;
}
} }
.tab-item { .tab-item {
......
<template>
<view class="upload-proof-of-payment">
<view class="common-title">上传付款凭证</view>
<view class="px-48">
<view class="box-shell">
<view class="flex align-center justify-between box-flow">
<view class="box-label">
交易流水号
<text class="required">*</text>
</view>
<input v-model="outTradeNo" class="uni-input" maxlength="100" placeholder="请输入" />
</view>
<view class="payment">
<view class="payment-label">
付款凭证
<text class="required">*</text>
</view>
<view class="upload-box flex flex-wrap">
<view class="upload-item" @click="selectImg"></view>
<view v-for="(item, index) in payVoucherList" :key="index" class="previewImageList">
<image :src="item"></image>
<view class="close-box" @click="deleteImg(index)">
<uni-icons class="icon-close" type="closeempty" color="#ffffff"></uni-icons>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="uploadBtn" @click="confirm">确定提交</view>
</view>
</template>
<script>
import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
export default {
name: 'UploadProofOfPayment',
props: {
transmissionOfData: {
type: Object,
default: () => null
}
},
data() {
return {
payVoucherList: [],
outTradeNo: ''
}
},
mounted() {
console.log(this.transmissionOfData, 'console.log(this.transmissionOfData)')
},
methods: {
selectImg() {
let _this = this
uni.chooseImage({
count: 1, //默认9
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['album'], //从相册选择
success: function (res) {
console.log(res)
_this.upLoad(res)
}
})
},
// 上传付款凭证
async upLoad(event) {
console.log(event)
let _this = this
const { tempFilePaths } = event
let url = await uploadFile(tempFilePaths[0])
this.payVoucherList.push(url)
},
confirm(e) {
console.log(this.transmissionOfData)
let { outTradeNo, payVoucherList } = this
if (payVoucherList.length && outTradeNo) {
this.createPayOrder()
} else {
uni.showToast({ title: '交易流水号或付款凭证不能为空!', icon: 'none' })
}
},
deleteImg(index) {
this.payVoucherList.splice(index, 1)
},
createPayOrder() {
const { orderCode, payType, payeeType } = this.transmissionOfData
let obj = {
orderCode,
payType: payType,
payeeType: payeeType
}
if (this.payVoucherList?.length && this.outTradeNo) {
obj.payVoucherList = this.payVoucherList.map(v => {
return v?.url
})
obj.outTradeNo = this.outTradeNo
}
console.log(obj)
uni.$api.boutiqueApi.createPayOrder(obj).then(data => {
uni.showToast({ title: '提交成功', icon: 'success' })
this.$emit('jump', 'OrderDetail', data)
})
}
}
}
</script>
<style scoped lang="scss">
.px-48 {
padding: 0 toRpx(48);
}
.upload-proof-of-payment {
width: 100%;
height: 100%;
position: relative;
.box-shell {
width: 100%;
border-radius: toRpx(16);
background: #ffffff;
padding: toRpx(24) toRpx(32);
margin-top: toRpx(16);
.box-flow {
border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(28);
.box-label {
font-weight: 400;
font-size: toRpx(28);
color: #333333;
}
.required {
color: #f00;
margin-left: toRpx(8);
}
.uni-input {
text-align: right;
.uni-input-placeholder {
font-size: toRpx(28);
font-weight: 400;
}
}
}
.payment {
.payment-label {
font-weight: 400;
font-size: toRpx(28);
color: #333333;
margin-top: toRpx(32);
margin-bottom: toRpx(24);
.required {
color: #f00;
margin-left: toRpx(8);
}
}
.upload-box {
gap: toRpx(20);
.upload-item {
width: toRpx(320) !important;
height: toRpx(240) !important;
border-radius: toRpx(12);
background: url('@/assets/images/boutique/uploadImage.png') no-repeat;
background-size: 100% 100%;
}
.previewImageList {
position: relative;
image {
width: toRpx(320) !important;
height: toRpx(240) !important;
border-radius: toRpx(12);
}
.close-box {
width: toRpx(36);
height: toRpx(36);
position: absolute;
top: - toRpx(12);
right: - toRpx(12);
background: rgba(0, 0, 0, 0.6);
border-radius: 50%;
text-align: center;
line-height: toRpx(40);
}
.icon-close {
font-size: toRpx(12);
}
}
}
}
}
.uploadBtn {
width: 80%;
height: toRpx(80);
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: toRpx(28);
font-weight: 500;
position: absolute;
bottom: toRpx(20);
margin: 0 auto;
left: 0;
right: 0;
text-align: center;
line-height: toRpx(80);
}
}
</style>
...@@ -32,7 +32,7 @@ const FORM_LIST = [ ...@@ -32,7 +32,7 @@ const FORM_LIST = [
// key: 'staffName', // key: 'staffName',
required: true, required: true,
showText: 'merchantName' showText: 'merchantName'
}, }
], ],
[ [
{ {
...@@ -87,7 +87,7 @@ const FORM_LIST = [ ...@@ -87,7 +87,7 @@ const FORM_LIST = [
label: '选择车型', label: '选择车型',
value: 'carBrand', value: 'carBrand',
type: 'select', type: 'select',
key: 'carInfo', key: 'carInfo'
}, },
{ {
label: '车架号(VIN)', label: '车架号(VIN)',
...@@ -116,7 +116,7 @@ const FORM_LIST = [ ...@@ -116,7 +116,7 @@ const FORM_LIST = [
name: '否' name: '否'
} }
] ]
}, }
], ],
[ [
{ {
...@@ -208,7 +208,7 @@ const FORM_LIST = [ ...@@ -208,7 +208,7 @@ const FORM_LIST = [
name: '4s店收款', name: '4s店收款',
disabled: false disabled: false
} }
], ]
}, },
{ {
label: '支付方式', label: '支付方式',
...@@ -231,7 +231,7 @@ const FORM_LIST = [ ...@@ -231,7 +231,7 @@ const FORM_LIST = [
// } // }
], ],
addHtml: 'otherPay' addHtml: 'otherPay'
}, }
], ],
[ [
{ {
...@@ -241,7 +241,271 @@ const FORM_LIST = [ ...@@ -241,7 +241,271 @@ const FORM_LIST = [
type: 'textarea', type: 'textarea',
placeholder: '请输入 (100字以内)', placeholder: '请输入 (100字以内)',
class: 'cell-break' class: 'cell-break'
}
]
]
const DEFEAT_FORM_LIST = [
[
{
label: '战败日期',
value: 'todayShow',
type: 'select',
// key: 'staffName',
required: true
},
{
label: '销售顾问/录单员',
value: 'employeeName',
type: 'select',
// key: 'staffName',
required: true,
showText: 'shopMerchantName'
},
{
label: '交付专员',
value: 'deliveryEmployeeName',
type: 'select',
required: true,
// key: 'staffName',
hidden: true,
showText: 'shopMerchantName'
},
{
label: '二级流量方',
value: 'subShopMerchantName',
type: 'select',
required: true,
// key: 'subMerchantName',
hidden: true
},
{
label: '转化人员',
value: 'sellerName',
type: 'select',
// key: 'staffName',
required: true,
showText: 'merchantName'
}
],
[
{
label: '车主姓名',
value: 'customerName',
maxlength: '16',
type: 'input',
required: true
},
{
label: '客户来源',
value: 'salesType',
type: 'radio',
current: '0',
radioList: [
{
value: '0',
name: '售前'
},
{
value: '1',
name: '售后'
}
],
required: true,
hidden: true
},
{
label: '性别',
value: 'customerSex',
type: 'radio',
current: '1',
radioList: [
{
value: '1',
name: '男'
},
{
value: '2',
name: '女'
}
]
},
{
label: '手机号',
value: 'customerPhone',
maxlength: '11',
type: 'input',
required: true,
inputType: 'number'
},
{
label: '选择车型',
value: 'carBrand',
type: 'select',
key: 'carInfo'
},
{
label: '车架号(VIN)',
value: 'standNo',
maxlength: '17',
type: 'input'
},
{
label: '车牌号',
value: 'plateNumber',
maxlength: '8',
type: 'input'
},
{
label: '是否体验',
value: 'experienceFlag',
type: 'radio',
current: 'Y',
required: true,
radioList: [
{
value: 'Y',
name: '是'
},
{
value: 'N',
name: '否'
}
]
}
],
[
{
label: '精品礼券',
value: 'couponInfo',
type: 'select',
key: 'name',
required: true,
hidden: true
},
{
label: '请选择产品',
onlyLabel: true,
required: true,
noBorder: true
},
{
label: '前挡',
value: 'frontGear',
type: 'select',
key: 'name',
labellIcon: 'front-gear',
addHtml: 'frontGear',
hidden: true
},
{
label: '前侧窗玻璃',
value: 'frontWindow',
type: 'select',
key: 'name',
labellIcon: 'front-window',
addHtml: 'frontWindow',
hidden: true
},
{
label: '后侧窗玻璃',
value: 'rearGear',
type: 'select',
key: 'name',
labellIcon: 'rear-gear',
addHtml: 'rearGear',
hidden: true
},
{
label: '后档',
value: 'rearWindow',
type: 'select',
key: 'name',
labellIcon: 'rear-window',
addHtml: 'rearWindow',
hidden: true
},
{
label: '天窗',
value: 'sunRoof',
type: 'select',
key: 'name',
labellIcon: 'sun-roof',
addHtml: 'sunRoof',
hidden: true
},
{
label: '套餐',
value: 'package',
type: 'select',
key: 'name',
addHtml: 'package',
hidden: true
},
{
label: '其他精品',
value: 'skuGoods',
type: 'select',
key: 'name',
addHtml: 'skuGoods',
hidden: true
}, },
{
label: '收款方式',
value: 'payeeType',
type: 'radio',
key: 'name',
current: '1',
radioList: [
{
value: '0',
name: '嘀加收款',
disabled: false
},
{
value: '1',
name: '4s店收款',
disabled: false
}
],
hidden: true
},
{
label: '支付方式',
value: 'selectPayType',
type: 'radio',
key: 'name',
current: '0',
radioList: [
// {
// value: '3',
// name: 'POS机'
// },
// {
// value: '6',
// name: '对公转账'
// },
// {
// value: '7',
// name: '其他收款'
// }
],
addHtml: 'otherPay',
hidden: true
}
],
[
{
label: '车主拒升理由',
value: 'refusalReason',
maxlength: '100',
type: 'textarea',
placeholder: '请输入 (100字以内)',
class: 'cell-break',
required: true,
addHtml: 'reasonList',
noBorder: true
}
] ]
] ]
...@@ -315,40 +579,40 @@ const popupTypeEnum = { ...@@ -315,40 +579,40 @@ const popupTypeEnum = {
}, },
5: { 5: {
key: 'couponInfo', key: 'couponInfo',
list: '', list: ''
}, },
6: { 6: {
key: 'frontGear', key: 'frontGear',
list: '', list: ''
}, },
7: { 7: {
key: 'frontWindow', key: 'frontWindow',
list: '', list: ''
}, },
8: { 8: {
key: 'rearGear', key: 'rearGear',
list: '', list: ''
}, },
9: { 9: {
key: 'rearWindow', key: 'rearWindow',
list: '', list: ''
}, },
10: { 10: {
key: 'sunRoof', key: 'sunRoof',
list: '', list: ''
}, },
11: { 11: {
key: 'package', key: 'package',
list: '', list: ''
}, },
12: { 12: {
key: 'skuGoods', key: 'skuGoods',
list: '', list: ''
}, },
13: {
key: 'todayShow',
list: ''
}
} }
export {
FORM_LIST,
popupTypeEnum,
payTypeList
}
\ No newline at end of file \ No newline at end of file
export { FORM_LIST, popupTypeEnum, payTypeList, DEFEAT_FORM_LIST }
...@@ -14,11 +14,13 @@ ...@@ -14,11 +14,13 @@
<template v-if="toolComponentName !== 'DailyReport'"> <template v-if="toolComponentName !== 'DailyReport'">
<Entrance @entranceClick="entranceClick"></Entrance> <Entrance @entranceClick="entranceClick"></Entrance>
</template> </template>
<template v-else></template> <template v-else>
<uni-calendar ref="calendar" :clearDate="false" :endDate="endDate" :showMonth="false" @monthSwitch="currentMonth = `${$event.year}-${$event.month}`" @change="currentDate = $event.fulldate" backgroundColor="transparent" :selected="selectedDays" />
</template>
</view> </view>
</view> </view>
<view class="detail-right"> <view class="detail-right">
<component :is="toolComponentName" @jump="jump" :transmission-of-data="transmissionOfData" /> <component :is="toolComponentName" @jump="jump" :transmission-of-data="transmissionOfData" :currentDate="currentDate" :currentMonth="currentMonth" @setCalendarSelected="selectedDays = $event" />
</view> </view>
</view> </view>
<NoticePopup ref="notice" title="重要提示" text="当前页面暂未保存,是否确认退出" type="warning"></NoticePopup> <NoticePopup ref="notice" title="重要提示" text="当前页面暂未保存,是否确认退出" type="warning"></NoticePopup>
...@@ -32,7 +34,10 @@ import DailyReport from './components/DailyReport.vue' ...@@ -32,7 +34,10 @@ import DailyReport from './components/DailyReport.vue'
import DefeatOrder from './components/DefeatOrder.vue' import DefeatOrder from './components/DefeatOrder.vue'
import OrderManagement from './components/OrderManagement.vue' import OrderManagement from './components/OrderManagement.vue'
import ConfirmOrder from './components/ConfirmOrder.vue' import ConfirmOrder from './components/ConfirmOrder.vue'
import OrderDetail from './components/OrderDetail.vue'
import UploadProofOfPayment from './components/UploadProofOfPayment.vue'
import NoticePopup from './components/NoticePopup.vue' import NoticePopup from './components/NoticePopup.vue'
import dayjs from 'dayjs'
export default { export default {
components: { components: {
Entrance, Entrance,
...@@ -41,12 +46,18 @@ export default { ...@@ -41,12 +46,18 @@ export default {
DefeatOrder, DefeatOrder,
OrderManagement, OrderManagement,
ConfirmOrder, ConfirmOrder,
NoticePopup NoticePopup,
UploadProofOfPayment,
OrderDetail
}, },
data() { data() {
return { return {
toolComponentName: '', toolComponentName: '',
transmissionOfData: null transmissionOfData: null,
endDate: dayjs().format('YYYY-MM-DD'),
currentDate: dayjs().format('YYYY-MM-DD'),
currentMonth: dayjs().format('YYYY-MM'),
selectedDays: []
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -64,27 +75,22 @@ export default { ...@@ -64,27 +75,22 @@ export default {
this.transmissionOfData = null this.transmissionOfData = null
return return
} }
// 配置弹窗按钮 // 配置弹窗按钮
this.$refs.notice.buttonsList = [{ this.$refs.notice.buttonsList = [
text: '确认退出', {
type: 'default', text: '确认退出',
callback: () => { type: 'default',
// 点击确认后才切换组件 callback: () => {
this.toolComponentName = selectedItem.name // 点击确认后才切换组件
if (selectedItem.name !== 'CreateOrder') { this.toolComponentName = selectedItem.name
this.transmissionOfData = null if (selectedItem.name !== 'CreateOrder') {
this.transmissionOfData = null
}
} }
this.$refs.notice.close()
} }
}, { ]
text: '继续编辑',
type: 'primary',
callback: () => {
this.$refs.notice.close()
}
}]
// 打开弹窗 // 打开弹窗
this.$refs.notice.open() this.$refs.notice.open()
}, },
......
<template> <template>
<view class="uni-calendar-item__weeks-box" :class="{ <view
class="uni-calendar-item__weeks-box"
:class="{
'uni-calendar-item--disable':weeks.disable, 'uni-calendar-item--disable':weeks.disable,
'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay, 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
'uni-calendar-item--checked':(calendar.fullDate === weeks.fullDate && !weeks.isDay) , 'uni-calendar-item--checked':(calendar.fullDate === weeks.fullDate && !weeks.isDay) ,
...@@ -7,10 +9,16 @@ ...@@ -7,10 +9,16 @@
'uni-calendar-item--multiple': weeks.multiple, 'uni-calendar-item--multiple': weeks.multiple,
'uni-calendar-item--after-checked':weeks.afterMultiple, 'uni-calendar-item--after-checked':weeks.afterMultiple,
}" }"
@click="choiceDate(weeks)"> @click="choiceDate(weeks)"
<view class="uni-calendar-item__weeks-box-item"> >
<text v-if="selected&&weeks.extraInfo" class="uni-calendar-item__weeks-box-circle"></text> <view class="uni-calendar-item__weeks-box-item">
<text class="uni-calendar-item__weeks-box-text" :class="{ <text
v-if="selected&&weeks.extraInfo"
class="uni-calendar-item__weeks-box-circle"
></text>
<text
class="uni-calendar-item__weeks-box-text"
:class="{
'uni-calendar-item--isDay-text': weeks.isDay, 'uni-calendar-item--isDay-text': weeks.isDay,
'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay, 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay, 'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay,
...@@ -18,16 +26,24 @@ ...@@ -18,16 +26,24 @@
'uni-calendar-item--multiple': weeks.multiple, 'uni-calendar-item--multiple': weeks.multiple,
'uni-calendar-item--after-checked':weeks.afterMultiple, 'uni-calendar-item--after-checked':weeks.afterMultiple,
'uni-calendar-item--disable':weeks.disable, 'uni-calendar-item--disable':weeks.disable,
}">{{weeks.date}}</text> }"
<text v-if="!lunar&&!weeks.extraInfo && weeks.isDay" class="uni-calendar-item__weeks-lunar-text" :class="{ >{{weeks.date}}</text>
<text
v-if="!lunar&&!weeks.extraInfo && weeks.isDay"
class="uni-calendar-item__weeks-lunar-text"
:class="{
'uni-calendar-item--isDay-text':weeks.isDay, 'uni-calendar-item--isDay-text':weeks.isDay,
'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay, 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay, 'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay,
'uni-calendar-item--before-checked':weeks.beforeMultiple, 'uni-calendar-item--before-checked':weeks.beforeMultiple,
'uni-calendar-item--multiple': weeks.multiple, 'uni-calendar-item--multiple': weeks.multiple,
'uni-calendar-item--after-checked':weeks.afterMultiple, 'uni-calendar-item--after-checked':weeks.afterMultiple,
}">{{todayText}}</text> }"
<text v-if="lunar&&!weeks.extraInfo" class="uni-calendar-item__weeks-lunar-text" :class="{ >{{todayText}}</text>
<text
v-if="lunar&&!weeks.extraInfo"
class="uni-calendar-item__weeks-lunar-text"
:class="{
'uni-calendar-item--isDay-text':weeks.isDay, 'uni-calendar-item--isDay-text':weeks.isDay,
'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay, 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay, 'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay,
...@@ -35,8 +51,12 @@ ...@@ -35,8 +51,12 @@
'uni-calendar-item--multiple': weeks.multiple, 'uni-calendar-item--multiple': weeks.multiple,
'uni-calendar-item--after-checked':weeks.afterMultiple, 'uni-calendar-item--after-checked':weeks.afterMultiple,
'uni-calendar-item--disable':weeks.disable, 'uni-calendar-item--disable':weeks.disable,
}">{{weeks.isDay ? todayText : (weeks.lunar.IDayCn === '初一'?weeks.lunar.IMonthCn:weeks.lunar.IDayCn)}}</text> }"
<text v-if="weeks.extraInfo&&weeks.extraInfo.info" class="uni-calendar-item__weeks-lunar-text" :class="{ >{{weeks.isDay ? todayText : (weeks.lunar.IDayCn === '初一'?weeks.lunar.IMonthCn:weeks.lunar.IDayCn)}}</text>
<text
v-if="weeks.extraInfo&&weeks.extraInfo.info"
class="uni-calendar-item__weeks-lunar-text"
:class="{
'uni-calendar-item--extra':weeks.extraInfo.info, 'uni-calendar-item--extra':weeks.extraInfo.info,
'uni-calendar-item--isDay-text':weeks.isDay, 'uni-calendar-item--isDay-text':weeks.isDay,
'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay, 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
...@@ -45,143 +65,145 @@ ...@@ -45,143 +65,145 @@
'uni-calendar-item--multiple': weeks.multiple, 'uni-calendar-item--multiple': weeks.multiple,
'uni-calendar-item--after-checked':weeks.afterMultiple, 'uni-calendar-item--after-checked':weeks.afterMultiple,
'uni-calendar-item--disable':weeks.disable, 'uni-calendar-item--disable':weeks.disable,
}">{{weeks.extraInfo.info}}</text> }"
</view> >{{weeks.extraInfo.info}}</text>
</view> </view>
</view>
</template> </template>
<script> <script>
import { initVueI18n } from '@dcloudio/uni-i18n' import { initVueI18n } from '@dcloudio/uni-i18n'
import i18nMessages from './i18n/index.js' import i18nMessages from './i18n/index.js'
const { t } = initVueI18n(i18nMessages) const { t } = initVueI18n(i18nMessages)
export default { export default {
emits:['change'], emits: ['change'],
props: { props: {
weeks: { weeks: {
type: Object, type: Object,
default () { default () {
return {} return {}
} }
}, },
calendar: { calendar: {
type: Object, type: Object,
default: () => { default: () => {
return {} return {}
} }
}, },
selected: { selected: {
type: Array, type: Array,
default: () => { default: () => {
return [] return []
} }
}, },
lunar: { lunar: {
type: Boolean, type: Boolean,
default: false default: false
} }
}, },
computed: { computed: {
todayText() { todayText () {
return t("uni-calender.today") return t("uni-calender.today")
}, },
}, },
methods: { methods: {
choiceDate(weeks) { choiceDate (weeks) {
this.$emit('change', weeks) this.$emit('change', weeks)
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
$uni-font-size-base:14px; $uni-font-size-base: 14px;
$uni-text-color:#333; $uni-text-color: #37393D;
$uni-font-size-sm:12px; $uni-font-size-sm: 12px;
$uni-color-error: #e43d33; $uni-color-error: #e43d33;
$uni-opacity-disabled: 0.3; $uni-opacity-disabled: 0.3;
$uni-text-color-disable:#c0c0c0; $uni-text-color-disable: #c0c0c0;
$uni-primary: #2979ff !default; $uni-primary: #4673ff !default;
.uni-calendar-item__weeks-box { .uni-calendar-item__weeks-box {
flex: 1; flex: 1;
/* #ifndef APP-NVUE */ /* #ifndef APP-NVUE */
display: flex; display: flex;
/* #endif */ /* #endif */
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.uni-calendar-item__weeks-box-text { .uni-calendar-item__weeks-box-text {
font-size: $uni-font-size-base; font-size: $uni-font-size-base;
color: $uni-text-color; color: $uni-text-color;
} }
.uni-calendar-item__weeks-lunar-text { .uni-calendar-item__weeks-lunar-text {
font-size: $uni-font-size-sm; font-size: $uni-font-size-sm;
color: $uni-text-color; color: $uni-text-color;
} }
.uni-calendar-item__weeks-box-item { .uni-calendar-item__weeks-box-item {
position: relative; position: relative;
/* #ifndef APP-NVUE */ /* #ifndef APP-NVUE */
display: flex; display: flex;
/* #endif */ /* #endif */
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 100rpx; width: 100rpx;
height: 100rpx; height: 100rpx;
} }
.uni-calendar-item__weeks-box-circle { .uni-calendar-item__weeks-box-circle {
position: absolute; position: absolute;
top: 5px; bottom: 10rpx;
right: 5px; left: 50%;
width: 8px; transform: translate(-50%, -50%);
height: 8px; width: 12rpx;
border-radius: 8px; height: 12rpx;
background-color: $uni-color-error; border-radius: 8px;
background-color: $uni-color-error;
}
} .uni-calendar-item--disable {
// background-color: rgba(249, 249, 249, $uni-opacity-disabled);
color: $uni-text-color-disable;
}
.uni-calendar-item--disable { .uni-calendar-item--isDay-text {
background-color: rgba(249, 249, 249, $uni-opacity-disabled); color: $uni-primary;
color: $uni-text-color-disable; }
}
.uni-calendar-item--isDay-text { .uni-calendar-item--isDay {
color: $uni-primary; background-color: $uni-primary;
} // opacity: 0.8;
color: #fff;
border-radius: 16rpx;
}
.uni-calendar-item--isDay { .uni-calendar-item--extra {
background-color: $uni-primary; color: $uni-color-error;
opacity: 0.8; opacity: 0.8;
color: #fff; }
}
.uni-calendar-item--extra { .uni-calendar-item--checked {
color: $uni-color-error; background-color: $uni-primary;
opacity: 0.8; color: #fff;
} opacity: 0.8;
}
.uni-calendar-item--checked { .uni-calendar-item--multiple {
background-color: $uni-primary; background-color: $uni-primary;
color: #fff; color: #fff;
opacity: 0.8; opacity: 0.8;
} }
.uni-calendar-item--before-checked {
.uni-calendar-item--multiple { background-color: #ff5a5f;
background-color: $uni-primary; color: #fff;
color: #fff; }
opacity: 0.8; .uni-calendar-item--after-checked {
} background-color: #ff5a5f;
.uni-calendar-item--before-checked { color: #fff;
background-color: #ff5a5f; }
color: #fff;
}
.uni-calendar-item--after-checked {
background-color: #ff5a5f;
color: #fff;
}
</style> </style>
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
v-if="insert || show" v-if="insert || show"
class="uni-calendar__content" class="uni-calendar__content"
:class="{'uni-calendar--fixed':!insert,'uni-calendar--ani-show':aniMaskShow}" :class="{'uni-calendar--fixed':!insert,'uni-calendar--ani-show':aniMaskShow}"
:style="[{backgroundColor:backgroundColor}]"
> >
<view <view
v-if="!insert" v-if="!insert"
...@@ -182,6 +183,10 @@ export default { ...@@ -182,6 +183,10 @@ export default {
rangeValue: { rangeValue: {
type: Object, type: Object,
default: () => { { } } default: () => { { } }
},
backgroundColor:{
type: String,
default: '#fff'
} }
}, },
data () { data () {
......
...@@ -238,6 +238,25 @@ const showNoAccess = () => { ...@@ -238,6 +238,25 @@ const showNoAccess = () => {
icon: 'error' icon: 'error'
}) })
} }
/**设置粘贴板内容 */
const setCopyData = (data, callBack) => {
console.log(data, 'setCopyData')
uni.setClipboardData({
data: data,
success(res) {
console.log(res, 'setCopyData')
if (callBack && typeof callBack === 'function') callBack(res)
}
})
}
/** 刷新工单管理 预约管理数据 */
const refreshPageData = notRefreshOrder => {
if (!notRefreshOrder) getApp().globalData.orderListRefresh = true
getApp().globalData.dateListRefresh = true
getApp().globalDataorderListDateListScreenRefresh = true
}
export default { export default {
compareVersions, compareVersions,
convertDateTimeFormat, convertDateTimeFormat,
...@@ -255,5 +274,7 @@ export default { ...@@ -255,5 +274,7 @@ export default {
getViewInfo, getViewInfo,
setPrice, setPrice,
decimal, decimal,
showNoAccess showNoAccess,
setCopyData,
refreshPageData
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!