update: 收货待审核详情页 实际收款价格 增加非空校验
This commit is contained in:
parent
a1359a4224
commit
5a03d65506
|
@ -114,7 +114,7 @@ const handleOk = (v: any) => {
|
||||||
|
|
||||||
const gridList1 = reactive([
|
const gridList1 = reactive([
|
||||||
{
|
{
|
||||||
name: "总收入",
|
name: "收款已收总金额",
|
||||||
enName: "totalIncome",
|
enName: "totalIncome",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "¥",
|
unit: "¥",
|
||||||
|
@ -130,16 +130,15 @@ const gridList1 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "其他收入",
|
name: "其他收款",
|
||||||
enName: "totalOther",
|
enName: "totalOther",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "¥",
|
unit: "¥",
|
||||||
isBefore: true,
|
isBefore: true,
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{},
|
|
||||||
{
|
{
|
||||||
name: "总支出",
|
name: "付款已付总金额",
|
||||||
enName: "totalExpenditure",
|
enName: "totalExpenditure",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "¥",
|
unit: "¥",
|
||||||
|
@ -155,7 +154,7 @@ const gridList1 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "其他支出",
|
name: "其他付款",
|
||||||
enName: "totalOther",
|
enName: "totalOther",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "¥",
|
unit: "¥",
|
||||||
|
@ -163,7 +162,7 @@ const gridList1 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "杂费支出",
|
name: "杂费已付总金额",
|
||||||
enName: "totalIncidentals",
|
enName: "totalIncidentals",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "¥",
|
unit: "¥",
|
||||||
|
@ -171,7 +170,7 @@ const gridList1 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "运费支出",
|
name: "运费已付总金额",
|
||||||
enName: "totalFreight",
|
enName: "totalFreight",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "¥",
|
unit: "¥",
|
||||||
|
@ -181,7 +180,7 @@ const gridList1 = reactive([
|
||||||
]);
|
]);
|
||||||
const gridList2 = reactive([
|
const gridList2 = reactive([
|
||||||
{
|
{
|
||||||
name: "出货实收金额",
|
name: "出货已收总金额",
|
||||||
enName: "actualReceived",
|
enName: "actualReceived",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "¥",
|
unit: "¥",
|
||||||
|
@ -190,7 +189,7 @@ const gridList2 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "出货应收金额",
|
name: "出货未收总金额",
|
||||||
enName: "receivable",
|
enName: "receivable",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "¥",
|
unit: "¥",
|
||||||
|
@ -206,11 +205,7 @@ const gridList2 = reactive([
|
||||||
decimal: 0,
|
decimal: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "",
|
name: "出货总净重",
|
||||||
num: "",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "出货总重量",
|
|
||||||
enName: "outTotalWeight",
|
enName: "outTotalWeight",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
|
@ -218,7 +213,7 @@ const gridList2 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "出货净重(客户)",
|
name: "出货结算总净重(含扣杂)",
|
||||||
enName: "customerTotalWeight",
|
enName: "customerTotalWeight",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
|
@ -226,7 +221,7 @@ const gridList2 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "出货重量(已结)",
|
name: "出货已收总净重",
|
||||||
enName: "payOutTotalWeight",
|
enName: "payOutTotalWeight",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
|
@ -234,7 +229,7 @@ const gridList2 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "结算总重量",
|
name: "出货结算总净重",
|
||||||
enName: "totalSettlement",
|
enName: "totalSettlement",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
|
@ -242,7 +237,7 @@ const gridList2 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "出货重量(未结)",
|
name: "出货未收总净重",
|
||||||
enName: "unPayOutTotalWeight",
|
enName: "unPayOutTotalWeight",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
|
@ -250,7 +245,7 @@ const gridList2 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "结算重量(已结)",
|
name: "已收结算总净重",
|
||||||
enName: "payTotalSettlement",
|
enName: "payTotalSettlement",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
|
@ -266,7 +261,7 @@ const gridList2 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "结算总量(未结)",
|
name: "未收结算总净重",
|
||||||
enName: "unPayTotalSettlement",
|
enName: "unPayTotalSettlement",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
|
@ -276,7 +271,7 @@ const gridList2 = reactive([
|
||||||
]);
|
]);
|
||||||
const gridList3 = reactive([
|
const gridList3 = reactive([
|
||||||
{
|
{
|
||||||
name: "收货总重量",
|
name: "收货总净重",
|
||||||
enName: "totalWeight",
|
enName: "totalWeight",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
|
@ -294,7 +289,7 @@ const gridList3 = reactive([
|
||||||
decimal: 0,
|
decimal: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "收货重量(已付)",
|
name: "收货已付总净重",
|
||||||
enName: "payTotalWeight",
|
enName: "payTotalWeight",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
|
@ -302,7 +297,7 @@ const gridList3 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "收货实付金额",
|
name: "收货已付总金额",
|
||||||
enName: "paymentTotalPrice",
|
enName: "paymentTotalPrice",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "¥",
|
unit: "¥",
|
||||||
|
@ -310,7 +305,7 @@ const gridList3 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "收货重量(未付)",
|
name: "收货未付总净重",
|
||||||
enName: "unPayTotalWeight",
|
enName: "unPayTotalWeight",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
|
@ -318,7 +313,7 @@ const gridList3 = reactive([
|
||||||
decimal: 2,
|
decimal: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "收货应付金额",
|
name: "收货未付总金额",
|
||||||
enName: "unPaymentTotalPrice",
|
enName: "unPaymentTotalPrice",
|
||||||
num: "",
|
num: "",
|
||||||
unit: "¥",
|
unit: "¥",
|
||||||
|
@ -462,7 +457,7 @@ onMounted(() => {
|
||||||
.box {
|
.box {
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(1, 1fr);
|
||||||
flex: 1;
|
flex: 1;
|
||||||
.highLight {
|
.highLight {
|
||||||
color: rgba(236, 15, 62, 1);
|
color: rgba(236, 15, 62, 1);
|
||||||
|
|
|
@ -149,14 +149,14 @@ const tableTitleList = reactive([
|
||||||
name: "客户",
|
name: "客户",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "出货总净重/kg",
|
name: "结算总净重/kg",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "结算金额",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "实际收款",
|
name: "实际收款",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "实收款",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "数量",
|
name: "数量",
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<NavBar :count="0" :title="'配置'"></NavBar>
|
<NavBar :count="0" :title="'配置'"></NavBar>
|
||||||
<Box
|
<Box v-if="isShowModule(list[0].child.concat(list[1].child))" :isShow="true">
|
||||||
v-if="
|
|
||||||
isShowModule(list[0].child.concat(list[1].child))
|
|
||||||
"
|
|
||||||
:isShow="true"
|
|
||||||
>
|
|
||||||
<view
|
<view
|
||||||
v-for="(item, index) in list"
|
v-for="(item, index) in list"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
@ -15,11 +10,10 @@
|
||||||
<Title :title="item.title" />
|
<Title :title="item.title" />
|
||||||
</view>
|
</view>
|
||||||
<view class="box-content">
|
<view class="box-content">
|
||||||
|
<block v-for="(child, index) in item.child" :key="index">
|
||||||
<view
|
<view
|
||||||
v-for="(child, index) in item.child"
|
|
||||||
:key="index"
|
|
||||||
@click="(child as any).fn(child)"
|
@click="(child as any).fn(child)"
|
||||||
v-show="isShowModule([{ title: child.title }])"
|
v-if="isShowModule([{ title: child.title }])"
|
||||||
:class="{ box: isShowModule([{ title: child.title }]) }"
|
:class="{ box: isShowModule([{ title: child.title }]) }"
|
||||||
>
|
>
|
||||||
<view v-if="isShowModule([{ title: child.title }])">
|
<view v-if="isShowModule([{ title: child.title }])">
|
||||||
|
@ -34,6 +28,7 @@
|
||||||
child.title
|
child.title
|
||||||
}}</view>
|
}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
|
@ -15,11 +15,10 @@
|
||||||
<Title :title="item.title" />
|
<Title :title="item.title" />
|
||||||
</view>
|
</view>
|
||||||
<view class="box-content">
|
<view class="box-content">
|
||||||
|
<block v-for="(child, index) in item.child" :key="index">
|
||||||
<view
|
<view
|
||||||
v-for="(child, index) in item.child"
|
|
||||||
:key="index"
|
|
||||||
@click="(child as any).fn(child)"
|
@click="(child as any).fn(child)"
|
||||||
v-show="isShowModule([{ title: child.title }])"
|
v-if="isShowModule([{ title: child.title }])"
|
||||||
:class="{ box: isShowModule([{ title: child.title }]) }"
|
:class="{ box: isShowModule([{ title: child.title }]) }"
|
||||||
>
|
>
|
||||||
<view v-if="isShowModule([{ title: child.title }])">
|
<view v-if="isShowModule([{ title: child.title }])">
|
||||||
|
@ -34,6 +33,7 @@
|
||||||
child.title
|
child.title
|
||||||
}}</view>
|
}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
|
@ -23,25 +23,39 @@
|
||||||
</view>
|
</view>
|
||||||
<!-- 数据汇总面板 -->
|
<!-- 数据汇总面板 -->
|
||||||
<view class="summary">
|
<view class="summary">
|
||||||
<view class="panel" v-for="(item, index) in summaryList" :key="index">
|
<block v-for="(item, index) in summaryList" :key="index">
|
||||||
<image
|
<view class="panel" v-if="isShowModule([{ title: item.title }])">
|
||||||
:src="`${url}/static/pages/${item.imgUrl}`"
|
<image :src="`${url}/static/pages/${item.imgUrl}`" />
|
||||||
/>
|
|
||||||
<view class="box">
|
<view class="box">
|
||||||
<view class="num">{{ formatMoney(item.num, 2) }}</view>
|
<view class="num">{{ formatMoney(item.num, 2) }}</view>
|
||||||
<view class="title">{{ item.title }}</view>
|
<view class="title">{{ item.title }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
</block>
|
||||||
|
<up-empty
|
||||||
|
v-if="!isShowModule(summaryList)"
|
||||||
|
mode="permission"
|
||||||
|
icon="http://cdn.uviewui.com/uview/empty/permission.png"
|
||||||
|
:text="'暂无相关权限, 请联系管理员'"
|
||||||
|
>
|
||||||
|
</up-empty>
|
||||||
</view>
|
</view>
|
||||||
<!-- 其他核心模块 -->
|
<!-- 其他核心模块 -->
|
||||||
<view class="core-content">
|
<view class="core-content">
|
||||||
<view>
|
<view>
|
||||||
<text class="title">收货入库</text>
|
<text class="title">收货入库</text>
|
||||||
<up-grid :border="false">
|
<up-grid :border="false">
|
||||||
|
<up-empty
|
||||||
|
v-if="!isShowModule(stateNew.receiveList)"
|
||||||
|
mode="permission"
|
||||||
|
icon="http://cdn.uviewui.com/uview/empty/permission.png"
|
||||||
|
:text="'暂无相关权限, 请联系管理员'"
|
||||||
|
>
|
||||||
|
</up-empty>
|
||||||
|
<block v-for="(item, index) in stateNew.receiveList" :key="index">
|
||||||
<up-grid-item
|
<up-grid-item
|
||||||
v-for="(item, index) in stateNew.receiveList"
|
|
||||||
:key="index"
|
|
||||||
@click="handleClick(item)"
|
@click="handleClick(item)"
|
||||||
|
v-if="isShowModule([{ title: item.title }])"
|
||||||
>
|
>
|
||||||
<up-badge
|
<up-badge
|
||||||
max="99"
|
max="99"
|
||||||
|
@ -56,15 +70,23 @@
|
||||||
></up-image>
|
></up-image>
|
||||||
<view class="name">{{ item.title }}</view>
|
<view class="name">{{ item.title }}</view>
|
||||||
</up-grid-item>
|
</up-grid-item>
|
||||||
|
</block>
|
||||||
</up-grid>
|
</up-grid>
|
||||||
</view>
|
</view>
|
||||||
<view style="margin: 30rpx 0rpx">
|
<view style="margin: 30rpx 0rpx">
|
||||||
<text class="title title-shipment">出货销售</text>
|
<text class="title title-shipment">出货销售</text>
|
||||||
<up-grid :border="false">
|
<up-grid :border="false">
|
||||||
|
<up-empty
|
||||||
|
v-if="!isShowModule(stateNew.shipmentList)"
|
||||||
|
mode="permission"
|
||||||
|
icon="http://cdn.uviewui.com/uview/empty/permission.png"
|
||||||
|
:text="'暂无相关权限, 请联系管理员'"
|
||||||
|
>
|
||||||
|
</up-empty>
|
||||||
|
<block v-for="(item, index) in stateNew.shipmentList" :key="index">
|
||||||
<up-grid-item
|
<up-grid-item
|
||||||
v-for="(item, index) in stateNew.shipmentList"
|
|
||||||
:key="index"
|
|
||||||
@click="handleClick(item)"
|
@click="handleClick(item)"
|
||||||
|
v-if="isShowModule([{ title: item.title }])"
|
||||||
>
|
>
|
||||||
<up-badge
|
<up-badge
|
||||||
max="99"
|
max="99"
|
||||||
|
@ -79,6 +101,7 @@
|
||||||
></up-image>
|
></up-image>
|
||||||
<view class="name">{{ item.title }}</view>
|
<view class="name">{{ item.title }}</view>
|
||||||
</up-grid-item>
|
</up-grid-item>
|
||||||
|
</block>
|
||||||
</up-grid>
|
</up-grid>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -151,7 +174,7 @@ const summaryList = reactive([
|
||||||
imgUrl: "01.png",
|
imgUrl: "01.png",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "收货总支出/元",
|
title: "收货总付款/元",
|
||||||
num: 0,
|
num: 0,
|
||||||
imgUrl: "02.png",
|
imgUrl: "02.png",
|
||||||
},
|
},
|
||||||
|
@ -161,7 +184,7 @@ const summaryList = reactive([
|
||||||
imgUrl: "03.png",
|
imgUrl: "03.png",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "出货总收入/元",
|
title: "出货总收款/元",
|
||||||
num: 0,
|
num: 0,
|
||||||
imgUrl: "04.png",
|
imgUrl: "04.png",
|
||||||
},
|
},
|
||||||
|
@ -238,6 +261,18 @@ const handleClick = (item: any) => {
|
||||||
url: item.path, // 要跳转到的页面路径
|
url: item.path, // 要跳转到的页面路径
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 收货、出货、常用app是否显示
|
||||||
|
const isShowModule = (list: any) => {
|
||||||
|
let flag = false;
|
||||||
|
list.forEach((item: any) => {
|
||||||
|
if (store.profile.menusNameList.indexOf(item.title) > -1) {
|
||||||
|
flag = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return flag;
|
||||||
|
};
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
|
let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
@cancel="isInput = false"
|
@cancel="isInput = false"
|
||||||
>
|
>
|
||||||
<u-input
|
<u-input
|
||||||
placeholder="请输入实际付款"
|
placeholder="请输入实际付款1"
|
||||||
type="number"
|
type="number"
|
||||||
v-model="amount"
|
v-model="amount"
|
||||||
></u-input>
|
></u-input>
|
||||||
|
@ -103,9 +103,7 @@ import SmallModal from "@/components/Modal/smallModal.vue";
|
||||||
import { OrderType, ScaleStatus } from "@/utils/enum";
|
import { OrderType, ScaleStatus } from "@/utils/enum";
|
||||||
|
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<any>(),
|
||||||
currentOrder: Order;
|
|
||||||
}>(),
|
|
||||||
{
|
{
|
||||||
currentOrder: {},
|
currentOrder: {},
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<u-search
|
<u-search
|
||||||
placeholder="请输入供应商名称"
|
placeholder="请输入供应商名称"
|
||||||
v-model="keyword"
|
v-model="keyword"
|
||||||
|
|
||||||
bgColor="#fff"
|
bgColor="#fff"
|
||||||
clearable
|
clearable
|
||||||
:showAction="false"
|
:showAction="false"
|
||||||
|
@ -57,7 +56,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ReceiveApi } from "@/services/index";
|
import { ReceiveApi } from "@/services/index";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad, onShow } from "@dcloudio/uni-app";
|
||||||
import PageView from "@/components/PageView/index.vue";
|
import PageView from "@/components/PageView/index.vue";
|
||||||
import { ScaleStatus } from "@/utils/enum";
|
import { ScaleStatus } from "@/utils/enum";
|
||||||
import TimeDialog from "@/components/Dialog/TimeDialog.vue";
|
import TimeDialog from "@/components/Dialog/TimeDialog.vue";
|
||||||
|
@ -118,8 +117,8 @@ const getList = (v?: boolean) => {
|
||||||
pageNum: pageList.pageNum,
|
pageNum: pageList.pageNum,
|
||||||
scaleStatus: ScaleStatus.Paid,
|
scaleStatus: ScaleStatus.Paid,
|
||||||
userName: keyword.value,
|
userName: keyword.value,
|
||||||
startTime: formatStartAndEndTime(filterState.startTime, 's'),
|
startTime: formatStartAndEndTime(filterState.startTime, "s"),
|
||||||
endTime: formatStartAndEndTime(filterState.endTime, 'e'),
|
endTime: formatStartAndEndTime(filterState.endTime, "e"),
|
||||||
}).then((res: any) => {
|
}).then((res: any) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
pageList.isLoading = false;
|
pageList.isLoading = false;
|
||||||
|
@ -132,10 +131,11 @@ const getList = (v?: boolean) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
onMounted(() => {
|
|
||||||
|
onShow(() => {
|
||||||
|
resetPageList();
|
||||||
getList();
|
getList();
|
||||||
});
|
});
|
||||||
onLoad((option) => {});
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.search-box {
|
.search-box {
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
<u-search
|
<u-search
|
||||||
placeholder="请输入供应商名称"
|
placeholder="请输入供应商名称"
|
||||||
v-model="keyword"
|
v-model="keyword"
|
||||||
|
|
||||||
bgColor="#fff"
|
bgColor="#fff"
|
||||||
clearable
|
clearable
|
||||||
:showAction="false"
|
:showAction="false"
|
||||||
|
@ -23,7 +22,6 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="card-box">
|
<view class="card-box">
|
||||||
|
|
||||||
<page-view
|
<page-view
|
||||||
@loadList="
|
@loadList="
|
||||||
(v) => {
|
(v) => {
|
||||||
|
@ -48,7 +46,7 @@
|
||||||
:color="'#00D2E3'"
|
:color="'#00D2E3'"
|
||||||
:checked="item.isChecked"
|
:checked="item.isChecked"
|
||||||
style="transform: scale(0.7)"
|
style="transform: scale(0.7)"
|
||||||
@click="item.isChecked = !item.isChecked;"
|
@click="item.isChecked = !item.isChecked"
|
||||||
/></view>
|
/></view>
|
||||||
<view class="inner-box">
|
<view class="inner-box">
|
||||||
<view class="top-flex-box">
|
<view class="top-flex-box">
|
||||||
|
@ -57,7 +55,12 @@
|
||||||
<text class="number">收货单号:{{ item.receiptNumber }}</text>
|
<text class="number">收货单号:{{ item.receiptNumber }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="item.userName">
|
<view v-if="item.userName">
|
||||||
<text class="name">{{ item.userName }}<text v-if="item.cardNumber"> / {{ item.cardNumber }}</text></text>
|
<text class="name"
|
||||||
|
>{{ item.userName
|
||||||
|
}}<text v-if="item.cardNumber">
|
||||||
|
/ {{ item.cardNumber }}</text
|
||||||
|
></text
|
||||||
|
>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -147,7 +150,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ReceiveApi } from "@/services/index";
|
import { ReceiveApi } from "@/services/index";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad, onShow } from "@dcloudio/uni-app";
|
||||||
import PageView from "@/components/PageView/index.vue";
|
import PageView from "@/components/PageView/index.vue";
|
||||||
import { ScaleStatus } from "@/utils/enum";
|
import { ScaleStatus } from "@/utils/enum";
|
||||||
import TimeDialog from "@/components/Dialog/TimeDialog.vue";
|
import TimeDialog from "@/components/Dialog/TimeDialog.vue";
|
||||||
|
@ -313,8 +316,8 @@ const getList = (v?: boolean) => {
|
||||||
pageNum: pageList.pageNum,
|
pageNum: pageList.pageNum,
|
||||||
scaleStatus: currentTab.value,
|
scaleStatus: currentTab.value,
|
||||||
userName: keyword.value,
|
userName: keyword.value,
|
||||||
startTime: filterState.startTime ? `${filterState.startTime}` : '',
|
startTime: filterState.startTime ? `${filterState.startTime}` : "",
|
||||||
endTime: filterState.startTime ? `${filterState.endTime}` : '',
|
endTime: filterState.startTime ? `${filterState.endTime}` : "",
|
||||||
}).then((res: any) => {
|
}).then((res: any) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
pageList.isLoading = false;
|
pageList.isLoading = false;
|
||||||
|
@ -323,21 +326,23 @@ const getList = (v?: boolean) => {
|
||||||
return { ...item, isChecked: false };
|
return { ...item, isChecked: false };
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
console.log(_.pluck(res.data.list, "id"))
|
console.log(_.pluck(res.data.list, "id"));
|
||||||
pageList.total = (res.data as any).total;
|
pageList.total = (res.data as any).total;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
onMounted(() => {
|
|
||||||
getList();
|
|
||||||
});
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
const statusList = ['待定价', '待过皮', '待审核', '待付款','已付款']
|
const statusList = ["待定价", "待过皮", "待审核", "待付款", "已付款"];
|
||||||
currentTab.value = parseInt((option as any).scaleStatus);
|
currentTab.value = parseInt((option as any).scaleStatus);
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: statusList[currentTab.value],
|
title: statusList[currentTab.value],
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
onShow(() => {
|
||||||
|
resetPageList();
|
||||||
|
getList();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.search-box {
|
.search-box {
|
||||||
|
|
|
@ -40,7 +40,8 @@
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="name"
|
<text class="name"
|
||||||
>{{ item.userName }} <text v-if="item.cardNumber"> / {{ item.cardNumber }}</text></text
|
>{{ item.userName }}
|
||||||
|
<text v-if="item.cardNumber"> / {{ item.cardNumber }}</text></text
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -185,7 +186,9 @@ const pricingDetail = (id: number) => {
|
||||||
getList();
|
getList();
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pagesReceive/form/pricingForm?id=${id}&title=${state.scaleStatus === 0 ? '定价' : '编辑'}详情`, // 要跳转到的页面路径
|
url: `/pagesReceive/form/pricingForm?id=${id}&title=${
|
||||||
|
state.scaleStatus === 0 ? "定价" : "编辑"
|
||||||
|
}详情`, // 要跳转到的页面路径
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -205,10 +208,10 @@ const getList = (v?: boolean) => {
|
||||||
pageSize: pageList.pageSize,
|
pageSize: pageList.pageSize,
|
||||||
pageNum: pageList.pageNum,
|
pageNum: pageList.pageNum,
|
||||||
scaleStatus: state.scaleStatus,
|
scaleStatus: state.scaleStatus,
|
||||||
userName: stateNew.keywoard
|
userName: stateNew.keywoard,
|
||||||
};
|
};
|
||||||
if (stateNew.currentDevice.id) {
|
if (stateNew.currentDevice.id) {
|
||||||
params.deviceId = stateNew.currentDevice.id
|
params.deviceId = stateNew.currentDevice.id;
|
||||||
}
|
}
|
||||||
pageList.isLoading = true;
|
pageList.isLoading = true;
|
||||||
ReceiveApi.getOrderPage(params).then((res) => {
|
ReceiveApi.getOrderPage(params).then((res) => {
|
||||||
|
@ -227,12 +230,10 @@ const handleOk = () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
resetPageList();
|
resetPageList();
|
||||||
getList();
|
getList();
|
||||||
})
|
});
|
||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
// 接收传递的标题参数
|
// 接收传递的标题参数
|
||||||
state.scaleStatus = parseInt((option as any).scaleStatus);
|
state.scaleStatus = parseInt((option as any).scaleStatus);
|
||||||
|
|
|
@ -322,6 +322,10 @@ const handleEdit = () => {
|
||||||
isInput.value = true;
|
isInput.value = true;
|
||||||
};
|
};
|
||||||
const handleConfirm = () => {
|
const handleConfirm = () => {
|
||||||
|
if (!amount.value) {
|
||||||
|
uni.showToast({ title: "请输入实际付款" });
|
||||||
|
return
|
||||||
|
}
|
||||||
ReceiveApi.updateOrderIn({
|
ReceiveApi.updateOrderIn({
|
||||||
orderInPos: [
|
orderInPos: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ShipmentApi } from "@/services/index";
|
import { ShipmentApi } from "@/services/index";
|
||||||
import SmallModal from "@/components/Modal/smallModal.vue";
|
import SmallModal from "@/components/Modal/smallModal.vue";
|
||||||
|
import { onLoad, onShow } from "@dcloudio/uni-app";
|
||||||
|
|
||||||
const pageList: PageResult<Order> = reactive({
|
const pageList: PageResult<Order> = reactive({
|
||||||
noMoreData: false,
|
noMoreData: false,
|
||||||
|
@ -127,7 +128,8 @@ const handleOk = () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onShow(() => {
|
||||||
|
resetPageList();
|
||||||
getList();
|
getList();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -308,11 +308,11 @@ const getList = (v?: boolean) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
resetPageList();
|
resetPageList();
|
||||||
getList();
|
getList();
|
||||||
});
|
});
|
||||||
onLoad((option) => {});
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.search-box {
|
.search-box {
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ShipmentApi } from "@/services/index";
|
import { ShipmentApi } from "@/services/index";
|
||||||
import { ScaleStatus } from "@/utils/enum";
|
import { ScaleStatus } from "@/utils/enum";
|
||||||
import { onShow } from "@dcloudio/uni-app";
|
import { onLoad, onShow } from "@dcloudio/uni-app";
|
||||||
import PageView from "@/components/PageView/index.vue";
|
import PageView from "@/components/PageView/index.vue";
|
||||||
import TimeDialog from "@/components/Dialog/TimeDialog.vue";
|
import TimeDialog from "@/components/Dialog/TimeDialog.vue";
|
||||||
import ReceivedDetail from "./components/receivedDetail.vue";
|
import ReceivedDetail from "./components/receivedDetail.vue";
|
||||||
|
@ -134,6 +134,7 @@ onShow(() => {
|
||||||
resetPageList();
|
resetPageList();
|
||||||
getList();
|
getList();
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.search-box {
|
.search-box {
|
||||||
|
|
|
@ -202,7 +202,7 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { DeviceApi, ShipmentApi } from "@/services/index";
|
import { DeviceApi, ShipmentApi } from "@/services/index";
|
||||||
import { OrderType, ScaleStatusBtnType } from "@/utils/enum";
|
import { OrderType, ScaleStatus, ScaleStatusBtnType } from "@/utils/enum";
|
||||||
import { onLoad, onShow } from "@dcloudio/uni-app";
|
import { onLoad, onShow } from "@dcloudio/uni-app";
|
||||||
import SmallModal from "@/components/Modal/smallModal.vue";
|
import SmallModal from "@/components/Modal/smallModal.vue";
|
||||||
const payMethodMap: any = {
|
const payMethodMap: any = {
|
||||||
|
@ -447,6 +447,19 @@ const init = () => {
|
||||||
}
|
}
|
||||||
item.num = state.order[item.enName as string];
|
item.num = state.order[item.enName as string];
|
||||||
});
|
});
|
||||||
|
/**
|
||||||
|
* 当地址栏等于出货结算&&当获取order状态为3的时候返回首页
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
if (
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement &&
|
||||||
|
state.order.scaleStatus >= ScaleStatus.ToBeShipmentPay
|
||||||
|
) {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pagesHome/index", // 要跳转到的页面路径
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -313,8 +313,6 @@ onShow(() => {
|
||||||
resetPageList();
|
resetPageList();
|
||||||
getList();
|
getList();
|
||||||
});
|
});
|
||||||
onLoad((option) => {
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.search-box {
|
.search-box {
|
||||||
|
|
|
@ -224,10 +224,6 @@ const handleOk = () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
onShow(() => {
|
|
||||||
resetPageList();
|
|
||||||
getList();
|
|
||||||
});
|
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
scaleStatus: 0,
|
scaleStatus: 0,
|
||||||
|
@ -246,6 +242,10 @@ onLoad((option) => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
onShow(() => {
|
||||||
|
resetPageList();
|
||||||
|
getList();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.search {
|
.search {
|
||||||
|
|
|
@ -69,3 +69,6 @@ body {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
.u-empty {
|
||||||
|
margin-bottom: 10px !important;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue