Commit 702cdfff by 张立顺

fix bug

1 parent 186c3552
// pages/tabWorkOrder/components/OrderScreen/OrderScreen.js // pages/tabWorkOrder/components/OrderScreen/OrderScreen.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({
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
...@@ -16,8 +16,16 @@ Component({ ...@@ -16,8 +16,16 @@ Component({
this.setViewData() this.setViewData()
let { userInfo } = this.data let { userInfo } = this.data
// 非超管 获取转化人员 销售顾问 // 非超管 获取转化人员 销售顾问
if (!(userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo.loginRole == 6)) { if (
if (wx.$orderListDateListScreenRefresh) { // 切换门店将数据清空 !(
userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo.loginRole == 5 ||
userInfo.loginRole == 6
)
) {
if (wx.$orderListDateListScreenRefresh) {
// 切换门店将数据清空
this.setData({ this.setData({
'form.userIdList': [], 'form.userIdList': [],
'form.sellerUserIdList': [] 'form.sellerUserIdList': []
...@@ -49,7 +57,8 @@ Component({ ...@@ -49,7 +57,8 @@ Component({
data: { data: {
IMG_URL, IMG_URL,
// 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销 // 订单状态 1 待跟进, 2 不升级, 3 待支付,4 已支付,6 已评价 , 9 已撤销
statusList: [{ statusList: [
{
name: '全部', name: '全部',
active: true, active: true,
value: [] value: []
...@@ -103,57 +112,68 @@ Component({ ...@@ -103,57 +112,68 @@ Component({
{ {
name: '全部', name: '全部',
active: true, active: true,
value: [] value: ''
}, },
{ {
name: '已施工', name: '已施工',
value: 1 value: 'Y'
}, },
{ {
name: '待施工', name: '待施工',
value: 0 value: 'N'
}, },
{ {
name: '无需施工', name: '无需施工',
value: 3 value: 'Z'
} }
], ],
maxDate: new Date().format('yyyy-MM-dd'), maxDate: new Date().format('yyyy-MM-dd'),
orderTimeList: [{ orderTimeList: [
{
name: '全部', name: '全部',
active: true active: true
}, { },
{
name: '今日', name: '今日',
orderStartDate: new Date().format('yyyy-MM-dd'), orderStartDate: new Date().format('yyyy-MM-dd'),
orderEndDate: new Date().format('yyyy-MM-dd') orderEndDate: new Date().format('yyyy-MM-dd')
}, { },
{
name: '本月', name: '本月',
orderStartDate: new Date(new Date().setDate(1)).format('yyyy-MM-dd'), orderStartDate: new Date(new Date().setDate(1)).format('yyyy-MM-dd'),
orderEndDate: new Date().format('yyyy-MM-dd') orderEndDate: new Date().format('yyyy-MM-dd')
}, { },
{
orderStartDate: '', orderStartDate: '',
orderEndDate: '', orderEndDate: '',
type: 'custom' type: 'custom'
}], }
payTimeList: [{ ],
payTimeList: [
{
name: '全部', name: '全部',
active: true active: true
}, { },
{
name: '今日', name: '今日',
payStartDate: new Date().format('yyyy-MM-dd'), payStartDate: new Date().format('yyyy-MM-dd'),
payEndDate: new Date().format('yyyy-MM-dd') payEndDate: new Date().format('yyyy-MM-dd')
}, { },
{
name: '本月', name: '本月',
payStartDate: new Date(new Date().setDate(1)).format('yyyy-MM-dd'), payStartDate: new Date(new Date().setDate(1)).format('yyyy-MM-dd'),
payEndDate: new Date().format('yyyy-MM-dd') payEndDate: new Date().format('yyyy-MM-dd')
}, { },
{
payStartDate: '', payStartDate: '',
payEndDate: '', payEndDate: '',
type: 'custom' type: 'custom'
}], }
],
employShowMore: false, employShowMore: false,
salesmanShowMore: false, salesmanShowMore: false,
payTypeList: [{ payTypeList: [
{
name: '门店收款', name: '门店收款',
value: 2 value: 2
}, },
...@@ -204,8 +224,10 @@ Component({ ...@@ -204,8 +224,10 @@ Component({
}, },
storeConfirm(e) { storeConfirm(e) {
let { storeType } = this.data let { storeType } = this.data
if (storeType == 1) this.setData({ 'form.selectedYqMerchantList': e?.detail }) if (storeType == 1)
if (storeType == 2) this.setData({ 'form.selectedMerchantList': e?.detail }) this.setData({ 'form.selectedYqMerchantList': e?.detail })
if (storeType == 2)
this.setData({ 'form.selectedMerchantList': e?.detail })
this.setData({ showStoreSelectPopup: false, isReset: false }) this.setData({ showStoreSelectPopup: false, isReset: false })
}, },
yqMerchantChoose() { yqMerchantChoose() {
...@@ -225,11 +247,21 @@ Component({ ...@@ -225,11 +247,21 @@ Component({
this.getsellerUserIdList(userInfo?.shopMerchantId, 1) this.getsellerUserIdList(userInfo?.shopMerchantId, 1)
}, },
init() { init() {
let { orderTimeList, payTimeList, userInfo, constructionStatusList } = this.data let { orderTimeList, payTimeList, userInfo, constructionStatusList } =
this.data
// 非超管 // 非超管
if (!(userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6)) { if (
!(
userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo.loginRole == 5 ||
userInfo?.loginRole == 6
)
) {
// 获取支付方式 // 获取支付方式
api.getYqStoreConfig({ yqMerchantId: userInfo?.merchantId }).then(res => { api
.getYqStoreConfig({ yqMerchantId: userInfo?.merchantId })
.then(res => {
let { code, message } = res let { code, message } = res
if (code == 0) { if (code == 0) {
let obj = res.data || {} let obj = res.data || {}
...@@ -263,18 +295,22 @@ Component({ ...@@ -263,18 +295,22 @@ Component({
} }
}) })
} else { } else {
let payArr = [{ let payArr = [
{
name: '全部', name: '全部',
value: '', value: '',
active: true active: true
}, ...wx.$util.deepClone(this.data.payTypeList), { },
...wx.$util.deepClone(this.data.payTypeList),
{
name: '对公转账', name: '对公转账',
value: '6' value: '6'
}, },
{ {
name: '其它收款', name: '其它收款',
value: '7' value: '7'
}] }
]
this.setData({ this.setData({
['form.payType']: payArr ['form.payType']: payArr
}) })
...@@ -282,7 +318,7 @@ Component({ ...@@ -282,7 +318,7 @@ Component({
this.setData({ this.setData({
['form.orderTimeList']: wx.$util.deepClone(orderTimeList), ['form.orderTimeList']: wx.$util.deepClone(orderTimeList),
['form.payTimeList']: wx.$util.deepClone(payTimeList), ['form.payTimeList']: wx.$util.deepClone(payTimeList),
['form.constructionStatus']: wx.$util.deepClone(constructionStatusList) ['form.constructionFlag']: wx.$util.deepClone(constructionStatusList)
}) })
}, },
showMore(e) { showMore(e) {
...@@ -300,12 +336,15 @@ Component({ ...@@ -300,12 +336,15 @@ Component({
date: { start, end } date: { start, end }
} = e.detail } = e.detail
data?.map(i => (i.active = false)) data?.map(i => (i.active = false))
let obj = name == 'orderTimeList' ? { let obj =
name == 'orderTimeList'
? {
active: true, active: true,
orderStartDate: start, orderStartDate: start,
orderEndDate: end, orderEndDate: end,
type: 'custom' type: 'custom'
} : { }
: {
active: true, active: true,
payStartDate: start, payStartDate: start,
payEndDate: end, payEndDate: end,
...@@ -320,7 +359,10 @@ Component({ ...@@ -320,7 +359,10 @@ Component({
// 日期组件 // 日期组件
showCalendar(e) { showCalendar(e) {
let { target } = e.currentTarget.dataset let { target } = e.currentTarget.dataset
let calendarModule = target == 'showOrder' ? this.selectComponent('#orderCalendar') : this.selectComponent('#payCalendar') let calendarModule =
target == 'showOrder'
? this.selectComponent('#orderCalendar')
: this.selectComponent('#payCalendar')
calendarModule.showCalendar && calendarModule.showCalendar(e) calendarModule.showCalendar && calendarModule.showCalendar(e)
}, },
choose(e) { choose(e) {
...@@ -329,7 +371,7 @@ Component({ ...@@ -329,7 +371,7 @@ Component({
if (target[index].disabled) return if (target[index].disabled) return
if (listName === 'sellerUserIdList' || listName === 'userIdList') { if (listName === 'sellerUserIdList' || listName === 'userIdList') {
if (index == 0) { if (index == 0) {
target.forEach(i => i.active = false) target.forEach(i => (i.active = false))
target[index].active = true target[index].active = true
} else { } else {
target[index].active = !target[index].active target[index].active = !target[index].active
...@@ -352,9 +394,7 @@ Component({ ...@@ -352,9 +394,7 @@ Component({
if (n != -1) this.setOrderStatusListDisabled(n) if (n != -1) this.setOrderStatusListDisabled(n)
}, },
setOrderStatusListDisabled(statusType) { setOrderStatusListDisabled(statusType) {
let { let { statusList } = this.data
statusList
} = this.data
statusList.map((e, index) => { statusList.map((e, index) => {
if (statusType == 1) { if (statusType == 1) {
if (index != 1 && index != 0) e.disabled = true if (index != 1 && index != 0) e.disabled = true
...@@ -400,7 +440,10 @@ Component({ ...@@ -400,7 +440,10 @@ Component({
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
let formArr = wx.$util.arrayUnique(arr?.concat(form?.[targetItem] || []), 'uuid') let formArr = wx.$util.arrayUnique(
arr?.concat(form?.[targetItem] || []),
'uuid'
)
this.setData({ this.setData({
[target]: formArr [target]: formArr
}) })
...@@ -449,7 +492,14 @@ Component({ ...@@ -449,7 +492,14 @@ Component({
let arr = [] let arr = []
form[e]?.map(i => { form[e]?.map(i => {
if (i.active) { if (i.active) {
let { orderStartDate, orderEndDate, payStartDate, payEndDate, value, merchantId } = i let {
orderStartDate,
orderEndDate,
payStartDate,
payEndDate,
value,
merchantId
} = i
obj[e] = value obj[e] = value
// 订单时间 // 订单时间
if (orderStartDate && orderEndDate) { if (orderStartDate && orderEndDate) {
......
...@@ -152,7 +152,7 @@ Page({ ...@@ -152,7 +152,7 @@ Page({
}) })
} }
}, },
error: () => { } error: () => {}
}, },
'#modal2' '#modal2'
) )
...@@ -272,8 +272,8 @@ Page({ ...@@ -272,8 +272,8 @@ Page({
} else { } else {
wx.$util.showNoAccess() wx.$util.showNoAccess()
} }
// 已支付加已施工 // 已支付加已施工 全部子订单都已施工才能确认施工详情跳转
} else if (item.constructionFlag == 'Y' && item.status != 10) { } else if (item.allConstructionFlag && item.status != 10) {
wx.$router.go('tabWorkOrder.constructionOrderDetail', item) wx.$router.go('tabWorkOrder.constructionOrderDetail', item)
} else { } else {
wx.$router.go('tabWorkOrder.' + name, item) wx.$router.go('tabWorkOrder.' + name, item)
...@@ -547,7 +547,7 @@ Page({ ...@@ -547,7 +547,7 @@ Page({
return (360 * Math.atan(_Y / _X)) / (2 * Math.PI) return (360 * Math.atan(_Y / _X)) / (2 * Math.PI)
}, },
init(userInfo) { }, init(userInfo) {},
search() { search() {
wx.$orderListRefresh = false wx.$orderListRefresh = false
let { searchObj, userInfo } = this.data let { searchObj, userInfo } = this.data
...@@ -623,7 +623,8 @@ Page({ ...@@ -623,7 +623,8 @@ Page({
// 判断一下是否所有子订单都已经施工,是就跳转 施工完成 // 判断一下是否所有子订单都已经施工,是就跳转 施工完成
e.allConstructionFlag = true e.allConstructionFlag = true
e.subOrderList.map(i => { e.subOrderList.map(i => {
if (i.constructionFlag != 'Y') { // 判断一下是否所有子订单都已经施工
if (![1, 2, 3].includes(i.constructionStatus)) {
e.allConstructionFlag = false e.allConstructionFlag = false
} }
i.totalPrice = Number(wx.$util.decimal(i.totalPrice, 2)).toFixed(2) i.totalPrice = Number(wx.$util.decimal(i.totalPrice, 2)).toFixed(2)
...@@ -649,7 +650,8 @@ Page({ ...@@ -649,7 +650,8 @@ Page({
g.price = g.totalPrice g.price = g.totalPrice
? Number(g.totalPrice) / Number(g.number) ? Number(g.totalPrice) / Number(g.number)
: g.upgradePrice : g.upgradePrice
if (g.constructionFlag != 'Y') { // 判断一下是否所有子订单都已经施工
if (![1, 2, 3].includes(g.constructionStatus)) {
e.allConstructionFlag = false e.allConstructionFlag = false
} }
}) })
...@@ -859,7 +861,7 @@ Page({ ...@@ -859,7 +861,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { }, onReady: function () {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -871,22 +873,22 @@ Page({ ...@@ -871,22 +873,22 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { }, onHide: function () {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { }, onUnload: function () {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { }, onPullDownRefresh: function () {},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { }, onReachBottom: function () {},
scrollonReachBottom() { scrollonReachBottom() {
let { total, pageNum } = this.data let { total, pageNum } = this.data
wx.$util.onReachBottom( wx.$util.onReachBottom(
...@@ -909,5 +911,5 @@ Page({ ...@@ -909,5 +911,5 @@ Page({
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { } onShareAppMessage: function () {}
}) })
...@@ -236,6 +236,7 @@ page { ...@@ -236,6 +236,7 @@ page {
.list .item .goods-list .constructionFlaging::after { .list .item .goods-list .constructionFlaging::after {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
margin-left: -10rpx;
background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/constructionFlaging.png); background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/constructionFlaging.png);
background-size: 100%; background-size: 100%;
} }
...@@ -243,6 +244,7 @@ page { ...@@ -243,6 +244,7 @@ page {
.list .item .goods-list .constructionFlaged::after { .list .item .goods-list .constructionFlaged::after {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
margin-left: -10rpx;
background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/constructionFlaged.png); background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/constructionFlaged.png);
background-size: 100%; background-size: 100%;
} }
...@@ -252,6 +254,7 @@ page { ...@@ -252,6 +254,7 @@ page {
height: var(--fontSize32); height: var(--fontSize32);
-webkit-transition: all 0.4s; -webkit-transition: all 0.4s;
transition: all 0.4s; transition: all 0.4s;
margin-left: -8rpx;
background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/pullDownArrow.png); background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/pullDownArrow.png);
background-size: 100%; background-size: 100%;
} }
...@@ -262,6 +265,8 @@ page { ...@@ -262,6 +265,8 @@ page {
// height: var(--fontSize32); // height: var(--fontSize32);
// -webkit-transition: all 0.4s; // -webkit-transition: all 0.4s;
transition: all 0.4s; transition: all 0.4s;
margin-top: -15rpx;
margin-left: -8rpx;
// background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/pullDownArrow.png); // background: url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/pullDownArrow.png);
// background-size: 100%; // background-size: 100%;
} }
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<view class="goods-list" style="padding-bottom:{{ li.subOrderList.length<1?0:'' }}"> <view class="goods-list" style="padding-bottom:{{ li.subOrderList.length<1?0:'' }}">
<block wx:if="{{ li.subOrderList.length }}"> <block wx:if="{{ li.subOrderList.length }}">
<block wx:for="{{ li.subOrderList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex"> <block wx:for="{{ li.subOrderList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view catch:tap="foldUp" data-item="{{ i }}" data-index="{{ sindex }}" data-listindex="{{ ind }}" class="goods {{ filter.subStatus(i.constructionStatus) }} {{i.packageGoodsOrderList?'pullDownArrow':''}} {{sindex.foldUp?'showAllGoodsListFlag':'' }}" wx:if="{{ li.showAllGoodsListFlag ? true : sindex < 2 }}"> <view catch:tap="foldUp" data-item="{{ i }}" data-index="{{ sindex }}" data-listindex="{{ ind }}" class="goods {{ filter.subStatus(i.constructionStatus) }} {{i.packageGoodsOrderList?'pullDownArrow':''}} {{i.foldUp?'showAllGoodsListFlag':'' }}" wx:if="{{ li.showAllGoodsListFlag ? true : sindex < 2 }}">
<view class="goods-name text-hide"> <view class="goods-name text-hide">
{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || i.packageName||''}} {{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || i.packageName||''}}
</view> </view>
......
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
<view class="main" style="padding-bottom: {{'var(--fontSize290)'}};"> <view class="main" style="padding-bottom: {{'var(--fontSize290)'}};">
<view class="status-box"> <view class="status-box">
<view class="user-info"> <view class="user-info">
<view class="car hide-text"><image wx:if="{{detailInfo.constructionStatus != 0}}" src="{{IMG_URL}}repair-order/complete.png" mode=""/>{{detailInfo.customer.carSeriesName || '无车型客户'}}</view> <view class="car hide-text">
<image wx:if="{{detailInfo.constructionStatus != 0}}" src="{{IMG_URL}}repair-order/complete.png" mode="" />{{detailInfo.customer.carSeriesName || '无车型客户'}}
</view>
<view class="staff-name"> <view class="staff-name">
<text class="name">{{detailInfo.customer.customerName || '-'}}</text> <text class="name">{{detailInfo.customer.customerName || '-'}}</text>
</view> </view>
...@@ -22,7 +24,7 @@ ...@@ -22,7 +24,7 @@
<view>完成施工,如客户返工请点击</view> <view>完成施工,如客户返工请点击</view>
<view wx:if="{{detailInfo.approvalStatus}}">{{detailInfo.approvalName}}已审核{{detailInfo.approvalStatus == 1 ? '通过' : '不通过'}}</view> <view wx:if="{{detailInfo.approvalStatus}}">{{detailInfo.approvalName}}已审核{{detailInfo.approvalStatus == 1 ? '通过' : '不通过'}}</view>
</view> </view>
<view class="btn text-center" bindtap="handleRedo" wx:if="{{filter.btnPermissions(userPermissions, 'WULIAOCHUKU')}}">客户返工</view> <view class="btn text-center" bindtap="handleRedo" wx:if="{{filter.btnPermissions(userPermissions, 'WULIAOCHUKU')&&detailInfo.effectiveFlag == 0}}">客户返工</view>
</view> </view>
</block> </block>
</view> </view>
...@@ -87,7 +89,7 @@ ...@@ -87,7 +89,7 @@
</block> </block>
<block wx:elif="{{detailInfo.constructionStatus != 0}}"> <block wx:elif="{{detailInfo.constructionStatus != 0}}">
<view class="empty-box"> <view class="empty-box">
<image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode=""/> <image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode="" />
暂无数据 暂无数据
</view> </view>
</block> </block>
...@@ -121,7 +123,7 @@ ...@@ -121,7 +123,7 @@
</block> </block>
<block wx:else> <block wx:else>
<view class="empty-box"> <view class="empty-box">
<image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode=""/> <image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode="" />
暂无数据 暂无数据
</view> </view>
</block> </block>
...@@ -194,37 +196,8 @@ ...@@ -194,37 +196,8 @@
</view> </view>
</view> </view>
</block> </block>
<time-select <time-select show="{{ startTimeVisible }}" title="开始施工时间" defaultTime="{{ detailInfo.startTime }}" isStartTime="{{ true }}" endTime="{{ detailInfo.endTime }}" bind:confirm="onStartTimeConfirm" bindcancel="onClosePicker" />
show="{{ startTimeVisible }}" <time-select show="{{ endTimeVisible }}" title="结束施工时间" defaultTime="{{ detailInfo.endTime }}" isStartTime="{{ false }}" startTime="{{ detailInfo.startTime }}" bind:confirm="onEndTimeConfirm" bindcancel="onClosePicker" />
title="开始施工时间" <outbound-popup show="{{ outboundVisible }}" title="物料出库" detailInfo="{{ detailInfo }}" bindcancel="handleOutboundCancel" bindconfirm="handleOutboundConfirm" userPermissions="{{ userPermissions }}"></outbound-popup>
defaultTime="{{ detailInfo.startTime }}" <rework-popup show="{{ reworkVisible }}" title="返工确认" detailInfo="{{ detailInfo }}" bindcancel="handleReworkCancel" bindconfirm="handleReworkConfirm"></rework-popup>
isStartTime="{{ true }}"
endTime="{{ detailInfo.endTime }}"
bind:confirm="onStartTimeConfirm"
bindcancel="onClosePicker"
/>
<time-select
show="{{ endTimeVisible }}"
title="结束施工时间"
defaultTime="{{ detailInfo.endTime }}"
isStartTime="{{ false }}"
startTime="{{ detailInfo.startTime }}"
bind:confirm="onEndTimeConfirm"
bindcancel="onClosePicker"
/>
<outbound-popup
show="{{ outboundVisible }}"
title="物料出库"
detailInfo="{{ detailInfo }}"
bindcancel="handleOutboundCancel"
bindconfirm="handleOutboundConfirm"
userPermissions="{{ userPermissions }}"
></outbound-popup>
<rework-popup
show="{{ reworkVisible }}"
title="返工确认"
detailInfo="{{ detailInfo }}"
bindcancel="handleReworkCancel"
bindconfirm="handleReworkConfirm"
></rework-popup>
<review-popup show="{{reviewVisible}}" bindcancel="reviewCancel" bindconfirm="reviewConfirm" bindclose="reviewClose"></review-popup> <review-popup show="{{reviewVisible}}" bindcancel="reviewCancel" bindconfirm="reviewConfirm" bindclose="reviewClose"></review-popup>
\ No newline at end of file \ No newline at end of file
...@@ -50,6 +50,7 @@ Component({ ...@@ -50,6 +50,7 @@ Component({
wx.$router.go(path, { wx.$router.go(path, {
...item ...item
}) })
this.handleCancel()
}, },
selectType(e) { selectType(e) {
let { type } = e.currentTarget.dataset let { type } = e.currentTarget.dataset
......
...@@ -29,7 +29,8 @@ Component({ ...@@ -29,7 +29,8 @@ Component({
data: { data: {
// selectType: 82, // selectType: 82,
constructionList: [], constructionList: [],
loading: false loading: false,
first: true
}, },
/** /**
...@@ -46,6 +47,7 @@ Component({ ...@@ -46,6 +47,7 @@ Component({
// let {constructionList} = this.data // let {constructionList} = this.data
let { index, value } = e.currentTarget.dataset let { index, value } = e.currentTarget.dataset
this.setData({ this.setData({
first: false,
['constructionList[' + index + '].constructionFlag']: value ['constructionList[' + index + '].constructionFlag']: value
}) })
}, },
...@@ -99,7 +101,7 @@ Component({ ...@@ -99,7 +101,7 @@ Component({
}) })
}) })
}, },
error: () => {} error: () => { }
}, },
'#modal' '#modal'
) )
...@@ -108,11 +110,17 @@ Component({ ...@@ -108,11 +110,17 @@ Component({
this.triggerEvent('cancel') this.triggerEvent('cancel')
}, },
handleConfirm() { handleConfirm() {
let { constructionList, orderCode } = this.data let { constructionList, orderCode, first } = this.data
if (constructionList.length == 0 || first) return false;
if (constructionList.length > 0) { if (constructionList.length > 0) {
let flag = constructionList.some(item => item.constructionFlag == 1) let flag = constructionList.every(item => {
// console.log(item);
return ['1', '2'].includes(item.constructionFlag)
})
// console.log(flag, 'constructionFlag');
if (!flag) { if (!flag) {
wx.$util.showToast('请最少选择一个施工商品') wx.$util.showToast('需要勾选全部施工商品')
return return
} }
} }
......
...@@ -123,4 +123,8 @@ ...@@ -123,4 +123,8 @@
background: #347BFF; background: #347BFF;
margin-left: 24rpx; margin-left: 24rpx;
} }
.disabled {
background: #D0D2D6;
color: #FFFFFF;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -22,6 +22,6 @@ ...@@ -22,6 +22,6 @@
</view> </view>
<view class="btnbox"> <view class="btnbox">
<view class="btn cancel" bind:tap="handleCancel">取消</view> <view class="btn cancel" bind:tap="handleCancel">取消</view>
<view class="btn confirm" bind:tap="handleConfirm">下一步</view> <view class="btn confirm {{constructionList.length == '0' || first? 'disabled' : '' }}" bind:tap="handleConfirm">下一步</view>
</view> </view>
</modal> </modal>
\ No newline at end of file \ No newline at end of file
// tabWorkOrder/components/applyRefundBtn/applyRefundBtn.js // tabWorkOrder/components/applyRefundBtn/applyRefundBtn.js
import api from "~/api/api" import api from '~/api/api'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
orderInfo: Object orderInfo: Object,
showRefundBtn: Boolean,
updateFlag: Boolean
}, },
/** /**
...@@ -27,12 +28,15 @@ Component({ ...@@ -27,12 +28,15 @@ Component({
selectTap() { selectTap() {
let { orderInfo } = this.data let { orderInfo } = this.data
// 查询订单可展示按钮 // 查询订单可展示按钮
api.getMoreBtnAPI({orderCode: orderInfo.orderCode}).then(res => { api.getMoreBtnAPI({ orderCode: orderInfo.orderCode }).then(res => {
let { code, data } = res let { code, data } = res
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
moreSelectData: this.filterMoreSelectData(data.refundApplyButton, data.refundApplyDetailButton), moreSelectData: this.filterMoreSelectData(
showSelect: !this.data.showSelect, data.refundApplyButton,
data.refundApplyDetailButton
),
showSelect: !this.data.showSelect
}) })
} }
}) })
...@@ -41,8 +45,8 @@ Component({ ...@@ -41,8 +45,8 @@ Component({
filterMoreSelectData(refundApplyButton, refundApplyDetailButton) { filterMoreSelectData(refundApplyButton, refundApplyDetailButton) {
const allOptions = ['申请退款', '退款详情'] const allOptions = ['申请退款', '退款详情']
const conditions = { const conditions = {
'申请退款': refundApplyButton === 'Y', 申请退款: refundApplyButton === 'Y',
'退款详情': refundApplyDetailButton === 'Y' 退款详情: refundApplyDetailButton === 'Y'
} }
return allOptions.filter(option => conditions[option]) return allOptions.filter(option => conditions[option])
}, },
...@@ -53,7 +57,13 @@ Component({ ...@@ -53,7 +57,13 @@ Component({
moreSelectIndex: null moreSelectIndex: null
}) })
}, },
tapConstruction() {
this.closeSelect()
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
sublistVisible: true
})
},
optionTap(e) { optionTap(e) {
let { index, item } = e.currentTarget.dataset let { index, item } = e.currentTarget.dataset
let { orderInfo } = this.data let { orderInfo } = this.data
...@@ -62,8 +72,13 @@ Component({ ...@@ -62,8 +72,13 @@ Component({
// 申请退款点击埋点 // 申请退款点击埋点
wx.$track.setTrackData(0, 'apply_refund_page', {}, '', 1) wx.$track.setTrackData(0, 'apply_refund_page', {}, '', 1)
// 退款申请时区域运营查询 // 退款申请时区域运营查询
api.areaSupervisionExistsAPI({merchantId: userInfo.shopMerchantId, sceneType: userInfo.sceneType}).then(res => { api
let { code, data, message} = res .areaSupervisionExistsAPI({
merchantId: userInfo.shopMerchantId,
sceneType: userInfo.sceneType
})
.then(res => {
let { code, data, message } = res
if (code == 0) { if (code == 0) {
if (!data) { if (!data) {
return this.setData({ return this.setData({
...@@ -72,7 +87,7 @@ Component({ ...@@ -72,7 +87,7 @@ Component({
}) })
} else { } else {
wx.navigateTo({ wx.navigateTo({
url: `/tabWorkOrder/pages/refundApply/refundApply?orderCode=${orderInfo.orderCode}&shopMerchantName=${orderInfo.merchantName}&shopMerchantId=${orderInfo.merchantId}`, url: `/tabWorkOrder/pages/refundApply/refundApply?orderCode=${orderInfo.orderCode}&shopMerchantName=${orderInfo.merchantName}&shopMerchantId=${orderInfo.merchantId}`
}) })
this.closeSelect() this.closeSelect()
} }
...@@ -84,16 +99,18 @@ Component({ ...@@ -84,16 +99,18 @@ Component({
// 退款详情点击埋点 // 退款详情点击埋点
wx.$track.setTrackData(0, 'refund_detail_page', {}, '', 1) wx.$track.setTrackData(0, 'refund_detail_page', {}, '', 1)
// 点击退款详情,判断是否存在多条退款申请记录,存在跳转列表页,不存在直接跳转详情页 // 点击退款详情,判断是否存在多条退款申请记录,存在跳转列表页,不存在直接跳转详情页
api.getRefundDetailListAPI({orderCode: orderInfo.orderCode}).then(res => { api
.getRefundDetailListAPI({ orderCode: orderInfo.orderCode })
.then(res => {
let { code, data } = res let { code, data } = res
if (code == 0) { if (code == 0) {
if (data?.length > 1) { if (data?.length > 1) {
wx.navigateTo({ wx.navigateTo({
url: `/tabWorkOrder/pages/refundDetailList/refundDetailList?orderCode=${orderInfo.orderCode}`, url: `/tabWorkOrder/pages/refundDetailList/refundDetailList?orderCode=${orderInfo.orderCode}`
}) })
} else if (data.length == 1) { } else if (data.length == 1) {
wx.navigateTo({ wx.navigateTo({
url: `/tabWorkOrder/pages/refundApply/refundApply?applyCode=${data[0].applyCode}`, url: `/tabWorkOrder/pages/refundApply/refundApply?applyCode=${data[0].applyCode}`
}) })
} }
} }
...@@ -102,7 +119,7 @@ Component({ ...@@ -102,7 +119,7 @@ Component({
} }
this.setData({ this.setData({
moreSelectIndex: index, moreSelectIndex: index
// showSelect: !this.data.showSelect // showSelect: !this.data.showSelect
}) })
}, },
......
/* tabWorkOrder/components/applyRefundBtn/applyRefundBtn.wxss */ /* tabWorkOrder/components/applyRefundBtn/applyRefundBtn.wxss */
.select_box { .select_box {
position: relative; position: relative;
.select {
display: flex;
align-items: center;
}
.icon {
width: 32rpx;
height: 32rpx;
// margin-right: 7rpx;
}
.more-btn { .more-btn {
position: relative; position: relative;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #347BFF; color: #347BFF;
font-weight: 400; font-weight: 400;
} }
.option_box{
.option_box {
position: absolute; position: absolute;
z-index: 1005; z-index: 1005;
top: var(--fontSize60); top: var(--fontSize60);
...@@ -18,7 +31,8 @@ ...@@ -18,7 +31,8 @@
box-shadow: 0 var(--fontSize4) var(--fontSize12) #0000000d; box-shadow: 0 var(--fontSize4) var(--fontSize12) #0000000d;
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
overflow: hidden; overflow: hidden;
.option{
.option {
display: block; display: block;
height: var(--fontSize88); height: var(--fontSize88);
line-height: var(--fontSize88); line-height: var(--fontSize88);
...@@ -28,18 +42,22 @@ ...@@ -28,18 +42,22 @@
font-weight: 400; font-weight: 400;
font-size: var(--fontSize28); font-size: var(--fontSize28);
} }
.option:first-child{
.option:first-child {
border-radius: var(--fontSize16) var(--fontSize16) 0 0; border-radius: var(--fontSize16) var(--fontSize16) 0 0;
} }
.option:last-child{
.option:last-child {
border-radius: 0 0 var(--fontSize16) var(--fontSize16); border-radius: 0 0 var(--fontSize16) var(--fontSize16);
} }
.option.active{
.option.active {
background: #347bff1a; background: #347bff1a;
color: #347BFF; color: #347BFF;
} }
} }
.option_box::after{
.option_box::after {
height: 0; height: 0;
width: 0; width: 0;
content: ''; content: '';
...@@ -52,7 +70,8 @@ ...@@ -52,7 +70,8 @@
transform: rotate(90deg); transform: rotate(90deg);
filter: drop-shadow(0 var(--fontSize4) var(--fontSize8) #0000000d) filter: drop-shadow(0 var(--fontSize4) var(--fontSize8) #0000000d)
} }
.option_box::before{
.option_box::before {
height: 0; height: 0;
width: 0; width: 0;
content: ''; content: '';
...@@ -65,7 +84,8 @@ ...@@ -65,7 +84,8 @@
transform: rotate(90deg); transform: rotate(90deg);
filter: drop-shadow(0 var(--fontSize4) var(--fontSize8) #0000000d) filter: drop-shadow(0 var(--fontSize4) var(--fontSize8) #0000000d)
} }
.mask_class{
.mask_class {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background: transparent; background: transparent;
......
<!--tabWorkOrder/components/applyRefundBtn/applyRefundBtn.wxml--> <!--tabWorkOrder/components/applyRefundBtn/applyRefundBtn.wxml-->
<view class='select_box' > <view class="select_box">
<view class='select' catchtap='selectTap'> <view class="select" catchtap="selectTap">
<view class='more-btn'>更多</view> <gl-image class="icon" src="/miniProgram/more.png"></gl-image>
<view class="more-btn">更多</view>
</view> </view>
<view class='option_box' wx:if="{{showSelect}}"> <view class="option_box" wx:if="{{ showSelect }}">
<view class='option {{moreSelectIndex == index ? "active" : ""}}' wx:for='{{moreSelectData}}' wx:key='this' data-index='{{index}}' data-item="{{item}}" catchtap='optionTap'>{{item}}</view> <view class="option" wx:if="{{ updateFlag }}" catchtap="tapConstruction">修改施工</view>
<block wx:if="{{ showRefundBtn }}">
<view
class="option {{ moreSelectIndex == index ?'active' : '' }}"
wx:for="{{ moreSelectData }}"
wx:key="this"
data-index="{{ index }}"
data-item="{{ item }}"
catchtap="optionTap"
>{{item}}</view>
</block>
</view> </view>
<view class="mask_class" wx:if="{{showSelect}}" bindtap="closeSelect"></view> <view class="mask_class" wx:if="{{ showSelect }}" bindtap="closeSelect"></view>
</view> </view>
<area-operations-modal wx:if="{{areaOperationsFlag}}" isShow="{{areaOperationsFlag}}" bindclose="closeModal"></area-operations-modal>
\ No newline at end of file \ No newline at end of file
<area-operations-modal wx:if="{{ areaOperationsFlag }}" isShow="{{ areaOperationsFlag }}" bindclose="closeModal"></area-operations-modal>
\ No newline at end of file \ No newline at end of file
...@@ -150,7 +150,35 @@ var techicianName = function (array) { ...@@ -150,7 +150,35 @@ var techicianName = function (array) {
} }
return result return result
} }
var subStatus = function (constructionStatus) {
console.log(constructionStatus)
switch (constructionStatus) {
case 1:
case 2:
return 'constructionFlaged'
case 0:
return 'constructionFlaging'
case 3:
return ''
default:
return ''
}
// return 'constructionFlaging';
}
var subStatusName = function (constructionStatus) {
console.log(constructionStatus)
switch (constructionStatus) {
case 1:
case 2:
return '已施工'
case 0:
return '待施工'
case 3:
return ''
default:
return ''
}
}
/* /*
* 导出 * 导出
*/ */
...@@ -165,5 +193,7 @@ module.exports = { ...@@ -165,5 +193,7 @@ module.exports = {
filterOrderStatus: filterOrderStatus, filterOrderStatus: filterOrderStatus,
filterRefundDisabled: filterRefundDisabled, filterRefundDisabled: filterRefundDisabled,
activeNum: activeNum, activeNum: activeNum,
techicianName: techicianName techicianName: techicianName,
subStatus: subStatus,
subStatusName: subStatusName
} }
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal", "select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal",
"apply-refund-btn": "/tabWorkOrder/components/applyRefundBtn/applyRefundBtn", "apply-refund-btn": "/tabWorkOrder/components/applyRefundBtn/applyRefundBtn",
"order-prompt-popup": "/components/orderPromptPop/orderPromptPop", "order-prompt-popup": "/components/orderPromptPop/orderPromptPop",
"ConstructionDetailModal": "/tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal" "ConstructionDetailModal": "/tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal",
"sublist-modal": "/tabWorkOrder/components/SublistModal/SublistModal"
} }
} }
...@@ -4,7 +4,8 @@ page { ...@@ -4,7 +4,8 @@ page {
} }
.main { .main {
padding-bottom: var(--fontSize160); padding-bottom: var(--fontSize210);
overflow: scroll;
} }
.status-box { .status-box {
...@@ -236,17 +237,41 @@ page { ...@@ -236,17 +237,41 @@ page {
font-size: var(--fontSize24); font-size: var(--fontSize24);
} }
.constructionFlaged {
width: 58rpx;
height: 26rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18rpx;
color: #35C376;
border: 1px solid #35C376;
line-height: 26rpx;
text-align: center;
}
.constructionFlaging {
width: 58rpx;
height: 26rpx;
line-height: 26rpx;
text-align: center;
border: 1px solid #FF9D0A;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18rpx;
color: #FF9D0A;
}
.artificer { .artificer {
height: var(--fontSize48); // height: var(--fontSize48);
background: #FFFFFF; // background: #FFFFFF;
border: var(--fontSize1) solid #DEE0E3; // border: var(--fontSize1) solid #DEE0E3;
border-radius: var(--fontSize26); // border-radius: var(--fontSize26);
display: flex; // display: flex;
align-items: center; // align-items: center;
justify-content: center; // justify-content: center;
padding: 0 var(--fontSize24); // padding: 0 var(--fontSize24);
color: #292D33; // color: #292D33;
font-size: var(--fontSize24); // font-size: var(--fontSize24);
margin-left: auto; margin-left: auto;
} }
...@@ -436,8 +461,9 @@ page { ...@@ -436,8 +461,9 @@ page {
.isFullSucreen { page .isFullSucreen {
padding-bottom: var(--fontSize228) !important; box-sizing: border-box;
padding-bottom: var(--fontSize310) !important;
} }
.isFullSucreen-btn { .isFullSucreen-btn {
...@@ -731,8 +757,16 @@ page { ...@@ -731,8 +757,16 @@ page {
box-sizing: border-box; box-sizing: border-box;
/* min-height: var(--fontSize100); */ /* min-height: var(--fontSize100); */
background-color: #fff; background-color: #fff;
padding-bottom: var(--fontSize10);
padding: 0 var(--fontSize32); .btn {
height: var(--fontSize80);
background: #347BFF;
border-radius: var(--fontSize12);
font-size: var(--fontSize28);
color: #FFFFFF;
margin: 0 var(--fontSize32);
}
} }
...@@ -745,6 +779,7 @@ page { ...@@ -745,6 +779,7 @@ page {
color: #347BFF; color: #347BFF;
font-size: var(--fontSize24); font-size: var(--fontSize24);
font-weight: 600; font-weight: 600;
justify-content: center;
} }
.btn-box .checkBtn { .btn-box .checkBtn {
......
...@@ -3,18 +3,15 @@ ...@@ -3,18 +3,15 @@
<wxs src="../../index.wxs" module="filter" /> <wxs src="../../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<block wx:if="{{ flag }}"> <block wx:if="{{ flag }}">
<view <view class="main {{ isFullSucreen?'isFullSucreen':'' }}" style="{{ showRatingPopup ? 'overflow: hidden;height:100vh;' : '' }}">
class="main {{ isFullSucreen?'isFullSucreen':'' }}"
style="{{ showRatingPopup ? 'overflow: hidden;height:100vh;' : '' }}"
>
<view class="status-box"> <view class="status-box">
<view class="userInfo" hover-class="none" hover-stop-propagation="false"> <view class="userInfo" hover-class="none" hover-stop-propagation="false">
<image class="" src="../../images/activeIcon.png" /> <image class="" src="../../images/activeIcon.png" />
<view class="customerName">客户{{orderInfo.customerName}}</view> <view class="customerName">客户{{orderInfo.customerName}}</view>
<!-- wx:if="{{ orderInfo.constructionFlag !='Y' }}" --> <!-- wx:if="{{ orderInfo.constructionFlag !='Y' }}" -->
<block> <!-- <block>
<view class="signBtn text-center" bindtap="RatingPopupSetting">查看签名/施工图</view> <view class="signBtn text-center" bindtap="RatingPopupSetting">查看签名/施工图</view>
</block> </block> -->
</view> </view>
<view class="orderContainer"> <view class="orderContainer">
<!-- 已微信通知客户前往取车, --> <!-- 已微信通知客户前往取车, -->
...@@ -57,10 +54,11 @@ ...@@ -57,10 +54,11 @@
<view class="meal-bd-bottom"> <view class="meal-bd-bottom">
{{g.positionStr || g.upgradeGoodsTypeName}} {{g.positionStr || g.upgradeGoodsTypeName}}
<view class="count">x{{g.number}}</view> <view class="count">x{{g.number}}</view>
<view wx:if="{{ g.technicianName }}" class="artificer disabled"> <view class="artificer {{ filter.subStatus(g.constructionStatus) }}">{{filter.subStatusName(g.constructionStatus)}}</view>
<!-- <view wx:if="{{ g.technicianName }}" class="artificer disabled">
<text class="{{ !g.technicianName ? 'grey_text' : '' }} 'text-hide'">{{g.technicianName }}</text> <text class="{{ !g.technicianName ? 'grey_text' : '' }} 'text-hide'">{{g.technicianName }}</text>
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view> -->
</view> </view>
</view> </view>
</view> </view>
...@@ -75,9 +73,7 @@ ...@@ -75,9 +73,7 @@
<view class="price">¥{{item.price}}</view> <view class="price">¥{{item.price}}</view>
</view> </view>
<view class="subItem_box"> <view class="subItem_box">
<view <view style="{{ !orderInfo.isOpenArtificer || !item.upgradeGoodsPosition ? 'display: flex; justify-content: space-between; width: 100%;' : 'display: flex;' }}">
style="{{ !orderInfo.isOpenArtificer || !item.upgradeGoodsPosition ? 'display: flex; justify-content: space-between; width: 100%;' : 'display: flex;' }}"
>
<view class="position"> <view class="position">
{{item.positionStr || item.upgradeGoodsTypeName}} {{item.positionStr || item.upgradeGoodsTypeName}}
<text class="type">x{{item.number}}</text> <text class="type">x{{item.number}}</text>
...@@ -88,11 +84,12 @@ ...@@ -88,11 +84,12 @@
<text class="'text-hide'">{{item.filmRollNo}}</text> <text class="'text-hide'">{{item.filmRollNo}}</text>
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view>
<view class="artificer {{ filter.subStatus(item.constructionStatus) }}">{{filter.subStatusName(item.constructionStatus)}}</view>
<!-- 技师 --> <!-- 技师 -->
<view wx:if="{{ item.technicianName }}" class="artificer disabled" data-item="{{ item }}"> <!-- <view wx:if="{{ item.technicianName }}" class="artificer disabled" data-item="{{ item }}">
<text class="{{ !item.technicianName ? 'grey_text' : '' }} 'text-hide'">{{item.technicianName }}</text> <text class="{{ !item.technicianName ? 'grey_text' : '' }} 'text-hide'">{{item.technicianName }}</text>
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view> -->
</view> </view>
</view> </view>
</block> </block>
...@@ -117,16 +114,12 @@ ...@@ -117,16 +114,12 @@
<view class="flex"> <view class="flex">
工单信息 工单信息
<view style="display: flex;gap: var(--fontSize32);margin-left: var(--fontSize32);"> <view style="display: flex;gap: var(--fontSize32);margin-left: var(--fontSize32);">
<view <view wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}" class="invoice-btn" bindtap="handleBtnInvoice">
wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}"
class="invoice-btn"
bindtap="handleBtnInvoice"
>
<gl-image class="icon" src="/icon-invoice.png"></gl-image> <gl-image class="icon" src="/icon-invoice.png"></gl-image>
{{invoiceName}} {{invoiceName}}
</view> </view>
<view wx:if="{{ isStaff && showMoreBtn }}"> <view>
<apply-refund-btn orderInfo="{{ orderInfo }}"></apply-refund-btn> <apply-refund-btn updateFlag="{{ updateFlag }}" orderInfo="{{ orderInfo }}" showRefundBtn="{{ isStaff && showMoreBtn }}"></apply-refund-btn>
</view> </view>
</view> </view>
</view> </view>
...@@ -159,20 +152,11 @@ ...@@ -159,20 +152,11 @@
</block> </block>
</view> </view>
</block> </block>
<block <block wx:if="{{ (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length }}">
wx:if="{{ (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length }}"
>
<view class="cell"> <view class="cell">
<view class="label">付款凭证</view> <view class="label">付款凭证</view>
<view class="image-box"> <view class="image-box">
<view <view class="value" bindtap="previewImage" wx:for="{{ orderInfo.payVoucherList }}" wx:key="index" data-index="{{ index }}" data-url="{{ orderInfo.payVoucherList }}">
class="value"
bindtap="previewImage"
wx:for="{{ orderInfo.payVoucherList }}"
wx:key="index"
data-index="{{ index }}"
data-url="{{ orderInfo.payVoucherList }}"
>
<view class="image"> <view class="image">
<image src="{{ item.payVoucher }}" /> <image src="{{ item.payVoucher }}" />
</view> </view>
...@@ -188,18 +172,11 @@ ...@@ -188,18 +172,11 @@
<view class="title userTitle"> <view class="title userTitle">
<view>客户信息</view> <view>客户信息</view>
<!-- 已退款或已开票不可修改客户任何信息 --> <!-- 已退款或已开票不可修改客户任何信息 -->
<view <view bindtap="jumpUserPortrait" class="updateInfo icon {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}">
bindtap="jumpUserPortrait"
class="updateInfo icon {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}"
>
<image src="{{ IMG_URL }}miniProgram/custom_portrait_icon.png" class="iconImage"></image> <image src="{{ IMG_URL }}miniProgram/custom_portrait_icon.png" class="iconImage"></image>
画像 画像
</view> </view>
<view <view wx:if="{{ isYqdSuper||isStaff }}" bindtap="jumpUpdate" class="updateInfo {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}">
wx:if="{{ isYqdSuper||isStaff }}"
bindtap="jumpUpdate"
class="updateInfo {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}"
>
<image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="iconImage"></image> <image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="iconImage"></image>
客户信息 客户信息
</view> </view>
...@@ -311,16 +288,21 @@ ...@@ -311,16 +288,21 @@
</view> </view>
</block> </block>
</view> </view>
<!-- <block wx:if="{{ orderInfo.failureFlag == 'Y'&&isMake && orderInfo.associatedOrderCode }}"> -->
<!-- <view class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}">
</view> -->
<!-- </block> -->
<view wx:if="{{ confirmFlagObj.showBtn }}" class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<block wx:if="{{ orderInfo.failureFlag == 'Y'&&isMake && orderInfo.associatedOrderCode }}"> <block wx:if="{{ orderInfo.failureFlag == 'Y'&&isMake && orderInfo.associatedOrderCode }}">
<!-- <view class="btn text-center" bindtap="showAgain">继续下单</view> -->
<view class="btn-box {{ 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> <view class="contentText">该订单录入信息有误,点击跳转正确工单页面。</view>
<view class="checkBtn" bindtap="redirectOrder">去查看</view> <view class="checkBtn" bindtap="redirectOrder">去查看</view>
</view> </view>
</view>
</block> </block>
<view class="btn text-center" data-btnName="{{ confirmFlagObj.btnName }}" bindtap="showModal">{{confirmFlagObj.showBtn}}</view>
</view>
</block> </block>
<modal id="modal3" class="modal" custom="true" btns="{{ ['取消','确定'] }}"> <modal id="modal3" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent"> <view class="modatcontent">
...@@ -366,34 +348,13 @@ ...@@ -366,34 +348,13 @@
<view class="productName">产品: {{filter.replaceItemText(warrantyEditObj.goodsName)}}</view> <view class="productName">产品: {{filter.replaceItemText(warrantyEditObj.goodsName)}}</view>
<view class="label">质保价格</view> <view class="label">质保价格</view>
<view class="textarea"> <view class="textarea">
<gl-textarea <gl-textarea focus="{{ focus }}" showWordLimit="{{ true }}" value="{{ warrantyEditObj.warrantyPrice }}" bindinput="blur" bindblur="blur" maxlength="50" placeholder="请输入内容,最多50字" />
focus="{{ focus }}"
showWordLimit="{{ true }}"
value="{{ warrantyEditObj.warrantyPrice }}"
bindinput="blur"
bindblur="blur"
maxlength="50"
placeholder="请输入内容,最多50字"
/>
</view> </view>
<view class="tips">质保价格输入的内容会在车主查询质保卡时显示</view> <view class="tips">质保价格输入的内容会在车主查询质保卡时显示</view>
</view> </view>
</modal> </modal>
<orderRatingPopup <orderRatingPopup bind:close="RatingPopupSetting" title="查看签名/施工图" flag="{{ showRatingPopup }}" wx:if="{{ showRatingPopup }}" orderInfoSetting="{{ orderInfo }}" />
bind:close="RatingPopupSetting"
title="查看签名/施工图"
flag="{{ showRatingPopup }}"
wx:if="{{ showRatingPopup }}"
orderInfoSetting="{{ orderInfo }}"
/>
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-modal> <select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-modal>
<order-prompt-popup
wx:if="{{ showPromptDialog }}"
show="{{ showPromptDialog }}"
bindcancel="promptCancel"
bindconfirm="promptHandleConfirm"
popupSlotStyle="height: calc(100% - var(--fontSize160));"
height="var(--fontSize540);"
includesChildHeight="var(--fontSize1020);"
sceneObj="{{ orderInfo }}"
></order-prompt-popup>
\ No newline at end of file \ No newline at end of file
<order-prompt-popup wx:if="{{ showPromptDialog }}" show="{{ showPromptDialog }}" bindcancel="promptCancel" bindconfirm="promptHandleConfirm" popupSlotStyle="height: calc(100% - var(--fontSize160));" height="var(--fontSize540);" includesChildHeight="var(--fontSize1020);" sceneObj="{{ orderInfo }}"></order-prompt-popup>
<ConstructionDetailModal visible="{{ constructionVisible }}" orderInfo="{{ orderInfo }}" orderCode="{{ orderInfo.orderCode }}" bindcancel="constructionCancel"></ConstructionDetailModal>
<sublist-modal visible="{{ sublistVisible }}" orderInfo="{{ orderInfo }}" orderCode="{{ orderInfo.orderCode }}" bindcancel="sublistCancel"></sublist-modal>
\ No newline at end of file \ No newline at end of file
...@@ -247,10 +247,11 @@ Page({ ...@@ -247,10 +247,11 @@ Page({
.then(res => { .then(res => {
console.log(res) console.log(res)
let { code, message, data } = res let { code, message, data } = res
console.log('showFlag', res); console.log('showFlag', res)
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
confirmFlagObj: confirmFlagObj[data.confirmFlag] confirmFlagObj: confirmFlagObj[data.confirmFlag],
updateFlag: data.updateFlag
}) })
} }
}) })
...@@ -400,7 +401,8 @@ Page({ ...@@ -400,7 +401,8 @@ Page({
if (data.orderTime) if (data.orderTime)
data.time = new Date(data.orderTime).format('yyyy-MM-dd hh:mm:ss') data.time = new Date(data.orderTime).format('yyyy-MM-dd hh:mm:ss')
if (data.customer && data.customer.carSeriesName) { if (data.customer && data.customer.carSeriesName) {
data.carType = `${data.customer.carBrand || ''}-${data.customer.carChildsBrandName || '' data.carType = `${data.customer.carBrand || ''}-${
data.customer.carChildsBrandName || ''
}-${data.customer.carSeriesName || ''}` }-${data.customer.carSeriesName || ''}`
} }
...@@ -506,7 +508,7 @@ Page({ ...@@ -506,7 +508,7 @@ Page({
}) })
} }
}) })
} catch (err) { } } catch (err) {}
}, },
// 选择技师确认 // 选择技师确认
changeArtificer(e) { changeArtificer(e) {
...@@ -618,7 +620,7 @@ Page({ ...@@ -618,7 +620,7 @@ Page({
warrantyCardList warrantyCardList
}) })
}) })
.catch(err => { }) .catch(err => {})
}, 1000 * index) }, 1000 * index)
}) })
}, },
...@@ -809,7 +811,7 @@ Page({ ...@@ -809,7 +811,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { }, onReady: function () {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -825,12 +827,12 @@ Page({ ...@@ -825,12 +827,12 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { }, onHide: function () {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { }, onUnload: function () {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
...@@ -845,5 +847,5 @@ Page({ ...@@ -845,5 +847,5 @@ Page({
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { } onReachBottom: function () {}
}) })
...@@ -140,17 +140,42 @@ page { ...@@ -140,17 +140,42 @@ page {
} }
.artificer { .artificer {
height: var(--fontSize48); // height: var(--fontSize48);
background: #FFFFFF; // background: #FFFFFF;
border: var(--fontSize1) solid #DEE0E3; // border: var(--fontSize1) solid #DEE0E3;
border-radius: var(--fontSize26); // border-radius: var(--fontSize26);
display: flex; // display: flex;
align-items: center; // align-items: center;
justify-content: center; // justify-content: center;
padding: 0 var(--fontSize24); // padding: 0 var(--fontSize24);
color: #292D33; // color: #292D33;
font-size: var(--fontSize24); // font-size: var(--fontSize24);
margin-left: auto; margin-left: auto;
}
.constructionFlaged {
width: 54rpx;
height: 26rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18rpx;
color: #35C376;
border: 1px solid #35C376;
line-height: 26rpx;
text-align: center;
}
.constructionFlaging {
width: 54rpx;
height: 26rpx;
line-height: 26rpx;
text-align: center;
border: 1px solid #FF9D0A;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 18rpx;
color: #FF9D0A;
} }
.artificer text { .artificer text {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}"> <view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="status-box" wx:if="{{ orderInfo.status!=10&&orderInfo.status!=9 }}"> <view class="status-box" wx:if="{{ orderInfo.status!=10&&orderInfo.status!=9 }}">
<view class="content">客户已付款</view> <view class="content">客户已付款</view>
<view class="tips">技师施工完毕后,点击完成施工按钮可通知车主前来取车</view> <view class="tips">请确认订单是否施工,并选择施工服务项目,将产生施工单</view>
</view> </view>
<view class="status-box" wx:if="{{ orderInfo.status == 10 }}"> <view class="status-box" wx:if="{{ orderInfo.status == 10 }}">
<view class="content">订单关闭</view> <view class="content">订单关闭</view>
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
</view> </view>
<view class="status-box" wx:if="{{ orderInfo.status == 9 }}"> <view class="status-box" wx:if="{{ orderInfo.status == 9 }}">
<view class="content">订单已撤销</view> <view class="content">订单已撤销</view>
<!-- <view class="tips">客户支付超过24小时,系统自动关闭订单</view> -->
</view> </view>
<view class="box"> <view class="box">
<!-- <view class="title">礼券信息</view> --> <!-- <view class="title">礼券信息</view> -->
...@@ -45,10 +44,11 @@ ...@@ -45,10 +44,11 @@
<view class="meal-bd-bottom"> <view class="meal-bd-bottom">
{{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}} {{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}}
<view class="count">x{{g.number}}</view> <view class="count">x{{g.number}}</view>
<view class="artificer" bindtap="selectArtificer" data-item="{{ g }}"> <view class="artificer {{ filter.subStatus(g.constructionStatus) }}">{{filter.subStatusName(g.constructionStatus)}}</view>
<!-- <view class="artificer" bindtap="selectArtificer" data-item="{{ g }}">
<text class="{{ !g.technicianName ? 'grey_text' : '' }} 'text-hide'">{{g.technicianName || '选择技师'}}</text> <text class="{{ !g.technicianName ? 'grey_text' : '' }} 'text-hide'">{{g.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view> -->
</view> </view>
</view> </view>
</view> </view>
...@@ -84,11 +84,12 @@ ...@@ -84,11 +84,12 @@
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view>
<!-- 太阳膜类且配置技师 25-8月版本全部放开 --> <!-- 太阳膜类且配置技师 25-8月版本全部放开 -->
<!-- wx:if="{{ item.upgradeGoodsPosition}}" --> <!-- wx:if="{{ item.upgradeGoodbpsPosition}}" -->
<view class="artificer" bindtap="selectArtificer" data-item="{{ item }}"> <!-- <view class="artificer" bindtap="selectArtificer" data-item="{{ item }}">
<text class="{{ !item.technicianName ? 'grey_text' : '' }} 'text-hide'">{{item.technicianName || '选择技师'}}</text> <text class="{{ !item.technicianName ? 'grey_text' : '' }} 'text-hide'">{{item.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view> -->
<view class="artificer {{ filter.subStatus(item.constructionStatus) }}">{{filter.subStatusName(item.constructionStatus)}}</view>
</view> </view>
</view> </view>
</block> </block>
...@@ -117,10 +118,13 @@ ...@@ -117,10 +118,13 @@
工单信息 工单信息
<view style="display: flex;gap: var(--fontSize32);"> <view style="display: flex;gap: var(--fontSize32);">
<!-- 非门店收款 已支付/已退款展示 --> <!-- 非门店收款 已支付/已退款展示 -->
<view <!-- wx:if="{{ isStaff && orderInfo.selectPayType != 2 && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}" -->
wx:if="{{ isStaff && orderInfo.selectPayType != 2 && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}" <view>
> <apply-refund-btn
<apply-refund-btn orderInfo="{{ orderInfo }}"></apply-refund-btn> orderInfo="{{ orderInfo }}"
updateFlag="{{ updateFlag }}"
showRefundBtn="{{ isStaff && orderInfo.selectPayType != 2 && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}"
></apply-refund-btn>
</view> </view>
<view <view
wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}" wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}"
...@@ -136,7 +140,7 @@ ...@@ -136,7 +140,7 @@
<view class="cell"> <view class="cell">
<view class="label">{{item.label}}</view> <view class="label">{{item.label}}</view>
<block wx:if="{{ item.key == 'status' }}"> <block wx:if="{{ item.key == 'status' }}">
<view class="value" style="color:{{ item.constructionFlag == 'Y'? status[orderInfo.status].color:'' }};"> <view class="value" style="color:{{ status[orderInfo.status].color||'' }};">
<!-- {{ item.constructionFlag == 'Y'? status[orderInfo.status].text: '待施工'}} --> <!-- {{ item.constructionFlag == 'Y'? status[orderInfo.status].text: '待施工'}} -->
{{ status[orderInfo.status].text}} {{ status[orderInfo.status].text}}
</view> </view>
......
...@@ -61,9 +61,9 @@ const domain_items = { ...@@ -61,9 +61,9 @@ const domain_items = {
// dj: 'http://192.168.1.165:8292', // dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.104:8292', //叶立庆 // dj: 'http://192.168.1.104:8292', //叶立庆
// dj: "http://192.168.1.169:8292", //蔡远明 // dj: "http://192.168.1.169:8292", //蔡远明
// dj: 'http://192.168.1.104:8292',//范富荣 dj: 'http://192.168.1.104:8292',//范富荣
// dj: 'http://192.168.1.89:8292', //周杭 // dj: 'http://192.168.1.89:8292', //周杭
dj: 'http://192.168.1.76:8292', //璐琦 // dj: 'http://192.168.1.76:8292', //璐琦
// dj: 'http://192.168.1.227:8292',//陈希 // dj: 'http://192.168.1.227:8292',//陈希
// dj: 'http://192.168.1.67:8292',//周立明 // dj: 'http://192.168.1.67:8292',//周立明
// dj: 'http://192.168.148.235:8292',// 熊正顺 // dj: 'http://192.168.148.235:8292',// 熊正顺
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!