Commit 9fefbd7b by 前端

Merge branch 'develop' into 'master'

Develop

See merge request !166
2 parents e520d6d0 b6977d20
...@@ -45,6 +45,7 @@ Component({ ...@@ -45,6 +45,7 @@ Component({
}, },
dateChange(e) { dateChange(e) {
let { current, source } = e.detail let { current, source } = e.detail
let {dayType} = this.data
// console.log(source) // console.log(source)
// console.log(current) // console.log(current)
/** /**
...@@ -54,7 +55,7 @@ Component({ ...@@ -54,7 +55,7 @@ Component({
*/ */
source == 'touch' && source == 'touch' &&
this.setData({ this.setData({
current [dayType?'current':'yearCurrent']:current
}) })
}, },
bindDateChange: function (e) { bindDateChange: function (e) {
......
...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd' ...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 2 let index = 1
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
"lockfileVersion": 1, "lockfileVersion": 1,
"dependencies": { "dependencies": {
"@vant/weapp": { "@vant/weapp": {
"version": "1.10.15", "version": "1.10.24",
"resolved": "https://registry.npmmirror.com/@vant/weapp/-/weapp-1.10.15.tgz", "resolved": "https://registry.npmmirror.com/@vant/weapp/-/weapp-1.10.24.tgz",
"integrity": "sha512-swM4k3pVwt/6Tnijvq86paLiKE1CzbrBQ4lR7+9uRhwKOM0HS3ooK1Q4IjSEyxQ59ZFKmYYvZln77RZcnSDqmA==" "integrity": "sha512-oovAaaJq3mlB+wto5bHVCn/rov8IgRDg+gJXy6hPX0A3c9WF1GqLqSmoXyaktgidJ9IaV1RADd3PAFlw4lUsnQ=="
}, },
"number-precision": { "number-precision": {
"version": "1.6.0", "version": "1.6.0",
......
{ {
"dependencies": { "dependencies": {
"@vant/weapp": "^1.10.14", "@vant/weapp": "^1.10.24",
"number-precision": "^1.6.0", "number-precision": "^1.6.0",
"rfdc": "^1.3.0" "rfdc": "^1.3.0"
} }
......
...@@ -332,6 +332,15 @@ Component({ ...@@ -332,6 +332,15 @@ Component({
if (code == '0') { if (code == '0') {
// wx.$router.reLaunch // wx.$router.reLaunch
wx.$router.go('activityPay', {orderCode: target.subOrderCode, paramsActivityPrice: target.payedDate ? target.activityPrice : '', paramsActivityId: target.activityId, supplementOrderFlag: target.supplementOrderFlag, orderPaySource: 1, goodsNumber: target.goodsNumber || 1, shopmallGoodsId}) wx.$router.go('activityPay', {orderCode: target.subOrderCode, paramsActivityPrice: target.payedDate ? target.activityPrice : '', paramsActivityId: target.activityId, supplementOrderFlag: target.supplementOrderFlag, orderPaySource: 1, goodsNumber: target.goodsNumber || 1, shopmallGoodsId})
wx.$storage.set('crowdFundingParams', {
orderCode: target.subOrderCode,
paramsActivityPrice: target.payedDate ? target.activityPrice : '',
paramsActivityId: target.activityId,
supplementOrderFlag: target.supplementOrderFlag,
orderPaySource: 1,
goodsNumber: target.goodsNumber || 1,
shopmallGoodsId
})
setTimeout(() => { setTimeout(() => {
this.setData({ this.setData({
confirmFlag: false confirmFlag: false
......
...@@ -194,10 +194,11 @@ Page({ ...@@ -194,10 +194,11 @@ Page({
complete: res => { complete: res => {
if (res.confirm) { if (res.confirm) {
let { accountName } = wx.$util.getUserInfo() let { accountName } = wx.$util.getUserInfo()
let crowdFundingParams = wx.$storage.get('crowdFundingParams') // 部分手机参数丢失
let params = { let params = {
subOrderCode: orderCode, subOrderCode: orderCode || crowdFundingParams?.orderCode,
orderPaySource: orderPaySource, orderPaySource: orderPaySource || crowdFundingParams?.orderPaySource,
shopmallGoodsId: shopmallGoodsId, shopmallGoodsId: shopmallGoodsId || crowdFundingParams?.shopmallGoodsId,
selectPayType: 2, // 线下收款 (门店收款) selectPayType: 2, // 线下收款 (门店收款)
updatedBy: accountName, updatedBy: accountName,
outTradeNo: customOutTradeNo, // 交易流水号 outTradeNo: customOutTradeNo, // 交易流水号
...@@ -257,9 +258,10 @@ Page({ ...@@ -257,9 +258,10 @@ Page({
this.setData({ this.setData({
shopmallGoodsId: value.specialGoodsId shopmallGoodsId: value.specialGoodsId
}) })
let crowdFundingParams = wx.$storage.get('crowdFundingParams')
let params = { let params = {
subOrderCode: orderCode, subOrderCode: orderCode || crowdFundingParams?.orderCode,
orderPaySource: orderPaySource, // 订单支付源 (1.正常付尾款,2关联尾款单,3未收款新增,4已收款补录) orderPaySource: orderPaySource || crowdFundingParams?.orderPaySource, // 订单支付源 (1.正常付尾款,2关联尾款单,3未收款新增,4已收款补录)
shopmallGoodsId: value.specialGoodsId, shopmallGoodsId: value.specialGoodsId,
selectPayType: selectPayType == 2 ? 1 : selectPayType, // 支付方式(1:线上微信支付,2:线下收款,3:POS机收款, 4:支付宝支付) 选择门店收款时切换商品 以微信支付方式创建子订单(无交易流水号) selectPayType: selectPayType == 2 ? 1 : selectPayType, // 支付方式(1:线上微信支付,2:线下收款,3:POS机收款, 4:支付宝支付) 选择门店收款时切换商品 以微信支付方式创建子订单(无交易流水号)
updatedBy: accountName, updatedBy: accountName,
......
...@@ -58,7 +58,7 @@ const orderObj = { ...@@ -58,7 +58,7 @@ const orderObj = {
}], }],
optionId: 'payType', optionId: 'payType',
optionName: 'confValue', optionName: 'confValue',
height: '40%', height: '620rpx',
noBorder: true noBorder: true
} }
], ],
......
...@@ -90,7 +90,10 @@ ...@@ -90,7 +90,10 @@
} }
} }
.remark {
font-weight: 600;
font-size: 32rpx;
}
.title { .title {
color: #222222; color: #222222;
font-size: 28rpx; font-size: 28rpx;
......
...@@ -321,6 +321,21 @@ ...@@ -321,6 +321,21 @@
</view> </view>
</van-collapse-item> </van-collapse-item>
</view> </view>
<!-- <view class="collapse">
<van-collapse-item name="1" is-link="{{ false }}">
<view slot="title">
<view class="collapseBoxTitle remark">
<view class="sprite-icon mr10" />
<view class="label">其他信息</view>
</view>
</view>
<view class="box">
<view class="title">备注</view>
<van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput">
</van-field>
</view>
</van-collapse-item>
</view> -->
</van-collapse> </van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" /> <Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
<!-- customInput="{{customInput}}" --> <!-- customInput="{{customInput}}" -->
......
...@@ -90,7 +90,10 @@ ...@@ -90,7 +90,10 @@
} }
} }
.remark {
font-weight: 600;
font-size: 32rpx;
}
.title { .title {
color: #222222; color: #222222;
font-size: 28rpx; font-size: 28rpx;
......
<!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml --> <!-- packageEquity/pages/carEquity/components/SecondStep/SecondStep.wxml -->
<view class="testFormCon"> <view class="testFormCon">
<van-collapse value="{{ activeNames }}"> <van-collapse value="{{ activeNames }}">
<!-- <view class="collapse">
<van-collapse-item name="1" is-link="{{ false }}"> <view class="collapse">
<view slot="title"> <van-collapse-item name="3" is-link="{{ false }}">
<view class="collapseBoxTitle"> <view slot="title">
<view class="sprite-icon mr10" /> <view class="collapseBoxTitle">
<view class="label">商业险信息</view> <view class="label">
</view> 增值车损险
</view> <text class="required">*</text>
<view class="box"> </view>
<view class="title">商业险总价</view> </view>
<van-field </view>
class="inputBox" <view>
border="{{ false }}" <gl-cell border valueAlign="right" label="购买商品" labelWidth="140rpx" haveArrow requiredAfter required placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" />
disabled="{{ disable }}" </view>
data-hold-keyboard <block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}">
value="{{ orderInfo.insurancePrice }}" <view class="goods-box">
data-attrName="insurancePrice" <block wx:for="{{ orderInfo.vdQuotationGoodsList }}" wx:key="index">
data-type="number" <view class="goods">
type="digit" <view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
placeholder="请输入商业险总价(非必填)" <image src="./images/del.png" />
data-attrType="" </view>
bindinput="handleInput" <view class="name text-hide">
> {{item.goodsName}}
<view slot="left-icon"> <!-- {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}} -->
<view>¥</view> </view>
</view> <view class="price-box">
</van-field> ¥
</view> <view class="price">
</van-collapse-item> <input type="digit" value="{{ item.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.price < item.shopMinPrice && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view> --> </view>
<view class="collapse"> </view>
<van-collapse-item name="3" is-link="{{ false }}"> <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
<view slot="title"> </view>
<view class="collapseBoxTitle"> </block>
<view class="label"> <view class="goods total-box">
增值车损险 <view>总价</view>
<text class="required">*</text> <view class="total">¥{{orderInfo.total || 0}}</view>
</view> </view>
</view> </view>
</view> </block>
<view> </van-collapse-item>
<gl-cell </view>
border <view class="collapse">
valueAlign="right" <van-collapse-item name="1" is-link="{{ false }}">
label="购买商品" <view slot="title">
labelWidth="140rpx" <view class="collapseBoxTitle remark">
haveArrow <view class="sprite-icon mr10" />
requiredAfter <view class="label">其他信息</view>
required </view>
placeholder="点击选择" </view>
bindclick="showPopup" <view class="box">
data-show-name="goodsBox" <view class="title">备注</view>
/> <van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput">
</view> </van-field>
<block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}"> </view>
<view class="goods-box"> </van-collapse-item>
<block wx:for="{{ orderInfo.vdQuotationGoodsList }}" wx:key="index"> </view>
<view class="goods"> </van-collapse>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}"> <Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
<image src="./images/del.png" />
</view>
<view class="name text-hide">
{{item.goodsName}}
<!-- {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || filter.replaceItemText(item.goodsInfo.goodsName)}} -->
</view>
<view class="price-box">
¥
<view class="price">
<input
type="digit"
value="{{ item.price }}"
bindinput="changePrice"
disabled="{{ orderObj.selectPayType ==0 }}"
data-item="{{ item }}"
bindblur="priceBlur"
data-index="{{ index }}"
class="{{ item.price < item.shopMinPrice && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}"
always-embed
/>
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
</view>
</block>
<view class="goods total-box">
<view>总价</view>
<view class="total">¥{{orderInfo.total || 0}}</view>
</view>
</view>
</block>
</van-collapse-item>
</view>
</van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
</view> </view>
<goods
show="{{ goodsBox }}"
bindconfirm="chooseGoods"
goodsData="{{ quotationGoodsList }}"
chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"
/>
\ No newline at end of file \ No newline at end of file
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
\ No newline at end of file \ No newline at end of file
...@@ -43,7 +43,8 @@ Page({ ...@@ -43,7 +43,8 @@ Page({
// }, // },
orderInfo: { orderInfo: {
mode: 1, mode: 1,
insurancePrice: '' insurancePrice: '',
vdQuotationGoodsList:[]
// 0-商业,1-交强,2-车船,3-增值车损,4-other 对应下面字段名字 // 0-商业,1-交强,2-车船,3-增值车损,4-other 对应下面字段名字
// owner // owner
// business: { // business: {
......
...@@ -151,8 +151,11 @@ Component({ ...@@ -151,8 +151,11 @@ Component({
...res.data, ...res.data,
todayTurnover: res.data.todayTurnover ? ((res.data.todayTurnover / 100).toFixed(2) + '').split('.')[0] : '0', todayTurnover: res.data.todayTurnover ? ((res.data.todayTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
todayTurDecimal: res.data.todayTurnover ? ((res.data.todayTurnover / 100).toFixed(2) + '').split('.')[1] : '00', todayTurDecimal: res.data.todayTurnover ? ((res.data.todayTurnover / 100).toFixed(2) + '').split('.')[1] : '00',
totalTurnover: res.data.totalTurnover ? ((res.data.totalTurnover / 100).toFixed(2) + '').split('.')[0] : '0', // totalTurnover: res.data.totalTurnover ? (Math.round()(res.data.totalTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
totalTurDecimal: res.data.totalTurnover ? ((res.data.totalTurnover / 100).toFixed(2) + '').split('.')[1] : '00' totalTurnover: res.data.totalTurnover ? Math.round(res.data.totalTurnover / 100):'0',
totalTurDecimal: res.data.totalTurnover ? ((res.data.totalTurnover / 100).toFixed(2) + '').split('.')[1] : '00',
monthTurnover: res.data.monthTurnover ? ((res.data.monthTurnover / 100).toFixed(2) + '').split('.')[0] : '0',
monthTurDecimal: res.data.monthTurnover ? ((res.data.monthTurnover / 100).toFixed(2) + '').split('.')[1] : '00'
} : } :
{} {}
if (code == '0') { if (code == '0') {
......
...@@ -14,12 +14,25 @@ ...@@ -14,12 +14,25 @@
</view> </view>
</view> </view>
<view class="line" /> <view class="line" />
<view class="right left box">
<view class="label">本月营业额</view>
<view class="num item">
<view class="labelStr">¥</view>
<view class="company">{{statisticsObj.monthTurnover || 0}}</view>
<view class="decimal">.{{statisticsObj.monthTurDecimal}}</view>
</view>
<view class="count num">
本月成交量
<view class="countNum">{{statisticsObj.monthOrderNumber || 0}}</view>
</view>
</view>
<view class="line" />
<view class="right box"> <view class="right box">
<view class="label">累计营业额</view> <view class="label">累计营业额</view>
<view class="num item"> <view class="num item">
<view class="labelStr">¥</view> <view class="labelStr">¥</view>
<view class="company">{{statisticsObj.totalTurnover || 0}}</view> <view class="company">{{statisticsObj.totalTurnover || 0}}</view>
<view class="decimal">.{{statisticsObj.totalTurDecimal}}</view> <!-- <view class="decimal">.{{statisticsObj.totalTurDecimal}}</view> -->
</view> </view>
<view class="count num"> <view class="count num">
累计成交量 累计成交量
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
padding: 32rpx 40rpx; padding: 32rpx 40rpx;
background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg.png'); background-image: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/headerBg.png');
background-size: 100% 100%; background-size: 100% 100%;
font-size: 24rpx; font-size: 22rpx;
color: #FFFFFF; color: #FFFFFF;
} }
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
.headerBar .totalCount .num { .headerBar .totalCount .num {
display: flex; display: flex;
align-items: baseline; align-items: baseline;
line-height: 22rpx; line-height: 20rpx;
} }
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
} }
.headerBar .totalCount .company { .headerBar .totalCount .company {
font-size: 48rpx; font-size: 36rpx;
font-weight: 600; font-weight: 600;
} }
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
} }
.headerBar .totalCount .countNum { .headerBar .totalCount .countNum {
font-size: 34rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
margin-left: 15rpx; margin-left: 15rpx;
} }
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
} }
.headerBar .totalCount .right { .headerBar .totalCount .right {
width: 260rpx;
margin-left: 40rpx; margin-left: 40rpx;
} }
......
...@@ -43,6 +43,6 @@ ...@@ -43,6 +43,6 @@
}, },
"libVersion": "2.18.1", "libVersion": "2.18.1",
"setting": { "setting": {
"urlCheck": true "urlCheck": false
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -19,7 +19,8 @@ export const STORAGE_OBJECTkEY = { ...@@ -19,7 +19,8 @@ export const STORAGE_OBJECTkEY = {
fileList: 'fileList', fileList: 'fileList',
posterId: 'posterId', posterId: 'posterId',
noSignInUuid: 'noSignInUuid', noSignInUuid: 'noSignInUuid',
outTradeNo: 'outTradeNo' outTradeNo: 'outTradeNo',
crowdFundingParams: 'crowdFundingParams'
} }
// export const IMG_VERSION = () => { // export const IMG_VERSION = () => {
......
...@@ -57,7 +57,7 @@ const scrmSecretKey_items = { ...@@ -57,7 +57,7 @@ const scrmSecretKey_items = {
const domain_items = { const domain_items = {
ip: { ip: {
// dj: 'http://192.168.1.165:8292', // dj: 'http://192.168.1.165:8292',
dj: 'http://192.168.1.170: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.174:8292',//范富荣 // dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.203:8292',//周杭 // dj: 'http://192.168.1.203:8292',//周杭
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!