新增 退货
parent
a0ea126856
commit
b573cd8198
@ -0,0 +1,136 @@
|
|||||||
|
<template>
|
||||||
|
<view class="page-receipt-detail">
|
||||||
|
<view class="header">
|
||||||
|
<view class="left">
|
||||||
|
<u-icon class="icon" name="arrow-left" @click="go" />
|
||||||
|
</view>
|
||||||
|
<view class="title">{{ $t("message.Pi_QueryResults") }}</view>
|
||||||
|
<view class="right"></view>
|
||||||
|
</view>
|
||||||
|
<u-form
|
||||||
|
class="form"
|
||||||
|
ref="form"
|
||||||
|
style="padding-left: 30px"
|
||||||
|
label-width="180rpx"
|
||||||
|
>
|
||||||
|
<u-form-item :label="$t('message.Pi_OrderNo')">
|
||||||
|
<u-input v-model="poNo" placeholder="" class="Transfer" />
|
||||||
|
<u-button
|
||||||
|
type="primary"
|
||||||
|
style="height: 60rpx; margin-left: 20rpx"
|
||||||
|
@click="generate"
|
||||||
|
>{{ $t("message.Query") }}</u-button
|
||||||
|
>
|
||||||
|
</u-form-item>
|
||||||
|
</u-form>
|
||||||
|
<view class="table-wrapper">
|
||||||
|
<wyb-table
|
||||||
|
class="table"
|
||||||
|
ref="table"
|
||||||
|
width="100%"
|
||||||
|
show-left-and-right-border
|
||||||
|
:headers="headers"
|
||||||
|
:contents="model.detailedList"
|
||||||
|
:show-vert-border="false"
|
||||||
|
></wyb-table>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<script lang="ts">
|
||||||
|
import { Component } from "vue-property-decorator";
|
||||||
|
import { BasePage } from "@/components/base/page";
|
||||||
|
import { headers } from "./config";
|
||||||
|
import model from "./model";
|
||||||
|
import { session } from "@/store/modules/session";
|
||||||
|
|
||||||
|
@Component
|
||||||
|
export default class RawReceiptDetail extends BasePage {
|
||||||
|
model = model;
|
||||||
|
headers = headers;
|
||||||
|
poNo: any = "";
|
||||||
|
async generate() {
|
||||||
|
if (this.poNo == "") {
|
||||||
|
uni.showToast({
|
||||||
|
icon: "none",
|
||||||
|
title: this.$t("message._tips6") as any,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let content = {
|
||||||
|
loginName: session.loginName,
|
||||||
|
poNo: this.poNo,
|
||||||
|
factoryCode: session.factoryCode,
|
||||||
|
};
|
||||||
|
await this.model.querydetaildlist(content);
|
||||||
|
console.log(model.detailedList);
|
||||||
|
}
|
||||||
|
go() {
|
||||||
|
this.toPage(this.page.raw.ingoods.dnReturnGoods.location);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.page-receipt-detail {
|
||||||
|
background: #f2f2f2
|
||||||
|
linear-gradient(0deg, #f2f2f2 0%, #4a78ea 51%, #1753ea 100%) no-repeat;
|
||||||
|
background-size: 100% 600rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
min-height: 100%;
|
||||||
|
padding-top: 118rpx;
|
||||||
|
padding-bottom: 162rpx;
|
||||||
|
|
||||||
|
.header {
|
||||||
|
position: fixed;
|
||||||
|
top: 36rpx;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
display: flex;
|
||||||
|
height: 88rpx;
|
||||||
|
line-height: 88rpx;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 34rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
text-align: center;
|
||||||
|
.title {
|
||||||
|
flex: 3;
|
||||||
|
}
|
||||||
|
.left,
|
||||||
|
.right {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.icon {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 88rpx;
|
||||||
|
height: 88rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.form {
|
||||||
|
background-color: #fff;
|
||||||
|
// padding: 40rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
|
||||||
|
|
||||||
|
.u-form-item {
|
||||||
|
// padding: 30rpx 0;
|
||||||
|
line-height: 35rpx;
|
||||||
|
.Transfer {
|
||||||
|
width: 180rpx;
|
||||||
|
height: 64rpx;
|
||||||
|
background: rgb(242, 242, 242);
|
||||||
|
border-radius: 110rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.table-wrapper {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form {
|
||||||
|
background-color: #fff;
|
||||||
|
// padding: 40rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -1,31 +1,35 @@
|
|||||||
/**
|
/**
|
||||||
* 看单明细表格列
|
* 看单明细表格列
|
||||||
*/
|
*/
|
||||||
import vm from '@/main';
|
import vm from "@/main";
|
||||||
export const headers = [
|
export const headers = [
|
||||||
{
|
{
|
||||||
label: vm.$t('message.po_MaterielNo'),
|
label: vm.$t("message.po_MaterielNo"),
|
||||||
key: 'materialCode',
|
key: "materialCode",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: vm.$t('message.po_MaterielDes'),
|
label: vm.$t("message.po_MaterielDes"),
|
||||||
key: 'materialDesc',
|
key: "materialDesc",
|
||||||
width: 350,
|
width: 350,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: vm.$t('message.po_DemandQuantity'),
|
label: vm.$t("message.returned"),
|
||||||
key: 'receiptAmount',
|
key: "poAmount",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: vm.$t('message.po_ReturnGoodsQuantity'),
|
label: vm.$t("message.quantity"),
|
||||||
key: 'returnAmount',
|
key: "receiptAmount",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: vm.$t('message.po_RemainingQuantity'),
|
label: vm.$t("message.po_Supplier"),
|
||||||
key: 'splitAmount',
|
key: "supplyCode",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: vm.$t('message.po_Location'),
|
label: vm.$t("message.po_OrderType"),
|
||||||
key: 'location',
|
key: "poType",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: vm.$t("message.po_Location"),
|
||||||
|
key: "wlCode",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue