Commit 9f338c24 by 前端

Merge branch 'develop' into 'master'

Develop

See merge request !97
2 parents 95932d67 601a7598
Showing 80 changed files with 2454 additions and 320 deletions
......@@ -49,7 +49,7 @@ App({
}
},
login(relogin, context) {
console.log(relogin, 'relogin')
// console.log(relogin, 'relogin')
let that = this
// 清空多账号信息
if (relogin) {
......
{
"pages": [
"pages/sceneIndex/sceneIndex",
"pages/wxLogin/wxLogin",
"tabIndex/pages/index/index",
"pages/accountItems/accountItems",
"pages/nothing/nothing",
"pages/webView/webView",
"tabWorkOrder/pages/index/index",
"tabWorkOrder/pages/createOrder/createOrder",
"tabWorkOrder/pages/additionRecordOrder/additionRecordOrder",
"tabWorkOrder/pages/orderDetail/orderDetail",
"tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail",
"tabWorkOrder/pages/confirmOrder/confirmOrder",
"tabWorkOrder/pages/updateOrderInfo/updateOrderInfo",
"tabWorkOrder/pages/createArchives/createArchives",
"tabWorkOrder/pages/orderSignature/orderSignature",
"tabWorkOrder/pages/fullSignture/fullSignture",
"tabWorkOrder/pages/ocr/ocr",
"tabMine/pages/index/index",
"tabDate/pages/index/index",
"tabDate/pages/detail/detail",
"tabDate/pages/apprManage/apprManage",
"tabDate/pages/userPortrait/userPortrait"
],
"pages": ["pages/sceneIndex/sceneIndex", "pages/wxLogin/wxLogin", "tabIndex/pages/index/index", "pages/accountItems/accountItems", "pages/nothing/nothing", "pages/webView/webView", "pages/tabWorkOrder/pages/index/index", "tabMine/pages/index/index", "tabDate/pages/index/index", "tabDate/pages/detail/detail", "tabDate/pages/apprManage/apprManage", "tabDate/pages/userPortrait/userPortrait"],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
......@@ -42,7 +19,7 @@
"selectedIconPath": "images/tab-staging-active.png"
},
{
"pagePath": "tabWorkOrder/pages/index/index",
"pagePath": "pages/tabWorkOrder/pages/index/index",
"text": "工单",
"iconPath": "images/tab-order.png",
"selectedIconPath": "images/tab-order-active.png"
......@@ -63,6 +40,11 @@
},
"subpackages": [
{
"root": "tabWorkOrder",
"name": "tabWorkOrder",
"pages": ["pages/createOrder/createOrder", "pages/additionRecordOrder/additionRecordOrder", "pages/orderDetail/orderDetail", "pages/constructionOrderDetail/constructionOrderDetail", "pages/confirmOrder/confirmOrder", "pages/updateOrderInfo/updateOrderInfo", "pages/createArchives/createArchives", "pages/orderSignature/orderSignature", "pages/fullSignture/fullSignture", "tpages/ocr/ocr"]
},
{
"root": "packageEquity",
"name": "packageEquity",
"pages": [
......@@ -85,34 +67,17 @@
{
"root": "tabOperating",
"name": "tabOperating",
"pages": [
"pages/4sOverview/4sOverview",
"pages/index/index",
"pages/operatingShow/operatingShow"
]
"pages": ["pages/4sOverview/4sOverview", "pages/index/index", "pages/operatingShow/operatingShow"]
},
{
"root": "packageCrowdFunding",
"name": "packageCrowdFunding",
"pages": [
"pages/paidOrder/paidOrder",
"pages/activityList/activityList",
"pages/activityPay/activityPay",
"pages/paymentSuccess/paymentSuccess",
"pages/balanceNote/balanceNote",
"pages/newOrder/newOrder",
"pages/additionRecordOrder/additionRecordOrder"
]
"pages": ["pages/paidOrder/paidOrder", "pages/activityList/activityList", "pages/activityPay/activityPay", "pages/paymentSuccess/paymentSuccess", "pages/balanceNote/balanceNote", "pages/newOrder/newOrder", "pages/additionRecordOrder/additionRecordOrder"]
},
{
"root": "subvehicleConversion",
"name": "subvehicleConversion",
"pages": [
"pages/index/index",
"pages/activityManagement/activityManagement",
"pages/visitor/visitor",
"pages/order/order"
]
"pages": ["pages/index/index", "pages/activityManagement/activityManagement", "pages/visitor/visitor", "pages/order/order"]
}
],
"usingComponents": {
......@@ -135,6 +100,16 @@
"van-popup": "@vant/weapp/popup/index",
"van-dialog": "@vant/weapp/dialog/index"
},
"preloadRule": {
"pages/tabWorkOrder/pages/index/index": {
"network": "all",
"packages": ["tabWorkOrder"]
},
"tabIndex/pages/index/index": {
"network": "all",
"packages": ["tabWorkOrder"]
}
},
"resolveAlias": {
"~/*": "/*"
},
......
// components/Confirm/Confirm.js
import order_mixins from '../../tabWorkOrder/pages/order_mixins'
// import order_mixins from '../../tabWorkOrder/pages/order_mixins'
import { form } from './form'
import api from '../../api/api'
Component({
......@@ -50,7 +50,57 @@ Component({
merchantIndex: 0,
index_4s: 0,
btnsHeight: 0,
startX: -1
startX: -1,
orderType: [
{
name: '全部',
active: true,
value: []
},
{
name: '升级下单',
value: [1, 2, 3, 4, 6]
},
{
name: '核销抵扣',
value: [5]
}
],
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销
statusList: [
{
name: '待跟进',
value: [1]
},
{
name: '已支付',
value: [4]
},
{
name: '待支付',
value: [3]
},
{
name: '已撤销',
value: [9]
},
{
name: '战败',
value: [2]
},
{
name: '已评价',
value: [6]
},
{
name: '已关闭',
value: [10]
},
{
name: '已失效',
value: [11]
}
],
},
/**
......@@ -158,7 +208,7 @@ Component({
},
init() {
this.setData({
['form.orderType.data']: JSON.parse(JSON.stringify(order_mixins.data.orderType))
['form.orderType.data']: JSON.parse(JSON.stringify(this.data.orderType))
})
this.setTimeList()
this.getGoodsTypeList()
......@@ -482,7 +532,7 @@ Component({
value: ['Y']
}
]
let status_data = JSON.parse(JSON.stringify(order_mixins.data.statusList))
let status_data = JSON.parse(JSON.stringify(this.data.statusList))
let statusList = [
{
name: '全部',
......
......@@ -115,7 +115,7 @@
<!-- 超管isSuper/商户号类型 userType 2(员工号)账号不可操作 -->
<view class="item-footer" wx:if="{{(item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4') && !userInfo.isSuper && userInfo.userType == 2}}">
<!-- 待支付 -->
<view wx:if="{{item.tailOrderStatus == '0'}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}">
<view wx:if="{{item.tailOrderStatus == '0'&& item.supplementOrderFlag != 1}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}">
关联尾款单
</view>
<!-- 待支付/已支付/退定金 -->
......
......@@ -234,9 +234,11 @@ Page({
let { code, data } = result
if (code != 0) return
this.posPay(data.outTradeNo)
}else{
this.createWxQrcode()
}
// orderPaySource == 3 ? this.posPay(data.outTradeNo) : this.createWxQrcode()
// orderPaySource == 3 ? this.posPay(outTradeNo) : this.createWxQrcode()
},
back() {
wx.$router.back()
......
......@@ -101,29 +101,33 @@ Page({
this.setData({
confirmFlag: true
})
api.createFullPayOrderAPI(params).then(res => {
console.log(res, 'res')
wx.hideLoading()
let { code, data, message } = res
if (code == '0') {
// 新增未收款单 付全款金额
wx.$router.redirectTo('activityPay', { orderCode: data.subOrderCode, selectPayType, outTradeNo: data.outTradeNo, paramsActivityId: orderInfo.activityId, supplementOrderFlag: 1 })
setTimeout(() => { // 防止页面跳转慢 重复点击
api
.createFullPayOrderAPI(params)
.then(res => {
console.log(res, 'res')
wx.hideLoading()
let { code, data, message } = res
if (code == '0') {
// 新增未收款单 付全款金额
wx.$router.redirectTo('activityPay', { orderCode: data.subOrderCode, selectPayType, outTradeNo: data.outTradeNo || data?.payOrder?.outTradeNo, paramsActivityId: orderInfo.activityId, supplementOrderFlag: 1 })
setTimeout(() => {
// 防止页面跳转慢 重复点击
this.setData({
confirmFlag: false
})
}, 3000)
} else {
wx.$util.showToast(message || '接口异常')
this.setData({
confirmFlag: false
})
}, 3000)
}else{
wx.$util.showToast(message || '接口异常')
}
})
.finally(() => {
this.setData({
confirmFlag: false
})
}
}).finally(() => {
this.setData({
confirmFlag: false
})
})
},
// 自定义picker选择器
showPickerSelect(e) {
......
......@@ -51,5 +51,10 @@ export default {
printContract(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.print', params)
},
/** 商品详情 */
goodsInfoGetDetailById(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.goodsInfo.getDetailById', params)
}
}
......@@ -15,7 +15,23 @@ Component({
dataAttrName: {
type: String,
value: null
}
},
cardSetting: {
type: Boolean,
observer: function(n) {
console.log(n,'cardSetting');
if (!n) {
let {secondObj,formRule} = this.data
const productFormList = secondObj.productFormList.filter(item=>item.name != 'card')
delete formRule.card
// formRule = formRule.filter(item=> )
this.setData({
['secondObj.productFormList']: productFormList,
formRule
})
}
}
},
},
/**
......
......@@ -45,6 +45,7 @@ const formRule = {
],
customerAddress: [{ required: true, message: '联系地址不能为空' }],
effectiveDate: [{ required: true, message: '生效日期不能为空' }],
card: [{ required: true, message: '卡号不能为空' }],
tireBrand: [{ required: true, message: '轮胎品牌不能为空' }],
frontTireSpecification: [{ required: true, message: '规格型号(前轮)不能为空' }],
rearTireSpecification: [{ required: true, message: '规格型号(后轮)不能为空' }],
......@@ -167,6 +168,12 @@ const secondObj = {
start: new Date(new Date().setDate(new Date(new Date()).getDate() + 1)).toLocaleDateString()
},
{
label: '卡号',
name: 'card',
type: 'input',
maxlength: '20'
},
{
label: '轮胎品牌',
name: 'tireBrand',
type: 'input',
......
......@@ -42,7 +42,8 @@ Page({
// 弹窗
isDialogShow: false,
dialogObj: {},
scrollTop: 0
scrollTop: 0,
cardSetting:true
},
getPickerObj(obj) {
......@@ -140,16 +141,42 @@ Page({
carLifeApi[apiObj[routeInfo?.apiName]](params).then(res => {
if (res.code == 0) {
let data = this.dealData(res.data)
// console.log(object);
if (data.goodId) {
// 权益卡
this.getInterestCardSetting(data.goodId)
}
this.setData({
serviceInfo: data,
step:data.mode?'second':'first'
// step: data.mode ? 'second' : 'first'
// 先调试
})
} else {
wx.$util.showToast(res.message || '接口异常')
}
})
},
getInterestCardSetting(id) { // 是否要新增实体卡 字段 Y要 N不要
carLifeApi.goodsInfoGetDetailById({ id }).then(res => {
console.log('res', res)
// this.setData({
// cardSetting:false
// })
let {code,data} = res
console.log(data,'data');
if (res.code == 0) {
const entityCardFlag = data.upgradeGoods.entityCardFlag
console.log(entityCardFlag,'entityCardFlag');
entityCardFlag !='Y' && this.setData({
cardSetting:false
})
// let data = res.data[0]
// this.setData({
// 'serviceInfo.interestCardSetting':data.interestCardSetting
// })
}
})
},
// ocr图片识别
reWrite(type, data) {
console.log(type, data)
......@@ -214,6 +241,7 @@ Page({
// 0草稿,1提单
params.operationType = typeObj[type]
console.log(params, '调接口---')
// return
carLifeApi.updateEquity(params).then(res => {
if (res.code == '0') {
if (type == 'confirm') {
......
<!--packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml-->
<view class="layout">
<first-step wx:if="{{step == 'first'}}" id="FirstStep" serviceInfo="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" bindconfirm="handleFirstConfirm" binddraft="handleSecondConfirm"></first-step>
<second-step wx:if="{{step == 'second'}}" id="SecondStep" serviceInfo="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" bindvaliderror="handleErrorJump" bindconfirm="handleSecondConfirm" binddraft="handleSecondConfirm"></second-step>
<second-step wx:if="{{step == 'second'}}" cardSetting="{{cardSetting}}" id="SecondStep" serviceInfo="{{serviceInfo}}" dataAttrName="{{dataAttrName}}" bindvaliderror="handleErrorJump" bindconfirm="handleSecondConfirm" binddraft="handleSecondConfirm"></second-step>
<shade-tip isShow="{{isDialogShow}}" type="{{dialogObj.type}}" title="{{dialogObj.title}}" tipTxt="{{dialogObj.tipTxt}}" btnTxt="{{dialogObj.btnTxt}}" bindclick="handleTipClick" bindclose="handleTipClose" data-type="{{dialogObj.type}}"></shade-tip>
</view>
\ No newline at end of file
......@@ -21,7 +21,7 @@ Page({
sceneList.map(i => (i.actived = false))
sceneList[index].actived = true
wx.$util.setUserInfo({ ...wx.$util.getUserInfo(), selectedSceneType: scene })
console.log({ ...wx.$util.getUserInfo(), selectedSceneType: scene });
// console.log({ ...wx.$util.getUserInfo(), selectedSceneType: scene });
this.setData({
sceneList
})
......
// const api = wx.$request
import api from '~/utils/request/request.js'
// const api = wx.$request
module.exports = {
/** 工单列表 */
getWorkList(data) {
let params = data || {}
params.sceneType = 1
return api.post('dj.api.smartcarlife.order.search', {
pageSize: 10,
...params
})
},
/**撤销工单 */
revokeOrder(data) {
return api.post('dj.api.smartcarlife.order.revoke', data)
},
/** 根据订单状态统计订单数*/
statByStatus(data) {
data = data || {}
data.sceneType = 1
return api.post('dj.api.smartcarlife.order.statByStatus', data)
},
}
// import api from '../../api/api.js'
// import Util from '../../utils/util'
Component({
options: {
multipleSlots: true // 在组件定义时的选项中启用多slot支持
},
/*组件的属性列表*/
properties: {
title: {
type: String,
value: '标题'
},
// 弹窗内容
content: {
type: String,
value: '内容'
},
// 弹窗取消按钮文字
btn_no: {
type: String,
value: '取消'
},
// 弹窗确认按钮文字
btn_ok: {
type: String,
value: '补录这笔订单'
},
//是否显示取消按钮
isShowCancel: {
type: Boolean,
value: true
},
//是否显示右上角关闭按钮
isShowClose: {
type: Boolean,
value: true
},
//应用于某些场景的button的open-type属性
sureButtonType: {
type: String,
value: ''
},
//控制弹窗的显示
flag: {
type: Boolean,
value: true
},
orderInfoSetting: {
type: Object,
value: {},
observer: function (n) {
console.log(n, 'orderInfoSetting')
n && this.setOrderInfo(n)
}
}
},
/* 组件的初始数据 */
data: {
wrapAnimate: 'wrapAnimate',
popupAnimate: 'popupAnimate',
tags: [
{
name: '服务态度好',
value: '1',
checked: false
},
{
name: '性价比高',
value: '2',
checked: false
},
{
name: '价格便宜',
value: '3',
checked: false
},
{
name: '一般',
value: '4',
checked: false
}
],
orderInfo: {}
},
lifetimes: {
attached: function () {
// 在组件实例进入页面节点树时执行
},
detached: function () {
// 在组件实例被从页面节点树移除时执行
}
},
/* 组件的方法列表 */
methods: {
setOrderInfo(orderInfo) {
console.log(orderInfo, 'orderInfo')
orderInfo.evaluation = orderInfo.evaluation.split(',')
console.log(orderInfo.evaluation, 'orderInfo.evaluation')
let { tags } = this.data
tags.forEach((item, index) => {
if (orderInfo.evaluation.includes(item.value)) {
item.checked = true
}
})
this.setData({
orderInfo,
tags
})
},
/* 内部私有方法建议以下划线开头 triggerEvent 用于触发事件 */
_close() {
//触发取消回调
this.triggerEvent('close')
},
_success() {}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!-- components/orderSwitchPopup/orderSwitchPopup.wxml -->
<view wx:if="{{flag}}" class='container' style=''>
<!-- bindtap='_close' 取消遮光层关闭事件 -->
<view class='wrap {{wrapAnimate}}' style='background:rgba(0,0,0,{{bgOpacity}});' />
<view class='popup-container {{popupAnimate}}'>
<view class="v_title">
<view class="wx-popup-title">{{title}}</view>
<image
bindtap='_close'
src='../../images/order-close.png'
mode='widthFix'
class='btn-colse'
wx:if="{{isShowClose}}" />
</view>
<view class="wx-popup-con">
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{false}}"
refresher-threshold="104"
style="height:100%;">
<view class="signature">
<image src="{{orderInfo.electronicSignature}}" binderror="" bindload="" />
</view>
<view class="customerPhotos">
<image
class="customerPhotosItem"
wx:for="{{orderInfo.customerPhotos}}"
src="{{item.customerPhoto}}"
wx:key="index"
binderror=""
bindload="" />
</view>
<view class='star-box'>
<view class="label">评分:</view>
<block wx:for="{{5}}" wx:key="index">
<view class="star" bindtap="setStar" data-index="{{index}}">
<image src="{{index < orderInfo.rating?'/tabWorkOrder/images/star-active.png':'/tabWorkOrder/images/star.png'}}" />
</view>
</block>
</view>
<view class="tags">
<block wx:for="{{tags}}" wx:key="index">
<view
wx:if="{{item.checked}}"
class="tag {{item.checked?'act':''}}"
bindtap="chooseTag"
data-index="{{index}}">
{{item.name}}
</view>
</block>
</view>
</scroll-view>
</view>
</view>
</view>
/* components/orderSwitchPopup/orderSwitchPopup.wxss */
.container {
font-size: 15px;
color: #666;
font-weight: bold;
z-index: 10;
position: fixed;
width: 100vw;
height: 100vh;
}
.wrap {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.popup-container {
position: fixed;
left: 50%;
/* top: 70%; */
width: 633rpx;
/* max-height: 60%; */
/* max-height: 886rpx; */
/* overflow: ; */
border: 2rpx solid #ccc;
border-radius: 16rpx;
box-sizing: bordre-box;
transform: translate(-50%, -50%);
background: #fff;
opacity: 0;
}
.wx-popup-title {
width: 100%;
padding: 26rpx 0;
text-align: center;
/* font-size: 30rpx; */
font-size: 32rpx;
font-weight: 600;
color: #333;
border-bottom: 1rpx solid #EBEDF0;
}
.wx-popup-con {
/* margin: 60rpx 10rpx; */
padding: 0 32rpx;
height: 840rpx;
text-align: center;
font-weight: 400;
}
.v_title {
display: flex;
justify-content: center;
align-items: center;
/* padding: 0 28rpx; */
position: relative;
}
.btn-colse {
position: absolute;
right: 28rpx;
top: 50%;
transform: translateY(-50%);
width: 44rpx;
height: 44rpx;
/* display: flex; */
/* justify-content: flex-end; */
}
.arc {
/* width: 100%;
height: 100%; */
width: 34rpx;
height: 34rpx;
border: 2rpx solid #979797;
border-radius: 100%;
box-sizing: border-box;
}
.wrapAnimate {
animation: wrapAnimate 1s linear forwards
}
@keyframes wrapAnimate {
0% {}
100% {
background: rgba(0, 0, 0, 0.7);
}
}
.wrapAnimateOut {
animation: wrapAnimateOut 1s 0.2s linear forwards
}
@keyframes wrapAnimateOut {
0% {
background: rgba(0, 0, 0, 0.7);
}
100% {
background: rgba(0, 0, 0, 0);
}
}
.popupAnimate {
animation: popupAnimate 1.2s linear forwards
}
@keyframes popupAnimate {
0% {}
60% {
top: 47%;
opacity: 1;
}
80% {
top: 53%;
opacity: 1;
}
100% {
top: 50%;
opacity: 1;
}
}
.popupAnimateOut {
animation: popupAnimateOut 1.2s linear forwards
}
@keyframes popupAnimateOut {
0% {
top: 50%;
opacity: 1;
}
20% {
top: 47%;
opacity: 1;
}
100% {}
}
.tips {
font-size: 24rpx;
margin-bottom: 20rpx;
}
.signature {
width: 566rpx;
height: 350rpx;
background: #F4F5F7;
border: 1.76rpx solid #EFF0F2;
border-radius: 10.52rpx;
margin: 10rpx auto;
}
.customerPhotos {
display: flex;
flex-wrap: wrap;
}
.customerPhotosItem {
width: 174rpx;
height: 174rpx;
border-radius: 12rpx;
margin-right: 20rpx;
margin-bottom: 20rpx;
}
.customerPhotosItem:nth-child(3n) {
margin-right: 0;
}
.star-box {
margin-top: 60rpx;
display: grid;
grid-template-columns: 80rpx repeat(5, 40rpx);
grid-template-rows: repeat(1, 40rpx);
gap: 20rpx;
/* align-items: center; */
/* justify-content: center; */
}
.star-box .label {
width: 100rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 32rpx;
color: #333333;
}
.star {
width: 42rpx;
height: 38rpx;
margin-right: 20rpx;
}
.tags {
/* padding-left: 12rpx; */
margin-top: 26rpx;
display: flex;
flex-wrap: wrap;
/* display: grid;
grid-template-columns: repeat(4, 168rpx);
gap: 12rpx; */
color: #888888;
}
.tag {
display: flex;
align-items: center;
justify-content: center;
height: 56rpx;
width: 168rpx;
border-radius: 8rpx;
font-size: 24rpx;
background: #F7F7F7;
margin-right: 12rpx;
margin-bottom: 12rpx;
}
.tag:nth-last-child(1) {
margin-right: 0;
/* width: 84rpx; */
}
.act {
background: #3582EE;
color: #FFFFFF;
}
\ No newline at end of file
var replaceItemText = function (item) {
var reg = getRegExp(';~;', 'g')
// return item.replace(reg, ' ')
return item ? item.replace(reg, ' ') : null
}
var isIncludesItem = function (list, item) {
//
// console.log(list.indexOf(item))
// var flag = list.indexOf(item)
return list.indexOf(item) != -1
}
/*
* 导出
*/
module.exports = {
replaceItemText: replaceItemText,
isIncludesItem: isIncludesItem
}
{
"navigationStyle":"custom"
}
\ No newline at end of file
/* pages/tabWorkOrder/pages/index/index.wxss */
\ No newline at end of file
<wxs src="../../index.wxs" module="filter" />
<navigation-bar bindnavbarReady="navbarReady" showBack="{{show_confirm}}" bindback="back">
{{!show_confirm?'工单列表':'筛选'}}
</navigation-bar>
<block wx:if="{{navBarHeight > 0}}">
<view class="main" style="margin-top:{{navBarHeight}}px">
<view class="to-box" style="top:{{navBarHeight}}px">
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input
type="text"
placeholder="客户姓名/商品名称/订单编号/手机号"
class="input"
value="{{keyword}}"
placeholder-class="input-placeholder"
bindinput="input"
bindconfirm="search" />
<block wx:if="{{keyword}}">
<image src="/images/clear.png" class="search-clear" bindtap="clear" />
</block>
</view>
<view class="search text-center" bindtap="showConfirm">
<view class="text-center">
筛选
<image class="search-filter" src="/images/filter.png" />
</view>
</view>
</view>
<tab-bar tabList="{{tabList}}" bindclick="tabClick" />
</view>
<!-- 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销 -->
<block wx:if="{{flag}}">
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="search"
bindscrolltolower="scrollonReachBottom"
class="list"
style="height:calc(100vh - {{navBarHeight + 104}}px);"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
<block wx:if="{{list.length > 0}}">
<block wx:for="{{list}}" wx:key="index">
<block
wx:for="{{item}}"
wx:for-item="li"
wx:for-index="ind"
wx:key="ind">
<view
style="{{li.txtStyle}}"
class="touch-item {{li.isTouchMove ? 'touch-move-active' : ''}}"
data-ind='{{ind}}'
data-index='{{index}}'>
<!-- 广汇订单出库成功 -->
<image wx:if="{{li.outboundStatus == 4}}" class="stockIcon" src="../../images/stockIcon.png" />
<view
class="item content {{li.status == 9 ||li.status ==11?'gray':''}} "
catchtap="jump"
data-ind='{{ind}}'
data-index='{{index}}'
bindtouchstart="touchstart"
bindtouchmove="touchmove"
bindtouchend="touchE"
data-name="{{li.status == 3 ? 'confirmOrder' : li.status == 1? 'createOrder' : 'orderDetail'}}"
data-item="{{li}}">
<view class="status text-center" style="color:{{li.statuscolor }};background-color:{{li.statusbackground }};">
<block wx:if="{{li.status == 1||li.status == 3}}">
<block wx:if="{{status[li.status].background}}">
<view class="arc y-center ">
<view class="outside box-center" style="background-color:{{status[li.status].background}};" />
<view class="inside box-center" style="background-color:{{status[li.status].color}};" />
</view>
</block>
</block>
<!-- 优先显示已撤销的 然后是已施工的 最后是其他的 -->
<!-- {{li.status==9?status[li.status].text: (li.constructionFlag == 'Y'?'已施工':status[li.status].text) }} -->
{{li.statusText }}
</view>
<view class="name">
<image src="/images/avatar.png" />
<view class="name-text text-hide ">{{li.customer.customerName}}</view>
</view>
<view class="goods-list" style="padding-bottom:{{li.subOrderList.length<1?0:''}}">
<block wx:if="{{li.total_price != 0}}">
<block
wx:for="{{li.subOrderList}}"
wx:key="sindex"
wx:for-item="i"
wx:for-index="sindex">
<view class="goods" wx:if="{{sindex < 2}}">
<view class="goods-name text-hide">
{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || ''}}
</view>
<view class="goods-price">
¥
<text>{{i.totalPrice || 0}}</text>
</view>
</view>
</block>
<block wx:if="{{li.subOrderList.length > 2}}">
<view class="goods-more">
<text>···</text>
共{{li.subOrderList.length}}件商品
</view>
</block>
</block>
</view>
<view class="order-list">
<block
wx:for="{{orderObj}}"
wx:key="sindex"
wx:for-index="sindex"
wx:for-item="i">
<view class="order">
<view class="order-label">{{i.label}}</view>
<view class="order-value">
<block wx:if="{{i.arr}}">
<block wx:if="{{li[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>
{{li[k]}}
</view>
</block>
</block>
</block>
<block wx:else>{{li[i.key] || ''}}</block>
</view>
</view>
</block>
</view>
<!-- <view class="order-type">类型:{{li.source != 5 ? '升级下单' :'核销抵扣'}}</view> -->
<view class="order-payType" wx:if="{{li['status']!=1}}">
<view class="payType">
<!-- li['status']==1?'': -->
支付方式: {{payType[li['selectPayType']]}}
<!-- &&userInfo.userType!=2 -->
<block wx:if="{{li.repeal}}">(可撤销)</block>
<!-- <block wx:if="{{li.repeal}}">(可撤销)</block> -->
</view>
<block wx:if="{{li.status != 1 && li.selectPayType != 0 && li.total_price != 0}}">
<view class="order-price">
实付款
<view class="price" style="color:{{status[li.status].color}};">
<text class="unit">¥</text>
{{li.totalPrice}}
</view>
</view>
</block>
</view>
<!-- <block wx:if="{{!userInfo.isSuper && userInfo.merchantType}}"> -->
<!-- userInfo.userType == 1&& -->
<!-- <block wx:if="{{userInfo.userType == 1&& (li.status != 9 && li.status != 1) && li.selectPayType != 3 && li.selectPayType != 1}}"> -->
<!-- <view
wx:if="{{li.repeal}}"
class="btn text-center"
catchtap="repeal"
data-item="{{li}}">
撤销工单
</view> -->
<!-- </block> -->
<!-- </block> -->
</view>
<view
wx:if="{{!li['confirmIndex']}}"
class="del"
catchtap="delBtn"
data-ind="{{ind}}"
data-item="{{li}}"
data-index="{{index}}">
<view>撤销</view>
<view>工单</view>
</view>
<view
wx:else
class="del confirm"
catchtap="repeal"
data-item="{{li}}"
data-index="{{index}}">
确认删除
</view>
</view>
</block>
</block>
<block wx:if="{{nothing}}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:else>
<view class="list-not">暂无数据</view>
</block>
</scroll-view>
</block>
</view>
<block wx:if="{{!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2}}">
<view class="fixed-btns">
<view class="btn text-center" bindtap="jump" data-name="createOrder">
<image src="../../images/add.png" />
新增工单
</view>
<view class="btn text-center" bindtap="scan">
<image src="../../images/scan.png" />
扫码核销
</view>
</view>
</block>
</block>
<order-confirm
show="{{show_confirm}}"
userInfo="{{userInfo}}"
type="1"
navBarHeight="{{navBarHeight}}"
orderStatus="{{tabIndex}}" />
/* tabWorkOrder/pages/index/index.wxss */
page {
background-color: rgb(247, 248, 248);
}
.to-box {
position: sticky;
left: 0;
z-index: 2;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
}
.search-box {
width: 100%;
height: 104rpx;
padding-left: 32rpx;
display: flex;
align-items: center;
background-color: #fff;
position: sticky;
top: 0;
left: 0;
z-index: 9;
box-sizing: border-box;
}
.search-box .search-input {
background: #F7F8FA;
border-radius: 38rpx;
width: 574rpx;
height: 72rpx;
display: flex;
align-items: center;
}
.search-box .search-input .search-icon {
width: 28rpx;
height: 28rpx;
margin: 0 10rpx 0 26rpx;
}
.search-box .search-input .search-clear {
width: 36rpx;
height: 36rpx;
margin: 0 26rpx 0 10rpx;
}
.search-box .search-input .input {
font-size: 28rpx;
width: calc(100% - 136rpx);
}
.input-placeholder {
color: rgba(200, 201, 204, .89);
}
.search-box .search {
width: 144rpx;
height: 100%;
color: #666;
box-sizing: border-box;
padding: 0 24rpx;
}
.search-box .search .text-center {
font-size: 24rpx;
/* background-color: #f7f7f7; */
border-radius: 12rpx;
width: 100%;
height: 50rpx;
color: #888;
}
.search-box .search .text-center .search-filter {
margin-left: 6rpx;
width: 24rpx;
height: 24rpx;
}
.list {
box-sizing: border-box;
width: 100%;
}
.list .item {
box-sizing: border-box;
background: #FFFFFF;
/* box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
border-radius: 16rpx; */
padding: 40rpx 40rpx 30rpx;
position: relative;
/* width: 100%; */
/* margin: 20rpx; */
}
.list .content {
width: 100%;
margin-right: 0;
-webkit-transition: all 0.4s;
transition: all 0.4s;
-webkit-transform: translateX(72px);
transform: translateX(72px);
margin-left: -72px;
/* .item {
display: flex;
} */
}
.list .item .name {
display: flex;
align-items: center;
margin-bottom: 40rpx;
}
.list .item.gray .name {
color: #999999;
}
/* .list .item .name.disabled{
} */
.list .item .name image {
width: 46rpx;
height: 46rpx;
}
.list .item.gray .name image {
filter: grayscale(100%);
}
.list .item .name .name-text {
margin-left: 26rpx;
width: 404rpx;
}
.list .item .status {
position: absolute;
font-size: 28rpx;
top: 32rpx;
right: 40rpx;
min-width: 100rpx;
height: 56rpx;
background: #F0F0F0;
border-radius: 8rpx;
}
.list .item .status .arc {
position: absolute;
width: 32rpx;
height: 32rpx;
left: -44rpx;
}
.list .item .status .arc .outside {
position: absolute;
animation: arc-animation 5s infinite;
border-radius: 100%;
}
@keyframes arc-animation {
25% {
width: 48rpx;
height: 48rpx;
}
50% {
width: 24rpx;
height: 24rpx;
}
75% {
width: 48rpx;
height: 48rpx;
}
100% {
width: 24rpx;
height: 24rpx;
}
}
.list .item .status .arc .inside {
width: 24rpx;
height: 24rpx;
border-radius: 100%;
}
.list .item .goods-list {
padding-bottom: 20rpx;
border-bottom: 1rpx solid rgba(195, 195, 195, .29);
}
.list .item .goods-list .goods {
display: flex;
align-items: center;
padding-left: 32rpx;
/* margin-bottom: 20rpx; */
position: relative;
justify-content: space-between;
}
.list .item .goods-list .goods:nth-child(n+2) {
margin-top: 20rpx;
}
.list .item .goods-list .goods::after {
position: absolute;
width: 12rpx;
height: 12rpx;
top: 50%;
left: 0;
transform: translateY(-50%);
content: '';
background: #3582EE;
border-radius: 100%;
}
.list .item .goods-list .goods .goods-name {
font-size: 28rpx;
color: #3582EE;
max-width: 430rpx;
}
.list .item.gray .goods-list .goods .goods-name {
color: #666666;
}
.list .item.gray .goods-list .goods::after {
background: #666;
}
.list .item .goods-list .goods .goods-price {
font-size: 20rpx;
color: #666666;
display: flex;
align-items: baseline;
}
.list .item .goods-list .goods .goods-price text {
font-size: 24rpx;
color: #2A2A2A;
}
.list .item .goods-more {
padding-left: 32rpx;
font-size: 24rpx;
color: #888888;
display: flex;
align-items: center;
}
.list .item .goods-more text {
font-size: 28rpx;
color: #3582EE;
margin-right: 20rpx;
}
.list .item.gray .goods-more text {
color: #666;
}
.list .item .order-list {
padding: 20rpx 0;
}
.list .item .order {
font-size: 24rpx;
color: #333333;
margin-bottom: 20rpx;
display: flex;
align-items: center;
}
.list .item .order:last-of-type {
margin-bottom: 0;
}
.list .item .order .order-label {
width: 136rpx;
}
.list .item .order .order-value {
width: calc(100% - 136rpx);
color: #888888;
display: flex;
align-items: center;
}
.list .item .order .order-value .order-value-item:first-of-type {
max-width: 70%;
}
.list .item .order .order-value .order-value-item .split {
margin: 0 6rpx;
}
.list .item .order-price {
display: flex;
justify-content: flex-end;
/* align-items: center; */
align-items: flex-end;
font-size: 24rpx;
color: #666666;
/* padding-top: 8rpx; */
}
.list .item .order-price .price {
box-sizing: border-box;
color: #F24724;
font-size: 40rpx;
margin-left: 20rpx;
margin-bottom: -8rpx;
/* margin-top: 8rpx; */
}
.list .item.gray .order-price .price {
color: #666 !important;
}
.list .item .order-price .price .unit {
font-size: 28rpx;
}
.list .item .order-payType {
font-size: 24rpx;
color: #333333;
/* margin-top: 50rpx; */
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.list .item .btn {
border: 2rpx solid #666666;
border-radius: 12rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #666666;
position: absolute;
right: 40rpx;
bottom: 30rpx;
width: 192rpx;
height: 64rpx;
}
.stockIcon {
display: inline-block;
position: absolute;
left: 335rpx;
width: 172rpx;
height: 130rpx;
z-index: 10;
}
.fixed-btns {
position: fixed;
left: 50%;
bottom: 80rpx;
width: 440rpx;
height: 80rpx;
display: flex;
background: rgba(53, 130, 238, 0.85);
border: 2rpx solid #3582EE;
border-radius: 40rpx;
box-sizing: border-box;
transform: translateX(-50%);
}
.fixed-btns .btn {
width: 50%;
font-size: 28rpx;
color: #FFFFFF;
}
.fixed-btns .btn image {
width: 28rpx;
height: 28rpx;
margin-right: 8rpx;
}
.fixed-btns::after {
position: absolute;
top: 50%;
left: 50%;
background: #FFFFFF;
border-radius: 1rpx;
width: 2rpx;
height: 26rpx;
content: '';
transform: translate(-50%, -50%);
}
.touch-item {
/* margin: 0 20rpx; */
box-sizing: border-box;
position: relative;
display: flex;
justify-content: space-between;
/* width: calc(100% - 40rpx); */
overflow: hidden;
margin: 20rpx;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
border-radius: 16rpx;
/* border-bottom: .5px solid #d8d4d4; */
}
.del {
width: 72px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
background-color: #f1554c;
-webkit-transform: translateX(90px);
transform: translateX(90px);
-webkit-transition: all 0.4s;
transition: all 0.4s;
font-size: 28rpx;
}
.confirm {
/* 定义动画 */
/* background-color: chocolate; */
animation-duration: .5s;
/* 动画时间 */
animation-name: fadein;
/* 关键帧名字 */
/* -webkit-transform: translateX(90px);
transform: translateX(90px);
-webkit-transition: all 0.4s;
transition: all 0.4s;
width: 90px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
font-size: 28rpx; */
}
/* 定义关键帧 */
@keyframes fadein {
0% {
opacity: 0;
transform: translateX(72px);
}
100% {
opacity: 1;
transform: translateX(0px);
}
}
.touch-move-active .content,
.touch-move-active .del {
-webkit-transform: translateX(0);
transform: translateX(0);
}
\ No newline at end of file
{
"component": true,
"usingComponents": {},
"navigationBarTitleText": "识别"
}
\ No newline at end of file
<!-- components/OcrPhoto.wxml -->
<!-- <text>components/OcrPhoto.wxml</text> -->
<view class="cameraContainer">
<camera device-position="back" flash="auto" style="width: 100%; height:100vh;">
<cover-view class="camerabgImage-view">
<cover-view class='cameratop-tips'>{{tips[typeClass]}}</cover-view>
<!-- <cover-view class='cameratop-view2'>
<cover-view class='cameratop-view2-detail'>{{currentTime}}</cover-view>
<cover-view class='cameratop-view2-detail'>
经度:{{gps.longitude}} 纬度:{{gps.latitude}}
</cover-view>
<cover-view class='cameratop-view2-detail'>{{district}}附近</cover-view>
</cover-view> -->
<cover-view class="camera-background">
<cover-image src='{{bgSrc}}' />
</cover-view>
<cover-view class="upload-view" bindtap="choseImg">
<cover-image src="{{picUploadSrc}}" class="uploag-icon" />
<cover-view class="upload-label">相册选择</cover-view>
</cover-view>
<cover-view class="camerabotton-view">
<cover-image src='{{cameraBtnSrc}}' class='takephoto' bindtap='takePhoto' />
</cover-view>
</cover-view>
<!-- 上部线条 -->
<!-- 下部线条 -->
<!-- 右部线条 -->
<!-- 左部线条 -->
<!-- <cover-view class='biaochi' style='top:{{gap}}px; left:30px; width:{{width-30*2}}px; height:2px;' />
<cover-view class='biaochi' style='top:{{gap+460}}px; left:30px; width:{{width-30*2}}px; height:2px;' />
<cover-view class='biaochi' style='top:{{gap}}px; right:30px; width:2px; height:460px;' />
<cover-view class='biaochi' style='top:{{gap}}px; left:30px; width:2px; height:460px;' /> -->
</camera>
</view>
<!-- <view style="opacity: 0;"> -->
<!-- wx:if='{{isShowImage}}' -->
<!-- style='width:{{windowWidth}}px; height:{{windowHeight}}px;' -->
<!-- position:fixed;left: 10000rpx -->
<canvas
style='width:{{windowWidth}}px; height:{{windowHeight}}px;'
canvas-id="image-canvas"
id="image-canvas"
type="2d" />
<!-- </view> -->
/* components/OcrPhoto.wxss */
.cameraContainer{
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 10;
background-color: #fff;
}
.camerabgImage-view{
height: 100%;
width: 100%;
position:absolute;
/* background-position: center 0px;
background-size: cover; */
/* background-color: greenyellow; */
/* background: url('./image/backGroundImage.png') no-repeat 100% 100%; */
}
.cameratop-tips{
position: absolute;
text-align: center;
width: 100%;
color: #FFFFFF;
top: 35%;
z-index: 12;
}
.camera-background{
position: absolute;
width: 100%;
height: 100%;
/* z-index: ; */
}
/* .cameratop-view2-detail{
height: 44rpx;
margin:25rpx 55rpx;
width: 100%;
color: #FFFFFF;
} */
.camerabotton-view{
height: 144rpx;
width:144rpx;
bottom: 15%;
left: 50%;
transform: translateX(-50%);
position:absolute;
display: flex;
justify-content: space-around;
align-items: center;
z-index: 11;
}
.takephoto{
width: 144rpx;
height: 144rpx;
border-radius: 999px;
/* box-shadow: 0 0 50rpx gray; */
}
.upload-view {
height: 144rpx;
width: 144rpx;
bottom: 15%;
left: 10%;
position:absolute;
display: flex;
flex-direction: column;
/* justify-content: space-around; */
align-items: center;
justify-content: center;
z-index: 11;
}
.upload-label{
color: #fff;
font-size: 28rpx;
line-height: 40rpx;
margin-top: 15rpx;
}
.uploag-icon{
width: 38rpx;
height: 32rpx;
}
/* .biaochi{
position: absolute;
border: 1px dotted red;
} */
module.exports = {
data: {
orderObj: [
{
label: '工单编号:',
key: 'orderCode',
copy: true
},
{
label: '工单时间:',
key: 'time',
dateChange: true
},
{
label: '工单状态:',
key: 'status',
color: '#14CC68',
status: true
},
{
label: '支付方式:',
key: 'payType',
payType: true
}
],
customerObj: [
{
label: '客户姓名:',
key: 'customerName'
},
{
label: '性别:',
key: 'customerSex',
enum: {
1: '男',
2: '女'
}
},
{
label: '手机号:',
key: 'customerPhone',
color: '#3582EE',
callBack: 'makePhoneCall',
copy: true
},
{
label: '车型:',
key: 'carType'
},
{
label: '车架号:',
key: 'standNo'
},
{
label: '车牌号:',
key: 'plateNumber'
},
{
label: '是否体验:',
key: 'experienceFlag',
enum: {
Y: '是',
N: '否'
}
},
{
label: '销售顾问:',
arr: ['merchantName', 'employeeName']
},
{
label: '转化专员:',
arr: ['sellerMerchantName', 'sellerName']
},
{
label: '备注:',
key: 'remark'
}
],
payType: {
0: '战败',
1: '微信支付',
2: '门店收款',
3: 'pos机支付',
4: '支付宝支付'
},
orderType: [
{
name: '全部',
active: true,
value: []
},
{
name: '升级下单',
value: [1, 2, 3, 4, 6]
},
{
name: '核销抵扣',
value: [5]
}
],
status: {
12: {
text: '已退款',
color: '#999'
},
11: {
text: '已失效',
color: '#999',
background: ' #F0F0F0'
},
10: {
text: '已关闭',
color: '#999'
},
9: {
text: '已撤销',
color: '#999'
},
1: {
text: '待跟进',
color: '#F24724',
background: '#FCF4F2'
},
2: {
text: '战败',
color: '#F24724',
background: '#FCF4F2'
},
3: {
text: '待支付',
color: '#F24724',
background: '#FCF4F2'
},
4: {
text: '已支付',
color: '#14CC68',
background: '#dffbec'
},
6: {
text: '已评价',
color: '#3582EE',
background: '#F3F7FC'
}
},
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销
statusList: [
{
name: '待跟进',
value: [1]
},
{
name: '已支付',
value: [4]
},
{
name: '待支付',
value: [3]
},
{
name: '已撤销',
value: [9]
},
{
name: '战败',
value: [2]
},
{
name: '已评价',
value: [6]
},
{
name: '已关闭',
value: [10]
},
{
name: '已失效',
value: [11]
}
],
grassInfo: {},
orderCode: '',
userInfo: {}
}
}
......@@ -316,7 +316,7 @@
]
}
},
"libVersion": "2.27.3",
"libVersion": "2.18.1",
"setting": {
"urlCheck": false
}
......
......@@ -141,6 +141,7 @@ class Router {
* 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 $router.back() 可以返回到原页面。小程序中页面栈最多十层
*/
go(route, events) {
// console.log(route);
let { routerMapItem, query } = this.checkRouter(route, events)
// console.log(routerMapItem, query)
if (routerMapItem.isTab) {
......
......@@ -12,7 +12,7 @@ export const checkYqdSuper = (userInfo, globalData) => {
// const app = getApp()
// ?.globalData
// console.log(app);
console.log(userInfo, 'userInfo')
// console.log(userInfo, 'userInfo')
globalData.isYqdSuper = userInfo.userType != 2 && !userInfo.isSuper && merchantAccountType
globalData.isStaff = userInfo.userType == 2 && !userInfo.isSuper && merchantAccountType
const loginRole = userInfo.loginRole
......@@ -21,7 +21,7 @@ export const checkYqdSuper = (userInfo, globalData) => {
globalData.isStaff = loginRole == 4
globalData.isSuper = loginRole == 1
}
console.log(globalData.isStaff)
// console.log(globalData.isStaff)
}
// 获取园区店信息
export const getYQInfo = userInfo => {
......
......@@ -50,6 +50,7 @@ Page({
const params = {
merchantId
}
if (!merchantId) return
api.summaryOfOutputValueList(params).then(res => {
if (res.code == 0) {
......
......@@ -14,4 +14,4 @@
<top-select-picker show="{{showStorePicker}}" selectObj="{{selectObj}}" bindsearch="getStoreList" defaultSelectInfo="{{defaultSelectInfo}}" items="{{storeListRange}}" bindconfirm="changePicker"></top-select-picker>
<side-select-popup show="{{shopSideSelectPopup}}" hasTabBar="true" />
<side-select-popup show="{{shopSideSelectPopup}}" />
/* tabWorkOrder/pages/index/index.wxss */
page {
background-color: rgb(247, 248, 248);
}
.to-box {
position: sticky;
left: 0;
z-index: 2;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
}
.search-box {
width: 100%;
height: 104rpx;
padding-left: 32rpx;
display: flex;
align-items: center;
background-color: #fff;
position: sticky;
top: 0;
left: 0;
z-index: 9;
box-sizing: border-box;
}
.search-box .search-input {
background: #F7F8FA;
border-radius: 38rpx;
width: 574rpx;
height: 72rpx;
display: flex;
align-items: center;
}
.search-box .search-input .search-icon {
width: 28rpx;
height: 28rpx;
margin: 0 10rpx 0 26rpx;
}
.search-box .search-input .search-clear {
width: 36rpx;
height: 36rpx;
margin: 0 26rpx 0 10rpx;
}
.search-box .search-input .input {
font-size: 28rpx;
width: calc(100% - 136rpx);
}
.input-placeholder {
color: rgba(200, 201, 204, .89);
}
.search-box .search {
width: 144rpx;
height: 100%;
color: #666;
box-sizing: border-box;
padding: 0 24rpx;
}
.search-box .search .text-center {
font-size: 24rpx;
/* background-color: #f7f7f7; */
border-radius: 12rpx;
width: 100%;
height: 50rpx;
color: #888;
}
.search-box .search .text-center .search-filter {
margin-left: 6rpx;
width: 24rpx;
height: 24rpx;
}
.list {
box-sizing: border-box;
width: 100%;
}
.list .item {
box-sizing: border-box;
background: #FFFFFF;
/* box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
border-radius: 16rpx; */
padding: 40rpx 40rpx 30rpx;
position: relative;
/* width: 100%; */
/* margin: 20rpx; */
}
.list .content {
width: 100%;
margin-right: 0;
-webkit-transition: all 0.4s;
transition: all 0.4s;
-webkit-transform: translateX(72px);
transform: translateX(72px);
margin-left: -72px;
/* .item {
display: flex;
} */
}
.list .item .name {
display: flex;
align-items: center;
margin-bottom: 40rpx;
}
.list .item.gray .name {
color: #999999;
}
/* .list .item .name.disabled{
} */
.list .item .name image {
width: 46rpx;
height: 46rpx;
}
.list .item.gray .name image {
filter: grayscale(100%);
}
.list .item .name .name-text {
margin-left: 26rpx;
width: 404rpx;
}
.list .item .status {
position: absolute;
font-size: 28rpx;
top: 32rpx;
right: 40rpx;
min-width: 100rpx;
height: 56rpx;
background: #F0F0F0;
border-radius: 8rpx;
}
.list .item .status .arc {
position: absolute;
width: 32rpx;
height: 32rpx;
left: -44rpx;
}
.list .item .status .arc .outside {
position: absolute;
animation: arc-animation 5s infinite;
border-radius: 100%;
}
@keyframes arc-animation {
25% {
width: 48rpx;
height: 48rpx;
}
50% {
width: 24rpx;
height: 24rpx;
}
75% {
width: 48rpx;
height: 48rpx;
}
100% {
width: 24rpx;
height: 24rpx;
}
}
.list .item .status .arc .inside {
width: 24rpx;
height: 24rpx;
border-radius: 100%;
}
.list .item .goods-list {
padding-bottom: 20rpx;
border-bottom: 1rpx solid rgba(195, 195, 195, .29);
}
.list .item .goods-list .goods {
display: flex;
align-items: center;
padding-left: 32rpx;
/* margin-bottom: 20rpx; */
position: relative;
justify-content: space-between;
}
.list .item .goods-list .goods:nth-child(n+2) {
margin-top: 20rpx;
}
.list .item .goods-list .goods::after {
position: absolute;
width: 12rpx;
height: 12rpx;
top: 50%;
left: 0;
transform: translateY(-50%);
content: '';
background: #3582EE;
border-radius: 100%;
}
.list .item .goods-list .goods .goods-name {
font-size: 28rpx;
color: #3582EE;
max-width: 430rpx;
}
.list .item.gray .goods-list .goods .goods-name {
color: #666666;
}
.list .item.gray .goods-list .goods::after {
background: #666;
}
.list .item .goods-list .goods .goods-price {
font-size: 20rpx;
color: #666666;
display: flex;
align-items: baseline;
}
.list .item .goods-list .goods .goods-price text {
font-size: 24rpx;
color: #2A2A2A;
}
.list .item .goods-more {
padding-left: 32rpx;
font-size: 24rpx;
color: #888888;
display: flex;
align-items: center;
}
.list .item .goods-more text {
font-size: 28rpx;
color: #3582EE;
margin-right: 20rpx;
}
.list .item.gray .goods-more text {
color: #666;
}
.list .item .order-list {
padding: 20rpx 0;
}
.list .item .order {
font-size: 24rpx;
color: #333333;
margin-bottom: 20rpx;
display: flex;
align-items: center;
}
.list .item .order:last-of-type {
margin-bottom: 0;
}
.list .item .order .order-label {
width: 136rpx;
}
.list .item .order .order-value {
width: calc(100% - 136rpx);
color: #888888;
display: flex;
align-items: center;
}
.list .item .order .order-value .order-value-item:first-of-type {
max-width: 70%;
}
.list .item .order .order-value .order-value-item .split {
margin: 0 6rpx;
}
.list .item .order-price {
display: flex;
justify-content: flex-end;
/* align-items: center; */
align-items: flex-end;
font-size: 24rpx;
color: #666666;
/* padding-top: 8rpx; */
}
.list .item .order-price .price {
box-sizing: border-box;
color: #F24724;
font-size: 40rpx;
margin-left: 20rpx;
margin-bottom: -8rpx;
/* margin-top: 8rpx; */
}
.list .item.gray .order-price .price {
color: #666 !important;
}
.list .item .order-price .price .unit {
font-size: 28rpx;
}
.list .item .order-payType {
font-size: 24rpx;
color: #333333;
/* margin-top: 50rpx; */
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.list .item .btn {
border: 2rpx solid #666666;
border-radius: 12rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #666666;
position: absolute;
right: 40rpx;
bottom: 30rpx;
width: 192rpx;
height: 64rpx;
}
.stockIcon {
display: inline-block;
position: absolute;
left: 335rpx;
width: 172rpx;
height: 130rpx;
z-index: 10;
}
.fixed-btns {
position: fixed;
left: 50%;
bottom: 80rpx;
width: 440rpx;
height: 80rpx;
display: flex;
background: rgba(53, 130, 238, 0.85);
border: 2rpx solid #3582EE;
border-radius: 40rpx;
box-sizing: border-box;
transform: translateX(-50%);
}
.fixed-btns .btn {
width: 50%;
font-size: 28rpx;
color: #FFFFFF;
}
.fixed-btns .btn image {
width: 28rpx;
height: 28rpx;
margin-right: 8rpx;
}
.fixed-btns::after {
position: absolute;
top: 50%;
left: 50%;
background: #FFFFFF;
border-radius: 1rpx;
width: 2rpx;
height: 26rpx;
content: '';
transform: translate(-50%, -50%);
}
.touch-item {
/* margin: 0 20rpx; */
box-sizing: border-box;
position: relative;
display: flex;
justify-content: space-between;
/* width: calc(100% - 40rpx); */
overflow: hidden;
margin: 20rpx;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
border-radius: 16rpx;
/* border-bottom: .5px solid #d8d4d4; */
}
.del {
width: 72px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
background-color: #f1554c;
-webkit-transform: translateX(90px);
transform: translateX(90px);
-webkit-transition: all 0.4s;
transition: all 0.4s;
font-size: 28rpx;
}
.confirm {
/* 定义动画 */
/* background-color: chocolate; */
animation-duration: .5s;
/* 动画时间 */
animation-name: fadein;
/* 关键帧名字 */
/* -webkit-transform: translateX(90px);
transform: translateX(90px);
-webkit-transition: all 0.4s;
transition: all 0.4s;
width: 90px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
font-size: 28rpx; */
}
/* 定义关键帧 */
@keyframes fadein {
0% {
opacity: 0;
transform: translateX(72px);
}
100% {
opacity: 1;
transform: translateX(0px);
}
}
.touch-move-active .content,
.touch-move-active .del {
-webkit-transform: translateX(0);
transform: translateX(0);
}
.list-bar {
position: relative;
height: 60rpx;
line-height: 60rpx;
display: flex;
color: #666666ff;
font-size: 28rpx;
margin: 16rpx 30rpx;
}
.list-bar .txt-blue {
color: #3582EE;
margin-right: 24rpx;
}
.list-bar .icon-cal {
position: absolute;
top: 0;
right: 0;
width: 60rpx;
height: 60rpx;
}
.list .item .status {
background: none;
top: 40rpx;
text-align: center;
}
.list .item .status .line {
position: absolute;
top: -40rpx;
left: 0;
width: 100%;
height: 12rpx;
border-radius: 16rpx;
}
.list .item .order-list {
border-bottom: 1rpx solid rgba(195, 195, 195, .3);
}
.order-type {
font-size: 28rpx;
display: flex;
align-items: center;
font-weight: 700;
margin-top: 28rpx;
}
.order-type .label {
color: #333333;
width: 60rpx;
line-height: 36rpx;
margin-right: 40rpx;
}
.order-type .time {
color: #F24724;
}
.order-type .time.gray {
color: gray;
}
.order-control {
position: absolute;
right: 40rpx;
bottom: 30rpx;
display: flex;
align-items: center;
font-size: 24rpx;
color: #666666;
}
.control-item {
display: flex;
flex-direction: column;
align-items: center;
margin-left: 60rpx;
}
.control-item image {
margin-bottom: 8rpx;
}
.date-icon {
width: 32rpx;
height: 32rpx;
}
.phone-icon {
width: 36rpx;
height: 34rpx;
}
/* tabDate/pages/index/index.wxss */
@import '/tabWorkOrder/pages/index/index.wxss';
.list-bar {
position: relative;
height: 60rpx;
line-height: 60rpx;
display: flex;
color: #666666ff;
font-size: 28rpx;
margin: 16rpx 30rpx;
}
.list-bar .txt-blue {
color: #3582EE;
margin-right: 24rpx;
}
.list-bar .icon-cal {
position: absolute;
top: 0;
right: 0;
width: 60rpx;
height: 60rpx;
}
/* .list .list-item {
margin: 0 20rpx 20rpx;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
border-radius: 16rpx;
} */
.list .item .status {
background: none;
top: 40rpx;
text-align: center;
}
.list .item .status .line {
position: absolute;
top: -40rpx;
left: 0;
width: 100%;
height: 12rpx;
border-radius: 16rpx;
}
.list .item .order-list {
border-bottom: 1rpx solid rgba(195, 195, 195, .3);
}
.order-type {
font-size: 28rpx;
display: flex;
align-items: center;
font-weight: 700;
margin-top: 28rpx;
}
.order-type .label {
color: #333333;
width: 60rpx;
line-height: 36rpx;
margin-right: 40rpx;
}
.order-type .time {
color: #F24724;
}
.order-type .time.gray {
color: gray;
}
.order-control {
position: absolute;
right: 40rpx;
bottom: 30rpx;
display: flex;
align-items: center;
font-size: 24rpx;
color: #666666;
}
.control-item {
display: flex;
flex-direction: column;
align-items: center;
margin-left: 60rpx;
}
.control-item image {
margin-bottom: 8rpx;
}
.date-icon {
width: 32rpx;
height: 32rpx;
}
.phone-icon {
width: 36rpx;
height: 34rpx;
}
.touch-item {
/* margin: 0 20rpx; */
box-sizing: border-box;
position: relative;
display: flex;
justify-content: space-between;
/* width: calc(100% - 40rpx); */
overflow: hidden;
margin: 20rpx;
box-shadow: 0 4rpx 20rpx 0 rgba(0, 0, 0, 0.10);
border-radius: 16rpx;
/* border-bottom: .5px solid #d8d4d4; */
}
.del {
width: 72px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
background-color: #f1554c;
-webkit-transform: translateX(90px);
transform: translateX(90px);
-webkit-transition: all 0.4s;
transition: all 0.4s;
font-size: 28rpx;
}
.confirm {
/* 定义动画 */
/* background-color: chocolate; */
animation-duration: .5s;
/* 动画时间 */
animation-name: fadein;
/* 关键帧名字 */
/* -webkit-transform: translateX(90px);
transform: translateX(90px);
-webkit-transition: all 0.4s;
transition: all 0.4s;
width: 90px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
font-size: 28rpx; */
}
/* 定义关键帧 */
@keyframes fadein {
0% {
opacity: 0;
transform: translateX(72px);
}
100% {
opacity: 1;
transform: translateX(0px);
}
}
.touch-move-active .content,
.touch-move-active .del {
-webkit-transform: translateX(0);
transform: translateX(0);
}
\ No newline at end of file
......@@ -121,7 +121,7 @@ Page({
})
},
navbarReady(e) {
console.log(e, 'e')
// console.log(e, 'e')
let navBarHeight = e.detail.height
// console.log(e.detail.height)
this.setData({
......@@ -611,7 +611,7 @@ Page({
},
initData(userInfo) {
getYQInfo(userInfo).then(result => {
console.log(result)
// console.log(result)
// console.log(app.globalData.isYqdSuper)
// this.getPageData()
wx.$util.hideLoading()
......@@ -718,7 +718,7 @@ Page({
*/
onShow: function (options) {
// console.log(options, 'options')
console.log(app.globalData.isStaff, 'app.globalData.isStaff')
// console.log(app.globalData.isStaff, 'app.globalData.isStaff')
setTimeout(() => {
this.setData({
delayShow: true
......
......@@ -92,18 +92,26 @@ page ::-webkit-scrollbar {
}
.conTitle {
padding-left: 10rpx;
font-weight: 600;
font-size: 28rpx;
color: #323436;
}
.content{
margin-bottom: 32rpx;
}
.table-control.utils{
margin-top: 0rpx;
.content {
margin-bottom: 32rpx;
}
.table-control.utils {
margin-top: 0rpx;
padding: 0 15rpx;
}
}
.isNoStaff {
margin-top: 32rpx;
}
.menu {
box-sizing: border-box;
padding: 0 22rpx;
......@@ -111,6 +119,7 @@ page ::-webkit-scrollbar {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
// justify-content: space-around;
// height: 218rpx;
// background-image: linear-gradient(166deg, #65b8f8 0%, #3582ee 100%);
......@@ -119,11 +128,11 @@ page ::-webkit-scrollbar {
// /* display: grid;
// align-items: center;
// grid-template-columns: repeat(4, 1fr);
.label{
.label {
font-family: PingFangSC-Regular;
font-size: 24rpx;
color: #323436;
}
color: #323436;
}
}
// .menu .item {
......@@ -144,6 +153,7 @@ color: #323436;
color: #323436;
margin-right: 56rpx;
}
// .menu .item + .item{
// margin-left: auto;
// }
......@@ -151,6 +161,7 @@ color: #323436;
.menu .item:nth-child(4n) {
margin-right: 0rpx;
}
// .menu .item:nth-child(n+4) {
// // margin-right: 0rpx;
// margin-top: 16rpx;
......@@ -158,7 +169,7 @@ color: #323436;
.menu .item image {
width: 124rpx;
height: 124rpx;
}
.contentUtil {
......@@ -193,15 +204,17 @@ color: #323436;
font-size: 24rpx;
flex-shrink: 0;
}
.unit {
font-size: 24rpx;
color: #222222;
}
.unit {
font-size: 24rpx;
color: #222222;
}
.StatisticsCon {
box-sizing: border-box;
padding: 0 15rpx;
.totalCon {
display: flex;
......@@ -235,19 +248,25 @@ color: #323436;
}
.customStatistic {
box-sizing: border-box;
margin-top: 16rpx;
display: flex;
flex-wrap: wrap;
padding: 0 16rpx;
background: linear-gradient(90deg, #F2FCFC, #F9FEFF, #EFF6FF);
border-radius: 12rpx;
justify-content: space-around;
.customItem {
position: relative;
box-sizing: border-box;
margin-top: 16rpx;
// margin-top: 16rpx;
padding: 16rpx 16rpx 24rpx;
width: 216rpx;
height: 136rpx;
background: #F7F8FA;
border-radius: 12rpx;
margin-right: 16rpx;
// background: #F7F8FA;
// border-radius: 12rpx;
// margin-right: 16rpx;
.label {
font-weight: 500;
......@@ -300,6 +319,57 @@ color: #323436;
color: #999999;
}
.contentBox {
width: 100%;
height: 172rpx;
display: flex;
justify-content: space-between;
// align-items: flex-end;
align-items: center;
.line {
width: 1rpx;
height: 60rpx;
background-color: #e6eaeb;
}
.lableBox {
// flex:1;
font-size: 20rpx;
color: #666666;
margin-bottom: 0rpx;
.label {
position: relative;
text-align: left;
&::before {
position: absolute;
left: -20rpx;
top: 12rpx;
content: '';
width: 6rpx;
height: 6rpx;
background: #3582EE;
border-radius: 4rpx;
}
}
}
.value {
font-family: numberNor;
font-size: 44rpx;
color: #333333;
margin-top: 5rpx;
}
.persent {
color: #3582EE;
}
}
.content {
display: flex;
width: 100%;
......@@ -346,23 +416,32 @@ color: #323436;
.totalPerformanceCon {
border: 1rpx solid #E4E6EE;
border-radius: 20rpx;
position: relative;
background-color: #F9FEFF;
.merchantNum {
position: absolute;
top: 0;
left: 0;
width: 202rpx;
height: 44rpx;
background: #EFF6FF;
border-radius: 20rpx 0 20rpx 0;
display: flex;
justify-content: center;
margin: 32rpx auto;
width: 638rpx;
height: 36rpx;
// margin: 32rpx auto;
// width: 638rpx;
// height: 36rpx;
text-align: center;
font-size: 24rpx;
font-face: PingFangSC;
background: #F5F9FE;
border-radius: 20rpx;
font-weight: 600;
.num {
color: #3582eeff;
}
// border-radius: 20rpx;
// font-weight: 600;
color: #555555;
// .num {
// color: #3582eeff;
// }
}
......@@ -377,17 +456,17 @@ color: #323436;
background: #F7F8FA;
border-radius: 20rpx;
// .staffCon
// }
// .staffCon
// }
}
}
.selfPerformanceCon+.selfPerformanceCon {
margin-top: 20rpx;
}
margin-top: 20rpx;
}
.selfPerformanceCon {
position: relative;
......@@ -508,9 +587,10 @@ color: #323436;
}
}
.mb{
.mb {
margin-bottom: 150rpx;
}
}
.dateNum {
display: flex;
......@@ -954,8 +1034,8 @@ color: #323436;
border-radius: 28rpx;
}
.noStaff{
// justify-content:auto;
justify-content: start;
margin-bottom: 44rpx;
}
\ No newline at end of file
.noStaff {
// justify-content:auto;
justify-content: start;
margin-bottom: 44rpx;
}
\ No newline at end of file
......@@ -42,7 +42,7 @@
</view>
</view>
<block wx:if="{{!isNoStaff}}">
<view class="conTitle utils">展业工具</view>
<view class="conTitle utils isNoStaff">展业工具</view>
<div class="menu">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
......@@ -71,19 +71,24 @@
<!-- 督导显示 -->
<view class="totalPerformanceCon" wx:if="{{ loginRole&&loginRole!=4 }}">
<view class="merchantNum">
汇总门店: <view class="num">{{outputValueObj.shopCount||0}}</view> 家
汇总<view class="num">{{outputValueObj.shopCount||0}}</view>家门店
</view>
<view class="total">
<view class="label">当月目标</view>
<view class="content">
<view class="lable">
<view>产值完成比</view>
<view class="value">{{outputValueObj.rateValuePercent}}</view>
<view class="contentBox">
<view class="lableBox">
<view class="label">产值完成比</view>
<view class="value persent">{{outputValueObj.rateValuePercent}}</view>
</view>
<!-- <view class="chart">¥ 0</view> -->
<van-progress class="progress" pivot-text="{{outputValueObj.totalOutputValue||0}}" percentage="{{outputValueObj.rateValue>100?100:outputValueObj.rateValue}}" />
<view class="target">
<view class="line"></view>
<view class="lableBox">
<view class="label">当月完成</view>
<view class="value"><text class="unit">¥ </text>{{outputValueObj.totalOutputValue||0}}</view>
</view>
<view class="line"></view>
<!-- <van-progress class="progress" pivot-text="{{outputValueObj.totalOutputValue||0}}" percentage="{{outputValueObj.rateValue>100?100:outputValueObj.rateValue}}" /> -->
<view class="lableBox">
<view class="label">当月目标</view>
<view class="value"><text class="unit">¥ </text> {{outputValueObj.totalTargetOutputValue||0}}</view>
</view>
</view>
......
......@@ -16,10 +16,10 @@ export default {
name: '预约管理',
url: 'tabDate.index'
},
// {
// name: '经营数据',
// url: 'tabOperating.index'
// },
{
name: '经营数据',
url: 'tabOperating.index'
},
{
name: '客户建档',
// name: '战败下单',
......@@ -184,11 +184,11 @@ export default {
}
],
table: [],
loginRoleLabel:{
1:'超管',
2:'商户管理员',
3:'区域督导',
4:'驻店负责人'
loginRoleLabel: {
1: '超管',
2: '商户管理员',
3: '区域督导',
4: '驻店负责人'
}
}
}
/* tabWorkOrder/pages/additionRecordOrder/additionRecordOrder.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/confirmOrder/confirmOrder.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/createArchives/createArchives.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/createOrder/createOrder.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/orderDetail/orderDetail.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/orderSignature/orderSignature.wxss */
\ No newline at end of file
/* tabWorkOrder/pages/updateOrderInfo/updateOrderInfo.wxss */
\ No newline at end of file
// tabWorkOrder/tpages/ocr/ocr.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
/* tabWorkOrder/tpages/ocr/ocr.wxss */
\ No newline at end of file
<!--tabWorkOrder/tpages/ocr/ocr.wxml-->
<text>tabWorkOrder/tpages/ocr/ocr.wxml</text>
......@@ -50,11 +50,12 @@ const domain_items = {
ip: {
// dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.170:8292', //叶立庆
dj: 'http://192.168.1.169:8292',//蔡远明
// dj: 'http://192.168.1.169:8292',//蔡远明
dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.129:8292',//周杭
// dj:'http://192.168.2.59:8292/',//周立明
// scrm: 'http://192.168.1.165:8292'
scrm: 'http://192.168.1.170:8292'
scrm: 'https://scrm.dev.glsx.com.cn'
},
dev: {
dj: 'https://dj.dev.glsx.com.cn',
......
......@@ -89,7 +89,7 @@ const getUserInfo = () => {
return JSON.parse(user)
}
const setUserInfo = userInfo => {
console.log(userInfo)
// console.log(userInfo)
// userInfo.loginrole
const loginRole = userInfo.loginRole
if (loginRole&&loginRole==3) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!