Commit e1034cc0 by 张立顺

Merge branch 'SAAS+V5.3.0-1117' of 192.168.3.233:saas_plus/sales-assistant into SAAS+V5.3.0-1117

2 parents 31b9f202 79a37827
......@@ -87,6 +87,9 @@ Component({
},
getBrandList() {
let data = wx.$storage.get('car_brand_list')
this.setData({
searchKeyword: ''
})
if (data) {
this.dealSelectedList(Util.deepClone(data)).then(brandlist => {
this.formatData(brandlist)
......
......@@ -54,6 +54,7 @@ Component({
*/
methods: {
noScroll() { },
noop() {},
hidePopup() {
this.setData({
show: false
......
<view class="popup custom-class" hidden="{{!showPopup}}" catchtouchmove="noScroll">
<view class="popup-bg" bindtap="hidePopup"></view>
<view class="popup-bg" catchtap="hidePopup"></view>
<view class="popup-content {{close?'close':''}}" style="height:{{height}}">
<block wx:if="{{title}}">
<view class="popup-title text-center">{{title}}</view>
</block>
<view class="popup-slot {{(isTab || customIsTab) && (!hideTab || !customHideTab) ? '': title?'isFullSucreen':'isFullSucreen-notitle'}}" style="{{customPopupSlotStyle}}">
<view class="popup-slot {{(isTab || customIsTab) && (!hideTab || !customHideTab) ? '': title?'isFullSucreen':'isFullSucreen-notitle'}}" style="{{customPopupSlotStyle}}" catchtap="noop">
<slot></slot>
</view>
<view class="popup-footer {{(isTab || customIsTab) && (!hideTab || !customHideTab) ?'':'isFullSucreen'}}" wx:if="{{only}}">
......
......@@ -158,8 +158,9 @@ Component({
merchantId,
businessType: businessTypeObj[current]
}
wx.$api.showLoading()
CustomerApi.getKPIData(params).then(res => {
console.log(res)
wx.$api.hideLoading()
res?.forEach(val => {
val.completed = this.formatCurrency(val.completed)
val.target = this.formatCurrency(val.target)
......
......@@ -128,8 +128,9 @@
text-align: right;;
}
.col.month {
flex: 0 0 56rpx;
flex: 0 0 72rpx;
text-align: left;
padding-left: 16rpx;
}
.col.rate {
flex: 0 0 100rpx; text-align: left;
......
......@@ -63,7 +63,9 @@ Component({
},
getDetailData() {
let { merchantId } = this.data
wx.$api.showLoading()
CustomerApi.getStoreOverviewData({id: merchantId}).then(res => {
wx.$api.hideLoading()
res?.safetyIndexWarningList?.forEach(val => {
val.cycleIndicator = this.formatPercent(val.cycleIndicator)
val.fallbackIndicator = this.formatPercent(val.fallbackIndicator)
......
......@@ -3,11 +3,11 @@
margin-bottom: 200rpx;
background: #FFFFFF;
width: 100%;
padding: 24rpx 32rpx 32rpx 32rpx;
padding: 16rpx 32rpx 32rpx 32rpx;
}
.section {
margin: 16rpx 16rpx 24rpx;
margin: 16rpx 0 24rpx;
border-bottom: 1rpx solid #E4E8EE;
&:last-child {
border-bottom: 0;
......
......@@ -71,11 +71,11 @@
<view class="card">
<view class="row">
<view class="label">名称</view>
<view class="value">{{m.personnelName}}</view>
<view class="value">{{m.personnelName || '-'}}</view>
</view>
<view class="row">
<view class="label">手机号</view>
<view class="value">{{m.personnelPhone}}</view>
<view class="value">{{m.personnelPhone || '-'}}</view>
</view>
</view>
</view>
......
......@@ -295,6 +295,7 @@ Page({
let tempFilesList = tempFiles.split('.')
let imgType = tempFilesList[tempFilesList.length - 1]
let type = imgType == 'unknown' ? 'jpg' : imgType
if (res?.tempFiles?.[0]?.size > 10 * 1024 * 1024) return wx.$api.showToast('图片不能大于10M')
wx.getFileSystemManager().readFile({
filePath: tempFiles, //选择图片返回的相对路径
encoding: 'base64', //编码格式
......@@ -422,6 +423,9 @@ Page({
let { code, message } = res
const okText = '我知道了'
if (this.resultDialog) {
this.setData({
textareaDisabled: true
})
if (code == 0) {
this.resultDialog.open({
type: 'success',
......
......@@ -9,7 +9,7 @@
<view class="label">{{item.label}} <text class="star">*</text></view>
<view class="value" bindtap="showPopup" data-target="{{item}}">
<block wx:if="{{item.type == 'textarea'}}">
<textarea value="{{infoData[item.key]}}" class="textarea {{item.disabled ? 'disabled': ''}}" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}" disabled="{{item.disabled}}" cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
<textarea value="{{infoData[item.key]}}" class="textarea {{item.disabled ? 'disabled': ''}}" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}" disabled="{{item.disabled || showSelectPopup || textareaDisabled}}" cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
</block>
<block wx:else>
<block wx:if="{{infoData[item.key]}}">
......@@ -29,7 +29,7 @@
<view class="label">{{item.label}} <text class="star">*</text></view>
<view class="value" bindtap="showArea" data-type="{{item.type}}">
<block wx:if="{{item.type == 'textarea'}}">
<textarea value="{{infoData[item.key]}}" class="textarea" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}" cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
<textarea value="{{infoData[item.key]}}" class="textarea" placeholder="请输入" placeholder-class="placeholder-class" auto-height="true" maxlength="{{item.maxLength}}" disabled="{{showSelectPopup || textareaDisabled}}" cursor-spacing="16" bindinput="onInput" data-key="{{item.key}}"/>
</block>
<block wx:else>
<block wx:if="{{infoData[item.key]}}">
......@@ -62,7 +62,7 @@
<view class="label">备注信息</view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="200" auto-height placeholder="请输入" placeholder-class="input-ph" value="{{infoData.remark}}" bindinput="onRemarkInput" />
<textarea class="textarea" maxlength="200" disabled="{{showSelectPopup || textareaDisabled}}" auto-height placeholder="请输入" placeholder-class="input-ph" value="{{infoData.remark}}" bindinput="onRemarkInput" />
<view class="counter">{{remarkLength}}/200</view>
</view>
</view>
......@@ -101,7 +101,7 @@
<popup show="{{carBrandPopupShow}}" title="选择品牌" bind:hidePopup="hideBrandPopup" customPopupSlotStyle="{{'height: calc(100% - 282rpx)'}}" bindconfirm="brandConfirm" height="90%">
<car-brand id="car-brand" popupShow="{{carBrandPopupShow}}" multiple selectedList="{{selectedMainBrand}}"></car-brand>
</popup>
<select-popup show="{{showSelectPopup}}" options="{{selectOptions}}" multiple="{{selectMultiple}}" values="{{selectValues}}" value="{{selectValue}}" bindconfirm="handlePopupConfirm" title="{{selectTitle}}"></select-popup>
<select-popup show="{{showSelectPopup}}" options="{{selectOptions}}" multiple="{{selectMultiple}}" values="{{selectValues}}" value="{{selectValue}}" bindconfirm="handlePopupConfirm" bindcancel="hideSelectPopup" title="{{selectTitle}}"></select-popup>
<select-area show="{{showSelectArea}}" areaList="{{areaList}}" bindconfirm="areaConfirm" bindcancel="areaCancel" value="{{infoData.districtId || ''}}"></select-area>
<!-- 结果弹窗组件:统一反馈弹窗 -->
<result-dialog id="resultDialog" bind:ok="onDialogOk" bind:close="onDialogClose" />
\ No newline at end of file
......@@ -149,6 +149,7 @@ Page({
let tempFilesList = tempFiles.split('.')
let imgType = tempFilesList[tempFilesList.length - 1]
let type = imgType == 'unknown' ? 'jpg' : imgType
if (res?.tempFiles?.[0]?.size > 10 * 1024 * 1024) return wx.$api.showToast('图片不能大于10M')
wx.getFileSystemManager().readFile({
filePath: tempFiles, //选择图片返回的相对路径
encoding: 'base64', //编码格式
......@@ -191,7 +192,7 @@ Page({
async getLocation() {
try {
const loc = await wx.getLocation({ type: "gcj02" })
const loc = await wx.getLocation()
const { latitude, longitude } = loc
wx.$api.showLoading()
const res = await mapApi.detailedAdrress([latitude, longitude])
......@@ -231,6 +232,9 @@ Page({
const okText = '我知道了'
let { code, message } = res
if (this.resultDialog) {
this.setData({
textareaDisabled: true
})
if (code == 0) {
this.resultDialog.open({
type: 'success',
......
......@@ -95,6 +95,8 @@ page {
.image_content {
width: 160rpx;
height: 160rpx;
border-radius: 8rpx;
overflow: hidden;
position: relative;
.image_box {
width: 100%;
......
......@@ -24,7 +24,7 @@
<view class="label">拜访内容 <text class="star">*</text></view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.content}}" bindinput="onContentInput" />
<textarea class="textarea" placeholder="请输入" disabled="{{timeVisible || textareaDisabled}}" placeholder-class="input-ph" value="{{infoData.content}}" bindinput="onContentInput" />
<view class="counter">{{contentLength}}/100</view>
</view>
<view class="row no-border">
......
......@@ -59,7 +59,7 @@
</view>
</scroll-view>
<!-- 底部固定操作条:新增拜访 -->
<view class="bottom-bar" wx:if="{{tabIndex != 1 && userInfo.loginRole != 1 && infoDetail.potentialCustomersStatus == 1}}">
<view class="bottom-bar" wx:if="{{tabIndex != 1 && userInfo.loginRole != 1 && infoDetail.potentialCustomersStatus == 1 && pageQuery.isSelf == 1}}">
<view class="inner safe-area-bottom">
<view class="btn" bind:tap="onCreateVisit">新增拜访</view>
</view>
......
......@@ -186,6 +186,9 @@ Page({
const okText = '我知道了'
let { code, message } = res
if (this.resultDialog) {
this.setData({
textareaDisabled: true
})
if (code == 0) {
this.resultDialog.open({
type: 'success',
......
......@@ -34,14 +34,14 @@
<view class="label">分润规则<text class="star">*</text></view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="50" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.profitRule}}" bindinput="onProfitInput" />
<textarea class="textarea" maxlength="50" disabled="{{timeVisible || textareaDisabled}}" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.profitRule}}" bindinput="onProfitInput" />
<view class="counter">{{profitLength}}/50</view>
</view>
<view class="row no-border">
<view class="label">上架产品信息 <text class="star">*</text></view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="50" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.productShelfInfo}}" bindinput="onProductInput" />
<textarea class="textarea" maxlength="50" disabled="{{timeVisible || textareaDisabled}}" placeholder="请输入" placeholder-class="input-ph" value="{{infoData.productShelfInfo}}" bindinput="onProductInput" />
<view class="counter">{{productLength}}/50</view>
</view>
</block>
......
......@@ -138,6 +138,7 @@ class TRACK {
item = {
loginAccount: userInfo?.name,
uuid: userInfo?.uuid,
userType: userInfo?.loginRole, // 1 总监 2 大区经理 3 销售人员
systemSource: 5,
eventTime: new Date().format('yyyy-MM-dd hh:mm:ss'),
eventType,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!