Commit dbb0c8a0 by 张立顺

Merge branch 'SAAS+V4.36.0' of http://192.168.3.233:8090/saas_plus/dj-car-boutiq…

…ue-work-wechat into SAAS+V4.36.0
2 parents 60df4d67 151c52e5
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
value="{{outTradeNo}}" value="{{outTradeNo}}"
placeholder="输入交易流水号" placeholder="输入交易流水号"
placeholder-class="outTradeNo_placeholder" placeholder-class="outTradeNo_placeholder"
maxlength="100" /> maxlength="150" />
</view> </view>
</view> </view>
<view class="upload-content"> <view class="upload-content">
......
<!-- packageEquity/components/orderInfoCom/orderInfoCom.wxml --> <!-- packageEquity/components/orderInfoCom/orderInfoCom.wxml -->
<!-- <text>packageEquity/components/orderInfoCom/orderInfoCom.wxml</text> --> <!-- <text>packageEquity/components/orderInfoCom/orderInfoCom.wxml</text> -->
<view class="orderInfoCom"> <view class="orderInfoCom">
<view class="title">订单信息</view> <view class="title">订单信息</view>
<view class="info"> <view class="info">
<block wx:for="{{list}}" wx:key="index"> <block wx:for="{{list}}" wx:key="index">
<view class="item" wx:if="{{item.orderType=='success'&&OderType=='detail'}}"> <view class="item" wx:if="{{item.orderType=='success'&&OderType=='detail'}}">
<view class="label">{{item.labelName}}</view> <view class="label">{{item.labelName}}</view>
<view class="text">{{orderInfo[item.key]||''}}</view> <view class="text">{{orderInfo[item.key]||''}}</view>
</view> </view>
<view class="item" wx:if="{{item.orderType!='success'}}"> <view class="item" wx:if="{{item.orderType!='success'}}">
<view class="label">{{item.labelName}}</view> <view class="label">{{item.labelName}}</view>
<view class="text" style="color:{{orderInfo.payOrder[item.key]==2?'#4AC18E':'#FF6601'}}" wx:if="{{item.key == 'payStatus'}}"> <view class="text" style="color:{{orderInfo.payOrder[item.key]==2?'#4AC18E':'#FF6601'}}" wx:if="{{item.key == 'payStatus'}}">
{{orderInfo.payOrder[item.key]==2?'已支付':'待支付'}} {{orderInfo.payOrder[item.key]==2?'已支付':'待支付'}}
<!-- test --> <!-- test -->
</view> </view>
<view class="text" wx:elif="{{item.type == 'project' }}"> <view class="text" wx:elif="{{item.type == 'project' }}">
<block wx:for="{{orderInfo.quotationGoodsInfoList || orderInfo.subOrderList}}" wx:for-item="subItem" wx:key="idx"> <block wx:for="{{orderInfo.quotationGoodsInfoList || orderInfo.subOrderList}}" wx:for-item="subItem" wx:key="idx">
<view class="goodsName">{{subItem.goodsName||subItem.upgradeGoodsName}} <text class="goodsItem">(包含{{subItem.serviceItems||subItem.position}})</text></view> <view class="goodsName">{{subItem.goodsNameAlias||subItem.upgradeGoodsName||subItem.goodsName}} <text class="goodsItem">(包含{{subItem.serviceItems||subItem.position}})</text></view>
</block> </block>
</view> </view>
<view class="text" wx:else>{{orderInfo[item.key]||''}}</view> <view class="text" wx:else>{{orderInfo[item.key]||''}}</view>
</view> </view>
</block> </block>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view wx:else>我的</view> <view wx:else>我的</view>
</navigation-bar> </navigation-bar>
<!-- style="margin-top:{{navBarHeight}}px" --> <!-- style="margin-top:{{navBarHeight}}px" -->
<view class="layout {{ waitInputCount && mode == 1?'tipsHeigh':'' }}" style="padding-top:{{ navBarHeight }}px;position: relative;"> <view class="layout {{ waitInputCount && mode == 1 && tabIndex == 0 ?'tipsHeigh':'' }}" style="padding-top:{{ navBarHeight }}px;position: relative;">
<block wx:if="{{ navBarHeight && showPage }}"> <block wx:if="{{ navBarHeight && showPage }}">
<home id="page-0" class="pagedetail {{ tabIndex == 0?'':'hide' }}" mode="{{ mode }}"></home> <home id="page-0" class="pagedetail {{ tabIndex == 0?'':'hide' }}" mode="{{ mode }}"></home>
<quotation-list id="page-1" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 1?'':'hide' }}" mode="{{ mode }}" /> <quotation-list id="page-1" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 1?'':'hide' }}" mode="{{ mode }}" />
......
...@@ -20,29 +20,21 @@ ...@@ -20,29 +20,21 @@
</view> --> </view> -->
<!-- style="margin-top:{{navBarHeight}}px" --> <!-- style="margin-top:{{navBarHeight}}px" -->
<view class="main"> <view class="main">
<view class="to-box"> <view class="to-box">
<view class="search-box"> <view class="search-box">
<view class="search-input"> <view class="search-input">
<image src="/images/search.png" class="search-icon" /> <image src="/images/search.png" class="search-icon" />
<input <input type="text" placeholder="请输入客户名字搜索" class="input" confirm-type="search" value="{{customerName}}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
type="text" <block wx:if="{{customerName}}">
placeholder="请输入客户名字搜索" <view bindtap="handleReset" class="clearBtn">
class="input" <image src="/images/clear.png" class="search-clear" bindtap="handleReset" />
confirm-type="search" </view>
value="{{customerName}}" </block>
placeholder-class="input-placeholder" </view>
bindinput="input" </view>
bindconfirm="search" /> <tab-bar tabList="{{tabList}}" bindclick="tabClick" />
<block wx:if="{{customerName}}"> </view>
<view bindtap="handleReset" class="clearBtn"> <!-- <view class="total-box">
<image src="/images/clear.png" class="search-clear" bindtap="handleReset" />
</view>
</block>
</view>
</view>
<tab-bar tabList="{{tabList}}" bindclick="tabClick" />
</view>
<!-- <view class="total-box">
总订单 · 总订单 ·
<text>{{statisticsObj.totalOder}}</text> <text>{{statisticsObj.totalOder}}</text>
待补单 · 待补单 ·
...@@ -50,92 +42,60 @@ ...@@ -50,92 +42,60 @@
提单失败 · 提单失败 ·
<text style="color: #D26F6B;">{{statisticsObj.failed}}</text> <text style="color: #D26F6B;">{{statisticsObj.failed}}</text>
</view> --> </view> -->
<view wx:if="{{tabIndex != 3 && list.length && isShowTips}}" class="tips-box"> <view wx:if="{{tabIndex != 3 && list.length && isShowTips}}" class="tips-box">
<tips-bottom <tips-bottom custom-class="tips-custom" style="width: 100%;box-sizing: border-box;" tipsProps="{{tipsProps}}" bind:closeTips="closeTips" />
custom-class="tips-custom" </view>
style="width: 100%;box-sizing: border-box;" <view wx:if="{{flag}}" class="order-box" style="height: calc(100% - 104rpx - 104rpx - {{isShowTips ? 30 : 0}}rpx);">
tipsProps="{{tipsProps}}" <scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="search" bindscrolltolower="onBottomRefresh" class="list" scroll-top="{{scrollTop}}" style="height: calc(100% - 2rpx)" refresher-threshold="104" refresher-triggered="{{triggered}}">
bind:closeTips="closeTips" /> <block wx:if="{{list.length > 0}}">
</view> <view wx:for="{{list}}" wx:key="index" class="item">
<view wx:if="{{flag}}" class="order-box" style="height: calc(100% - 104rpx - 104rpx - {{isShowTips ? 48 : 0}}rpx);"> <view class="item-header">{{item.customerName}} | {{item.customerPhone}}</view>
<scroll-view <view class="item-content">
scroll-y <image class="status-icon" src="/packageEquity/images/equity-{{item.orderStatus}}.png" />
enable-back-to-top <!-- 内容 -->
refresher-enabled="{{true}}" <view class="order-list">
bindrefresherrefresh="search" <view class="good-name">{{item.goodName || ''}}</view>
bindscrolltolower="onBottomRefresh" <view class="order-content">
class="list" <image mode="aspectFill" class="pro-bg" src="{{item.thumbUrl || '/packageEquity/images/pro-bg.png'}}" />
scroll-top="{{scrollTop}}" <view>
style="height: calc(100% - 2rpx)" <view wx:for="{{orderObj}}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
refresher-threshold="104" <view class="order {{orderObj.length == (sindex + 1) ? '' : 'm-b-16'}}">
refresher-triggered="{{triggered}}"> <view class="order-label">{{i.label}}</view>
<block wx:if="{{list.length > 0}}"> <view class="order-value">
<view wx:for="{{list}}" wx:key="index" class="item"> <block wx:if="{{i.key == 'ywly'}}">车损升级</block>
<view class="item-header">{{item.customerName}} | {{item.customerPhone}}</view> <block wx:else>{{item[i.key] || ''}}{{i.suffix || ''}}</block>
<view class="item-content"> </view>
<image class="status-icon" src="/packageEquity/images/equity-{{item.orderStatus}}.png" /> </view>
<!-- 内容 --> </view>
<view class="order-list"> </view>
<view class="good-name">{{item.goodName || ''}}</view> </view>
<view class="order-content"> </view>
<image mode="aspectFill" class="pro-bg" src="{{item.thumbUrl || '/packageEquity/images/pro-bg.png'}}" /> </view>
<view> <!-- footer -->
<view <view class="item-footer">
wx:for="{{orderObj}}" <view>{{item.createdDate}}</view>
wx:key="sindex" <!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
wx:for-index="sindex" <block wx:if="{{(!userInfo.isSuper && userInfo.userType == 2&&item.orderStatus!=4)||(item.orderStatus==2) }}">
wx:for-item="i"> <view wx:if="{{item.orderStatus == '2'}}" class="order-btn" bindtap="handlePreviewContract" data-target="{{item}}" data-type="download">
<view class="order {{orderObj.length == (sindex + 1) ? '' : 'm-b-16'}}"> 下载合同
<view class="order-label">{{i.label}}</view> </view>
<view class="order-value"> <view wx:if="{{item.orderStatus == '2'}}" class="order-btn default-btn" bindtap="handlePreviewContract" data-target="{{item}}">
<block wx:if="{{i.key == 'ywly'}}">车损升级</block> {{btnTxt[item.orderStatus]}}
<block wx:else>{{item[i.key] || ''}}{{i.suffix || ''}}</block> </view>
</view> <view wx:else class="order-btn" bindtap="handleRecordOrder" data-target="{{item}}">
</view> {{btnTxt[item.orderStatus]}}
</view> </view>
</view> </block>
</view> </view>
</view> </view>
</view> <block wx:if="{{nothing}}">
<!-- footer --> <view class="list-nothing">到底了~</view>
<view class="item-footer"> </block>
<view>{{item.createdDate}}</view> </block>
<!-- 超管isSuper/商户类型 userType 1账号不可操作 --> <view class="no-data" wx:else>
<block wx:if="{{(!userInfo.isSuper && userInfo.userType == 2&&item.orderStatus!=4)||(item.orderStatus==2) }}"> <image class="no-data-img" src="/packageEquity/images/noData.png" />
<view <view class="list-not">暂无数据</view>
wx:if="{{item.orderStatus == '2'}}" </view>
class="order-btn" </scroll-view>
bindtap="handlePreviewContract" </view>
data-target="{{item}}" </view>
data-type="download">
下载合同
</view>
<view
wx:if="{{item.orderStatus == '2'}}"
class="order-btn default-btn"
bindtap="handlePreviewContract"
data-target="{{item}}">
{{btnTxt[item.orderStatus]}}
</view>
<view
wx:else
class="order-btn"
bindtap="handleRecordOrder"
data-target="{{item}}">
{{btnTxt[item.orderStatus]}}
</view>
</block>
</view>
</view>
<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>
\ No newline at end of file \ No newline at end of file
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
data-item="{{i}}"> data-item="{{i}}">
<view class="name text-hide "> <view class="name text-hide ">
<!-- filter.replaceItemText(i.upgradeGoodsAlias) || --> <!-- filter.replaceItemText(i.upgradeGoodsAlias) || -->
<view>{{filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsInfo.goodsName)}}</view> <view>{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsInfo.goodsName)}}</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">(包含{{i.serveName}})</view> <view class="serveName">(包含{{i.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> -->
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
value="{{outTradeNo}}" value="{{outTradeNo}}"
placeholder="输入交易流水号" placeholder="输入交易流水号"
placeholder-class="outTradeNo_placeholder" placeholder-class="outTradeNo_placeholder"
maxlength="100" /> maxlength="150" />
</view> </view>
</view> </view>
<view class="upload-content"> <view class="upload-content">
......
...@@ -8,7 +8,8 @@ const orderStatusObj = { ...@@ -8,7 +8,8 @@ const orderStatusObj = {
'5': '已完成', '5': '已完成',
'-1': '战败', '-1': '战败',
'9':'已撤销', '9':'已撤销',
'11':'已失效' '11':'已失效',
'6': '已退款'
} }
const orderStatusList = [{ const orderStatusList = [{
confName: '待报价', confName: '待报价',
......
...@@ -286,6 +286,7 @@ Page({ ...@@ -286,6 +286,7 @@ Page({
return { return {
goodsId: item.goodsId, goodsId: item.goodsId,
goodsName: item.goodsName, goodsName: item.goodsName,
goodsNameAlias: item.goodsNameAlias,
// shopMinPrice: item.shopMinPrice, // shopMinPrice: item.shopMinPrice,
goodsPrice: this.multipliedByHundred(item.price) goodsPrice: this.multipliedByHundred(item.price)
} }
...@@ -357,8 +358,8 @@ Page({ ...@@ -357,8 +358,8 @@ Page({
} = this.data } = this.data
// 先写死调试 // 先写死调试
getQuotationInfoById({ getQuotationInfoById({
id id
}) })
.then(result => { .then(result => {
console.log('result', result) console.log('result', result)
let { let {
...@@ -394,7 +395,7 @@ Page({ ...@@ -394,7 +395,7 @@ Page({
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
totalFee() { totalFee() {
let { let {
...@@ -492,9 +493,9 @@ Page({ ...@@ -492,9 +493,9 @@ Page({
orderInfo orderInfo
} = this.data } = this.data
listByMerchantIdAndIds({ listByMerchantIdAndIds({
merchantId: default4SStoreInfo.merchantId, merchantId: default4SStoreInfo.merchantId,
suitCarPrice: price ? parseFloat((price / 10000).toFixed(4)) : '' suitCarPrice: price ? parseFloat((price / 10000).toFixed(4)) : ''
}) })
.then(result => { .then(result => {
console.log(result, 'result') console.log(result, 'result')
// debugger // debugger
...@@ -528,6 +529,7 @@ Page({ ...@@ -528,6 +529,7 @@ Page({
return { return {
...item, ...item,
serveName, serveName,
goodsNameAlias: item.upgradeGoodsAlias,
appreciation: item?.appreciation, appreciation: item?.appreciation,
goodsName: item?.upgradeGoodsName, goodsName: item?.upgradeGoodsName,
quotationGoodsServiceItemsRelationDTOList: item?.upgradeGoodsServiceItemsList, quotationGoodsServiceItemsRelationDTOList: item?.upgradeGoodsServiceItemsList,
...@@ -540,7 +542,7 @@ Page({ ...@@ -540,7 +542,7 @@ Page({
// 判断有没有勾选商品,有的话调用一下 // 判断有没有勾选商品,有的话调用一下
orderInfo.vdQuotationGoodsList.length && this.totalFee() orderInfo.vdQuotationGoodsList.length && this.totalFee()
}) })
.catch(err => {}) .catch(err => { })
}, },
// 后面改成全局方法 // 后面改成全局方法
// 除以100保留两位小数点 // 除以100保留两位小数点
...@@ -601,7 +603,7 @@ Page({ ...@@ -601,7 +603,7 @@ Page({
navBarHeight navBarHeight
}) })
}, },
init() {}, init() { },
onRoute(options) { onRoute(options) {
console.log(options, 'options') console.log(options, 'options')
// 判断是编辑还是新增 // 判断是编辑还是新增
...@@ -680,35 +682,35 @@ Page({ ...@@ -680,35 +682,35 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() {}, onReady() { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() {}, onShow() { },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() {}, onHide() { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() {}, onUnload() { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() {}, onPullDownRefresh() { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() {}, onReachBottom() { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {} onShareAppMessage() { }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -36,42 +36,43 @@ Component({ ...@@ -36,42 +36,43 @@ Component({
IMG_URL2, IMG_URL2,
showIcon1: true, // 初始显示图标 showIcon1: true, // 初始显示图标
orderObj: [{ orderObj: [{
label: '车架号', label: '车架号',
key: 'carVin' key: 'carVin'
}, },
{ {
label: '购买商品', label: '购买商品',
key: 'goodsName' key: 'goodsNameAlias',
}, otherKey: 'goodsName'
{ },
label: '工单编号', {
key: 'payId' label: '工单编号',
}, key: 'payId'
{ },
label: '交易流水号', {
key: 'transactionNo', label: '交易流水号',
canCopy:true key: 'transactionNo',
}, canCopy: true
{ },
label: '拒升原因', {
key: 'remark' label: '拒升原因',
}, key: 'remark'
{ },
label: '支付时间', {
key: 'payTime' label: '支付时间',
}, key: 'payTime'
{ },
label: '创建时间', {
key: 'createdTime' label: '创建时间',
}, key: 'createdTime'
{ },
label: '支付方式', {
key: 'payType', label: '支付方式',
mapValue:{ key: 'payType',
1:'线上支付', mapValue: {
2:'门店收款' 1: '线上支付',
} 2: '门店收款'
}, }
},
], ],
// statisticsObj: {}, // statisticsObj: {},
btnTxt: { btnTxt: {
...@@ -269,7 +270,7 @@ Component({ ...@@ -269,7 +270,7 @@ Component({
item.payTime = wx.$util.tsFormatTime(item.payTime, 'Y/M/D h:m:s') item.payTime = wx.$util.tsFormatTime(item.payTime, 'Y/M/D h:m:s')
} }
item.isTouchMove = false item.isTouchMove = false
item.repeal = item.orderStatus==3 || item.orderStatus==5 item.repeal = item.orderStatus == 3 || item.orderStatus == 5
return item return item
}) })
this.setData({ this.setData({
...@@ -446,8 +447,8 @@ Component({ ...@@ -446,8 +447,8 @@ Component({
let merchantIds = [] let merchantIds = []
merchantIds.push(storeInfo?.merchantId) merchantIds.push(storeInfo?.merchantId)
orderStatistics({ orderStatistics({
merchantIds merchantIds
}) })
.then(result => { .then(result => {
let { let {
data, data,
...@@ -476,16 +477,16 @@ Component({ ...@@ -476,16 +477,16 @@ Component({
console.log(err) console.log(err)
}) })
}, },
//手指触摸动作开始 记录起点X坐标 //手指触摸动作开始 记录起点X坐标
touchstart: function (e) { touchstart: function (e) {
//开始触摸时 重置所有删除 //开始触摸时 重置所有删除
this.data.list.forEach(v => { this.data.list.forEach(v => {
// console.log(item) // console.log(item)
if (v.isTouchMove) if (v.isTouchMove)
//只操作为true的 //只操作为true的
v.isTouchMove = false v.isTouchMove = false
v.confirmIndex = false v.confirmIndex = false
}) })
this.setData({ this.setData({
startX: e.changedTouches[0].clientX, startX: e.changedTouches[0].clientX,
startY: e.changedTouches[0].clientY, startY: e.changedTouches[0].clientY,
...@@ -561,7 +562,7 @@ Component({ ...@@ -561,7 +562,7 @@ Component({
var delBtnWidth = that.data.delBtnWidth var delBtnWidth = that.data.delBtnWidth
//如果距离小于删除按钮的1/2,不显示删除按钮 //如果距离小于删除按钮的1/2,不显示删除按钮
var txtStyle = disX > delBtnWidth / 2 ? 'left:-' + delBtnWidth + 'rpx' : 'left:0rpx' var txtStyle = disX > delBtnWidth / 2 ? 'left:-' + delBtnWidth + 'rpx' : 'left:0rpx'
//获取手指触摸的是哪一项 //获取手指触摸的是哪一项
var index = e.currentTarget.dataset.index var index = e.currentTarget.dataset.index
// var ind = e.currentTarget.dataset.ind // var ind = e.currentTarget.dataset.ind
...@@ -580,8 +581,8 @@ Component({ ...@@ -580,8 +581,8 @@ Component({
//返回角度 /Math.atan()返回数字的反正切值 //返回角度 /Math.atan()返回数字的反正切值
return (360 * Math.atan(_Y / _X)) / (2 * Math.PI) return (360 * Math.atan(_Y / _X)) / (2 * Math.PI)
}, },
toConfirmReturanOrder(e){ toConfirmReturanOrder(e) {
const {id} = e.currentTarget.dataset const { id } = e.currentTarget.dataset
let _this = this let _this = this
wx.showModal({ wx.showModal({
title: '', title: '',
...@@ -597,19 +598,19 @@ Component({ ...@@ -597,19 +598,19 @@ Component({
} }
}) })
}, },
toCopyNumber(e){ toCopyNumber(e) {
let {ordernum} = e.currentTarget.dataset let { ordernum } = e.currentTarget.dataset
ordernum = ordernum.replace(/,$/, "") ordernum = ordernum.replace(/,$/, "")
wx.setClipboardData({ wx.setClipboardData({
data: ordernum.toString(), data: ordernum.toString(),
success (res) { success(res) {
wx.$util.showToast('已复制') wx.$util.showToast('已复制')
} }
}) })
}, },
repeal(id){ repeal(id) {
let _this = this let _this = this
cancelOrderById({id}).then(_res_=>{ cancelOrderById({ id }).then(_res_ => {
let { let {
code, code,
message message
...@@ -627,11 +628,11 @@ Component({ ...@@ -627,11 +628,11 @@ Component({
} }
}) })
}, },
toshowErrorOrder(e){ toshowErrorOrder(e) {
const {item} = e.currentTarget.dataset const { item } = e.currentTarget.dataset
this.setData({ this.setData({
showErrorId:item.payId showErrorId: item.payId
},()=>{ }, () => {
wx.$modal(this, { wx.$modal(this, {
show: true, show: true,
title: '工单标记', title: '工单标记',
...@@ -639,11 +640,11 @@ Component({ ...@@ -639,11 +640,11 @@ Component({
success: res => { success: res => {
wx.$router.go(item.mode != 0 ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation', { wx.$router.go(item.mode != 0 ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation', {
id: item.id, id: item.id,
resetOrder:true resetOrder: true
}) })
}, },
error: () => { error: () => {
} }
}) })
}) })
......
...@@ -76,13 +76,13 @@ ...@@ -76,13 +76,13 @@
<image src="{{IMG_URL}}/miniProgram/edit_icon.png" class="iconImage"></image>客户信息 <image src="{{IMG_URL}}/miniProgram/edit_icon.png" class="iconImage"></image>客户信息
</view> </view>
<view class="header-status"> <view class="header-status">
<!-- 0待报价、1待确认、2待支付、3已支付、-1战败 5已完成(已签名)--> <!-- 0待报价、1待确认、2待支付、3已支付、-1战败 5已完成(已签名)6已退款 -->
<!-- == '3' --> <!-- == '3' -->
<view wx:if="{{ item.orderStatus == '3'||item.orderStatus =='5'}}"> <view wx:if="{{ item.orderStatus == '3'||item.orderStatus =='5'}}">
<span class="green-txt">{{orderStatusObj[item.orderStatus]}}</span> <span class="green-txt">{{orderStatusObj[item.orderStatus]}}</span>
<!-- <span class="header-price">¥ {{item.quotedPriceUpdate || ''}}</span> --> <!-- <span class="header-price">¥ {{item.quotedPriceUpdate || ''}}</span> -->
</view> </view>
<view wx:elif="{{ item.orderStatus == '9'||item.orderStatus =='11'}}"> <view wx:elif="{{ item.orderStatus == '9'||item.orderStatus =='11' || item.orderStatus == '6'}}">
<span class="grey-txt">{{orderStatusObj[item.orderStatus]}}</span> <span class="grey-txt">{{orderStatusObj[item.orderStatus]}}</span>
<!-- <span class="header-price">¥ {{item.quotedPriceUpdate || ''}}</span> --> <!-- <span class="header-price">¥ {{item.quotedPriceUpdate || ''}}</span> -->
</view> </view>
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<view class="order-label">{{i.label}}</view> <view class="order-label">{{i.label}}</view>
<view class="order-value"> <view class="order-value">
<block wx:if="{{i.mapValue}}">{{i.mapValue[item[i.key]] || ''}}</block> <block wx:if="{{i.mapValue}}">{{i.mapValue[item[i.key]] || ''}}</block>
<block wx:else>{{item[i.key] || ''}}</block> <block wx:else>{{item[i.key]|| item[i.otherKey]|| ''}}</block>
<image wx:if="{{i.canCopy&&item[i.key]}}" catch:tap="toCopyNumber" data-ordernum="{{item[i.key]}}" class="copy_icon" src="../../../images/copy_name.png" /> <image wx:if="{{i.canCopy&&item[i.key]}}" catch:tap="toCopyNumber" data-ordernum="{{item[i.key]}}" class="copy_icon" src="../../../images/copy_name.png" />
</view> </view>
</view> </view>
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
<view wx:if="{{item.orderStatus == '-1' || item.orderStatus == '0'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}"> <view wx:if="{{item.orderStatus == '-1' || item.orderStatus == '0'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.orderStatus]}} {{btnTxt[item.orderStatus]}}
</view> </view>
<block wx:else> <block wx:elif="{{item.orderStatus != 6}}">
<block wx:if="{{item.orderStatus == '2' || item.orderStatus == '3' || item.orderStatus == '5'}}"> <block wx:if="{{item.orderStatus == '2' || item.orderStatus == '3' || item.orderStatus == '5'}}">
<view wx:if="{{item.orderStatus == '2'}}" class="order-btn default-btn padding_20" bindtap="handleClickBtn" data-target="{{item}}">战败</view> <view wx:if="{{item.orderStatus == '2'}}" class="order-btn default-btn padding_20" bindtap="handleClickBtn" data-target="{{item}}">战败</view>
<view wx:if="{{item.orderStatus == '2'}}" class="order-btn padding_20" bindtap="handleClickBtn" data-target="{{item}}" data-type="pay"> <view wx:if="{{item.orderStatus == '2'}}" class="order-btn padding_20" bindtap="handleClickBtn" data-target="{{item}}" data-type="pay">
......
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
.order-box { .order-box {
background-color: #fdfdfd; background-color: #fdfdfd;
height: calc(100% - 104rpx - 104rpx - 52rpx - 20rpx); height: calc(100% - 120rpx - 52rpx - 20rpx);
} }
.list { .list {
...@@ -214,7 +214,8 @@ ...@@ -214,7 +214,8 @@
justify-content: space-between; justify-content: space-between;
overflow: hidden; overflow: hidden;
} }
.list .item .item-inner{
.list .item .item-inner {
width: 100%; width: 100%;
margin-right: 0; margin-right: 0;
-webkit-transition: all 0.4s; -webkit-transition: all 0.4s;
...@@ -223,6 +224,7 @@ ...@@ -223,6 +224,7 @@
transform: translateX(72px); transform: translateX(72px);
margin-left: -72px; margin-left: -72px;
} }
.list .item .del { .list .item .del {
width: 72px; width: 72px;
display: flex; display: flex;
...@@ -289,13 +291,14 @@ ...@@ -289,13 +291,14 @@
border-radius: 4rpx; border-radius: 4rpx;
} }
.grey-txt{ .grey-txt {
background: #F2F3F5; background: #F2F3F5;
color: #999999; color: #999999;
padding: 4rpx 8rpx; padding: 4rpx 8rpx;
font-size: 24rpx; font-size: 24rpx;
border-radius: 4rpx; border-radius: 4rpx;
} }
.red-txt { .red-txt {
color: #EB4E4E; color: #EB4E4E;
background: #FDECE9; background: #FDECE9;
...@@ -736,11 +739,13 @@ ...@@ -736,11 +739,13 @@
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
} }
.touch-move-active .item-inner, .touch-move-active .item-inner,
.touch-move-active .del { .touch-move-active .del {
-webkit-transform: translateX(0) !important; -webkit-transform: translateX(0) !important;
transform: translateX(0) !important; transform: translateX(0) !important;
} }
.modatcontent { .modatcontent {
box-sizing: border-box; box-sizing: border-box;
padding: 48rpx 50rpx; padding: 48rpx 50rpx;
...@@ -763,7 +768,8 @@ ...@@ -763,7 +768,8 @@
.modal .color { .modal .color {
color: #347BFF; color: #347BFF;
} }
.copy_icon{
.copy_icon {
width: 28rpx; width: 28rpx;
height: 28rpx; height: 28rpx;
margin-left: 12rpx; margin-left: 12rpx;
......
...@@ -131,8 +131,9 @@ ...@@ -131,8 +131,9 @@
<view class="box customer"> <view class="box customer">
<view class="title userTitle"> <view class="title userTitle">
<view>客户信息</view> <view>客户信息</view>
<view bindtap="jumpUserPortrait" class="updateInfo icon"><image src="{{IMG_URL}}miniProgram/custom_portrait_icon.png" class="iconImage" ></image>画像</view> <!-- 已退款或已开票不可修改客户任何信息 -->
<view wx:if="{{isYqdSuper||isStaff}}" bindtap="jumpUpdate" class="updateInfo "><image src="{{IMG_URL}}miniProgram/edit_icon.png" class="iconImage" ></image>客户信息</view> <view wx:if="{{orderInfo.status != 12 || orderInfo.invoiceStatus != 2}}" bindtap="jumpUserPortrait" class="updateInfo icon"><image src="{{IMG_URL}}miniProgram/custom_portrait_icon.png" class="iconImage" ></image>画像</view>
<view wx:if="{{(isYqdSuper||isStaff) && (orderInfo.status != 12 || orderInfo.invoiceStatus != 2)}}" bindtap="jumpUpdate" class="updateInfo "><image src="{{IMG_URL}}miniProgram/edit_icon.png" class="iconImage" ></image>客户信息</view>
</view> </view>
<block wx:for="{{customerObj}}" wx:key="index"> <block wx:for="{{customerObj}}" wx:key="index">
<view class="cell"> <view class="cell">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!