Commit 986a946b by 张立顺

Merge branch 'SAAS+V4.53.1-0610' of http://192.168.3.233:8090/saas_plus/dj-car-b…

…outique-work-wechat into SAAS+V4.53.1-0610
2 parents f37dc03b 5b6bd334
......@@ -6,6 +6,7 @@
bottom: 0;
right: 0;
z-index: 998;
transform: translateZ(2px);
}
.popup-bg {
......
......@@ -10,9 +10,7 @@ Component({
},
show: {
type: Boolean,
observer: function () {
}
observer: function (n) { }
},
goodsData: {
type: Object,
......@@ -28,7 +26,16 @@ Component({
},
},
},
observers: {
'show': function (value, old) {
console.log(value, old, 'show');
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
scrollDisabled: value
})
}
},
/**
* 组件的初始数据
*/
......@@ -100,8 +107,13 @@ Component({
if (value < 1) value = 1
if (value > 999) value = 999
goodsData.multipleSpecificationsGoods.skuGoodsList[index].count = value
// this.setData({
// // goodsData
// })
},
blur() {
this.setData({
goodsData
goodsData: this.data.goodsData
})
},
getChooseList() {
......@@ -139,7 +151,7 @@ Component({
c.multipleSpecificationsGoods.goods.price = c.multipleSpecificationsGoods.goods.sellPrice || 0
if (chooseGoodsList.length > 0) {
chooseGoodsList.map(x => {
if (x.goodsFlag == 2&&x.multipleSpecificationsGoods) {
if (x.goodsFlag == 2 && x.multipleSpecificationsGoods) {
console.log(x.multipleSpecificationsGoods.goods && x.multipleSpecificationsGoods.goods.goodsId == c.multipleSpecificationsGoods.goods.goodsId, 'x.multipleSpecificationsGoods.goods && x.multipleSpecificationsGoods.goods.goodsId == c.multipleSpecificationsGoods.goods.goodsId')
if (x.multipleSpecificationsGoods.goods && x.multipleSpecificationsGoods.goods.goodsId == c.multipleSpecificationsGoods.goods.goodsId) {
console.log(c)
......@@ -198,5 +210,14 @@ Component({
show: false
})
},
},
lifetimes: {
attached() {
console.log(77777)
this.setData({
windowHight: wx.getSystemInfoSync().windowHeight
})
}
}
})
\ No newline at end of file
/* packageEquity/pages/carQuotation/components/skuGoods/Goods.wxss */
.title {
width: 100%;
font-weight: 500;
......@@ -120,6 +121,7 @@
background: #FFFFFF;
border: 2rpx solid #EFF0F2;
border-radius: 12rpx;
text-align: center;
}
.popup-footer {
display: flex;
......
<van-popup custom-style="min-height: 280px;width:var(--fontSize686);" round z-index="999999" custom-class="popclass" bind:click-overlay="closeMenu" bind:before-enter="hideTabBar" bind:after-leave="showTabBar" show="{{ show }}">
<van-popup lock-scroll catchtouchmove="noScroll" custom-style="min-height: 280px;width:var(--fontSize686);" round z-index="999999" custom-class="popclass" bind:click-overlay="closeMenu" bind:before-enter="hideTabBar" bind:after-leave="showTabBar" show="{{ show }}">
<view class="title">确认需购买的商品</view>
<view class="tips">温馨提示:请根据实际需求选择正确的价格方案</view>
<view class="goods">
<view class="item-wrap {{i.active?'active':''}}" wx:for="{{goodsData.multipleSpecificationsGoods.skuGoodsList}}" wx:key="ind" wx:for-index="index" wx:for-item="i">
<view class="icon" catchtap="choose" data-index="{{index}}" data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="./images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view>
<view class="value">
<view class="alias" wx:if="{{i.goodsAlias}}">
商品别名:{{i.goodsAlias}}
<view class="tips">温馨提示:请仔细确认当前售价,避免录错单</view>
<view class="goods" catchtouchmove="noScroll">
<scroll-view scroll-y style="height:350px;">
<view class="item-wrap {{i.active?'active':''}}" wx:for="{{goodsData.multipleSpecificationsGoods.skuGoodsList}}" wx:key="ind" wx:for-index="index" wx:for-item="i">
<view class="icon" catchtap="choose" data-index="{{index}}" data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="./images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view>
<view class="value">
<view class="alias" wx:if="{{i.goodsAlias}}">
商品别名:{{i.goodsAlias}}
</view>
<view class="bottom_box">
<view class="left">
<view class="name">{{goodsData.multipleSpecificationsGoods.baseGoodsName}}</view>
<view class="position" wx:if="{{ i.specificationStr }}">{{i.specificationStr}}</view>
</view>
<view class="right">
<view class="price-box">
<text>¥</text>
<view class="price">
<!-- {{i}} -->
{{i.sellPrice}}
</view>
</view>
<view style="display:flex;align-items: center;" wx:if="{{i.active&&sceneType==1}}">x <input type="number" catchtap="noScroll" class="input" value="{{i.count || 1}}" catchinput="input" bindblur="blur" data-index="{{index}}" data-item="{{i}}" /></view>
<view class="count" catchtap="showPopup" wx:else data-show-name="goodsBox">x{{i.count||1}}</view>
</view>
</view>
</view>
<view class="bottom_box">
<view class="left">
<view class="name">{{goodsData.multipleSpecificationsGoods.baseGoodsName}}</view>
<view class="position" wx:if="{{ i.specificationStr }}">{{i.specificationStr}}</view>
</view>
<view class="right">
<view class="price-box">
<text>¥</text>
<view class="price">
<!-- {{i}} -->
{{i.sellPrice}}
</view>
</view>
<view style="display:flex;align-items: center;" wx:if="{{i.active&&sceneType==1}}" >x <input type="number" catchtap="noScroll"class="input" value="{{i.count || 1}}" catchinput="input" data-index="{{index}}" data-item="{{i}}" /></view>
<view class="count" catchtap="showPopup" wx:else data-show-name="goodsBox">x{{i.count||1}}</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="cancel btn text-center" bind:tap="hidePopup">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认</view>
</view>
<view class="cancel btn text-center" bind:tap="hidePopup">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认</view>
</view>
</van-popup>
\ No newline at end of file
......@@ -12,6 +12,7 @@
width: 100%;
color: #347BFF;
font-size: var(--fontSize24);
/* z-index: 1; */
}
.tipsIcon {
......
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 0;
let index = 2;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -54,7 +54,8 @@ Component({
// startTime: `2024-04-23 00:00:00`,
// endTime: `2024-04-23 23:59:59`
startTime: `${today} 00:00:00`,
endTime: `${today} 23:59:59`
endTime: `${today} 23:59:59`,
bussinessType: 1, //"业务类型 1.延保 2.轻改"
})
let list = data?.list || []
list?.length && list.map(e => {
......
......@@ -13,6 +13,11 @@ Component({
keyWord: '',
strTemp: ''
})
if (this.data.chooseGoodsList.length == 0) {
this.setData({
isFlag: true
})
}
// this.getOrderBaseGoodsList(n)
let thisPage = wx.$router.getPageInstance()
thisPage.getQuotationInfo(true)
......@@ -33,6 +38,8 @@ Component({
type: Array,
observer: function (n) {
console.log(n, 'chooseGoodsList');
// wx.showLoading('请求中...')
this.setGoodsActive()
}
},
......@@ -45,6 +52,7 @@ Component({
* 组件的初始数据
*/
data: {
isFlag: false,
goodsList: [],
recordList: [],
specificBox: false
......@@ -105,7 +113,7 @@ Component({
goodsList[index].multipleSpecificationsGoods.skuGoodsList = []
if (goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]) {
let goodsArr = goodsList[index].multipleSpecificationsGoods.specificationGoodsMap[str]
//当多规格商品只有一个时,直接选中
//当多规格商品只有一个时,直接选中
if (goodsArr.length == 1) {
goodsList[index].active = true
goodsList[index].multipleSpecificationsGoods.goods = goodsArr[0]
......@@ -260,6 +268,7 @@ Component({
} = this.data
this.setData({
goodsList: goodsData,
isFlag: false
})
this.setGoodsActive()
},
......@@ -271,6 +280,8 @@ Component({
show
} = this.data
if (show) {
wx.$util.showLoading()
console.log(222222)
if (chooseGoodsList.length == 0) {
goodsList.forEach(e => {
e.active = false
......@@ -332,7 +343,10 @@ Component({
}
this.setData({
goodsList,
recordList
recordList,
isFlag: true
}, () => {
wx.hideLoading()
})
}
......@@ -573,7 +587,8 @@ Component({
})
this.setData({
show: false
show: false,
isFlag: false
})
}
}
......
......@@ -10,6 +10,7 @@
<!-- <text class="tips">|建议价</text>
</view> -->
<view class="box">
<block wx:if="{{isFlag}}">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item-wrap">
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
......@@ -82,6 +83,8 @@
</view>
</block>
</block>
</view>
<!-- </block> -->
</block>
......
......@@ -276,11 +276,12 @@
position: relative;
color: #222222;
}
.goods-box .goods{
display: flex;
.goods-box .goods {
display: flex;
align-items: center;
justify-content: space-between;
min-height: var(--fontSize118);
justify-content: space-between;
min-height: var(--fontSize118);
border-bottom: var(--fontSize2) solid rgba(195, 195, 195, .3);
padding: 20rpx var(--fontSize28) 20rpx var(--fontSize90);
font-size: var(--fontSize28);
......@@ -320,7 +321,20 @@
position: relative;
margin-right: var(--fontSize32);
margin-left: auto;
min-width:160rpx;
min-width: 160rpx;
}
.price-box-Modify {
display: flex;
align-items: center;
justify-content: flex-end;
font-weight: 400;
font-size: 28rpx;
color: #333333;
width: var(--fontSize240);
min-width: 160rpx;
height: var(--fontSize64);
margin-right: var(--fontSize32);
}
.goods-box .goods .price-box text {
......@@ -557,20 +571,24 @@
display: block;
}
.alias{
.alias {
font-size: 12px;
color: #222222!important;
color: #222222 !important;
}
.bottom_box{
.bottom_box {
display: flex;
align-items: center;
justify-content: space-between;
}
.bottom_box .position {
.bottom_box .position {
color: #888888;
}
.bottom_box .right{
display: flex;
.bottom_box .right {
display: flex;
align-items: center;
justify-content: space-between;
}
\ No newline at end of file
......@@ -27,7 +27,14 @@
{{item.goods.goodsAlias || item.goods.goodsNameAlias|| filter.replaceItemText(item.goods.upgradeGoodsName ,( item.goods.specificationData? '/'+item.goods.specificationData:'')) || filter.replaceItemText(item.goods.goodsName, (item.goods.specificationData? '/'+item.goods.specificationData:''))}}
<!-- {{filter.replaceItemText(item.goods.goodsAlias) ||filter.replaceItemText(item.goods.upgradeGoodsName) || filter.replaceItemText(item.goods.goodsName)}} -->
</view>
<view class="price-box">
<!-- goodsPriceModify:true 价格不可以修改,false价格可以修改 -->
<view class="price-box-Modify" wx:if="{{item.goods.goodsPriceModify}}">
<text>¥</text>
<view class="price">
{{ item.goods.price}}
</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input type="digit" value="{{ item.goods.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0||item.goods.goodsPriceModify }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
......@@ -48,9 +55,16 @@
<view class="packageBox">
<view class="itemSty" wx:for="{{ item.packageGoods.goodsList }}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="name ">{{child.goodsAlias || child.goodsNameAlias || filter.replaceItemText(child.upgradeGoodsName , (item.specificationData? '/'+child.specificationData: '') ) ||filter.replaceItemText(child.goodsName ,( item.specificationData? '/'+child.specificationData: '') ) }}</view>
<view class="price-box">
<view class="price-box-Modify" wx:if="{{child.goodsPriceModify}}">
<text>¥</text>
<view class="price">
{{ child.price}}
</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input type="digit" value="{{ child.price }}" bindinput="changePricePackage" disabled="{{ orderObj.selectPayType ==0 ||child.goodsPriceModify}}" data-childind="{{ childind }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ child.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
</view>
......@@ -64,8 +78,8 @@
<image src="./images/del.png" />
</view>
<view class="goods-content" >
<view class="alias" wx:if="{{item.multipleSpecificationsGoods.goods.goodsAlias}}" >
<view class="goods-content">
<view class="alias" wx:if="{{item.multipleSpecificationsGoods.goods.goodsAlias}}">
商品别名:{{item.multipleSpecificationsGoods.goods.goodsAlias}}
</view>
<view class="bottom_box">
......@@ -74,12 +88,19 @@
<view class="position" wx:if="{{ item.multipleSpecificationsGoods.goods.specificationStr }}">{{item.multipleSpecificationsGoods.goods.specificationStr}}</view>
</view>
<view class="right">
<view class="price-box">
<view class="price-box-Modify" wx:if="{{item.multipleSpecificationsGoods.goods.goodsPriceModify}}">
<text>¥</text>
<view class="price">
{{ item.multipleSpecificationsGoods.goods.price}}
</view>
</view>
<view class="price-box" wx:else>
<text>¥</text>
<view class="price">
<input type="digit" value="{{item.multipleSpecificationsGoods.goods.price}}" bindinput="changeSpecific" disabled="{{ orderObj.selectPayType ==0||item.multipleSpecificationsGoods.goods.goodsPriceModify }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.multipleSpecificationsGoods.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
</view>
</view>
......@@ -150,6 +171,6 @@
</van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
</view>
<goods show="{{ goodsBox }}" wx:if="{{goodsBox}}" bindconfirm="chooseGoods" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
<sku-goods show="{{ skuGoodsBox }}" wx:if="{{skuGoodsBox}}" sceneType="0" goodsData="{{ skuGoodsData }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"></sku-goods>
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
<sku-goods show="{{ skuGoodsBox }}" wx:if="{{skuGoodsBox}}" sceneType="0" goodsData="{{ skuGoodsData }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"></sku-goods>
<date-select show="{{ showDateSelect }}" bind:close="closeDateModal" selectPay="{{orderInfo.payType}}" bind:confirm="onChanteSuccessDate"></date-select>
\ No newline at end of file
......@@ -28,6 +28,7 @@ Page({
* 页面的初始数据
*/
data: {
scrollDisabled: false,
tipsProps: {
tipsText: "该门店产生异常订单,请点击补录!",
showTips: true,
......@@ -377,8 +378,8 @@ Page({
zyConfirmFlag: true
})
getQuotationInfoById({
id: supplementaryOrderId
})
id: supplementaryOrderId
})
.then(res => {
let {
code,
......@@ -405,8 +406,8 @@ Page({
}).then(result => {
wx.hideLoading()
this.setData({
showZyPopup: false
},
showZyPopup: false
},
() => {
wx.showToast({
title: '补录订单成功',
......@@ -444,11 +445,11 @@ Page({
// let { userInfo } = this.data
return new Promise((resolve, reject) => {
staffDailyReportMerchantValid({
merchantId: userInfo.shopMerchantId,
yqMerchantId: userInfo.merchantId,
staffUuid: userInfo.uuid,
sceneType: 0
})
merchantId: userInfo.shopMerchantId,
yqMerchantId: userInfo.merchantId,
staffUuid: userInfo.uuid,
sceneType: 0
})
.then(res => {
// console.log(res, 'staffDailyReportMerchantValid')
// 需要填写日报
......@@ -724,8 +725,8 @@ Page({
owner = wx.$util.deepClone(owner)
owner.price =
parseFloat(owner?.price).toString() != 'NaN' ?
this.multipliedByHundred(owner?.price) :
''
this.multipliedByHundred(owner?.price) :
''
// orderInfo.owner = owner
if (owner) {
delete owner?.buyCarTime
......@@ -848,8 +849,8 @@ Page({
// 先写死调试
getQuotationInfoById({
id
})
id
})
.then(result => {
console.log('result22222222222', result)
let {
......@@ -906,8 +907,8 @@ Page({
minSellPrice: quotationGoodsList
?.find(
val =>
val.packageGoods?.goodsList?.length &&
val.packageGoods?.packageCode == item?.packageId
val.packageGoods?.goodsList?.length &&
val.packageGoods?.packageCode == item?.packageId
)
?.packageGoods?.goodsList?.find(
subV => subV.merchantGoodsId == item.goodsId
......@@ -915,8 +916,8 @@ Page({
validMinSellPrice: quotationGoodsList
?.find(
val =>
val.packageGoods?.goodsList?.length &&
val.packageGoods?.packageCode == item?.packageId
val.packageGoods?.goodsList?.length &&
val.packageGoods?.packageCode == item?.packageId
)
?.packageGoods?.goodsList?.find(
subV => subV.merchantGoodsId == item.goodsId
......@@ -949,7 +950,7 @@ Page({
//多规格商品
if (!item.packageName && item.specificationsValue) {
let specificdata = this.handleSpecificationsEcho(item)
pre= pre.concat(specificdata)
pre = pre.concat(specificdata)
}
// item.price =
......@@ -982,35 +983,41 @@ Page({
orderInfo.vdQuotationGoodsList.length && this.totalFee()
}
})
.catch(err => {})
.catch(err => { })
},
handleSpecificationsEcho(item) {
console.log('item', item)
let {
quotationGoodsList
} = this.data, skuArr = [],
arr = item.specificationsValue.split('/'),
str = arr.join(';~;'),
obj = {
goodsFlag: 2,
goods: null,
};
str = arr.join(';~;');
quotationGoodsList.forEach(data => {
if (data.goodsFlag == 2) {
let tempData = data.multipleSpecificationsGoods.specificationGoodsMap[str]
if (tempData) {
tempData.forEach(temp => {
if (temp.merchantGoodsId == item.goodsId) {
let obj = {
goodsFlag: 2,
goods: null,
}
obj.multipleSpecificationsGoods = {
goods: temp,
baseGoodsName: item.goodsName
}
temp.price = this.divideByHundred(item.goodsPrice)
temp.goodsId = item.goodsId
temp.specificationStr = item.specificationsValue
data.multipleSpecificationsGoods.goods = temp
data.multipleSpecificationsGoods.baseGoodsName = item.goodsName
data.multipleSpecificationsGoods.specificationList.forEach((value, index) => {
value.value = arr[index]
})
obj.multipleSpecificationsGoods = data.multipleSpecificationsGoods
// data.multipleSpecificationsGoods.goods = temp
// data.multipleSpecificationsGoods.baseGoodsName = item.goodsName
// data.multipleSpecificationsGoods.specificationList.forEach((value, index) => {
// value.value = arr[index]
// })
// obj.multipleSpecificationsGoods = data.multipleSpecificationsGoods
console.log('🚀', obj)
skuArr.push(obj)
}
})
......@@ -1182,11 +1189,11 @@ Page({
wx.$util.showLoading('加载中...')
// debugger
getSelectOrderGoodsList({
merchantId: default4SStoreInfo.merchantId,
suitCarPrice: price ? parseFloat((price / 10000).toFixed(6)) : '',
seriesId: carSeriesId,
sceneType: 0
})
merchantId: default4SStoreInfo.merchantId,
suitCarPrice: price ? parseFloat((price / 10000).toFixed(6)) : '',
seriesId: carSeriesId,
sceneType: 0
})
.then(result => {
// debugger
......@@ -1245,12 +1252,12 @@ Page({
;
(item.specificationNameSequence =
item.specificationTypeSequence && item.specificationNameSequence ?
item.specificationNameSequence.replace(/;~;/g, '/') :
''),
(item.specificationData =
item.specificationTypeSequence && item.specificationData ?
item.specificationData.replace(/;~;/g, '/') :
'')
item.specificationNameSequence.replace(/;~;/g, '/') :
''),
(item.specificationData =
item.specificationTypeSequence && item.specificationData ?
item.specificationData.replace(/;~;/g, '/') :
'')
return item
})
ele.packageGoods.sellPrice = item.goodsList.reduce((pre, item) => {
......@@ -1367,7 +1374,7 @@ Page({
navBarHeight
})
},
init() {},
init() { },
onRoute(options) {
console.log(options, 'options')
// options.id = 9047
......@@ -1560,17 +1567,17 @@ Page({
requiredAfter: true
}
formRule.carVin = [{
required: true,
message: '车架号不能为空'
},
{
validator: (rule, value) => {
return value.length != 17 ? {
message: '请输入正确的17位车架号'
} :
null
}
required: true,
message: '车架号不能为空'
},
{
validator: (rule, value) => {
return value.length != 17 ? {
message: '请输入正确的17位车架号'
} :
null
}
}
]
}
if (required.includes('idNumber')) {
......@@ -1584,19 +1591,19 @@ Page({
requiredAfter: true
}
formRule.certificateNo = [{
required: true,
message: '证件号码不能为空'
},
{
validator: (rule, value) => {
if (value) {
return value.length != 18 ? {
message: '请输入正确的18位证件号'
} :
null
}
required: true,
message: '证件号码不能为空'
},
{
validator: (rule, value) => {
if (value) {
return value.length != 18 ? {
message: '请输入正确的18位证件号'
} :
null
}
}
}
]
}
console.log(first, formRule, 'firstData')
......@@ -1606,7 +1613,7 @@ Page({
})
}
})
.catch(err => {})
.catch(err => { })
},
setTime() {
let _this = this;
......@@ -1625,25 +1632,30 @@ Page({
time && clearTimeout(time); //解决切换门店时 需要清除计时器
// if (isStaff) {
waitinputorder().then((result) => {
console.log(result, 'getWaitOrder')
let {
code,
data
} = result;
this.setTime();
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount,
});
}
})
.catch((err) => {});
console.log(result, 'getWaitOrder')
let {
code,
data
} = result;
this.setTime();
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount,
});
}
})
.catch((err) => { });
// }
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
/*获取屏幕高度*/
this.setData({
windowHeight: wx.getSystemInfoSync().windowHeight
})
const that = this
wx.$eventbus.on('set_car_info', res => {
that.setData({
......@@ -1659,7 +1671,7 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
onReady() { },
/**
* 生命周期函数--监听页面显示
*/
......@@ -1683,13 +1695,13 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
onPullDownRefresh() { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
onReachBottom() { },
/**
* 用户点击右上角分享
*/
onShareAppMessage() {}
onShareAppMessage() { }
})
\ No newline at end of file
......@@ -11,6 +11,11 @@ page {
/* min-height: 100vh; */
}
.scroll-disabled {
height: 100vh;
overflow: hidden;
}
.navigation-title {
display: flex;
align-items: center;
......@@ -43,7 +48,7 @@ page {
display: flex;
flex-direction: column;
/* height: calc(100vh - 50px); */
overflow: scroll;
// overflow: scroll;
}
.btns {
......@@ -171,6 +176,7 @@ page {
// background: #EFF5FE;
background-color: #fff;
z-index: 9;
transform: translateZ(1px);
&.showTips {
bottom: 0rpx;
......
<!-- packageEquity/pages/carEquity/serviceInfo/serviceInfo.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- <scroll-view class="container" scroll-y style="height:{{windowHeight}}px"> -->
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<view class="navigation-title">
<view class="navigation-title-text text-hide">
......@@ -7,7 +8,8 @@
</view>
</view>
</navigation-bar>
<view class="layout {{(showTips||waitInputCount)?'fullSucreen-tips':'' }} " style="padding-top:{{ navBarHeight }}px;">
<!-- {{scrollDisabled? "": height:{{windowHeight}}px}} -->
<view class="layout {{(showTips||waitInputCount)?'fullSucreen-tips':'' }} {{scrollDisabled?'scroll-disabled':''}}" style="padding-top:{{ navBarHeight }}px; ">
<first-step id="FirstStep" serviceInfo="{{ owner }}" dataAttrName="{{ dataAttrName }}" orderInfo="{{ orderInfo }}" subBtnShow="{{ false }}" mode="{{mode}}" />
<second-step id="SecondStep" orderInfo="{{ orderInfo }}" quotationGoodsList="{{ quotationGoodsList }}" bindconfirm="handleSecondConfirm" bindeditSave="handleEditSave" />
</view>
......@@ -29,6 +31,7 @@
<!-- <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> -->
</view>
</view>
<!-- </scroll-view> -->
<view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !orderInfo.resetOrder && !isErrorOrder&&!outTradeNo }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view>
......
......@@ -530,7 +530,7 @@ swiper{
position: sticky;
top: var(--fontSize168);
left: 0;
z-index: 1000;
z-index: 100;
}
.date {
flex-shrink: 0;
......
......@@ -52,22 +52,22 @@ Page({
phoneShow: false,
customerInfoBox: false,
payTypeList: [{
name: "门店收款",
value: 2,
},
{
name: "POS机",
value: 3,
},
{
name: '嘀加收款',
value: 5
},
{
name: "微信支付",
value: 1,
imgurl: "../../images/wxPayIcon.png",
},
name: "门店收款",
value: 2,
},
{
name: "POS机",
value: 3,
},
{
name: '嘀加收款',
value: 5
},
{
name: "微信支付",
value: 1,
imgurl: "../../images/wxPayIcon.png",
},
],
showPayList: [],
payeeList: [{
......@@ -124,13 +124,13 @@ Page({
baseConfigData: {},
showSource: false,
Sourcecolumns: [{
type: 0,
name: "售前",
},
{
type: 1,
name: "售后",
},
type: 0,
name: "售前",
},
{
type: 1,
name: "售后",
},
],
packageBox: false,
skuGoodsBox: false,
......@@ -138,103 +138,7 @@ Page({
merchantPayList: [], // 门店收款方对应支付方式
configPayTypeList: [], // 园区店配置支持的支付方式
recordOrderFlag: true, // 补录订单入口标识
skuGoodsData: {
active: true,
count: 1,
goods: null,
goodsFlag: 2,
isFlag: true,
multipleSpecificationsGoods: {
skuGoodsList: [{
count: 1,
active: true,
errorTarget: false,
goodsAlias: "别名001",
goodsId: 15961,
lastOnShelfTime: 1747903884000,
maxSuitCarPrice: null,
merchantGoodsCode: "MG2025052215304361811",
merchantGoodsId: 15961,
merchantGoodsPosition: null,
minSellPrice: 1,
minSuitCarPrice: null,
position: null,
price: 4,
sellPrice: 4,
specificationData: "111111111;~;红色;~;超大大大;~;烦躁",
specificationNameSequence: "型号;~;颜色;~;规格;~;上班",
specificationStr: "111111111/红色/超大大大/烦躁",
specificationTypeSequence: "0;~;0;~;0;~;0",
upgradeGoodsAlias: null,
upgradeGoodsId: 6119,
upgradeGoodsName: "0522ymt其他精品002",
upgradeGoodsPosition: null,
upgradeGoodsServiceItemsList: null,
upgradeGoodsType: null,
upgradeGoodsTypeName: null,
validMinSellPrice: "N"
}, {
count: 1,
errorTarget: false,
goodsAlias: "别名001",
goodsId: 15969,
lastOnShelfTime: 1747903884000,
maxSuitCarPrice: null,
merchantGoodsCode: "MG2025052215304361811",
merchantGoodsId: 15961,
merchantGoodsPosition: null,
minSellPrice: 1,
minSuitCarPrice: null,
position: null,
price: 4,
sellPrice: 4,
specificationData: "111111111;~;红色;~;超大大大;~;烦躁",
specificationNameSequence: "型号;~;颜色;~;规格;~;上班",
specificationStr: "111111111/红色/超大大大/烦躁",
specificationTypeSequence: "0;~;0;~;0;~;0",
upgradeGoodsAlias: null,
upgradeGoodsId: 6119,
upgradeGoodsName: "0522ymt其他精品002",
upgradeGoodsPosition: null,
upgradeGoodsServiceItemsList: null,
upgradeGoodsType: null,
upgradeGoodsTypeName: null,
validMinSellPrice: "N"
},
{
count: 1,
active: true,
errorTarget: false,
goodsAlias: "别名001",
goodsId: 15960,
lastOnShelfTime: 1747903884000,
maxSuitCarPrice: null,
merchantGoodsCode: "MG2025052215304361811",
merchantGoodsId: 15961,
merchantGoodsPosition: null,
minSellPrice: 1,
minSuitCarPrice: null,
position: null,
price: 4,
sellPrice: 4,
specificationData: "111111111;~;红色;~;超大大大;~;烦躁",
specificationNameSequence: "型号;~;颜色;~;规格;~;上班",
specificationStr: "111111111/红色/超大大大/烦躁",
specificationTypeSequence: "0;~;0;~;0;~;0",
upgradeGoodsAlias: null,
upgradeGoodsId: 6119,
upgradeGoodsName: "0522ymt其他精品002",
upgradeGoodsPosition: null,
upgradeGoodsServiceItemsList: null,
upgradeGoodsType: null,
upgradeGoodsTypeName: null,
validMinSellPrice: "N"
}
],
baseGoodsName: '太阳膜'
},
packageGoods: null
}, //多规格商品数据
skuGoodsData: {}, //多规格商品数据
},
closeTips() {
this.setData({
......@@ -349,6 +253,7 @@ Page({
wx.$router.go(`ocr?type=${type}`);
},
showPopup(e) {
console.log(e)
let {
copyGoodsData,
packageList,
......@@ -575,8 +480,8 @@ Page({
goodsList[index].totalPrice = wx.$util.decimal(total, 2);
this.setData({
goodsList,
},
goodsList,
},
() => {
this.setGoodsTotal(goodsList);
}
......@@ -858,10 +763,10 @@ Page({
// return
let apiName =
save && !isErrorOrder ?
"createPrerecordedOrder" :
isErrorOrder ?
"correctionOrder" :
"createWithPay";
"createPrerecordedOrder" :
isErrorOrder ?
"correctionOrder" :
"createWithPay";
apiName = orderCreateType == 'additionRecordOrder' ? 'supplementOrder' : apiName
// 太阳膜下单入口
submitObj.filmOrder = 0;
......@@ -1177,6 +1082,11 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
/*获取屏幕高度*/
this.setData({
windowHeight: wx.getSystemInfoSync().windowHeight
})
// console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting?.yqPhoneConfig')
console.log(options, 'options');
if (options.scene) {
......@@ -1305,7 +1215,7 @@ Page({
message
} = result;
if (code == 0) {
console.log('data', data)
data.forEach(val => {
//单商品
if (val.goodsFlag == 1) {
......@@ -1370,6 +1280,8 @@ Page({
otherProduct.push(val)
}
})
console.log('otherProduct', otherProduct)
console.log('frontGearArr', frontGearArr)
this.setData({
goodsData: data,
copyGoodsData: data,
......@@ -1624,7 +1536,7 @@ Page({
e.count = e.number;
e.merchantGoodsId = e.merchantGoodsId || e.id;
let specificdata = this.handleSpecificationsEcho(e)
chooseList= chooseList.concat(specificdata)
chooseList = chooseList.concat(specificdata)
}
}
});
......@@ -1854,21 +1766,21 @@ Page({
// isStaff &&
// console.log(isErrorOrder, isAlreadyExistOrder);
!(isErrorOrder || isAlreadyExistOrder) &&
api
.waitinputorder()
.then((result) => {
let {
code,
data
} = result;
this.setTime();
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount,
});
}
})
.catch((err) => {});
api
.waitinputorder()
.then((result) => {
let {
code,
data
} = result;
this.setTime();
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount,
});
}
})
.catch((err) => { });
},
async onRoute(res) {
// debugger
......@@ -1997,8 +1909,8 @@ Page({
} else {
wx.$util.showLoading("加载中...");
this.setData({
flag: true,
},
flag: true,
},
() => {
wx.$util.hideLoading();
}
......@@ -2056,15 +1968,15 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {},
onPullDownRefresh: function () { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {},
onReachBottom: function () { },
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {},
onShareAppMessage: function () { },
});
\ No newline at end of file
<wxs src="../../index.wxs" module="filter" />
<block wx:if="{{ flag }}">
<!-- <scroll-view class="container" scroll-y style="height:{{windowHeight}}px"> -->
<!-- {{ isFullSucreen?'isFullSucreen':''}} -->
<view class="main {{ tipsProps.showTips?'fullSucreen-tips':'' }} {{showTips? 'showTips':'' }}">
<view class="box">
......@@ -150,7 +152,7 @@
<text>¥</text>
<input type="digit" value="{{ item.goods.sellPrice }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 ||item.goods.goodsPriceModify}}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="1">x{{item.count}}</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="1" data-positionnnum="1">x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
......@@ -183,7 +185,7 @@
<text>¥</text>
<input type="digit" value="{{ item.goods.sellPrice }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0||item.goods.goodsPriceModify }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2">x{{item.count}}</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="2">x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
......@@ -216,7 +218,7 @@
<text>¥</text>
<input type="digit" value="{{ item.goods.sellPrice }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 ||item.goods.goodsPriceModify}}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{item.goods.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2">x{{item.count}}</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="3" >x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
......@@ -249,7 +251,7 @@
<text>¥</text>
<input type="digit" value="{{ item.goods.sellPrice }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 ||item.goods.goodsPriceModify}}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2">x{{item.count}}</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="2" data-positionnnum="4">x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
......@@ -282,7 +284,7 @@
<text>¥</text>
<input type="digit" value="{{ item.goods.sellPrice }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0||item.goods.goodsPriceModify }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="3">x{{item.count}}</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="3" data-positionnnum="5,6,7">x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
......@@ -320,7 +322,7 @@
<text>¥</text>
<input type="digit" value="{{ g.price }}" disabled="{{g.goodsPriceModify }}" class="{{ g.errorTarget? 'error':'' }}" bindinput="changeMealPrice" data-item="{{ g }}" data-gindex="{{ gInx }}" data-index="{{ index }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="3">x{{item.count}}</view>
<view class="count" catchtap="showPopup" data-show-name="packageBox" data-type="3">x{{item.count}}</view>
</view>
</view>
</view>
......@@ -354,7 +356,7 @@
<text>¥</text>
<input type="digit" value="{{ item.goods.sellPrice }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0||item.goods.goodsPriceModify }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="4">x{{item.count}}</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="4" data-positionnnum="other">x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
......@@ -380,7 +382,7 @@
<text>¥</text>
<input type="digit" value="{{ item.multipleSpecificationsGoods.goods.sellPrice }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0||item.multipleSpecificationsGoods.goods.goodsPriceModify }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.multipleSpecificationsGoods.goods.errorTarget && (orderObj.selectPayType !=0) ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="4">x{{item.count}}</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="4" data-positionnnum="other">x{{item.count}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
......@@ -458,8 +460,9 @@
<view class="confirm text-center" bindtap="submit">直接下单</view>
</view>
</view>
<!-- </scroll-view> -->
</block>
<!-- &&!outTradeNo -->
<view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !associateOrderType && !isErrorOrder&&!outTradeNo && recordOrderFlag }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view>
......@@ -471,7 +474,7 @@
<car-brands show="{{ carBrandBox }}" bindconfirm="chooseCar" carSeriesId="{{ orderObj.customer.carSeriesId || '' }}" merchantId="{{ orderObj.merchantId || undefined }}" />
<remark-popup wx:if="{{ showRemark }}" show="{{ showRemark }}" bindconfirm="remarkConfirm" placeholder="请填写内容,最多30个字" maxlength="30" value="{{ orderObj.remark }}" />
<coupon id="coupon" show="{{ couponBox }}" class="coupon" orderCreateType="{{ orderCreateType }}" bindconfirm="chooseCoupon" merchantId="{{ orderObj.merchantId }}" customerPhone="{{ orderObj.customer.customerPhone }}" yqMerchantId="{{ orderObj.sellerMerchantId }}" selectPayType="{{ orderObj.selectPayType }}" returnFun="{{ scene }}" />
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ goodsData }}" chooseGoodsList="{{ goodsList }}" isSolarFilm="{{ true }}" baseConfigData="{{ baseConfigData }}" />
<goods show="{{ goodsBox }}" wx:if="{{goodsBox}}" bindconfirm="chooseGoods" goodsData="{{ goodsData }}" chooseGoodsList="{{ goodsList }}" isSolarFilm="{{ true }}" baseConfigData="{{ baseConfigData }}" />
<sku-goods show="{{ skuGoodsBox }}" sceneType="1" goodsData="{{ skuGoodsData }}" chooseGoodsList="{{ goodsList }}"></sku-goods>
<customerInfo show="{{ customerInfoBox }}" bindconfirm="chooseCustomerInfo" />
<van-popup show="{{ showSource }}" position="bottom" bind:close="onCloseSource">
......
......@@ -44,22 +44,22 @@
<text class="required_text"> *</text>
</view>
</view>
<picker bindchange="handlePickerChange" bindcancel="showShortcutPicker" value="{{ orderObj.pickerValue }}" range-key="name" range="{{ pickerdateList }}" disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) }}">
<picker disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) }}" bindchange="handlePickerChange" bindcancel="showShortcutPicker" value="{{ orderObj.pickerValue }}" range-key="name" range="{{ pickerdateList }}">
<view class="picker">
<image class="arrow" src="/components/images/arrow-x.png" />
<view class="text-hide">{{pickerdateList[orderObj.pickerValue]['name']}}</view>
</view>
</picker>
</view>
<!-- <view class="input-item">
<view class="input-item">
<view class="left">
<view class="label disabled">
今日成交数
今日成交金额
<text class="required_text"> *</text>
</view>
</view>
<input value="{{ orderObj.totalOrderCount }}" placeholder-class="placeholder-class" placeholder-style="{{ 'color: #D0D2D6' }};" class="content-input disabled" disabled="{{ true }}" type="{{ 'number' }}" />
</view> -->
<input value="{{ orderObj.totalOrderMoney }}" placeholder-class="placeholder-class" placeholder-style="{{ 'color: #D0D2D6' }};" class="content-input disabled" disabled="{{ true }}" type="{{ 'number' }}" />
</view>
<!-- 备注 -->
<view class="remark_box">
<view class="label">备注</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!