托盘变更,包材出库等采购收货加参数

master
guoshuang 2 years ago
parent cbfb8b1d6b
commit 3f5abf079e

@ -407,6 +407,30 @@
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/wms/Raw/TrayStatusUpdate/index",
"style": {
"navigationBarTitleText": "托盘状态更新",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/wms/Raw/SpecifyPalletOut/index",
"style": {
"navigationBarTitleText": "包材指定托盘出库",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/wms/Raw/MatReturnWH/index",
"style": {
"navigationBarTitleText": "包材半托返库",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
}
],
"globalStyle": {

@ -0,0 +1,524 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">包材半托返库</view>
<view class="right"></view>
</view>
<view class="fiexdcontent">
<u-form class="form" ref="form" label-width="180rpx">
<view class="single">
<view class="single-left">
<view>托盘号:</view>
<u-search placeholder="请扫描" v-model="rfidNo" @search="query" :show-action="false"></u-search>
</view>
<!-- <view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view> -->
</view>
<view class="single">
<view class="single-left">
<view>物料号:</view>
<u-search placeholder="请扫描" v-model="sku" @search="queryone" :show-action="false"></u-search>
</view>
<!-- <view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view> -->
</view>
<view class="single">
<view class="single-left">
<view>批次号:</view>
<u-input class="poupcontent" :clearable="false" v-model="batchNo" placeholder="请输入" style="overflow: hidden" />
</view>
<!-- <view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view> -->
</view>
<view class="single">
<view class="single-left">
<view>当前位置:</view>
<u-search placeholder="请扫描" v-model="location" @search="querytwo" :show-action="false"></u-search>
</view>
<!-- <view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view> -->
</view>
<view class="single">
<view class="single-left">
<view>数量:</view>
<u-input class="poupcontent" :clearable="false" v-model="qty" placeholder="请输入" style="overflow: hidden" />
</view>
<!-- <view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view> -->
</view>
<u-form-item label="质检状态">
<!-- <u-input :border="true" v-model="histroyItem.productDescZh" placeholder="" style="overflow: hidden" /> -->
<jPicker sureColor="#ff0000" @bindpicker="bookTypeChange" showKey="label" valKey="value" :val="aimWl.value" :options="materilist" />
</u-form-item>
</u-form>
</view>
<!-- <view style="height: 14rpx"></view> -->
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onSubmit" type="primary">确认</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
interface OptionType {
label: string;
value: string;
}
//import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
},
})
export default class MatReturnWH extends BasePage {
model = model;
location = '';
rfidNo = '';
sku = '';
batchNo = '';
qty = '';
aimWl = {} as OptionType;
materilist = [
{
label: '合格',
value: 1,
},
{
label: '不合格',
value: 2,
},
];
border = true;
async onReady() {
// await this.model.getwarehouselist();
// this.warehouselist = model.warehouselist;
// const cimWl = this.warehouselist.find((item) => item.value === 'WH02');
// if (cimWl) {
// this.cimWl = cimWl;
// } else {
// this.cimWl = this.warehouselist[0];
// }
}
bookTypeChange(e: any) {
this.aimWl = e.pickerName;
}
async onSubmit() {
if (this.rfidNo == '') {
(this.$refs.uToast as any).show({
title: '请输入托盘码',
// url: '/pages/user/index'
});
return;
}
if (this.aimWl.value == '') {
(this.$refs.uToast as any).show({
title: '请先选择质检状态',
// url: '/pages/user/index'
});
return;
}
let item: any = {};
item.rfidNo = this.rfidNo;
item.batchNo = this.batchNo;
item.sku = this.sku;
item.location = this.location;
item.qty = this.qty;
item.qualityStatus = this.aimWl.value;
await this.model.out(item);
if (this.model.SubmitCode == '200') {
(this.$refs.uToast as any).show({
title: '成功',
type: 'success',
});
this.mepty();
//this.getlist();
} else {
(this.$refs.uToast as any).show({
title: '失败',
type: 'error',
});
//this.getlist();
}
}
mepty() {
this.rfidNo = '';
this.batchNo = '';
this.sku = '';
this.location = '';
this.qty = '';
this.aimWl = {} as OptionType;
//this.model.mepty();
}
}
</script>
<style>
body {
background-color: rgb(242, 242, 242);
}
</style>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.fiexdcontent {
position: fixed;
width: 92%;
box-shadow: 0 0 14px 0 rgb(128 128 128 / 46%);
z-index: 100;
}
.form {
background-color: #fff;
padding: 15rpx;
border-radius: 10rpx;
//box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 20rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 60rpx;
display: flex;
margin-bottom: 12rpx;
.single-left {
width: 100%;
height: 100%;
display: flex;
view {
width: 190rpx;
height: 100%;
line-height: 55rpx;
}
}
.single-right {
button {
// margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
.row {
display: flex;
flex-direction: row;
justify-content: space-around;
flex: 1;
}
}
.form3 {
background-color: #fff;
padding: 20rpx 20rpx 20rpx;
border-radius: 10rpx;
height: 210rpx;
overflow: scroll;
//box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
//color: #8d8989;
// .list {
// display: flex;
// flex-direction: row;
// }
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.row-list-item1 {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 50%;
}
.row-list-item2 {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.list-item {
display: flex;
flex-direction: row;
// flex: 1;
}
}
.righttitle {
display: flex;
justify-content: flex-end;
.boder-icon-rigth {
border: 1rpx solid #fa3534;
width: 130rpx;
text-align: center;
background: #fa3534;
color: #ffffff;
margin-top: 10px;
}
}
}
.form4 {
background-color: #fff;
padding: 18rpx;
border-radius: 10rpx;
margin-top: 2rpx;
.u-input__input {
min-height: 36px;
}
}
.scroll {
// margin-top: 2rpx;
height: 680rpx;
position: absolute;
width: 92%;
top: 740rpx;
/* bottom: 40px; */
overflow: auto;
// background-color: #f2f2f2;
.form2 {
background-color: #fff;
padding: 20rpx 20rpx 20rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
color: #8d8989;
.list {
display: flex;
flex-direction: row;
.rowleft {
width: 80%;
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.list-item {
display: flex;
flex-direction: row;
flex: 1;
}
}
}
.rowright {
width: 20%;
display: flex;
justify-content: right;
.righttitle {
width: 60%;
background-color: #8d898947;
color: red;
text-align: center;
/* margin: auto; */
height: 100%;
line-height: 70rpx;
}
}
}
// .righttitle {
// display: flex;
// justify-content: flex-end;
// .boder-icon-rigth {
// border: 1rpx solid #fa3534;
// width: 130rpx;
// text-align: center;
// background: #fa3534;
// color: #ffffff;
// margin-top: 10px;
// }
// .zhuangtai {
// background: #a7a0a04a;
// width: 224rpx;
// margin-right: -27rpx;
// border: 2rpx solid #a7a0a04a;
// border-radius: 12rpx;
// text-align: center;
// margin-bottom: 10rpx;
// }
// .zhuangtai[data-state='1'] {
// color: green;
// }
// .zhuangtai[data-state='0'] {
// color: blue;
// }
// }
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.button-bar {
}
.photoList {
display: flex;
padding-top: 12rpx;
.chooseBtn {
width: 202rpx;
height: 202rpx;
background: #fafafa;
border-radius: 12rpx;
border: 2rpx dashed #e2e2e2;
display: flex;
justify-content: center;
align-items: center;
.inner {
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.desc {
font-size: 28rpx;
font-weight: 400;
color: #24252a;
line-height: 40rpx;
}
.img {
width: 50rpx;
height: 50rpx;
margin-bottom: 6rpx;
}
}
.photoBox {
width: 202rpx;
height: 202rpx;
background: #fafafa;
border-radius: 12rpx;
position: relative;
.closeBtn {
position: absolute;
top: -12rpx;
right: -12rpx;
z-index: 2;
width: 36rpx;
height: 36rpx;
.img {
width: 36rpx;
height: 36rpx;
}
}
.img {
width: 202rpx;
height: 202rpx;
border-radius: 12rpx;
}
}
.itemBox {
flex: 0 0 202rpx;
margin-right: 20rpx;
&:last-child {
margin-right: 0;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
</style>

@ -0,0 +1,22 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
//import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.Raw.MatReturnWH',
})
export class MatReturnWH extends VuexModule {
SubmitCode: any = '';
@MutationAction
async out(params: any) {
const result: any = await http.post(url.lanjuwms.raw.MatReturnWH.into, params);
const SubmitCode = result.code;
return { SubmitCode };
}
}
export default getModule(MatReturnWH);

@ -218,6 +218,7 @@ export default class receivePO extends BasePage {
query.planNumber = this.form3.planNumber;
query.whCode = this.productCodeTypeList.warehouseCode;
query.factoryCode = session.FactoryCode;
query.incomeBatchNo = this.form3.incomeBatchNo;
await this.model.PurchaseOrderdeliPda(query);
console.log(this.model.SubmitCode);
if (this.model.SubmitCode.code == 200) {
@ -271,13 +272,20 @@ export default class receivePO extends BasePage {
});
return;
}
let query = {
let item = {
procureCode: this.procureCode,
materialCode: this.materialCode,
factoryCode: session.FactoryCode,
};
await this.model.PurchaseOrderPda(query);
this.list = model.orderNoItemList;
await this.model.sapPurchaseOrderSync(item);
if (model.sapPurchasecode == '200') {
let query = {
procureCode: this.procureCode,
materialCode: this.materialCode,
factoryCode: session.FactoryCode,
};
await this.model.PurchaseOrderPda(query);
this.list = model.orderNoItemList;
}
}
histroyItem: any = {};
barcode: any = '';

@ -19,6 +19,13 @@ export class receivePO extends VuexModule {
const orderNoItemList = result.data;
return { orderNoItemList };
}
sapPurchasecode: any = '';
@MutationAction
async sapPurchaseOrderSync(data: any) {
const result: any = await http.post(url.lanjuwms.raw.ReceivePO.sapPurchaseOrderSync, data);
const sapPurchasecode = result.code;
return { sapPurchasecode };
}
SubmitCode: any = '';
@MutationAction
async PurchaseOrderdeliPda(data: any) {

@ -0,0 +1,508 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">包材指定托盘出库</view>
<view class="right"></view>
</view>
<view class="fiexdcontent">
<u-form class="form" ref="form" label-width="180rpx">
<u-form-item label="类型">
<!-- <u-input :border="true" v-model="histroyItem.productDescZh" placeholder="" style="overflow: hidden" /> -->
<jPicker sureColor="#ff0000" @bindpicker="bookTypeChange" showKey="label" valKey="value" :val="aimWl.value" :options="materilist" />
</u-form-item>
<!-- 单号 -->
<view class="single">
<view class="single-left">
<view>托盘码:</view>
<u-search placeholder="请扫描" v-model="rfidNo" @search="query" :show-action="false"></u-search>
</view>
<!-- <view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view> -->
</view>
<!-- 订单 -->
<u-form-item label="位置">
<!-- <u-input :border="true" v-model="histroyItem.productDescZh" placeholder="" style="overflow: hidden" /> -->
<jPicker sureColor="#ff0000" @bindpicker="userDefined1Change" showKey="label" valKey="value" :val="bimWl.value" :options="userDefined1list" />
</u-form-item>
<!-- 机台 -->
<!-- <u-form-item label="出库仓库"> 成品库 </u-form-item> -->
</u-form>
</view>
<!-- <view style="height: 14rpx"></view> -->
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onSubmit" type="primary">确认</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
interface OptionType {
label: string;
value: string;
}
//import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
},
})
export default class SpecifyPalletOut extends BasePage {
model = model;
location = '';
rfidNo = '';
aimWl = {} as OptionType;
bimWl = {} as OptionType;
materilist = [
{
label: '非空托盘',
value: 1,
},
{
label: '空托盘',
value: 2,
},
];
userDefined1list = [
{
label: '非空',
value: 1,
},
{
label: '空',
value: 2,
},
];
border = true;
async onReady() {
// await this.model.getwarehouselist();
// this.warehouselist = model.warehouselist;
// const cimWl = this.warehouselist.find((item) => item.value === 'WH02');
// if (cimWl) {
// this.cimWl = cimWl;
// } else {
// this.cimWl = this.warehouselist[0];
// }
}
bookTypeChange(e: any) {
this.aimWl = e.pickerName;
}
userDefined1Change(e: any) {
this.bimWl = e.pickerName;
}
async onSubmit() {
if (this.rfidNo == '') {
(this.$refs.uToast as any).show({
title: '请输入托盘码',
// url: '/pages/user/index'
});
return;
}
if (this.aimWl.value == '') {
(this.$refs.uToast as any).show({
title: '请先选择类型',
// url: '/pages/user/index'
});
return;
}
if (this.bimWl.value == '') {
(this.$refs.uToast as any).show({
title: '请先选择位置',
// url: '/pages/user/index'
});
return;
}
let item: any = {};
item.rfidNo = this.rfidNo;
item.location = this.bimWl.value;
item.type = this.aimWl.value;
await this.model.out(item);
if (this.model.SubmitCode == '200') {
(this.$refs.uToast as any).show({
title: '成功',
type: 'success',
});
this.mepty();
//this.getlist();
} else {
(this.$refs.uToast as any).show({
title: '失败',
type: 'error',
});
//this.getlist();
}
}
mepty() {
this.rfidNo = '';
this.location = '';
this.aimWl = {} as OptionType;
this.bimWl = {} as OptionType;
//this.model.mepty();
}
}
</script>
<style>
body {
background-color: rgb(242, 242, 242);
}
</style>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.fiexdcontent {
position: fixed;
width: 92%;
box-shadow: 0 0 14px 0 rgb(128 128 128 / 46%);
z-index: 100;
}
.form {
background-color: #fff;
padding: 15rpx;
border-radius: 10rpx;
//box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 20rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 60rpx;
display: flex;
.single-left {
width: 100%;
height: 100%;
display: flex;
view {
width: 190rpx;
height: 100%;
line-height: 55rpx;
}
}
.single-right {
button {
// margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
.row {
display: flex;
flex-direction: row;
justify-content: space-around;
flex: 1;
}
}
.form3 {
background-color: #fff;
padding: 20rpx 20rpx 20rpx;
border-radius: 10rpx;
height: 210rpx;
overflow: scroll;
//box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
//color: #8d8989;
// .list {
// display: flex;
// flex-direction: row;
// }
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.row-list-item1 {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 50%;
}
.row-list-item2 {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.list-item {
display: flex;
flex-direction: row;
// flex: 1;
}
}
.righttitle {
display: flex;
justify-content: flex-end;
.boder-icon-rigth {
border: 1rpx solid #fa3534;
width: 130rpx;
text-align: center;
background: #fa3534;
color: #ffffff;
margin-top: 10px;
}
}
}
.form4 {
background-color: #fff;
padding: 18rpx;
border-radius: 10rpx;
margin-top: 2rpx;
.u-input__input {
min-height: 36px;
}
}
.scroll {
// margin-top: 2rpx;
height: 680rpx;
position: absolute;
width: 92%;
top: 740rpx;
/* bottom: 40px; */
overflow: auto;
// background-color: #f2f2f2;
.form2 {
background-color: #fff;
padding: 20rpx 20rpx 20rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
color: #8d8989;
.list {
display: flex;
flex-direction: row;
.rowleft {
width: 80%;
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.list-item {
display: flex;
flex-direction: row;
flex: 1;
}
}
}
.rowright {
width: 20%;
display: flex;
justify-content: right;
.righttitle {
width: 60%;
background-color: #8d898947;
color: red;
text-align: center;
/* margin: auto; */
height: 100%;
line-height: 70rpx;
}
}
}
// .righttitle {
// display: flex;
// justify-content: flex-end;
// .boder-icon-rigth {
// border: 1rpx solid #fa3534;
// width: 130rpx;
// text-align: center;
// background: #fa3534;
// color: #ffffff;
// margin-top: 10px;
// }
// .zhuangtai {
// background: #a7a0a04a;
// width: 224rpx;
// margin-right: -27rpx;
// border: 2rpx solid #a7a0a04a;
// border-radius: 12rpx;
// text-align: center;
// margin-bottom: 10rpx;
// }
// .zhuangtai[data-state='1'] {
// color: green;
// }
// .zhuangtai[data-state='0'] {
// color: blue;
// }
// }
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.button-bar {
}
.photoList {
display: flex;
padding-top: 12rpx;
.chooseBtn {
width: 202rpx;
height: 202rpx;
background: #fafafa;
border-radius: 12rpx;
border: 2rpx dashed #e2e2e2;
display: flex;
justify-content: center;
align-items: center;
.inner {
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.desc {
font-size: 28rpx;
font-weight: 400;
color: #24252a;
line-height: 40rpx;
}
.img {
width: 50rpx;
height: 50rpx;
margin-bottom: 6rpx;
}
}
.photoBox {
width: 202rpx;
height: 202rpx;
background: #fafafa;
border-radius: 12rpx;
position: relative;
.closeBtn {
position: absolute;
top: -12rpx;
right: -12rpx;
z-index: 2;
width: 36rpx;
height: 36rpx;
.img {
width: 36rpx;
height: 36rpx;
}
}
.img {
width: 202rpx;
height: 202rpx;
border-radius: 12rpx;
}
}
.itemBox {
flex: 0 0 202rpx;
margin-right: 20rpx;
&:last-child {
margin-right: 0;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
</style>

@ -0,0 +1,22 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
//import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.Raw.SpecifyPalletOut',
})
export class SpecifyPalletOut extends VuexModule {
SubmitCode: any = '';
@MutationAction
async out(params: any) {
const result: any = await http.post(url.lanjuwms.raw.SpecifyPalletOut.out, params);
const SubmitCode = result.code;
return { SubmitCode };
}
}
export default getModule(SpecifyPalletOut);

@ -0,0 +1,518 @@
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">托盘状态更新</view>
<view class="right"></view>
</view>
<view class="fiexdcontent">
<u-form class="form" ref="form" label-width="180rpx">
<!-- 单号 -->
<view class="single">
<view class="single-left">
<view>托盘码:</view>
<u-search placeholder="请扫描" v-model="rfidNo" @search="query" :show-action="false"></u-search>
</view>
<!-- <view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view> -->
</view>
<!-- 订单 -->
<u-form-item label="托盘类型">
<!-- <u-input :border="true" v-model="histroyItem.productDescZh" placeholder="" style="overflow: hidden" /> -->
<jPicker sureColor="#ff0000" @bindpicker="bookTypeChange" showKey="label" valKey="value" :val="aimWl.value" :options="materilist" />
</u-form-item>
<u-form-item label="当前位置是否为空">
<!-- <u-input :border="true" v-model="histroyItem.productDescZh" placeholder="" style="overflow: hidden" /> -->
<jPicker sureColor="#ff0000" @bindpicker="userDefined1Change" showKey="label" valKey="value" :val="bimWl.value" :options="userDefined1list" />
</u-form-item>
<!-- 机台 -->
<view class="single">
<view class="single-left">
<view>托盘具体位置:</view>
<u-search placeholder="请扫描" v-model="location" @search="query" :show-action="false"></u-search>
</view>
<!-- <view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view> -->
</view>
<!-- <u-form-item label="出库仓库"> 成品库 </u-form-item> -->
</u-form>
</view>
<!-- <view style="height: 14rpx"></view> -->
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onSubmit" type="primary">确认</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
interface OptionType {
label: string;
value: string;
}
//import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
},
})
export default class TrayStatusUpdate extends BasePage {
model = model;
location = '';
rfidNo = '';
aimWl = {} as OptionType;
bimWl = {} as OptionType;
materilist = [
{
label: '空托盘',
value: 1,
},
{
label: '进入入库前整理区',
value: 2,
},
];
userDefined1list = [
{
label: '非空',
value: 1,
},
{
label: '空',
value: 2,
},
];
border = true;
async onReady() {
// await this.model.getwarehouselist();
// this.warehouselist = model.warehouselist;
// const cimWl = this.warehouselist.find((item) => item.value === 'WH02');
// if (cimWl) {
// this.cimWl = cimWl;
// } else {
// this.cimWl = this.warehouselist[0];
// }
}
bookTypeChange(e: any) {
this.aimWl = e.pickerName;
}
userDefined1Change(e: any) {
this.bimWl = e.pickerName;
}
async onSubmit() {
if (this.rfidNo == '') {
(this.$refs.uToast as any).show({
title: '请输入托盘码',
// url: '/pages/user/index'
});
return;
}
if (this.aimWl.value == '') {
(this.$refs.uToast as any).show({
title: '请先选择托盘类型',
// url: '/pages/user/index'
});
return;
}
if (this.bimWl.value == '') {
(this.$refs.uToast as any).show({
title: '请先选择当前位置是否为空',
// url: '/pages/user/index'
});
return;
}
let item: any = {};
item.rfidNo = this.rfidNo;
item.locationStatus = this.bimWl.value;
item.location = this.location;
item.palletType = this.aimWl.value;
await this.model.out(item);
if (this.model.SubmitCode == '200') {
(this.$refs.uToast as any).show({
title: '成功',
type: 'success',
});
this.mepty();
//this.getlist();
} else {
(this.$refs.uToast as any).show({
title: '失败',
type: 'error',
});
//this.getlist();
}
}
mepty() {
this.rfidNo = '';
this.location = '';
this.aimWl = {} as OptionType;
this.bimWl = {} as OptionType;
//this.model.mepty();
}
}
</script>
<style>
body {
background-color: rgb(242, 242, 242);
}
</style>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.fiexdcontent {
position: fixed;
width: 92%;
box-shadow: 0 0 14px 0 rgb(128 128 128 / 46%);
z-index: 100;
}
.form {
background-color: #fff;
padding: 15rpx;
border-radius: 10rpx;
//box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 20rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 60rpx;
display: flex;
.single-left {
width: 100%;
height: 100%;
display: flex;
view {
width: 190rpx;
height: 100%;
line-height: 55rpx;
}
}
.single-right {
button {
// margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
.row {
display: flex;
flex-direction: row;
justify-content: space-around;
flex: 1;
}
}
.form3 {
background-color: #fff;
padding: 20rpx 20rpx 20rpx;
border-radius: 10rpx;
height: 210rpx;
overflow: scroll;
//box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
//color: #8d8989;
// .list {
// display: flex;
// flex-direction: row;
// }
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.row-list-item1 {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 50%;
}
.row-list-item2 {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.list-item {
display: flex;
flex-direction: row;
// flex: 1;
}
}
.righttitle {
display: flex;
justify-content: flex-end;
.boder-icon-rigth {
border: 1rpx solid #fa3534;
width: 130rpx;
text-align: center;
background: #fa3534;
color: #ffffff;
margin-top: 10px;
}
}
}
.form4 {
background-color: #fff;
padding: 18rpx;
border-radius: 10rpx;
margin-top: 2rpx;
.u-input__input {
min-height: 36px;
}
}
.scroll {
// margin-top: 2rpx;
height: 680rpx;
position: absolute;
width: 92%;
top: 740rpx;
/* bottom: 40px; */
overflow: auto;
// background-color: #f2f2f2;
.form2 {
background-color: #fff;
padding: 20rpx 20rpx 20rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
color: #8d8989;
.list {
display: flex;
flex-direction: row;
.rowleft {
width: 80%;
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 40%;
}
.list-item {
display: flex;
flex-direction: row;
flex: 1;
}
}
}
.rowright {
width: 20%;
display: flex;
justify-content: right;
.righttitle {
width: 60%;
background-color: #8d898947;
color: red;
text-align: center;
/* margin: auto; */
height: 100%;
line-height: 70rpx;
}
}
}
// .righttitle {
// display: flex;
// justify-content: flex-end;
// .boder-icon-rigth {
// border: 1rpx solid #fa3534;
// width: 130rpx;
// text-align: center;
// background: #fa3534;
// color: #ffffff;
// margin-top: 10px;
// }
// .zhuangtai {
// background: #a7a0a04a;
// width: 224rpx;
// margin-right: -27rpx;
// border: 2rpx solid #a7a0a04a;
// border-radius: 12rpx;
// text-align: center;
// margin-bottom: 10rpx;
// }
// .zhuangtai[data-state='1'] {
// color: green;
// }
// .zhuangtai[data-state='0'] {
// color: blue;
// }
// }
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.button-bar {
}
.photoList {
display: flex;
padding-top: 12rpx;
.chooseBtn {
width: 202rpx;
height: 202rpx;
background: #fafafa;
border-radius: 12rpx;
border: 2rpx dashed #e2e2e2;
display: flex;
justify-content: center;
align-items: center;
.inner {
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.desc {
font-size: 28rpx;
font-weight: 400;
color: #24252a;
line-height: 40rpx;
}
.img {
width: 50rpx;
height: 50rpx;
margin-bottom: 6rpx;
}
}
.photoBox {
width: 202rpx;
height: 202rpx;
background: #fafafa;
border-radius: 12rpx;
position: relative;
.closeBtn {
position: absolute;
top: -12rpx;
right: -12rpx;
z-index: 2;
width: 36rpx;
height: 36rpx;
.img {
width: 36rpx;
height: 36rpx;
}
}
.img {
width: 202rpx;
height: 202rpx;
border-radius: 12rpx;
}
}
.itemBox {
flex: 0 0 202rpx;
margin-right: 20rpx;
&:last-child {
margin-right: 0;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
</style>

@ -0,0 +1,22 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
//import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.Raw.TrayStatusUpdate',
})
export class TrayStatusUpdate extends VuexModule {
SubmitCode: any = '';
@MutationAction
async out(params: any) {
const result: any = await http.post(url.lanjuwms.raw.TrayStatusUpdate.out, params);
const SubmitCode = result.code;
return { SubmitCode };
}
}
export default getModule(TrayStatusUpdate);

@ -31,5 +31,8 @@ export const page = {
SaleOutWH: '/pages/wms/product/SaleOutWH/index',
OfflineStorage: '/pages/wms/product/OfflineStorage/index',
ProductionREQ: '/pages/wms/Raw/ProductionREQ/index',
TrayStatusUpdate: '/pages/wms/Raw/TrayStatusUpdate/index',
SpecifyPalletOut: '/pages/wms/Raw/SpecifyPalletOut/index',
MatReturnWH: '/pages/wms/Raw/MatReturnWH/index',
},
};

@ -73,6 +73,7 @@ export const url = {
PurchaseOrderdetailPda: qianzhuione + '/wms/order/PurchaseOrderdetailPda',
// 手持 查询仓库管理列表
list: qianzhuione + '/wms/order/listCK',
sapPurchaseOrderSync: qianzhuione + '/wms/WmsToWCSmission/sapPurchaseOrderSync',
},
PurchaseWHPO: {
// 手持 --包材采购单采购收货查询
@ -90,6 +91,15 @@ export const url = {
ProductionMaterialRequisitionsn: qianzhuione + '/wms/WmsToWCSmission/ProductionMaterialRequisitionsn',
out: qianzhuione + '/wms/WmsToWCSmission/ProductionMaterialRequisitionAdd',
},
TrayStatusUpdate: {
out: qianzhuione + '/wms/order/TraystatusUpdate',
},
SpecifyPalletOut: {
out: qianzhuione + '/wms/order/DesignatedPalletOutbound',
},
MatReturnWH: {
into: '/wms/order/InventoryPlanIssuance',
},
},
},
// 设备管理

Loading…
Cancel
Save