uu
This commit is contained in:
parent
43ff5485b0
commit
0931350bf4
@ -24,8 +24,9 @@ const goto = (url, type = 1)=> {
|
|||||||
url = url.replace(`pages/`, '')
|
url = url.replace(`pages/`, '')
|
||||||
url = `/pages/${url}`
|
url = `/pages/${url}`
|
||||||
if(tabBarUrls.filter(t=> url.indexOf(t) > -1).length > 0) {
|
if(tabBarUrls.filter(t=> url.indexOf(t) > -1).length > 0) {
|
||||||
return uni.switchTab({
|
// tabBar 使用 reLaunch切换,防止页面不刷新
|
||||||
url
|
return uni.reLaunch({
|
||||||
|
url
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (type == 1){
|
if (type == 1){
|
||||||
|
|||||||
@ -37,7 +37,8 @@
|
|||||||
|
|
||||||
<u-row justify="center" align="center">
|
<u-row justify="center" align="center">
|
||||||
<u-col v-for="(tjItem, ijIndex) in tjList" span="3" align="center"
|
<u-col v-for="(tjItem, ijIndex) in tjList" span="3" align="center"
|
||||||
:custom-style="'border-right: 2rpx solid #E8E8E8;' + (ijIndex+1 == tjList.length ?'border-right:0;': '')"
|
:custom-style="'border-right: 2rpx solid #E8E8E8;' + (ijIndex+1 == tjList.length ?'border-right:0;': '')"
|
||||||
|
@click="goto(tjItem.url)"
|
||||||
>
|
>
|
||||||
<u-text align="center" color="#B12D29" :bold="true" size="36rpx" :text="tjItem.value"></u-text>
|
<u-text align="center" color="#B12D29" :bold="true" size="36rpx" :text="tjItem.value"></u-text>
|
||||||
<u-text align="center" color="#666" size="24" :text="tjItem.title"></u-text>
|
<u-text align="center" color="#666" size="24" :text="tjItem.title"></u-text>
|
||||||
@ -83,15 +84,15 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="btnlist2 com-jianju">
|
<view class="btnlist2 com-jianju">
|
||||||
<u-row justify="start" gutter="18" custom-style="flex-wrap: wrap;">
|
<u-row justify="start" gutter="18" custom-style="flex-wrap: wrap;">
|
||||||
<u-col v-for="tlItem in toolBtnlist" span="3" @click="goto(tlItem.url)">
|
<u-col v-for="tlItem in toolBtnlist" span="3" @click="goto(tlItem.url)">
|
||||||
<view class="dlb-item">
|
<view class="dlb-item">
|
||||||
<image :src="tlItem.icon" style="height: 46rpx;width: 46rpx" mode="aspectFit"/>
|
<image :src="tlItem.icon" style="height: 46rpx;width: 46rpx" mode="aspectFit"/>
|
||||||
<view class="pt-20 font-26">{{tlItem.title}}</view>
|
<view class="pt-20 font-26">{{tlItem.title}}</view>
|
||||||
</view>
|
</view>
|
||||||
</u-col>
|
</u-col>
|
||||||
</u-row>
|
</u-row>
|
||||||
<view v-if="toolBtnlist.length == 0">
|
<view v-if="toolBtnlist.length == 0">
|
||||||
<tpx-empty size="sm"></tpx-empty>
|
<tpx-empty size="sm"></tpx-empty>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -109,7 +110,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { dealBtnMap } from "@/common/enum"
|
import { dealBtnMap } from "@/common/enum"
|
||||||
import * as apiService from "@/common/api"
|
import * as apiService from "@/common/api"
|
||||||
import { getAuthList, authCodeEnum } from "@/common/authCode"
|
import { getAuthList, authCodeEnum } from "@/common/authCode"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
@ -119,8 +120,8 @@
|
|||||||
tjList(){
|
tjList(){
|
||||||
let { orderStat } = this.staticInfo
|
let { orderStat } = this.staticInfo
|
||||||
let list = [
|
let list = [
|
||||||
{ title: '未接单', value: orderStat.waitTakeNum, key: "" },
|
{ title: '未接单', value: orderStat.waitTakeNum, key: "", url: 'tabBar/order/order?waybillStatType=1' },
|
||||||
{ title: '已接收', value: orderStat.takeNum, key: "" },
|
{ title: '已接收', value: orderStat.takeNum, key: "", url: 'tabBar/order/order?waybillStatType=2' },
|
||||||
{ title: '派送中', value: orderStat.dispNum, key: "" },
|
{ title: '派送中', value: orderStat.dispNum, key: "" },
|
||||||
{ title: '已签收', value: orderStat.signedNum, key: "" }
|
{ title: '已签收', value: orderStat.signedNum, key: "" }
|
||||||
]
|
]
|
||||||
@ -131,30 +132,30 @@
|
|||||||
let list = [
|
let list = [
|
||||||
{ title: '计提预估', subTitle: commStat.estMoney, icon: this.getCdnUrl(`home/jityugu.png`), url: '', code: authCodeEnum.jiTiYuGu },
|
{ title: '计提预估', subTitle: commStat.estMoney, icon: this.getCdnUrl(`home/jityugu.png`), url: '', code: authCodeEnum.jiTiYuGu },
|
||||||
{ title: '待回款', subTitle: commStat.waitPay, icon: this.getCdnUrl(`home/daihuikuan.png`), url: '', code: authCodeEnum.daiHuiKuan }
|
{ title: '待回款', subTitle: commStat.waitPay, icon: this.getCdnUrl(`home/daihuikuan.png`), url: '', code: authCodeEnum.daiHuiKuan }
|
||||||
]
|
]
|
||||||
list = getAuthList({ list, _thisPage: this })
|
|
||||||
return list
|
|
||||||
},
|
|
||||||
toolBtnlist(){
|
|
||||||
let list = [
|
|
||||||
{ ...dealBtnMap.lanShou },
|
|
||||||
{ ...dealBtnMap.shouHuo },
|
|
||||||
{ ...dealBtnMap.faJianScan },
|
|
||||||
{ ...dealBtnMap.daoJianScan },
|
|
||||||
{ ...dealBtnMap.yunDanLuRu },
|
|
||||||
{ ...dealBtnMap.qianShouScan },
|
|
||||||
{...dealBtnMap.fenBoScan},
|
|
||||||
{...dealBtnMap.paiJianScan},
|
|
||||||
{...dealBtnMap.yunDanXiuGai},
|
|
||||||
{ ...dealBtnMap.baoJiaShiSuan },
|
|
||||||
{ ...dealBtnMap.wenTiJian },
|
|
||||||
{ ...dealBtnMap.daoPaiScan },
|
|
||||||
{ ...dealBtnMap.woDeErWeiMa },
|
|
||||||
{ ...dealBtnMap.mianDanDayin },
|
|
||||||
{ ...dealBtnMap.kuaiJianGenZong }
|
|
||||||
]
|
|
||||||
list = getAuthList({ list, _thisPage: this })
|
list = getAuthList({ list, _thisPage: this })
|
||||||
return list
|
return list
|
||||||
|
},
|
||||||
|
toolBtnlist(){
|
||||||
|
let list = [
|
||||||
|
{ ...dealBtnMap.lanShou },
|
||||||
|
{ ...dealBtnMap.shouHuo },
|
||||||
|
{ ...dealBtnMap.faJianScan },
|
||||||
|
{ ...dealBtnMap.daoJianScan },
|
||||||
|
{ ...dealBtnMap.yunDanLuRu },
|
||||||
|
{ ...dealBtnMap.qianShouScan },
|
||||||
|
{...dealBtnMap.fenBoScan},
|
||||||
|
{...dealBtnMap.paiJianScan},
|
||||||
|
{...dealBtnMap.yunDanXiuGai},
|
||||||
|
{ ...dealBtnMap.baoJiaShiSuan },
|
||||||
|
{ ...dealBtnMap.wenTiJian },
|
||||||
|
{ ...dealBtnMap.daoPaiScan },
|
||||||
|
{ ...dealBtnMap.woDeErWeiMa },
|
||||||
|
{ ...dealBtnMap.mianDanDayin },
|
||||||
|
{ ...dealBtnMap.kuaiJianGenZong }
|
||||||
|
]
|
||||||
|
list = getAuthList({ list, _thisPage: this })
|
||||||
|
return list
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body>
|
<template v-slot:body>
|
||||||
<view class="pos-abt-all">
|
<view v-if="!baseLoading" class="pos-abt-all">
|
||||||
<tpx-scroll-view v-model:resObject="resData" :searchParam="searchParam" :getListFun="getListFun"
|
<tpx-scroll-view v-model:resObject="resData" :searchParam="searchParam" :getListFun="getListFun"
|
||||||
ref="listRef" :autoReload="false" @onListReload="listenListReload">
|
ref="listRef" :autoReload="false" @onListReload="listenListReload">
|
||||||
<view class="pgb-cont">
|
<view class="pgb-cont">
|
||||||
@ -74,8 +74,8 @@
|
|||||||
@click="handleDealItem(item, { type: 6 })" shape="circle" type="primary"
|
@click="handleDealItem(item, { type: 6 })" shape="circle" type="primary"
|
||||||
:plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">进仓单</u-button>
|
:plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">进仓单</u-button>
|
||||||
|
|
||||||
<template v-if="item.orderStatus == 0">
|
<template v-if="item.orderStatus == 0">
|
||||||
<u-button v-if="item.pickupMethod == 2" @click="handleDealItem(item, { type: 7 })" shape="circle"
|
<u-button v-if="item.pickupMethod == 2" @click="handleDealItem(item, { type: 7 })" shape="circle"
|
||||||
type="primary" :plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">转单</u-button>
|
type="primary" :plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">转单</u-button>
|
||||||
<u-button @click="handleDealItem(item, { type: 2 })" shape="circle"
|
<u-button @click="handleDealItem(item, { type: 2 })" shape="circle"
|
||||||
type="primary" :plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">接单</u-button>
|
type="primary" :plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">接单</u-button>
|
||||||
@ -109,19 +109,19 @@
|
|||||||
<u-textarea v-model="cancelModal.data.orderRemark" border="surround" height="120" placeholder="请输入"
|
<u-textarea v-model="cancelModal.data.orderRemark" border="surround" height="120" placeholder="请输入"
|
||||||
maxlength="300" count></u-textarea>
|
maxlength="300" count></u-textarea>
|
||||||
</template>
|
</template>
|
||||||
</tpx-com-dialog>
|
</tpx-com-dialog>
|
||||||
|
|
||||||
<tpx-com-dialog v-model:show="zhuanDanModal.show" ref="zhuanDanRef" title="转单">
|
<tpx-com-dialog v-model:show="zhuanDanModal.show" ref="zhuanDanRef" title="转单">
|
||||||
<template v-slot:body>
|
<template v-slot:body>
|
||||||
<u-row justify="between" align="center">
|
<u-row justify="between" align="center">
|
||||||
<view style="width: 130rpx;">指定人员</view>
|
<view style="width: 130rpx;">指定人员</view>
|
||||||
<view style="width: 300rpx;">
|
<view style="width: 300rpx;">
|
||||||
<tpx-select v-model:value="zhuanDanModal.data.takePieceEmployeeCode" placeholder="请选择指定人员" mode="drop"
|
<tpx-select v-model:value="zhuanDanModal.data.takePieceEmployeeCode" placeholder="请选择指定人员" mode="drop"
|
||||||
:isWhite="true" v-model:resObject="shoupaiRes" :getListFun="getRSDStaffList" :transKeyVal="{valKey: 'empCode',titleKey: 'empName'}"
|
:isWhite="true" v-model:resObject="shoupaiRes" :getListFun="getRSDStaffList" :transKeyVal="{valKey: 'empCode',titleKey: 'empName'}"
|
||||||
></tpx-select>
|
></tpx-select>
|
||||||
</view>
|
</view>
|
||||||
</u-row>
|
</u-row>
|
||||||
</template>
|
</template>
|
||||||
</tpx-com-dialog>
|
</tpx-com-dialog>
|
||||||
</tpx-page>
|
</tpx-page>
|
||||||
</template>
|
</template>
|
||||||
@ -174,7 +174,8 @@
|
|||||||
let {
|
let {
|
||||||
dicData
|
dicData
|
||||||
} = this.$store.getters
|
} = this.$store.getters
|
||||||
return {
|
return {
|
||||||
|
baseLoading: true,
|
||||||
authCodeEnum,
|
authCodeEnum,
|
||||||
...JSON.parse(JSON.stringify({
|
...JSON.parse(JSON.stringify({
|
||||||
dateRangeList
|
dateRangeList
|
||||||
@ -193,19 +194,19 @@
|
|||||||
commStat: {},
|
commStat: {},
|
||||||
orderStat: {},
|
orderStat: {},
|
||||||
},
|
},
|
||||||
resData: { list: [] },
|
resData: { list: [] },
|
||||||
shoupaiRes: { list: [] },
|
shoupaiRes: { list: [] },
|
||||||
cancelModal: {
|
cancelModal: {
|
||||||
show: false,
|
show: false,
|
||||||
data: {
|
data: {
|
||||||
orderRemark: ''
|
orderRemark: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
zhuanDanModal: {
|
zhuanDanModal: {
|
||||||
show: false,
|
show: false,
|
||||||
data: {
|
data: {
|
||||||
takePieceEmployeeCode: ''
|
takePieceEmployeeCode: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -220,10 +221,15 @@
|
|||||||
this.initData()
|
this.initData()
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.queryOption = option
|
this.queryOption = option
|
||||||
|
if(typeof this.queryOption.waybillStatType != 'undefined') {
|
||||||
|
this.searchParam.params.waybillStatType = this.queryOption.waybillStatType
|
||||||
|
}
|
||||||
|
// 保证参数初始化成功后
|
||||||
|
this.baseLoading = false
|
||||||
},
|
},
|
||||||
onUnload() {},
|
onUnload() {},
|
||||||
methods: {
|
methods: {
|
||||||
getRSDStaffList: apiService.getRSDStaffList,
|
getRSDStaffList: apiService.getRSDStaffList,
|
||||||
transSearchPm(param) {
|
transSearchPm(param) {
|
||||||
let cpParam = JSON.parse(JSON.stringify(param))
|
let cpParam = JSON.parse(JSON.stringify(param))
|
||||||
@ -290,9 +296,9 @@
|
|||||||
if (canBl) {
|
if (canBl) {
|
||||||
await apiService.cancelOrder({
|
await apiService.cancelOrder({
|
||||||
orderSn: item.orderSn,
|
orderSn: item.orderSn,
|
||||||
...this.cancelModal.data,
|
...this.cancelModal.data,
|
||||||
_loading: true
|
_loading: true
|
||||||
})
|
})
|
||||||
this.showToast('操作成功')
|
this.showToast('操作成功')
|
||||||
this.triggerListReload()
|
this.triggerListReload()
|
||||||
}
|
}
|
||||||
@ -307,19 +313,19 @@
|
|||||||
break;
|
break;
|
||||||
case 6: // 进仓单详情
|
case 6: // 进仓单详情
|
||||||
this.goto(`warehousing/detail${itemQuery}&inNo=${item.intoWarehouseBillCode}`)
|
this.goto(`warehousing/detail${itemQuery}&inNo=${item.intoWarehouseBillCode}`)
|
||||||
break;
|
break;
|
||||||
case 7: // 转单
|
case 7: // 转单
|
||||||
let zhdBl = await this.$refs.zhuanDanRef.getConfirmResult()
|
let zhdBl = await this.$refs.zhuanDanRef.getConfirmResult()
|
||||||
if (zhdBl) {
|
if (zhdBl) {
|
||||||
await apiService.assignTakeMan({
|
await apiService.assignTakeMan({
|
||||||
orderSn: item.orderSn,
|
orderSn: item.orderSn,
|
||||||
...this.zhuanDanModal.data,
|
...this.zhuanDanModal.data,
|
||||||
_loading: true
|
_loading: true
|
||||||
})
|
})
|
||||||
this.showToast('操作成功')
|
this.showToast('操作成功')
|
||||||
this.triggerListReload()
|
this.triggerListReload()
|
||||||
}
|
}
|
||||||
this.zhuanDanModal.show = false
|
this.zhuanDanModal.show = false
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user