Commit 8aedfb40 by 张立顺

Merge branch 'SAAS+V4.36.2-0311' into SAAS-V4.37.0

2 parents c475b8cd 6c933cbe
...@@ -225,5 +225,11 @@ module.exports = { ...@@ -225,5 +225,11 @@ module.exports = {
/** 将当前门店的员工目标任务弹窗标记为已弹起过 */ /** 将当前门店的员工目标任务弹窗标记为已弹起过 */
setTaskDialog(data) { setTaskDialog(data) {
return api.post('dj.api.smartcarlife.staffTargetCheck.promptYes', data) return api.post('dj.api.smartcarlife.staffTargetCheck.promptYes', data)
} },
/**
* 获取客户档案列表
*/
getCustomerFileList(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.page', data)
},
} }
// components/CarBrands/CarBrands.js // components/CarBrands/CarBrands.js
import api from '../../api/api.js' import api from '../../api/api.js'
import carLifeApi from '~/packageEquity/carEquityApi' // import carLifeApi from '~/packageEquity/carEquityApi'
let isNum, num, y, time let isNum, num, y, time
Component({ Component({
...@@ -45,8 +45,8 @@ Component({ ...@@ -45,8 +45,8 @@ Component({
isFirst: true isFirst: true
}, },
pageLifetimes: { pageLifetimes: {
show: function () {}, show: function () { },
hide: function () {} hide: function () { }
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
...@@ -72,17 +72,17 @@ Component({ ...@@ -72,17 +72,17 @@ Component({
let customerList = [] let customerList = []
//客户线索1.1 、2.1客户列表 //客户线索1.1 、2.1客户列表
wx.$util.showLoading() wx.$util.showLoading()
if (apiType == 2) carLifeApi.getCustomerFileList({ if (apiType == 2) api.getCustomerFileList({
currentPage: 1, currentPage: 1,
merchantId: merchantId || userInfo?.shopMerchantId, merchantId: merchantId || userInfo?.shopMerchantId,
pageSize: 999999, pageSize: 999999,
search: keyword, search: keyword,
}).then(({code,data})=>{ }).then(({ code, data }) => {
wx.$util.hideLoading() wx.$util.hideLoading()
if (code == 0 && data?.list.length) { if (code == 0 && data?.list.length) {
data.list.map(item => { data.list.map(item => {
customerList.push({ customerList.push({
customer:item, customer: item,
carType: `${item.carBrand || ''}-${item.carChildsBrandName || ''}-${item.carSeriesName || ''}` carType: `${item.carBrand || ''}-${item.carChildsBrandName || ''}-${item.carSeriesName || ''}`
}) })
}) })
......
...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd' ...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 3 let index = 2
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -160,5 +160,10 @@ module.exports = { ...@@ -160,5 +160,10 @@ module.exports = {
/** 查询当周员工日报是否填写列表 */ /** 查询当周员工日报是否填写列表 */
staffDailyReportDetailWeeklyList(data) { staffDailyReportDetailWeeklyList(data) {
return api.post('dj.api.smartcarlife.staff.daily.report.weekly.list', data) return api.post('dj.api.smartcarlife.staff.daily.report.weekly.list', data)
},
/** 查询该店员工日报是否开启 */
staffDailyReportMerchantValid(data) {
return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data)
} }
} }
...@@ -89,10 +89,5 @@ export default { ...@@ -89,10 +89,5 @@ export default {
getCustomerClueStatistics(data) { getCustomerClueStatistics(data) {
return api.post('dj.api.smartcarlife.customer.clue.statistics.status', data) return api.post('dj.api.smartcarlife.customer.clue.statistics.status', data)
}, },
/**
* 获取客户档案列表
*/
getCustomerFileList(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.page', data)
},
} }
\ No newline at end of file \ No newline at end of file
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</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>
...@@ -24,4 +24,3 @@ ...@@ -24,4 +24,3 @@
</block> </block>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
// pages/equity/index.js // pages/equity/index.js
import { get4SStoreList } from '~/store/index' import { get4SStoreList } from '~/store/index'
import { merchantMode, waitinputorder, staffDailyReportDetailWeeklyList, quotationRecording, isBusinessSchoolEnableCurrentUser } from '../../api' import { merchantMode, waitinputorder, staffDailyReportDetailWeeklyList, staffDailyReportMerchantValid, quotationRecording, isBusinessSchoolEnableCurrentUser } from '../../api'
import { getBusinessSchoolScene } from '~/store/index' import { getBusinessSchoolScene } from '~/store/index'
const app = getApp() const app = getApp()
let time = null let time = null
...@@ -76,9 +76,27 @@ Page({ ...@@ -76,9 +76,27 @@ Page({
tipsProps: false tipsProps: false
}) })
}, },
staffDailyReport(userInfo) { staffDailyReportMerchantValid(userInfo) {
// let { isStaff } = this.data // let { userInfo } = this.data
// if (isStaff) { return new Promise((resolve, reject) => {
console.log(userInfo, 'userInfo')
staffDailyReportMerchantValid({
merchantId: userInfo.shopMerchantId
})
.then(res => {
console.log(res, 'staffDailyReportMerchantValid')
resolve(res.data)
})
.catch(err => {
console.log(err)
})
})
},
async staffDailyReport(userInfo) {
let merchantStaffDailyReportMerchantValid = await this.staffDailyReportMerchantValid(userInfo)
// 没有开启就不走下一步逻辑
if (!merchantStaffDailyReportMerchantValid) return false
// 获取当前日期 // 获取当前日期
const { merchantId, merchantName, name, uuid, shopMerchantId, shopMerchantName } = userInfo const { merchantId, merchantName, name, uuid, shopMerchantId, shopMerchantName } = userInfo
let timeBean = util.getWeekDayList(0) let timeBean = util.getWeekDayList(0)
...@@ -93,7 +111,7 @@ Page({ ...@@ -93,7 +111,7 @@ Page({
merchantName: shopMerchantName, merchantName: shopMerchantName,
...timeBean ...timeBean
} }
console.log(params, 'params'); console.log(params, 'params')
staffDailyReportDetailWeeklyList(params).then(res => { staffDailyReportDetailWeeklyList(params).then(res => {
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
...@@ -124,13 +142,13 @@ Page({ ...@@ -124,13 +142,13 @@ Page({
if (hasNeedReport) { if (hasNeedReport) {
// if (num <= 2) { // if (num <= 2) {
// wx.$util.showToast('驻店日报未填写,请及时填写') // wx.$util.showToast('驻店日报未填写,请及时填写')
if (wx.__HAS_NOREPORT_MODAL) return false if (wx.__HAS_NOREPORT_MODAL || wx.__HAS_NOTLOGIN_MODAL) return false
wx.__HAS_NOREPORT_MODAL = true wx.__HAS_NOREPORT_MODAL = true
wx.showModal({ wx.showModal({
title: '日报提醒', title: '日报提醒',
content: '您有未填写的日报,请点击前往。', content: '您有未填写的日报,请点击前往。',
showCancel: true, showCancel: false,
cancelText: '取消', // '取消 // cancelText: '取消', // '取消
cancelColor: '#292D33', cancelColor: '#292D33',
confirmText: '前往填写', confirmText: '前往填写',
confirmColor: '#347BFF', confirmColor: '#347BFF',
...@@ -168,10 +186,6 @@ Page({ ...@@ -168,10 +186,6 @@ Page({
wx.$util.showToast(message) wx.$util.showToast(message)
} }
}) })
// this.setData({
// timeBean: util.getWeekDayList(this.data.selectWeek)
// })
// }
}, },
getMerchant4SMode() { getMerchant4SMode() {
let storeInfo = wx.$util.getUserInfo()?.default4SStoreInfo || {} let storeInfo = wx.$util.getUserInfo()?.default4SStoreInfo || {}
......
...@@ -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 }}" />
......
...@@ -24,15 +24,7 @@ ...@@ -24,15 +24,7 @@
<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"
placeholder="请输入客户名字搜索"
class="input"
confirm-type="search"
value="{{customerName}}"
placeholder-class="input-placeholder"
bindinput="input"
bindconfirm="search" />
<block wx:if="{{customerName}}"> <block wx:if="{{customerName}}">
<view bindtap="handleReset" class="clearBtn"> <view bindtap="handleReset" class="clearBtn">
<image src="/images/clear.png" class="search-clear" bindtap="handleReset" /> <image src="/images/clear.png" class="search-clear" bindtap="handleReset" />
...@@ -51,24 +43,10 @@ ...@@ -51,24 +43,10 @@
<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" />
</view>
<view wx:if="{{flag}}" class="order-box" style="height: calc(100% - var(--fontSize104) - var(--fontSize104) - {{isShowTips ? 48 : 0}}rpx);">
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="search"
bindscrolltolower="onBottomRefresh"
class="list"
scroll-top="{{scrollTop}}"
style="height: calc(100% - var(--fontSize2))"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
<block wx:if="{{list.length > 0}}"> <block wx:if="{{list.length > 0}}">
<view wx:for="{{list}}" wx:key="index" class="item"> <view wx:for="{{list}}" wx:key="index" class="item">
<view class="item-header">{{item.customerName}} | {{item.customerPhone}}</view> <view class="item-header">{{item.customerName}} | {{item.customerPhone}}</view>
...@@ -80,11 +58,7 @@ ...@@ -80,11 +58,7 @@
<view class="order-content"> <view class="order-content">
<image mode="aspectFill" class="pro-bg" src="{{item.thumbUrl || '/packageEquity/images/pro-bg.png'}}" /> <image mode="aspectFill" class="pro-bg" src="{{item.thumbUrl || '/packageEquity/images/pro-bg.png'}}" />
<view> <view>
<view <view wx:for="{{orderObj}}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
wx:for="{{orderObj}}"
wx:key="sindex"
wx:for-index="sindex"
wx:for-item="i">
<view class="order {{orderObj.length == (sindex + 1) ? '' : 'm-b-16'}}"> <view class="order {{orderObj.length == (sindex + 1) ? '' : 'm-b-16'}}">
<view class="order-label">{{i.label}}</view> <view class="order-label">{{i.label}}</view>
<view class="order-value"> <view class="order-value">
...@@ -102,26 +76,13 @@ ...@@ -102,26 +76,13 @@
<view>{{item.createdDate}}</view> <view>{{item.createdDate}}</view>
<!-- 超管isSuper/商户类型 userType 1账号不可操作 --> <!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<block wx:if="{{(!userInfo.isSuper && userInfo.userType == 2&&item.orderStatus!=4)||(item.orderStatus==2) }}"> <block wx:if="{{(!userInfo.isSuper && userInfo.userType == 2&&item.orderStatus!=4)||(item.orderStatus==2) }}">
<view <view wx:if="{{item.orderStatus == '2'}}" class="order-btn" bindtap="handlePreviewContract" data-target="{{item}}" data-type="download">
wx:if="{{item.orderStatus == '2'}}"
class="order-btn"
bindtap="handlePreviewContract"
data-target="{{item}}"
data-type="download">
下载合同 下载合同
</view> </view>
<view <view wx:if="{{item.orderStatus == '2'}}" class="order-btn default-btn" bindtap="handlePreviewContract" data-target="{{item}}">
wx:if="{{item.orderStatus == '2'}}"
class="order-btn default-btn"
bindtap="handlePreviewContract"
data-target="{{item}}">
{{btnTxt[item.orderStatus]}} {{btnTxt[item.orderStatus]}}
</view> </view>
<view <view wx:else class="order-btn" bindtap="handleRecordOrder" data-target="{{item}}">
wx:else
class="order-btn"
bindtap="handleRecordOrder"
data-target="{{item}}">
{{btnTxt[item.orderStatus]}} {{btnTxt[item.orderStatus]}}
</view> </view>
</block> </block>
...@@ -138,4 +99,3 @@ ...@@ -138,4 +99,3 @@
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
...@@ -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> -->
......
...@@ -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)
} }
...@@ -394,7 +395,7 @@ Page({ ...@@ -394,7 +395,7 @@ Page({
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
totalFee() { totalFee() {
let { let {
...@@ -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
...@@ -41,7 +41,8 @@ Component({ ...@@ -41,7 +41,8 @@ Component({
}, },
{ {
label: '购买商品', label: '购买商品',
key: 'goodsName' key: 'goodsNameAlias',
otherKey: 'goodsName'
}, },
{ {
label: '工单编号', label: '工单编号',
...@@ -50,7 +51,7 @@ Component({ ...@@ -50,7 +51,7 @@ Component({
{ {
label: '交易流水号', label: '交易流水号',
key: 'transactionNo', key: 'transactionNo',
canCopy:true canCopy: true
}, },
{ {
label: '拒升原因', label: '拒升原因',
...@@ -67,9 +68,9 @@ Component({ ...@@ -67,9 +68,9 @@ Component({
{ {
label: '支付方式', label: '支付方式',
key: 'payType', key: 'payType',
mapValue:{ mapValue: {
1:'线上支付', 1: '线上支付',
2:'门店收款' 2: '门店收款'
} }
}, },
], ],
...@@ -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({
...@@ -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,7 +640,7 @@ Component({ ...@@ -639,7 +640,7 @@ 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: () => {
......
...@@ -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>
......
...@@ -190,7 +190,8 @@ ...@@ -190,7 +190,8 @@
.order-box { .order-box {
background-color: #fdfdfd; background-color: #fdfdfd;
height: calc(100% - var(--fontSize104) - var(--fontSize104) - var(--fontSize52) - var(--fontSize20)); height: calc(100% - var(--fontSize120) - var(--fontSize52) - var(--fontSize20));
/* height: calc(100% - 120rpx - 52rpx - 20rpx); */
} }
.list { .list {
...@@ -214,7 +215,8 @@ ...@@ -214,7 +215,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 +225,7 @@ ...@@ -223,6 +225,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 +292,14 @@ ...@@ -289,13 +292,14 @@
border-radius: var(--fontSize4); border-radius: var(--fontSize4);
} }
.grey-txt{ .grey-txt {
background: #F2F3F5; background: #F2F3F5;
color: #999999; color: #999999;
padding: var(--fontSize4) var(--fontSize8); padding: var(--fontSize4) var(--fontSize8);
font-size: var(--fontSize24); font-size: var(--fontSize24);
border-radius: var(--fontSize4); border-radius: var(--fontSize4);
} }
.red-txt { .red-txt {
color: #EB4E4E; color: #EB4E4E;
background: #FDECE9; background: #FDECE9;
...@@ -736,11 +740,13 @@ ...@@ -736,11 +740,13 @@
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
} }
.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: var(--fontSize48) var(--fontSize50); padding: var(--fontSize48) var(--fontSize50);
......
...@@ -53,5 +53,8 @@ module.exports = { ...@@ -53,5 +53,8 @@ module.exports = {
staffDailyReportDetailWeeklyList(data) { staffDailyReportDetailWeeklyList(data) {
return api.post('dj.api.smartcarlife.staff.daily.report.weekly.list', data) return api.post('dj.api.smartcarlife.staff.daily.report.weekly.list', data)
}, },
/** 查询该店员工日报是否开启 */
staffDailyReportMerchantValid(data) {
return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data)
}
} }
...@@ -183,7 +183,7 @@ Page({ ...@@ -183,7 +183,7 @@ Page({
merchantRange merchantRange
}) })
}) })
.catch(err => {}) .catch(err => { })
}, },
changePicker(e, value) { changePicker(e, value) {
console.log(e) console.log(e)
...@@ -217,14 +217,8 @@ Page({ ...@@ -217,14 +217,8 @@ Page({
} }
}, },
jump(e) { jump(e) {
let { let { item, type } = e.currentTarget.dataset
item, let { userInfo, taskId } = this.data
type
} = e.currentTarget.dataset
let {
userInfo,
taskId
} = this.data
// 工资绩效 // 工资绩效
if (item.name == '工资绩效') { if (item.name == '工资绩效') {
return wx.$router.go('packageEquity.collegeScene', { return wx.$router.go('packageEquity.collegeScene', {
...@@ -233,7 +227,7 @@ Page({ ...@@ -233,7 +227,7 @@ Page({
}) })
} }
if (item.name == '驻店目标') { if (item.name == '驻店目标') {
return wx.$router.go(item.url, {id: taskId}) return wx.$router.go(item.url, { id: taskId })
} }
// 判断是不是门店员工 // 判断是不是门店员工
if (userInfo?.merchantType && !userInfo.isSuper && type == 2) { if (userInfo?.merchantType && !userInfo.isSuper && type == 2) {
...@@ -392,7 +386,7 @@ Page({ ...@@ -392,7 +386,7 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
getMerchantCouponList() { getMerchantCouponList() {
...@@ -500,7 +494,7 @@ Page({ ...@@ -500,7 +494,7 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
getUserStat(userInfo) { getUserStat(userInfo) {
api api
...@@ -513,7 +507,7 @@ Page({ ...@@ -513,7 +507,7 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
totalListSet() { totalListSet() {
let { userInfo } = this.data let { userInfo } = this.data
...@@ -583,6 +577,12 @@ Page({ ...@@ -583,6 +577,12 @@ Page({
} }
} }
}, },
checkDailyRecport() {
let { tabIndex } = this.data
const isStaff = app.globalData.isStaff
// 如果是员工 判读是否要填写日报
isStaff && this.staffDailyReport(wx.$util.getUserInfo())
},
onRoute(options) { onRoute(options) {
options && this.checkShowOrderPop(options) options && this.checkShowOrderPop(options)
// options && options.resetStoreList && this.get4SStoreList() // options && options.resetStoreList && this.get4SStoreList()
...@@ -595,6 +595,7 @@ Page({ ...@@ -595,6 +595,7 @@ Page({
...options?.pageParams ...options?.pageParams
}) })
} }
this.checkDailyRecport()
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
...@@ -621,16 +622,18 @@ Page({ ...@@ -621,16 +622,18 @@ Page({
getStaffTargetTask() { getStaffTargetTask() {
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
let { menu } = this.data let { menu } = this.data
commonApi.getStaffTargetTaskApi({ commonApi
.getStaffTargetTaskApi({
sceneType: 1, sceneType: 1,
merchantId: userInfo?.default4SStoreInfo?.merchantId merchantId: userInfo?.default4SStoreInfo?.merchantId
}).then(res => { })
.then(res => {
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
// 切换门店 需删除入口 重新请求判断显示入口 // 切换门店 需删除入口 重新请求判断显示入口
let index = menu.findIndex(v => v.name == '驻店目标') let index = menu.findIndex(v => v.name == '驻店目标')
if (index > -1) menu.splice(index, 1) if (index > -1) menu.splice(index, 1)
if ((data?.length) && menu.every(item => item.name != '驻店目标')) { if (data?.length && menu.every(item => item.name != '驻店目标')) {
menu.push({ menu.push({
name: '驻店目标', name: '驻店目标',
url: 'packageEquity.residentTarget', url: 'packageEquity.residentTarget',
...@@ -649,8 +652,7 @@ Page({ ...@@ -649,8 +652,7 @@ Page({
taskInfo: data[0] taskInfo: data[0]
}) })
// 将当前周期的员工目标任务弹窗标记为已弹起 // 将当前周期的员工目标任务弹窗标记为已弹起
commonApi.setTaskDialog({id: data[0]?.id}).then(() => { commonApi.setTaskDialog({ id: data[0]?.id }).then(() => { })
})
} }
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
...@@ -673,8 +675,28 @@ Page({ ...@@ -673,8 +675,28 @@ Page({
} }
}) })
}, },
staffDailyReportMerchantValid(userInfo) {
staffDailyReport(userInfo) { // let { userInfo } = this.data
return new Promise((resolve, reject) => {
console.log(userInfo, 'userInfo')
api.staffDailyReportMerchantValid({
merchantId: userInfo.shopMerchantId
})
.then(res => {
console.log(res, 'staffDailyReportMerchantValid')
resolve(res.data)
})
.catch(err => {
console.log(err)
})
})
},
async staffDailyReport(userInfo) {
// debugger
let merchantStaffDailyReportMerchantValid = await this.staffDailyReportMerchantValid(userInfo)
console.log(merchantStaffDailyReportMerchantValid, 'merchantStaffDailyReportMerchantValid');
// 没有开启就不走下一步逻辑
if (!merchantStaffDailyReportMerchantValid) return false
let { isStaff } = this.data let { isStaff } = this.data
// 获取当前日期 // 获取当前日期
if (isStaff) { if (isStaff) {
...@@ -720,13 +742,13 @@ Page({ ...@@ -720,13 +742,13 @@ Page({
if (hasNeedReport && isStaff) { if (hasNeedReport && isStaff) {
// if (num <= 2) { // if (num <= 2) {
// wx.$util.showToast('驻店日报未填写,请及时填写') // wx.$util.showToast('驻店日报未填写,请及时填写')
if (wx.__HAS_NOREPORT_MODAL) return false if (wx.__HAS_NOREPORT_MODAL || wx.__HAS_NOTLOGIN_MODAL) return false
wx.__HAS_NOREPORT_MODAL = true wx.__HAS_NOREPORT_MODAL = true
wx.showModal({ wx.showModal({
title: '日报提醒', title: '日报提醒',
content: '您有未填写的日报,请点击前往。', content: '您有未填写的日报,请点击前往。',
showCancel: true, showCancel: false,
cancelText: '取消', // '取消 // cancelText: '取消', // '取消
cancelColor: '#292D33', cancelColor: '#292D33',
confirmText: '前往填写', confirmText: '前往填写',
confirmColor: '#347BFF', confirmColor: '#347BFF',
...@@ -953,14 +975,14 @@ Page({ ...@@ -953,14 +975,14 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {} onShareAppMessage: function () { }
}) })
...@@ -406,7 +406,8 @@ Page({ ...@@ -406,7 +406,8 @@ Page({
orderObj, orderObj,
scene, scene,
isErrorOrder, isErrorOrder,
isAlreadyExistOrder isAlreadyExistOrder,
submitStatus
} = this.data } = this.data
orderObj = wx.$util.deepClone(orderObj) orderObj = wx.$util.deepClone(orderObj)
// 如果是错单补录 禁用掉保存功能 或待跟进订单/预约订单 禁用建档 // 如果是错单补录 禁用掉保存功能 或待跟进订单/预约订单 禁用建档
...@@ -478,8 +479,12 @@ Page({ ...@@ -478,8 +479,12 @@ Page({
// return this.showToast('商品无配置部位属性,请联系总部运营配置上架') // return this.showToast('商品无配置部位属性,请联系总部运营配置上架')
// } // }
// } // }
// 请求中就不给再重复提交了
if (submitStatus) return
this.showLoading('提交中...') this.showLoading('提交中...')
this.setData({
submitStatus: true
})
let apiName = save && !isErrorOrder ? 'createPrerecordedOrder' : isErrorOrder ? 'correctionOrder' : 'createWithPay' let apiName = save && !isErrorOrder ? 'createPrerecordedOrder' : isErrorOrder ? 'correctionOrder' : 'createWithPay'
// 太阳膜下单入口 // 太阳膜下单入口
submitObj.filmOrder = 0 submitObj.filmOrder = 0
...@@ -523,6 +528,10 @@ Page({ ...@@ -523,6 +528,10 @@ Page({
} else { } else {
this.showToast(message) this.showToast(message)
} }
}).finally(() => {
this.setData({
submitStatus: false
})
}) })
}, },
checkGoods(save, subOrderList, priceDisabled, goodsList, orderObj) { checkGoods(save, subOrderList, priceDisabled, goodsList, orderObj) {
......
...@@ -129,7 +129,17 @@ ...@@ -129,7 +129,17 @@
height: var(--fontSize26); height: var(--fontSize26);
margin: 0 !important; margin: 0 !important;
} }
.headerSlot { .headerSlot {
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #347BFF; color: #347BFF;
max-width: var(--fontSize150);
white-space: nowrap;
/* 不换行 */
overflow: hidden;
/* 控制溢出部分的显示与否 */
text-overflow: ellipsis;
/* 添加省略号 */
/* font-size: 28rpx; */
/* color: #347BFF; */
} }
\ No newline at end of file \ No newline at end of file
...@@ -7,7 +7,7 @@ import { getYQInfo } from '~/store/index' ...@@ -7,7 +7,7 @@ import { getYQInfo } from '~/store/index'
import comApi from '~/api/api' import comApi from '~/api/api'
let toastList = { let toastList = {
deliveryCount: '新车交付数不能为空', deliveryCount: '新车交付数不能为空',
filmToShopCount: '到店流量数(太阳膜)不能为空', // filmToShopCount: '到店流量数(太阳膜)不能为空',
equityToShopCount: '到店流量数(会员权益)不能为空' equityToShopCount: '到店流量数(会员权益)不能为空'
} }
const app = getApp() const app = getApp()
...@@ -38,7 +38,7 @@ Page({ ...@@ -38,7 +38,7 @@ Page({
formData, formData,
orderObj: { orderObj: {
deliveryCount: '', deliveryCount: '',
filmToShopCount: '', // filmToShopCount: '',
equityToShopCount: '', equityToShopCount: '',
remark: '' remark: ''
}, },
...@@ -118,7 +118,7 @@ Page({ ...@@ -118,7 +118,7 @@ Page({
}, },
checkRequired(obj) { checkRequired(obj) {
let { role } = this.data let { role } = this.data
let target = ['deliveryCount', 'filmToShopCount', 'equityToShopCount'] let target = ['deliveryCount', 'equityToShopCount']
if (role == 'super') { if (role == 'super') {
target = ['deliveryCount'] target = ['deliveryCount']
} }
...@@ -362,7 +362,7 @@ Page({ ...@@ -362,7 +362,7 @@ Page({
let { code, data, message } = res let { code, data, message } = res
// console.log(data, 'data') // console.log(data, 'data')
if (code == 0) { if (code == 0) {
let { trafficProblemList, skillProblemList, packageProblemList, deliveryCount, filmToShopCount, equityToShopCount, remark } = data let { trafficProblemList, skillProblemList, packageProblemList, deliveryCount, equityToShopCount, remark } = data
// trafficProblemList = [1, 2] // trafficProblemList = [1, 2]
// if (trafficProblemList) { // if (trafficProblemList) {
trafficProblemList = trafficProblemList || [] trafficProblemList = trafficProblemList || []
...@@ -427,7 +427,7 @@ Page({ ...@@ -427,7 +427,7 @@ Page({
['orderObj.isDateWithin7Days']: util.isDateWithin7Days(reportDate), ['orderObj.isDateWithin7Days']: util.isDateWithin7Days(reportDate),
['orderObj.isDateWithin60Days']: util.isDateWithin60Days(reportDate), ['orderObj.isDateWithin60Days']: util.isDateWithin60Days(reportDate),
['orderObj.deliveryCount']: deliveryCount, ['orderObj.deliveryCount']: deliveryCount,
['orderObj.filmToShopCount']: filmToShopCount, // ['orderObj.filmToShopCount']: filmToShopCount,
['orderObj.equityToShopCount']: equityToShopCount, ['orderObj.equityToShopCount']: equityToShopCount,
['orderObj.remark']: remark, ['orderObj.remark']: remark,
approvalList: data.approvalList || [] approvalList: data.approvalList || []
......
...@@ -23,20 +23,61 @@ ...@@ -23,20 +23,61 @@
</view> </view>
</view> </view>
<view class="box"> <view class="box">
<gl-cell-staff class="{{(role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days)?'disabled':''}}" border valueAlign="right" labelText="每日按门店填写新车交付数" label="新车交付数" requiredAfter labelWidth="var(--fontSize375)" required> <gl-cell-staff
class="{{ (role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days)?'disabled':'' }}"
border
valueAlign="right"
labelText="每日按门店填写新车交付数"
label="新车交付数"
requiredAfter
labelWidth="375rpx"
required
>
<!-- <view slot='headerSlot'>陈希</view> --> <!-- <view slot='headerSlot'>陈希</view> -->
<input placeholder="点击输入" class="input" placeholder-class="placeholder-class" maxlength="3" type="number" value="{{ orderObj.deliveryCount }}" bindinput="input" data-name="deliveryCount" disabled="{{ (role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days) }}" always-embed></input> <input
placeholder="点击输入"
class="input"
placeholder-class="placeholder-class"
maxlength="3"
type="number"
value="{{ orderObj.deliveryCount }}"
bindinput="input"
data-name="deliveryCount"
disabled="{{ (role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days) }}"
always-embed
></input>
</gl-cell-staff> </gl-cell-staff>
<gl-cell-staff headerSlot="{{orderObj.staffName}}" class="{{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的接待客户数" label="到店流量(太阳膜)" requiredAfter labelWidth="var(--fontSize375)" required> <!-- <gl-cell-staff headerSlot="{{orderObj.staffName}}" class="{{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的接待客户数" label="到店流量(太阳膜)" requiredAfter labelWidth="375rpx" required>
<input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.filmToShopCount }}" bindinput="input" data-name="filmToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input> <input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.filmToShopCount }}" bindinput="input" data-name="filmToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input>
</gl-cell-staff> </gl-cell-staff> -->
<gl-cell-staff headerSlot="{{orderObj.staffName}}" class="{{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的接待客户数" label="到店流量(会员权益)" requiredAfter labelWidth="var(--fontSize375)" required> <gl-cell-staff
<input placeholder="点击输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.equityToShopCount }}" bindinput="input" data-name="equityToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input> headerSlot="{{ orderObj.staffName }}"
class="{{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}"
border
valueAlign="right"
labelText="每日填写本人该业务的接待客户数"
label="到店流量(会员权益/延保)"
requiredAfter
labelWidth="500rpx"
required
>
<input
placeholder="点击输入"
class="input"
type="number"
placeholder-class="placeholder-class"
maxlength="3"
value="{{ orderObj.equityToShopCount }}"
bindinput="input"
data-name="equityToShopCount"
disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}"
always-embed
></input>
</gl-cell-staff> </gl-cell-staff>
<view class="user-portrait"> <view class="user-portrait">
<view wx:for="{{ formData }}" wx:key="index" class="{{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}"> <view wx:for="{{ formData }}" wx:key="index" class="{{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}">
<view class="label">{{item.label}}</view> <view class="label">{{item.label}}</view>
<!-- <gl-cell-staff border valueAlign="right" label="{{ item.label }}" requiredAfter labelWidth="var(--fontSize375)"> <!-- <gl-cell-staff border valueAlign="right" label="{{ item.label }}" requiredAfter labelWidth="375rpx">
<input placeholder="下方选项请点击选择" class="input" placeholder-class="placeholder-class" disabled="{{ true }}" always-embed></input> <input placeholder="下方选项请点击选择" class="input" placeholder-class="placeholder-class" disabled="{{ true }}" always-embed></input>
</gl-cell-staff> --> </gl-cell-staff> -->
<!-- <view class="input-box" wx:if="{{ item.type == 'textarea' }}"> <!-- <view class="input-box" wx:if="{{ item.type == 'textarea' }}">
...@@ -51,18 +92,34 @@ ...@@ -51,18 +92,34 @@
bindinput="handleInput" bindinput="handleInput"
/> />
</view> --> </view> -->
<view wx:if="{{ item.optionList }}" class="check-block {{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}"> <view wx:if="{{ item.optionList }}" class="check-block {{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}">
<view class="check-box {{ subItem.active ? 'active' : '' }}" wx:for="{{ item.optionList }}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" bindtap="click" data-pidx="{{ index }}" data-idx="{{ idx }}"> <view
class="check-box {{ subItem.active ? 'active' : '' }}"
wx:for="{{ item.optionList }}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx"
bindtap="click"
data-pidx="{{ index }}"
data-idx="{{ idx }}"
>
{{subItem.confName}} {{subItem.confName}}
<image wx:if="{{ item.isMult && subItem.active }}" class="mult" src="../../images/check-active.png"></image> <image wx:if="{{ item.isMult && subItem.active }}" class="mult" src="../../images/check-active.png"></image>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="remark_box "> <view class="remark_box">
<view class="label">备注</view> <view class="label">备注</view>
<view class="textArea_box {{role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}"> <view class="textArea_box {{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}">
<textarea value="{{ orderObj.remark }}" maxlength="800" placeholder="请输入" class="textarea" bindinput="remarkInput" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" /> <textarea
value="{{ orderObj.remark }}"
maxlength="800"
placeholder="请输入"
class="textarea"
bindinput="remarkInput"
disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}"
/>
<view class="currentWordNumber">{{currentWordNumber || 0}} / 800</view> <view class="currentWordNumber">{{currentWordNumber || 0}} / 800</view>
</view> </view>
</view> </view>
...@@ -76,7 +133,7 @@ ...@@ -76,7 +133,7 @@
<view class="tips">数据来源生意助手小程序,每周更新</view> <view class="tips">数据来源生意助手小程序,每周更新</view>
<!-- approval --> <!-- approval -->
<view class="approvalBox"> <view class="approvalBox">
<block wx:if="{{approvalList.length}}"> <block wx:if="{{ approvalList.length }}">
<view class="title">历史记录</view> <view class="title">历史记录</view>
<block wx:for="{{ approvalList }}" wx:key="index" wx:for-item="item" wx:for-index="idx"> <block wx:for="{{ approvalList }}" wx:key="index" wx:for-item="item" wx:for-index="idx">
<view class="item"> <view class="item">
...@@ -85,7 +142,7 @@ ...@@ -85,7 +142,7 @@
</view> </view>
</block> </block>
</block> </block>
<block wx:if="{{!approvalList.length}}"> <block wx:if="{{ !approvalList.length }}">
<view class="nothingTips"> <view class="nothingTips">
<gl-image class="camera-icon" webp src="/no_data_bg.png"></gl-image> <gl-image class="camera-icon" webp src="/no_data_bg.png"></gl-image>
暂无数据 暂无数据
...@@ -94,7 +151,14 @@ ...@@ -94,7 +151,14 @@
<view class="remark_box" wx:if="{{ role == 'other' }}"> <view class="remark_box" wx:if="{{ role == 'other' }}">
<view class="label">填写批复</view> <view class="label">填写批复</view>
<view class="textArea_box"> <view class="textArea_box">
<textarea value="{{ approvedContent }}" maxlength="800" placeholder="请输入" class="textarea" bindinput="approveRemarkInput" disabled="{{ role == 'ohter' }}" /> <textarea
value="{{ approvedContent }}"
maxlength="800"
placeholder="请输入"
class="textarea"
bindinput="approveRemarkInput"
disabled="{{ role == 'ohter' }}"
/>
<view class="currentWordNumber">{{approvedContentCurrentWordNumber || 0}} / 800</view> <view class="currentWordNumber">{{approvedContentCurrentWordNumber || 0}} / 800</view>
</view> </view>
</view> </view>
...@@ -110,5 +174,12 @@ ...@@ -110,5 +174,12 @@
</view> </view>
</view> </view>
</view> </view>
<store-picker subIndex="{{ subIndex }}" pickList="{{ rangeList }}" show="{{ showPicker }}" bindsearch="inputSearch" bindconfirm="changePicker" pickerType="{{ pickerType }}" /> <store-picker
subIndex="{{ subIndex }}"
pickList="{{ rangeList }}"
show="{{ showPicker }}"
bindsearch="inputSearch"
bindconfirm="changePicker"
pickerType="{{ pickerType }}"
/>
<!-- </block> --> <!-- </block> -->
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!