uu
This commit is contained in:
parent
65b9d9b3c3
commit
c10a22831b
@ -32,6 +32,7 @@ export default {
|
||||
getCaculteSendSite: `/oms2c/emisDestination/getSendSite`, // 自动计算寄件网点 -- DONE
|
||||
getLisWarehouse: `/oms2c/emisWaybill/listWmsWarehouse`, // 仓库列表 -- DONE
|
||||
getListBindSalesmen: `/oms2c/emisWaybill/listBindSalesmen`, // 绑定业务员列表 -- DONE
|
||||
queryNewSalesmen: `/oms2c/emisWaybill/queryNewSalesmen`, // 查询所有业务员-根据手机号等条件 -- DONE
|
||||
bindSalesmen: `/oms2c/emisWaybill/bindSalesmen`, // 绑定业务员 -- DONE
|
||||
getSendSiteList: `/oms2c/emisSite/listSimple`, // 出发地-网点列表
|
||||
calcWaybillFee: `/oms2c/emisWaybill/calcWaybillFee`, // 计算运费
|
||||
|
||||
@ -23,6 +23,11 @@ export const getListBindSalesmen = (data = {})=> {
|
||||
return coreRequest(url.getListBindSalesmen, data, {}, "GET")
|
||||
}
|
||||
|
||||
// 查询所有业务员-根据手机号等条件
|
||||
export const queryNewSalesmen = (data = {})=> {
|
||||
return coreRequest(url.queryNewSalesmen, data, {}, "GET")
|
||||
}
|
||||
|
||||
// 绑定业务员
|
||||
export const bindSalesmen = (data = {})=> {
|
||||
return coreRequest(url.bindSalesmen, data, {}, "GET")
|
||||
|
||||
@ -51,21 +51,76 @@
|
||||
</template>
|
||||
|
||||
<template v-slot:footer>
|
||||
<view class="blcok-white-noradius" @click="handleScan">
|
||||
<u-row justify="between">
|
||||
<view>
|
||||
<u-text :text="'扫码绑定'" size="30" :bold="true" lines="1"></u-text>
|
||||
<u-text margin="10rpx 0 0 0" :text="'扫描快递小哥二维码'" size="28" color="#999"></u-text>
|
||||
<u-text margin="10rpx 0 0 0" :text="'即可享受快递寄件、专属送快递服务'" size="28" color="#999"></u-text>
|
||||
</view>
|
||||
<view>
|
||||
<u-icon name="scan" size="88" color="#B12D29"></u-icon>
|
||||
</view>
|
||||
</u-row>
|
||||
<view class="blcok-white-noradius" >
|
||||
<u-button @click="handleBindShow()" type="primary" size="large" shape="circle"
|
||||
custom-style="height:80rpx;font-size: 30rpx;">绑定快递员</u-button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
</tpx-layout>
|
||||
|
||||
<tpx-dialog title="绑定快递员" v-model:show="bindModal.show" >
|
||||
<view style="height: calc(50vh);">
|
||||
<tpx-layout>
|
||||
<template v-slot:body>
|
||||
<view class="pl-30 pr-30">
|
||||
<view @click="handleScan" class="blcok-grey-sm" style="margin-top: 0;">
|
||||
<u-row justify="between">
|
||||
<view>
|
||||
<u-text :text="'扫码绑定'" size="30" :bold="true" lines="1"></u-text>
|
||||
<u-text margin="10rpx 0 0 0" :text="'扫描快递小哥二维码'" size="28" color="#999"></u-text>
|
||||
<u-text margin="10rpx 0 0 0" :text="'即可享受快递寄件、专属送快递服务'" size="28" color="#999"></u-text>
|
||||
</view>
|
||||
<view>
|
||||
<u-icon name="scan" size="88" color="#B12D29"></u-icon>
|
||||
</view>
|
||||
</u-row>
|
||||
</view>
|
||||
|
||||
<view class="blcok-grey-sm">
|
||||
<u-text :text="'查询绑定'" size="30" :bold="true" lines="1"></u-text>
|
||||
<u-row custom-style="margin-top: 20rpx;">
|
||||
<tpx-input placeholder="输入工号或手机号" v-model:value="bindModal.data.searchValue"></tpx-input>
|
||||
<view class="ml-20">
|
||||
<u-button @click="handleBindSearchEmp" type="primary"
|
||||
custom-style="height:66rpx;font-size: 30rpx;">
|
||||
搜索
|
||||
</u-button>
|
||||
</view>
|
||||
</u-row>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
</tpx-layout>
|
||||
</view>
|
||||
</tpx-dialog>
|
||||
|
||||
<tpx-dialog title="快递员信息" v-model:show="bindSearchModal.show" >
|
||||
<view>
|
||||
<tpx-layout>
|
||||
<template v-slot:body>
|
||||
<view class="pl-30 pr-30 pt-30">
|
||||
<u-row>
|
||||
<u-avatar :src="bindSearchModal.data.avatar" size="110"></u-avatar>
|
||||
<view class="pl-30">
|
||||
<u-text :text="bindSearchModal.data.empName" size="30" :bold="true" lines="1"></u-text>
|
||||
<view class="mt-20">
|
||||
{{bindSearchModal.data.phone}}
|
||||
</view>
|
||||
</view>
|
||||
</u-row>
|
||||
</view>
|
||||
</template>
|
||||
<template v-slot:footer>
|
||||
<view class="blcok-white-noradius" style="margin-top: 0;margin-bottom: 0;">
|
||||
<u-button @click="handleConfirmBind" type="primary" size="large" shape="circle"
|
||||
custom-style="height:80rpx;font-size: 30rpx;">
|
||||
绑定
|
||||
</u-button>
|
||||
</view>
|
||||
</template>
|
||||
</tpx-layout>
|
||||
</view>
|
||||
</tpx-dialog>
|
||||
</tpx-page>
|
||||
</template>
|
||||
|
||||
@ -90,6 +145,14 @@
|
||||
type: '', // 'choose' 选择操作
|
||||
},
|
||||
resData: { list: [] },
|
||||
bindModal: {
|
||||
show: false,
|
||||
data: {}
|
||||
},
|
||||
bindSearchModal: {
|
||||
show: false,
|
||||
data: {}
|
||||
}
|
||||
}
|
||||
},
|
||||
onShareAppMessage() {
|
||||
@ -127,10 +190,28 @@
|
||||
async handleScan() {
|
||||
const resData = await scanCode()
|
||||
let params = getQueryObject(resData)
|
||||
await apiService.bindSalesmen(params)
|
||||
this.showToast('绑定成功')
|
||||
this.triggerListReload()
|
||||
await apiService.bindSalesmen({ ...params, _loading: true })
|
||||
this.bindSucceed()
|
||||
},
|
||||
handleBindShow(item={}) {
|
||||
this.bindModal.show = true
|
||||
this.bindModal.data = {}
|
||||
},
|
||||
async handleBindSearchEmp(item={}) {
|
||||
let res = await apiService.queryNewSalesmen({ ...this.bindModal.data, _loading: true })
|
||||
this.bindSearchModal.show = true
|
||||
this.bindSearchModal.data = res.data || {}
|
||||
},
|
||||
async handleConfirmBind(){
|
||||
let res = await apiService.bindSalesmen({ ...this.bindSearchModal.data, _loading: true })
|
||||
this.bindSucceed()
|
||||
},
|
||||
bindSucceed(){
|
||||
this.showToast('绑定成功')
|
||||
this.bindModal.show = false
|
||||
this.bindSearchModal.show = false
|
||||
this.triggerListReload()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user