Commit 3ae29570 by 张立顺

第二轮报错

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