Commit b0b66b51 by 张立顺

Merge branch 'SAAS+V4.38.7' of http://192.168.3.233:8090/saas_plus/dj-car-boutiq…

…ue-work-wechat into SAAS+V4.38.7
2 parents a9f0434a 4c59fd01
// packageEquity/pages/employeeInspection/components/ItemSelectStore/itemSelectStore.js
Component({
/**
* 组件的属性列表
*/
properties: {
show: Boolean,
selectedData: Array,
bussinessType: Number,
time: String
},
/**
* 组件的初始数据
*/
data: {
storeIndex: 0
},
pageLifetimes: {
show: function () {
this.setData({
storeIndex: 0
})
},
},
/**
* 组件的方法列表
*/
methods: {
choose(e) {
let {
index
} = e.currentTarget.dataset
this.setData({
storeIndex: index
})
},
confirm() {
let {
time,
selectedData,
storeIndex
} = this.data,
merchantId = selectedData[storeIndex].merchantNo, {
staffUuid,
phoneNumberLists
} = selectedData[storeIndex];
this.setData({
isStorePop: false
}, () => {
let params = {
searchdate: time,
staffUuid,
phoneNumberLists,
merchantId
}
this.goto(params)
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
isStorePop: false
})
})
},
goto(params) {
if (this.data.bussinessType == 2) {
wx.$router.go('packageEquity.orderList', params)
} else {
wx.$router.go('packageEquity.equityQualityOrderList', params)
}
},
hidePopup() {
this.setData({
isStorePop: false,
storeIndex: 0
})
},
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<popup title="选择员工归属门店" show="{{ show }}" bindconfirm="confirm" height="85%" bindcancel="hidePopup" class="store-wrap">
<scroll-view class="store-select-box" scroll-y enhanced="{{true}}" show-scrollbar="{{false}}">
<view class="box">
<view class="merchant-box">
<block wx:for="{{selectedData}}" wx:key="index">
<view class="item {{storeIndex===index?'active':''}}" bindtap="choose" data-index="{{index}}">
<view class="merchant_item">
<view class="text-hide">{{item.merchantName}}</view>
<view>{{item.merchantNo}}</view>
</view>
<view class="mark" wx:if="{{storeIndex===index}}">
<gl-image class="icon" src="/equity/mark.png" />
</view>
</view>
</block>
</view>
</view>
</scroll-view>
</popup>
\ No newline at end of file \ No newline at end of file
.title{
margin-bottom: var(--fontSize20);
color: #292D33;
font-weight: 400;
font-size: var(--fontSize32);
}
.store-select-box{
height: calc(100% - var(--fontSize168));
}
.merchant-box .item{
display: flex;
height: var(--fontSize88);
align-items: center;
color: #292D33;
}
.merchant-box .item.active{
color: #347BFF;
}
.item .merchant_item{
height: var(--fontSize88);
font-size: var(--fontSize28);
display: flex;
align-items: center;
width:100%;
border-top: var(--fontSize1) solid #EFF0F2;
}
.item .merchant_item .text-hide{
max-width: calc(100% - var(--fontSize192));
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.item .icon {
width: var(--fontSize32);
height: var(--fontSize32);
display: block;
margin-right: var(--fontSize20);
flex-shrink: 0;
}
.item .icon .arc {
width: 100%;
height: 100%;
border: var(--fontSize2) solid #979797;
border-radius: 100%;
box-sizing: border-box;
}
.mark{
width:var(--fontSize32);
height: var(--fontSize32);
}
...@@ -15,8 +15,6 @@ Component({ ...@@ -15,8 +15,6 @@ Component({
*/ */
data: { data: {
isPack: true, isPack: true,
merchantDTOList: [],
isStorePop: false,
storeIndex: 0, storeIndex: 0,
contentObject: [{ contentObject: [{
label: '工牌编号', label: '工牌编号',
...@@ -60,39 +58,6 @@ Component({ ...@@ -60,39 +58,6 @@ Component({
}, },
}, },
methods: { methods: {
choose(e) {
let {
index
} = e.currentTarget.dataset
this.setData({
storeIndex: index
})
},
confirm() {
let {
time,
item: {
merchantDTOList
},
storeIndex
} = this.data,
merchantId = merchantDTOList[storeIndex].merchantNo, {
staffUuid,
phoneNumberLists
} = merchantDTOList[storeIndex];
this.setData({
isStorePop: false
}, () => {
let params = {
searchdate: time,
staffUuid,
phoneNumberLists,
merchantId
}
this.goto(params)
})
},
goto(params) { goto(params) {
if (this.data.bussinessType == 2) { if (this.data.bussinessType == 2) {
wx.$router.go('packageEquity.orderList', params) wx.$router.go('packageEquity.orderList', params)
...@@ -100,12 +65,7 @@ Component({ ...@@ -100,12 +65,7 @@ Component({
wx.$router.go('packageEquity.equityQualityOrderList', params) wx.$router.go('packageEquity.equityQualityOrderList', params)
} }
}, },
hidePopup() {
this.setData({
isStorePop: false,
storeIndex: 0
})
},
jumpDetail(e) { jumpDetail(e) {
let { let {
time, time,
...@@ -123,10 +83,11 @@ Component({ ...@@ -123,10 +83,11 @@ Component({
merchantId, merchantId,
phoneNumberLists phoneNumberLists
}; };
console.log(this.data)
if (merchantDTOList.length > 1) { if (merchantDTOList.length > 1) {
this.setData({ let thisPage = wx.$router.getPageInstance()
isStorePop: true thisPage.setData({
isStorePop: true,
merchantDTOList
}) })
return return
} }
...@@ -138,16 +99,6 @@ Component({ ...@@ -138,16 +99,6 @@ Component({
this.setData({ this.setData({
isPack: !this.data.isPack isPack: !this.data.isPack
}) })
},
handleServer(data) {
let {
isPack
} = this.data;
if (isPack) {
return data.slice(0, 10)
} else {
return data
}
} }
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -119,62 +119,3 @@ ...@@ -119,62 +119,3 @@
} }
} }
} }
.store-wrap{
.title{
margin-bottom: var(--fontSize20);
color: #292D33;
font-weight: 400;
font-size: var(--fontSize32);
}
.store-select-box{
height: calc(100% - var(--fontSize168));
}
.merchant-box .item{
display: flex;
height: var(--fontSize88);
align-items: center;
color: #292D33;
}
.merchant-box .item.active{
color: #347BFF;
}
.item .merchant_item{
height: var(--fontSize88);
font-size: var(--fontSize28);
display: flex;
align-items: center;
//width: calc(100% - var(--fontSize52));
width:100%;
border-top: var(--fontSize1) solid #EFF0F2;
}
.item .merchant_item .text-hide{
max-width: calc(100% - var(--fontSize192));
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.item .icon {
width: var(--fontSize32);
height: var(--fontSize32);
display: block;
margin-right: var(--fontSize20);
flex-shrink: 0;
}
.item .icon .arc {
width: 100%;
height: 100%;
border: var(--fontSize2) solid #979797;
border-radius: 100%;
box-sizing: border-box;
}
.mark{
width:var(--fontSize32);
height: var(--fontSize32);
}
}
\ No newline at end of file \ No newline at end of file
...@@ -39,24 +39,3 @@ ...@@ -39,24 +39,3 @@
<view class="btn" bindtap="jumpDetail">接待明细</view> <view class="btn" bindtap="jumpDetail">接待明细</view>
</view> </view>
</view> </view>
<popup title="选择员工归属门店" show="{{ isStorePop }}" bindconfirm="confirm" height="85%" bindcancel="hidePopup" class="store-wrap">
<scroll-view class="store-select-box" scroll-y enhanced="{{true}}" show-scrollbar="{{false}}">
<view class="box">
<view class="merchant-box">
<block wx:for="{{item.merchantDTOList}}" wx:key="index">
<view class="item {{storeIndex===index?'active':''}}" bindtap="choose"
data-index="{{index}}">
<view class="merchant_item">
<view class="text-hide">{{item.merchantName}}</view>
<view>{{item.merchantNo}}</view>
</view>
<view class="mark" wx:if="{{storeIndex===index}}">
<gl-image class="icon" src="/equity/mark.png" />
</view>
</view>
</block>
</view>
</view>
</scroll-view>
</popup>
\ No newline at end of file \ No newline at end of file
...@@ -21,6 +21,8 @@ Page({ ...@@ -21,6 +21,8 @@ Page({
keyword: '', keyword: '',
bussinessType: 1, bussinessType: 1,
triggered: false, triggered: false,
merchantDTOList: [],
isStorePop: false,
}, },
/** /**
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
"usingComponents": { "usingComponents": {
"date-box":"./components/dateBox/dateBox", "date-box":"./components/dateBox/dateBox",
"store-select-popup": "./components/StoreSelectPopup/StoreSelectPopup", "store-select-popup": "./components/StoreSelectPopup/StoreSelectPopup",
"content-item":"./components/contentItem/contentItem" "content-item":"./components/contentItem/contentItem",
"item-select-store": "./components/ItemSelectStore/itemSelectStore"
}, },
"navigationBarTitleText": "话术质检" "navigationBarTitleText": "话术质检"
} }
\ No newline at end of file \ No newline at end of file
...@@ -98,7 +98,7 @@ page{ ...@@ -98,7 +98,7 @@ page{
align-items:center; align-items:center;
.tab{ .tab{
width:var(--fontSize144); width:var(--fontSize144);
height:var(--fontSize56); line-height:var(--fontSize36);
border-radius: var(--fontSize8); border-radius: var(--fontSize8);
font-weight: 400; font-weight: 400;
font-size:var(--fontSize24); font-size:var(--fontSize24);
......
...@@ -55,4 +55,5 @@ ...@@ -55,4 +55,5 @@
</scroll-view> </scroll-view>
</view> </view>
<item-select-store show="{{isStorePop}}" time="{{searchdate}}" bussiness-type="{{bussinessType}}" selectedData="{{merchantDTOList}}"></item-select-store>>
<store-select-popup show="{{showStoreSelectPopup}}" bindconfirm="storeConfirm" bindcancel="hideStorePopup" selectedData="{{selectedYqMerchantList}}" list="{{storeRangeList || []}}" bindupdata="updata"></store-select-popup> <store-select-popup show="{{showStoreSelectPopup}}" bindconfirm="storeConfirm" bindcancel="hideStorePopup" selectedData="{{selectedYqMerchantList}}" list="{{storeRangeList || []}}" bindupdata="updata"></store-select-popup>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!