uu
This commit is contained in:
parent
2631b4fc78
commit
e8256e5402
@ -2,56 +2,54 @@
|
|||||||
<tpx-page>
|
<tpx-page>
|
||||||
<tpx-layout>
|
<tpx-layout>
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<view class="search_nav_bar">
|
<view class="customer_nav_bar">
|
||||||
<view class="com-jianju pt-30">
|
<view class="com-jianju pt-30">
|
||||||
<!-- 关键字搜索框 -->
|
<!-- 关键字搜索框 -->
|
||||||
<tpx-search placeholder="请输入订单号/运单号/进仓单号/姓名/手机" v-model:value="searchParam.searchValue" @change="handleSearch" bgColor="#FFF" :timelyTrigger="false"></tpx-search>
|
<tpx-search placeholder="请输入订单号/运单号/进仓单号/姓名/手机" v-model:value="searchParam.searchValue"
|
||||||
|
@change="handleSearch" bgColor="#FFF" :timelyTrigger="false"></tpx-search>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="com-jianju" style="padding-top: 30rpx;">
|
<view class="com-jianju" style="padding-top: 30rpx;">
|
||||||
<u-row justify="between" align="top">
|
<u-row justify="between" align="top">
|
||||||
<u-col span="12">
|
<u-col span="12">
|
||||||
<tpx-tabs :list="dicData.emis_wsin_tab" v-model:value="searchParam.params.queryStatusType"
|
<tpx-tabs :list="dicData.emis_wsin_tab"
|
||||||
v-slot="curOrdTab"
|
v-model:value="searchParam.params.queryStatusType" v-slot="curOrdTab">
|
||||||
>
|
|
||||||
<text slot>
|
<text slot>
|
||||||
</text>
|
</text>
|
||||||
</tpx-tabs>
|
</tpx-tabs>
|
||||||
</u-col>
|
</u-col>
|
||||||
<u-col v-if="false" span="2">
|
<u-col v-if="false" span="2">
|
||||||
<!-- 更多查询条件 -->
|
<!-- 更多查询条件 -->
|
||||||
<u-button @click="handleDialogClick(moreSearchModel)" :hairline="false" shape="circle" size="mini" custom-style="border-radius: 23rpx;font-size: 26rpx;height: 50rpx;">
|
<u-button @click="handleDialogClick(moreSearchModel)" :hairline="false" shape="circle"
|
||||||
|
size="mini" custom-style="border-radius: 23rpx;font-size: 26rpx;height: 50rpx;">
|
||||||
<u-row justify="center">
|
<u-row justify="center">
|
||||||
<view :style="'padding-right: 4rpx;white-space: nowrap;' + (hasExtSchParam?'color: #B12D29;':'color: #666;')">
|
<view
|
||||||
|
:style="'padding-right: 4rpx;white-space: nowrap;' + (hasExtSchParam?'color: #B12D29;':'color: #666;')">
|
||||||
{{hasExtSchParam?'已':''}}筛选
|
{{hasExtSchParam?'已':''}}筛选
|
||||||
</view>
|
</view>
|
||||||
<u-icon :name="moreSearchModel.show?'arrow-up-fill':'arrow-down-fill'"
|
<u-icon :name="moreSearchModel.show?'arrow-up-fill':'arrow-down-fill'"
|
||||||
:color="(hasExtSchParam?'#B12D29':'#666')" size="18" custom-style="margin-top: 2rpx;"
|
:color="(hasExtSchParam?'#B12D29':'#666')" size="18"
|
||||||
></u-icon>
|
custom-style="margin-top: 2rpx;"></u-icon>
|
||||||
</u-row>
|
</u-row>
|
||||||
</u-button>
|
</u-button>
|
||||||
</u-col>
|
</u-col>
|
||||||
</u-row>
|
</u-row>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 状态搜索 -->
|
<!-- 状态搜索 -->
|
||||||
<view v-if="moreSearchModel.show" class="search-more-panel">
|
<view v-if="moreSearchModel.show" class="search-more-panel">
|
||||||
<view class="smp-body slideInDown animated fast">
|
<view class="smp-body slideInDown animated fast">
|
||||||
<view class="smp-content">
|
<view class="smp-content">
|
||||||
<view class="pos-abt-all" style="overflow-y: auto;">
|
<view class="pos-abt-all" style="overflow-y: auto;">
|
||||||
<view style="padding: 0 0 30rpx 0">
|
<view style="padding: 0 0 30rpx 0"></view>
|
||||||
<view>
|
|
||||||
<u-text text="时间范围" size="28" :bold="true" margin="20rpx 0 20rpx 0"></u-text>
|
|
||||||
<tpx-date-input v-model:value="moreSearchModel.data._date" placeholder="请选择时间"></tpx-date-input>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="smp-foot">
|
<view class="smp-foot">
|
||||||
<u-row gutter="20" justify="between">
|
<u-row gutter="20" justify="between">
|
||||||
<u-button @click="handleResetTempSearch()" shape="circle">重置</u-button>
|
<u-button @click="handleResetTempSearch()" shape="circle">重置</u-button>
|
||||||
<view style="width: 40rpx;"></view>
|
<view style="width: 40rpx;"></view>
|
||||||
<u-button @click="handleConfirmTempSearch()" shape="circle" type="primary">确认</u-button>
|
<u-button @click="handleConfirmTempSearch()" shape="circle"
|
||||||
|
type="primary">确认</u-button>
|
||||||
</u-row>
|
</u-row>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -61,39 +59,63 @@
|
|||||||
<template v-slot:body>
|
<template v-slot:body>
|
||||||
<view class="pos-abt-all">
|
<view 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"
|
ref="listRef">
|
||||||
>
|
|
||||||
<view class="pgb-cont">
|
<view class="pgb-cont">
|
||||||
<!-- 列表数据 -->
|
<!-- 列表数据 -->
|
||||||
<view v-for="(item) in resData.list" class="ord-list-item">
|
<view v-for="(item) in resData.list" class="ord-list-item">
|
||||||
<view class="mt-10">
|
<u-row justify="between">
|
||||||
<bpd-send-reciever-tmp :value="item" :showInfoBtn="false"></bpd-send-reciever-tmp>
|
<text>进仓单号:{{item.inNo}}</text>
|
||||||
|
<view class="com-tag-grey font-26">
|
||||||
|
<tetx v-if="item.status == 0">未入仓</tetx>
|
||||||
|
<tetx v-if="item.status == 1">已入仓</tetx>
|
||||||
|
<tetx v-if="item.status == 2">部分入仓</tetx>
|
||||||
|
<tetx v-if="item.status == 3">全部入仓</tetx>
|
||||||
|
</view>
|
||||||
|
</u-row>
|
||||||
|
<u-text margin="5rpx 0" :text="item.waybillDetail.goodsInfo"
|
||||||
|
size="26" color="#999"></u-text>
|
||||||
|
<view class="mt-10" @click="handleGoDetail(item)">
|
||||||
|
<u-row justify="between" align="center">
|
||||||
|
<u-row custom-style="flex:1;" justify="between">
|
||||||
|
<u-col span="4">
|
||||||
|
<u-text :text="(item.waybillDetail.sendCountryName + item.waybillDetail.sendProvinceName)||'-'" size="30" :bold="true" align="center"></u-text>
|
||||||
|
<u-text :text="item.waybillDetail.sendName" size="26" color="#999" margin="20rpx 0 0 0"
|
||||||
|
align="center"></u-text>
|
||||||
|
</u-col>
|
||||||
|
<u-col span="4" justify="center" align="center"
|
||||||
|
custom-style="text-align: center;">
|
||||||
|
<image style="width: 70rpx;height: 14rpx;"
|
||||||
|
:src="getCdnUrl('search/toline.png')">
|
||||||
|
</image>
|
||||||
|
</u-col>
|
||||||
|
<u-col span="4">
|
||||||
|
<u-text :text="(item.waybillDetail.receiveCountryName + item.waybillDetail.receiveProvinceName)||'-'" size="30" :bold="true" align="center"></u-text>
|
||||||
|
<u-text :text="item.waybillDetail.receiveName" size="26" color="#999" margin="20rpx 0 0 0"
|
||||||
|
align="center"></u-text>
|
||||||
|
</u-col>
|
||||||
|
</u-row>
|
||||||
|
<!-- <u-row custom-style="margin-left:20rpx;">
|
||||||
|
<u-image shape="square" width="160" height="160" radius="10"></u-image>
|
||||||
|
</u-row> -->
|
||||||
|
</u-row>
|
||||||
</view>
|
</view>
|
||||||
|
<u-row custom-style="margin-top:30rpx;" justify="between">
|
||||||
|
<view>
|
||||||
|
<u-text :text="`订单号:${item.orderSn}`" color="#999" size="26"></u-text>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<u-text :text="`${item.createTime}`" color="#999" size="26"></u-text>
|
||||||
|
</view>
|
||||||
|
</u-row>
|
||||||
<u-line color="#DEDEDE" margin="30rpx 0 0 0"></u-line>
|
<u-line color="#DEDEDE" margin="30rpx 0 0 0"></u-line>
|
||||||
<u-row justify="end" custom-style="margin-top:20rpx;">
|
<u-row justify="end" custom-style="margin-top:20rpx;">
|
||||||
<view style="display: inline-block;white-space: nowrap;">
|
<u-row>
|
||||||
<u-row>
|
<u-button shape="circle" type="primary" :plain="true"
|
||||||
<!-- 仓库收货(待揽收): -->
|
@click="goto(`warehousing/pdfPreview?id=${112}`)"
|
||||||
<u-button v-if="(item.orderStatus == 1 && item.waybillStatus == 0)"
|
custom-style="width: 180rpx;box-sizing: content-box;height: 54rpx;margin-left: 12rpx;">下载打印PDF</u-button>
|
||||||
@click="handleDealItem(item, { type: 4 })" shape="circle" type="primary" :plain="true"
|
<u-button v-if="item.confirmStatus!=1" shape="circle" type="primary" @click="handleGoDetail(item)"
|
||||||
custom-style="height: 54rpx;margin-left: 12rpx;">进仓确认</u-button>
|
custom-style="width: 100rpx;box-sizing: content-box;height: 54rpx;margin-left: 12rpx;">去确认</u-button>
|
||||||
|
</u-row>
|
||||||
<!-- 待接单 -->
|
|
||||||
<u-button v-if="(item.orderStatus == 0)"
|
|
||||||
@click="handleDealItem(item, { type: 2 })" shape="circle" type="primary"
|
|
||||||
custom-style="height: 54rpx;margin-left: 12rpx;">再来一单</u-button>
|
|
||||||
|
|
||||||
<!-- 待接单 -->
|
|
||||||
<u-button v-if="(item.orderStatus == 0)"
|
|
||||||
@click="handleDealItem(item, { type: 3 })" shape="circle" type="primary"
|
|
||||||
:plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">取消</u-button>
|
|
||||||
|
|
||||||
<!-- 待付款 -->
|
|
||||||
<u-button v-if="(item.paymentStatus == 0)"
|
|
||||||
@click="handleDealItem(item, { type: 5 })" shape="circle" type="primary" :plain="true"
|
|
||||||
custom-style="height: 54rpx;margin-left: 12rpx;">去付款</u-button>
|
|
||||||
</u-row>
|
|
||||||
</view>
|
|
||||||
</u-row>
|
</u-row>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -101,24 +123,26 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</tpx-layout>
|
</tpx-layout>
|
||||||
|
|
||||||
</tpx-page>
|
</tpx-page>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import * as apiService from "@/common/api"
|
import * as apiService from "@/common/api"
|
||||||
import BpdSendRecieverTmp from "@/components/buns-post-detail-templates/bpd-send-reciever-tmp"
|
import BpdSendRecieverTmp from "@/components/buns-post-detail-templates/bpd-send-reciever-tmp"
|
||||||
import { deepAssign } from "@/common/util"
|
import {
|
||||||
|
deepAssign
|
||||||
|
} from "@/common/util"
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
dicData() {
|
dicData() {
|
||||||
return this.$store.getters.dicData
|
return this.$store.getters.dicData
|
||||||
},
|
},
|
||||||
hasExtSchParam() {
|
hasExtSchParam() {
|
||||||
let hasExt = false
|
let hasExt = false
|
||||||
if(
|
if (
|
||||||
this.searchParam._date.length > 0
|
this.searchParam._date.length > 0
|
||||||
) {
|
) {
|
||||||
hasExt = true
|
hasExt = true
|
||||||
@ -126,21 +150,16 @@
|
|||||||
return hasExt
|
return hasExt
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
components: { BpdSendRecieverTmp },
|
components: {
|
||||||
|
BpdSendRecieverTmp
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
let { dicData } = this.$store.getters
|
let { dicData } = this.$store.getters
|
||||||
return {
|
return {
|
||||||
showCladar: false,
|
|
||||||
moreSearchModel: {
|
moreSearchModel: {
|
||||||
data: {},
|
data: {},
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
cancelModal: {
|
|
||||||
show: false,
|
|
||||||
data: {
|
|
||||||
orderRemark: ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
searchParam: {
|
searchParam: {
|
||||||
searchValue: '',
|
searchValue: '',
|
||||||
_date: [],
|
_date: [],
|
||||||
@ -148,42 +167,40 @@
|
|||||||
queryStatusType: dicData.emis_wsin_tab?.[0]?.val,
|
queryStatusType: dicData.emis_wsin_tab?.[0]?.val,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
queryOption: {
|
queryOption: {},
|
||||||
|
resData: {
|
||||||
},
|
list: []
|
||||||
resData: { list: [] }
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {},
|
||||||
},
|
onShow() {
|
||||||
onShow(){
|
|
||||||
this.triggerListReload()
|
this.triggerListReload()
|
||||||
this.initData()
|
this.initData()
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.queryOption = option
|
this.queryOption = option
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {},
|
||||||
},
|
methods: {
|
||||||
methods: {
|
transSearchPm(param) {
|
||||||
transSearchPm(param){
|
|
||||||
let cpParam = JSON.parse(JSON.stringify(param))
|
let cpParam = JSON.parse(JSON.stringify(param))
|
||||||
cpParam.params.beginDate = cpParam?._date?.[0]
|
cpParam.params.beginDate = cpParam?._date?.[0]
|
||||||
cpParam.params.endDate = cpParam?._date?.[1]
|
cpParam.params.endDate = cpParam?._date?.[1]
|
||||||
return cpParam
|
return cpParam
|
||||||
},
|
},
|
||||||
async getListFun(param){
|
async getListFun(param) {
|
||||||
let cpParam = this.transSearchPm(param)
|
let cpParam = this.transSearchPm(param)
|
||||||
let res = await apiService.getWarehouseInList(cpParam)
|
let res = await apiService.getWarehouseInList(cpParam)
|
||||||
return res
|
return res
|
||||||
},
|
},
|
||||||
initData(){
|
initData() {
|
||||||
|
|
||||||
},
|
},
|
||||||
async handleDealItem(item, deal = { type: '1' }) {
|
async handleDealItem(item, deal = { type: '1' }){
|
||||||
// 下载 exportWarehouseInTpl
|
// 下载 exportWarehouseInTpl
|
||||||
let itemQuery = `?billCode=${item.billCode || ''}&orderSn=${item.orderSn || ''}`
|
let itemQuery = `?billCode=${item.billCode || ''}&orderSn=${item.orderSn || ''}`
|
||||||
switch (deal.type){
|
switch (deal.type) {
|
||||||
case 1: // 运单详情
|
case 1: // 运单详情
|
||||||
this.goto(`post/detail${itemQuery}`)
|
this.goto(`post/detail${itemQuery}`)
|
||||||
break;
|
break;
|
||||||
@ -191,23 +208,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSearch(){
|
handleSearch() {
|
||||||
setTimeout(()=> {
|
setTimeout(() => {
|
||||||
this.triggerListReload()
|
this.triggerListReload()
|
||||||
}, 300)
|
}, 300)
|
||||||
},
|
},
|
||||||
triggerListReload(){
|
triggerListReload() {
|
||||||
this?.$refs?.listRef?.getDataList?.(true) // 重置到第一页数据
|
this?.$refs?.listRef?.getDataList?.(true) // 重置到第一页数据
|
||||||
},
|
},
|
||||||
handleDialogClick(curModal){
|
handleDialogClick(curModal) {
|
||||||
this.moreSearchModel.data = JSON.parse(JSON.stringify(this.searchParam))
|
this.moreSearchModel.data = JSON.parse(JSON.stringify(this.searchParam))
|
||||||
this.moreSearchModel.show = !this.moreSearchModel.show
|
this.moreSearchModel.show = !this.moreSearchModel.show
|
||||||
},
|
},
|
||||||
handleResetTempSearch(){
|
handleResetTempSearch() {
|
||||||
let data = this.moreSearchModel.data
|
let data = this.moreSearchModel.data
|
||||||
data._date = []
|
data._date = []
|
||||||
},
|
},
|
||||||
handleConfirmTempSearch(){
|
handleConfirmTempSearch() {
|
||||||
deepAssign(this.searchParam, this.moreSearchModel.data)
|
deepAssign(this.searchParam, this.moreSearchModel.data)
|
||||||
this.moreSearchModel.show = false
|
this.moreSearchModel.show = false
|
||||||
}
|
}
|
||||||
@ -221,14 +238,15 @@
|
|||||||
background-color: #F6F6F6;
|
background-color: #F6F6F6;
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
}
|
}
|
||||||
.search_nav_bar {
|
.customer_nav_bar {
|
||||||
background-color: #fff;
|
padding-top: 30rpx;
|
||||||
|
background-color: #FFF;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.pgb-cont{
|
.pgb-cont{
|
||||||
padding: 30rpx 30rpx 0 30rpx;
|
padding: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ord-list-item{
|
.ord-list-item{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user