Commit bea86824 by 张立顺

feat 权益战败功能改造

1 parent 935ecbe0
...@@ -130,6 +130,7 @@ ...@@ -130,6 +130,7 @@
"pages/trainingMaterials/trainingMaterials", "pages/trainingMaterials/trainingMaterials",
"pages/trainingMaterials/pages/playVideo/index", "pages/trainingMaterials/pages/playVideo/index",
"pages/createDeafeatOrder/createDeafeatOrder", "pages/createDeafeatOrder/createDeafeatOrder",
"pages/createDeafeatOrderAi/createDeafeatOrderAi",
"pages/aiExcercise/ai/ai", "pages/aiExcercise/ai/ai",
"pages/aiExcercise/detail/detail", "pages/aiExcercise/detail/detail",
"pages/aiExcercise/list/list", "pages/aiExcercise/list/list",
...@@ -142,7 +143,8 @@ ...@@ -142,7 +143,8 @@
"pages/aiCheck/scene/scene", "pages/aiCheck/scene/scene",
"pages/aiCheck/start/start", "pages/aiCheck/start/start",
"pages/orderList/orderList", "pages/orderList/orderList",
"pages/equityQualityOrderList/equityQualityOrderList" "pages/equityQualityOrderList/equityQualityOrderList",
"pages/createDeafeatOrderBefore/createDeafeatOrderBefore"
] ]
}, },
{ {
...@@ -209,15 +211,11 @@ ...@@ -209,15 +211,11 @@
"preloadRule": { "preloadRule": {
"pages/tabWorkOrder/pages/index/index": { "pages/tabWorkOrder/pages/index/index": {
"network": "all", "network": "all",
"packages": [ "packages": ["tabWorkOrder"]
"tabWorkOrder"
]
}, },
"tabIndex/pages/index/index": { "tabIndex/pages/index/index": {
"network": "all", "network": "all",
"packages": [ "packages": ["tabWorkOrder"]
"tabWorkOrder"
]
} }
}, },
"resolveAlias": { "resolveAlias": {
......
...@@ -10,27 +10,13 @@ ...@@ -10,27 +10,13 @@
<block wx:if="{{orderType == 2}}"> <block wx:if="{{orderType == 2}}">
<view class="input-item"> <view class="input-item">
<view class="input-box"> <view class="input-box">
<input <input type="text" class="input" bindinput="input" value="{{outTradeNo}}" placeholder="输入交易流水号" placeholder-class="outTradeNo_placeholder" maxlength="150" />
type="text"
class="input"
bindinput="input"
value="{{outTradeNo}}"
placeholder="输入交易流水号"
placeholder-class="outTradeNo_placeholder"
maxlength="150" />
</view> </view>
</view> </view>
<view class="upload-content"> <view class="upload-content">
<view class="title-text">上传图片</view> <view class="title-text">上传图片</view>
<view class="upload-box"> <view class="upload-box">
<van-uploader <van-uploader file-list="{{ payVoucherList }}" max-count="9" deletable preview-size="var(--fontSize160)" bind:after-read="upLoad" bind:delete="deletePayVoucher">
file-list="{{ payVoucherList }}"
max-count="9"
deletable
preview-size="var(--fontSize160)"
bind:after-read="upLoad"
bind:delete="deletePayVoucher"
>
</van-uploader> </van-uploader>
</view> </view>
</view> </view>
...@@ -86,21 +72,11 @@ ...@@ -86,21 +72,11 @@
<block wx:else> <block wx:else>
<view class="title">车主拒升理由</view> <view class="title">车主拒升理由</view>
<view class="textarea"> <view class="textarea">
<gl-textarea <gl-textarea focus="{{focus}}" value="{{textareaValue}}" bindinput="blur" bindblur="blur" maxlength="100" placeholder="请输入内容" />
focus="{{focus}}"
value="{{textareaValue}}"
bindinput="blur"
bindblur="blur"
maxlength="100"
placeholder="请输入内容" />
</view> </view>
<view class="shortcut-list"> <view class="shortcut-list">
<block wx:for="{{shortcutList}}" wx:key="index"> <block wx:for="{{shortcutList}}" wx:key="index">
<view <view class="shortcut" bindtap="chooseShortcut" data-item="{{item}}" data-index="{{index}}">
class="shortcut"
bindtap="chooseShortcut"
data-item="{{item}}"
data-index="{{index}}">
{{item.confValue}} {{item.confValue}}
</view> </view>
</block> </block>
...@@ -110,4 +86,3 @@ ...@@ -110,4 +86,3 @@
<!-- 不升级 end --> <!-- 不升级 end -->
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -212,4 +212,8 @@ module.exports = { ...@@ -212,4 +212,8 @@ module.exports = {
orderSettingList(data) { orderSettingList(data) {
return api.post('dj.api.smartcarlife.order.field.setting.list', data) return api.post('dj.api.smartcarlife.order.field.setting.list', data)
}, },
// 攻防明细
defencedetail(data) {
return api.post("dj.api.smartcarlife.app.inspection.defence.detail", data);
}
} }
...@@ -249,5 +249,6 @@ selectrecmerchantList(data) { ...@@ -249,5 +249,6 @@ selectrecmerchantList(data) {
pageSize: 10, pageSize: 10,
...params ...params
}) })
} },
}; };
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
</view> </view>
<!-- <view class="tipsCon"> --> <!-- <view class="tipsCon"> -->
<block wx:if="{{ !staffUuid }}"> <block wx:if="{{ !staffUuid }}">
<view wx:if="{{ (item.orderStatus == '3' && item.equityOrderStatus == '0') || (item.orderStatus == '5' && item.equityOrderStatus == '0') }}" class="orange-txt tipsCon"> <view wx:if="{{ (item.orderStatus == '3' && item.equityOrderStatus == '0' && item.equityGoodsFlag == '1' ) || (item.orderStatus == '5' && item.equityOrderStatus == '0') }}" class="orange-txt tipsCon">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image> <image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,未录入权益合同 订单已支付,未录入权益合同
</view> </view>
......
...@@ -89,6 +89,7 @@ Page({ ...@@ -89,6 +89,7 @@ Page({
this.setTimeList() this.setTimeList()
this.handlerUserInfo() this.handlerUserInfo()
this.getGoodsProduct() this.getGoodsProduct()
}, },
onShow: function () { }, onShow: function () { },
......
{
"usingComponents": {
"merchant-seles": "/components/Merchant-Seles/Merchant-Seles",
"customerInfo": "/components/CustomerInfo/CustomerInfo",
"van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index"
},
"navigationBarTitleText":"战败下单"
}
\ No newline at end of file \ No newline at end of file
/* tabWorkOrder/pages/defeatOrder/defeatOrder.wxss */
page {
background-color: #F7F8FA;
transition: none !important;
}
.main {
padding: 0 0 var(--fontSize136);
}
.createData {
margin: var(--fontSize20);
background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 #0000001a;
border-radius: var(--fontSize16);
box-sizing: border-box;
width: calc(100% - var(--fontSize40));
height: var(--fontSize120);
background-color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 var(--fontSize40);
}
.label {
font-size: var(--fontSize28);
font-weight: 500;
color: #292D33;
}
.calendarItem {
/* width: var(--fontSize300); */
background: #F2F3F5;
border: none !important;
}
.solidArrow {
width: var(--fontSize40);
height: var(--fontSize40);
margin-left: var(--fontSize10);
margin-top: var(--fontSize5);
}
.dateNum {
color: #292D33;
padding: var(--fontSize12) var(--fontSize24);
border-radius: var(--fontSize8);
border: 1px solid #DEE0E3;
font-size: var(--fontSize26);
font-weight: 500;
}
.wrapper {
padding: 0 var(--fontSize20);
}
.cell {
overflow: hidden;
box-shadow: 0 var(--fontSize6) var(--fontSize16) 0 #cdcdd159;
border-radius: var(--fontSize16);
}
.between {
display: flex;
align-items: center;
justify-content: flex-end;
}
.between .start {
max-width: 70%;
}
.two-cell {
margin-top: var(--fontSize20);
}
.input {
text-align: right;
font-size: var(--fontSize28);
height: 100%;
}
.placeholder-class {
color: #BEC1C7;
}
.cell-textarea {
margin-top: var(--fontSize20);
background: #fff;
padding: var(--fontSize40);
/* height: var(--fontSize476); */
}
.inner {
width: 100%;
height: var(--fontSize172);
border: var(--fontSize2) solid #EFF0F2;
border-radius: var(--fontSize12);
margin-top: var(--fontSize24);
box-sizing: border-box;
padding: var(--fontSize20) var(--fontSize24);
position: relative;
}
.cus-textarea {
height: 100%;
width: 100%;
font-size: var(--fontSize28);
}
.textarea-placeholder {
font-weight: 400;
font-size: var(--fontSize28);
color: #BEC1C7;
}
.select-content {
position: relative;
margin-top: var(--fontSize24);
.tips {
position: relative;
text-align: center;
margin-bottom: var(--fontSize20);
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: var(--fontSize24);
color: #BEC1C7;
&::before {
position: absolute;
content: '';
display: inline-block;
width: var(--fontSize80);
height: var(--fontSize2);
background-color: #EFF0F2;
// left: var(--fontSize6);
left: 15%;
top: 50%;
transform: translateY(-50%);
}
&::after {
position: absolute;
content: '';
display: inline-block;
width: var(--fontSize80);
height: var(--fontSize2);
background-color: #EFF0F2;
// right: var(--fontSize6);
right: 15%;
top: 50%;
transform: translateY(-50%);
}
}
}
// .select-content
.select-content .reason {
display: inline-block;
width: fit-content;
padding: var(--fontSize12) var(--fontSize24);
background: #F7F7F7;
border-radius: var(--fontSize4);
font-weight: 400;
font-size: var(--fontSize24);
margin-right: var(--fontSize16);
margin-bottom: var(--fontSize16);
color: #5A5E66;
border: var(--fontSize2) solid #fff;
}
.select-content .active {
background: #347bff1a;
border: var(--fontSize2) solid #347BFF;
color: #347BFF;
}
.maxCount {
position: absolute;
right: var(--fontSize24);
bottom: var(--fontSize20);
font-weight: 400;
font-size: var(--fontSize24);
color: #BEC1C7;
}
.btn-group {
margin-top: var(--fontSize40);
box-sizing: border-box;
padding: 0 var(--fontSize44)
}
.btn-group .btn-class {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
height: var(--fontSize88);
background: #FFFFFF;
border-radius: var(--fontSize12);
font-weight: 400;
font-size: var(--fontSize32);
color: #347BFF;
}
.btn-group .primary {
background: #347BFF;
color: #fff;
margin-bottom: var(--fontSize20);
}
.sucesssubmit {
width: 224rpx;
height: 224rpx;
margin: auto;
}
.AImusic {
width: 80rpx;
height: 80rpx;
margin-right: 16rpx;
margin-left: 12rpx;
}
.userAvatar {
width: 40rpx;
height: 40rpx;
// margin-right: 16rpx;
}
.polish {
width: 32rpx;
height: 32rpx;
margin-right: 12rpx;
}
.centericon {
margin: auto;
}
.centericon {
position: fixed;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
}
.successBtn {
width: 622rpx;
position: absolute;
bottom: 100rpx;
left: 50%;
transform: translateX(-50%);
}
.submiticonOnly {
text-align: center;
margin: 62rpx auto 48rpx;
}
.tipsIcon {
box-sizing: border-box;
// width: 100%;
margin: auto 20rpx;
background: #FFFFFF;
box-shadow: 0 6rpx 16rpx 0 #cdcdd159;
border-radius: 16rpx;
padding-bottom: 32rpx;
.header {
// width: 95%;
display: flex;
align-items: center;
wwidth: 100%;
height: 72rpx;
background-color: #f0f7ff;
color: #347BFF;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 24rpx;
// line-height: 72prx;
}
.body {
box-sizing: border-box;
padding: 32rpx 88rpx 32rpx 32rpx;
.bodyTips {
display: flex;
align-items: center;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 24rpx;
color: #6C6C70;
margin-bottom: 8rpx;
}
.contentText {
box-sizing: border-box;
padding: 24rpx 20rpx;
width: 534rpx;
// height: 120rpx;
background: #F7F8FA;
border-radius: 0 16rpx 16rpx 16rpx;
margin-left: auto;
font-weight: 400;
font-size: 28rpx;
color: #333333;
}
}
.footer {
box-sizing: border-box;
width: 662rpx;
// height: 536rpx;
background: #F0F7FF;
border-radius: 16rpx;
padding: 24rpx;
margin: 0 auto;
.tips {
display: flex;
align-items: center;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28rpx;
color: #333333;
margin-bottom: 20rpx;
}
.recommendedScript {
background-color: #fff;
padding: 24rpx 28rpx;
font-weight: 400;
font-size: 28rpx;
color: #333333;
}
}
.landscape {
.btn-group .btn-class {
width: 60%;
margin: 0 auto var(--fontSize20);
}
}
}
\ No newline at end of file \ No newline at end of file
<view class="main ">
<block wx:if="{{ showSubmitPage }}">
<view class="createData">
<view class="label">战败时间</view>
<calendar id="calender" class="calendar" allowSameDay shortcut bindselect="rangeSelect" rangeAll dateType="single" calenderColor="#347BFF" vertical minDate="2020-10-01" maxDate="{{ dateObj.maxDate }}" isComponents>
<view class="calendarItem text-center dateNum">
{{dateObj.todayShow}}
<image class="solidArrow" src="/tabIndex/images/arrSolid.png" />
</view>
</calendar>
</view>
<view class="wrapper">
<view class="cell">
<gl-cell border valueAlign="right" label="推荐人员" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" data-show-name="selesBox" placeholder="点击选择">
<view class="between">
<view class="start text-hide {{ orderObj.employeeName?'':'placeholder-class' }}">{{orderObj.employeeName || '请选择'}}</view>
</view>
</gl-cell>
</view>
<view class="cell two-cell">
<gl-cell border valueAlign="right" label="车主姓名" titleBtn="客户档案" bindtitleClick="showCustomPop" data-index="{{ ind }}" requiredAfter labelWidth="var(--fontSize390)" required>
<input placeholder="点击输入" class="input" placeholder-class="placeholder-class" maxlength="16" value="{{ customer.customerName }}" bindinput="input" data-index="{{ ind }}" data-name="customer.customerName" always-embed></input>
</gl-cell>
<gl-cell border valueAlign="right" label="手机号" requiredAfter labelWidth="var(--fontSize140)" required>
<input placeholder="点击输入" class="input" type="number" maxlength="11" placeholder-class="placeholder-class" value="{{ customer.customerPhone }}" bindinput="input" data-index="{{ ind }}" data-name="customer.customerPhone" always-embed></input>
</gl-cell>
<gl-cell border valueAlign="right" label="客户来源" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" data-show-name="salesTypeShow" placeholder="点击选择">
<view class="between">
<view class="start text-hide">{{customer.salesType?'售后':'售前'}}</view>
</view>
</gl-cell>
</view>
<view class="cell cell-textarea">
<view class="label">战败原因</view>
<view class="inner">
<textarea class="cus-textarea" bindinput="intReason" value="{{ deafeatReason }}" placeholder="请输入" placeholder-class="textarea-placeholder" maxlength="100"></textarea>
<text class="maxCount">{{deafeatReason.length || 0}}/30</text>
</view>
<view class="select-content">
<view class="tips">基于大模型的战败分析</view>
<block wx:for="{{ reasonList }}" wx:key="index">
<view bind:tap="toSelectReason" data-item="{{ item }}" data-index="{{ index }}" class="reason">{{item.name}}</view>
</block>
</view>
</view>
<view class="btn-group">
<view bind:tap="toSumbit" class="btn-class primary">立即提交</view>
</view>
</view>
</block>
<block wx:else>
<block wx:if="{{ showAiStatus }}">
<view class="submiticon submiticonOnly {{ deviceOrientation == 'landscape' ? 'landscape':'' }}">
<gl-image class="sucesssubmit" webp src="/miniProgram/sucesssubmit.png"></gl-image>
</view>
<view class="tipsIcon">
<view class="header">
<gl-image class="AImusic" webp src="/miniProgram/AImusic.png"></gl-image>
再遇到类似的场景,可以试试这么说~
</view>
<block wx:for="{{ defencedetail.detailList }}">
<view class="body">
<view class="bodyTips" wx:if="{{ index == 0 }}">
<gl-image class="userAvatar" webp src="/miniProgram/userAvatar.png"></gl-image>
[客户类型] {{defencedetail.customerType}}
</view>
<view class="contentText">{{item.standardQuestion}}</view>
</view>
<view class="footer">
<view class="tips">
<gl-image class="polish" webp src="/miniProgram/polish.png"></gl-image>
推荐话术
</view>
<view class="recommendedScript">{{item.standardAnswer}}</view>
</view>
</block>
</view>
<view class="btn-group">
<view bind:tap="goEquityPage" class="btn-class primary">返回首页</view>
</view>
</block>
<block wx:else>
<view class="submiticon">
<gl-image class="sucesssubmit centericon" webp src="/miniProgram/sucesssubmit.png"></gl-image>
</view>
<view class="btn-group successBtn">
<view bind:tap="goEquityPage" class="btn-class primary">返回首页</view>
</view>
</block>
</block>
</view>
<merchant-seles show="{{ selesBox }}" title="选择合作门店" sub-title="选择销售顾问" orderObj="{{ orderObj }}" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="1" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" />
<van-popup show="{{ salesTypeShow }}" position="bottom" bind:close="onCloseSaleType">
<van-picker show-toolbar columns="{{ saleTypesList }}" value-key="name" bind:cancel="onCloseSaleType" bind:confirm="onChangeSaleType" />
</van-popup>
\ No newline at end of file \ No newline at end of file
// packageEquity/pages/beforeCreate/components/recordList/recordList.js
import carLifeApi from "../../../../carEquityApi";
Component({
/**
* 组件的属性列表
*/
properties: {
showPopup: {
type: Boolean,
value: false,
observer(n) {
if (n) this.getReceptionList();
},
},
deviceOrientation: String,
mode: Number,
},
/**
* 组件的初始数据
*/
data: {
itemObject: [
{
label: "联系方式",
key: "phoneNumber",
},
{
label: "销售姓名",
key: "salesName",
},
{
label: "开始接待",
key: "startTime",
},
],
},
/**
* 组件的方法列表
*/
methods: {
async getReceptionList() {
// const { bussinessType } = this.data
const today = new Date().format("yyyy-MM-dd"),
userInfo = wx.$util.getUserInfo(),
{ shopMerchantId } = userInfo,
{ data } = await carLifeApi.getReceptionList({
merchantId: shopMerchantId,
pageNum: 1,
startTime: `2024-01-23 00:00:00`,
// endTime: `2024-04-23 23:59:59`
// startTime: `${today} 00:00:00`,
endTime: `${today} 23:59:59`,
bussinessType: 1, //"业务类型 1.延保 2.轻改"
});
let list = data?.list || [];
list?.length &&
list.map((e) => {
e.startTime = new Date(e.receptionStartTime).format(
"yyyy-MM-dd hh:mm:ss"
);
});
this.setData({
list,
flag: true,
});
},
hidePopup() {
this.setData({
showPopup: false,
});
},
jump(e) {
console.log(e);
const { item } = e.currentTarget.dataset,
{ mode } = this.data;
item.salesUuid = item.salesUuid;
item.salesName = item.salesName;
item.customerPhone = item.phoneNumber;
if (item.orderFlag)
return wx.$util.showToast("您已为当前客户提单,请进入订单列表查看。");
this.hidePopup();
wx.$router.go("createDeafeatOrderAi", { detailInfo: item });
},
},
});
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/beforeCreate/components/recordList/recordList.wxss */
/* tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.wxss */
.popup {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 998;
.popup-bg {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgba(0, 0, 0, .6);
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
.popup-content {
position: absolute;
left: 0;
width: 100%;
background: #FFFFFF;
border-radius: var(--fontSize20) var(--fontSize20) 0 0;
animation: show-popup .5s forwards;
box-sizing: border-box;
height: 80%;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
.popup-title {
height: var(--fontSize96);
font-size: var(--fontSize32);
border-bottom: var(--fontSize2) solid #EBEDF0;
font-weight: 500;
color: #1A1A1A;
box-sizing: border-box;
position: relative;
.close {
position: absolute;
right: 0;
top: 0;
height: 100%;
width: var(--fontSize100);
&-image {
width: var(--fontSize24);
height: var(--fontSize24);
}
}
}
.popup-sub-title {
padding: var(--fontSize24) 0;
text-align: center;
font-size: var(--fontSize24);
color: #999EA8;
}
.popup-slot {
height: calc(100% - var(--fontSize180));
padding: 0 var(--fontSize40) var(--fontSize32);
display: flex;
flex-wrap: wrap;
gap: var(--fontSize24);
overflow-y: scroll;
box-sizing: border-box;
.item {
width: 100%;
// width: calc(50% - var(--fontSize24));
height: var(--fontSize332);
background: #F7F8FA;
border-radius: var(--fontSize8);
box-sizing: border-box;
padding: var(--fontSize24);
position: relative;
border: var(--fontSize2) solid #F7F8FA;
.status {
position: absolute;
right: var(--fontSize24);
top: var(--fontSize22);
width: var(--fontSize88);
height: var(--fontSize44);
background: #FDECE9;
border-radius: var(--fontSize4);
font-weight: 500;
font-size: var(--fontSize24);
color: #F24724;
}
.true {
background: #EAF9F1;
color: #35C376;
}
.name {
font-weight: 500;
font-size: var(--fontSize28);
color: #292D33;
margin-bottom: var(--fontSize40);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 70%;
}
.goods-name {
font-size: var(--fontSize28);
color: #347BFF;
margin-bottom: var(--fontSize24);
}
.info {
font-size: var(--fontSize24);
color: #999EA8;
display: flex;
align-items: center;
margin-bottom: var(--fontSize16);
.value {
color: #292D33;
margin-left: var(--fontSize24);
}
}
}
.hover-class {
background: #2c66f71a;
border: var(--fontSize2) solid #2C66F7;
}
}
.nothing {
width: 100%;
margin-top: var(--fontSize112);
font-size: var(--fontSize28);
color: #999999;
display: flex;
flex-direction: column;
align-items: center;
.icon {
width: var(--fontSize676);
height: var(--fontSize284);
margin-bottom: var(--fontSize24);
}
}
}
.landscape {
.popup-title {
height: var(--fontSize62);
font-size: var(--fontSize18);
.close {
width: var(--fontSize65);
&-image {
width: var(--fontSize16);
height: var(--fontSize16);
}
}
}
.popup-sub-title {
padding: var(--fontSize16) 0;
text-align: center;
font-size: var(--fontSize16);
color: #999EA8;
}
.popup-slot {
height: calc(100% - var(--fontSize117));
padding: 0 var(--fontSize26) var(--fontSize20);
gap: var(--fontSize16);
align-content: flex-start;
.item {
width: calc(25% - var(--fontSize12));
height: var(--fontSize215);
border-radius: var(--fontSize10);
padding: var(--fontSize16);
.status {
right: var(--fontSize16);
top: var(--fontSize14);
width: var(--fontSize57);
height: var(--fontSize29);
border-radius: var(--fontSize3);
font-size: var(--fontSize16);
}
.name {
font-size: var(--fontSize18);
margin-bottom: var(--fontSize26);
}
.goods-name {
font-size: var(--fontSize18);
margin-bottom: var(--fontSize12);
}
.info {
font-size: var(--fontSize16);
margin-bottom: var(--fontSize10);
.value {
margin-left: var(--fontSize16);
}
}
}
}
.nothing {
margin-top: var(--fontSize73);
font-size: var(--fontSize18);
.icon {
width: var(--fontSize338);
height: var(--fontSize142);
margin-bottom: var(--fontSize12);
}
}
}
@keyframes show-popup {
0% {
bottom: -100%;
}
100% {
bottom: 0;
}
}
\ No newline at end of file \ No newline at end of file
<block wx:if="{{showPopup}}">
<view class="popup {{deviceOrientation == 'landscape'?'landscape':''}}" >
<view class="popup-bg" bindtap="hidePopup"></view>
<view class="popup-content">
<view class="popup-title text-center">
接待客户列表
<view class="close text-center" bindtap="hidePopup">
<image src="/components/images/close.png" class='close-image' />
</view>
</view>
<view class="popup-sub-title">选中对应接待记录,可实现便捷提单</view>
<view class="popup-slot">
<block wx:if="{{flag}}">
<block wx:if="{{list.length}}">
<block wx:for="{{list}}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{item}}" hover-class="hover-class">
<view class="status text-center {{item.orderFlag}}">{{item.orderFlag?'已提单':'未提单'}}</view>
<view class="name">
{{item.customerName}}
</view>
<view class="goods-name">{{item.carModel}}</view>
<block wx:for="{{itemObject}}" wx:key="ind" wx-for-index="ind" wx:for-item="k">
<view class="info flex">
<view class="label">{{k.label}}</view>
<view class="value">{{item[k.key] || '-'}}</view>
</view>
</block>
</view>
</block>
</block>
<block wx:else>
<view class="nothing">
<view class="icon">
<gl-image src="/equity/nothing.webp" webp></gl-image>
</view>
暂无接待记录
</view>
</block>
</block>
</view>
</view>
</view>
</block>
\ No newline at end of file \ No newline at end of file
// packageEquity/pages/beforeCreate/beforeCreate.js
Page({
/**
* 页面的初始数据
*/
data: {},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.$router.getData((res) => {
this.setData(res);
});
this.getSystemInfo();
},
getSystemInfo() {
let _this = this;
wx.getRendererUserAgent({
success(res) {
console.log(res);
let isPad = /iPad|Android.*Tablet|Kindle|Silk/i.test(res.userAgent);
_this.setData({
isPad,
});
},
});
wx.getSystemInfo({
success(res) {
console.log(res);
const deviceOrientation = res.deviceOrientation;
_this.setData({
deviceOrientation,
});
},
});
},
onResize(e) {
console.log(e);
this.setData({
deviceOrientation: e.deviceOrientation,
});
},
jump() {
const { mode } = this.data;
wx.$router.go(
"packageEquity.createDeafeatOrder"
// mode ? "createOrderCarQuotationSimple" : "createOrderCarQuotation"
);
},
open() {
const { isPad } = this.data;
if (!isPad)
// return wx.$util.showToast("为保证使用体验,快来工作平板上使用该功能吧");
this.setData({
showPopup: true,
});
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() { },
/**
* 生命周期函数--监听页面显示
*/
onShow() { },
/**
* 生命周期函数--监听页面隐藏
*/
onHide() { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload() { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() { },
/**
* 用户点击右上角分享
*/
onShareAppMessage() { },
});
{
"usingComponents": {
"record-list":"./components/recordList/recordList"
},
"navigationBarTitleText": "新建工单"
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/beforeCreate/beforeCreate.wxss */
.layout {
padding-top: var(--fontSize24);
.item {
width: calc(670 / 750 * 100%);
height: var(--fontSize292);
margin: 0 auto var(--fontSize24);
border-radius: var(--fontSize16);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/default-bg.png');
background-size: 100%;
display: flex;
flex-direction: column;
justify-content: center;
box-sizing: border-box;
padding-left: var(--fontSize64);
position: relative;
.title {
margin-bottom: var(--fontSize20);
font-weight: 600;
font-size: var(--fontSize36);
color: #292D33;
display: flex;
align-items: center;
.recommend {
width: var(--fontSize96);
height: var(--fontSize48);
margin-left: var(--fontSize12);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/recommend.png');
background-size: 100%;
background-repeat: no-repeat;
}
}
.text {
font-size: var(--fontSize32);
color: #757980;
}
.icon {
width: var(--fontSize220);
height: var(--fontSize220);
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/default-icon.png');
background-size: 100%;
}
}
.quick {
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/quick-bg.png');
.icon {
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/quick-icon.png');
}
}
}
.isPad {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
padding-top: 0;
.item {
width: var(--fontSize546);
height: var(--fontSize260);
margin: 0 var(--fontSize8);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/default-bg-hd.png');
padding-left: var(--fontSize42);
transform: translateY(-20%);
.title {
font-size: var(--fontSize32);
margin-bottom: var(--fontSize16);
.recommend {
width: var(--fontSize62);
height: var(--fontSize32);
margin-left: var(--fontSize8);
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/recommend-hd.png');
}
}
.text {
font-size: var(--fontSize20);
}
.icon {
width: var(--fontSize143);
height: var(--fontSize143);
right: var(--fontSize42);
}
}
.quick {
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/quick-bg-hd.png');
}
}
\ No newline at end of file \ No newline at end of file
<view class="layout {{ deviceOrientation == 'landscape' && isPad ? 'isPad':'' }}">
<view class="item quick" bindtap="open">
<view class="title">
快速录入战败工单
<view class="recommend"></view>
</view>
<view class="text">基于今日APP的接待记录</view>
<view class="icon"></view>
</view>
<view class="item" bindtap="jump">
<view class="title">创建战败工单</view>
<view class="text">空白工单</view>
<view class="icon"></view>
</view>
</view>
<record-list model:showPopup="{{ showPopup }}" deviceOrientation="{{ deviceOrientation }}" mode="{{ mode }}"></record-list>
\ No newline at end of file \ No newline at end of file
...@@ -25,6 +25,7 @@ Page({ ...@@ -25,6 +25,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
returnFun: true,
scanIcon: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/ocr_icon.png', scanIcon: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/ocr_icon.png',
selectIcon: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/selectIncon.webp', selectIcon: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/selectIncon.webp',
name: 'createdOrder', name: 'createdOrder',
...@@ -58,7 +59,7 @@ Page({ ...@@ -58,7 +59,7 @@ Page({
plateNumber: '', plateNumber: '',
customerSex: 1, customerSex: 1,
experienceFlag: 'Y', experienceFlag: 'Y',
salesType:0 salesType: 0
}, },
selectPayType: 2, selectPayType: 2,
remark: '', remark: '',
...@@ -81,13 +82,13 @@ Page({ ...@@ -81,13 +82,13 @@ Page({
sideRearGearArr: [], sideRearGearArr: [],
skylightArr: [], skylightArr: [],
baseConfigData: {}, baseConfigData: {},
showSource:false, showSource: false,
Sourcecolumns:[{ Sourcecolumns: [{
type:0, type: 0,
name:'售前' name: '售前'
},{ }, {
type:1, type: 1,
name:'售后' name: '售后'
}], }],
}, },
showCustomPop() { showCustomPop() {
...@@ -411,11 +412,11 @@ Page({ ...@@ -411,11 +412,11 @@ Page({
try { try {
m += s1.split('.')[1].length m += s1.split('.')[1].length
} catch (e) {} } catch (e) { }
try { try {
m += s2.split('.')[1].length m += s2.split('.')[1].length
} catch (e) {} } catch (e) { }
return (Number(s1.replace('.', '')) * Number(s2.replace('.', ''))) / Math.pow(10, m) return (Number(s1.replace('.', '')) * Number(s2.replace('.', ''))) / Math.pow(10, m)
}, },
...@@ -745,7 +746,7 @@ Page({ ...@@ -745,7 +746,7 @@ Page({
} }
if (!orderObj.customer.customerSex) orderObj.customer.customerSex = 1 if (!orderObj.customer.customerSex) orderObj.customer.customerSex = 1
if (!orderObj.customer.experienceFlag) orderObj.customer.experienceFlag = 'N' if (!orderObj.customer.experienceFlag) orderObj.customer.experienceFlag = 'N'
if(!orderObj.customer.salesType) orderObj.customer.salesType = 0 if (!orderObj.customer.salesType) orderObj.customer.salesType = 0
this.setData({ this.setData({
orderObj, orderObj,
first: true, first: true,
...@@ -964,7 +965,8 @@ Page({ ...@@ -964,7 +965,8 @@ Page({
goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName goodsName: e.upgradeGoodsAlias || e.upgradeGoodsName
} }
e.count = e.number e.count = e.number
e.id = e.upgradeGoodsId // e.id = e.upgradeGoodsId
e.merchantGoodsId = e.merchantGoodsId || e.id
chooseList.push(e) chooseList.push(e)
}) })
} }
...@@ -1067,7 +1069,7 @@ Page({ ...@@ -1067,7 +1069,7 @@ Page({
accountDate accountDate
}) })
}) })
.catch(err => {}) .catch(err => { })
} }
}, },
onRoute(options) { onRoute(options) {
...@@ -1093,48 +1095,48 @@ Page({ ...@@ -1093,48 +1095,48 @@ Page({
}) })
} }
}, },
toSelectCustomerSource(){ toSelectCustomerSource() {
this.setData({ this.setData({
showSource:true showSource: true
}) })
}, },
onChangeSource(e){ onChangeSource(e) {
console.log(e); console.log(e);
const {type} = e.detail.value const { type } = e.detail.value
this.setData({ this.setData({
showSource:false, showSource: false,
'orderObj.customer.salesType':type 'orderObj.customer.salesType': type
}) })
}, },
onCloseSource(){ onCloseSource() {
this.setData({ this.setData({
showSource:false showSource: false
}) })
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
onUnload: () => {}, onUnload: () => { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function () { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {} onShareAppMessage: function () { }
// 获取园区店支付配置 // 获取园区店支付配置
// getConfig() { // getConfig() {
......
...@@ -58,11 +58,12 @@ const domain_items = { ...@@ -58,11 +58,12 @@ const domain_items = {
ip: { ip: {
// dj: 'http://192.168.1.165:8292', // dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.104:8292', //叶立庆 // dj: 'http://192.168.1.104:8292', //叶立庆
dj: "http://192.168.1.169:8292", //蔡远明 // dj: "http://192.168.1.169:8292", //蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣 // dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.88:8292', //周杭 // dj: 'http://192.168.1.88:8292', //周杭
// dj: 'http://192.168.1.116:8292',//陈希 // dj: 'http://192.168.1.116:8292',//陈希
dj: 'http://192.168.1.60:8292',//周立明 // dj: 'http://192.168.1.60:8292',//周立明
dj: 'http://192.168.148.235:8292',// 熊正顺
// scrm: 'http://192.168.1.165:8292' // scrm: 'http://192.168.1.165:8292'
scrm: "https://scrm.dev.glsx.com.cn", scrm: "https://scrm.dev.glsx.com.cn",
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!