Commit d414deca by 前端

Merge branch 'develop' into 'master'

上线合并

See merge request !386
2 parents 69194ec7 0b1d5ed2
Showing 125 changed files with 2439 additions and 622 deletions
...@@ -348,5 +348,9 @@ module.exports = { ...@@ -348,5 +348,9 @@ module.exports = {
// 查询员工是否是导师 // 查询员工是否是导师
getStaffMentorFlag(data) { getStaffMentorFlag(data) {
return api.post('dj.api.smartcarlife.employee.isMentor', data) return api.post('dj.api.smartcarlife.employee.isMentor', data)
},
// 查询店铺配置
getShopMerchantPointConfig(data) {
return api.post("dj.api.smartcarlife.shopMerchantPointConfig.get", data);
} }
} }
...@@ -224,5 +224,6 @@ App({ ...@@ -224,5 +224,6 @@ App({
count: "", count: "",
versionData: null, versionData: null,
businessSchoolScene: "", businessSchoolScene: "",
ROUTE_QUERY: {},//路由携带的参数
}, },
}); });
...@@ -113,7 +113,8 @@ ...@@ -113,7 +113,8 @@
"pages/upgradeStaffDaily/upgradeStaffDaily", "pages/upgradeStaffDaily/upgradeStaffDaily",
"pages/supervisorDaily/supervisorDaily", "pages/supervisorDaily/supervisorDaily",
"pages/residentManage/residentManage", "pages/residentManage/residentManage",
"pages/mentorshipManage/mentorshipManage" "pages/mentorshipManage/mentorshipManage",
"pages/tabWorkOrderRelevance/index"
] ]
}, },
{ {
...@@ -122,6 +123,7 @@ ...@@ -122,6 +123,7 @@
"pages": [ "pages": [
"pages/carQuotation/signature/signature", "pages/carQuotation/signature/signature",
"pages/carQuotation/index/index", "pages/carQuotation/index/index",
"pages/carQuotation/relevanceOrderSelect/index",
"pages/carQuotation/fullSignture/fullSignture", "pages/carQuotation/fullSignture/fullSignture",
"pages/carQuotation/schemeConfirmation/schemeConfirmation", "pages/carQuotation/schemeConfirmation/schemeConfirmation",
"pages/carQuotation/CarQuotationDetail/CarQuotationDetail", "pages/carQuotation/CarQuotationDetail/CarQuotationDetail",
...@@ -244,11 +246,15 @@ ...@@ -244,11 +246,15 @@
"preloadRule": { "preloadRule": {
"pages/tabWorkOrder/pages/index/index": { "pages/tabWorkOrder/pages/index/index": {
"network": "all", "network": "all",
"packages": ["tabWorkOrder"] "packages": [
"tabWorkOrder"
]
}, },
"tabIndex/pages/index/index": { "tabIndex/pages/index/index": {
"network": "all", "network": "all",
"packages": ["tabWorkOrder"] "packages": [
"tabWorkOrder"
]
} }
}, },
"resolveAlias": { "resolveAlias": {
...@@ -262,4 +268,4 @@ ...@@ -262,4 +268,4 @@
}, },
"lazyCodeLoading": "requiredComponents", "lazyCodeLoading": "requiredComponents",
"resizable": true "resizable": true
} }
\ No newline at end of file \ No newline at end of file
...@@ -134,11 +134,8 @@ Component({ ...@@ -134,11 +134,8 @@ Component({
let { code, data, message } = res; let { code, data, message } = res;
if (code == 0) { if (code == 0) {
let thisPage = wx.$router.getPageInstance(); let thisPage = wx.$router.getPageInstance();
console.log("thisPage.data", thisPage.data);
let { orderObj } = thisPage.data; let { orderObj } = thisPage.data;
// console.log(orderObj)
console.log(data, "getCustomerCouponList");
let filterList = data.filter((item) => { let filterList = data.filter((item) => {
return ( return (
item.status != 1 || item.status != 1 ||
...@@ -282,7 +279,7 @@ Component({ ...@@ -282,7 +279,7 @@ Component({
return; return;
} }
} else { } else {
// console.log(returnFun) console.log(returnFun,'=========')
if (!returnFun) { if (!returnFun) {
if (orderObj.customerCouponId) { if (orderObj.customerCouponId) {
orderObj.merchantCouponId = orderObj.customerCouponId; orderObj.merchantCouponId = orderObj.customerCouponId;
......
<popup show="{{show}}" data-form="'btn'" bindconfirm="confirm" title="{{title == '选择合作门店' ? '销售顾问' : title == '选择园区店' ? '转化人员' : ''}}"> <popup show="{{show}}" data-form="'btn'" bindconfirm="confirm" title="{{type == 1 ? (pointsMultiRole == 'Y' ? '销售顾问/录单员' : '销售顾问') : type == 2 ? '转化人员' : type == 3 ? '交付专员' : ''}}">
<scroll-view class="seles-box" scroll-y enhanced="{{true}}" show-scrollbar="{{false}}"> <scroll-view class="seles-box" scroll-y enhanced="{{true}}" show-scrollbar="{{false}}">
<view class="box"> <view class="box">
<view class="sub-title">{{title}}</view> <view class="sub-title">{{title}}</view>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</block> </block>
<view class="sub-title">{{subTitle}} <view class="sub-title">{{subTitle}}
</view> </view>
<search-input styleValue=" border-bottom:none" wx:if="{{type == 1 }}" value="{{keyWord}}" bindsearch="search" placeholder="请输入" /> <search-input styleValue=" border-bottom:none" wx:if="{{type == 1 ||type==3}}" value="{{keyWord}}" bindsearch="search" placeholder="请输入" />
<view class="seles-list"> <view class="seles-list">
<block wx:for="{{selesList}}" wx:key="index"> <block wx:for="{{selesList}}" wx:key="index">
<view class="seles text-center {{item.active?'active':''}}" bindtap="changeSelesMan" data-index="{{index}}" data-item="{{item}}"> <view class="seles text-center {{item.active?'active':''}}" bindtap="changeSelesMan" data-index="{{index}}" data-item="{{item}}">
......
...@@ -14,7 +14,9 @@ Component({ ...@@ -14,7 +14,9 @@ Component({
} }
}, },
title: String, title: String,
orderInfo: Object orderInfo: Object,
outTradeNo: Array,
switchVlauerec: Number
}, },
/** /**
......
...@@ -137,6 +137,7 @@ ...@@ -137,6 +137,7 @@
padding: 0 var(--fontSize20); padding: 0 var(--fontSize20);
display: flex; display: flex;
align-items: center; align-items: center;
overflow: scroll;
} }
.order-popup-content .input-box .input { .order-popup-content .input-box .input {
......
...@@ -32,7 +32,7 @@ Component({ ...@@ -32,7 +32,7 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
noScroll() {}, noScroll() { },
hidePopup() { hidePopup() {
this.setData({ this.setData({
show: false show: false
......
<view class="popup" hidden="{{ !showPopup }}" catchtouchmove="noScroll"> <view class="popup" hidden="{{ !showPopup }}" catchtouchmove="noScroll">
<view class="popup-bg" bindtap="hidePopup"></view> <view class="popup-bg" bindtap="hidePopup"></view>
<view class="popup-content" style="height:{{ height }}"> <view class="popup-content" style="height:{{ height }}">
<block wx:if="{{ title }}"> <block wx:if="{{ title }}">
<view class="popup-title text-center">{{title}}</view> <view class="popup-title text-center">{{title}}</view>
</block> </block>
<view class="popup-slot popup-slot-class {{ isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':'' }}" style="{{slotStyle}}"> <view class="popup-slot popup-slot-class {{ isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':'' }}" style="{{slotStyle}}">
<slot></slot> <slot></slot>
</view> </view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}"> <view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="cancel btn text-center" bindtap="hidePopup">取消</view> <view class="cancel btn text-center" bind:tap="hidePopup">取消</view>
<view class="confirm btn text-center" bindtap="confirm">确认</view> <view class="confirm btn text-center" bind:tap="confirm">确认</view>
</view> </view>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -47,7 +47,9 @@ Component({ ...@@ -47,7 +47,9 @@ Component({
flag: { flag: {
type: Boolean, type: Boolean,
value: true value: true
} },
outTradeNo: Array,
switchVlauerec: Number
// merchantId: { // merchantId: {
// //是否根据4s店查询 // //是否根据4s店查询
// type: String, // type: String,
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
*/ */
// 配置预发布的小程序aapId // 配置预发布的小程序aapId
export const preReleaseAppId = "wx96c8f2a3e76907cb"; export const preReleaseAppId = 'wx96c8f2a3e76907cb'
// 小程序id // 小程序id
export const appId = "wx570d9331f9ace0bd"; export const appId = 'wx570d9331f9ace0bd'
/** /**
* 环境指定 * 环境指定
...@@ -16,101 +16,101 @@ export const appId = "wx570d9331f9ace0bd"; ...@@ -16,101 +16,101 @@ export const appId = "wx570d9331f9ace0bd";
* 2测试 * 2测试
* 3生产环境 * 3生产环境
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2; let index = 2;
const accountInfo = wx.getAccountInfoSync(); const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync(); const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion; const envName = accountInfo.miniProgram.envVersion;
//手动控制体验版环境的请求 true就依据下面index false就默认2 //手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = false; const manual = false
const release = false; const release = false
// 判断小程序环境 // 判断小程序环境
// develop:开发版 trial:体验版 release:正式版 // develop:开发版 trial:体验版 release:正式版
if (systemInfo.platform != "devtools") { if (systemInfo.platform != 'devtools') {
if (accountInfo.miniProgram.appId == preReleaseAppId) { if (accountInfo.miniProgram.appId == preReleaseAppId) {
index = 4; index = 4
} else { } else {
switch (envName) { switch (envName) {
case "develop": case 'develop':
break; break
case "trial": case 'trial':
index = manual ? index : 2; index = manual ? index : 2
break; break
case "release": case 'release':
index = release ? index : 3; index = release ? index : 3
break; break
default: default:
index = 3; index = 3
break; break
} }
} }
} }
export const env = envName; export const env = envName
export const envIndex = index; export const envIndex = index
const createQuotedUrl = { const createQuotedUrl = {
develop: `http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=`, develop: `http://192.168.1.178:9528/dj-scrm-wx-work-main-zhangls/#/equityPoster?id=`,
trial: `http://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`, trial: `http://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`,
release: `https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`, release: `https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`,
preRelease: `https://dj.beta.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`, preRelease: `https://dj.beta.glsx.com.cn/dj-car-boutique-work-wechat/#/equityPoster?id=`
}; }
const scoketURL = { const scoketURL = {
develop: `ws://192.168.3.191:7865`, develop: `ws://192.168.3.191:7865`,
trial: `ws://salesgpt.test.glsx.com.cn`, trial: `ws://salesgpt.test.glsx.com.cn`,
release: `wss://salesgpt.glsx.com.cn`, release: `wss://salesgpt.glsx.com.cn`,
preRelease: `ws://salesgpt.test.glsx.com.cn`, preRelease: `ws://salesgpt.test.glsx.com.cn`
}; }
const target = ["ip", "develop", "trial", "release", "preRelease"]; const target = ['ip', 'develop', 'trial', 'release', 'preRelease']
const ALIYUN_LIST = [ const ALIYUN_LIST = [
{ {
AKID: "LTAI5tJday6R4sng1jgrgH3N", //个人 AKID: 'LTAI5tJday6R4sng1jgrgH3N', //个人
AKKEY: "TWvwaQqwjxw7Tj7RlnTxyEXjOjQgFh", AKKEY: 'TWvwaQqwjxw7Tj7RlnTxyEXjOjQgFh',
APPKEY: "a1HmjrmQNv6yT8zb", APPKEY: 'a1HmjrmQNv6yT8zb',
URL: "wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1", URL: 'wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1'
}, },
{ {
AKID: "LTAI5tCSaRbXmWhF7cR6k626", //公司 AKID: 'LTAI5tCSaRbXmWhF7cR6k626', //公司
AKKEY: "jYHkk6rR6UoaZWikxDTuAUNwJycJwb", AKKEY: 'jYHkk6rR6UoaZWikxDTuAUNwJycJwb',
APPKEY: "Pm7teJgylXGPnPvO", APPKEY: 'Pm7teJgylXGPnPvO',
URL: "wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1", URL: 'wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1'
}, },
{ {
AKID: "LTAI5tCv6tv55tZVyV4uQKd6", //个人 AKID: 'LTAI5tCv6tv55tZVyV4uQKd6', //个人
AKKEY: "K3eko04dQ88KWltUEbY3A7h5twdjJk", AKKEY: 'K3eko04dQ88KWltUEbY3A7h5twdjJk',
APPKEY: "xKQ7JCyBsyNFjUdL", APPKEY: 'xKQ7JCyBsyNFjUdL',
URL: "wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1", URL: 'wss://nls-gateway-cn-shanghai.aliyuncs.com/ws/v1'
}, }
]; ]
export const ALIYUN = ALIYUN_LIST[1]; export const ALIYUN = ALIYUN_LIST[1]
// 报价单图片地址 // 报价单图片地址
export const quotedImgUrl = createQuotedUrl[target[envIndex]]; export const quotedImgUrl = createQuotedUrl[target[envIndex]]
export const scoket_url = scoketURL[target[envIndex]]; export const scoket_url = scoketURL[target[envIndex]]
// sentry Dsn 地址 // sentry Dsn 地址
export const dsnUrl = export const dsnUrl =
"https://ddaadc52bf8d4ecc92eca632683d456a@sentry.glsx.com.cn/23"; 'https://ddaadc52bf8d4ecc92eca632683d456a@sentry.glsx.com.cn/23'
// 图片基地址 // 图片基地址
export const ImgUrl = export const ImgUrl =
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat"; 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat'
export const ossConfig = { export const ossConfig = {
// 请求域名 格式:https://xxx.xxx.com // 请求域名 格式:https://xxx.xxx.com
HTTP_REQUEST_URL: "http://127.0.0.1:8000/api", HTTP_REQUEST_URL: 'http://127.0.0.1:8000/api',
// 阿里云oss域名 格式:https://xxx.oss-cn-xxx.aliyuncs.com // 阿里云oss域名 格式:https://xxx.oss-cn-xxx.aliyuncs.com
OSS_DOMAIN: "https://glsk-oss.oss-cn-shenzhen.aliyuncs.com", OSS_DOMAIN: 'https://glsk-oss.oss-cn-shenzhen.aliyuncs.com',
// 文件直传到阿里云oss时需用到 // 文件直传到阿里云oss时需用到
ACCESSKEYID: "LTAI5tCRcCUgd7bt1J7JY596", ACCESSKEYID: 'LTAI5tCRcCUgd7bt1J7JY596',
ACCESSKEYSECRET: "kJos9mgylkR5ztosnDt8Asrc3ulgqy", ACCESSKEYSECRET: 'kJos9mgylkR5ztosnDt8Asrc3ulgqy',
BUKET_NAME: "glsk-oss", BUKET_NAME: 'glsk-oss',
FOLDER: "quality/", FOLDER: 'quality/',
// 与后端约定的token字段名 // 与后端约定的token字段名
TOKEN_NAME: "glsk-oss", TOKEN_NAME: 'glsk-oss'
}; }
export const bytedanceConfig = { export const bytedanceConfig = {
url: "https://openspeech.bytedance.com/api/v1/tts", url: 'https://openspeech.bytedance.com/api/v1/tts'
}; }
...@@ -10,12 +10,18 @@ Component({ ...@@ -10,12 +10,18 @@ Component({
observer: function (n) { observer: function (n) {
console.log(n, 'show') console.log(n, 'show')
if (n) { if (n) {
let { switchVlauerec } = this.data
this.setData({
switchVlaue: switchVlauerec || 1
})
this.getWaitinputorder() this.getWaitinputorder()
} }
} }
}, },
title: String, title: String,
orderInfo: Object orderInfo: Object,
outTradeNo: Array,
switchVlauerec: Number
}, },
/** /**
...@@ -25,8 +31,9 @@ Component({ ...@@ -25,8 +31,9 @@ Component({
itemFormObj: [ itemFormObj: [
{ {
label: '交易参考号', label: '交易参考号',
prop: 'outTradeNo', // prop: 'outTradeNo',
copy:true prop: 'tradeNo',
copy: true
}, },
{ {
label: '支付时间', label: '支付时间',
...@@ -46,7 +53,10 @@ Component({ ...@@ -46,7 +53,10 @@ Component({
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
pages: '', pages: '',
orderNoList: [] orderNoList: [],
popupSlotStyle: 'height: calc(100% - var(--fontSize120));',
switchVlaue: 1,
tipsshow: false
// isAll: false // isAll: false
}, },
...@@ -54,14 +64,40 @@ Component({ ...@@ -54,14 +64,40 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
showTips() {
this.setData({
tipsshow: true
})
},
changeSwitch(e) {
let { value } = e.currentTarget.dataset
this.setData({
switchVlaue: value,
outTradeNo: [],
currentPage: 1 // 重新请求列表
})
this.getWaitinputorder()
},
// 选择交易流水号 // 选择交易流水号
changeOrderNo(e) { changeOrderNo(e) {
let { target } = e.currentTarget.dataset let { target } = e.currentTarget.dataset
let { orderNoList } = this.data let { orderNoList } = this.data
// 是要勾选的话判断不能超管9个
if (!target.active) {
let num = orderNoList.reduce((num, item) => {
if (item.active) {
num += 1
}
return num;
}, 1)
console.log(num);
if (num > 9) {
return wx.$util.showToast('勾选已超过限制')
}
}
orderNoList.map(i => { orderNoList.map(i => {
i.active = false
if (i.outTradeNo && i.outTradeNo == target.outTradeNo) { if (i.outTradeNo && i.outTradeNo == target.outTradeNo) {
i.active = true i.active = !i.active
} }
return i return i
}) })
...@@ -87,24 +123,30 @@ Component({ ...@@ -87,24 +123,30 @@ Component({
this.restPageNum() this.restPageNum()
}, },
getWaitinputorder() { getWaitinputorder() {
let { currentPage, pageSize, orderNoList, orderInfo } = this.data let { currentPage, pageSize, orderNoList, orderInfo, switchVlaue, outTradeNo } = this.data
// totalFee 根据商品众筹价筛选交易流水号 // totalFee 根据商品众筹价筛选交易流水号
// let totalFee = isAll ? '' : orderInfo.totalFee // let totalFee = isAll ? '' : orderInfo.totalFee
// totalFee // totalFee
// console.log(object); // console.log(object);
// debugger // debugger
api api
.waitinputorder({ currentPage, pageSize }) .waitinputorder({ currentPage, pageSize, inputOrderType: switchVlaue })
.then(result => { .then(result => {
console.log(result, 'result') console.log(result, 'result')
let { code, data } = result let { code, data } = result
if (code == 0) { if (code == 0) {
data.list.forEach(element => { data.list.forEach(element => {
element.accountDateValue = element.accountDate
element.accountDate = new Date(element.accountDate).format('yyyy-MM-dd hh:mm:ss') element.accountDate = new Date(element.accountDate).format('yyyy-MM-dd hh:mm:ss')
element.active = false // element.active = false
if (outTradeNo.includes(element.outTradeNo)) {
element.active = true
} else {
element.active = false
}
element.merchantName = element?.shopMerchantName ? element?.shopMerchantName : element.yqMerchantName element.merchantName = element?.shopMerchantName ? element?.shopMerchantName : element.yqMerchantName
}) })
// console.log(data.list) console.log(data.list)
this.setData({ this.setData({
orderNoList: currentPage == 1 ? data.list : [...orderNoList, ...data.list], orderNoList: currentPage == 1 ? data.list : [...orderNoList, ...data.list],
pages: data.pages, pages: data.pages,
...@@ -112,25 +154,21 @@ Component({ ...@@ -112,25 +154,21 @@ Component({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
confirm() { confirm() {
let { orderNoList, orderInfo } = this.data console.log(2222);
let arr = orderNoList?.find(v => v.active) || [] let { orderNoList, switchVlaue } = this.data
if (!arr) { let arr = orderNoList?.filter(v => v.active) || []
console.log(arr, 'arr');
if (!arr.length) {
return wx.showToast({ return wx.showToast({
title: '请选择交易参考号', title: '请选择交易参考号',
icon: 'none' icon: 'none'
}) })
} }
let { accountDate, outTradeNo, totalFee } = arr console.log(arr, 'arr');
this.triggerEvent('success', { accountDate, outTradeNo, totalFee }) this.triggerEvent('success', { arr, switchVlaue })
// let thisPage = wx.$router.getPageInstance()
// orderInfo.outTradeNo = arr[0]?.outTradeNo || ''
// thisPage.setData({
// orderInfo,
// orderNoPopup: false
// })
}, },
cancel() { cancel() {
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
...@@ -139,11 +177,11 @@ Component({ ...@@ -139,11 +177,11 @@ Component({
}) })
}, },
// 复制交易参考号 // 复制交易参考号
toCopyNumber(e){ toCopyNumber(e) {
const {ordernum} = e.currentTarget.dataset const { ordernum } = e.currentTarget.dataset
wx.setClipboardData({ wx.setClipboardData({
data: ordernum.toString(), data: ordernum.toString(),
success (res) { success(res) {
wx.$util.showToast('已复制') wx.$util.showToast('已复制')
} }
}) })
......
{ {
"component": true, "component": true,
"usingComponents": {} "usingComponents": {
"tipsPopup": "/components/tipsPopup/Popup"
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -13,30 +13,34 @@ ...@@ -13,30 +13,34 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.sub-title .all_btn{
.sub-title .all_btn {
position: absolute; position: absolute;
right: var(--fontSize20); right: var(--fontSize20);
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #9B9B9E; color: #9B9B9E;
font-weight: 400; font-weight: 400;
} }
.text-hide { .text-hide {
white-space:nowrap; white-space: nowrap;
overflow:hidden; overflow: hidden;
text-overflow:ellipsis; text-overflow: ellipsis;
} }
.text-center{
.text-center {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.order_no_box{ .order_no_box {
height: calc(100% - var(--fontSize20)); height: calc(100% - var(--fontSize70));
padding: var(--fontSize20) 0; // padding: var(--fontSize20) 0;
} }
.order_no_item{ .order_no_item {
position: relative;
/* height: var(--fontSize160); */ /* height: var(--fontSize160); */
box-sizing: border-box; box-sizing: border-box;
background: #F7F8FA; background: #F7F8FA;
...@@ -47,47 +51,134 @@ ...@@ -47,47 +51,134 @@
align-items: center; align-items: center;
margin-top: var(--fontSize20); margin-top: var(--fontSize20);
} }
.order_no_item:first-child{
.order_no_item:first-child {
margin-top: 0; margin-top: 0;
} }
.order_no_item:last-child{
.order_no_item:last-child {
margin-bottom: var(--fontSize40); margin-bottom: var(--fontSize40);
} }
.message{ .message {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: center; justify-content: center;
gap: var(--fontSize12); gap: var(--fontSize12);
} }
.checked{ .checked {
position: absolute;
right: 20rpx;
top: 50%;
transform: translateY(-50%);
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
} }
.order_no_item.active{ .order_no_item.active {
background: #347BFF1a; background: #347BFF1a;
border: var(--fontSize2) solid #347BFF; border: var(--fontSize2) solid #347BFF;
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
} }
.order_no_item .item{ .order_no_item .item {
display: flex; display: flex;
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #333333; color: #333333;
} }
.item .label{ .item .label {
color: #9B9B9E; color: #9B9B9E;
width: var(--fontSize150); width: var(--fontSize150);
margin-right: var(--fontSize40); // margin-right: var(--fontSize40);
} }
.item .price_value{ .item .price_value {
font-weight: 600; font-weight: 600;
} }
.order_no_item .item .copy_icon{
.order_no_item .item .copy_icon {
width: var(--fontSize28); width: var(--fontSize28);
height: var(--fontSize28); height: var(--fontSize28);
} }
.switch-box {
box-sizing: border-box;
width: var(--fontSize452);
height: var(--fontSize64);
display: flex;
background: #F7F8FA;
border-radius: var(--fontSize12);
font-size: var(--fontSize28);
color: #292D33;
position: relative;
margin: 24rpx auto;
.block {
position: absolute;
top: 50%;
transform: translateY(-50%);
border: var(--fontSize2) solid #FFFFFF;
left: 0;
width: 220rpx;
height: 52rpx;
background: #FFFFFF;
border-radius: 0 8rpx 8rpx 0;
transition: all .25s;
}
.block.labelRight {
left: 50%;
}
.left,
.right {
width: 50%;
height: 100%;
position: absolute;
top: 0;
transition: all .25s;
}
.left {
left: 0;
}
.right {
right: 0;
.question {
display: inline-block;
width: 36rpx;
height: 36rpx;
margin-left: 4rpx;
}
}
.left.active,
.right.active {
color: #3582EE;
font-weight: 500;
}
}
.ul {
.title {
font-weight: 600;
font-size: 26rpx;
color: #282829;
margin-bottom: 8rpx;
}
.li {
font-size: 26rpx;
color: #282829;
margin-bottom: 8rpx;
}
.last {
margin-bottom: 32rpx;
}
}
\ No newline at end of file \ No newline at end of file
<!--packageCrowdFunding/components/OrderNoPopup/OrderNoPopup.wxml--> <!--packageCrowdFunding/components/OrderNoPopup/OrderNoPopup.wxml-->
<wxs src="index.wxs" module="filter" /> <wxs src="index.wxs" module="filter" />
<popup show="{{show}}" bindconfirm="confirm" bindcancel="cancel" height="80%" title="{{title}}"> <popup show="{{show}}" bindconfirm="confirm" bindcancel="cancel" height="80%" title="{{title}}">
<!-- <view class="sub-title"> <view class="switch-box">
<view>{{title}}</view> --> <view class="block text-center {{ switchVlaue== 1?'':'labelRight' }}" />
<!-- <view class="all_btn" bindtap="getList" data-target="true">全部</view> --> <view class="left text-center {{ switchVlaue == 1?'active':'' }}" bindtap="changeSwitch" data-value="1">正常分账期</view>
<!-- </view> --> <view class="right text-center {{ switchVlaue == 2?'active':'' }}" bindtap="changeSwitch" data-value="2">超分账期
<scroll-view <image class="question" src="/components/images/question.png" bind:tap="showTips"></image>
class="order_no_box" </view>
scroll-y </view>
enable-back-to-top <scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="restPageNum" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" refresher-triggered="{{triggered}}">
refresher-enabled="{{true}}" <block wx:if="{{orderNoList.length}}">
bindrefresherrefresh="restPageNum" <block wx:for="{{orderNoList}}" wx:key="index">
bindscrolltolower="scrollonReachBottom" <view class="order_no_item {{item.active?'active':''}}" catch:tap="changeOrderNo" data-target="{{item}}">
refresher-threshold="104" <view class="message">
refresher-triggered="{{triggered}}"> <block wx:for="{{itemFormObj}}" wx:for-item="subItem" wx:key="idx">
<block wx:for="{{orderNoList}}" wx:key="index"> <view class="item" wx:if="{{item[subItem.prop]}}">
<view class="order_no_item {{item.active?'active':''}}" catch:tap="changeOrderNo" data-target="{{item}}"> <view class="label">{{subItem.label}}</view>
<view class="message"> <view class="value price_value" wx:if="{{subItem.type == 'price'}}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
<block wx:for="{{itemFormObj}}" wx:for-item="subItem" wx:key="idx"> <view class="value" wx:else>
<view class="item" wx:if="{{item[subItem.prop]}}"> {{item[subItem.prop]}}
<view class="label">{{subItem.label}}</view> <image wx:if="{{subItem.copy}}" catch:tap="toCopyNumber" data-ordernum="{{item[subItem.prop]}}" class="copy_icon" src="../../images/copy_name.png" />
<view class="value price_value" wx:if="{{subItem.type == 'price'}}">¥{{filter.priceFilter(item[subItem.prop])}}</view> </view>
<view class="value" wx:else>
{{item[subItem.prop]}}
<image wx:if="{{subItem.copy}}" catch:tap="toCopyNumber" data-ordernum="{{item[subItem.prop]}}" class="copy_icon" src="../../images/copy_name.png" />
</view> </view>
</view> </block>
</block> </view>
<view class="checked" wx:if="{{item.active}}">
<image src="../../../components/images/choose.png" />
</view>
</view> </view>
<view class="checked" wx:if="{{item.active}}"> </block>
<image src="../../../components/images/choose.png" /> </block>
</view> <block wx:else>
</view> <empty-data style="width: 100%;" />
</block> </block>
</scroll-view> </scroll-view>
</popup> </popup>
<tipsPopup show="{{ tipsshow }}" bindconfirm="confirm" bindcancel="cancel" height="70%" title="超分账期">
<view class="ul">
<view class="title">
字段定义
</view>
<view class="li">
○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
</view>
<view class="li last">
○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
</view>
<view class="title">
操作指导
</view>
<view class="li">
① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单
</view>
<view class="li">
情况一:单笔支付直接补录创建工单
</view>
<view class="li last">
情况二:客户多笔支付,补录工单时勾选多笔交易流水
</view>
<view class="li">
② 特殊情况:需通知运营在后台关联工单
</view>
<view class="li"> 情况一:客户支付定金时间与尾款时间间隔20天以上</view>
<view class="li">情况二:客户购买车辆2台及以上的费用,一笔支付</view>
<view class="li last"> 情况三:支付费用时误操作(多付了)需部分退款
</view>
<view class="li last">
操作流程:驻店在小程序点击新建工单,收款方式选择嘀加收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。
</view>
<!-- <view class="title">
特殊情况
</view>
<view class="li">
需新建工单,复制交易流水号 (填写时流水号末尾加逗号),收款方式选择嘀加收款,工单录完后通知线上运营在后台关联:
</view>
<view class="li">
情况一:客户支付定金时间与尾款时间间隔20天以上
情况二:客户购买车辆2台及以上的费用,一笔支付
情况三:支付费用时误操作 (多付了) 需部分退款
</view> -->
</view>
<!-- <view>说明内容</view> -->
</tipsPopup>
\ No newline at end of file \ No newline at end of file
...@@ -77,14 +77,18 @@ Page({ ...@@ -77,14 +77,18 @@ Page({
let staffCheck = await checkDailyReport(true); let staffCheck = await checkDailyReport(true);
if (staffCheck) return false;; if (staffCheck) return false;;
console.log(e); console.log(e);
let { outTradeNo } = e.detail; // let { outTradeNo } = e.detail;
let { arr, switchVlaue } = e.detail;
console.log(arr);
let { mode } = this.data; let { mode } = this.data;
this.closeSwitchPopup(); this.closeSwitchPopup();
outTradeNo && arr &&
wx.$router.go( wx.$router.go(
mode ? "createOrderCarQuotationSimple" : "createOrderCarQuotation", mode ? "createOrderCarQuotationSimple" : "createOrderCarQuotation",
{ {
...e.detail, // ...e.detail,
outTradeArr: arr,
switchVlaue
} }
); );
}, },
......
...@@ -85,6 +85,7 @@ Component({ ...@@ -85,6 +85,7 @@ Component({
// first: data.firstObjSimple, // first: data.firstObjSimple,
// formRule: data.formRuleSimple, // formRule: data.formRuleSimple,
referrerPicker: false, referrerPicker: false,
deliveryPicker:false,
textNameObj: { textNameObj: {
confirmName: '下一步(1/4)', confirmName: '下一步(1/4)',
cancelName: '存草稿' cancelName: '存草稿'
...@@ -94,6 +95,7 @@ Component({ ...@@ -94,6 +95,7 @@ Component({
lifetimes: { lifetimes: {
attached() { attached() {
this.getEmployee() this.getEmployee()
this.getShopMerchantPointConfig()
// 没有才走获取档案接口逻辑修改配置,有是必填优先及更高 // 没有才走获取档案接口逻辑修改配置,有是必填优先及更高
// 在createOrderCarQuotationSimple 页面做逻辑判断 // 在createOrderCarQuotationSimple 页面做逻辑判断
// this.getYqStoreConfig() // this.getYqStoreConfig()
...@@ -105,6 +107,20 @@ Component({ ...@@ -105,6 +107,20 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
getShopMerchantPointConfig(){
console.log(1111111111)
let { userInfo } = this.data;
let oParams = {};
oParams.merchantId = userInfo.shopMerchantId;
commonApi.getShopMerchantPointConfig(oParams).then(res=>{
// if(res.data.pointsMultiRole=='Y'){
// toastList.userId='销售顾问/录单员不能为空'
// }
this.setData({
pointsMultiRole:res.data.pointsMultiRole
})
})
},
// 推荐人 // 推荐人
// handleSalesChange(e) { // handleSalesChange(e) {
// let idx = e.detail.value || 0 // let idx = e.detail.value || 0
...@@ -129,6 +145,12 @@ Component({ ...@@ -129,6 +145,12 @@ Component({
referrerPicker: true referrerPicker: true
}) })
}, },
handleDeliveryPicker() {
this.setData({
deliveryPicker: true
})
},
handleSalesChange(e) { handleSalesChange(e) {
// let value = e.detail // let value = e.detail
console.log(e) console.log(e)
...@@ -145,6 +167,21 @@ Component({ ...@@ -145,6 +167,21 @@ Component({
['orderInfo.referrer']: employeeList[idx].staffName ['orderInfo.referrer']: employeeList[idx].staffName
}) })
}, },
handleDeliveryChange(e) {
// let value = e.detail
let idx = e.detail.value || 0
let {
employeeList,
disable
} = this.data
if (disable) return false
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
['orderInfo.deliveryId']: employeeList[idx].uuid,
['orderInfo.deliveryName']: employeeList[idx].staffName
})
},
// 获取推荐人列表 // 获取推荐人列表
getEmployee() { getEmployee() {
let userInfo = wx.$util.getStorageSync('dj_boutique_user_info') let userInfo = wx.$util.getStorageSync('dj_boutique_user_info')
...@@ -191,15 +228,27 @@ Component({ ...@@ -191,15 +228,27 @@ Component({
handleConfirm() { handleConfirm() {
var { var {
dataAttrName, dataAttrName,
formRule formRule,
pointsMultiRole
} = this.data } = this.data
// let thisPage = this.$router.getCurrentPage() // let thisPage = this.$router.getCurrentPage()
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
// console.log(thisPage.data['orderInfo']['actualSalesPersonId']) // console.log(thisPage.data['orderInfo']['actualSalesPersonId'])
if (!thisPage.data['orderInfo']['referrerId']) { if (!thisPage.data['orderInfo']['referrerId']) {
wx.$util.showToast('请选择推荐人') wx.$util.showToast(pointsMultiRole=='Y'?'请选择销售顾问/录单员':'请选择推荐人')
return false return false
} }
if(pointsMultiRole=='Y'){
if (!thisPage.data['orderInfo']['deliveryId']) {
wx.$util.showToast('请选择交付专员')
return false
}
if(thisPage.data['orderInfo']['deliveryId']==thisPage.data['orderInfo']['referrerId']){
wx.$util.showToast('销售顾问/录单员与交付专员不能选取同一人')
return false
}
}
let validObj = fn.checkRequired(thisPage.data[dataAttrName], formRule) let validObj = fn.checkRequired(thisPage.data[dataAttrName], formRule)
if (validObj) { if (validObj) {
wx.$util.showToast(validObj.message) wx.$util.showToast(validObj.message)
......
<!-- packageEquity/pages/carEquity/components/FirstStep/FirstStep.wxml --> <!-- packageEquity/pages/carEquity/components/FirstStep/FirstStep.wxml -->
<view class="firstStep"> <view class="firstStep">
<view class="box employeeBox"> <view class="box employeeBox">
<gl-cell border valueAlign="right" label="推荐人" class="pickerCell" required="{{true}}" requiredAfter="{{true}}" labelWidth="{{defaultLabelWidth}}"> <gl-cell border valueAlign="right" label="{{pointsMultiRole=='Y'?'销售顾问 /录单员':'推荐人'}}" class="pickerCell" required="{{true}}" requiredAfter="{{true}}" labelWidth="{{defaultLabelWidth}}">
<!-- <picker <!-- <picker
bindchange="handleSalesChange" bindchange="handleSalesChange"
value="{{index}}" value="{{index}}"
...@@ -14,6 +14,17 @@ ...@@ -14,6 +14,17 @@
</view> </view>
<!-- </picker> --> <!-- </picker> -->
</gl-cell> </gl-cell>
<block wx:if="{{pointsMultiRole=='Y'}}">
<gl-cell border valueAlign="right" label="交付专员" class="pickerCell" required="{{true}}" requiredAfter="{{true}}" labelWidth="{{defaultLabelWidth}}">
<view class="picker" bindtap="handleDeliveryPicker">
<image class="pickerArrow" src="/components/images/arrow-x.png" />
<view class="text-hide" wx:if="{{orderInfo.deliveryId }}">{{orderInfo.deliveryName }}</view>
<text class="placeholder" wx:else>请选择</text>
</view>
<!-- </picker> -->
</gl-cell>
</block>
</view> </view>
<view class="box"> <view class="box">
<!-- <view class="title">客户信息</view> --> <!-- <view class="title">客户信息</view> -->
...@@ -57,8 +68,8 @@ ...@@ -57,8 +68,8 @@
</view> </view>
<Gl-Button-Group wx:if="{{subBtnShow}}" bindbtnTap="btnTap" textNameObj="{{textNameObj}}" /> <Gl-Button-Group wx:if="{{subBtnShow}}" bindbtnTap="btnTap" textNameObj="{{textNameObj}}" />
</view> </view>
<store-referrer-picker bindconfirm="handleSalesChange" show="{{referrerPicker}}" referrerId="{{orderInfo.referrerId}}" pickerListAll="{{employeeList}}" /> <store-referrer-picker bindconfirm="handleSalesChange" show="{{referrerPicker}}" title="{{pointsMultiRole=='N'?'推荐人':'销售顾问/录单员'}}" type="1" orderObj="{{ orderObj }}" pickerListAll="{{employeeList}}" />
<store-referrer-picker bindconfirm="handleDeliveryChange" show="{{deliveryPicker}}" title="交付专员" type="2" orderObj="{{ orderObj }}" pickerListAll="{{employeeList}}" />
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" apiType="2" /> <customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" apiType="2" />
<car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ serviceInfo.carSeriesId || '' }}" equityFlag="true" merchantId="{{ userInfo.default4SStoreInfo.merchantId || undefined }}" /> <car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ serviceInfo.carSeriesId || '' }}" equityFlag="true" merchantId="{{ userInfo.default4SStoreInfo.merchantId || undefined }}" />
\ No newline at end of file \ No newline at end of file
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
height: var(--fontSize88); height: var(--fontSize88);
box-sizing: border-box; box-sizing: border-box;
} }
.text-center{
.text-center {
text-align: center; text-align: center;
} }
...@@ -38,21 +39,25 @@ ...@@ -38,21 +39,25 @@
color: #888888; color: #888888;
position: relative; position: relative;
} }
.item.disabled{
.item.disabled {
color: #ccc; color: #ccc;
} }
.text-hide { .text-hide {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.serveName{
.serveName {
width: 100%; width: 100%;
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
.item .icon{
.item .icon {
display: none; display: none;
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
...@@ -61,13 +66,16 @@ ...@@ -61,13 +66,16 @@
left: calc(-1 * var(--fontSize52)); left: calc(-1 * var(--fontSize52));
/* transform: translateY(-50%); */ /* transform: translateY(-50%); */
} }
.item.active{
.item.active {
color: #347BFF; color: #347BFF;
} }
.item.active .icon{
.item.active .icon {
display: block; display: block;
} }
.nothing{
.nothing {
padding: var(--fontSize100); padding: var(--fontSize100);
text-align: center; text-align: center;
color: #999; color: #999;
...@@ -98,9 +106,11 @@ ...@@ -98,9 +106,11 @@
.item .value .name { .item .value .name {
max-width: 85%; max-width: 85%;
max-width: 300px;
word-break: break-all;
} }
.item .value .name .warning_text{ .item .value .name .warning_text {
color: #F24724; color: #F24724;
margin-left: var(--fontSize10); margin-left: var(--fontSize10);
font-size: var(--fontSize22); font-size: var(--fontSize22);
...@@ -117,8 +127,8 @@ ...@@ -117,8 +127,8 @@
.item .value .price { .item .value .price {
/* color: #347BFF; */ /* color: #347BFF; */
font-weight: 500; font-weight: 500;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #EB4E4E; color: #EB4E4E;
} }
.item .control { .item .control {
......
...@@ -106,6 +106,17 @@ ...@@ -106,6 +106,17 @@
.item .value .name { .item .value .name {
max-width: 85%; max-width: 85%;
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: break-word;
font-size: 28rpx;
color: #222222;
.goodsname {
font-size: 28rpx;
color: #222222;
margin-bottom: 4rpx;
}
} }
.item .value .name .warning_text { .item .value .name .warning_text {
...@@ -232,6 +243,6 @@ ...@@ -232,6 +243,6 @@
} }
.isPad .item{ .isPad .item {
font-size: var(--fontSize22); font-size: var(--fontSize22);
} }
\ No newline at end of file \ No newline at end of file
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<view class="value " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}"> <view class="value " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.goods}}"> <block wx:if="{{i.goods}}">
<view class="name text-hide "> <view class="name text-hide ">
<view class="text-hide">{{filter.replaceItemText(i.goods.goodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName + (i.goods.specificationData? '/'+i.goods.specificationData:'')) || filter.replaceItemText(i.goods.goodsInfo.goodsName + (i.goods.specificationData? ('/'+i.goods.specificationData):'') )}}</view> <view class="goodsname serveName ">{{filter.replaceItemText(i.goods.goodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName + (i.goods.specificationData? '/'+i.goods.specificationData:'')) || filter.replaceItemText(i.goods.goodsInfo.goodsName + (i.goods.specificationData? ('/'+i.goods.specificationData):'') )}}</view>
<!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> --> <!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> -->
<view class="serveName" wx:if="{{i.goods.serveName}}">(包含{{i.goods.serveName}})</view> <view class="serveName" wx:if="{{i.goods.serveName}}">(包含{{i.goods.serveName}})</view>
<!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> --> <!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> -->
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<block wx:if="{{i.packageGoods}}"> <block wx:if="{{i.packageGoods}}">
<view class="childbox"> <view class="childbox">
<view class="item"> <view class="item">
<view class="name text-hide "> <view class="name ">
<view>{{i.packageGoods.packageAlias || i.packageGoods.packageName}}</view> <view>{{i.packageGoods.packageAlias || i.packageGoods.packageName}}</view>
</view> </view>
<view class="last"> <view class="last">
......
...@@ -15,7 +15,8 @@ Component({ ...@@ -15,7 +15,8 @@ Component({
} }
}, },
resetTransNo: String, resetTransNo: String,
resetOrder: Boolean resetOrder: Boolean,
orderInfo: Object
}, },
/** /**
...@@ -52,7 +53,8 @@ Component({ ...@@ -52,7 +53,8 @@ Component({
// 点击关闭 情况门店付款数据 // 点击关闭 情况门店付款数据
thisPage.setData({ thisPage.setData({
showPopup: false, showPopup: false,
['orderInfo.transactionNo']: '', // ['orderInfo.transactionNo']: '',
// ['orderInfo.tradeNo']: '',
['orderInfo.paymentDocList']: [] ['orderInfo.paymentDocList']: []
}) })
}, },
...@@ -117,15 +119,16 @@ Component({ ...@@ -117,15 +119,16 @@ Component({
}) })
}, },
confirm(e) { confirm(e) {
let { outTradeNo, payVoucherList, resetOrder } = this.data let { outTradeNo, payVoucherList, resetOrder, orderInfo } = this.data
// debugger // debugger
// console.log(wx.$router) // console.log(wx.$router)
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
if (resetOrder) return this.newResetOrder() if (resetOrder) return this.newResetOrder()
// if (orderType == 2) { if (orderInfo.outTradeNo) return this.ResetOrder()
if (payVoucherList.length && outTradeNo) { if (payVoucherList.length && outTradeNo) {
thisPage.setData({ thisPage.setData({
['orderInfo.transactionNo']: outTradeNo, ['orderInfo.transactionNo']: outTradeNo,
['orderInfo.tradeNo']: outTradeNo,
['orderInfo.paymentDocList']: payVoucherList.map(item => item.url) ['orderInfo.paymentDocList']: payVoucherList.map(item => item.url)
}) })
console.log(thisPage.handleSecondConfirm); console.log(thisPage.handleSecondConfirm);
...@@ -133,22 +136,36 @@ Component({ ...@@ -133,22 +136,36 @@ Component({
} else { } else {
wx.$util.showToast('交易流水号或付款凭证不能为空!') wx.$util.showToast('交易流水号或付款凭证不能为空!')
} }
// }
}, },
// 标记错误订单&补录订单 // 标记错误订单&补录订单
newResetOrder() { newResetOrder() {
let { resetTransNo, payVoucherList } = this.data let { resetTransNo, payVoucherList } = this.data
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
// debugger
if (payVoucherList.length && resetTransNo) { if (payVoucherList.length && resetTransNo) {
thisPage.setData({ thisPage.setData({
['orderInfo.transactionNo']: resetTransNo, ['orderInfo.transactionNo']: resetTransNo,
['orderInfo.tradeNo']: resetTransNo,
['orderInfo.paymentDocList']: payVoucherList.map(item => item.url) ['orderInfo.paymentDocList']: payVoucherList.map(item => item.url)
}) })
thisPage.handleSecondConfirm() thisPage.handleSecondConfirm()
} else { } else {
wx.$util.showToast('交易流水号或付款凭证不能为空!') wx.$util.showToast('交易流水号或付款凭证不能为空!')
} }
},
// 多流水补录
ResetOrder() {
let { payVoucherList } = this.data
if (payVoucherList.length) {
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
['orderInfo.paymentDocList']: payVoucherList.map(item => item.url)
})
// console.log(thisPage.handleSecondConfirm);
thisPage.handleSecondConfirm()
} else {
wx.$util.showToast('付款凭证不能为空!')
}
} }
} }
}) })
...@@ -11,8 +11,9 @@ ...@@ -11,8 +11,9 @@
<view class="input-item"> <view class="input-item">
<view class="title-text">交易流水号</view> <view class="title-text">交易流水号</view>
<view class="input-box" wx:if="{{resetOrder}}">{{resetTransNo}}</view> <view class="input-box" wx:if="{{resetOrder}}">{{resetTransNo}}</view>
<view class="input-box" wx:elif="{{orderInfo.outTradeNo}}">{{orderInfo.tradeNo}}</view>
<view wx:else class="input-box"> <view wx:else class="input-box">
<input type="text" class="input" bindinput="input" value="{{outTradeNo}}" placeholder="输入交易流水号" placeholder-class="outTradeNo_placeholder" maxlength="150" /> <input autocomplete="off" 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">
...@@ -22,7 +23,6 @@ ...@@ -22,7 +23,6 @@
</van-uploader> </van-uploader>
</view> </view>
</view> </view>
<view class="btn" bindtap="confirm">确定</view> <view class="btn" bindtap="confirm">确定</view>
</block> </block>
<!-- 4s店 end --> <!-- 4s店 end -->
......
{
"component": true,
"usingComponents": {
"store-select-popup": "/components/StoreSelectPopup/StoreSelectPopup"
}
}
\ No newline at end of file \ No newline at end of file
<!--pages/tabWorkOrder/components/OrderScreen/OrderScreen.wxml-->
<scroll-view scroll-y class="confirm-box" style="height:calc(100vh - {{navBarHeight }}px + 1px);margin-top:calc({{navBarHeight }}px - 1px);" hidden="{{!show}}">
<view class="main" style="padding-bottom:{{btnHeight}}px">
<!-- 非超管转化人员 -->
<view class="box" wx:if="{{!(userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6)}}">
<view class="title">
<view class="title-left">
转化人员
<view class="title-tips" wx:if="{{!(userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6)}}">{{userInfo.merchantName}}</view>
</view>
<view wx:if="{{form.transferIds.length > 12}}" bindtap="showMore" data-type="1" class="collapse-btn {{!employShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<block wx:for="{{form.transferIds}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="transferIds" data-index="{{index}}" hidden="{{index >= 12 && !employShowMore}}">
<view class="text-item">{{item.staffName}}</view>
</view>
</block>
</view>
</view>
<!-- 超管转化人员 选择园区店 -->
<view class="box" wx:if="{{(userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6)}}">
<view class="title">
<view class="title-left">
转化人员
</view>
<view wx:if="{{form.selectedYqMerchantList.length > 3}}" bindtap="showMore" data-type="1" class="collapse-btn {{!employShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<view class="item text-center {{!form.selectedYqMerchantList.length?'active':''}}" bindtap="yqMerchantChoose">全部</view>
<view class="item text-center" bindtap="showStoreSelectPopup" data-type="1">自定义</view>
<block wx:for="{{form.selectedYqMerchantList}}" wx:key="index">
<view class="item active flex-1" bindtap="choose" data-list-name="selectedYqMerchantList" data-index="{{index}}" hidden="{{index >= 3 && !employShowMore}}">
<view class="inline-block merchant-name">{{item.merchantName}}</view>
<view class="inline-block">{{item.merchantId}}</view>
</view>
</block>
</view>
</view>
<!-- 非超管销售顾问 -->
<view class="box" wx:if="{{!(userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6)}}">
<view class="title">
<view class="title-left">
销售顾问
<view class="title-tips" wx:if="{{!(userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6)}}">{{userInfo.shopMerchantName}}</view>
</view>
<view wx:if="{{form.referrerIds.length > 12}}" bindtap="showMore" data-type="2" class="collapse-btn {{!salesmanShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<block wx:for="{{form.referrerIds}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="referrerIds" data-index="{{index}}" hidden="{{index >= 12 && !salesmanShowMore}}">
<view class="text-item">{{item.staffName}}</view>
</view>
</block>
</view>
</view>
<!-- 超管销售顾问 选择4s店 -->
<view class="box" wx:if="{{(userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6)}}">
<view class="title">
<view class="title-left">
销售顾问
<view class="title-tips" wx:if="{{!(userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6)}}">{{userInfo.shopMerchantName}}</view>
</view>
<view wx:if="{{form.selectedMerchantList.length > 3}}" bindtap="showMore" data-type="2" class="collapse-btn {{!salesmanShowMore ? 'rotate-180' : ''}}">
<image src="{{IMG_URL}}collapse_icon.png" mode="" />
</view>
</view>
<view class="list-box">
<view class="item text-center {{!form.selectedMerchantList.length?'active':''}}" bindtap="merchantChoose">全部</view>
<view class="item text-center" bindtap="showStoreSelectPopup" data-type="2">自定义</view>
<block wx:for="{{form.selectedMerchantList}}" wx:key="index">
<view class="item active flex-1" bindtap="choose" data-list-name="selectedMerchantList" data-index="{{index}}" hidden="{{index >= 3 && !salesmanShowMore}}">
<view class="inline-block merchant-name">{{item.merchantName}}</view>
<view class="inline-block">{{item.merchantId}}</view>
</view>
</block>
</view>
</view>
<view class="box">
<view class="title">
订单时间
</view>
<view class="list-box">
<block wx:for="{{form.orderTimeList}}" wx:key="index">
<block wx:if="{{item.type}}">
<calendar allowSameDay shortcut bindselect='rangeSelect' id="orderCalendar" data-index="{{index}}" data-name="orderTimeList" dateType='range' calenderColor='#347BFF' vertical minDate="2020-10-01" maxDate="{{maxDate}}" isComponents>
</calendar>
<view style="display: flex;align-items: center;width: 100%;">
<view bindtap="showCalendar" data-type="show" data-target="showOrder" class="item custom-time text-center {{!item.orderStartDate ? 'grey' : ''}} {{item.active?'active':''}}">{{item.orderStartDate || '开始时间'}}</view>-
<view bindtap="showCalendar" data-type="show" data-target="showOrder" class="item custom-time text-center {{!item.orderEndDate ? 'grey' : ''}} {{item.active?'active':''}}">{{item.orderEndDate || '结束时间'}}</view>
</view>
</block>
<block wx:else>
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="orderTimeList" data-index="{{index}}">{{item.name}}</view>
</block>
</block>
</view>
</view>
<view class="box">
<view class="title">
支付时间
</view>
<view class="list-box">
<block wx:for="{{form.payTimeList}}" wx:key="index">
<block wx:if="{{item.type}}">
<calendar allowSameDay shortcut bindselect='rangeSelect' data-index="{{index}}" id="payCalendar" data-name="payTimeList" dateType='range' calenderColor='#347BFF' vertical minDate="2020-10-01" maxDate="{{maxDate}}" isComponents>
</calendar>
<view style="display: flex;align-items: center;width: 100%;">
<view bindtap="showCalendar" data-type="show" data-target="showPay" class="item custom-time text-center {{!item.payStartDate ? 'grey' : ''}} {{item.active?'active':''}}">{{item.payStartDate || '开始时间'}}</view>-
<view bindtap="showCalendar" data-type="show" data-target="showPay" class="item custom-time text-center {{!item.payEndDate ? 'grey' : ''}} {{item.active?'active':''}}">{{item.payEndDate || '结束时间'}}</view>
</view>
</block>
<block wx:else>
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="payTimeList" data-index="{{index}}">{{item.name}}</view>
</block>
</block>
</view>
</view>
<!-- <view class="box">
<view class="title">
订单状态
</view>
<view class="list-box">
<block wx:for="{{form.orderStatus}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}} {{item.disabled ?'disabled':''}}" bindtap="choose" data-list-name="orderStatus" data-index="{{index}}">{{item.name}}</view>
</block>
</view>
</view>
<view class="box">
<view class="title">
支付方式
</view>
<view class="list-box">
<block wx:for="{{form.payType}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="payType" data-index="{{index}}">{{item.name}}</view>
</block>
</view>
</view>
<view class="box">
<view class="title">
合同协议
</view>
<view class="list-box">
<block wx:for="{{form.zyPayStatus}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="zyPayStatus" data-index="{{index}}">{{item.name}}</view>
</block>
</view>
</view>-->
</view>
<view class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="btn clear text-center" bindtap="reset">清除</view>
<view class="btn done text-center" bindtap="confirm">确定</view>
</view>
</scroll-view>
<store-select-popup show="{{showStoreSelectPopup}}" type="{{storeType}}" bindconfirm="storeConfirm" bindcancel="hideStorePopup" selectedData="{{storeType == 1 ? form.selectedYqMerchantList || [] : form.selectedMerchantList || []}}"></store-select-popup>
\ No newline at end of file \ No newline at end of file
/* pages/tabWorkOrder/components/OrderScreen/OrderScreen.wxss */
.confirm-box {
position: fixed;
top: 0;
z-index: 10;
height: 100vh;
width: 100%;
box-sizing: border-box;
background-color: #fff;
animation: show-confirm-box .5s forwards;
}
@keyframes show-confirm-box {
0%{
right: -100%;
}
100%{
right: 0;
}
}
.box {
margin: 0 var(--fontSize32);
}
.box .title {
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--fontSize32);
font-weight: 500;
color: #292D33;
padding: var(--fontSize34) 0 var(--fontSize30);
position: sticky;
left: 0;
top: 0;
background: #fff;
z-index: 2;
}
.box .title .title-left{
display: flex;
align-items: flex-end;
}
.box .title .title-tips{
font-size: var(--fontSize22);
font-weight: 400;
color: #757980;
margin-left: var(--fontSize8);
}
.box .title .collapse-btn{
width: var(--fontSize48);
height: var(--fontSize48);
}
.box .title .collapse-btn.rotate-180{
transform: rotate(180deg);
}
.box .list-box {
display: flex;
border-bottom: var(--fontSize2) solid rgba(195, 195, 195, .3);
flex-wrap: wrap;
padding-bottom: var(--fontSize20);
}
.box .list-box .item {
/* width: var(--fontSize214); */
width: calc(234 / 750 * 100%);
min-height: var(--fontSize68);
border-radius: var(--fontSize4);
box-sizing: border-box;
border: var(--fontSize2) solid transparent;
padding: var(--fontSize16) var(--fontSize33);
flex-wrap: wrap;
font-size: var(--fontSize24);
text-align: center;
background-color: #F7F8FA;
color: #292D33;
transition: all .2s;
margin: 0 calc(20 / 750 * 100%) calc(20 / 750 * 100%) 0;
}
.box .list-box .item .text-item{
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.box .list-box .item.flex-1{
width: 100%;
text-align: left;
margin-right: 0;
line-height: 100%;
display: flex;
align-items: center;
}
.box .list-box .item.grey{
color: #999EA8;
}
.box .list-box .item.custom-time{
/* width: var(--fontSize316); */
width: calc(316 / 750 * 100%);
margin-bottom: 0;
}
.box .list-box .item.custom-time:last-child{
margin-right: 0;
margin-left: var(--fontSize20);
}
.box .list-box .item:nth-of-type(3n+3) {
margin-right: 0;
}
.box .list-box .calendar .item {
margin-right: 0;
}
.box .list-box .item.active {
background: rgba(53, 130, 238, 0.08);
border: var(--fontSize2) solid #347BFF;
color: #347BFF;
}
.box .list-box .item.disabled {
opacity: .4;
}
.box .list-box .item .inline-block{
display: inline-block;
}
.box .list-box .item .merchant-name{
max-width: calc(100% - var(--fontSize140));
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.btn-box {
position: sticky;
padding: var(--fontSize10) var(--fontSize32);
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--fontSize28);
bottom: 0;
left: 0;
width: 100%;
box-sizing: border-box;
z-index: 9;
background-color: #fff;
}
.btn-box .btn {
border-radius: var(--fontSize12);
border: var(--fontSize2) solid #0075F9;
box-sizing: border-box;
height: var(--fontSize80);
}
.btn-box .btn.clear {
border: var(--fontSize2) solid #DEE0E3;
width: var(--fontSize186);
color: #292D33;
}
.btn-box .btn.done {
background: #347BFF;
color: #fff;
width: var(--fontSize480);
}
.isFullSucreen-btn {
padding-bottom: var(--fontSize68);
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
\ No newline at end of file \ No newline at end of file
...@@ -265,11 +265,11 @@ ...@@ -265,11 +265,11 @@
} }
.goods-box .goods { .goods-box .goods {
height: var(--fontSize118); min-height: var(--fontSize118);
border-bottom: var(--fontSize2) solid rgba(195, 195, 195, .3); border-bottom: var(--fontSize2) solid rgba(195, 195, 195, .3);
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 var(--fontSize28) 0 var(--fontSize90); padding: 20rpx var(--fontSize28) 20rpx var(--fontSize90);
justify-content: space-between; justify-content: space-between;
font-size: var(--fontSize28); font-size: var(--fontSize28);
background: #F5F5F7; background: #F5F5F7;
...@@ -296,7 +296,7 @@ ...@@ -296,7 +296,7 @@
.goods-box .goods .name { .goods-box .goods .name {
color: #FF6601; color: #FF6601;
width: var(--fontSize306); max-width: var(--fontSize450);
} }
.goods-box .goods .price-box { .goods-box .goods .price-box {
...@@ -444,7 +444,8 @@ ...@@ -444,7 +444,8 @@
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
height: 104rpx; min-height: 104rpx;
padding: 20rpx 0;
.package-price { .package-price {
margin-left: auto; margin-left: auto;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}"> <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" /> <image src="./images/del.png" />
</view> </view>
<view class="name text-hide"> <view class="name ">
<!-- --> <!-- -->
{{item.goods.goodsAlias || item.goods.goodsNameAlias|| filter.replaceItemText(item.goods.upgradeGoodsName ,( item.goods.specificationData? '/'+item.goods.specificationData:'')) || filter.replaceItemText(item.goods.goodsName, (item.goods.specificationData? '/'+item.goods.specificationData:''))}} {{item.goods.goodsAlias || item.goods.goodsNameAlias|| filter.replaceItemText(item.goods.upgradeGoodsName ,( item.goods.specificationData? '/'+item.goods.specificationData:'')) || filter.replaceItemText(item.goods.goodsName, (item.goods.specificationData? '/'+item.goods.specificationData:''))}}
<!-- {{filter.replaceItemText(item.goods.goodsAlias) ||filter.replaceItemText(item.goods.upgradeGoodsName) || filter.replaceItemText(item.goods.goodsName)}} --> <!-- {{filter.replaceItemText(item.goods.goodsAlias) ||filter.replaceItemText(item.goods.upgradeGoodsName) || filter.replaceItemText(item.goods.goodsName)}} -->
...@@ -41,13 +41,13 @@ ...@@ -41,13 +41,13 @@
<view class="deleteicon" bindtap="delGoodsList" data-index="{{ index }}"> <view class="deleteicon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" /> <image src="./images/del.png" />
</view> </view>
<view class="name text-hide">{{item.packageGoods.packageAlias || item.packageGoods.packageNameAlias || item.packageGoods.packageName}}</view> <view class="name ">{{item.packageGoods.packageAlias || item.packageGoods.packageNameAlias || item.packageGoods.packageName}}</view>
<view class="package-price">¥{{item.price}}</view> <view class="package-price">¥{{item.price}}</view>
<!-- <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view> --> <!-- <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view> -->
</view> </view>
<view class="packageBox"> <view class="packageBox">
<view class="itemSty" wx:for="{{ item.packageGoods.goodsList }}" wx:key="childind" wx:for-index="childind" wx:for-item="child"> <view class="itemSty" wx:for="{{ item.packageGoods.goodsList }}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="name text-hide">{{child.goodsAlias || child.goodsNameAlias || filter.replaceItemText(child.upgradeGoodsName , (item.specificationData? '/'+child.specificationData: '') ) ||filter.replaceItemText(child.goodsName ,( item.specificationData? '/'+child.specificationData: '') ) }}</view> <view class="name ">{{child.goodsAlias || child.goodsNameAlias || filter.replaceItemText(child.upgradeGoodsName , (item.specificationData? '/'+child.specificationData: '') ) ||filter.replaceItemText(child.goodsName ,( item.specificationData? '/'+child.specificationData: '') ) }}</view>
<view class="price-box"> <view class="price-box">
<text>¥</text> <text>¥</text>
<view class="price"> <view class="price">
...@@ -90,9 +90,10 @@ ...@@ -90,9 +90,10 @@
<view class="right text-center {{ orderInfo.payType == 2?'active':'' }}" bindtap="changePayType" data-payType="2">门店收款</view> <view class="right text-center {{ orderInfo.payType == 2?'active':'' }}" bindtap="changePayType" data-payType="2">门店收款</view>
</view> </view>
</gl-cell> --> </gl-cell> -->
<gl-cell border class="pay-type" label="支付方式" valueAlign="right" wx:if="{{ !orderInfo.outTradeNo || orderInfo.resetOrder }}" labelWidth="var(--fontSize140)"> <gl-cell border class="pay-type" label="支付方式" wx:if="{{!orderInfo.outTradeNo ||orderInfo.resetOrder||orderInfo.outTradeArr }}" valueAlign="right" labelWidth="var(--fontSize140)">
<view class="payType-box"> <view class="payType-box">
<view class="item text-center active" wx:if="{{ orderInfo.resetOrder }}">门店收款</view> <view class="item text-center active" wx:if="{{ orderInfo.resetOrder }}">门店收款</view>
<view class="item text-center active" wx:elif="{{ orderInfo.outTradeArr}}">嘀加收款</view>
<block wx:else> <block wx:else>
<block wx:for="{{ payTypeList }}" wx:key="index"> <block wx:for="{{ payTypeList }}" wx:key="index">
<view class="item text-center {{ orderInfo.payType == item.value?'active':'' }}" bindtap="changePayType" data-payType="{{ item.value }}">{{item.name}}</view> <view class="item text-center {{ orderInfo.payType == item.value?'active':'' }}" bindtap="changePayType" data-payType="{{ item.value }}">{{item.name}}</view>
...@@ -100,7 +101,8 @@ ...@@ -100,7 +101,8 @@
</block> </block>
</view> </view>
</gl-cell> </gl-cell>
<gl-cell wx:if="{{ (orderInfo.payType == 2 ||orderInfo.payType ==5 )&&!orderInfo.resetOrder }}" value="{{ successDateTime }}" bind:click="toSelectDate" haveArrow="{{ true }}" placeholder="请选择时间" required="{{ true }}" requiredAfter="{{ true }}" border class="pay-type" label="{{orderInfo.payType == 2?'门店收款时间':'嘀加收款时间'}}" valueAlign="right" labelWidth="var(--fontSize200)"></gl-cell> <gl-cell wx:if="{{ (orderInfo.payType == 2 ||orderInfo.payType ==5 )&&!orderInfo.resetOrder&&!orderInfo.outTradeArr }}" value="{{ successDateTime }}" bind:click="toSelectDate" haveArrow="{{ true }}" placeholder="请选择时间" required="{{ true }}" requiredAfter="{{ true }}" border class="pay-type" label="{{orderInfo.payType == 2?'门店收款时间':'嘀加收款时间'}}" valueAlign="right" labelWidth="var(--fontSize200)"></gl-cell>
<gl-cell wx:if="{{ orderInfo.outTradeArr }}" value="{{ orderInfo.successDateTime }}" haveArrow="{{ true }}" placeholder="请选择时间" required="{{ true }}" requiredAfter="{{ true }}" border class="pay-type" label="{{orderInfo.payType == 2?'门店收款时间':'嘀加收款时间'}}" valueAlign="right" labelWidth="var(--fontSize200)"></gl-cell>
<view class="box"> <view class="box">
<view class="title remarkTitle">备注</view> <view class="title remarkTitle">备注</view>
<van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput"></van-field> <van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput"></van-field>
......
...@@ -8,6 +8,7 @@ Component({ ...@@ -8,6 +8,7 @@ Component({
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
title: String,
pickerListAll: { pickerListAll: {
type: Array, type: Array,
value: [], value: [],
...@@ -17,6 +18,20 @@ Component({ ...@@ -17,6 +18,20 @@ Component({
} }
} }
}, },
type: Number, //1.销售顾问/推荐人,2.交付专员
orderObj:{
type: Object,
observer: function (n) {
if (n) {
let { pickerList,type } = this.data,value;
value=type==1?n.referrerId:n.deliveryId
let defaultSelectStoreIndex = pickerList?.findIndex(v => {
return v.uuid == n
})
this.setData({ defaultSelectStoreIndex: [defaultSelectStoreIndex], selectStoreIndex: defaultSelectStoreIndex })
}
}
},
referrerId: { referrerId: {
type: String, type: String,
value: '', value: '',
......
<popup class="date-background" show="{{show}}" bindconfirm="confirm" title="推荐人" height="80%"> <popup class="date-background" show="{{show}}" bindconfirm="confirm" title="{{title}}" height="80%">
<view class='date-container'> <view class='date-container'>
<view class='date-confirm'> <view class='date-confirm'>
<view class="search-box"> <view class="search-box">
......
...@@ -111,6 +111,10 @@ ...@@ -111,6 +111,10 @@
} }
.loading-box{ .loading-box{
background-color: rgba(0, 0, 0, 0.7); background-color: rgba(0, 0, 0, 0.7);
width: 100px; /* 需使用px,rpx 会出现白色边框 */
height: 100px;
overflow: hidden;
transform: translateZ(0);
.van-loading__text{ .van-loading__text{
color: #FFFFFF !important; color: #FFFFFF !important;
} }
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
"second-step": "../components/SecondStepSimple/SecondStep", "second-step": "../components/SecondStepSimple/SecondStep",
"order-popup": "../components/OrderPopup/OrderPopup", "order-popup": "../components/OrderPopup/OrderPopup",
"vin-sec-dialog": "../components/VinSecDialog/VinSecDialog", "vin-sec-dialog": "../components/VinSecDialog/VinSecDialog",
"zy-pay-popup": "../components/zyPayPopup/zyPayPopup" "zy-pay-popup": "../components/zyPayPopup/zyPayPopup",
"order-no-popup": "../../../components/OrderNoPopup/OrderNoPopup"
}, },
"navigationStyle": "custom" "navigationStyle": "custom"
} }
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxss */ /* packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxss */
page{ page {
background: #f3f5f7; background: #f3f5f7;
} }
...@@ -75,19 +75,23 @@ page{ ...@@ -75,19 +75,23 @@ page{
background-color: #EFF5FE; background-color: #EFF5FE;
} }
.tips { .btns {
box-sizing: border-box; .tips {
display: flex; position: relative;
justify-content: space-between; box-sizing: border-box;
align-items: center; display: flex;
padding: var(--fontSize20); justify-content: space-between;
background: #EFF5FE; align-items: center;
height: var(--fontSize110); padding: var(--fontSize20);
width: 100%; background: #EFF5FE;
color: #347BFF; height: var(--fontSize140);
font-size: var(--fontSize24); width: 100%;
color: #333333;
font-size: var(--fontSize24);
}
} }
.tips .contentText { .tips .contentText {
margin-left: var(--fontSize20); margin-left: var(--fontSize20);
margin-right: auto; margin-right: auto;
...@@ -95,6 +99,36 @@ page{ ...@@ -95,6 +99,36 @@ page{
font-weight: 500; font-weight: 500;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
.tradeNo {
max-width: 400rpx;
margin-right: 10rpx;
}
.tradeNoCon {
display: flex;
justify-content: space-between;
}
.tipsbox {
margin-top: 20rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.tipsbtn {
position: absolute;
right: 120rpx;
bottom: 20rpx;
color: #347BFF;
padding: var(--fontSize6) var(--fontSize20);
margin-left: auto;
border: 1px solid #347BFF;
border-radius: var(--fontSize28);
margin-top: -26rpx;
margin-right: -90rpx;
}
} }
.btns-con { .btns-con {
...@@ -109,12 +143,51 @@ page{ ...@@ -109,12 +143,51 @@ page{
.tipsIcon, .tipsIcon,
.closeIcon { .closeIcon {
// margin-top: -40rpx;
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
} }
.isFullSucreen-btn { .isFullSucreen-btn {
padding-bottom: 34px !important; padding-bottom: 34px !important;
} }
.fullSucreen-tips { .fullSucreen-tips {
padding-bottom: var(--fontSize210) !important; padding-bottom: var(--fontSize210) !important;
}
.waitOrderCon {
box-sizing: border-box;
position: fixed;
bottom: 0rpx;
width: 100%;
display: flex;
// align-items: center;
font-size: var(--fontSize24);
font-weight: 600;
color: #347BFF;
/* padding: 0 var(--fontSize20); */
height: var(--fontSize124);
// background: #EFF5FE;
background-color: #fff;
z-index: 9;
&.showTips {
bottom: 0rpx;
}
}
.waitOrderCon .tipsIcon {
width: var(--fontSize32);
height: var(--fontSize32);
margin-right: var(--fontSize20);
z-index: 1;
}
.waitOrderCon .btn {
color: #F24724;
padding: var(--fontSize6) var(--fontSize20);
margin-left: auto;
border: 1px solid #F24724;
border-radius: var(--fontSize28);
} }
\ No newline at end of file \ No newline at end of file
...@@ -7,25 +7,33 @@ ...@@ -7,25 +7,33 @@
</view> </view>
</view> </view>
</navigation-bar> </navigation-bar>
<view class="layout {{showTips?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;"> <view class="layout {{(showTips||waitInputCount)?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;">
<first-step id="FirstStep" serviceInfo="{{ owner }}" dataAttrName="{{ dataAttrName }}" orderInfo="{{ orderInfo }}" subBtnShow="{{ false }}" mode="{{mode}}" /> <first-step id="FirstStep" serviceInfo="{{ owner }}" dataAttrName="{{ dataAttrName }}" orderInfo="{{ orderInfo }}" subBtnShow="{{ false }}" mode="{{mode}}" />
<second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" /> <second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" />
</view> </view>
<view wx:if="{{showTips&&outTradeNo}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}"> <view wx:if="{{showTips}}" class="btns {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class="tips"> <view class="tips">
<image class=" tipsIcon" src="../../../images/tips.png" /> <image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText"> <view class="contentText">
<view>交易参考号:{{outTradeNo}}</view> <view class="tradeNoCon">
<view>支付时间:{{accountDate}}</view> <view>交易参考号:</view>
<view class="tradeNo text-hide">{{tradeNo}}</view>
<view>(共{{outTradeArr.length}}条)</view>
</view>
<!-- <view>支付时间:{{accountDate}}</view> -->
<view class="tipsbox">
<view>支付金额:¥{{totalFee/100}}</view>
<view class="tipsbtn" bindtap="tipsEvent">补录订单</view>
</view>
</view> </view>
<image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> <!-- <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> -->
</view> </view>
<!-- <view class="btns-con">
<view class="save text-center" bindtap="routerBack" data-save>放弃</view>
<view class="confirm text-center" bindtap="submit">提交工单</view>
</view> -->
</view> </view>
<order-popup orderType="{{orderInfo.payType }}" resetTransNo="{{orderInfo.transactionNo || orderInfo.outTradeNo}}" resetOrder="{{orderInfo.resetOrder}}" wx:if="{{showPopup}}" show="{{showPopup}}" /> <view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !orderInfo.resetOrder && !isErrorOrder&&!outTradeNo }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view>
<order-no-popup wx:if="{{ showOrderpop && !(isErrorOrder) }}" outTradeNo="{{ outTradeArr }}" switchVlauerec="{{switchVlaue}}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<order-popup orderType="{{orderInfo.payType }}" resetTransNo="{{orderInfo.transactionNo || orderInfo.outTradeNo}}" resetOrder="{{orderInfo.resetOrder}}" orderInfo="{{orderInfo}}" wx:if="{{showPopup}}" show="{{showPopup}}" />
<!-- vin二次复核 --> <!-- vin二次复核 -->
<vin-sec-dialog wx:if="{{showVinDialog}}" showVinDialog="{{showVinDialog}}" secFormData="{{secFormData}}" bindonClose="handleSecClose" bindonConfirm="handleSecConfirm"></vin-sec-dialog> <vin-sec-dialog wx:if="{{showVinDialog}}" showVinDialog="{{showVinDialog}}" secFormData="{{secFormData}}" bindonClose="handleSecClose" bindonConfirm="handleSecConfirm"></vin-sec-dialog>
<!-- 上传合同协议 --> <!-- 上传合同协议 -->
......
...@@ -42,6 +42,60 @@ Component({ ...@@ -42,6 +42,60 @@ Component({
IMG_URL, IMG_URL,
IMG_URL2, IMG_URL2,
showIcon1: true, // 初始显示图标 showIcon1: true, // 初始显示图标
pointsMultiObj: [
{
label: "销售顾问 /录单员",
arr: ["merchantName", "referrerName"],
},
{
label: "交付人员",
arr: ["merchantName", "deliveryName"],
},
{
label: "转化人员",
arr: ["parkMerchantName", "transferName"],
},
{
label: "车架号",
key: "carVin",
},
{
label: "购买商品",
key: "goodsNameAlias",
otherKey: "goodsName",
},
{
label: "工单编号",
key: "payId",
canCopy: true
},
{
label: "交易流水号",
key: "tradeNo",
canCopy: true,
},
{
label: "拒升原因",
key: "remark",
},
{
label: "支付时间",
key: "payTime",
},
{
label: "创建时间",
key: "createdTime",
},
{
label: "支付方式",
key: "payType",
mapValue: {
1: "线上支付",
2: "门店收款",
5: "嘀加收款"
},
},
],
orderObj: [ orderObj: [
{ {
label: "销售顾问", label: "销售顾问",
...@@ -63,10 +117,12 @@ Component({ ...@@ -63,10 +117,12 @@ Component({
{ {
label: "工单编号", label: "工单编号",
key: "payId", key: "payId",
canCopy: true
}, },
{ {
label: "交易流水号", label: "交易流水号",
key: "transactionNo", key: "tradeNo",
// key: "transactionNo",
canCopy: true, canCopy: true,
}, },
{ {
...@@ -335,7 +391,7 @@ Component({ ...@@ -335,7 +391,7 @@ Component({
} }
wx.$util.showLoading(); wx.$util.showLoading();
let eventParams = wx.$util.deepClone({...params, ...screenForm}) let eventParams = wx.$util.deepClone({ ...params, ...screenForm })
// 当合同协议状态为待上传时,传订单状态为待上传7 // 当合同协议状态为待上传时,传订单状态为待上传7
if (eventParams?.zyPayStatus == '1') eventParams.orderStatus = 7 if (eventParams?.zyPayStatus == '1') eventParams.orderStatus = 7
quotationPage(eventParams) quotationPage(eventParams)
...@@ -598,7 +654,7 @@ Component({ ...@@ -598,7 +654,7 @@ Component({
// 合同协议上传确定 // 合同协议上传确定
zyPayConfirm(e) { zyPayConfirm(e) {
let { showZyTarget, zyConfirmFlag, updateZyFlag } = this.data let { showZyTarget, zyConfirmFlag, updateZyFlag } = this.data
wx.showLoading({title: '加载中', mask: true}) wx.showLoading({ title: '加载中', mask: true })
if (zyConfirmFlag) return false if (zyConfirmFlag) return false
this.setData({ this.setData({
zyConfirmFlag: true zyConfirmFlag: true
...@@ -715,7 +771,7 @@ Component({ ...@@ -715,7 +771,7 @@ Component({
// ...obj, // ...obj,
// ...searchTemp // ...searchTemp
// }, '2222'); // }, '2222');
let eventParams = wx.$util.deepClone({...obj, ...searchTemp, customerName}) let eventParams = wx.$util.deepClone({ ...obj, ...searchTemp, customerName })
// 当合同协议状态为待上传时,传订单状态为待上传7 // 当合同协议状态为待上传时,传订单状态为待上传7
if (eventParams?.zyPayStatus == '1') eventParams.orderStatus = 7 if (eventParams?.zyPayStatus == '1') eventParams.orderStatus = 7
orderStatistics(eventParams) orderStatistics(eventParams)
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</view> </view>
<!-- 内容 --> <!-- 内容 -->
<view class="order-list"> <view class="order-list">
<block wx:for="{{ orderObj }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i"> <block wx:for="{{ item.deliveryId?pointsMultiObj:orderObj }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
<block wx:if="{{ i.key == 'remark' || i.key == 'payTime' || i.key == 'createdTime' }}"> <block wx:if="{{ i.key == 'remark' || i.key == 'payTime' || i.key == 'createdTime' }}">
<view class="order" wx:if="{{ i.key == 'remark' && item.orderStatus == '-1' }}"> <view class="order" wx:if="{{ i.key == 'remark' && item.orderStatus == '-1' }}">
<view class="order-label">{{i.label}}</view> <view class="order-label">{{i.label}}</view>
......
{
"component": true,
"usingComponents": {
"order-screen": "../components/OrderScreenRelevance/OrderScreen"
}
}
\ No newline at end of file \ No newline at end of file
<!-- packageEquity/pages/carQuotation/index/index.wxml -->
<!-- 数字报价列表 -->
<view class="main">
<view class="to-box">
<view class="search-box">
<view class="search-input" style="width:{{ staffUuid?'100%':'' }}">
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="客户名称/商品名称/工单编号/手机号" class="input" confirm-type="search" value="{{ customerName }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
<block wx:if="{{ customerName }}">
<view bindtap="handleReset" class="clearBtn">
<image src="/images/clear.png" class="search-clear" />
</view>
</block>
</view>
<view class="search text-center" bindtap="showConfirm" wx:if="{{ !staffUuid }}">
<view class="text-center">
筛选
<image class="search-filter" src="/images/filter.png" />
</view>
</view>
</view>
</view>
<view wx:if="{{ flag }}" class="order-box">
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{ true }}" bindrefresherrefresh="search" bindscroll="onScroll" bindscrolltolower="onBottomRefresh" class="list" scroll-top="{{ scrollTop }}" lower-threshold="400" refresher-threshold="104" refresher-triggered="{{ triggered }}">
<block wx:if="{{ list.length && list[0].length }}">
<block wx:for="{{ list }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view wx:for="{{ i }}" wx:key="index" class="item {{ item.isTouchMove ? 'touch-move-active' : '' }}">
<view class="item-inner" data-item="{{ item }}" data-index="{{ index }}" data-ind="{{ ind }}" bind:tap="chooseItem">
<view class="item-content">
<view class="item-header">
<view class="header-cust">
{{item.customerName}}
<image wx:if="{{ item.ownerGender }}" class="icon-sex" src="{{ item.ownerGender == '男' ? '../../../images/icon-man.png' : '../../../images/icon-woman.png' }}" />
</view>
<view class="header-status">
<!-- 待上传合同协议且是已支付的订单 -->
<block wx:if="{{ item.zyPayStatus == 1 && (item.orderStatus == 3 || item.orderStatus == 4 || item.orderStatus == 7) }}">
<view class="default-txt">待上传</view>
</block>
<block wx:else>
<view wx:if="{{ item.orderStatus == '3'||item.orderStatus =='5' }}">
<span class="green-txt">{{orderStatusObj[item.orderStatus]}}</span>
</view>
<view wx:elif="{{ item.orderStatus == '9'||item.orderStatus =='11' || item.orderStatus == '6' }}">
<span class="grey-txt">{{orderStatusObj[item.orderStatus]}}</span>
</view>
<view wx:else class="{{ item.orderStatus == '-1' ? 'red-txt' : 'default-txt' }}">{{orderStatusObj[item.orderStatus] || '--'}}</view>
</block>
</view>
<view class="checked" wx:if="{{item.active}}">
<image src="/components/images/choose.png" />
</view>
</view>
<!-- 内容 -->
<view class="order-list">
<block wx:for="{{ orderObj }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
<block wx:if="{{ i.key == 'remark' || i.key == 'payTime' || i.key == 'createdTime' }}">
<view class="order" wx:if="{{ i.key == 'remark' && item.orderStatus == '-1' }}">
<view class="order-label">{{i.label}}</view>
<view class="order-value">
<block>{{item[i.key] || ''}}</block>
</view>
</view>
<view class="order" wx:if="{{ i.key == 'payTime' &&( item.orderStatus == '3'||item.orderStatus =='5') }}">
<view class="order-label">{{i.label}}</view>
<view class="order-value">
<block>{{item[i.key] || ''}}</block>
</view>
</view>
<view class="order" wx:if="{{ i.key == 'createdTime' }}">
<view class="order-label">{{i.label}}</view>
<view class="order-value">
<block>{{item[i.key] || ''}}</block>
</view>
</view>
</block>
<view class="order" wx:else>
<view class="order-label">{{i.label}}</view>
<view class="order-value">
<block wx:if="{{ i.arr }}">
<block wx:if="{{ item[i.arr[1]] }}">
<block wx:for="{{ i.arr }}" wx:key="sindex" wx:for-index="arr_index" wx:for-item="k">
<view class="order-value-item text-hide">
<block wx:if="{{ arr_index == 1 }}">
<text class="split">|</text>
</block>
{{item[k]}}
</view>
</block>
</block>
</block>
<block wx:else>
<view class="text-hide {{ i.canCopy&&item[i.key]? 'text-hideWidth' : '' }}">
<block wx:if="{{ i.mapValue }}">{{i.mapValue[item[i.key]] || ''}}</block>
<block wx:else>{{item[i.key]|| item[i.otherKey]|| ''}}</block>
</view>
<image wx:if="{{ i.canCopy&&item[i.key] }}" catch:tap="toCopyNumber" data-ordernum="{{ item[i.key] }}" class="copy_icon" src="../../../images/copy_name.png" />
</block>
</view>
</view>
</block>
<view class="order pricePay" wx:if="{{ item.orderStatus != '-1' && item.quotedPriceUpdate }}">
<view class="order-label">支付金额</view>
<view class="header-price">
<text class="unit">¥</text>
{{item.quotedPriceUpdate || ''}}
</view>
</view>
</view>
</view>
</view>
</view>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<view class="no-data" wx:else>
<image class="no-data-img" src="/packageEquity/images/noData.png" />
<view class="list-not">暂无数据</view>
</view>
</scroll-view>
</view>
</view>
<view wx:if="{{ showOrderRendering }}">
<order-screen show="{{ show_order_confirm }}" userInfo="{{ userInfo }}" navBarHeight="{{ navBarHeight }}" status="{{ orderStatus }}" zyStatus="{{ zyPayStatus }}" bindconfirm="searchScreen" />
</view>
\ No newline at end of file \ No newline at end of file
...@@ -7,11 +7,17 @@ Page { ...@@ -7,11 +7,17 @@ Page {
z-index: -1; z-index: -1;
width: 750rpx; width: 750rpx;
height: 400rpx; height: 400rpx;
background: linear-gradient(0deg, #e8f0fb00 0%, #dde8fb 100%); background: linear-gradient(0deg, #F7F8FA 0%, #dde8fb 100%);
} }
.container { .container {
padding: 20rpx; padding: 20rpx;
background: #f7f8fa; background:linear-gradient(to bottom,
transparent 0px,
transparent 200rpx,
#f7f8fa 200rpx,
#f7f8fa 100%
);
} }
.stats-bar { .stats-bar {
...@@ -20,7 +26,7 @@ Page { ...@@ -20,7 +26,7 @@ Page {
margin-bottom: 20rpx; margin-bottom: 20rpx;
border-radius: 24rpx; border-radius: 24rpx;
opacity: 1; opacity: 1;
background: #ffffff; background: #fff;
} }
.stat-item { .stat-item {
...@@ -29,19 +35,20 @@ background: #ffffff; ...@@ -29,19 +35,20 @@ background: #ffffff;
align-items: center; align-items: center;
flex: 1; flex: 1;
} }
.lable { .label {
color: #292d33; color: #292d33;
font-size: 26rpx; font-size: 26rpx;
margin-bottom: 10rpx;
} }
.percent { .percent {
color: #2c66f7; color: #2c66f7;
font-size: 48rpx; font-size: 48rpx;
font-weight: bold; font-weight: bold;
font-family: "D DIN PRO"; margin-top: 8rpx;
font-family: numberNor;
.unit { .unit {
font-weight: 500; font-weight: 500;
font-size: 24rpx; font-size: 24rpx;
font-family: none;
} }
} }
...@@ -86,15 +93,28 @@ background: #ffffff; ...@@ -86,15 +93,28 @@ background: #ffffff;
.filter-tabs text { .filter-tabs text {
flex: 1; flex: 1;
text-align: center; text-align: center;
padding-bottom: 30rpx; padding-bottom: 20rpx;
height: 80rpx; height: 80rpx;
color: #5a5e66; color: #5a5e66;
font-size: 28rpx; font-size: 28rpx;
} }
.filter-tabs .active { .filter-tabs {
.active {
position: relative;
color: #347BFF; color: #347BFF;
border-bottom: 4rpx solid #347BFF; font-weight:700;
::after {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
content: "";
width:64rpx;
height: 4rpx;
background: #347BFF;
}
}
} }
.card { .card {
......
...@@ -14,7 +14,9 @@ Component({ ...@@ -14,7 +14,9 @@ Component({
}, },
isShowDefeatBtn: { isShowDefeatBtn: {
type: Boolean type: Boolean
} },
hideScore: Boolean,
showReason:Boolean
}, },
/** /**
...@@ -22,7 +24,13 @@ Component({ ...@@ -22,7 +24,13 @@ Component({
*/ */
data: { data: {
contantsData, contantsData,
itemInfo: {} itemInfo: {},
violationStatusText: {
1: '疑似违规',
2: '过度承诺',
0: '未违规'
},
showViolationReason: false
}, },
/** /**
...@@ -66,7 +74,7 @@ Component({ ...@@ -66,7 +74,7 @@ Component({
events?.forEach((event, index) => { events?.forEach((event, index) => {
let regex = new RegExp('环节', 'g') let regex = new RegExp('环节', 'g')
event.stage = event.stage.replace(regex, '') event.stage = event.stage.replace(regex, '')
if(event.stage == '结束') event.stage = '促成交' if (event.stage == '结束') event.stage = '促成交'
event.width = this.getWidth(event, totalMinutes) event.width = this.getWidth(event, totalMinutes)
event.left = event.mergedOffset && Math.min(...event.mergedOffset) / totalMinutes * 90 + 2 event.left = event.mergedOffset && Math.min(...event.mergedOffset) / totalMinutes * 90 + 2
// 相邻质检环节是否存在重叠 // 相邻质检环节是否存在重叠
...@@ -77,7 +85,7 @@ Component({ ...@@ -77,7 +85,7 @@ Component({
} }
event.left = (events[index - 2]?.left + events[index - 2]?.width) > 2 ? (events[index - 2]?.left + events[index - 2]?.width) : 2 // 出现重叠将第二个质检环节向时间轴结束方向偏移 event.left = (events[index - 2]?.left + events[index - 2]?.width) > 2 ? (events[index - 2]?.left + events[index - 2]?.width) : 2 // 出现重叠将第二个质检环节向时间轴结束方向偏移
} }
if (event.left > (90 - event.width)) { // 处理会超出时间轴的质检环节 if (event.left > (90 - event.width)) { // 处理会超出时间轴的质检环节
event.left = (90 - event.width) event.left = (90 - event.width)
} }
...@@ -96,17 +104,15 @@ Component({ ...@@ -96,17 +104,15 @@ Component({
}) })
// 质检环节未知 // 质检环节未知
if (!events?.length) { if (!events?.length) {
events = [ events = [{
{ stage: '未知',
stage: '未知', style: `left: 47%; width: 50%;transform: translateX(-50%);bottom: var(--fontSize34);`,
style: `left: 47%; width: 50%;transform: translateX(-50%);bottom: var(--fontSize34);`, customerClass: 'red-tag',
customerClass: 'red-tag', mergedOffset: [0]
mergedOffset: [0] }]
}
]
} }
this.setData({ this.setData({
['itemInfo.receptionStaticInfoDetailDTOList'] : events, ['itemInfo.receptionStaticInfoDetailDTOList']: events,
['itemInfo.isNoShow']: false ['itemInfo.isNoShow']: false
}) })
}, },
...@@ -126,19 +132,37 @@ Component({ ...@@ -126,19 +132,37 @@ Component({
let diff = item.mergedOffset && Math.max(...item.mergedOffset) - Math.min(...item.mergedOffset) let diff = item.mergedOffset && Math.max(...item.mergedOffset) - Math.min(...item.mergedOffset)
let width = diff / totalMinutes * 90 let width = diff / totalMinutes * 90
let minWidth = item.stage?.length == 3 ? 19 : item.stage?.length == 4 ? 24 : 15 // 根据质检环节最小宽度 let minWidth = item.stage?.length == 3 ? 19 : item.stage?.length == 4 ? 24 : 15 // 根据质检环节最小宽度
let filterWidth = width > minWidth ? width : minWidth // 最小宽度 let filterWidth = width > minWidth ? width : minWidth // 最小宽度
return filterWidth return filterWidth
}, },
// 快速录战败单 // 快速录战败单
createDefeatOrder(e) { createDefeatOrder(e) {
let { item } = e.currentTarget.dataset let {
wx.$router.go('packageEquity.createDeafeatOrder', {customerName: item.customerName, customerPhone: item.phoneNumber}) item
} = e.currentTarget.dataset
wx.$router.go('packageEquity.createDeafeatOrder', {
customerName: item.customerName,
customerPhone: item.phoneNumber
})
}, },
// 点击质检环节 // 点击质检环节
handleTagsTap(e) { handleTagsTap(e) {
let { item } = e.currentTarget.dataset let {
item
} = e.currentTarget.dataset
this.triggerEvent('tagsTap', item) this.triggerEvent('tagsTap', item)
}, },
showViolationReasonFun(){
this.setData({
showViolationReason:true
})
},
closePopup(){
this.setData({
showViolationReason:false
})
}
}, },
attached() { attached() {
let _this = this let _this = this
...@@ -150,6 +174,6 @@ Component({ ...@@ -150,6 +174,6 @@ Component({
if (params.receptionStaticInfoODDetailDTOList) { // 攻防点 if (params.receptionStaticInfoODDetailDTOList) { // 攻防点
_this.getDefensePoints(params.receptionStaticInfoODDetailDTOList, totalMinutes) _this.getDefensePoints(params.receptionStaticInfoODDetailDTOList, totalMinutes)
} }
} }
}) })
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/index/components/record-item/recordItem.wxss */ /* packageEquity/pages/index/components/record-item/recordItem.wxss */
.content{ .content {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
padding-bottom: var(--fontSize8); padding-bottom: var(--fontSize8);
background: #FFFFFF; background: #FFFFFF;
border-radius: var(--fontSize28); border-radius: var(--fontSize28);
&.border-red{ position: relative;
.violation-reason {
position: absolute;
top: var(--fontSize72);
right: var(--fontSize16);
width: var(--fontSize144);
height: var(--fontSize48);
line-height: var(--fontSize48);
border-radius: var(--fontSize8);
background: #f7f8fa;
color: #347bff;
font-size: var(--fontSize24);
font-weight: 600;
text-align: center;
}
&.border-red {
border: var(--fontSize2) solid #F56C50; border: var(--fontSize2) solid #F56C50;
} }
.record-header{
.record-header {
padding: var(--fontSize28) var(--fontSize16) var(--fontSize16) var(--fontSize32); padding: var(--fontSize28) var(--fontSize16) var(--fontSize16) var(--fontSize32);
.base-message{
.base-message {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: var(--fontSize12); margin-bottom: var(--fontSize12);
view{
view {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.record-name{
.record-name {
flex-shrink: 0; flex-shrink: 0;
margin-right: var(--fontSize12); margin-right: var(--fontSize12);
display: inline-block; display: inline-block;
max-width: var(--fontSize260); max-width: var(--fontSize260);
.value{
.value {
font-weight: 600; font-weight: 600;
font-size: var(--fontSize30); font-size: var(--fontSize30);
color: #292D33; color: #292D33;
} }
.order-name{
.order-name {
font-weight: 400; font-weight: 400;
font-size: var(--fontSize26); font-size: var(--fontSize26);
} }
} }
.record-phone{
.record-phone {
font-size: var(--fontSize26); font-size: var(--fontSize26);
color: #347BFF; color: #347BFF;
} }
.employee-name{
.employee-name {
max-width: var(--fontSize180); max-width: var(--fontSize180);
display: inline-block; display: inline-block;
margin-left: var(--fontSize10); margin-left: var(--fontSize10);
color: #347BFF; color: #347BFF;
font-size: var(--fontSize30); font-size: var(--fontSize30);
} }
.text-hide{
.text-hide {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.violation-status {
width: fit-content;
height: var(--fontSize32);
border-radius: var(--fontSize16);
border: var(--fontSize2) solid #38d1c71a;
background: #edfaf9;
padding: 0 var(--fontSize8);
margin-left: var(--fontSize12);
color: #38d1c7;
font-size: var(--fontSize22);
font-weight: 700;
line-height: var(--fontSize32);
}
.violation-1 {
border-color: #7f80fe1a;
background: #f2f2fe;
color: #7f80fe;
}
.violation-2 {
border-color: #ff60531a;
background: #fff4f2;
color: #ff6053;
}
} }
.record-message{
.record-message {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
font-size: var(--fontSize22); font-size: var(--fontSize22);
.record-label{
.record-label {
padding: 0 var(--fontSize8); padding: 0 var(--fontSize8);
height: var(--fontSize32); height: var(--fontSize32);
border-radius: var(--fontSize4); border-radius: var(--fontSize4);
...@@ -64,18 +118,21 @@ ...@@ -64,18 +118,21 @@
margin-right: var(--fontSize12); margin-right: var(--fontSize12);
border: var(--fontSize2) solid #E8ECF0; border: var(--fontSize2) solid #E8ECF0;
} }
.record-label-error{
.record-label-error {
padding: 0 var(--fontSize8); padding: 0 var(--fontSize8);
height: var(--fontSize28); height: var(--fontSize28);
border: var(--fontSize2) solid #F56C50; border: var(--fontSize2) solid #F56C50;
border-radius: var(--fontSize4); border-radius: var(--fontSize4);
color: #F56C50; color: #F56C50;
} }
.record-amount{
.record-amount {
font-size: var(--fontSize32); font-size: var(--fontSize32);
color: #292D33; color: #292D33;
font-family: "numberBold"; font-family: "numberBold";
.line{
.line {
display: inline-block; display: inline-block;
width: var(--fontSize2); width: var(--fontSize2);
height: var(--fontSize14); height: var(--fontSize14);
...@@ -83,24 +140,29 @@ ...@@ -83,24 +140,29 @@
margin: 0 var(--fontSize8); margin: 0 var(--fontSize8);
} }
} }
.record-score{
.record-score {
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #F56C50; color: #F56C50;
.value{
.value {
font-size: var(--fontSize48); font-size: var(--fontSize48);
font-family: "numberBold"; font-family: "numberBold";
} }
.unit{
.unit {
font-weight: 600; font-weight: 600;
margin-left: var(--fontSize4); margin-left: var(--fontSize4);
} }
&.black{
&.black {
color: #292D33; color: #292D33;
} }
} }
} }
} }
.time-line-box{
.time-line-box {
box-sizing: border-box; box-sizing: border-box;
width: calc(100% - var(--fontSize16)); width: calc(100% - var(--fontSize16));
margin: 0 var(--fontSize8); margin: 0 var(--fontSize8);
...@@ -108,16 +170,19 @@ ...@@ -108,16 +170,19 @@
background: #FAFAFA; background: #FAFAFA;
border-radius: var(--fontSize24); border-radius: var(--fontSize24);
padding: var(--fontSize20); padding: var(--fontSize20);
.time-line{
.time-line {
height: var(--fontSize90); height: var(--fontSize90);
position: relative; position: relative;
.line-status{
.line-status {
width: 100%; width: 100%;
height: var(--fontSize2); height: var(--fontSize2);
background: #D1DBE7; background: #D1DBE7;
position: absolute; position: absolute;
bottom: var(--fontSize32); bottom: var(--fontSize32);
.circular{
.circular {
position: absolute; position: absolute;
top: calc(-1 * var(--fontSize6)); top: calc(-1 * var(--fontSize6));
width: var(--fontSize12); width: var(--fontSize12);
...@@ -125,13 +190,16 @@ ...@@ -125,13 +190,16 @@
border-radius: 50%; border-radius: 50%;
background: #D1DBE7; background: #D1DBE7;
} }
.circular-left{
.circular-left {
left: 0; left: 0;
} }
.circular-right{
.circular-right {
right: var(--fontSize40); right: var(--fontSize40);
} }
.reception-result{
.reception-result {
position: absolute; position: absolute;
right: 0; right: 0;
top: calc(-1 * var(--fontSize14)); top: calc(-1 * var(--fontSize14));
...@@ -141,27 +209,33 @@ ...@@ -141,27 +209,33 @@
text-align: center; text-align: center;
font-size: var(--fontSize20); font-size: var(--fontSize20);
color: #FFFFFF; color: #FFFFFF;
&.success{
&.success {
background: #35C376; background: #35C376;
&:before{
&:before {
content: '√'; content: '√';
} }
} }
&.defeat{
&.defeat {
background: #F24724; background: #F24724;
&:before{
&:before {
content: '×' content: '×'
} }
} }
} }
} }
.creat-order-btn{
.creat-order-btn {
width: var(--fontSize144); width: var(--fontSize144);
position: absolute; position: absolute;
right: 0; right: 0;
top: calc(-1 * var(--fontSize40)); top: calc(-1 * var(--fontSize40));
z-index: 100; z-index: 100;
} }
.bubble { .bubble {
position: relative; position: relative;
background: #00000099; background: #00000099;
...@@ -170,6 +244,7 @@ ...@@ -170,6 +244,7 @@
border-radius: var(--fontSize8); border-radius: var(--fontSize8);
text-align: center; text-align: center;
font-size: var(--fontSize24); font-size: var(--fontSize24);
.bubble-pointer { .bubble-pointer {
width: 0; width: 0;
height: 0; height: 0;
...@@ -181,34 +256,41 @@ ...@@ -181,34 +256,41 @@
bottom: calc(-1 * var(--fontSize16)); bottom: calc(-1 * var(--fontSize16));
transform: translateY(-50%); transform: translateY(-50%);
} }
.bubble-content { .bubble-content {
font-size: var(--fontSize24); font-size: var(--fontSize24);
text-align: center; text-align: center;
white-space: nowrap; white-space: nowrap;
} }
} }
.tags-box{
.tags-item{ .tags-box {
.tags-item {
text-align: center; text-align: center;
position: absolute; position: absolute;
display: flex; display: flex;
bottom: 0; bottom: 0;
.deep-colour-name{
.deep-colour-name {
flex-shrink: 0; flex-shrink: 0;
width: var(--fontSize6); width: var(--fontSize6);
height: var(--fontSize32); height: var(--fontSize32);
background: #F56C50; background: #F56C50;
&.red-tag{
&.red-tag {
background: #F56C50; background: #F56C50;
} }
&.yellow-tag{
&.yellow-tag {
background: #FF9D0A; background: #FF9D0A;
} }
&.green-tag{
&.green-tag {
background: #35C376; background: #35C376;
} }
} }
.name{
.name {
flex-shrink: 0; flex-shrink: 0;
font-size: var(--fontSize24); font-size: var(--fontSize24);
text-align: center; text-align: center;
...@@ -220,19 +302,23 @@ ...@@ -220,19 +302,23 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
&.red-tag{
&.red-tag {
background: #F247241f; background: #F247241f;
color: #F56C50; color: #F56C50;
} }
&.yellow-tag{
&.yellow-tag {
background: #FF9D0A2e; background: #FF9D0A2e;
color: #FF9D0A; color: #FF9D0A;
} }
&.green-tag{
&.green-tag {
background: #35C3762e; background: #35C3762e;
color: #35C376; color: #35C376;
} }
.score{
.score {
font-size: var(--fontSize20); font-size: var(--fontSize20);
font-weight: 400; font-weight: 400;
margin-left: var(--fontSize4); margin-left: var(--fontSize4);
...@@ -240,17 +326,20 @@ ...@@ -240,17 +326,20 @@
} }
} }
} }
.defense{
.defense {
text-align: center; text-align: center;
position: absolute; position: absolute;
bottom: var(--fontSize34); bottom: var(--fontSize34);
.defense-icon{
.defense-icon {
width: var(--fontSize30); width: var(--fontSize30);
height: var(--fontSize60); height: var(--fontSize60);
} }
} }
} }
.total-time{
.total-time {
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -258,7 +347,8 @@ ...@@ -258,7 +347,8 @@
position: relative; position: relative;
color: #757980; color: #757980;
margin-top: var(--fontSize10); margin-top: var(--fontSize10);
.line{
.line {
width: 100%; width: 100%;
height: var(--fontSize2); height: var(--fontSize2);
background: #D1DBE74D; background: #D1DBE74D;
...@@ -267,18 +357,58 @@ ...@@ -267,18 +357,58 @@
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
} }
.time-bt{
.time-bt {
background: #FAFAFA; background: #FAFAFA;
border-radius: var(--fontSize28); border-radius: var(--fontSize28);
font-size: var(--fontSize20); font-size: var(--fontSize20);
z-index: 10; z-index: 10;
&.pad-4{
&.pad-4 {
padding: 0 var(--fontSize8); padding: 0 var(--fontSize8);
} }
&.pad-20{
&.pad-20 {
padding: 0 var(--fontSize40); padding: 0 var(--fontSize40);
} }
} }
} }
} }
}
.violation-reason-popup {
width: 622rpx;
height: 754rpx;
border-radius: 20rpx;
display: flex;
flex-direction: column;
.violation-reason-title {
font-size: 32rpx;
font-weight: 500;
line-height: 48rpx;
text-align: center;
padding: 48rpx 0 28rpx;
}
.violation-reason-content {
margin: 0 48rpx;
overflow-y: auto;
height: 472rpx;
word-break: break-all;
font-size: 28rpx;
line-height: 39.2rpx;
color: rgba(41, 45, 51, 1);
}
.violation-reason-btn {
margin-top: auto;
height: 100rpx;
line-height: 100rpx;
text-align: center;
font-size: 32rpx;
font-weight: 500;
color: rgba(52, 123, 255, 1);
border-top: 2rpx solid #ebedf0;
}
} }
\ No newline at end of file \ No newline at end of file
<!--packageEquity/pages/index/components/record-item/recordItem.wxml--> <!--packageEquity/pages/index/components/record-item/recordItem.wxml-->
<wxs src="../../../../index.wxs" module="filter"/> <wxs src="../../../../index.wxs" module="filter" />
<view class="content"> <view class="content">
<block wx:if="{{hideScore && showReason && itemInfo.violationReason}}">
<view class="violation-reason" catchtap="showViolationReasonFun">处理意见</view>
</block>
<view class="record-header"> <view class="record-header">
<view class="base-message"> <view class="base-message">
<view> <view>
...@@ -10,15 +13,22 @@ ...@@ -10,15 +13,22 @@
</view> </view>
<text class="record-phone" data-phone="{{itemInfo.phoneNumber}}">{{filter.desensitizePhoneNumber(itemInfo.phoneNumber)}}</text> <text class="record-phone" data-phone="{{itemInfo.phoneNumber}}">{{filter.desensitizePhoneNumber(itemInfo.phoneNumber)}}</text>
</view> </view>
<view wx:if="{{itemInfo.employeeName && showEmployeeName}}" catchtap="phoneCall" data-phone="{{itemInfo.employeePhone}}" class="employee-name text-hide">{{itemInfo.employeeName}}</view> <view>
<view wx:if="{{itemInfo.employeeName && showEmployeeName }}" catchtap="phoneCall" data-phone="{{itemInfo.employeePhone}}" class="employee-name text-hide">{{itemInfo.employeeName}}</view>
<block wx:if="{{hideScore && itemInfo.violationStatus != null}}">
<view class="violation-status violation-{{itemInfo.violationStatus}}">
{{violationStatusText[itemInfo.violationStatus]}}
</view>
</block>
</view>
</view> </view>
<view class="record-message"> <view class="record-message">
<view> <view>
<text class="record-label" wx:if="{{itemInfo.carModel}}">{{itemInfo.carModel}}</text> <text class="record-label" wx:if="{{itemInfo.carModel}}">{{itemInfo.carModel}}</text>
<text class="record-label" wx:if="{{itemInfo.tag}}">{{itemInfo.tag}}</text> <text class="record-label" wx:if="{{itemInfo.tag}}">{{itemInfo.tag}}</text>
<text class="record-label-error" wx:if="{{itemInfo.qualityCheckScore <= 20 && itemInfo.qualityCheckScore !== null && itemInfo.qualityCheckScore !== undefined}}">疑似虚假接待</text> <text class="record-label-error" wx:if="{{itemInfo.qualityCheckScore <= 20 && itemInfo.qualityCheckScore !== null && itemInfo.qualityCheckScore !== undefined && !hideScore}}">疑似虚假接待</text>
</view> </view>
<view> <view wx:if="{{!hideScore}}">
<text class="record-amount" wx:if="{{itemInfo.orderStatus == 1 && itemInfo.orderAmount}}"> <text class="record-amount" wx:if="{{itemInfo.orderStatus == 1 && itemInfo.orderAmount}}">
<text>¥{{filter.convertCentsToYuan(itemInfo.orderAmount)}}</text> <text>¥{{filter.convertCentsToYuan(itemInfo.orderAmount)}}</text>
<text class="line"></text> <text class="line"></text>
...@@ -48,27 +58,25 @@ ...@@ -48,27 +58,25 @@
</view> </view>
</view> </view>
<!-- 质检环节 --> <!-- 质检环节 -->
<view class="tags-box" hidden="{{itemInfo.isNoShow}}"> <block wx:if="{{!hideScore}}">
<block wx:key="index" wx:for="{{itemInfo.receptionStaticInfoDetailDTOList}}" <view class="tags-box" hidden="{{itemInfo.isNoShow}}">
wx:for-item="item"> <block wx:key="index" wx:for="{{itemInfo.receptionStaticInfoDetailDTOList}}" wx:for-item="item">
<view class="tags-item" <view class="tags-item" catchtap="handleTagsTap" data-item="{{item}}" style="{{item.style}}">
catchtap="handleTagsTap" <view class="deep-colour-name {{item.customerClass}}"></view>
data-item="{{item}}" <view data-index="{{index}}" data-item="{{item}}" class="name {{item.customerClass}}">
style="{{item.style}}"> {{item.stage}}<text class="score" wx:if="{{item.totalGetScore}}">{{item.totalGetScore}}</text>
<view class="deep-colour-name {{item.customerClass}}"></view> </view>
<view data-index="{{index}}" data-item="{{item}}" class="name {{item.customerClass}}">
{{item.stage}}<text class="score" wx:if="{{item.totalGetScore}}">{{item.totalGetScore}}</text>
</view> </view>
</view> </block>
</block> </view>
</view> </block>
<!-- 攻防点 --> <!-- 攻防点 -->
<block wx:for="{{itemInfo.receptionStaticInfoODDetailDTOList}}" wx:key="index"> <block wx:for="{{itemInfo.receptionStaticInfoODDetailDTOList}}" wx:key="index">
<view class="defense" style="{{item.style}}"> <view class="defense" style="{{item.style}}">
<gl-image webp class="defense-icon" src="/equity/defense-icon.png" /> <gl-image webp class="defense-icon" src="/equity/defense-icon.png" />
</view> </view>
</block> </block>
</view> </view>
<view class="total-time"> <view class="total-time">
<view class="line"></view> <view class="line"></view>
<view class="time-bt pad-4">{{itemInfo.startTimeStr}}</view> <view class="time-bt pad-4">{{itemInfo.startTimeStr}}</view>
...@@ -76,4 +84,13 @@ ...@@ -76,4 +84,13 @@
<view class="time-bt pad-4">{{itemInfo.endTimeStr}}</view> <view class="time-bt pad-4">{{itemInfo.endTimeStr}}</view>
</view> </view>
</view> </view>
</view>
\ No newline at end of file \ No newline at end of file
</view>
<van-popup model:show="{{showViolationReason}}" round bind:close="closePopup" close-on-click-overlay="{{false}}">
<view class="violation-reason-popup">
<view class="violation-reason-title">处理意见</view>
<view class="violation-reason-content">{{itemInfo.violationReason}}</view>
<view class="violation-reason-btn" bindtap="closePopup">知道了</view>
</view>
</van-popup>
\ No newline at end of file \ No newline at end of file
Component({
/**
* 组件的属性列表
*/
properties: {
tabList: Array,
defaultIndex: {
type: Number,
value: -1,
observer(n) {
this.setData({
tabIndex: n
})
}
}
},
/**
* 组件的初始数据
*/
data: {
tabIndex: 0
},
/**
* 组件的方法列表
*/
methods: {
change(e) {
const {
index,
item
} = e.currentTarget.dataset
this.setData({
tabIndex: index
})
this.triggerEvent('click', item)
}
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/index/components/recordTab/recordTab.wxss */
.record-tab {
width: 100%;
height: var(--fontSize88);
display: flex;
box-sizing: border-box;
padding: 0 var(--fontSize40);
&-item {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
flex-shrink: 0;
color: #5a5e66;
font-size: var(--fontSize28);
font-weight: 700;
text-align: center;
position: relative;
transition: all .15s;
}
.active {
color: #347bff;
&::after {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
content: '';
width: var(--fontSize64);
height: var(--fontSize4);
border-radius:var(--fontSize2) var(--fontSize2) 0 0;
background: #347bff;
}
}
}
\ No newline at end of file \ No newline at end of file
<view class="record-tab">
<block wx:for="{{tabList}}" wx:key="index">
<view class="record-tab-item {{tabIndex==index?'active':''}}" bindtap="change" data-index="{{index}}" data-item="{{item}}">
{{ item.text }}
</view>
</block>
</view>
\ No newline at end of file \ No newline at end of file
...@@ -206,6 +206,20 @@ Component({ ...@@ -206,6 +206,20 @@ Component({
isShowDefeatBtn: true, // 是否展示录单按钮入口 isShowDefeatBtn: true, // 是否展示录单按钮入口
loaded: false, loaded: false,
track_event_code: 'staff_reception_list', //埋点动作类型 track_event_code: 'staff_reception_list', //埋点动作类型
violationStatus: 1, //默认疑似违规
recordTabList: [{
text: '疑似违规',
value: 1
},
{
text: '未违规',
value: 0
},
{
text: '已违规',
value: 2
}
]
}, },
lifetimes: { lifetimes: {
...@@ -412,7 +426,8 @@ Component({ ...@@ -412,7 +426,8 @@ Component({
searchForm, searchForm,
isFilterDefeat, isFilterDefeat,
isFilterUpgrade, isFilterUpgrade,
storeRangeList storeRangeList,
violationStatus
} = this.data } = this.data
let userInfo = wx.$util.getUserInfo() || {}; let userInfo = wx.$util.getUserInfo() || {};
// 获取当前时间的时间戳 // 获取当前时间的时间戳
...@@ -421,6 +436,7 @@ Component({ ...@@ -421,6 +436,7 @@ Component({
let sevenDaysAgoDate = new Date().format('yyyy-MM-dd') let sevenDaysAgoDate = new Date().format('yyyy-MM-dd')
if (!searchForm.orderResult?.length) searchForm.orderResult = (isFilterDefeat ? [2] : []).concat(isFilterUpgrade ? [1] : []) if (!searchForm.orderResult?.length) searchForm.orderResult = (isFilterDefeat ? [2] : []).concat(isFilterUpgrade ? [1] : [])
let obj = { let obj = {
violationStatus,
startDateTime: searchForm?.startDateTime || new Date(sevenDaysAgoTimestamp).format('yyyy-MM-dd'), startDateTime: searchForm?.startDateTime || new Date(sevenDaysAgoTimestamp).format('yyyy-MM-dd'),
endDateTime: searchForm?.endDateTime || sevenDaysAgoDate, endDateTime: searchForm?.endDateTime || sevenDaysAgoDate,
customerName: searchForm?.customerName || '', customerName: searchForm?.customerName || '',
...@@ -439,10 +455,13 @@ Component({ ...@@ -439,10 +455,13 @@ Component({
}, },
// 详情页面 // 详情页面
goReceptionDetail(e) { goReceptionDetail(e) {
let { let {
item item
} = e.currentTarget.dataset } = e.currentTarget.dataset
wx.$router.go('receptionDetail', item) wx.$router.go('receptionDetail', {
...item,
hideScore:1
})
wx.$track.setTrackData(0, 'reception_detail', { wx.$track.setTrackData(0, 'reception_detail', {
batchId: item.batchId batchId: item.batchId
}, '', 0) }, '', 0)
...@@ -496,14 +515,14 @@ Component({ ...@@ -496,14 +515,14 @@ Component({
sortVal: 11 sortVal: 11
}) })
} }
// if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menuList.every((item) => item.menuText != '积分审批')) { if ((userInfo?.loginRole == 3 || userInfo.loginRole == 5) && menuList.every((item) => item.menuText != '积分审批')) {
// menuList.unshift({ menuList.unshift({
// menuText: "积分审批", menuText: "积分审批",
// path: "pages.pointsReview", path: "pages.pointsReview",
// icon: "points_review", icon: "points_review",
// sortVal: 12 sortVal: 12
// }) })
// } }
// if ( // if (
// userInfo.isSuper && // userInfo.isSuper &&
// menuList.every((item) => item.menuText != "质检管理") // menuList.every((item) => item.menuText != "质检管理")
...@@ -601,8 +620,6 @@ Component({ ...@@ -601,8 +620,6 @@ Component({
return new Promise(resolve => { return new Promise(resolve => {
// if (wx.$receptionLoaded) return // if (wx.$receptionLoaded) return
let userInfo = wx.$util.getUserInfo() || {} let userInfo = wx.$util.getUserInfo() || {}
// 飞行督导角色不展示接待记录(0415四月中版本)
if (userInfo?.loginRole == 6) return
let { let {
menuList menuList
} = this.data } = this.data
...@@ -613,10 +630,10 @@ Component({ ...@@ -613,10 +630,10 @@ Component({
message message
} = res } = res
if (code == 0) { if (code == 0) {
let index = data?.findIndex(v => v.merchantNo == userInfo?.default4SStoreInfo?.merchantId) let index = data?.findIndex(v => v.merchantNo == userInfo?.default4SStoreInfo?.merchantId) //匹配质检门店
// 超管/区域运营/广联销售 // 超管/区域运营3/广联销售5/飞行督导6
if (userInfo.isSuper || index > -1 || userInfo.loginRole === 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) { if (userInfo.isSuper || index > -1 || userInfo.loginRole === 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) {
if (menuList.every((item) => item.menuText != "接待记录")) { if (menuList.every((item) => item.menuText != "接待记录") && userInfo?.loginRole != 6) { // 飞行督导角色不展示接待记录(0415四月中版本)
menuList.push({ menuList.push({
menuText: "接待记录", menuText: "接待记录",
icon: "reception-record-icon", icon: "reception-record-icon",
...@@ -625,10 +642,20 @@ Component({ ...@@ -625,10 +642,20 @@ Component({
sortVal: 4 sortVal: 4
}) })
} }
if (menuList.every((item) => item.menuText != "违规录音处理")) {
menuList.push({
menuText: "违规录音处理",
icon: "illegal-recording",
navigateToUrl: '/packageEquity/pages/receptionRecords/receptionRecords?hideScore=1',
default: true,
sortVal: 10
})
}
this.setData({ this.setData({
storeRangeList: data, storeRangeList: data,
listData: [], listData: [],
nothing: false nothing: false,
showReceive:true
}, () => { }, () => {
this.getReceptionList() this.getReceptionList()
}) })
...@@ -929,14 +956,20 @@ Component({ ...@@ -929,14 +956,20 @@ Component({
// 获取是否是导师 // 获取是否是导师
getIsMentor() { getIsMentor() {
return new Promise(resolve => { return new Promise(resolve => {
let { menuList } = this.data let {
menuList
} = this.data
let userInfo = wx.$util.getUserInfo(); let userInfo = wx.$util.getUserInfo();
if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) return if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) return
commonApi commonApi
.getStaffMentorFlag({ .getStaffMentorFlag({
staffPhone: userInfo?.phone staffPhone: userInfo?.phone
}).then(res => { }).then(res => {
let { code, data, message } = res let {
code,
data,
message
} = res
if (code == 0) { if (code == 0) {
let index = menuList.findIndex((v) => v.menuText == "工作日报"); let index = menuList.findIndex((v) => v.menuText == "工作日报");
if (index > -1) menuList.splice(index, 1); if (index > -1) menuList.splice(index, 1);
...@@ -951,6 +984,7 @@ Component({ ...@@ -951,6 +984,7 @@ Component({
menuList, menuList,
mentorFlag: true mentorFlag: true
}) })
this.extractCheck()
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
...@@ -1317,12 +1351,11 @@ Component({ ...@@ -1317,12 +1351,11 @@ Component({
extractCheck() { extractCheck() {
return new Promise(async resolve => { return new Promise(async resolve => {
let { let {
menuList, menuList
newMenuList
} = this.data } = this.data
let index_d = menuList.findIndex((e) => e.menuText == "话术萃取"); let index_d = menuList.findIndex((e) => e.menuText == "话术萃取");
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
if ((userInfo?.isSuper || userInfo?.loginRole == 6 || userInfo?.loginRole == 3 || this.data.mentorFlag) &&index_d == -1) if ((userInfo?.isSuper || userInfo?.loginRole == 6 || userInfo?.loginRole == 3 || this.data.mentorFlag) && index_d == -1)
menuList.push({ menuList.push({
menuText: "话术萃取", menuText: "话术萃取",
icon: "extract_icon", icon: "extract_icon",
...@@ -1335,7 +1368,7 @@ Component({ ...@@ -1335,7 +1368,7 @@ Component({
}) })
let index_h = menuList.findIndex((e) => e.menuText == "话术核验"); let index_h = menuList.findIndex((e) => e.menuText == "话术核验");
const res = await aiApi.extractCheck({}) const res = await aiApi.extractCheck({})
if (userInfo?.isSuper || res.data && index_h == -1) { if ((userInfo?.isSuper || res.data) && index_h == -1) {
menuList.push({ menuList.push({
menuText: "话术核验", menuText: "话术核验",
icon: "verification_icon", icon: "verification_icon",
...@@ -1348,8 +1381,7 @@ Component({ ...@@ -1348,8 +1381,7 @@ Component({
}) })
} }
this.setData({ this.setData({
menuList, menuList
newMenuList,
}); });
resolve() resolve()
}) })
...@@ -1475,9 +1507,12 @@ Component({ ...@@ -1475,9 +1507,12 @@ Component({
this.back() this.back()
this.getData() this.getData()
}, },
// 查看更多接待记录 // 查看更多违规记录
goPage() { goPage() {
wx.$router.go('packageEquity.receptionRecords') let {violationStatus} = this.data
wx.navigateTo({
url: `/packageEquity/pages/receptionRecords/receptionRecords?hideScore=1&tabValue=${violationStatus}`,
})
wx.$track.setTrackData(0, 'see_more') wx.$track.setTrackData(0, 'see_more')
}, },
onHide() { onHide() {
...@@ -1489,6 +1524,21 @@ Component({ ...@@ -1489,6 +1524,21 @@ Component({
// 飞行督导不展示接待记录暂时取消埋点 // 飞行督导不展示接待记录暂时取消埋点
let userInfo = wx.$util.getUserInfo() || {}; let userInfo = wx.$util.getUserInfo() || {};
if (userInfo?.loginRole != 6) this.onPageHide() if (userInfo?.loginRole != 6) this.onPageHide()
} },
recordTabClick(e) {
let {
value
} = e.detail, {
violationStatus
} = this.data
if (value == violationStatus) return
this.setData({
listData: [],
nothing: false,
violationStatus: value
})
this.getReceptionList()
wx.$track.setTrackData(0, 'staff_reception_search', this.getParams())
},
}, },
}); });
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"task-dialog": "/components/TaskDialog/TaskDialog", "task-dialog": "/components/TaskDialog/TaskDialog",
"record-item": "./components/record-item/recordItem" "record-item": "./components/record-item/recordItem",
"record-tab": "./components/recordTab/recordTab"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -182,10 +182,11 @@ box-shadow: 0 var(--fontSize24) var(--fontSize24) -var(--fontSize12) #d3d9e680 ...@@ -182,10 +182,11 @@ box-shadow: 0 var(--fontSize24) var(--fontSize24) -var(--fontSize12) #d3d9e680
.menu_box { .menu_box {
display: grid; display: grid;
grid-template-columns: repeat(4, var(--fontSize100)); grid-template-columns: repeat(4, minmax(var(--fontSize100),1fr));
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding:var(--fontSize16) var(--fontSize38) 0; padding:var(--fontSize16) 0;
// padding:var(--fontSize16) var(--fontSize38) 0;
background: #FFFFFF; background: #FFFFFF;
border-radius:var(--fontSize16); border-radius:var(--fontSize16);
} }
...@@ -509,6 +510,13 @@ swiper{ ...@@ -509,6 +510,13 @@ swiper{
height: var(--fontSize36); height: var(--fontSize36);
} }
} }
.tab-box{
position: sticky;
top: var(--fontSize80);
left: 0;
z-index: 100;
background: #F7F8FA;
}
.list-box{ .list-box{
padding: 0 var(--fontSize8); padding: 0 var(--fontSize8);
.date-section { .date-section {
...@@ -520,7 +528,7 @@ swiper{ ...@@ -520,7 +528,7 @@ swiper{
align-items: center; align-items: center;
&.sticky-date-section{ &.sticky-date-section{
position: sticky; position: sticky;
top: var(--fontSize80); top: var(--fontSize168);
left: 0; left: 0;
z-index: 1000; z-index: 1000;
} }
...@@ -621,6 +629,7 @@ swiper{ ...@@ -621,6 +629,7 @@ swiper{
background: transparent; background: transparent;
} }
.empty-box{ .empty-box{
padding-top: var(--fontSize14);
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: center; justify-content: center;
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</block> </block>
</view> --> </view> -->
</view> </view>
<view class="receive-list" wx:if="{{storeRangeList.length || userInfo.loginRole== 3 || userInfo.loginRole== 5}}"> <view class="receive-list" wx:if="{{showReceive}}">
<view class="'screen-box' {{showScreen ? '' : 'sticky-screen'}} {{isScrollTop ? 'bg-white' : ''}}"> <view class="'screen-box' {{showScreen ? '' : 'sticky-screen'}} {{isScrollTop ? 'bg-white' : ''}}">
<view> <view>
<!-- <text class="title">接待记录</text> --> <!-- <text class="title">接待记录</text> -->
...@@ -113,12 +113,15 @@ ...@@ -113,12 +113,15 @@
<gl-image webp src="/equity/screen-icon.png" /> <gl-image webp src="/equity/screen-icon.png" />
</view> </view>
</view> </view>
<view class="tab-box">
<record-tab tabList="{{recordTabList}}" bindclick="recordTabClick"></record-tab>
</view>
<view class="list-box"> <view class="list-box">
<block wx:if="{{filter.isShowEmpty(listData)}}"> <block wx:if="{{filter.isShowEmpty(listData)}}">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}"> <block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
<view class="date-section {{showScreen ? '' : 'sticky-date-section'}}"> <view class="date-section {{showScreen ? '' : 'sticky-date-section'}}">
<text class="date">{{item.staticDateStr}}</text> <text class="date">{{item.staticDateStr}}</text>
<scroll-view scroll-x show-scrollbar="{{false}}" class="static"> <!-- <scroll-view scroll-x show-scrollbar="{{false}}" class="static">
<view class="static-warp"> <view class="static-warp">
<view> <view>
<text class="summary-item">交付量 {{item.deliveryVolume}}</text> <text class="summary-item">交付量 {{item.deliveryVolume}}</text>
...@@ -136,7 +139,7 @@ ...@@ -136,7 +139,7 @@
<text class="summary-item blue {{isFilterDefeat ? 'blue-blod' : ''}}" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text> <text class="summary-item blue {{isFilterDefeat ? 'blue-blod' : ''}}" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text>
</view> </view>
</view> </view>
</scroll-view> </scroll-view> -->
</view> </view>
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="time" wx:for-index="subIndex" wx:for-item="record"> <block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="time" wx:for-index="subIndex" wx:for-item="record">
<view class="record-card" bindtap="goReceptionDetail" data-item="{{record}}"> <view class="record-card" bindtap="goReceptionDetail" data-item="{{record}}">
...@@ -145,7 +148,7 @@ ...@@ -145,7 +148,7 @@
<view class="card-line"></view> <view class="card-line"></view>
</view> </view>
<view class="card-item"> <view class="card-item">
<record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}"></record-item> <record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}" hideScore></record-item>
</view> </view>
</view> </view>
</block> </block>
......
...@@ -9,7 +9,8 @@ Component({ ...@@ -9,7 +9,8 @@ Component({
*/ */
properties: { properties: {
recordData: Object, recordData: Object,
batchId: Number batchId: Number,
autoPlayConfig: Object
}, },
lifetimes: { lifetimes: {
ready() { ready() {
...@@ -37,7 +38,11 @@ Component({ ...@@ -37,7 +38,11 @@ Component({
*/ */
data: { data: {
progress: 0, progress: 0,
dialogueList: [] dialogueList: [],
violationStatusEnum: {
1: '疑似违规',
2: '过度承诺'
}
}, },
/** /**
...@@ -110,7 +115,7 @@ Component({ ...@@ -110,7 +115,7 @@ Component({
} = e.currentTarget.dataset, { } = e.currentTarget.dataset, {
activeId activeId
} = this.data } = this.data
if(!item) return if (!item) return
thisPage.seek(item.mergedOffset) thisPage.seek(item.mergedOffset)
this.setTopId(item, scroll) this.setTopId(item, scroll)
if (report) this.setTrackData('dialogue_time_point') if (report) this.setTrackData('dialogue_time_point')
...@@ -173,8 +178,11 @@ Component({ ...@@ -173,8 +178,11 @@ Component({
const { const {
data: dialogueList data: dialogueList
} = await api.post("dj.api.smartcarlife.recepiton.findConversationDetailByBatchId", params), { } = await api.post("dj.api.smartcarlife.recepiton.findConversationDetailByBatchId", params), {
autoPlayConfig,
recordData
} = this.data, {
totalDuration totalDuration
} = this.data.recordData, } = recordData,
userInfo = wx.$util.getUserInfo() || {} userInfo = wx.$util.getUserInfo() || {}
let defenceNum = 1, let defenceNum = 1,
defenceDetailList = [] defenceDetailList = []
...@@ -183,7 +191,6 @@ Component({ ...@@ -183,7 +191,6 @@ Component({
e.time = this.formatTime(e.mergedOffset) e.time = this.formatTime(e.mergedOffset)
e.text_id = `text_${e.id}` e.text_id = `text_${e.id}`
e.showCheckDetail = false e.showCheckDetail = false
if (e.defenceDetail) { if (e.defenceDetail) {
e.defenceTitle = `第${numberToChinese(defenceNum)}次攻防` e.defenceTitle = `第${numberToChinese(defenceNum)}次攻防`
defenceNum++ defenceNum++
...@@ -223,6 +230,7 @@ Component({ ...@@ -223,6 +230,7 @@ Component({
e.appealClass = e.conversationDetailAppealId ? 'appeal-disabled' : '' e.appealClass = e.conversationDetailAppealId ? 'appeal-disabled' : ''
} }
} }
if (autoPlayConfig.auto && e.violationFlag == 1 && !this.autoPlayItem) this.autoPlayItem = e
}) })
this.setData({ this.setData({
flag: true, flag: true,
...@@ -261,6 +269,20 @@ Component({ ...@@ -261,6 +269,20 @@ Component({
// // 更新完成后清除加载提示 // // 更新完成后清除加载提示
wx.$util.hideLoading(); wx.$util.hideLoading();
this.relativeToViewport(); this.relativeToViewport();
let item = this.autoPlayItem
if (item) {
this.setTopId(item, true)
setTimeout(() => {
this.seekPlay({
currentTarget: {
dataset: {
item,
scroll: true
}
}
}, false)
}, 500)
}
}, },
highlightKeyword(highlightedText, keywords) { highlightKeyword(highlightedText, keywords) {
keywords.forEach(keyword => { keywords.forEach(keyword => {
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
display: flex; display: flex;
width: 100%; width: 100%;
background: #F0F6FF; background: #F0F6FF;
height: 80rpx; height: var(--fontSize80);
} }
.avatar-box { .avatar-box {
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
.time { .time {
width: var(--fontSize72); width: var(--fontSize72);
height: var(--fontSize28); height: var(--fontSize28);
line-height: 28rpx; line-height: var(--fontSize28);
background: #FFFFFF; background: #FFFFFF;
border: var(--fontSize2) solid #F0F6FF; border: var(--fontSize2) solid #F0F6FF;
border-radius: var(--fontSize28); border-radius: var(--fontSize28);
...@@ -79,6 +79,39 @@ ...@@ -79,6 +79,39 @@
line-height: var(--fontSize40); line-height: var(--fontSize40);
} }
.color-2,
.color-1 {
font-weight: 700 !important;
display: block;
.violation-text {
width: fit-content;
margin-top: var(--fontSize8);
font-size: var(--fontSize22);
height: var(--fontSize32);
line-height: var(--fontSize32);
border-radius: var(--fontSize16);
padding: 0 var(--fontSize8);
border: var(--fontSize2) solid;
}
}
.color-2 {
color: #FF6053;
.violation-text {
border-color: #ff60531a;
background: #fff4f2;
}
}
.color-1 {
color: #7F80FE;
.violation-text {
border-color: #7f80fe1a;
background: #f2f2fe;
}
}
.appeal-btn { .appeal-btn {
display: none; display: none;
margin-left: var(--fontSize46); margin-left: var(--fontSize46);
...@@ -90,7 +123,7 @@ ...@@ -90,7 +123,7 @@
line-height: var(--fontSize44); line-height: var(--fontSize44);
font-size: var(--fontSize24); font-size: var(--fontSize24);
box-sizing: border-box; box-sizing: border-box;
border: 2rpx solid #F56C50; border: var(--fontSize2) solid #F56C50;
} }
.appeal-disabled { .appeal-disabled {
...@@ -212,7 +245,7 @@ ...@@ -212,7 +245,7 @@
} }
.ai-btn { .ai-btn {
width: 536rpx; width: var(--fontSize536);
padding: var(--fontSize20) 0; padding: var(--fontSize20) 0;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -225,9 +258,9 @@ ...@@ -225,9 +258,9 @@
justify-content: center; justify-content: center;
.icon { .icon {
width: 32rpx; width: var(--fontSize32);
height: 32rpx; height: var(--fontSize32);
margin-right: 8rpx; margin-right: var(--fontSize8);
} }
} }
} }
...@@ -271,7 +304,7 @@ ...@@ -271,7 +304,7 @@
} }
.suggestions-box { .suggestions-box {
margin: 24rpx 0 0; margin: var(--fontSize24) 0 0;
} }
} }
} }
...@@ -339,7 +372,7 @@ ...@@ -339,7 +372,7 @@
height: calc(100% - var(--fontSize140)); height: calc(100% - var(--fontSize140));
transform: translateY(-50%); transform: translateY(-50%);
z-index: 8; z-index: 8;
width: 36rpx; width: var(--fontSize36);
right: -28rpx; right: -28rpx;
.axis-bar { .axis-bar {
...@@ -347,7 +380,7 @@ ...@@ -347,7 +380,7 @@
top: 0; top: 0;
left: 0; left: 0;
// right: -8rpx; // right: -8rpx;
width: 16rpx; width: var(--fontSize16);
height: 100%; height: 100%;
background-color: #E7E7E7; background-color: #E7E7E7;
border-radius: var(--fontSize8); border-radius: var(--fontSize8);
...@@ -368,7 +401,7 @@ ...@@ -368,7 +401,7 @@
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
z-index: -1; z-index: -1;
width: 8rpx; width: var(--fontSize8);
} }
.yellow-tag { .yellow-tag {
...@@ -408,15 +441,20 @@ ...@@ -408,15 +441,20 @@
left: 50%; left: 50%;
top: 0; top: 0;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 20rpx; width: var(--fontSize20);
height: 20rpx; height: var(--fontSize20);
background: #FFFFFF; background: #FFFFFF;
border: var(--fontSize4) solid transparent; border: var(--fontSize4) solid transparent;
box-shadow: 0 var(--fontSize4) var(--fontSize16) 0 #7a7a7a33; box-shadow: 0 var(--fontSize4) var(--fontSize16) 0 #7a7a7a33;
border-radius: 100%; border-radius: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
.default-axis-dot{
width: var(--fontSize36);
height: var(--fontSize36);
border: var(--fontSize6) solid #347BFF;
z-index: 9;
}
.axis-text { .axis-text {
position: absolute; position: absolute;
right: var(--fontSize20); right: var(--fontSize20);
...@@ -425,7 +463,7 @@ ...@@ -425,7 +463,7 @@
display: inline-block; display: inline-block;
height: var(--fontSize36); height: var(--fontSize36);
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
padding: 0 22rpx 0 12rpx; padding: 0 var(--fontSize22) 0 var(--fontSize12);
transform: translateY(-50%); transform: translateY(-50%);
white-space: nowrap; white-space: nowrap;
/* 防止文本换行 */ /* 防止文本换行 */
...@@ -477,8 +515,8 @@ ...@@ -477,8 +515,8 @@
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
background-color: #fff; background-color: #fff;
width: 26rpx; width: var(--fontSize26);
height: 26rpx; height: var(--fontSize26);
} }
} }
...@@ -491,7 +529,7 @@ ...@@ -491,7 +529,7 @@
color: #FFFFFF !important; color: #FFFFFF !important;
background-color: #347BFF !important; background-color: #347BFF !important;
border-radius: var(--fontSize16) 0 0 var(--fontSize16); border-radius: var(--fontSize16) 0 0 var(--fontSize16);
right: 18rpx; right: var(--fontSize18);
z-index: 2; z-index: 2;
} }
...@@ -507,8 +545,8 @@ ...@@ -507,8 +545,8 @@
position: absolute; position: absolute;
top: 50%; top: 50%;
right: 100%; right: 100%;
width: 80rpx; width: var(--fontSize80);
height: 40rpx; height: var(--fontSize40);
transform: translateY(-50%); transform: translateY(-50%);
} }
} }
......
// packageEquity/pages/receptionDetail/components/violationPopup/violationPopup.js
import api from "~/utils/request/request.js";
Component({
/**
* 组件的属性列表
*/
properties: {
batchId:Number,
show: {
type: Boolean,
value: false,
observer(n) {
this.setData({
violationReason: '',
wghsStatus: 2
})
}
}
},
/**
* 组件的初始数据
*/
data: {
radioList: [{
text: '已违规',
value: 2
},
{
text: '未违规',
value: 0
},
],
violationReason: '',
wghsStatus: 2
},
/**
* 组件的方法列表
*/
methods: {
async confirm() {
if (this.submitStatus) return
try {
wx.$util.showLoading('提交中...')
this.submitStatus = true
const {
violationReason,
wghsStatus,
batchId
} = this.data, {
data,
code,
message
} = await api.post('dj.api.smartcarlife.recepiton.violationConfirmation', {
batchId,
wghsStatus,
violationReason
})
if (code == 0) {
if (data) {
this.submitStatus = false
wx.hideLoading()
wx.showToast({
title: '录音已确认完成',
mask: true
})
setTimeout(() => {
this.setData({
show: false
})
wx.$router.back(page => {
page.refreshListData && page.refreshListData()
})
}, 1500)
} else throw message
} else throw message
} catch (error) {
wx.hideLoading()
wx.$util.showToast(error)
this.submitStatus = false
}
},
bindKeyInput(e) {
let {
value
} = e.detail
this.setData({
violationReason: value
})
},
change(e) {
let {
value
} = e.currentTarget.dataset
this.setData({
wghsStatus: value
})
}
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/receptionDetail/components/violationPopup/violationPopup.wxss */
.content {
.title {
color: #222222;
font-size: 28rpx;
padding: 32rpx 0 12rpx;
}
.radio-box {
height: 80rpx;
border-radius: 8rpx;
background: #f7f8fa;
display: flex;
align-items: center;
padding: 0 12rpx;
gap: 0 60rpx;
.radio {
display: flex;
align-items: center;
color: #292d33;
font-size: 28rpx;
transition: all .15s;
.arc {
width: 32rpx;
height: 32rpx;
border: 2rpx solid #d0d2d6;
box-sizing: border-box;
border-radius: 100%;
margin-right: 20rpx;
transition: all .15s;
}
}
.active {
color: #347bff;
.arc {
border: 11rpx solid #347bff;
}
}
}
.textarea {
height: 572rpx;
box-sizing: border-box;
padding: 24rpx;
border-radius: 12rpx;
background: #f4f5f7;
border: 2rpx solid #eff0f2;
}
}
\ No newline at end of file \ No newline at end of file
<!--tabWorkOrder/pages/mentorshipManage/components/businessSelectPopup/businessSelectPopup.wxml-->
<popup title="疑似违规确认" model:show="{{ show }}" bindconfirm="confirm" height="70vh" bindcancel="hidePopup">
<view class="content">
<view class="title">
请确认此录音是否违规
</view>
<view class="radio-box">
<block wx:for="{{radioList}}" wx:key="index">
<view class="radio {{wghsStatus == item.value ?'active':''}}" bindtap="change" data-value="{{item.value}}">
<view class="arc"></view>
{{item.text}}
</view>
</block>
</view>
<view class="title">请输入您的处理意见</view>
<view class="textarea">
<gl-textarea bindinput="bindKeyInput" maxlength="{{200}}" value="{{violationReason}}" placeholderColor="#3333334d" placeholder="请输入" color="#292d33" textStyle="font-size:28rpx;line-height:32rpx;" />
</view>
</view>
</popup>
\ No newline at end of file \ No newline at end of file
...@@ -157,9 +157,22 @@ Page({ ...@@ -157,9 +157,22 @@ Page({
this.track_businessParam = { this.track_businessParam = {
batchId: options.batchId batchId: options.batchId
} //埋点业务参数 } //埋点业务参数
let {
typeLists
} = this.data,
showViolationBtn = false,
autoPlayConfig = {}
if(options.hideScore && options.violationStatus == 1){
showViolationBtn = true
autoPlayConfig = {
auto:true
}
}
this.setData({ this.setData({
record: options record: options,
typeLists: options.hideScore ? typeLists.splice(0, 1) : typeLists,
showViolationBtn,
autoPlayConfig
}, () => { }, () => {
this.setAudio() this.setAudio()
}) })
...@@ -174,7 +187,7 @@ Page({ ...@@ -174,7 +187,7 @@ Page({
0: 'dialogue', 0: 'dialogue',
1: 'quality_inspection', 1: 'quality_inspection',
2: 'offense_and_defense' 2: 'offense_and_defense'
}[index]) } [index])
this.setData({ this.setData({
activeIndex: index activeIndex: index
}) })
...@@ -192,7 +205,19 @@ Page({ ...@@ -192,7 +205,19 @@ Page({
wx.$util.getViewInfo('.reception-wrap', ({ wx.$util.getViewInfo('.reception-wrap', ({
height height
}) => { }) => {
this.setData({ let {
showViolationBtn,
userInfo
} = this.data
if (showViolationBtn && (userInfo.isSuper || userInfo.loginRole == 3 || userInfo.loginRole == 6)) {
wx.$util.getViewInfo('.violation-btn-box', ({
height: btnHeight
}) => {
this.setData({
receptionWrapHeight: `${(height + btnHeight) * 2}rpx`
})
})
} else this.setData({
receptionWrapHeight: `${height * 2}rpx` receptionWrapHeight: `${height * 2}rpx`
}) })
}) })
...@@ -212,7 +237,7 @@ Page({ ...@@ -212,7 +237,7 @@ Page({
1: '成交', 1: '成交',
2: '战败', 2: '战败',
3: '未知' 3: '未知'
}[record.orderStatus], { } [record.orderStatus], {
endTime, endTime,
totalDuration, totalDuration,
fileUrl, fileUrl,
...@@ -246,6 +271,11 @@ Page({ ...@@ -246,6 +271,11 @@ Page({
keepScreenOn keepScreenOn
}) })
}, },
violationPopupToggle() {
this.setData({
showViolationPopup: true
})
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
"quality": "./components/quality/index", "quality": "./components/quality/index",
"attack":"./components/attack/index", "attack":"./components/attack/index",
"record-item": "../index/components/record-item/recordItem", "record-item": "../index/components/record-item/recordItem",
"dialogue":"./components/dialogue/dialogue" "dialogue":"./components/dialogue/dialogue",
"violation-popup":"./components/violationPopup/violationPopup"
}, },
"navigationStyle": "custom" "navigationStyle": "custom"
} }
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/receptionDetail/receptionDetail.wxss */ /* packageEquity/pages/receptionDetail/receptionDetail.wxss */
page { page {
background-color: #FAFAFA !important; background-color: #FAFAFA !important;
overflow:hidden; overflow: hidden;
} }
.navigation-title { .navigation-title {
font-weight: 500; font-weight: 500;
font-size: var(--fontSize36); font-size: var(--fontSize30);
color: #282829; color: #282829;
line-height: var(--fontSize44); line-height: var(--fontSize44);
width: var(--fontSize360); width: var(--fontSize360);
...@@ -58,9 +58,10 @@ page { ...@@ -58,9 +58,10 @@ page {
color: #5A5E66; color: #5A5E66;
font-weight: 400; font-weight: 400;
text-align: center; text-align: center;
.avg{
font-size: var(--fontSize20); .avg {
font-family: 'numberNor'; font-size: var(--fontSize20);
font-family: 'numberNor';
} }
} }
...@@ -98,11 +99,27 @@ page { ...@@ -98,11 +99,27 @@ page {
font-weight: 400; font-weight: 400;
font-size: var(--fontSize26); font-size: var(--fontSize26);
color: #757980; color: #757980;
margin-left:var(--fontSize4); margin-left: var(--fontSize4);
} }
} }
} }
} }
.type-wrap{
.type-wrap {
padding: 0 var(--fontSize28); padding: 0 var(--fontSize28);
}
.violation-btn-box {
padding: 40rpx 64rpx;
.violation-btn {
color: #ffffff;
font-size: 32rpx;
font-weight: 500;
height: 88rpx;
border-radius: 12rpx;
background: #347bff;
line-height: 88rpx;
text-align: center;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -6,11 +6,15 @@ ...@@ -6,11 +6,15 @@
<view class="bg"></view> <view class="bg"></view>
<view class="reception-wrap" style="padding-top:{{ navBarHeight }}px;position: relative;"> <view class="reception-wrap" style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="reception-info" wx:if="{{record}}"> <view class="reception-info" wx:if="{{record}}">
<record-item record="{{record}}"></record-item> <record-item record="{{record}}" hideScore="{{record.hideScore}}" showReason="{{record.violationReason}}"></record-item>
</view> </view>
<view class="reception-nav"> <view class="reception-nav">
<view class="reception-types"> <view class="reception-types">
<view class="type {{activeIndex==index?'active':''}}" wx:for="{{typeLists}}" data-index="{{index}}" bind:tap="changeType">{{item}}<text class="avg" wx:if="{{activeIndex==index&&avgDefence!==''}}" wx:key="index">{{avgDefence}}分</text></view> <block wx:for="{{typeLists}}" wx:key="index">
<view class="type {{activeIndex==index?'active':''}}" data-index="{{index}}" bind:tap="changeType">{{item}}
<text class="avg" wx:if="{{activeIndex==index&&avgDefence!==''}}" >{{avgDefence}}分</text>
</view>
</block>
</view> </view>
<view class="reception-operate"> <view class="reception-operate">
<gl-image class="img share" webp src="/equity/share-icon.png" bind:tap="share" /> <gl-image class="img share" webp src="/equity/share-icon.png" bind:tap="share" />
...@@ -26,9 +30,16 @@ ...@@ -26,9 +30,16 @@
<view class="type-wrap" style="height:calc(100vh - {{receptionWrapHeight}})"> <view class="type-wrap" style="height:calc(100vh - {{receptionWrapHeight}})">
<block wx:if="{{receptionWrapHeight && activeIndex != -1}}"> <block wx:if="{{receptionWrapHeight && activeIndex != -1}}">
<view hidden="{{activeIndex ==1||activeIndex == 2}}" style="height:calc(100vh - {{receptionWrapHeight}})"> <view hidden="{{activeIndex ==1||activeIndex == 2}}" style="height:calc(100vh - {{receptionWrapHeight}})">
<dialogue id="dialogue" bindplay="play" bindpause="onPause" recordData="{{record}}" batchId="{{record.batchId}}"></dialogue> <dialogue id="dialogue" bindplay="play" bindpause="onPause" recordData="{{record}}" batchId="{{record.batchId}}" autoPlayConfig="{{autoPlayConfig}}"></dialogue>
</view> </view>
<quality id="quality" wx:if="{{activeIndex==1}}" batchId="{{record.batchId}}"></quality> <quality id="quality" wx:if="{{activeIndex==1}}" batchId="{{record.batchId}}"></quality>
<attack wx:elif="{{activeIndex==2}}" defenceResultFlag="{{record.defenceResultFlag}}" batchId="{{record.batchId}}"></attack> <attack wx:elif="{{activeIndex==2}}" defenceResultFlag="{{record.defenceResultFlag}}" batchId="{{record.batchId}}"></attack>
</block> </block>
</view>
\ No newline at end of file \ No newline at end of file
</view>
<block wx:if="{{showViolationBtn && (userInfo.isSuper || userInfo.loginRole == 3 || userInfo.loginRole == 6)}}">
<view class="violation-btn-box">
<view class="violation-btn" bindtap="violationPopupToggle">去确认</view>
</view>
</block>
<violation-popup model:show="{{showViolationPopup}}" batchId="{{record.batchId}}"></violation-popup>
\ No newline at end of file \ No newline at end of file
...@@ -11,6 +11,7 @@ Page({ ...@@ -11,6 +11,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
navBarTitle: '加载中...',
navBarHeight: 113.5, navBarHeight: 113.5,
show_reception_confirm: false, show_reception_confirm: false,
showReceptionRendering: false, showReceptionRendering: false,
...@@ -23,12 +24,41 @@ Page({ ...@@ -23,12 +24,41 @@ Page({
isShowDefeatBtn: true, isShowDefeatBtn: true,
loaded: false, loaded: false,
track_event_code: 'staff_reception_list', //埋点动作类型 track_event_code: 'staff_reception_list', //埋点动作类型
violationStatus: 1, //默认疑似违规
tabIndex: 0,
recordTabList: [{
text: '疑似违规',
value: 1
},
{
text: '未违规',
value: 0
},
{
text: '已违规',
value: 2
}
]
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
if (options.hideScore) {
let {
recordTabList
} = this.data,
tabIndex = recordTabList.findIndex(e => e.value == options.tabValue),
violationStatus = 1
if(options.tabValue != null) violationStatus = options.tabValue
if(tabIndex == -1) tabIndex = 0
this.setData({
hideScore: true,
tabIndex,
violationStatus
})
}
let userInfo = wx.$util.getUserInfo() || {} let userInfo = wx.$util.getUserInfo() || {}
if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) this.setData({ if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) this.setData({
showEmployeeName: true, showEmployeeName: true,
...@@ -36,7 +66,8 @@ Page({ ...@@ -36,7 +66,8 @@ Page({
}) })
// 超管获取所有质检门店/员工 // 超管获取所有质检门店/员工
this.setData({ this.setData({
nothing: false nothing: false,
navBarTitle: options.hideScore ? '违规录音处理' : (userInfo && (userInfo.isSuper || userInfo.loginRole == 3 || userInfo.loginRole == 5 || userInfo.loginRole == 6)) ? '接待记录' : (userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName)
}) })
if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) { if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) {
this.getStoreList() this.getStoreList()
...@@ -68,13 +99,15 @@ Page({ ...@@ -68,13 +99,15 @@ Page({
searchForm, searchForm,
isFilterDefeat, isFilterDefeat,
isFilterUpgrade, isFilterUpgrade,
storeRangeList storeRangeList,
violationStatus
} = this.data } = this.data
let userInfo = wx.$util.getUserInfo() || {}; let userInfo = wx.$util.getUserInfo() || {};
const now = new Date(); const now = new Date();
const threeMonthsAgo = new Date(now.getFullYear(), now.getMonth() - 3, now.getDate() + 1) const threeMonthsAgo = new Date(now.getFullYear(), now.getMonth() - 3, now.getDate() + 1)
if (!searchForm.orderResult?.length) searchForm.orderResult = (isFilterDefeat ? [2] : []).concat(isFilterUpgrade ? [1] : []) if (!searchForm.orderResult?.length) searchForm.orderResult = (isFilterDefeat ? [2] : []).concat(isFilterUpgrade ? [1] : [])
let obj = { let obj = {
violationStatus,
startDateTime: searchForm?.startDateTime || new Date(threeMonthsAgo).format('yyyy-MM-dd'), startDateTime: searchForm?.startDateTime || new Date(threeMonthsAgo).format('yyyy-MM-dd'),
endDateTime: searchForm?.endDateTime || now.format('yyyy-MM-dd'), endDateTime: searchForm?.endDateTime || now.format('yyyy-MM-dd'),
customerName: searchForm?.customerName || '', customerName: searchForm?.customerName || '',
...@@ -294,9 +327,14 @@ Page({ ...@@ -294,9 +327,14 @@ Page({
}, },
goto(e) { goto(e) {
let { let {
hideScore
} = this.data, {
record record
} = e.currentTarget.dataset } = e.currentTarget.dataset
wx.$router.go('packageEquity.receptionDetail', record) wx.$router.go('packageEquity.receptionDetail', {
...record,
hideScore
})
wx.$track.setTrackData(0, 'reception_detail', { wx.$track.setTrackData(0, 'reception_detail', {
batchId: record.batchId batchId: record.batchId
}) })
...@@ -304,7 +342,21 @@ Page({ ...@@ -304,7 +342,21 @@ Page({
back() { back() {
wx.$router.back() wx.$router.back()
}, },
recordTabClick(e) {
let {
value
} = e.detail, {
violationStatus
} = this.data
if (value == violationStatus) return
this.setData({
listData: [],
nothing: false,
violationStatus: value
})
this.getReceptionList()
wx.$track.setTrackData(0, 'staff_reception_search', this.getParams())
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
......
{ {
"usingComponents": { "usingComponents": {
"reception-screen": "../index/components/receptionScreen/receptionScreen", "reception-screen": "../index/components/receptionScreen/receptionScreen",
"record-item": "../index/components/record-item/recordItem" "record-item": "../index/components/record-item/recordItem",
"record-tab": "../index/components/recordTab/recordTab"
}, },
"navigationStyle": "custom" "navigationStyle": "custom"
} }
\ No newline at end of file \ No newline at end of file
...@@ -47,6 +47,9 @@ ...@@ -47,6 +47,9 @@
height: var(--fontSize36); height: var(--fontSize36);
} }
} }
.tab-box{
background: #fff;
}
.list-box{ .list-box{
.box-content{ .box-content{
position: relative; position: relative;
...@@ -58,7 +61,7 @@ ...@@ -58,7 +61,7 @@
height: var(--fontSize72); height: var(--fontSize72);
line-height: var(--fontSize70); line-height: var(--fontSize70);
padding-left: var(--fontSize32); padding-left: var(--fontSize32);
background: #F7F8FA; background: #f7f8fa;
display: flex; display: flex;
align-items: center; align-items: center;
position: sticky; position: sticky;
......
...@@ -6,11 +6,12 @@ ...@@ -6,11 +6,12 @@
<block wx:else> <block wx:else>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack navStyle="{{'background-color: #FFFFFF;box-shadow:none;' }}" bindback="back"> <navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack navStyle="{{'background-color: #FFFFFF;box-shadow:none;' }}" bindback="back">
<view class="navigation-title"> <view class="navigation-title">
<view class="navigation-title-text text-hide">{{(userInfo && (userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6)) ? '接待记录' : (userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName)}}</view> <view class="navigation-title-text text-hide">{{navBarTitle}}</view>
</view> </view>
</navigation-bar> </navigation-bar>
</block> </block>
<view class="records-page" style="padding-top:{{ navBarHeight }}px;position: relative;"> <view class="records-page" style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="screen-box"> <view class="screen-box">
<view> <view>
<!-- <text class="title">接待记录</text> --> <!-- <text class="title">接待记录</text> -->
...@@ -21,31 +22,38 @@ ...@@ -21,31 +22,38 @@
<gl-image webp src="/equity/screen-icon.png" /> <gl-image webp src="/equity/screen-icon.png" />
</view> </view>
</view> </view>
<scroll-view scroll-y class="list-box" enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="refreshListData" bindscrolltolower="onBottomRefresh" style="height: calc(100% - var(--fontSize80));" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}"> <block wx:if="{{hideScore}}">
<view class="tab-box">
<record-tab tabList="{{recordTabList}}" bindclick="recordTabClick" defaultIndex="{{tabIndex}}"></record-tab>
</view>
</block>
<scroll-view scroll-y class="list-box" enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="refreshListData" bindscrolltolower="onBottomRefresh" style="height: calc(100% - var(--fontSize168));" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<view class="box-content {{!filter.isShowEmpty(listData) ? 'empty-contant' : ''}}"> <view class="box-content {{!filter.isShowEmpty(listData) ? 'empty-contant' : ''}}">
<block wx:if="{{filter.isShowEmpty(listData)}}"> <block wx:if="{{filter.isShowEmpty(listData)}}">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}"> <block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
<view class="date-section"> <view class="date-section">
<view class="date">{{item.staticDateStr}}</view> <view class="date">{{item.staticDateStr}}</view>
<scroll-view scroll-x show-scrollbar="{{false}}" class="static"> <block wx:if="{{!hideScore}}">
<view class="static-warp"> <scroll-view scroll-x show-scrollbar="{{false}}" class="static">
<view> <view class="static-warp">
<text class="summary-item">交付量 {{item.deliveryVolume}}</text> <view>
<text class="line"></text> <text class="summary-item">交付量 {{item.deliveryVolume}}</text>
</view> <text class="line"></text>
<view> </view>
<text class="summary-item">触客数 {{item.customerContacts}}</text> <view>
<text class="line"></text> <text class="summary-item">触客数 {{item.customerContacts}}</text>
</view> <text class="line"></text>
<view> </view>
<text class="summary-item blue {{isFilterUpgrade ? 'blue-blod' : ''}}" data-type="upgrade" bindtap="filterItemData">升级 {{item.upgrades}}</text> <view>
<text class="line"></text> <text class="summary-item blue {{isFilterUpgrade ? 'blue-blod' : ''}}" data-type="upgrade" bindtap="filterItemData">升级 {{item.upgrades}}</text>
<text class="line"></text>
</view>
<view>
<text class="summary-item blue {{isFilterDefeat ? 'blue-blod' : ''}}" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text>
</view>
</view> </view>
<view> </scroll-view>
<text class="summary-item blue {{isFilterDefeat ? 'blue-blod' : ''}}" data-type="defeat" bindtap="filterItemData">战败 {{item.losses}}</text> </block>
</view>
</view>
</scroll-view>
</view> </view>
<block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="subIndex" wx:for-index="subIndex" wx:for-item="record"> <block wx:for="{{item.receptionStaticInfoDTOList}}" wx:key="subIndex" wx:for-index="subIndex" wx:for-item="record">
<view class="record-card" bind:tap="goto" data-record="{{record}}"> <view class="record-card" bind:tap="goto" data-record="{{record}}">
...@@ -54,7 +62,7 @@ ...@@ -54,7 +62,7 @@
<view class="card-line"></view> <view class="card-line"></view>
</view> </view>
<view class="card-item" wx:key="subIndex"> <view class="card-item" wx:key="subIndex">
<record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}"></record-item> <record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}" hideScore="{{hideScore}}"></record-item>
</view> </view>
</view> </view>
</block> </block>
......
...@@ -15,12 +15,13 @@ Page({ ...@@ -15,12 +15,13 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { }, onLoad(options) {
if (options.scene) {
this.scene = options.scene
this.getSceneById(options.scene)
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -29,55 +30,76 @@ Page({ ...@@ -29,55 +30,76 @@ Page({
this.initData() this.initData()
}, },
/**
* 生命周期函数--监听页面隐藏
*/
onHide() { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload() { },
/** initData(auto = true, navigateParams) {
* 页面相关事件处理函数--监听用户下拉动作 try {
*/ if (this.scene && auto) return //有scene return
onPullDownRefresh() { }, let userInfo = wx.$util.getUserInfo()
wx.nextTick(() => {
// 没有登录信息 退出登录
if (!userInfo || !Object.keys(userInfo).length) {
return app.login(false, '请重新登录')
}
/** // 未选择4s店 非超管
* 页面上拉触底事件的处理函数 if ((userInfo?.shopMerchantId ?? '') === '' && !userInfo?.isSuper && userInfo?.loginRole != 3 && userInfo?.loginRole != 6) return wx.$router.reLaunch('pages.accountItems')
*/ // 未选择场景
onReachBottom() { }, if ((userInfo?.sceneType ?? '') === '') return wx.$router.reLaunch('pages.sceneIndex')
userInfo?.sceneType == 0 && wx.$track.setTrackData(0, 'user_login', {
merchantId: userInfo?.shopMerchantId,
merchantName: userInfo?.shopMerchantName,
sceneType: userInfo?.sceneType,
}, '', 0)
// 登录了更新用户权限
app.gobalCheckYqdSuper(userInfo)
/**scene有链接时跳转 */
let now = new Date()
api.loginRecordSave({
staffUuid: userInfo.uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId: userInfo?.shopMerchantId,
merchantName: userInfo?.shopMerchantName,
}, 'loading')
if (navigateParams && navigateParams.url) {
if (navigateParams.sceneType != null && navigateParams.shopMerchantId && (navigateParams.sceneType != userInfo.sceneType || navigateParams.shopMerchantId != userInfo.shopMerchantId)) {
return app.login(false, '请重新登录')
}
wx.$router._to(navigateParams.url, navigateParams, 'reLaunch')
return
}
if (!((userInfo?.sceneType ?? '') === '')) return wx.$router.reLaunch(constantData?.pageUrl[userInfo?.sceneType], {
resetStoreList: true
})
initData() {
let userInfo = wx.$util.getUserInfo()
wx.nextTick(() => {
// 没有登录信息 退出登录
if (!userInfo || !Object.keys(userInfo).length) {
return app.login(false, '请重新登录')
}
// 未选择4s店 非超管
if ((userInfo?.shopMerchantId ?? '') === '' && !userInfo?.isSuper && userInfo?.loginRole != 3 && userInfo?.loginRole != 6) return wx.$router.reLaunch('pages.accountItems')
// 未选择场景
if ((userInfo?.sceneType ?? '') === '') return wx.$router.reLaunch('pages.sceneIndex')
userInfo?.sceneType == 0 && wx.$track.setTrackData(0, 'user_login', {
merchantId: userInfo?.shopMerchantId,
merchantName: userInfo?.shopMerchantName,
sceneType: userInfo?.sceneType,
}, '', 0)
// 登录了更新用户权限
app.gobalCheckYqdSuper(userInfo)
let now = new Date()
api.loginRecordSave({
staffUuid: userInfo.uuid,
loginTime: now.format('yyyy-MM-dd hh:mm:ss'),
merchantId: userInfo?.shopMerchantId,
merchantName: userInfo?.shopMerchantName,
}, 'loading')
if (!((userInfo?.sceneType ?? '') === '')) return wx.$router.reLaunch(constantData?.pageUrl[userInfo?.sceneType], {
resetStoreList: true
}) })
} catch (error) {
console.log(error)
}
},
}) async getSceneById(scene) {
const id = decodeURIComponent(scene).split('=').at(-1)
try {
const {
message,
code,
data
} = await api.getSceneById({
id,
channelType: 1
})
if (code == 0 && data) {
const options = {}
data.split('&').map(item => {
const [key, val] = item.split('=')
options[key] = val
})
this.initData(false, options)
} else throw message
} catch (error) {
console.log(error)
wx.$util.showToast(error || '获取scene失败')
this.initData(false)
}
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
</block> </block>
</view> </view>
<view class="order-list"> <view class="order-list">
<block wx:for="{{ orderObj }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i"> <block wx:for="{{li.deliveryUserId? pointsMultiObj:orderObj }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
<view class="order"> <view class="order">
<view class="order-label">{{i.label}}</view> <view class="order-label">{{i.label}}</view>
<view class="order-value"> <view class="order-value">
......
import Router from './router.js' import Router from './router.js'
import routes from './routers.js' import routes from './routers.js'
import routerBefore from './routerBefore'
export default new Router(routes) export default new Router(routes)
\ No newline at end of file \ No newline at end of file
...@@ -16,7 +16,7 @@ const generateRoutList = routerList => { ...@@ -16,7 +16,7 @@ const generateRoutList = routerList => {
isTab: __wxConfig.tabBar.list.some(({ pagePath }) => item.url.includes(pagePath.replace('.html', ''))) isTab: __wxConfig.tabBar.list.some(({ pagePath }) => item.url.includes(pagePath.replace('.html', '')))
} }
})) }))
} catch (err) {} } catch (err) { }
return _routerList return _routerList
} }
class Router { class Router {
...@@ -55,6 +55,7 @@ class Router { ...@@ -55,6 +55,7 @@ class Router {
thisPage.showLoading = util.showLoading thisPage.showLoading = util.showLoading
thisPage.hideLoading = util.hideLoading thisPage.hideLoading = util.hideLoading
// 用来处理兼容iphoneX的底部的横条 // 用来处理兼容iphoneX的底部的横条
console.log(util.isFullSucreen(), 'util.isFullSucreen()');
thisPage.setData({ thisPage.setData({
isFullSucreen: util.isFullSucreen() isFullSucreen: util.isFullSucreen()
}) })
...@@ -148,7 +149,7 @@ class Router { ...@@ -148,7 +149,7 @@ class Router {
*/ */
go(route, events) { go(route, events) {
// console.log(route); // console.log(route);
if(route.startsWith('/')) return wx.navigateTo({ if (route.startsWith('/')) return wx.navigateTo({
url: route, url: route,
success(res) { success(res) {
if (events) res.eventChannel.emit('getData', events) if (events) res.eventChannel.emit('getData', events)
...@@ -213,6 +214,14 @@ class Router { ...@@ -213,6 +214,14 @@ class Router {
if (i > -1) list.splice(i, 1) if (i > -1) list.splice(i, 1)
} }
} }
_to(route, events, to, success) {
getApp().globalData.ROUTE_QUERY = events
wx[to]({
url: route,
success
})
}
} }
export default Router export default Router
class RouterBefore {
constructor(options) {
console.log('---------------- 路由初始化 ----------------')
this.initPageProxy()
}
/**监听页面 */
pageLeaveProxy(thisPage) {
let onLoad = thisPage.onLoad,
onShow = thisPage.onShow
thisPage.onLoad = function () {
const event = getApp().globalData.ROUTE_QUERY
const userInfo = wx.$util.getUserInfo()
let options = {
...event,
...arguments[0]
}
getApp().globalData.ROUTE_QUERY = {}
this.setData({
userInfo
})
onLoad && onLoad.apply(this, [options]), (this.options = options)
}
thisPage.onShow = function () {
const userInfo = wx.$util.getUserInfo()
onShow && onShow.apply(this, arguments), (this.setData({
userInfo
}))
}
}
/**全局注册事件 */
initPageProxy() {
let thisPage = Page
let _this = this
Page = function (el) {
try {
el || (el = {}), _this.pageLeaveProxy(el), thisPage.apply(this, arguments)
} catch (el) {
thisPage.apply(this, arguments)
}
}
}
}
export default new RouterBefore()
\ No newline at end of file \ No newline at end of file
// tabIndex/components/recordingOrderPopup/recordingOrderPopup.js // tabIndex/components/recordingOrderPopup/recordingOrderPopup.js
import api from '~/api/api' import api from '~/api/api'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/' const IMG_URL =
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -10,12 +11,18 @@ Component({ ...@@ -10,12 +11,18 @@ Component({
type: Boolean, type: Boolean,
observer: function (n) { observer: function (n) {
if (n) { if (n) {
console.log(this.data)
let { switchVlauerec } = this.data
this.setData({
switchVlaue: switchVlauerec || 1
})
this.getWaitinputorder() this.getWaitinputorder()
} }
} }
}, },
outTradeNo: String, title: String,
title: String outTradeNo: Array,
switchVlauerec: Number
}, },
/** /**
...@@ -26,47 +33,76 @@ Component({ ...@@ -26,47 +33,76 @@ Component({
itemFormObj: [ itemFormObj: [
{ {
label: '交易参考号', label: '交易参考号',
// prop: 'outTradeNo',
prop: 'tradeNo', prop: 'tradeNo',
type: 'copy' type: 'copy'
}, { },
{
label: '支付时间', label: '支付时间',
prop: 'accountDate' prop: 'accountDate'
}, { },
{
label: '支付金额', label: '支付金额',
prop: 'totalFee', prop: 'totalFee',
type: 'price' type: 'price'
}, },
// { {
// label: '选择产品', label: '商户名称',
// prop: 'filmOrder', prop: 'merchantName'
// type: 'select' }
// }
], ],
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
pages: '', pages: '',
orderNoList: [], orderNoList: [],
popupSlotStyle: 'height: calc(100% - var(--fontSize120));', popupSlotStyle: 'height: calc(100% - var(--fontSize120));',
filmOrderData: ['太阳膜', '精品升级'] filmOrderData: ['太阳膜', '精品升级'],
switchVlaue: 1,
tipsshow: false
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
showTips() {
this.setData({
tipsshow: true
})
},
changeSwitch(e) {
let { value } = e.currentTarget.dataset
this.setData({
switchVlaue: value,
outTradeNo: [],
currentPage: 1 // 重新请求列表
})
this.getWaitinputorder()
},
// 选择交易流水号 // 选择交易流水号
changeOrderNo(e) { changeOrderNo(e) {
let { target } = e.currentTarget.dataset let { target } = e.currentTarget.dataset
let { orderNoList } = this.data let { orderNoList } = this.data
// 是要勾选的话判断不能超管9个
if (!target.active) {
let num = orderNoList.reduce((num, item) => {
if (item.active) {
num += 1
}
return num
}, 1)
console.log(num)
if (num > 9) {
return wx.$util.showToast('勾选已超过限制')
}
}
orderNoList.map(i => { orderNoList.map(i => {
i.active = false // i.active = false
if (i.outTradeNo && i.outTradeNo == target.outTradeNo) { if (i.outTradeNo && i.outTradeNo == target.outTradeNo) {
i.active = true i.active = !i.active
} }
return i return i
}) })
this.setData({ orderNoList, outTradeNo: '' }) this.setData({ orderNoList })
}, },
// 产品类型切换 // 产品类型切换
selectTap(e) { selectTap(e) {
...@@ -74,7 +110,7 @@ Component({ ...@@ -74,7 +110,7 @@ Component({
this.setData({ this.setData({
showSelect: !this.data.showSelect, showSelect: !this.data.showSelect,
filmOrderIndex: index filmOrderIndex: index
}); })
}, },
closeSelect() { closeSelect() {
this.setData({ this.setData({
...@@ -110,23 +146,35 @@ Component({ ...@@ -110,23 +146,35 @@ Component({
this.getWaitinputorder() this.getWaitinputorder()
}, },
getWaitinputorder() { getWaitinputorder() {
let { currentPage, pageSize, orderNoList, outTradeNo } = this.data let { currentPage, pageSize, orderNoList, outTradeNo, switchVlaue } =
this.data
api api
.waitinputorder({ currentPage, pageSize }) .waitinputorder({ currentPage, pageSize, inputOrderType: switchVlaue })
.then(result => { .then(result => {
let { code, data } = result let { code, data } = result
if (code == 0) { if (code == 0) {
data.list.forEach(element => { data.list.forEach(element => {
element.filmOrder = 0 element.filmOrder = 0
element.accountDate = new Date(element.accountDate).format('yyyy-MM-dd hh:mm:ss') element.accountDate = new Date(element.accountDate).format(
if (outTradeNo == element.outTradeNo) { 'yyyy-MM-dd hh:mm:ss'
)
if (outTradeNo.includes(element.outTradeNo)) {
element.active = true element.active = true
} else { } else {
element.active = false element.active = false
} }
element.merchantName = element?.shopMerchantName ? element?.shopMerchantName : element.yqMerchantName
}) })
orderNoList =
currentPage == 1 ? data.list : [...orderNoList, ...data.list]
// orderNoList = orderNoList.for
// for (let index = 0; index < 3; index++) {
// // const element = array[index];
// orderNoList.push(...orderNoList)
// }
this.setData({ this.setData({
orderNoList: currentPage == 1 ? data.list : [...orderNoList, ...data.list], orderNoList,
pages: data.pages, pages: data.pages,
triggered: false triggered: false
}) })
...@@ -135,7 +183,7 @@ Component({ ...@@ -135,7 +183,7 @@ Component({
.catch(err => { }) .catch(err => { })
}, },
confirm() { confirm() {
let { orderNoList } = this.data let { orderNoList, switchVlaue } = this.data
let arr = orderNoList?.filter(v => v.active) || [] let arr = orderNoList?.filter(v => v.active) || []
if (!arr.length) { if (!arr.length) {
return wx.showToast({ return wx.showToast({
...@@ -147,8 +195,9 @@ Component({ ...@@ -147,8 +195,9 @@ Component({
thisPage.setData({ thisPage.setData({
showOrderpop: false showOrderpop: false
}) })
let { accountDate, outTradeNo, totalFee, filmOrder, tradeNo } = arr[0] if (arr.length) {
arr?.length && this.triggerEvent('success', { accountDate, outTradeNo, totalFee, tradeNo, filmOrder }) this.triggerEvent('success', { arr, switchVlaue })
}
}, },
cancel() { cancel() {
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
...@@ -158,4 +207,3 @@ Component({ ...@@ -158,4 +207,3 @@ Component({
} }
} }
}) })
{ {
"component": true, "component": true,
"usingComponents": {} "usingComponents": {
"tipsPopup": "/components/tipsPopup/Popup"
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
} }
.order_no_box { .order_no_box {
height: calc(100% - var(--fontSize120)); height: calc(100% - var(--fontSize220));
padding: var(--fontSize20) 0; padding: var(--fontSize20) 0;
} }
...@@ -193,4 +193,83 @@ ...@@ -193,4 +193,83 @@
.item .price_value { .item .price_value {
font-weight: 600; font-weight: 600;
}
.switch-box {
box-sizing: border-box;
width: var(--fontSize452);
height: var(--fontSize64);
display: flex;
background: #F7F8FA;
border-radius: var(--fontSize12);
font-size: var(--fontSize28);
color: #292D33;
position: relative;
margin: 24rpx auto;
.block {
position: absolute;
top: 50%;
transform: translateY(-50%);
border: var(--fontSize2) solid #FFFFFF;
left: 0;
width: 220rpx;
height: 52rpx;
background: #FFFFFF;
border-radius: 0 8rpx 8rpx 0;
transition: all .25s;
}
.block.labelRight {
left: 50%;
}
.left,
.right {
width: 50%;
height: 100%;
position: absolute;
top: 0;
transition: all .25s;
}
.left {
left: 0;
}
.right {
right: 0;
.question {
display: inline-block;
width: 36rpx;
height: 36rpx;
margin-left: 4rpx;
}
}
.left.active,
.right.active {
color: #3582EE;
font-weight: 500;
}
}
.ul {
.title {
font-weight: 600;
font-size: 26rpx;
color: #282829;
margin-bottom: 8rpx;
}
.li {
font-size: 26rpx;
color: #282829;
margin-bottom: 8rpx;
}
.last {
margin-bottom: 32rpx;
}
} }
\ No newline at end of file \ No newline at end of file
<!--tabIndex/components/recordingOrderPopup/recordingOrderPopup.wxml--> <!--tabIndex/components/recordingOrderPopup/recordingOrderPopup.wxml-->
<wxs src="index.wxs" module="filter" /> <wxs src="index.wxs" module="filter" />
<popup show="{{show}}" bindconfirm="confirm" bindcancel="cancel" height="80%" slotStyle="{{popupSlotStyle}}"> <popup show="{{ show }}" bindconfirm="confirm" bindcancel="cancel" height="80%" slotStyle="{{ popupSlotStyle }}">
<view class="sub-title"> <view class="sub-title">
<view>{{title}}</view> <view>{{title}}</view>
</view> </view>
<scroll-view <view class="switch-box">
class="order_no_box" <view class="block text-center {{ switchVlaue== 1?'':'labelRight' }}" />
scroll-y <view class="left text-center {{ switchVlaue == 1?'active':'' }}" bindtap="changeSwitch" data-value="1">正常分账期</view>
enable-back-to-top <view class="right text-center {{ switchVlaue == 2?'active':'' }}" bindtap="changeSwitch" data-value="2">
refresher-enabled="{{true}}" 超分账期
bindrefresherrefresh="restPageNum" <image class="question" src="/components/images/question.png" bind:tap="showTips"></image>
bindscrolltolower="scrollonReachBottom" </view>
refresher-threshold="104" </view>
refresher-triggered="{{triggered}}"> <scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="{{ true }}" bindrefresherrefresh="restPageNum" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" refresher-triggered="{{ triggered }}">
<block wx:for="{{orderNoList}}" wx:key="index" wx:for-index="index"> <block wx:if="{{ orderNoList.length }}">
<view class="order_no_item {{item.active?'active':''}}" bindtap="changeOrderNo" data-target="{{item}}"> <block wx:for="{{ orderNoList }}" wx:key="index" wx:for-index="index">
<view class="message"> <view class="order_no_item {{ item.active?'active':'' }}" bindtap="changeOrderNo" data-target="{{ item }}">
<block wx:for="{{itemFormObj}}" wx:for-item="subItem" wx:key="idx" wx:for-index="idx"> <view class="message">
<view class="item"> <block wx:for="{{ itemFormObj }}" wx:for-item="subItem" wx:key="idx" wx:for-index="idx">
<view class="label">{{subItem.label}}</view> <view class="item">
<view class="value price_value" wx:if="{{subItem.type == 'price'}}">¥{{filter.priceFilter(item[subItem.prop])}}</view> <view class="label">{{subItem.label}}</view>
<view class="select_value" wx:if="{{subItem.type == 'select'}}" catch:tap="selectTap" data-index="{{index}}"> <view class="value price_value" wx:if="{{ subItem.type == 'price' }}">¥{{filter.priceFilter(item[subItem.prop])}}</view>
<text class="text-hide">{{filmOrderData[item.filmOrder]}}</text><image src="/components/images/arrow-x.png" mode=""/> <view class="select_value" wx:if="{{ subItem.type == 'select' }}" catch:tap="selectTap" data-index="{{ index }}">
</view> <text class="text-hide">{{filmOrderData[item.filmOrder]}}</text>
<view class="value" wx:if="{{subItem.type !== 'price' && subItem.type !== 'select'}}"> <image src="/components/images/arrow-x.png" mode="" />
{{item[subItem.prop]}} </view>
<image class="copy_icon" catch:tap="copyOutTradeNo" data-item="{{item}}" wx:if="{{subItem.type == 'copy'}}" src="{{IMG_URL}}copy_icon_gapy.png" mode=""/> <view class="value" wx:if="{{ subItem.type !== 'price' && subItem.type !== 'select' }}">
{{item[subItem.prop]}}
<image class="copy_icon" catch:tap="copyOutTradeNo" data-item="{{ item }}" wx:if="{{ subItem.type == 'copy' }}" src="{{ IMG_URL }}copy_icon_gapy.png" mode="" />
</view>
</view> </view>
</block>
</view>
<view class="checked" wx:if="{{ item.active }}">
<image src="/components/images/choose.png" />
</view>
<block wx:if="{{ showSelect && filmOrderIndex == index }}">
<view class="option_box">
<view class="option {{ item.filmOrder == subI ? 'active' : '' }}" wx:for="{{ filmOrderData }}" wx:for-item="subE" wx:for-index="subI" wx:key="subI" data-index="{{ subI }}" data-order-index="{{ index }}" catchtap="optionTap">{{subE}}</view>
</view> </view>
<view class="mask_class" bindtap="closeSelect" />
</block> </block>
</view> </view>
<view class="checked" wx:if="{{item.active}}">
<image src="/components/images/choose.png" />
</view>
<block wx:if="{{showSelect && filmOrderIndex == index}}">
<view class='option_box' >
<view class='option {{item.filmOrder == subI ? "active" : ""}}' wx:for='{{filmOrderData}}' wx:for-item="subE" wx:for-index="subI" wx:key='subI' data-index='{{subI}}' data-order-index="{{index}}" catchtap='optionTap'>{{subE}}</view>
</view>
<view class="mask_class" bindtap="closeSelect"></view>
</block> </block>
</view> </block>
<block wx:else>
<empty-data style="width: 100%;" />
</block> </block>
</scroll-view> </scroll-view>
</popup> </popup>
<tipsPopup show="{{ tipsshow }}" bindconfirm="confirm" bindcancel="cancel" height="70%" title="超分账期">
<view class="ul">
<view class="title">
字段定义
</view>
<view class="li">
○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
</view>
<view class="li last">
○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
</view>
<view class="title">
操作指导
</view>
<view class="li">
① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单
</view>
<view class="li">
情况一:单笔支付直接补录创建工单
</view>
<view class="li last">
情况二:客户多笔支付,补录工单时勾选多笔交易流水
</view>
<view class="li">
② 特殊情况:需通知运营在后台关联工单
</view>
<view class="li"> 情况一:客户支付定金时间与尾款时间间隔20天以上</view>
<view class="li">情况二:客户购买车辆2台及以上的费用,一笔支付</view>
<view class="li last"> 情况三:支付费用时误操作(多付了)需部分退款
</view>
<view class="li last">
操作流程:驻店在小程序点击新建工单,收款方式选择嘀加收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。
</view>
</view>
</tipsPopup>
\ No newline at end of file \ No newline at end of file
...@@ -141,81 +141,6 @@ ...@@ -141,81 +141,6 @@
</block> </block>
</div> </div>
</block> </block>
<!-- <view class="top_box">
<view class="top_item" wx:for="{{staticDataList}}" wx:key="index">
<view class="label">{{item.label}}</view>
<view class="value"><text style="font-size: var(--fontSize28);margin-right: var(--fontSize4);">¥</text>{{userStat[item.valueObj]['totalOrderMoney'] || 0}}</view>
<view class="tips_box">
<text>{{item.tipsLabel}}</text>
<text class="num_text">{{userStat[item.valueObj]['totalUpgrade'] || 0}}</text>
</view>
</view>
</view> -->
<!-- <view class="main"> -->
<!-- <view class="StatisticsCon">
<view class="totalCon">
<view class="item">
<view class="label">个人产值</view>
<veiw class="number" wx:if="{{userInfo.userType == 2 && !userInfo.isSuper}}">
<text class="unit">¥ </text>
{{userStat[changeBtnData[changeSelectIndex].valueObj].totalOrderMoney||0}}
</veiw>
<veiw class="number" wx:else>
<text class="unit">¥ </text>
{{userStat[changeBtnData[changeSelectIndex].valueFn].totalOrderMoney||0}}
</veiw>
</view>
<view class="item">
<view class="label">转化率</view>
<veiw class="number" wx:if="{{userInfo.userType == 2 && !userInfo.isSuper}}">{{userStat[changeBtnData[changeSelectIndex].valueObj].upgradeRate||0}}%</veiw>
<veiw class="number" wx:else>{{userStat[changeBtnData[changeSelectIndex].valueFn].upgradeRate||0}}%</veiw>
</view>
</view>
<view class="customStatistic">
<veiw class="customItem" wx:for="{{ totalList }}" data-item="{{item}}" bindtap="navTabPage" wx:key="index">
<veiw class="label">
<view class="icon">
<image src="{{IMG_URL}}staticIcon/{{item.icon}}.png" mode="" binderror="" bindload=""></image>
</view>
<view class="name_label">{{item.name}}</view>
</veiw>
<view class="number" wx:if="{{userInfo.userType == 2 && !userInfo.isSuper}}">
<text class="unit" wx:if="{{ item.unit }}">{{item.unit}}</text>
<view>{{userStat[changeBtnData[changeSelectIndex].valueObj][item.itemName]||0}}</view>
</view>
<view class="number" wx:else>
<text class="unit" wx:if="{{ item.unit }}">{{item.unit}}</text>
<text>{{userStat[changeBtnData[changeSelectIndex].valueFn][item.itemName]||0}}</text>
</view>
</veiw>
</view>
</view> -->
<!-- <block wx:if="{{ !isNoStaff }}">
<view class="conTitle utils isNoStaff">展业工具<text class="conTitle_tips">太阳膜产品请使用车膜下单及战败下单</text></view>
<div class="menu">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image src="{{IMG_URL}}upgrade/{{item.icon}}.png" />
<view class="label">{{item.name}}</view>
<view class="hot_icon" wx:if="{{item.hot}}">热</view>
<view class="hot_icon" wx:if="{{item.tipsNum}}">{{item.tipsNum}}</view>
<view class="bubble_icon" wx:if="{{item.noRead}}"></view>
</view>
</block>
</div>
</block> -->
<!-- <block wx:if="{{ isNoStaff }}">
<view class="conTitle utils">展业工具</view>
<div class="menu noStaff">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image src="{{IMG_URL}}upgrade/{{item.icon}}.png" />
<view class="label">{{item.name}}</view>
<view class="hot_icon" wx:if="{{item.tipsNum}}">{{item.tipsNum}}</view>
</view>
</block>
</div>
</block> -->
<view class="myPerformance {{ loginRole==4?'mb':'' }}" wx:if="{{ isWait }}"> <view class="myPerformance {{ loginRole==4?'mb':'' }}" wx:if="{{ isWait }}">
<view class="title"> <view class="title">
<view class="conTitle">我的绩效</view> <view class="conTitle">我的绩效</view>
...@@ -419,11 +344,4 @@ ...@@ -419,11 +344,4 @@
<block wx:else> <block wx:else>
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{ storeRange }}" bindconfirm="storeSearchEvent" subIndex="{{ subIndex }}" hasTabBar="true" /> <side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{ storeRange }}" bindconfirm="storeSearchEvent" subIndex="{{ subIndex }}" hasTabBar="true" />
</block> </block>
<!-- <store-picker
subIndex="{{ subIndex }}"
pickList="{{ merchantRange }}"
show="{{ showPicker }}"
bindsearch="getStoreList"
bindconfirm="changePicker"
/> -->
<task-dialog wx:if="{{ showTaskDialog }}" showDialog="{{ showTaskDialog }}" taskInfo="{{ taskInfo }}"></task-dialog>
\ No newline at end of file \ No newline at end of file
<task-dialog wx:if="{{ showTaskDialog }}" showDialog="{{ showTaskDialog }}" taskInfo="{{ taskInfo }}"></task-dialog>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!