Commit 3ae29570 by 张立顺

第二轮报错

1 parent 83e56a86
...@@ -56,7 +56,7 @@ App({ ...@@ -56,7 +56,7 @@ App({
} }
options.query = query options.query = query
} }
// console.log('options', options) console.log('options', options)
let res = checkScene(options) let res = checkScene(options)
// console.log(res, 'res') // console.log(res, 'res')
// 如果需要重新登录 // 如果需要重新登录
......
...@@ -28,10 +28,10 @@ Component({ ...@@ -28,10 +28,10 @@ Component({
// 处理先要调用销售顾问接口再调用转化人员接口的问题 // 处理先要调用销售顾问接口再调用转化人员接口的问题
observers: { observers: {
'orderObj.sellerUserId': function (id) { 'orderObj.sellerUserId': function (id) {
console.log(id) // console.log(id)
console.log('orderObj.sellerUserId', this.data.orderObj) // console.log('orderObj.sellerUserId', this.data.orderObj)
let { type, selesFirstRender } = this.data let { type, selesFirstRender } = this.data
console.log(type == 1 && selesFirstRender) // console.log(type == 1 && selesFirstRender)
// selesFirstRender // selesFirstRender
if (type == 1 && id) { if (type == 1 && id) {
this.getMerchantList() this.getMerchantList()
...@@ -65,7 +65,7 @@ Component({ ...@@ -65,7 +65,7 @@ Component({
}, },
getMerchantList() { getMerchantList() {
let { userInfo, type } = this.data let { userInfo, type } = this.data
console.log('type', type) // console.log('type', type)
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
// console.log(thisPage.data) // console.log(thisPage.data)
// console.log(thisPage) // console.log(thisPage)
...@@ -292,7 +292,7 @@ Component({ ...@@ -292,7 +292,7 @@ Component({
[name]: '', [name]: '',
[id]: '' [id]: ''
}) })
console.log(orderObj) // console.log(orderObj)
wx.$util.showLoading('切换中...') wx.$util.showLoading('切换中...')
this.getConversionEmployeeList(item.merchantId, true) this.getConversionEmployeeList(item.merchantId, true)
}, },
...@@ -332,7 +332,7 @@ Component({ ...@@ -332,7 +332,7 @@ Component({
} }
} }
console.log(result) // console.log(result)
// let userInfo = util.getUserInfo() // let userInfo = util.getUserInfo()
// // 保存销售勾选做回显 // // 保存销售勾选做回显
// oderType != 'recorder' && util.setSellerInfo({ ...this.data.orderObj, subLoginMechantId: userInfo.subLoginUser.merchantId }) // oderType != 'recorder' && util.setSellerInfo({ ...this.data.orderObj, subLoginMechantId: userInfo.subLoginUser.merchantId })
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
value="{{textareaValue}}" value="{{textareaValue}}"
bindinput="blur" bindinput="blur"
bindblur="blur" bindblur="blur"
maxlength="30" maxlength="100"
placeholder="请输入内容" /> placeholder="请输入内容" />
</view> </view>
<view class="shortcut-list"> <view class="shortcut-list">
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* 2测试 * 2测试
* 3生产环境 * 3生产环境
*/ */
let index = 2 let index = 1
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<view class="item-footer"> <view class="item-footer">
<view>{{item.createdDate}}</view> <view>{{item.createdDate}}</view>
<!-- 超管isSuper/商户类型 userType 1账号不可操作 --> <!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}"> <block wx:if="{{(!userInfo.isSuper && userInfo.userType == 2)||(item.orderStatus==2) }}">
<view wx:if="{{item.orderStatus == '2'}}" class="order-btn default-btn" bindtap="handlePreviewContract" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view> <view wx:if="{{item.orderStatus == '2'}}" class="order-btn default-btn" bindtap="handlePreviewContract" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view>
<view wx:else class="order-btn" bindtap="handleRecordOrder" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view> <view wx:else class="order-btn" bindtap="handleRecordOrder" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view>
</block> </block>
......
...@@ -7,7 +7,7 @@ const defaultLabelWidth = '140rpx' ...@@ -7,7 +7,7 @@ const defaultLabelWidth = '140rpx'
// import api from '~/api/api' // import api from '~/api/api'
Component({ Component({
options: { options: {
styleIsolation: 'shared' styleIsolation: 'apply-shared'
}, },
/** /**
* 组件的属性列表 * 组件的属性列表
......
...@@ -106,6 +106,7 @@ Component({ ...@@ -106,6 +106,7 @@ Component({
this.setData({ this.setData({
show: false show: false
}) })
this.triggerEvent('confirm')
} }
} }
}) })
...@@ -227,6 +227,7 @@ Component({ ...@@ -227,6 +227,7 @@ Component({
this.setData({ this.setData({
show: false show: false
}) })
this.triggerEvent('confirm')
} }
} }
}) })
...@@ -5,7 +5,7 @@ import { priceCounter } from '~/packageEquity/api' ...@@ -5,7 +5,7 @@ import { priceCounter } from '~/packageEquity/api'
const defaultLabelWidth = '140rpx' const defaultLabelWidth = '140rpx'
Component({ Component({
options: { options: {
styleIsolation: 'shared' styleIsolation: 'apply-shared'
}, },
// behaviors: ['wx://component-export'], // behaviors: ['wx://component-export'],
attached() { attached() {
...@@ -96,6 +96,13 @@ Component({ ...@@ -96,6 +96,13 @@ Component({
// }, // },
onChangeInsurance(e) { onChangeInsurance(e) {
console.log(e) console.log(e)
let { detail } = e
console.log(detail, 'detail')
if (!detail) {
return this.setData({
insuranceCheck: false
})
}
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
let params = thisPage.getInsurance() let params = thisPage.getInsurance()
let owner = thisPage.getOwnerInfo() let owner = thisPage.getOwnerInfo()
...@@ -155,6 +162,12 @@ Component({ ...@@ -155,6 +162,12 @@ Component({
this.setData({ this.setData({
showYear: false showYear: false
}) })
this.cancelInsuranceCheck()
},
cancelInsuranceCheck() {
this.setData({
insuranceCheck: false
})
}, },
// 取消选择年份的弹框 // 取消选择年份的弹框
onCancel() { onCancel() {
...@@ -226,10 +239,12 @@ Component({ ...@@ -226,10 +239,12 @@ Component({
console.log(e) console.log(e)
let { name } = e.detail let { name } = e.detail
// let { attrtype, attrname, typename } = this.data.tableObj // let { attrtype, attrname, typename } = this.data.tableObj
let { showError } = this.data let { showError, insuranceCheck, orderInfo } = this.data
if (showError) return wx.$util.showToast('权益价不能小于最低权益价') if (showError) return wx.$util.showToast('权益价不能小于最低权益价')
if (name == 'confirm') { if (name == 'confirm') {
// 不是修改报价时,需要勾选保险
if (!insuranceCheck && !orderInfo.modifyEquityQuotation) return wx.$util.showToast('请先勾选保险')
this.triggerEvent('confirm') this.triggerEvent('confirm')
} else { } else {
this.triggerEvent('editSave') this.triggerEvent('editSave')
...@@ -266,6 +281,7 @@ Component({ ...@@ -266,6 +281,7 @@ Component({
thisPage.setData({ thisPage.setData({
['orderInfo' + '.' + attrtype + '.' + attrname]: value ['orderInfo' + '.' + attrtype + '.' + attrname]: value
}) })
this.cancelInsuranceCheck()
// console.log(thisPage.data) // console.log(thisPage.data)
} }
// numberFixedDigit (e) { // 固定两位小数 // numberFixedDigit (e) { // 固定两位小数
......
...@@ -142,9 +142,13 @@ ...@@ -142,9 +142,13 @@
width: 570rpx; width: 570rpx;
} }
} }
}
}
.field_test {
color: blue !important;
}
.incrementInfo { .incrementInfo {
box-sizing: border-box; box-sizing: border-box;
......
...@@ -268,7 +268,11 @@ ...@@ -268,7 +268,11 @@
</view> </view>
</view> </view>
<!-- bind:change="onChange" --> <!-- bind:change="onChange" -->
<van-checkbox value="{{ insuranceCheck }}" shape="square" bind:change="onChangeInsurance"> <van-checkbox
value="{{ insuranceCheck }}"
wx:if="{{!orderInfo.modifyEquityQuotation}}"
shape="square"
bind:change="onChangeInsurance">
请勾选增值车损险服务 请勾选增值车损险服务
</van-checkbox> </van-checkbox>
<block wx:if="{{insuranceCheck}}"> <block wx:if="{{insuranceCheck}}">
...@@ -287,15 +291,19 @@ ...@@ -287,15 +291,19 @@
</view> </view>
</view> </view>
</view> </view>
<view class="title">增值权益价格</view>
<!-- -webkit-text-fill-color:rgb(130 127 127 / 83%); -->
<van-field <van-field
class="inputBox" class="inputBox disabled"
border="{{false}}" border="{{false}}"
value="{{testQuotedPriceUpdate}}" value="{{testQuotedPriceUpdate}}"
data-attrType="modifyEquityQuotation" data-attrType="modifyEquityQuotation"
data-attrName="quotedPriceUpdate" data-attrName="quotedPriceUpdate"
maxlength="10" maxlength="10"
readonly readonly
custom-style="-webkit-text-fill-color:rgb(130 127 127 / 83%); " disabled
label-class="field_test"
custom-style=" background-color: #F4F5F7; "
data-type='number'> data-type='number'>
<view slot="left-icon"> <view slot="left-icon">
<view>¥</view> <view>¥</view>
...@@ -305,6 +313,7 @@ ...@@ -305,6 +313,7 @@
<view class="equityPirce" wx:if="{{orderInfo.modifyEquityQuotation}}"> <view class="equityPirce" wx:if="{{orderInfo.modifyEquityQuotation}}">
<view class="title">增值权益价格</view> <view class="title">增值权益价格</view>
<van-field <van-field
class="inputBox"
border="{{false}}" border="{{false}}"
data-hold-keyboard data-hold-keyboard
value="{{orderInfo.modifyEquityQuotation.quotedPriceUpdate}}" value="{{orderInfo.modifyEquityQuotation.quotedPriceUpdate}}"
...@@ -325,8 +334,12 @@ ...@@ -325,8 +334,12 @@
</van-collapse> </van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{textNameObj}}" /> <Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{textNameObj}}" />
<!-- customInput="{{customInput}}" --> <!-- customInput="{{customInput}}" -->
<popup-select show="{{popupShow}}" popObj="{{popObj}}" typeName="{{popObj.typename}}" /> <popup-select
<popup-input show="{{popupInputShow}}" popInputObj="{{popInputObj}}" /> show="{{popupShow}}"
popObj="{{popObj}}"
typeName="{{popObj.typename}}"
bindconfirm="cancelInsuranceCheck" />
<popup-input show="{{popupInputShow}}" popInputObj="{{popInputObj}}" bindconfirm="cancelInsuranceCheck" />
</view> </view>
<!-- </scroll-view> --> <!-- </scroll-view> -->
<van-popup <van-popup
......
...@@ -134,7 +134,7 @@ Page({ ...@@ -134,7 +134,7 @@ Page({
let result = await this.handleSecondConfirmCheck() let result = await this.handleSecondConfirmCheck()
let { code, data: id, message } = result let { code, data: id, message } = result
console.log(id) // console.log(id)
if (id) { if (id) {
// 校验生成告知书是否成功 // 校验生成告知书是否成功
let status = await this.getQuotationGenerate(id) let status = await this.getQuotationGenerate(id)
......
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
</view> </view>
</block> </block>
</view> </view>
<view class="order-detail" wx:if="{{item.orderStatus == '1' || item.orderStatus == '3' ||item.orderStatus =='4'}}"> <view class="order-detail" wx:if="{{item.orderStatus == '1'|| item.orderStatus == '2' || item.orderStatus == '3' ||item.orderStatus =='4'}}">
<view class="detail-item"> <view class="detail-item">
<view class="detail-label">报价金额</view> <view class="detail-label">报价金额</view>
<view class="text-hide">{{item.quotedPrice || '--'}}</view> <view class="text-hide">{{item.quotedPrice || '--'}}</view>
......
...@@ -20,7 +20,7 @@ Page({ ...@@ -20,7 +20,7 @@ Page({
// let { noLogin } = options // let { noLogin } = options
let id = decodeURIComponent(options.scene).split('=')[1] let id = decodeURIComponent(options.scene).split('=')[1]
// noLogin // noLogin
console.log(id) // console.log(id)
id ? this.qrCodeScene(id) : this.getListSelectAccount() id ? this.qrCodeScene(id) : this.getListSelectAccount()
// this.getListSelectAccount() // this.getListSelectAccount()
}, },
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
"scene": null "scene": null
}, },
{ {
"name": "", "name": "报价单签名",
"pathName": "packageEquity/pages/carQuotation/signature/signature", "pathName": "packageEquity/pages/carQuotation/signature/signature",
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
...@@ -172,6 +172,13 @@ ...@@ -172,6 +172,13 @@
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "1.1 创建客户档案",
"pathName": "tabWorkOrder/pages/createArchives/createArchives",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }
......
...@@ -100,8 +100,8 @@ export const getYQorderInfo = () => { ...@@ -100,8 +100,8 @@ export const getYQorderInfo = () => {
// console.log(data); // console.log(data);
// debugger // debugger
console.log(data.yqPhoneConfig, 'data.yqPhoneConfig') // console.log(data.yqPhoneConfig, 'data.yqPhoneConfig')
console.log(typeof data.yqPhoneConfig, 'data.yqPhoneConfig') // console.log(typeof data.yqPhoneConfig, 'data.yqPhoneConfig')
// 过滤园区店是否需要屏蔽手机号选项 // 过滤园区店是否需要屏蔽手机号选项
let filterYqPhoneConfig = JSON.parse(data.yqPhoneConfig) let filterYqPhoneConfig = JSON.parse(data.yqPhoneConfig)
// console.log(filterYqPhoneConfig) // console.log(filterYqPhoneConfig)
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<view class="time {{now<li.inviteDate?'':'gray'}}">{{li.time}}</view> <view class="time {{now<li.inviteDate?'':'gray'}}">{{li.time}}</view>
</view> </view>
<view class="order-control"> <view class="order-control">
<block wx:if="{{!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2 && li.customerCoupon.usedFlag !='Y'}}"> <block wx:if="{{!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2 && li.customerCoupon.usedFlag !='Y'&&li.inviteStatus !=4}}">
<view class="control-item" catchtap="showDateBox" data-item="{{li}}"> <view class="control-item" catchtap="showDateBox" data-item="{{li}}">
<image src="../../images/date.png" class="date-icon" /> <image src="../../images/date.png" class="date-icon" />
预约 预约
......
...@@ -446,38 +446,45 @@ Page({ ...@@ -446,38 +446,45 @@ Page({
orderObj orderObj
}) })
}, },
initOPtions(res) {
if (res.customerName) {
// if (query) {
// 解码
for (const key in res) {
res[key] = decodeURIComponent(res[key])
}
// options.query = query
// }
let f = 'notUpgradeOrderList[' + 0 + '].customerName'
this.setData({
[f]: res.customerName
})
}
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (res) {
this.setTimeList() this.setTimeList()
// console.log(options) console.log(res)
res && this.initOPtions(res)
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function (res) { onReady: function (res) {
// console.log(res) console.log(res)
// this.getConfig() // this.getConfig()
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function (res) { onShow: function (res) {
// console.log(wx.$modal) console.log(res, 'onroute')
// console.log(res)
// setTimeout(() => {
// wx.$util.showLoading()
// }, 2000)
}, },
onRoute(res) { onRoute(res) {
if (res.customerName) { console.log(res, 'onroute')
let f = 'notUpgradeOrderList[' + 0 + '].customerName' res && this.initOPtions(res)
this.setData({
[f]: res.customerName
})
}
this.getSetting() this.getSetting()
}, },
/** /**
......
...@@ -470,10 +470,13 @@ Page({ ...@@ -470,10 +470,13 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
// console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting.yqPhoneConfig') // console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting.yqPhoneConfig')
// console.log(options) console.log(options)
if (options.scene) { if (options.scene) {
this.setData(options) this.setData(options)
} }
if (options.orderCode) {
this.onRoute(options)
}
}, },
init(userInfo) { init(userInfo) {
let { scene, orderObj } = this.data let { scene, orderObj } = this.data
...@@ -595,7 +598,7 @@ Page({ ...@@ -595,7 +598,7 @@ Page({
// app . // app .
getYQorderInfo() getYQorderInfo()
.then(merchantSettingInfo => { .then(merchantSettingInfo => {
console.log(merchantSettingInfo, 'merchantSettingInfo') // console.log(merchantSettingInfo, 'merchantSettingInfo')
let dictionaryObj = { let dictionaryObj = {
carTypeRequiredFlag: 'carBrand', carTypeRequiredFlag: 'carBrand',
standNoRequiredFlag: 'standNo', standNoRequiredFlag: 'standNo',
...@@ -607,7 +610,7 @@ Page({ ...@@ -607,7 +610,7 @@ Page({
requiredList.push(dictionaryObj[key]) requiredList.push(dictionaryObj[key])
} }
} }
console.log(merchantSettingInfo.yqPhoneConfig, 'merchantSettingInfo.yqPhoneConfig') // console.log(merchantSettingInfo.yqPhoneConfig, 'merchantSettingInfo.yqPhoneConfig')
// console.log(deepClone(merchantSettingInfo.yqPhoneConfig), 'deepClone(merchantSettingInfo.yqPhoneConfig)') // console.log(deepClone(merchantSettingInfo.yqPhoneConfig), 'deepClone(merchantSettingInfo.yqPhoneConfig)')
this.setData({ this.setData({
requiredList: [...new Set(requiredList)], requiredList: [...new Set(requiredList)],
...@@ -655,7 +658,7 @@ Page({ ...@@ -655,7 +658,7 @@ Page({
}, },
async onRoute(res) { async onRoute(res) {
// debugger // debugger
// console.log(res) console.log(res)
// console.log() // console.log()
if (res.orderCode && res.page) { if (res.orderCode && res.page) {
let result = await api.getOrderDetail({ let result = await api.getOrderDetail({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!