Commit a1d8fcae by 张立顺

v4.10.0 功能开发

1 parent 6052098c
......@@ -14,7 +14,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false
const release = false
let index = 2
let index = 1
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
......
......@@ -3,11 +3,11 @@ import request from './api/request.js'
import router from './router/index.js'
import util from './utils/util.js'
import api from './api/api.js'
import * as Sentry from "./utils/sentry-miniapp.wx.min"
import * as Sentry from './utils/sentry-miniapp.wx.min'
// 先屏蔽不上sentry功能
// import * as Sentry from 'sentry-miniapp'
const accountInfo = wx.getAccountInfoSync()
console.log(Sentry);
// console.log(Sentry)
// 初始化 Sentry 生产环境再开启
accountInfo.miniProgram.envVersion == 'release' &&
Sentry.init({
......@@ -21,10 +21,14 @@ App({
wx.$util = util
wx.$request = request
wx.$router = router
// showModal
wx.$modal = this.showModal
let userInfo = util.getStorageSync('dj_boutique_user_info')
userInfo && this.checkYqdSuper(userInfo)
},
showModal(that, options) {
that.selectComponent('#modal').showModal(options)
},
/**
* 下载小程序新版本并重启应用
*/
......
......@@ -17,7 +17,8 @@
"tabOperating/pages/index/index",
"tabOperating/pages/operatingShow/operatingShow",
"tabWorkOrder/pages/ocr/ocr",
"test/pages/test"
"test/pages/test",
"tabWorkOrder/pages/createArchives/createArchives"
],
"window": {
"backgroundTextStyle": "light",
......@@ -67,9 +68,9 @@
"tipsPopup": "components/tipsPopup/Popup",
"account-switch": "components/accountSwitch/accountSwitch",
"qr-box": "components/Qrbox/Qrbox",
"switch-popup": "components/switchPopup/switchPopup",
"order-switchPopup": "components/orderSwitchPopup/orderSwitchPopup"
"order-switchPopup": "components/orderSwitchPopup/orderSwitchPopup",
"modal": "components/modal/modal"
},
"sitemapLocation": "sitemap.json",
"permission": {
......
......@@ -58,8 +58,11 @@ Component({
let carlist = JSON.parse(storageData)
// console.log(carlist)
// console.log(storageData)
this.setData({ storageData: carlist })
this.init()
setTimeout(() => {
// 解决数据过大导致在初始化是影响页面布局问题
this.setData({ storageData: carlist })
this.init()
}, 100)
},
init() {
// console.log('getBrandList')
......
......@@ -41,14 +41,17 @@
color: #888888;
position: relative;
}
.child.active {
color: #3582ee;
}
.child.title {
color:#282829 ;
color: #282829;
padding-left: 64rpx;
/* color: #3582ee; */
}
.child .icon {
display: none;
width: 32rpx;
......@@ -58,6 +61,7 @@
left: 40rpx;
transform: translateY(-50%);
}
.child.active .icon {
display: block;
}
......@@ -76,16 +80,19 @@
opacity: 0;
animation: show-side-bar 0.5s forwards;
}
@keyframes show-side-bar {
0% {
opacity: 0;
right: -100%;
}
100% {
opacity: 1;
right: 0;
}
}
.side-bar .view {
width: 100%;
text-align: center;
......@@ -108,8 +115,9 @@
align-items: center;
justify-content: center;
}
.nothing {
padding: 100rpx;
text-align: center;
color: #999;
}
}
\ No newline at end of file
......@@ -64,6 +64,7 @@ Component({
).then(res => {
let { code, data, message } = res
if (code == 0) {
// console.log('data', data)
data[0].active = true
let { merchantId, merchantName } = data[0]
......
// components/show-modal/index.js
let app = getApp()
/****
* 功能名称:自定义弹框 (支持三个按钮)
* show:false @description 默认false,true弹框展示
* custom:false @description 默认false,true弹框内容自定义
* title:'' @description 弹框内容文案
* btns:[] @description 弹框按钮文案,最多支持三个
* cntMarginTop:550 @description 弹框距离顶部的距离rpx
* btnTextColor:[] @description 弹框按钮字体颜色,最多支持三个
* tapTitle:"" 顶部标题
* tabTitleShow:false 顶部标题是否展示
* binddidClickBtn="onClickModalBtn" 外面通过e.detail获取,值为按钮所在位置的索引 0/1/2
* onClickModalBtn(e) {
console.log(e.detail)
}
*
*
* 案例
* <show-modal show="{{canShow}}" title="这是一个弹框" btns="{{['取消','确定']}}" binddidClickBtn="onClickModalBtn"></show-modal>
*
* 案例 custom:true
<show-modal show="{{canShow}}" custom="{{true}}" btns="{{['取消','确定']}}" binddidClickBtn="onClickModalBtn">
<view>这是一个弹框</view>
</show-modal>
*/
Component({
// 属性
properties: {
// 弹层开关
show: {
type: Boolean, //目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型)
value: false, // 默认值
observer(newVal, oldVal) {
if (newVal) {
this.createMaskAnimate(true)
} else {
this.createMaskAnimate(false)
}
}
},
// 是否内容自定义
custom: {
type: Boolean,
value: false
},
// 弹框内容
title: {
type: String,
value: '这是一个弹框'
},
// 按钮文字内容
btns: {
type: Array,
value: ['取消', '确定'] // 默认值
},
// 弹框距离顶部距离
cntMarginTop: {
type: Number,
value: 550 // 默认值
},
// 按钮文字颜色
btnTextColor: {
type: Array,
value: ['#A2A2A8', '#333333', '#303030'], // 默认值
observer(newVal, oldVal) {
if (!newVal && !newVal.length && newVal.length != 3) {
this._btnTextColor = ['#A2A2A8', '#333333', '#303030']
} else {
this._btnTextColor = newVal
}
}
},
//标题是否显示
tabTitleShow: {
type: Boolean,
value: true
},
// 标题
tapTitle: {
type: String,
value: '提示信息'
}
},
// 初始化数据
data: {
_show: false,
_btnTextColor: ['#A2A2A8', '#333333', '#303030'],
maskAnimate: [],
frameAnimate: [],
title: '', // 提示弹框
success: () => {}, // 成功
error: () => {} // 失败
},
lifetimes: {
attached: function () {
function success() {} // 成功
function error() {}
},
detached: function () {
// 在组件实例被从页面节点树移除时执行
}
},
methods: {
selectMask: function (e) {
this.setData({
show: !this.data.show
})
},
// 选中底部的按钮
selectBtn: function (e) {
let index = e.currentTarget.dataset.index
const that = this
this.triggerEvent('didClickBtn', index) // 外面通过e.detail获取index的值
if (index == 0) {
this.setData(
{
show: false
},
() => {
that.data.error()
}
)
} else {
this.setData(
{
show: false
},
() => {
that.data.success()
}
)
}
},
move: function () {
return
},
showModal: function (params) {
let { success, error } = this
this.setData({
show: !this.data.show,
title: params.title,
tabTitleShow: params.tabTitleShow,
success: params.success || function () {},
error: params.error || function () {}
})
},
//动画-遮罩层淡入淡出
createMaskAnimate(currentStatu) {
if (currentStatu) {
this.setData({
_show: currentStatu
})
this.createframeAnimate(true)
} else {
setTimeout(() => {
this.setData({
_show: false
})
}, 300)
this.createframeAnimate(false)
}
let maskAnimate = wx.createAnimation({
duration: 300,
timingFunction: 'ease-in-out',
delay: 0
})
this.maskAnimate = maskAnimate
maskAnimate.opacity(currentStatu ? 0.7 : 0).step()
setTimeout(() => {
this.setData({
maskAnimate: maskAnimate.export()
})
}, 50)
},
//动画-弹层内容Q弹
createframeAnimate(currentStatu) {
// return
let frameAnimate = wx.createAnimation({
duration: 300,
timingFunction: 'ease',
delay: 0
})
this.frameAnimate = frameAnimate
frameAnimate
.translate('-50%', '-50%')
.opacity(currentStatu ? 0.5 : 1)
.scale(currentStatu ? 1.05 : 1)
.step()
this.setData({
frameAnimate: frameAnimate.export()
})
setTimeout(() => {
// 执行第二组动画
frameAnimate
.opacity(currentStatu ? 1 : 0)
.scale(currentStatu ? 1 : 0.9)
.step()
// 给数据对象储存的第一组动画,更替为执行完第二组动画的动画对象
this.setData({
frameAnimate: frameAnimate.export()
})
}, 150)
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!-- components/show-modal/index.wxml -->
<view wx:if="{{_show}}" class='popV' catchtouchmove="move">
<view class='popV-mask' bindtap="selectMask" animation='{{maskAnimate}}' />
<!-- 动态修改top -->
<view class='popV-content' animation='{{frameAnimate}}'>
<view class="tap_title" wx:if="{{tabTitleShow}}">{{tapTitle}}</view>
<view class="popV-title" wx:if="{{title}}">{{title}}</view>
<slot wx:if="{{custom}}" />
<view class='popV-content-btm'>
<!-- style="color:{{btnTextColor[index]?btnTextColor[index]:''}};" -->
<view
wx:for="{{btns}}"
wx:key="index"
data-index="{{index}}"
class='popV-item'
hover-class='popV-hover'
bindtap='selectBtn'>
{{item}}
</view>
</view>
</view>
</view>
/* components/show-modal/index.wxss */
.popV {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
width: 100vw;
height: 100vh;
}
.popV-mask {
position: absolute;
width: 100%;
height: 100%;
background: rgba(0, 0, 0);
opacity: 0;
display: block;
}
.popV-content {
position: absolute;
top: 50%;
left: 50%;
transform: translateY(-50%);
transform: translate(-50%);
width: 640rpx;
background: white;
border-radius: 24rpx;
z-index: 1000;
display: flex;
flex-direction: column;
overflow: hidden;
opacity: 1;
}
.popV-title {
box-sizing: border-box;
height: 100rpx;
/* height: 205rpx; */
/* line-height: 48rpx; */
border-bottom: 2rpx solid #EBEDF0;
display: flex;
justify-content: center;
align-items: center;
font-family: PingFangSC-Regular;
font-size: 32rpx;
color: #333333;
letter-spacing: -0rpx;
padding: 0 48rpx;
text-align: center;
}
/* 底部 */
.popV-content-btm {
height: 97rpx;
width: 100%;
left: 0;
bottom: 0;
display: flex;
flex-direction: row;
align-items: center;
padding: 48rpx;
box-sizing: border-box;
/* margin-bottom: 48rpx; */
}
.popV-item {
flex: 1;
font-size: 40rpx;
color: #333333;
opacity: 1;
height: 97rpx;
line-height: 97rpx;
font-family: PingFangSC-Medium;
/* letter-spacing: 1.88rpx; */
text-align: center;
/* border: 2rpx solid #A2A2A8; */
/* border-radius: 44rpx; */
/* height: 88rpx;
line-height: 88rpx; */
letter-spacing: 0;
box-sizing: border-box;
overflow: hidden;
align-items: center;
}
.popV-item:nth-child(2) {
border-left: 1px solid #EBEDF0;
color: #3582EE;
}
/* .popV-item~.popV-item {
margin-left: 48rpx;
} */
/* .popV-hover {
background: #DDD;
} */
.tap_title {
text-align: center;
font-family: PingFangSC-Medium;
font-size: 36rpx;
color: #303030;
letter-spacing: 0;
margin-top: 64rpx;
font-weight: 700;
}
\ No newline at end of file
......@@ -52,7 +52,7 @@
"ignoreUploadUnusedFiles": true
},
"compileType": "miniprogram",
"libVersion": "2.10.4",
"libVersion": "2.12.3",
"appid": "wx570d9331f9ace0bd",
"projectname": "%E7%B2%BE%E5%93%81%E5%8D%87%E7%BA%A7",
"simulatorType": "wechat",
......
......@@ -64,9 +64,9 @@
{
"name": "订单完成施工",
"pathName": "tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail",
"query": "orderCode=2203141643241660",
"launchMode": "default",
"scene": null
"query": "orderCode=2207051649233012",
"scene": null,
"launchMode": "default"
},
{
"name": "经营数据",
......@@ -94,13 +94,6 @@
},
{
"name": "",
"pathName": "test/pages/test",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "tabWorkOrder/pages/ocr/ocr",
"query": "type=standNo",
"launchMode": "default",
......@@ -110,8 +103,15 @@
"name": "订单补录",
"pathName": "tabWorkOrder/pages/additionRecordOrder/additionRecordOrder",
"query": "tradeNo=354293022030&totalFee=1000.00&accountDate=07/06 16:53",
"scene": null,
"launchMode": "default"
"launchMode": "default",
"scene": null
},
{
"name": "批量建档",
"pathName": "tabWorkOrder/pages/createArchives/createArchives",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
......

8.89 KB | W: | H:

7.16 KB | W: | H:

tabIndex/images/icon-1.png
tabIndex/images/icon-1.png
tabIndex/images/icon-1.png
tabIndex/images/icon-1.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -225,7 +225,8 @@ Page({
}
} else {
if (item.url) {
if (item.url != 'tabWorkOrder.createOrder') {
// if (item.url != 'tabWorkOrder.createOrder') {
if (!['tabWorkOrder.createOrder', 'tabWorkOrder.createArchives'].includes(item.url)) {
wx.$router.go(item.url)
return
} else {
......@@ -237,7 +238,8 @@ Page({
}
} else {
if (item.url) {
if (item.url != 'tabWorkOrder.createOrder') {
// item.url != 'tabWorkOrder.createOrder'
if (!['tabWorkOrder.createOrder', 'tabWorkOrder.createArchives'].includes(item.url)) {
wx.$router.go(item.url)
return
} else {
......@@ -546,7 +548,7 @@ Page({
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
// console.log('onHide')
console.log('onHide')
// console.log(time)
clearTimeout(time)
},
......
......@@ -7,9 +7,13 @@ export default {
url: 'tabWorkOrder.createOrder'
},
{
name: '扫码核销',
wxCallBack: 'scanCode'
name: '批量建档',
url: 'tabWorkOrder.createArchives'
},
// {
// name: '扫码核销',
// wxCallBack: 'scanCode'
// },
{
name: '预约管理',
url: 'tabDate.index'
......
......@@ -83,5 +83,10 @@ module.exports = {
/** 订单补录 */
supplementOrder(data) {
return api.post('dj.api.smartcarlife.order.supplementOrder', data)
},
/** 订单修正 */
correctionOrder(data) {
return api.post('dj.api.smartcarlife.order.correctionOrder', data)
}
}
......@@ -331,9 +331,9 @@
bindconfirm="chooseGoods"
goodsData="{{goodsData}}"
chooseGoodsList="{{goodsList}}" />
<order-popup
<!-- <order-popup
orderType="{{remarkBox}}"
show="{{remarkBox}}"
qrCode="{{orderInfo.payOrder.outTradeNo}}"
price="{{orderInfo.total_price}}" />
price="{{orderInfo.total_price}}" /> -->
......@@ -123,7 +123,7 @@ Page({
this.getDetail(orderCode)
if (!time) {
time = setInterval(() => {
console.log('6666666666')
// console.log('6666666666')
this.getDetail(orderCode)
}, 5 * 1000)
}
......
......@@ -33,8 +33,7 @@ height: 48rpx;
margin-right: 12rpx;
}
.payTips {
color: #999;
margin-left: 20rpx;
color: #999;margin-left: 20rpx;
}
.tips-btn{
flex-direction: column;
......@@ -43,4 +42,4 @@ margin-right: 12rpx;
box-sizing: border-box;
padding: 0 32rpx;
justify-content: space-between;
}
\ No newline at end of file
}
......@@ -11,11 +11,44 @@ Page({
qrFlag: true,
qrHeight: 107,
isYqdSuper: app.globalData.isYqdSuper,
isStaff: app.globalData.isStaff,
customerService: '',
defaultCustomerService: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png',
// defaultCustomerService: 'https://img01.glsx.com.cn/group1/M00/21/01/wKgFHWKEkeSAZRltAAED5CfS91o118.png',
failCustomerService: '../images/kfrefresh.png'
},
// 跳转正确订单
redirectOrder() {
let { orderInfo } = this.data
wx.$router.redirectTo('constructionOrderDetail', { orderCode: orderInfo.associatedOrderCode })
},
// 确定是否要显示
targetError() {
wx.$modal(this, {
show: true,
title: '工单标记',
tabTitleShow: false,
success: res => {
// 跳转新增订单页面 并带特定参数
let { orderInfo } = this.data
// orderInfo.orderSource = type
orderInfo.associatedOrderCode = orderInfo.orderCode
delete orderInfo.orderCode
orderInfo.selectPayType = 2
wx.$router.redirectTo('createOrder', orderInfo)
// wx.showToast({
// icon: 'success',
// title: '确定按钮点击'
// })
},
error: () => {
// wx.showToast({
// icon: 'error',
// title: '取消'
// })
}
})
},
jumpUpdate() {
let { orderInfo } = this.data
......@@ -104,6 +137,8 @@ Page({
if (data.customer && data.customer.carSeriesName) {
data.carType = `${data.customer.carBrand || ''}-${data.customer.carChildsBrandName || ''}-${data.customer.carSeriesName || ''}`
}
// 处理订单是否显示 操作按钮
data.canOperate = [1, 3].includes(data.selectPayType) && data.failureFlag != 'Y'
this.setData({
orderInfo: data,
flag: true,
......@@ -271,7 +306,6 @@ Page({
onShow: function (options) {
console.log(this.data)
let code = this.data.orderCode || ''
// this.getGrass(code)
},
/**
......
<!-- 完成施工页面 -->
<!-- <wxs src="/utils/index.wxs" module="common" /> -->
<block wx:if="{{flag}}">
<view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="status-box">
......@@ -54,7 +56,10 @@
</block>
</view>
<view class="box">
<view class="title">工单信息</view>
<view class="title infoTitle">
<text>工单信息</text>
<text bindtap="targetError" class="operate" wx:if="{{orderInfo.canOperate}}">操作</text>
</view>
<block wx:for="{{orderObj}}" wx:key="index">
<view class="cell">
<view class="label">{{item.label}}</view>
......@@ -95,7 +100,7 @@
<view class="box customer">
<view class="title">
<text>客户信息</text>
<text wx:if="{{isYqdSuper}}" bindtap="jumpUpdate" class="updateInfo">修改客户信息</text>
<text wx:if="{{isYqdSuper||isStaff}}" bindtap="jumpUpdate" class="updateInfo">修改客户信息</text>
</view>
<block wx:for="{{customerObj}}" wx:key="index">
<view class="cell">
......@@ -173,19 +178,6 @@
</block>
</view>
<qr-box imgSrc="{{customerService}}" bindrefresh="getWorkWechatLiveQRCode" />
<!-- <view class="qr-box">
<view wx:if="{{!customerService}}" class="loader box-center" />
<image
wx:else
class="qrImg"
webp="{{true}}"
bindtap="previewImage"
binderror="imageError"
bindload="imageLoad"
data-url="{{customerService}}"
src="{{customerService}}"
/>
</view> -->
<view class="warranty-tips">
{{orderInfo.selectPayType==0? '建议让客户扫码关注客服号领取礼包' :'建议让客户扫码关注客服查询质保'}}
</view>
......@@ -217,12 +209,33 @@
</view>
</block>
</view>
<!-- <block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}">
<view class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="btn text-center" bindtap="showAgain">继续下单</view>
</view>
</block> -->
<block wx:if="{{orderInfo.failureFlag == 'Y'}}">
<!-- <view class="btn text-center" bindtap="showAgain">继续下单</view> -->
<view class=" btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips">
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">该订单录入信息有误,点击跳转正确工单页面。</view>
<view class="checkBtn" bindtap="redirectOrder">去查看</view>
</view>
</view>
</block>
</block>
<order-popup orderType="4" show="{{showPopup}}" />
<wxs src="/utils/index.wxs" module="common" />
<modal
id="modal"
class="modal"
custom='true'
btns="{{['返回','确定']}}">
<view class="modatcontent">
<view class=" orderCode">
<text class="code">订单编号:</text>
<text>{{orderInfo.orderCode}}</text>
</view>
<view class="tips">
若工单信息有误,确认操作可标记为
<text class="color">已失效</text>
,并补录新工单以提供线下核对。
</view>
</view>
</modal>
......@@ -18,39 +18,45 @@ page {
}
.status-box .userInfo{
.status-box .userInfo {
display: flex;
align-items: center;
/* justify-content: center; */
font-size: 40rpx;
font-weight: 600;
margin-bottom: 40rpx;
font-size: 40rpx;
font-weight: 600;
margin-bottom: 40rpx;
}
.status-box .orderContainer {
display: flex;
justify-content: space-between;
}
.status-box .orderContainer .tips {
width: 432rpx;
font-size: 24rpx;
font-size: 24rpx;
}
.status-box .userInfo image{
.status-box .userInfo image {
width: 40rpx;
height: 40rpx;
margin-left: 20rpx;
}
.status-box .content {
font-size: 32rpx;
margin-bottom: 12rpx;
font-weight: 700;
}
.againBtn .btn{
font-size: 28rpx;
.againBtn .btn {
font-size: 28rpx;
width: 160rpx;
padding: 10rpx 0rpx;
border-radius: 40rpx;
border: 2px solid #FFFFFF;
padding: 10rpx 0rpx;
border-radius: 40rpx;
border: 2px solid #FFFFFF;
}
.box {
background: #FFFFFF;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
......@@ -68,6 +74,17 @@ border: 2px solid #FFFFFF;
position: relative;
}
.box .operate {
font-size: 28rpx;
color: #3582EE;
}
.box .infoTitle {
display: flex;
justify-content: space-between;
align-items: center;
}
.box .title::after {
position: absolute;
content: '';
......@@ -78,17 +95,20 @@ border: 2px solid #FFFFFF;
top: 50%;
transform: translateY(-50%);
}
.box .line{
.box .line {
display: inline-block;
height: 1rpx;
width: 355rpx;
width: 100%;
opacity: 0.3;
background-color: #C3C3C3;
background-color: #C3C3C3;
}
.box .cell.total {
padding-top: 30rpx;
}
/* .box .cell.total {
border-bottom: 1px solid #C3C3C3;
} */
......@@ -196,6 +216,7 @@ border: 2px solid #FFFFFF;
min-height: 160rpx;
margin-bottom: 14rpx;
}
/* .box .qr-box image {
width: 160rpx;
height: 160rpx;
......@@ -212,25 +233,7 @@ border: 2px solid #FFFFFF;
color: #666;
}
.btn-box {
position: fixed;
z-index: 998;
left: 0;
bottom: 0;
width: 100%;
box-sizing: border-box;
min-height: 100rpx;
background: #FFFFFF;
padding: 10rpx 32rpx;
}
.btn-box .btn {
height: 80rpx;
background: #3582EE;
border-radius: 12rpx;
font-size: 28rpx;
color: #FFFFFF;
}
.isFullSucreen {
padding-bottom: 228rpx !important;
......@@ -304,11 +307,11 @@ border: 2px solid #FFFFFF;
}
.grass_title .right {
flex:1;
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
padding-left:10rpx;
padding-left: 10rpx;
}
.grass_title .right .btn {
......@@ -369,7 +372,7 @@ border: 2px solid #FFFFFF;
width: 36rpx;
height: 36rpx;
margin-right: 8rpx;
border-radius:100%;
border-radius: 100%;
}
.grass_title .right .time {
......@@ -416,14 +419,15 @@ border: 2px solid #FFFFFF;
margin-right: 8rpx;
}
.customer .title{
.customer .title {
display: flex;
align-items: center;
justify-content: space-between;
}
.customer .updateInfo{
color: #3582EE;
font-size: 28rpx;
.customer .updateInfo {
color: #3582EE;
font-size: 28rpx;
}
......@@ -434,45 +438,117 @@ font-size: 28rpx;
min-height: 160rpx;
margin-bottom: 14rpx;
}
.qr-box .qrImg {
.qr-box .qrImg {
width: 160rpx;
height: 160rpx;
display: inline-block;
}
.loadingBox {
width: 160rpx;
height: 160rpx;
position: relative;
}
.loader {
border-top:0.2em solid rgba(0,0,0,0.1);
border-right:0.2em solid rgba(0,0,0,0.1);
border-bottom:0.2em solid rgba(0,0,0,0.1);
border-left:0.2em solid #555;
transform:translateZ(0);
animation:loader 500ms infinite linear;
transition:all 500ms ease;
border-top: 0.2em solid rgba(0, 0, 0, 0.1);
border-right: 0.2em solid rgba(0, 0, 0, 0.1);
border-bottom: 0.2em solid rgba(0, 0, 0, 0.1);
border-left: 0.2em solid #555;
transform: translateZ(0);
animation: loader 500ms infinite linear;
transition: all 500ms ease;
}
.loader,.loader:after {
border-radius:50%;
width:1.5em;
height:1.5em;
.loader,
.loader:after {
border-radius: 50%;
width: 1.5em;
height: 1.5em;
}
@keyframes loader {
0% {
-webkit-transform:rotate(0deg);
transform:rotate(0deg);
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
100% {
-webkit-transform:rotate(360deg);
transform:rotate(360deg);
.btn-box {
position: fixed;
z-index: 998;
left: 0;
bottom: 0;
width: 100%;
box-sizing: border-box;
/* min-height: 100rpx; */
background-color: #fff;
padding: 0 32rpx;
}
.btn-box .tips {
display: flex;
/* justify-content: center; */
align-items: center;
background-color: #EFF5FE;
height: 75rpx;
color: #3582EE;
font-size: 24rpx;
font-weight: 600;
}
.btn-box .checkBtn {
/* margin: 0 20rpx; */
/* font-size: 28rpx; */
width: 136rpx;
height: 48rpx;
text-align: center;
line-height: 48rpx;
color: #F24724;
border-radius: 28rpx;
border: 2px solid #F24724;
}
.tipsIcon {
width: 32rpx;
height: 32rpx;
margin-right: 5rpx;
}
.box .qr-box image{
.box .qr-box image {
width: 160rpx;
height: 160rpx;
}
\ No newline at end of file
}
.modatcontent {
box-sizing: border-box;
padding: 48rpx 50rpx;
}
.modal text,
.modal {
font-size: 28rpx;
color: #333333;
}
.modal .orderCode {
margin-bottom: 20rpx;
}
.modal .code {
color: #888888;
}
.modal .color {
color: #F24724;
}
\ No newline at end of file
{
"navigationBarTitleText": "批量建档",
"usingComponents": {
"car-brands": "/components/CarBrands/CarBrands",
"merchant-seles": "/components/Merchant-Seles/Merchant-Seles"
}
}
<!-- tabWorkOrder/pages/createArchives/createArchives.wxml -->
<!-- 订单补录 -->
<!-- wx:if="{{flag}}" -->
<block>
<view class="main {{isFullSucreen?'isFullSucreen':'' }} {{showTips?'fullSucreen-tips':'' }}" style="height:calc(100vh - {{isFullSucreen?(34+71.5) : 71.5}}px);">
<view class="createData">
<view class="label">客户建档日期</view>
<calendar
id="calender"
class="calendar"
allowSameDay
shortcut
bindselect='rangeSelect'
rangeAll
dateType='single'
calenderColor='#3582EE'
vertical
minDate="2020-10-01"
maxDate="{{dateObj.maxDate}}"
isComponents>
<!-- dataDateStr="{{dateObj.todayShow}}" -->
<view class="calendarItem text-center dateNum">
{{dateObj.todayShow}}
<image class="solidArrow" src="../../images/solidArrow.png" />
</view>
</calendar>
</view>
<view class="box">
<scroll-view
scroll-y
class="list"
scroll-into-view="{{toView}}"
style="height:100%">
<!-- scroll-into-view="{{toView}}" scroll-top="{{topNum}}" enhanced
show-scrollbar="{{false}}" -->
<!-- refresher-enabled="{{true}}" enable-back-to-top navBarHeight + calc(100% - {{104}}px); -->
<view class="employeeBox">
<gl-cell
border
valueAlign="right"
label="销售顾问"
requiredAfter
labelWidth="140rpx"
required
haveArrow
bindclick="showPopup"
data-show-name="selesBox"
placeholder="点击选择">
<!-- disabled="{{orderObj.orderSource == 5}}" -->
<block wx:if="{{orderObj.merchantName && orderObj.employeeName}}">
<view class="between">
<view class="start text-hide">{{orderObj.merchantName}}</view>
<view class="end text-hide">
<text>|</text>
{{orderObj.employeeName}}
</view>
</view>
</block>
</gl-cell>
</view>
<block
wx:for="{{notUpgradeOrderList}}"
wx:for-item="li"
wx:for-index="ind"
wx:key="ind">
<view
style="{{li.txtStyle}}"
class="touch-item {{li.isTouchMove ? 'touch-move-active' : ''}}"
data-ind='{{ind}}'
data-index='{{ind}}'>
<view
class="item content "
catchtap="jump"
data-ind='{{ind}}'
data-index='{{ind}}'
bindtouchstart="touchstart"
bindtouchmove="touchmove"
bindtouchend="touchE"
data-name="{{ 'orderDetail'}}"
data-item="{{li}}">
<gl-cell
border
valueAlign="right"
label="车主姓名"
requiredAfter
labelWidth="140rpx"
required>
<input
placeholder="点击输入"
class="input"
placeholder-class="placeholder-class"
maxlength="16"
value="{{li.customerName}}"
bindinput="input"
data-index="{{ind}}"
data-name="customerName"
always-embed></input>
</gl-cell>
<gl-cell
border
label="性别"
valueAlign="right"
labelWidth="140rpx">
<view class="gender-box">
<view class="block text-center {{li.customerSex==1?'':'right'}}" />
<view
class="male text-center {{li.customerSex == 1?'active':''}}"
bindtap="changeGender"
data-index="{{ind}}"
data-gender="1">
男
</view>
<view
class="woman text-center {{li.customerSex == 2?'active':''}}"
bindtap="changeGender"
data-index="{{ind}}"
data-gender="2">
女
</view>
</view>
</gl-cell>
<gl-cell
border
valueAlign="right"
label="手机号"
requiredAfter
labelWidth="140rpx"
required>
<input
placeholder="点击输入"
class="input"
type="number"
maxlength="11"
placeholder-class="placeholder-class"
value="{{li.customerPhone}}"
bindinput="input"
data-index="{{ind}}"
data-name="customerPhone"
always-embed></input>
</gl-cell>
<gl-cell
border
valueAlign="right"
iconSrc="{{scanIcon}}"
bindtitleClick="navOcr"
data-index="{{ind}}"
data-type="plateNumber"
label="车牌号"
requiredAfter
labelWidth="240rpx">
<input
placeholder="点击输入"
class="input"
placeholder-class="placeholder-class"
value="{{li.plateNumber}}"
bindinput="input"
data-index="{{ind}}"
data-name="plateNumber"
maxlength="8"
always-embed></input>
</gl-cell>
</view>
<view
wx:if="{{!li['confirmIndex']}}"
class="del"
catchtap="delBtn"
data-ind="{{ind}}"
data-item="{{li}}"
data-index="{{index}}">
<view>删除</view>
<!-- <view>工单</view> -->
</view>
<!-- <view
wx:else
class="del confirm"
catchtap="repeal"
data-item="{{li}}"
data-index="{{index}}">
确认删除
</view> -->
</view>
</block>
<view class="addBtn" bindtap="addUserItem" id="addBtn">
<image class="addIcon" src="../../images/addIcon.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" />
<text class="text">新增客户</text>
</view>
</scroll-view>
</view>
</view>
</block>
<!-- <car-brands show="{{carBrandBox}}" bindconfirm="chooseCar" carSeriesId="{{orderObj.carSeriesId || ''}}" /> -->
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips">可批量生成当天的战败客户,缺漏信息建档后在工单详情补充</view>
<view class="confirm text-center" bindtap="submit">
{{notUpgradeOrderList.length==1?'提交客户信息':'提交'+notUpgradeOrderList.length+'个客户信息'}}
</view>
</view>
<merchant-seles
show="{{selesBox}}"
title="选择合作门店"
sub-title="选择销售顾问"
userInfo="{{userInfo}}"
type="1" />
/* tabWorkOrder/pages/createArchives/createArchives.wxss */
page {
background-color: rgb(246, 247, 247);
transition: none !important;
/* position: relative; */
}
.main {
padding: 0 20rpx 136rpx;
/* padding: 0 0 136rpx; */
}
.isFullSucreen {
padding-bottom: 185rpx !important;
}
/* .fullSucreen-tips {
padding-bottom: 210rpx !important;
} */
/* .isFullSucreen.fullSucreen-tips {
padding-bottom: 300rpx !important;
} */
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
.box {
height: calc(100% - 120rpx);
/* background: #FFFFFF; */
background-color: #F8F9F9;
/* background-color: rgb(246, 247, 247); */
/* box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10); */
/* border-radius: 16rpx; */
overflow: hidden;
margin-top: 20rpx;
}
scroll-view ::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
.input {
text-align: right;
font-size: 28rpx;
}
.placeholder-class {
color: #C3C3C3;
}
.between {
display: flex;
align-items: center;
justify-content: flex-end;
}
.between .start {
max-width: 70%;
}
.between .end text {
margin: 0 6rpx;
}
.createData {
box-sizing: border-box;
width: 100%;
height: 120rpx;
background-color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 60rpx;
}
.createData .label {
font-size: 28rpx;
color: #333;
}
.calendarItem {
width: 300rpx;
/* // display: inline;
// color: #666;
// flex: 1 */
}
.solidArrow {
/* // width: 10rpx;
// height: 6rpx;
// vertical-align: middle; */
width: 14rpx;
height: 10rpx;
/* vertical-align: middle; */
margin-left: 10rpx;
margin-top: 5rpx;
}
.dateNum {
color: #3582EE;
padding: 12rpx 24rpx;
border-radius: 8rpx;
border: 1px solid #3582EE;
font-size: 24rpx;
font-weight: 500;
}
.employeeBox {
/* margin: 15rpx 0; */
margin: 0 20rpx 20rpx;
border-radius: 16rpx;
overflow: hidden;
}
/* .list .item {
width: 100%;
} */
.list .content {
width: 100%;
margin-right: 0;
-webkit-transition: all 0.4s;
transition: all 0.4s;
-webkit-transform: translateX(72px);
transform: translateX(72px);
margin-left: -72px;
}
.gender-box {
width: 236rpx;
height: 60rpx;
display: flex;
border: 2rpx solid #3582EE;
border-radius: 12rpx;
font-size: 28rpx;
color: #3582EE;
margin-left: auto;
position: relative;
}
.gender-box .block {
position: absolute;
/* top: 0; */
top: 50%;
transform: translateY(-50%);
border: 2rpx solid #3582EE;
left: 0;
width: 50%;
border-radius: 12rpx;
height: 100%;
background: #3582EE;
color: #fff;
transition: all .25s;
}
.gender-box .block.right {
left: 50%;
}
.gender-box .male,
.gender-box .woman {
width: 50%;
height: 100%;
position: absolute;
top: 0;
transition: all .25s;
}
.gender-box .male {
left: 0;
}
.gender-box .woman {
right: 0;
}
.gender-box .male.active,
.gender-box .woman.active {
color: #fff;
}
.addBtn {
width: 440rpx;
height: 80rpx;
margin: 64rpx auto;
color: #3582EE;
line-height: 80rpx;
/* text-align: center; */
display: flex;
align-items: center;
justify-content: center;
background: #FFFFFF;
border-radius: 12rpx;
border: 2rpx solid #3582EE;
}
.list {
transition: all .25s;
}
.addBtn .addIcon {
width: 16rpx;
height: 16rpx;
margin-right: 10rpx;
}
.btns {
position: fixed;
/* position: absolute; */
width: 100%;
left: 0;
bottom: 0;
min-height: 100rpx;
background: #FFFFFF;
box-sizing: border-box;
z-index: 99;
transition: none !important;
/* padding-bottom: 34px !important; */
padding-bottom: 10rpx;
}
.btn-box .tips {
display: flex;
justify-content: center;
align-items: center;
/* height: 75rpx; */
font-weight: 600;
background-color: #EFF5FE;
}
.tips {
box-sizing: border-box;
padding: 16rpx;
background-color: #F8F9F9;
color: #999999;
text-align: center;
width: 100%;
font-size: 24rpx;
}
.tips .contentText {
margin-left: 20rpx;
margin-right: auto;
display: flex;
font-weight: 500;
flex-direction: column;
justify-content: space-between;
}
.btns .confirm {
box-sizing: border-box;
/* width: 100%; */
color: #fff;
height: 80rpx;
background-color: #3582EE;
border-radius: 12rpx;
margin: 0 32rpx;
}
.touch-item {
/* margin: 0 20rpx; */
box-sizing: border-box;
position: relative;
display: flex;
justify-content: space-between;
/* width: calc(100% - 40rpx); */
overflow: hidden;
margin: 20rpx;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
border-radius: 16rpx;
/* border-bottom: .5px solid #d8d4d4; */
}
.del {
width: 72px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
background-color: #f1554c;
-webkit-transform: translateX(90px);
transform: translateX(90px);
-webkit-transition: all 0.4s;
transition: all 0.4s;
font-size: 28rpx;
}
.confirm {
/* 定义动画 */
/* background-color: chocolate; */
animation-duration: .5s;
/* 动画时间 */
animation-name: fadein;
/* 关键帧名字 */
/* -webkit-transform: translateX(90px);
transform: translateX(90px);
-webkit-transition: all 0.4s;
transition: all 0.4s;
width: 90px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
font-size: 28rpx; */
}
/* 定义关键帧 */
@keyframes fadein {
0% {
opacity: 0;
transform: translateX(72px);
}
100% {
opacity: 1;
transform: translateX(0px);
}
}
.touch-move-active .content,
.touch-move-active .del {
-webkit-transform: translateX(0);
transform: translateX(0);
}
\ No newline at end of file
......@@ -54,7 +54,14 @@ Page({
goodsList: [],
goodsData: [],
userInfo: {},
requiredList: []
requiredList: [],
isErrorOrder: false,
showTips: false
},
closeTips() {
this.setData({
showTips: false
})
},
reWrite(type, data) {
// console.log(type)
......@@ -244,9 +251,49 @@ Page({
})
this.setGoodsTotal(goodsList)
},
setCorrectionOrder(orderObj) {
api.correctionOrder(orderObj).then(res => {
wx.hideLoading()
// console.log(orderObj, res)
let { code, data, message } = res
if (code == 0) {
// if (save) {
// wx.showModal({
// title: '温馨提示',
// content: '保存成功',
// showCancel: false,
// confirmText: '知道了',
// confirmColor: '#3582EE',
// success(_res_) {
// if (_res_.confirm) {
// wx.$router.back(page => {
// page.search && page.search()
// })
// }
// }
// })
// } else {
wx.disableAlertBeforeUnload && wx.disableAlertBeforeUnload() //关闭小程序页面返回询问对话框
wx.$refresh = true
// 跳转施工确认页
wx.$router.redirectTo('orderDetail', data)
// wx.$router.redirectTo('confirmOrder', data)
// 暂时保留跳转页面
// wx.$router.go('confirmOrder', data)
// }
} else {
this.showToast(message)
}
})
},
submit(i) {
let { save } = i.currentTarget.dataset
let { orderDisabled, goodsList, orderObj, scene, canOrder } = this.data
let { orderDisabled, goodsList, orderObj, scene, isErrorOrder } = this.data
// 如果是错单补录 禁用掉保存功能
if (isErrorOrder && save) return
// 判断商户配置财务规则
// if (!canOrder) {
// return this.showToast('未设置分润规则 请联系管理员')
......@@ -334,6 +381,12 @@ Page({
// return console.log(orderObj)
// return
this.showLoading('提交中...')
// 判断是不是 修改订单 是走另外接口逻辑
if (isErrorOrder) {
return this.setCorrectionOrder(orderObj)
}
api.createWithPay(orderObj).then(res => {
wx.hideLoading()
// console.log(orderObj, res)
......@@ -386,7 +439,7 @@ Page({
return false
},
setOrderObj(options) {
let { scene, userInfo } = this.data
let { scene, userInfo, isErrorOrder, showTips } = this.data
console.log('setOrderObj', options)
wx.$util.showLoading('加载中...')
let orderObj = {}
......@@ -435,10 +488,32 @@ Page({
}
if (!orderObj.customer.customerSex) orderObj.customer.customerSex = 1
if (!orderObj.customer.experienceFlag) orderObj.customer.experienceFlag = 'N'
if (orderObj.associatedOrderCode) {
wx.setNavigationBarTitle({
title: '修正订单'
})
isErrorOrder = true
showTips = true
// 默认添加离开弹框 提交成功后取消
wx.enableAlertBeforeUnload &&
wx.enableAlertBeforeUnload({
title: '提示',
message: '您需完成正确工单的信息录入',
success: function (res) {
console.log('成功:', res)
},
fail: function (err) {
console.log('失败:', err)
}
})
}
this.setData({
orderObj,
first: true,
flag: true
flag: true,
isErrorOrder,
showTips
})
this.getOrderBaseGoodsList(orderObj.merchantId)
},
......@@ -650,6 +725,7 @@ Page({
// debugger
// console.log(res)
// console.log()
if (res.scene) {
res.returnFun = true
this.setData(res)
......@@ -676,7 +752,6 @@ Page({
* 生命周期函数--监听页面隐藏
*/
onHide: function () {},
onUnload: () => {},
/**
* 生命周期函数--监听页面卸载
*/
......
<wxs src="index.wxs" module="filter" />
<block wx:if="{{flag}}">
<view class="main {{isFullSucreen?'isFullSucreen':''}}">
<view class="main {{isFullSucreen?'isFullSucreen':''}} {{showTips?'fullSucreen-tips':'' }}">
<view class="box">
<view class="userId">
<gl-cell
......@@ -263,6 +263,7 @@
border
label="支付方式"
valueAlign="right"
wx:if="{{!isErrorOrder}}"
labelWidth="152rpx">
<view class="payType-box">
<block wx:for="{{showPayList}}" wx:key="index">
......@@ -282,8 +283,22 @@
</view>
</view>
<view class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="save text-center" bindtap="submit" data-save>保存</view>
<view class="confirm text-center" bindtap="submit">提交工单</view>
<!-- wx:if="{{isErrorOrder}}" -->
<view class="tips" wx:if="{{showTips}}">
<image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText">
原订单录入信息有误,请重新提交正确的订单信息。
<!-- <view>支付订单号:{{outTradeNo}}</view>
<view>支付时间:{{accountDate}}</view> -->
</view>
<image class="closeIcon" bindtap="closeTips" src="../../images/closeIcon.png" />
</view>
<view class="btns-con">
<view class="save text-center {{isErrorOrder ?'disabled':''}}" bindtap="submit" data-save>
保存
</view>
<view class="confirm text-center" bindtap="submit">提交工单</view>
</view>
</view>
</block>
<merchant-seles
......@@ -320,9 +335,9 @@
bindconfirm="chooseGoods"
goodsData="{{goodsData}}"
chooseGoodsList="{{goodsList}}" />
<order-popup
<!-- <order-popup
orderType="{{remarkBox}}"
show="{{remarkBox}}"
qrCode="{{orderInfo.payOrder.outTradeNo}}"
price="{{orderInfo.total_price}}" />
price="{{orderInfo.total_price}}" /> -->
......@@ -12,6 +12,10 @@ page {
padding-bottom: 102px !important;
}
.isFullSucreen.fullSucreen-tips {
padding-bottom: 136px !important;
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
......@@ -215,7 +219,7 @@ page {
}
.btns {
position: fixed;
/* position: fixed;
left: 0;
width: 100%;
bottom: 0;
......@@ -227,10 +231,36 @@ page {
align-items: center;
justify-content: space-between;
font-size: 28rpx;
z-index: 99; */
position: fixed;
left: 0;
width: 100%;
bottom: 0;
min-height: 100rpx;
background: #FFFFFF;
box-sizing: border-box;
/* padding: 10rpx 32rpx; */
display: flex;
align-items: center;
justify-content: space-between;
font-size: 28rpx;
z-index: 99;
flex-direction: column;
}
.btns-con {
box-sizing: border-box;
display: flex;
padding: 10rpx 0;
}
.tipsIcon,
.closeIcon {
width: 32rpx;
height: 32rpx;
}
.btns view {
.btns .btns-con view {
border: 2rpx solid #0075F9;
border-radius: 12rpx;
height: 80rpx;
......@@ -240,10 +270,40 @@ page {
.btns .save {
width: 186rpx;
color: #3582EE;
margin-right: 20rpx;
}
.btns .confirm {
width: 480rpx;
color: #fff;
background-color: #3582EE;
}
.save.disabled {
border: 1px solid #DCDEE0;
color: #c0c0cc;
}
.btns .tips {
box-sizing: border-box;
display: flex;
justify-content: space-between;
/* align-items: center; */
padding: 20rpx;
font-weight: 500;
background: #EFF5FE;
height: 72rpx;
width: 100%;
color: #3582EE;
font-size: 24rpx;
}
.tips .contentText {
margin-left: 20rpx;
margin-right: auto;
display: flex;
font-weight: 500;
flex-direction: column;
justify-content: space-between;
}
\ No newline at end of file
......@@ -76,8 +76,9 @@ Page({
wx.hideTabBar()
},
jump(e) {
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 ,9 已撤销 , 10 已关闭 , 11 已失效
// constructionFlag 施工标识(Y:已施工;N||null:未施工)
// failureFlag 订单失效状态(Y:已失效,N:未失效)
// console.log(e.currentTarget.dataset)
// return
let { item, name } = e.currentTarget.dataset
......@@ -151,15 +152,9 @@ Page({
// list
// })
},
// 撤销该工单
repeal(orderCode) {
let _this = this
// console.log(e)
// let {
// item: { orderCode }
// } = e.currentTarget.dataset
// console.log(orderCode)
// return
api
.revokeOrder({
orderCode
......
......@@ -130,6 +130,11 @@ module.exports = {
text: '已评价',
color: '#3582EE',
background: '#F3F7FC'
},
11: {
text: '已失效',
color: '#999',
background: ' #F0F0F0'
}
},
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销
......@@ -161,6 +166,10 @@ module.exports = {
{
name: '已关闭',
value: [10]
},
{
name: '已失效',
value: [11]
}
],
grassInfo: {},
......
......@@ -302,9 +302,9 @@
bindconfirm="chooseGoods"
goodsData="{{goodsData}}"
chooseGoodsList="{{goodsList}}" /> -->
<order-popup
<!-- <order-popup
orderType="{{remarkBox}}"
show="{{remarkBox}}"
qrCode="{{orderInfo.payOrder.outTradeNo}}"
price="{{orderInfo.total_price}}" />
price="{{orderInfo.total_price}}" /> -->
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!