Commit 9fefbd7b by 前端

Merge branch 'develop' into 'master'

Develop

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