Commit 5b7184e8 by wangzhihui

多规格

1 parent c32e93de
......@@ -114,4 +114,28 @@
.item {
flex: 1;
}
}
.specification {
background: #F7F7F7;
border-radius: 16rpx 16rpx 0 0;
width:calc(100% - var(--fontSize80));
margin:var(--fontSize9) 0 var(--fontSize32) var(--fontSize52);
}
.picker {
display: flex;
flex-direction: row-reverse;
height: var(--fontSize80);
line-height: var(--fontSize80);
text-align: right;
}
.placeholder {
font-weight: 400;
font-size: var(--fontSize28);
color: #B6B6B8;
}
.arrow {
width: var(--fontSize28);
height: var(--fontSize26);
margin-top: var(--fontSize26);
flex-shrink: 0;
}
\ No newline at end of file
......@@ -4,40 +4,39 @@
<search-input bindsearch="searchGoods" value="{{keyWord}}" />
<scroll-view class="coupon" scroll-y>
<block wx:if="{{goodsList.length > 0}}">
<block wx:for="{{goodsList}}" wx:key="index">
<view class="title">
{{item.goodsTypeName}}
<text class="tips">|建议价</text>
</view>
<view class="box">
<view class="itemBox" wx:for="{{item.upgradeGoodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="choose" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<image src="{{filter.getImageSrc(i.active)}}" />
</view>
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<text>{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsInfo.goodsName)}}</text>
<text wx:if="{{i.merchantGoodsPosition && (i.goodsInfo.goodsType == 1 || i.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">{{'「' + i.positionStr+'」'}}</text>
<text class="warning_text" wx:if="{{!i.merchantGoodsPosition && (i.goodsInfo.goodsType == 1 || i.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</text>
</view>
<view class="last" wx:if="{{!i.active}}">
<text class="price">¥{{i.upgradePrice}}</text>
</view>
<view class="box">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item-wrap">
<view class="itemBox">
<view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<image src="{{filter.getImageSrc(i.active)}}" />
</view>
<block wx:if="{{i.active}}">
<view class="control">
<view class="minus" catchtap="addCount" data-count="{{-1}}" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
-
<!-- 单商品 -->
<block wx:if="{{i.goodsFlag==1}}">
<view class="item {{minPrice?(minPrice/100)>= i.minSellPrice ?'':'disableSelect':'' }}">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<text>{{filter.replaceItemText(i.goods.upgradeGoodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName) || filter.replaceItemText(i.goodsInfo.goodsName)}}</text>
<text wx:if="{{i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">{{'「' + i.goods.positionStr+'」'}}</text>
<text class="warning_text" wx:if="{{!i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</text>
</view>
<input type="number" catchtap="noScroll" class="input" value="{{i.count || 1}}" catchinput="input" data-index="{{index}}" data-ind="{{ind}}" />
<view class="add" catchtap="addCount" data-count="{{1}}" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
+
<view class="last" wx:if="{{!i.active}}">
<text class="price">¥{{i.goods.price}}</text>
</view>
</view>
</block>
<block wx:if="{{i.active}}">
<view class="control">
<view class="minus" catchtap="addCount" data-count="{{-1}}" data-ind="{{ind}}" data-item="{{i}}">
-
</view>
<input type="number" catchtap="noScroll" class="input" value="{{i.count || 1}}" catchinput="input" data-ind="{{ind}}" data-item="{{i}}" />
<view class="add" catchtap="addCount" data-count="{{1}}" data-ind="{{ind}}" data-item="{{i}}">
+
</view>
</view>
</block>
<!-- <view class=" choose" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<!-- <view class=" choose" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="../images/radio.png" />
</block>
......@@ -45,10 +44,53 @@
<view class="arc" />
</block>
</view> -->
</view>
</block>
<!-- 多规格 -->
<block wx:if="{{i.goodsFlag==2}}">
<view class="item {{minPrice?(minPrice/100)>= i.minSellPrice ?'':'disableSelect':'' }}">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<text>{{i.multipleSpecificationsGoods.baseGoodsName }}</text>
</view>
<view class="last" wx:if="{{!i.active}}">
<text class="price" wx:if="{{i.multipleSpecificationsGoods.goods.sellPrice}}">¥{{i.multipleSpecificationsGoods.goods.sellPrice}}</text>
</view>
</view>
<block wx:if="{{i.active}}">
<view class="control">
<view class="minus" catchtap="addCount" data-count="{{-1}}" data-ind="{{ind}}" data-item="{{i}}">
-
</view>
<input type="number" catchtap="noScroll" class="input" value="{{i.count || 1}}" catchinput="input" data-ind="{{ind}}" data-item="{{i}}" />
<view class="add" catchtap="addCount" data-count="{{1}}" data-ind="{{ind}}" data-item="{{i}}">
+
</view>
</view>
</block>
</view>
</block>
</view>
<view class="specification" wx:if="{{i.goodsFlag==2}}">
<view wx:for="{{i.multipleSpecificationsGoods.specificationList}}" wx:for-item="specific" wx:for-index="specInd">
<gl-cell border valueAlign="right" label="{{specific.specificationName}}" labelWidth="var(--fontSize180)" placeholder="请选择" bindclick="showPopup" background="#F7F7F7" data-show-name="specificBox">
<picker bindchange="handlePickerChange" data-item="{{i}}" value="{{specific.value}}" data-specIndex="{{specInd}}" data-index="{{ind}}" range="{{specific.specificationSelectValueList}}">
<view class="picker">
<image class="arrow" src="/components/images/arrow-x.png" />
<view class="text-hide" wx:if="{{specific.value}}">
{{specific.value}}
</view>
<text class="placeholder" wx:else>请选择</text>
</view>
</picker>
</gl-cell>
</view>
</view>
</view>
</view>
</block>
</block>
</view>
</block>
<block wx:else>
<view class="nothing">暂无数据</view>
......
......@@ -518,6 +518,10 @@ Component({
// oderType != 'recorder' && util.setSellerInfo({ ...this.data.orderObj, subLoginMechantId: userInfo.subLoginUser.merchantId })
thisPage.getOrderBaseGoodsList &&
thisPage.getOrderBaseGoodsList(orderObj.merchantId);
thisPage.getSelectOrderGoodsList &&
thisPage.getSelectOrderGoodsList(orderObj.merchantId);
if (type != 3) {
delete orderObj.couponName;
delete orderObj.merchantCouponId;
......
......@@ -4,7 +4,7 @@
display: flex;
align-items: center;
justify-content: center;
border-bottom: var(--fontSize2) solid #EBEDF0;
/* border-bottom: var(--fontSize2) solid #EBEDF0; */
margin: 0 var(--fontSize32);
font-size: var(--fontSize28);
}
......
......@@ -9,14 +9,22 @@ Component({
show: {
type: Boolean,
observer: function (n) {
if (n) this.getMerchantPackageGoods();
if (n) this.initPackageGoods();
},
},
chooseGoodsList: {
type: Array,
observer: function (n) {
console.log(n);
if (n) this.filterData(n);
if (n) this.filterData();
},
},
goodsData: {
type: Array,
observer: function (n) {
if (n.length > 0) {
this.getOrderBaseGoodsList(n)
this.initPackageGoods()
}
},
},
},
......@@ -25,7 +33,7 @@ Component({
* 组件的初始数据
*/
data: {
goodsData: [],
goodsList: [],
selectData: [],
matchPackageName: "",
},
......@@ -34,6 +42,11 @@ Component({
* 组件的方法列表
*/
methods: {
getOrderBaseGoodsList(data) {
this.setData({
goodsList: data,
});
},
filterData() {
let {
selectData,
......@@ -52,14 +65,14 @@ Component({
},
choose(e) {
let {
goodsData
goodsList
} = this.data, {
index
} = e.currentTarget.dataset;
let thisPage = wx.$router.getPageInstance();
goodsData[index].active = !goodsData[index].active;
goodsList[index].active = !goodsList[index].active;
this.setData({
goodsData,
goodsList,
},
() => {
this.handleSelectData();
......@@ -72,16 +85,16 @@ Component({
count,
item
} = e.currentTarget.dataset;
let target = `goodsData[${index}].count`;
let target = `goodsList[${index}].count`;
if (!item.count) item.count = 1;
item.count += count;
if (item.count < 1) item.count = 1;
if (item.count > 999) item.count = 999;
let total = item.price * item.count;
let total = item.packageGoods.price * item.count;
item.totalPrice = wx.$util.decimal(total, 3);
this.setData({
[target]: item.count,
[`goodsData[${index}].totalPrice`]: item.totalPrice,
[`goodsList[${index}].totalPrice`]: item.totalPrice,
},
() => {
this.handleSelectData();
......@@ -90,21 +103,21 @@ Component({
},
input(e) {
let {
goodsData
goodsList
} = this.data;
let {
index
} = e.currentTarget.dataset;
let target = `goodsData[${index}].count`;
let target = `goodsList[${index}].count`;
let {
value
} = e.detail;
if (value < 1) value = 1;
if (value > 999) value = 999;
let total = wx.$util.decimal(goodsData[index].price * value, 2);
let total = wx.$util.decimal(goodsList[index].packageGoods.price * value, 2);
this.setData({
[target]: Number(value),
[`goodsData[${index}].totalPrice`]: total,
[`goodsList[${index}].totalPrice`]: total,
},
() => {
this.handleSelectData();
......@@ -114,32 +127,35 @@ Component({
handleSelectData() {
let {
selectData,
goodsData,
goodsList,
matchPackageName
} = this.data;
console.log(!matchPackageName,goodsList)
if (!matchPackageName) {
selectData = goodsData.filter((item) => {
selectData = goodsList.filter((item) => {
if (item.active) {
return item;
}
});
} else {
if (selectData.length === 0) {
selectData = goodsData.filter((item) => {
selectData = goodsList.filter((item) => {
if (item.active) {
return item;
}
});
} else {
goodsData.forEach((item, index) => {
goodsList.forEach((item, index) => {
if (item.active) {
if (!selectData.find((s) => s.packageCode == item.packageCode)) {
if (!selectData.find((s) => s.packageGoods.packageCode == item.packageGoods.packageCode)) {
selectData.push(item);
}
} else {
if (selectData.find((s) => s.packageCode == item.packageCode)) {
selectData.splice(index, 1);
}
selectData.forEach((s,sindex)=>{
if(s.packageGoods.packageCode == item.packageGoods.packageCode){
selectData.splice(sindex, 1);
}
})
}
});
}
......@@ -154,79 +170,72 @@ Component({
selectDataTotal,
});
},
getMerchantPackageGoods() {
let userInfo = wx.$util.getUserInfo();
let merchantId, params;
if (!userInfo.isSuper) {
merchantId = userInfo?.shopMerchantId;
}
params = {
merchantId,
matchPackageName: this.data.matchPackageName,
};
try {
api.getGoodsList(params).then((res) => {
if (res.code == 0) {
res.data.forEach((item) => {
item.active = false;
item.goodsList.forEach((g) => {
g.price = g.sellPrice;
});
item.price = item.goodsList.reduce((prev, cur) => {
prev = NP.plus(prev + cur.price);
return prev;
}, 0);
item.upgradePrice = item.goodsList.reduce((prev, cur) => {
// console.log("cur.price ", cur.price);
prev = NP.plus(prev + cur.price);
// console.log("prev ", prev);
return prev;
}, 0);
// console.log(NP.plus(0.1, 0.2));
item.price = NP.round(item.price, 2);
item.upgradePrice = NP.round(item.upgradePrice, 2);
// console.log("item.upgradePrice ", item.upgradePrice);
item.count = 1;
let total = NP.times(item.price, item.count);
item.totalPrice = wx.$util.decimal(total, 2);
item.isType = "meal";
initPackageGoods() {
let {
chooseGoodsList,
goodsList
} = this.data
if(goodsList.length>0){
goodsList.forEach((item) => {
item.active = false;
item.packageGoods.goodsList.forEach((g) => {
g.price = g.sellPrice;
});
this.setData({
goodsData: res.data,
},
() => {
this.setGoodsActive();
}
);
}
});
} catch (err) {
console.log(err);
new Error(err);
}
item.packageGoods.price = item.packageGoods.goodsList.reduce((prev, cur) => {
prev = NP.plus(prev + cur.sellPrice);
return prev;
}, 0);
item.packageGoods.upgradePrice = item.packageGoods.goodsList.reduce((prev, cur) => {
// console.log("cur.price ", cur.price);
prev = NP.plus(prev + cur.sellPrice);
// console.log("prev ", prev);
return prev;
}, 0);
// console.log(NP.plus(0.1, 0.2));
item.packageGoods.price = NP.round(item.packageGoods.price, 2);
item.packageGoods.upgradePrice = NP.round(item.packageGoods.upgradePrice, 2);
// console.log("item.upgradePrice ", item.upgradePrice);
item.count = 1;
let total = NP.times(item.packageGoods.price, item.count);
item.totalPrice = wx.$util.decimal(total, 2);
item.isType = "meal";
});
this.setData({
goodsList
},
() => {
this.setGoodsActive();
}
);
}
console.log(goodsList,'goodsList')
},
setGoodsActive() {
let {
chooseGoodsList,
goodsData,
goodsList,
selectData
} = this.data;
console.log(selectData,goodsList,'测试')
if (selectData.length == 0) {
goodsData.map((e) => {
goodsList.map((e) => {
e.active = false;
});
} else {
goodsData.map((e, index) => {
goodsList.map((e, index) => {
e.active = false;
selectData.map((s) => {
if (s.packageCode == e.packageCode) {
Object.assign(e, s);
if (s.packageGoods.packageCode == e.packageGoods.packageCode) {
Object.assign(e, s,{
active:true
});
}
});
});
}
this.setData({
goodsData,
goodsList,
},
() => {
this.handleSelectData();
......@@ -235,10 +244,38 @@ Component({
},
searchGoods(e) {
let {
goodsData
} = this.data;
let {
value
} = e.detail;
this.data.matchPackageName = value;
this.getMerchantPackageGoods();
this.data.matchPackageName=value
if (!value) {
this.getOrderBaseGoodsList(goodsData);
setTimeout(() => {
this.setGoodsActive();
}, 500);
return;
}
let _DATA_ = JSON.parse(JSON.stringify(goodsData));
let arr = [];
_DATA_.map(c => {
// let nameList = []
let name
// debugger
if (c.goodsFlag == 3 && c.packageGoods) {
name = c.packageGoods.packageName||c.packageGoods.packageAlias
}
console.log(name, c, 'name');
if (name.indexOf(value) != -1) {
arr.push(c)
}
})
console.log(arr,'arr')
this.setData({
goodsList: arr,
});
},
getChooseList(selectData, alreadyData) {
let arr = [];
......@@ -271,6 +308,7 @@ Component({
selectData
} = this.data;
let chooseList = this.getChooseList(selectData, chooseGoodsList);
console.log(chooseList,'chooseList')
let thisPage = wx.$router.getPageInstance();
if (!selectData.length) return wx.$util.showToast("请勾选套餐");
this.setData({
......
......@@ -6,8 +6,8 @@
套餐
<text>丨建议价</text>
</view>
<block wx:if="{{goodsData.length}}">
<view class="goods-item" wx:for="{{ goodsData }}" wx:key=" {{item.packageCode}}">
<block wx:if="{{goodsList.length}}">
<view class="goods-item" wx:for="{{ goodsList }}" wx:key=" {{item.packageGoods.packageCode}}">
<view class="item-hd">
<view class="icon" catchtap="choose" data-index="{{ index }}">
<block wx:if="{{ item.active }}">
......@@ -18,9 +18,9 @@
</block>
</view>
<!-- <checkbox value="{{item.packageCode}}" active="{{item.active}}" /> -->
<view class="packageName" catchtap="choose" data-index="{{ index }}">{{item.packageName}}</view>
<view class="packageName" catchtap="choose" data-index="{{ index }}">{{item.packageGoods.packageName}}</view>
<block wx:if="{{ !item.active }}">
<view class="total-price">¥{{item.upgradePrice}}</view>
<view class="total-price">¥{{item.packageGoods.upgradePrice}}</view>
</block>
<view class="control" wx:else>
<view class="minus" catchtap="addCount" data-count="{{ -1 }}" data-index="{{ index }}" data-item="{{ item }}">-</view>
......@@ -29,7 +29,7 @@
</view>
</view>
<view class="item-bd" catchtap="choose" data-index="{{ index }}">
<view class="upgrade-item" wx:for="{{ item.goodsList }}" wx:for-item="i" wx:for-index="ind">
<view class="upgrade-item" wx:for="{{ item.packageGoods.goodsList }}" wx:for-item="i" wx:for-index="ind">
<view class="dot"></view>
<view class="name">{{i.upgradeGoodsAlias||i.upgradeGoodsName}}</view>
<view class="price">¥{{i.sellPrice}}</view>
......
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 2;
let index = 1;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -87,6 +87,7 @@ module.exports = {
quotationGoodsList(data) {
return api.post('dj.api.smartcarlife.quotationGoods.list', data)
},
/** 待补录订单统计 */
waitinputorder(data) {
let params = data || {}
......@@ -231,5 +232,10 @@ module.exports = {
// 更新合同协议内容
updateZyInfo(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.update', data)
}
} ,
// 根据商户号获取可选商品列表
getSelectOrderGoodsList(data){
return api.post('dj.api.smartcarlife.selectOrderGoods.list', data)
}
}
......@@ -3,7 +3,8 @@
.coupon-box {
/* width: calc(100% + var(--fontSize64)); */
height: 100%;
/* margin-left: -var(--fontSize32); */
width: calc(100% + var(--fontSize64));
margin-left: calc(-1 * var(--fontSize32));
}
.coupon {
......@@ -12,7 +13,7 @@
.box {
border-bottom: var(--fontSize2) solid #EBEDF0;
padding-left: var(--fontSize72);
padding-left: var(--fontSize32);
}
.title {
......@@ -26,11 +27,12 @@
.text-center {
text-align: center;
}
.item-wrap{
border-bottom: var(--fontSize2) solid #EBEDF0;
}
.item {
box-sizing: border-box;
padding: var(--fontSize23) 0;
border-top: var(--fontSize2) solid #EBEDF0;
/* height: 84rpx; */
display: flex;
/* align-items: center; */
......@@ -61,7 +63,7 @@
display: none;
width: var(--fontSize32);
height: var(--fontSize32);
position: absolute;
// position: absolute;
top: var(--fontSize28);
left: calc(var(--fontSize52) * -1);
/* transform: translateY(-50%); */
......@@ -92,8 +94,8 @@
}
.item .value {
/* width: calc(100% - var(--fontSize180)); */
width: 100%;
width: calc(100% - var(--fontSize52));
// width: 100%;
display: flex;
/* flex-direction: ; */
justify-content: space-between;
......@@ -245,4 +247,29 @@
.isPad .item {
font-size: var(--fontSize22);
}
.specification {
background: #F7F7F7;
border-radius: 16rpx 16rpx 0 0;
width:calc(100% - var(--fontSize80));
margin:var(--fontSize9) 0 var(--fontSize32) var(--fontSize52);
}
.picker {
display: flex;
flex-direction: row-reverse;
height: var(--fontSize80);
line-height: var(--fontSize80);
text-align: right;
}
.placeholder {
font-weight: 400;
font-size: var(--fontSize28);
color: #B6B6B8;
}
.arrow {
width: var(--fontSize28);
height: var(--fontSize26);
margin-top: var(--fontSize26);
flex-shrink: 0;
}
\ No newline at end of file
......@@ -5,54 +5,82 @@
<scroll-view class="coupon" scroll-y>
<block wx:if="{{goodsList.length > 0}}">
<!-- <block wx:for="{{goodsList}}" wx:key="index"> -->
<!-- <view class="title">
{{item.goodsTypeName}}
<text class="tips">|建议价</text>
</view> -->
<!-- <view class="title"> -->
<!-- {{item.goodsTypeName}} -->
<!-- <text class="tips">|建议价</text>
</view> -->
<view class="box">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
<view class="value " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.goods}}">
<view class="name text-hide ">
<view class="goodsname serveName ">{{filter.replaceItemText(i.goods.goodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName + (i.goods.specificationData? '/'+i.goods.specificationData:'')) || filter.replaceItemText(i.goods.goodsInfo.goodsName + (i.goods.specificationData? ('/'+i.goods.specificationData):'') )}}</view>
<!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> -->
<view class="serveName" wx:if="{{i.goods.serveName}}">(包含{{i.goods.serveName}})</view>
<!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> -->
</view>
<view class="last">
<text class="price">¥{{i.goods.sellPrice}}</text>
</view>
</block>
<block wx:if="{{i.packageGoods}}">
<view class="childbox">
<view class="item">
<view class="name ">
<view>{{i.packageGoods.packageAlias || i.packageGoods.packageName}}</view>
</view>
<view class="last">
<text class="price">¥{{i.packageGoods.sellPrice}}</text>
</view>
<view class="item-wrap">
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
<view class="icon" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" 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 " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.goodsFlag==1}}">
<view class="name text-hide ">
<view class="goodsname serveName ">{{filter.replaceItemText(i.goods.goodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName + (i.goods.specificationData? '/'+i.goods.specificationData:'')) || filter.replaceItemText(i.goods.goodsInfo.goodsName + (i.goods.specificationData? ('/'+i.goods.specificationData):'') )}}</view>
<!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> -->
<view class="serveName" wx:if="{{i.goods.serveName}}">(包含{{i.goods.serveName}})</view>
<!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> -->
</view>
<view class="last">
<text class="price">¥{{i.goods.sellPrice}}</text>
</view>
</block>
<block wx:if="{{i.goodsFlag==3}}">
<view class="childbox">
<view class="item">
<view class="name ">
<view>{{i.packageGoods.packageAlias || i.packageGoods.packageName}}</view>
</view>
<view class="last">
<text class="price">¥{{i.packageGoods.sellPrice}}</text>
</view>
</view>
<view class="goodsChild">
<view class="goodsItem" wx:for="{{i.packageGoods.goodsList}}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="goodsListName">{{filter.replaceItemText(child.goodsAlias) ||filter.replaceItemText(child.upgradeGoodsName +( child.specificationData ? ('/'+child.specificationData): '') ) || filter.replaceItemText(child.goodsInfo.goodsName+( child.specificationData? ('/'+child.specificationData): '') )}}</view>
<view class="goodsListPrice">¥{{child.sellPrice}}</view>
<view class="goodsChild">
<view class="goodsItem" wx:for="{{i.packageGoods.goodsList}}" wx:key="childind" wx:for-index="childind" wx:for-item="child">
<view class="goodsListName">{{filter.replaceItemText(child.goodsAlias) ||filter.replaceItemText(child.upgradeGoodsName +( child.specificationData ? ('/'+child.specificationData): '') ) || filter.replaceItemText(child.goodsInfo.goodsName+( child.specificationData? ('/'+child.specificationData): '') )}}</view>
<view class="goodsListPrice">¥{{child.sellPrice}}</view>
</view>
</view>
</view>
</view>
</block>
</block>
<block wx:if="{{i.goodsFlag==2}}">
<view class="name text-hide ">
<view class="goodsname serveName ">{{i.multipleSpecificationsGoods.baseGoodsName }}</view>
<view class="serveName" wx:if="{{i.multipleSpecificationsGoods.goods.serveName}}">(包含{{i.multipleSpecificationsGoods.goods.serveName}})</view>
</view>
<view class="last">
<text class="price" wx:if="{{i.multipleSpecificationsGoods.goods.sellPrice}}">¥{{i.multipleSpecificationsGoods.goods.sellPrice}}</text>
</view>
</block>
</view>
</view>
<view class="icon" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="./images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
<view class="specification" wx:if="{{i.goodsFlag==2}}">
<view wx:for="{{i.multipleSpecificationsGoods.specificationList}}" wx:for-item="specific" wx:for-index="specInd">
<gl-cell border valueAlign="right" label="{{specific.specificationName}}" labelWidth="var(--fontSize180)" placeholder="请选择" bindclick="showPopup" background="#F7F7F7" data-show-name="specificBox" >
<picker bindchange="handlePickerChange" data-item="{{i}}" value="{{specific.value}}" data-specIndex="{{specInd}}" data-index="{{ind}}" range="{{specific.specificationSelectValueList}}">
<view class="picker">
<image class="arrow" src="/components/images/arrow-x.png" />
<view class="text-hide" wx:if="{{specific.value}}">
{{specific.value}}
</view>
<text class="placeholder" wx:else>请选择</text>
</view>
</picker>
</gl-cell>
</view>
</view>
</view>
</block>
</view>
<!-- </block> -->
......
......@@ -111,6 +111,7 @@ Component({
},
// '1', '2', '3',
activeNames: ["1", "2", "3", "4"],
goodsBox:false,
showPicker: false,
// optionsSelect: Object.freeze(optionsSelect),
popObj: {
......@@ -170,6 +171,19 @@ Component({
// }
this.setGoodsListTotal();
},
//多规格单价修改
changeSpecific(e){
let { value } = e.detail;
let { index, item } = e.currentTarget.dataset;
console.log(item, "item");
let thisPage = wx.$router.getPageInstance();
let target = `orderInfo.vdQuotationGoodsList[${index}].multipleSpecificationsGoods.goods.price`;
let number = wx.$util.removeLeadingZerosAndEnsureNonNegative(value);
thisPage.setData({
[target]: number,
});
this.setGoodsListTotal();
},
changePricePackage(e) {
let { value } = e.detail;
let { index, item, childind } = e.currentTarget.dataset;
......@@ -247,27 +261,36 @@ Component({
setGoodsListTotal() {
let thisPage = wx.$router.getPageInstance();
let { orderInfo } = thisPage.data;
// console.log(orderInfo,'orderInfo');
console.log(orderInfo,'orderInfo');
let total = 0;
orderInfo.vdQuotationGoodsList.map((i) => {
if (i.goods) {
// total += parseFloat(i.goods.count || 1) * parseFloat(i.goods.price)
total = NP.plus(
total,
NP.times(parseFloat(i.goods.count || 1), parseFloat(i.goods.price))
NP.times(parseFloat(i.count || 1), parseFloat(i.goods.price))
);
}
if (i.packageGoods) {
console.log(i.packageGoods, "i.packageGoods");
i.packageGoods.goodsList.map((ele) => {
// total += parseFloat(ele.count || 1) * parseFloat(ele.price)
total = NP.plus(
total,
NP.times(parseFloat(ele.count || 1), parseFloat(ele.price))
NP.times(parseFloat(i.count || 1), parseFloat(ele.price))
);
});
}
//多规格
if(i.multipleSpecificationsGoods){
if (i.multipleSpecificationsGoods.goods) {
// total += parseFloat(i.goods.count || 1) * parseFloat(i.goods.price)
total = NP.plus(
total,
NP.times(parseFloat(i.count || 1), parseFloat(i.multipleSpecificationsGoods.goods.price))
);
}
}
});
console.log(total, "total");
thisPage.setData({
......
......@@ -325,6 +325,7 @@
min-height: 100%;
font-size: var(--fontSize28);
padding: 0 var(--fontSize16) 0 var(--fontSize50);
color: #333333;
}
.goods-box .goods .price input.error {
......@@ -534,4 +535,91 @@
.payType-box .item.active .active-icon {
display: block;
}
.goods-box .goodsSku {
background: #F7F8FA;
border-radius: var(--fontSize16);
margin: var(--fontSize16) 0;
display: flex;
flex-flow: column;
padding: var(--fontSize24);
justify-content: space-between;
font-size: var(--fontSize28);
position: relative;
}
.goods-box .goodsSku .name {
color: #FF6601;
width: 100%;
margin-bottom: var(--fontSize8);
}
.goods-box .goodsSku .bottom_box {
display: flex;
align-items: center;
justify-content: space-between;
}
.goods-box .goodsSku .bottom_box .position {
color: #888888;
}
.goods-box .goodsSku .bottom_box .red_text {
color: red;
}
.goods-box .goodsSku .bottom_box .price_count {
display: flex;
align-items: center;
justify-content: flex-start;
color: #333333;
}
.goods-box .goodsSku .price {
width: var(--fontSize240);
height: var(--fontSize64);
background: #FFFFFF;
border: var(--fontSize2) solid #E6E6E6;
border-radius: var(--fontSize8);
position: relative;
margin-right: var(--fontSize32);
}
.goods-box .goodsSku .price text {
position: absolute;
left: var(--fontSize16);
top: 50%;
font-size: var(--fontSize24);
transform: translateY(-50%);
}
.goods-box .goodsSku .price input {
box-sizing: border-box;
width: 100%;
height: 100%;
min-height: 100%;
font-size: var(--fontSize28);
padding: 0 var(--fontSize16) 0 var(--fontSize50);
color: #333333;
}
.goods-box .goodsSku .price input.error {
border: var(--fontSize2) solid #F24724;
}
.goods-box .goodsSku .price input.disabled {
/* color: red; */
background-color: #f0f0f0;
color: #dcdcdc;
}
.goods-box .goodsSku .count {
min-width: var(--fontSize64);
color: #292D33;
}
.goodsSku .icon {
position: absolute;
top: 0;
right: 0;
width: var(--fontSize40);
height: var(--fontSize40);
background: #347BFF1a;
border-radius: 0 var(--fontSize16) 0 var(--fontSize16);
}
\ No newline at end of file
......@@ -58,6 +58,29 @@
</view>
</view>
</view>
<!-- 多规格 -->
<block wx:if="{{item.multipleSpecificationsGoods}}">
<view class="goodsSku">
<view class="name_box">
<view class="name text-hide">
{{item.multipleSpecificationsGoods.baseGoodsName}}
</view>
</view>
<view class="bottom_box">
<view class="position" wx:if="{{ item.multipleSpecificationsGoods.goods.specificationStr }}">{{item.multipleSpecificationsGoods.goods.specificationStr}}</view>
<view class="price_count">
<view class="price">
<text>¥</text>
<input type="digit" value="{{item.multipleSpecificationsGoods.goods.price}}" bindinput="changeSpecific" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.multipleSpecificationsGoods.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed />
</view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox" data-type="4">x{{item.count||1}}</view>
</view>
</view>
<view class="icon" bindtap="delGoodsList" data-index="{{ index }}">
<image src="./images/del.png" />
</view>
</view>
</block>
</block>
<view class="goods total-box">
<view>总价</view>
......
Component({
options: {
styleIsolation: 'isolated',//表示样式隔离,默认隔离
},
/**
* 组件的属性列表
*/
properties: {
show: {
type: Boolean,
observer: function (n) {
if (n) {
this.setData({
keyWord: ''
})
this.setGoodsActive();
}
},
},
goodsData: {
type: Array,
observer: function (n) {
if (n.length > 0) {
this.getOrderBaseGoodsList(n);
}
},
},
chooseGoodsList: {
type: Array,
observer: function (n) {
this.setGoodsActive();
},
},
minPrice: {
type: Number,
// value:0
},
isSolarFilm: Boolean,
baseConfigData: Object,
},
/**
* 组件的初始数据
*/
data: {
goodsList: [],
keyWord: ''
},
/**
* 组件的方法列表
*/
methods: {
setGoodsActive() {
let { chooseGoodsList, goodsList } = this.data;
if (chooseGoodsList.length == 0) {
goodsList.map((e) => {
e.upgradeGoodsList.map((c) => (c.active = false));
});
} else {
let indexList = [];
goodsList.map((e, index) => {
e.upgradeGoodsList.map((c, ind) => {
c.active = false;
chooseGoodsList.map((s) => {
if (s.merchantGoodsId == c.id || s.id == c.id) {
c.count = s.count;
indexList.push({
index,
ind,
});
}
});
});
});
indexList.map((e) => {
goodsList[e.index].upgradeGoodsList[e.ind].active = true;
});
}
this.setData({
goodsList,
});
},
getOrderBaseGoodsList(data) {
this.setData({
goodsList: data,
});
},
// 删除数组重复项 都不保留
removeDuplicates(arr, property) {
console.log(arr, 'packageCode');
var uniqueArray = [];
for (var i = 0; i < arr.length; i++) {
var value = arr[i][property];
// 兼容套餐
if ((!uniqueArray.some((obj) => obj[property] === value) || arr[i]?.packageCode)) {
uniqueArray.push(arr[i]);
}
}
return uniqueArray;
},
// 去重保留第二项
arrayUnique(arr, name, packageCode = 'packageCode') {
console.log(arr, 'arrayUnique');
var hash = {};
return arr.reduce(function (acc, cru, index) {
// 兼容套餐逻辑
if (!hash[cru[name]] || !hash[cru[packageCode]]) {
hash[cru[name]] = { index: index };
acc.push(cru);
} else {
acc.splice(hash[cru[name]]["index"], 1, cru);
}
return acc;
}, []);
},
getChooseList() {
let { goodsList, chooseGoodsList, isSolarFilm } = this.data;
console.log(goodsList, chooseGoodsList, 'goodsList');
let chooseList = [];
// debugger
// 太阳膜下单 需保留已选的商品
if (isSolarFilm) {
let upgradeGoodsList = [];
goodsList.map((e) => {
upgradeGoodsList = upgradeGoodsList.concat(e.upgradeGoodsList);
});
let selectActiveArr = [];
for (var i = 0; i < upgradeGoodsList?.length; i++) {
let val = upgradeGoodsList[i];
if (val.active) selectActiveArr.push(val);
}
if (!selectActiveArr?.length) return wx.$util.showToast("请勾选商品");
// 将已选商品与当前弹窗数据对比处理数据
console.log(upgradeGoodsList, chooseGoodsList, 'chooseGoodsList');
let arr = this.removeDuplicates(
upgradeGoodsList.concat(chooseGoodsList),
"id"
);
console.log(arr, 'arr');
arr?.map((c) => {
if (c.active) {
if (!c.count) c.count = 1;
if (chooseGoodsList.length > 0) {
chooseGoodsList.map((x) => {
if (x.id == c.id) {
c.price = x.price || 0;
}
});
} else {
c.price = c.upgradePrice || 0;
}
if (!c.price) c.price = c.upgradePrice;
chooseList.push(c);
}
});
} else {
goodsList.map((e) => {
e.upgradeGoodsList.map((c) => {
if (c.active) {
if (!c.count) c.count = 1;
if (chooseGoodsList.length > 0) {
chooseGoodsList.map((x) => {
if (x.id == c.id) {
c.price = x.price || 0;
}
});
} else {
c.price = c.upgradePrice || 0;
}
if (!c.price) c.price = c.upgradePrice;
console.log(c, 'isSolarFilm');
chooseList.push(c);
}
});
});
}
return this.arrayUnique(chooseList, "id");
},
choose(e) {
let { item, index, ind } = e.currentTarget.dataset;
let { active } = item;
let { minPrice } = this.data;
// item
// console.log(item)
// console.log(minPrice)
// console.log(item.goodsInfo.shopMinPrice)
// console.log(minPrice && minPrice < item.shopMinPrice)
// 如果有设置订单价格 那就不能选单个成本价比总价还高的
if (minPrice && minPrice / 100 < item.shopMinPrice) return false;
// 太阳膜类商品 未配置部位不可选择
// if (item?.goodsInfo?.goodsType == 1 && !item.merchantGoodsPosition) return false
let target = `goodsList[${index}].upgradeGoodsList[${ind}].active`;
this.setData({
[target]: !active,
});
},
addCount(e) {
let { index, count, item, ind } = e.currentTarget.dataset;
let target = `goodsList[${index}].upgradeGoodsList[${ind}].count`;
if (!item.count) item.count = 1;
item.count += count;
if (item.count < 1) item.count = 1;
if (item.count > 999) item.count = 999;
this.setData({
[target]: item.count,
});
},
input(e) {
let { index, ind } = e.currentTarget.dataset;
let target = `goodsList[${index}].upgradeGoodsList[${ind}].count`;
let { value } = e.detail;
if (value < 1) value = 1;
if (value > 999) value = 999;
this.setData({
[target]: Number(value),
});
},
searchGoods(e) {
let { goodsData } = this.data;
let { value } = e.detail;
if (!value) {
this.getOrderBaseGoodsList(goodsData);
setTimeout(() => {
this.setGoodsActive();
}, 500);
return;
}
let _DATA_ = JSON.parse(JSON.stringify(goodsData));
let arr = [];
_DATA_.map((i) => {
let upgradeGoodsList = [];
i.upgradeGoodsList.map((c) => {
// console.log(c);
let name =
c.upgradeGoodsAlias || c.upgradeGoodsName || c.goodsInfo.goodsName;
if (name.indexOf(value) != -1) {
upgradeGoodsList.push(c);
}
});
if (
i.goodsTypeName.indexOf(value) != -1 ||
upgradeGoodsList.length > 0
) {
i.upgradeGoodsList =
upgradeGoodsList.length > 0 ? upgradeGoodsList : i.upgradeGoodsList;
arr.push(i);
}
});
console.log(arr);
this.setData({
goodsList: arr,
});
},
cancel() {
this.setData({
show: false,
});
},
confirm() {
let chooseList = this.getChooseList();
let { goodsList } = this.data;
if (goodsList.length < 1) return;
if (!chooseList.length) return wx.$util.showToast("请勾选商品");
let thisPage = wx.$router.getPageInstance();
thisPage?.setGoodsTotal && thisPage.setGoodsTotal(chooseList);
// console.log(chooseList)
thisPage.setData({
goodsList: chooseList,
});
this.triggerEvent("confirm", chooseList);
this.setData({
show: false,
});
},
},
});
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
.coupon-box {
width: calc(100% + var(--fontSize64));
height: 100%;
margin-left: calc(-1 * var(--fontSize32));
}
.coupon {
height: calc(100% - var(--fontSize104));
}
.box {
border-bottom: var(--fontSize2) solid #EBEDF0;
padding-left: var(--fontSize72);
}
.title {
padding: var(--fontSize18) 0 0 var(--fontSize32);
font-size: var(--fontSize32);
color: #333333;
height: var(--fontSize88);
box-sizing: border-box;
}
.text-center {
text-align: center;
}
.item {
border-top: var(--fontSize2) solid #EBEDF0;
height: var(--fontSize84);
display: flex;
align-items: center;
font-size: var(--fontSize28);
color: #888888;
position: relative;
}
.item.disabled {
color: #ccc;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.item .iconCoupon {
display: none;
width: var(--fontSize32);
height: var(--fontSize32);
position: absolute;
top: 50%;
left: calc(-1 * var(--fontSize52));
transform: translateY(-50%);
}
.item.active {
color: #347BFF;
}
.item.active .iconCoupon {
display: block;
}
.nothing {
padding: var(--fontSize100);
text-align: center;
color: #999;
}
.item {
justify-content: space-between;
padding-right: var(--fontSize32);
}
.title .tips {
font-size: var(--fontSize24);
color: #999999;
}
.item .value {
/* width: calc(100% - var(--fontSize180)); */
width: 100%;
display: flex;
/* flex-direction: ; */
justify-content: space-between;
}
.item .labelWidth {
width: calc(100% - var(--fontSize180));
/* display: flex; */
}
.item .value .name {
max-width: 85%;
}
.item .value .name .warning_text {
color: #F24724;
margin-left: var(--fontSize10);
font-size: var(--fontSize22);
}
.item .value .textWidth {
max-width: 100%;
}
.item .value .last {
max-width: 15%;
}
.item .value .price {
color: #347BFF;
}
.item .control {
display: flex;
align-items: center;
}
.item .control .minus,
.item .control .add {
width: var(--fontSize44);
height: var(--fontSize44);
color: #347BFF;
background: #F7F7F7;
border-radius: var(--fontSize6);
display: flex;
align-items: center;
justify-content: center;
font-size: var(--fontSize32);
font-weight: 700;
}
.item .control .input {
width: var(--fontSize72);
height: var(--fontSize40);
text-align: center;
font-size: var(--fontSize28);
color: #333333;
margin: 0 var(--fontSize5);
}
.disableSelect {
opacity: 0.4;
}
.choose {
width: var(--fontSize32);
height: var(--fontSize32);
margin: 0 var(--fontSize32);
// position: absolute;
// top: 50%;
// left: calc(-1 * var(--fontSize52));
// transform: translateY(-50%);
.arc {
width: 100%;
height: 100%;
border: var(--fontSize2) solid #979797;
border-radius: 100%;
box-sizing: border-box;
}
}
.nothing {
padding: var(--fontSize100);
text-align: center;
color: #999;
}
.box {
padding-left: 0;
}
.itemBox {
display: flex;
align-items: center;
.item {
flex: 1;
}
}
\ No newline at end of file
<!-- <wxs src="index.wxs" module="filter" /> -->
<popup show="{{show}}" title="选择商品" bindconfirm="confirm" bindcancel="cancel">
<view class="coupon-box">
<search-input bindsearch="searchGoods" value="{{keyWord}}" />
<scroll-view class="coupon" scroll-y>
<block wx:if="{{goodsList.length > 0}}">
<block wx:for="{{goodsList}}" wx:key="index">
<view class="title">
{{item.goodsTypeName}}
<text class="tips">|建议价</text>
</view>
<view class="box">
<view class="itemBox" wx:for="{{item.upgradeGoodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="choose" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<!-- <image src="{{filter.getImageSrc(i.active)}}" /> -->
</view>
<view class="item {{minPrice?(minPrice/100)>= i.shopMinPrice ?'':'disableSelect':'' }}">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<!-- <text>{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsInfo.goodsName)}}</text> -->
<text wx:if="{{i.merchantGoodsPosition && (i.goodsInfo.goodsType == 1 || i.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">{{'「' + i.positionStr+'」'}}</text>
<text class="warning_text" wx:if="{{!i.merchantGoodsPosition && (i.goodsInfo.goodsType == 1 || i.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</text>
</view>
<view class="last" wx:if="{{!i.active}}">
<text class="price">¥{{i.upgradePrice}}</text>
</view>
</view>
<block wx:if="{{i.active}}">
<view class="control">
<view class="minus" catchtap="addCount" data-count="{{-1}}" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
-
</view>
<input type="number" catchtap="noScroll" class="input" value="{{i.count || 1}}" catchinput="input" data-index="{{index}}" data-ind="{{ind}}" />
<view class="add" catchtap="addCount" data-count="{{1}}" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
+
</view>
</view>
</block>
<!-- <view class=" choose" catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.active}}">
<image src="../images/radio.png" />
</block>
<block wx:else>
<view class="arc" />
</block>
</view> -->
</view>
</view>
</view>
</block>
</block>
<block wx:else>
<view class="nothing">暂无数据</view>
</block>
</scroll-view>
</view>
</popup>
\ No newline at end of file
var replaceItemText = function (item) {
var reg = getRegExp(';~;', 'g')
return item ? item.replace(reg, ' ') : ''
}
var getImageSrc = function (active) {
var baseImagePath = active ? '../images/radio.png' : '../images/radio_icon.png';
var timestamp = Date.now(); // 使用 Date.now() 获取当前时间戳
return baseImagePath + '?t=' + timestamp; // 使用字符串拼接
}
/*
* 导出
*/
module.exports = {
replaceItemText: replaceItemText,
getImageSrc: getImageSrc
}
......@@ -45,7 +45,7 @@
<view class="meal-bd-box" wx:for="{{item.packageGoodsOrderList}}" wx:for-item="g">
<view class="meal-bd-head">
<view class="dot"></view>
<view class="name">{{g.upgradeGoodsAlias||g.upgradeGoodsName}}</view>
<view class="name">{{g.upgradeGoodsName||g.upgradeGoodsAlias}}</view>
<view class="price">¥{{g.price}}</view>
</view>
<view class="meal-bd-bottom">{{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}}
......
......@@ -270,6 +270,7 @@ page {
}
.goods-box .goods .price {
color: #333333;
width: var(--fontSize240);
height: var(--fontSize64);
background: #FFFFFF;
......@@ -309,6 +310,7 @@ page {
.goods-box .goods .count {
min-width: var(--fontSize64);
color: #292D33;
}
.goods-box .total-box {
......
......@@ -3,7 +3,7 @@
"usingComponents": {
"car-brands": "/components/CarBrands/CarBrands",
"merchant-seles": "/components/Merchant-Seles/Merchant-Seles",
"goods": "/components/Goods/Goods",
"goods": "../GoodsPackage/Goods",
"customerInfo": "/components/CustomerInfo/CustomerInfo",
"sub-shop-merchant" : "/components/subShopMerchant/subShopMerchant"
}
......
......@@ -35,5 +35,4 @@ module.exports = {
return api.post("dj.api.smartcarlife.staff.dailyReportConfig.update", data);
},
};
};
\ No newline at end of file
......@@ -63,9 +63,9 @@ const domain_items = {
// dj: "http://192.168.1.169:8292", //蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.89:8292', //周杭
dj: 'http://192.168.1.76:8292', //璐琦
// dj: 'http://192.168.1.76:8292', //璐琦
// dj: 'http://192.168.1.227:8292',//陈希
// dj: 'http://192.168.1.60:8292',//周立明
dj: 'http://192.168.1.67:8292',//周立明
// dj: 'http://192.168.148.235:8292',// 熊正顺
// dj: 'http://192.168.148.221:8292',
// scrm: 'http://192.168.1.165:8292'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!