|
@@ -369,7 +369,15 @@
|
|
<view>会员运费抵扣:</view>
|
|
<view>会员运费抵扣:</view>
|
|
<view class='money'>-¥{{priceGroup.storePostageDiscount}}</view>
|
|
<view class='money'>-¥{{priceGroup.storePostageDiscount}}</view>
|
|
</view> -->
|
|
</view> -->
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
|
|
+ <scroll-view scroll-x="true" class="zp-wrap" @scrolltolower="">
|
|
|
|
+ <view class="zp-item" v-for="ygitem in yg.list" @click="choosYg(ygitem)"
|
|
|
|
+ :class="{'choose': ygitem.id == choose_yg.id}">
|
|
|
|
+ <image :src="ygitem.avatar || '../../../static/images/avt.png'" mode="" class="zp-logo"></image>
|
|
|
|
+ <view class="zp-name">{{ygitem.name}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ </scroll-view>
|
|
<view class="height-add"></view>
|
|
<view class="height-add"></view>
|
|
<view class='footer acea-row row-between-wrapper'>
|
|
<view class='footer acea-row row-between-wrapper'>
|
|
<view>合计:
|
|
<view>合计:
|
|
@@ -616,6 +624,16 @@
|
|
codeData: {},
|
|
codeData: {},
|
|
ptype: 1,
|
|
ptype: 1,
|
|
yytime: '',//预约时间
|
|
yytime: '',//预约时间
|
|
|
|
+ yg: {
|
|
|
|
+ page: 1,
|
|
|
|
+ limit: 100,
|
|
|
|
+ list: [],
|
|
|
|
+ loadingType: 'loadmore',
|
|
|
|
+ loaded: false,
|
|
|
|
+ },
|
|
|
|
+ choose_yg: {
|
|
|
|
+
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: mapGetters(['isLogin']),
|
|
computed: mapGetters(['isLogin']),
|
|
@@ -716,11 +734,40 @@
|
|
this.timeranges = arrayNew;
|
|
this.timeranges = arrayNew;
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 选择员工
|
|
|
|
+ choosYg(item) {
|
|
|
|
+ this.choose_yg = item
|
|
|
|
+ },
|
|
|
|
+ // 获取员工列表
|
|
getMen() {
|
|
getMen() {
|
|
|
|
+ let that = this
|
|
|
|
+ if(that.yg.loadingType == 'noMore' || that.yg.loadingType == 'loading' ) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ that.yg.loadingType = 'loading'
|
|
getMen({
|
|
getMen({
|
|
|
|
+ page: that.yg.page,
|
|
|
|
+ limit: that.yg.limit,
|
|
store_id: this.system_store.id
|
|
store_id: this.system_store.id
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log(res)
|
|
console.log(res)
|
|
|
|
+ let arr = []
|
|
|
|
+ if(that.yg.page == 1) {
|
|
|
|
+ arr = [{
|
|
|
|
+ uid: 0,
|
|
|
|
+ id: 0,
|
|
|
|
+ name: '随机指派'
|
|
|
|
+ }]
|
|
|
|
+ }
|
|
|
|
+ arr = arr.concat(res.data.list)
|
|
|
|
+ that.yg.list = that.yg.list.concat(arr)
|
|
|
|
+ if(that.yg.limit == res.data.list.length) {
|
|
|
|
+ that.yg.loadingType = 'more'
|
|
|
|
+ that.yg.page++
|
|
|
|
+ }else {
|
|
|
|
+ that.yg.loadingType = 'noMore'
|
|
|
|
+ }
|
|
|
|
+ that.yg.loaded = true
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 打开picker
|
|
// 打开picker
|
|
@@ -2567,4 +2614,51 @@
|
|
color: var(--view-theme);
|
|
color: var(--view-theme);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //指派
|
|
|
|
+ .zp-wrap {
|
|
|
|
+ margin-top: 20rpx;
|
|
|
|
+ width: 750rpx;
|
|
|
|
+ height: 216rpx;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ .zp-item {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ margin-right: 15rpx;
|
|
|
|
+ padding-top: 34rpx;
|
|
|
|
+ width: 172rpx;
|
|
|
|
+ height: 216rpx;
|
|
|
|
+ // background: #E02020;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
+
|
|
|
|
+ .zp-logo {
|
|
|
|
+ display: block;
|
|
|
|
+ width: 106rpx;
|
|
|
|
+ height: 106rpx;
|
|
|
|
+ margin: auto;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ background-color: #eee;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .zp-name {
|
|
|
|
+ margin-top: 15rpx;
|
|
|
|
+ width: 100%;
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #333333;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .choose {
|
|
|
|
+ background-color: #262261 !important;
|
|
|
|
+
|
|
|
|
+ .zp-name {
|
|
|
|
+ color: #fff !important;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|