成品报废,领用借用明细
parent
449d5ed8b4
commit
b6e9078d1b
@ -0,0 +1,48 @@
|
||||
/**
|
||||
* 成品领用借用详细列表
|
||||
*/
|
||||
import vm from "@/main";
|
||||
export const headers = [
|
||||
//条码号
|
||||
{
|
||||
label: vm.$t("message.product_barCode"),
|
||||
key: "barCode",
|
||||
width: 300,
|
||||
},
|
||||
//单号
|
||||
{
|
||||
label: vm.$t("message.borrow_OrderNo"),
|
||||
key: "proMoveCode",
|
||||
width: 300,
|
||||
},
|
||||
//型号编码
|
||||
{
|
||||
label: vm.$t("message.ModelCode"),
|
||||
key: "materialCode",
|
||||
width: 300,
|
||||
},
|
||||
//型号名称
|
||||
{
|
||||
label: vm.$t("message.ModelName"),
|
||||
key: "materialDesc",
|
||||
width: 300,
|
||||
},
|
||||
//源库位
|
||||
{
|
||||
label: vm.$t("message.SourceLocation"),
|
||||
key: "wlFromCode",
|
||||
width: 300,
|
||||
},
|
||||
//目标库位
|
||||
{
|
||||
label: vm.$t("message.Warehouse_TargetLocation"),
|
||||
key: "wlToCode",
|
||||
width: 300,
|
||||
},
|
||||
// //操作时间
|
||||
{
|
||||
label: vm.$t("message.operatingTime"),
|
||||
key: "moveTime",
|
||||
width: 300,
|
||||
},
|
||||
];
|
@ -0,0 +1,182 @@
|
||||
<template>
|
||||
<view class="page-receipt-detail">
|
||||
<view class="header">
|
||||
<view class="left">
|
||||
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack()" />
|
||||
</view>
|
||||
<view class="title">{{ $t('message.usingDetail') }}</view>
|
||||
<view class="right"></view>
|
||||
</view>
|
||||
<view class="table-wrapper">
|
||||
<wyb-table
|
||||
class="table"
|
||||
ref="table"
|
||||
width="100%"
|
||||
enable-check="multiple"
|
||||
show-left-and-right-border
|
||||
:headers="headers"
|
||||
:contents="model.materielList"
|
||||
:show-vert-border="false"
|
||||
></wyb-table>
|
||||
</view>
|
||||
<view class="bottom-bar">
|
||||
<div class="extra">
|
||||
<u-row class="bottom-info">
|
||||
<u-col :span="12"
|
||||
>{{ $t('message.po_Total') }} {{ model.materielList.length }}
|
||||
{{ $t('message.po_Records') }}</u-col
|
||||
>
|
||||
<!-- <u-col :span="2">数量</u-col>-->
|
||||
<!-- <u-col :span="4"><u-input v-model="locationCode"></u-input></u-col>-->
|
||||
<!-- <u-col :span="3">-->
|
||||
<!-- <u-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="warning"-->
|
||||
<!-- :loading="$wait.is('*changeOrderInLocation')"-->
|
||||
<!-- @click="changeLocation"-->
|
||||
<!-- >-->
|
||||
<!-- 拒收-->
|
||||
<!-- </u-button>-->
|
||||
<!-- </u-col>-->
|
||||
</u-row>
|
||||
</div>
|
||||
<!-- <div class="container">-->
|
||||
<!-- <u-row>-->
|
||||
<!-- <u-col :span="4">-->
|
||||
<!-- <u-button type="primary" @click="model.checkAllOrderInInfoList(!model.isCheckedAll)">-->
|
||||
<!-- {{-->
|
||||
<!-- model.isCheckedAll-->
|
||||
<!-- ? this.$t('message.po_noSelectAll')-->
|
||||
<!-- : this.$t('message.po_SelectAll')-->
|
||||
<!-- }}-->
|
||||
<!-- </u-button>-->
|
||||
<!-- </u-col>-->
|
||||
<!-- <u-col :span="4">-->
|
||||
<!-- <u-button type="success" :loading="$wait.is('*submitOrderInEnter')" @click="onSubmit">-->
|
||||
<!-- {{ $t('message.po_Submit') }}-->
|
||||
<!-- </u-button>-->
|
||||
<!-- </u-col>-->
|
||||
<!-- <u-col :span="4">-->
|
||||
<!-- <u-button @click="uni.navigateBack()">{{ $t('message.po_Return') }}</u-button>-->
|
||||
<!-- </u-col>-->
|
||||
<!-- </u-row>-->
|
||||
<!-- </div>-->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import { BasePage } from '@/components/base/page';
|
||||
import model from './model';
|
||||
import { headers } from './config';
|
||||
|
||||
@Component
|
||||
export default class RawReceiptDetail extends BasePage {
|
||||
/**
|
||||
* 页面Module
|
||||
*/
|
||||
model = model;
|
||||
|
||||
/**
|
||||
* 库位
|
||||
*/
|
||||
locationCode = '';
|
||||
|
||||
/**
|
||||
* 表头
|
||||
*/
|
||||
headers = headers;
|
||||
|
||||
/**
|
||||
* 逐条修改
|
||||
*/
|
||||
// changeLocation() {
|
||||
// if (!this.model.hasChecked) {
|
||||
// uni.showToast({
|
||||
// icon: 'none',
|
||||
// title: '请选择要修改的行',
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
// this.model.changeOrderInLocation(this.locationCode);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 提交
|
||||
*/
|
||||
// async onSubmit() {
|
||||
// await this.model.submitOrderInEnter();
|
||||
// this.locationCode = '';
|
||||
// }
|
||||
}
|
||||
</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;
|
||||
|
||||
.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;
|
||||
}
|
||||
}
|
||||
|
||||
.table-wrapper {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.form {
|
||||
background-color: #fff;
|
||||
padding: 40rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.bottom-bar {
|
||||
z-index: 21;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
||||
.container {
|
||||
background: #ffffff;
|
||||
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
.extra {
|
||||
background-color: #fff;
|
||||
margin: 5px;
|
||||
border-radius: 5px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,48 @@
|
||||
/**
|
||||
* 成品报废详细列表
|
||||
*/
|
||||
import vm from "@/main";
|
||||
export const headers = [
|
||||
//条码号
|
||||
{
|
||||
label: vm.$t("message.product_barCode"),
|
||||
key: "barCode",
|
||||
width: 300,
|
||||
},
|
||||
//单号
|
||||
{
|
||||
label: vm.$t("message.Scrap_ScrapNo"),
|
||||
key: "proMoveCode",
|
||||
width: 300,
|
||||
},
|
||||
//型号编码
|
||||
{
|
||||
label: vm.$t("message.ModelCode"),
|
||||
key: "materialCode",
|
||||
width: 300,
|
||||
},
|
||||
//型号名称
|
||||
{
|
||||
label: vm.$t("message.ModelName"),
|
||||
key: "materialDesc",
|
||||
width: 300,
|
||||
},
|
||||
//源库位
|
||||
{
|
||||
label: vm.$t("message.SourceLocation"),
|
||||
key: "wlFromCode",
|
||||
width: 300,
|
||||
},
|
||||
//目标库位
|
||||
{
|
||||
label: vm.$t("message.Warehouse_TargetLocation"),
|
||||
key: "wlToCode",
|
||||
width: 300,
|
||||
},
|
||||
// //操作时间
|
||||
{
|
||||
label: vm.$t("message.operatingTime"),
|
||||
key: "moveTime",
|
||||
width: 300,
|
||||
},
|
||||
];
|
@ -0,0 +1,182 @@
|
||||
<template>
|
||||
<view class="page-receipt-detail">
|
||||
<view class="header">
|
||||
<view class="left">
|
||||
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack()" />
|
||||
</view>
|
||||
<view class="title">{{ $t('message.finishedProductReport') }}</view>
|
||||
<view class="right"></view>
|
||||
</view>
|
||||
<view class="table-wrapper">
|
||||
<wyb-table
|
||||
class="table"
|
||||
ref="table"
|
||||
width="100%"
|
||||
enable-check="multiple"
|
||||
show-left-and-right-border
|
||||
:headers="headers"
|
||||
:contents="model.materielList"
|
||||
:show-vert-border="false"
|
||||
></wyb-table>
|
||||
</view>
|
||||
<view class="bottom-bar">
|
||||
<div class="extra">
|
||||
<u-row class="bottom-info">
|
||||
<u-col :span="12"
|
||||
>{{ $t('message.po_Total') }} {{ model.materielList.length }}
|
||||
{{ $t('message.po_Records') }}</u-col
|
||||
>
|
||||
<!-- <u-col :span="2">数量</u-col>-->
|
||||
<!-- <u-col :span="4"><u-input v-model="locationCode"></u-input></u-col>-->
|
||||
<!-- <u-col :span="3">-->
|
||||
<!-- <u-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="warning"-->
|
||||
<!-- :loading="$wait.is('*changeOrderInLocation')"-->
|
||||
<!-- @click="changeLocation"-->
|
||||
<!-- >-->
|
||||
<!-- 拒收-->
|
||||
<!-- </u-button>-->
|
||||
<!-- </u-col>-->
|
||||
</u-row>
|
||||
</div>
|
||||
<!-- <div class="container">-->
|
||||
<!-- <u-row>-->
|
||||
<!-- <u-col :span="4">-->
|
||||
<!-- <u-button type="primary" @click="model.checkAllOrderInInfoList(!model.isCheckedAll)">-->
|
||||
<!-- {{-->
|
||||
<!-- model.isCheckedAll-->
|
||||
<!-- ? this.$t('message.po_noSelectAll')-->
|
||||
<!-- : this.$t('message.po_SelectAll')-->
|
||||
<!-- }}-->
|
||||
<!-- </u-button>-->
|
||||
<!-- </u-col>-->
|
||||
<!-- <u-col :span="4">-->
|
||||
<!-- <u-button type="success" :loading="$wait.is('*submitOrderInEnter')" @click="onSubmit">-->
|
||||
<!-- {{ $t('message.po_Submit') }}-->
|
||||
<!-- </u-button>-->
|
||||
<!-- </u-col>-->
|
||||
<!-- <u-col :span="4">-->
|
||||
<!-- <u-button @click="uni.navigateBack()">{{ $t('message.po_Return') }}</u-button>-->
|
||||
<!-- </u-col>-->
|
||||
<!-- </u-row>-->
|
||||
<!-- </div>-->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component } from 'vue-property-decorator';
|
||||
import { BasePage } from '@/components/base/page';
|
||||
import model from './model';
|
||||
import { headers } from './config';
|
||||
|
||||
@Component
|
||||
export default class RawReceiptDetail extends BasePage {
|
||||
/**
|
||||
* 页面Module
|
||||
*/
|
||||
model = model;
|
||||
|
||||
/**
|
||||
* 库位
|
||||
*/
|
||||
locationCode = '';
|
||||
|
||||
/**
|
||||
* 表头
|
||||
*/
|
||||
headers = headers;
|
||||
|
||||
/**
|
||||
* 逐条修改
|
||||
*/
|
||||
// changeLocation() {
|
||||
// if (!this.model.hasChecked) {
|
||||
// uni.showToast({
|
||||
// icon: 'none',
|
||||
// title: '请选择要修改的行',
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
// this.model.changeOrderInLocation(this.locationCode);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 提交
|
||||
*/
|
||||
// async onSubmit() {
|
||||
// await this.model.submitOrderInEnter();
|
||||
// this.locationCode = '';
|
||||
// }
|
||||
}
|
||||
</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;
|
||||
|
||||
.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;
|
||||
}
|
||||
}
|
||||
|
||||
.table-wrapper {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.form {
|
||||
background-color: #fff;
|
||||
padding: 40rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.bottom-bar {
|
||||
z-index: 21;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
||||
.container {
|
||||
background: #ffffff;
|
||||
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
.extra {
|
||||
background-color: #fff;
|
||||
margin: 5px;
|
||||
border-radius: 5px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue