LAPTOP-R6EHHS26\86155 1 year ago
commit fb36b526ae

@ -519,6 +519,22 @@
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/wms/FGmanagement/FinishedProCheck/index",
"style": {
"navigationBarTitleText": "成品盘点",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/wms/product/BatchOfflineStorage/index",
"style": {
"navigationBarTitleText": "批量下线入库",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
}

@ -66,7 +66,7 @@ export default class RawHome extends BasePage {
model = model;
src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg';
today = dayjs().format('YYYY-MM-DD dddd');
version = '0.0.48';
version = '0.0.49';
checkversion: any = {};
sessiondata: any = '';
onLoad() {

@ -0,0 +1,727 @@
<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="orderNo" @search="query" :show-action="false"></u-search>
</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>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 盘点仓库: </view>
<view> {{ orderNoItemList && orderNoItemList.userDefined1 }} </view>
</view>
<view class="row-list-item">
<view class="list-item"> 实盘数量: </view>
<view> {{ unit }} </view>
</view>
</view>
<!-- 机台 -->
<!-- <u-form-item label="出库仓库"> 成品库 </u-form-item> -->
</u-form>
<u-form class="form4">
<u-search placeholder="请扫托盘" @search="addlist" v-model="boxnumber" :show-action="false"></u-search>
<!-- <u-input style="border: 0.5rpx solid #8d8989; border-radius: 10rpx" v-model="boxnumber" @click="clickscan"></u-input> -->
</u-form>
<u-form style="margin-top: 1rpx" class="form3">
<view class="list">
<view class="row-list">
<view class="list-item"> 物料编码: </view>
<view> {{ scandata && scandata.materialCode }} </view>
</view>
<view class="row-list">
<view class="list-item"> 物料名称: </view>
<view> {{ scandata && scandata.materialDesc }} </view>
</view>
<view class="row-list">
<view class="row-list-item">
<view style="width: 30%" class="list-item"> 托盘号: </view>
<view> {{ scandata && scandata.userDefined2 }} </view>
</view>
<view class="row-list-item">
<view class="list-item"> 库存位置: </view>
<view> {{ scandata && scandata.locCode }} </view>
</view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 应盘数量: </view>
<view> {{ scandata && scandata.userDefined3 == 0 ? scandata.locNumber : '**' }} </view>
</view>
<view class="row-list-item">
<view class="list-item"> 单位: </view>
<view> {{ scandata && scandata.unit }} </view>
</view>
</view>
<!-- <u-form-item label="实盘数量:" >
<u-input style="width:70%" border="surround" v-model="actualnumber"/>
<u-button type="primary" size="small" text="确认"></u-button>
</u-form-item> -->
<view class="row-list">
<view class="row-list-item1">
<view class="list-item"> 实盘数量: </view>
<u-input style="height: 60rpx" :border="surround" v-model="actualnumber" />
</view>
<view class="row-list-item2">
<u-button type="error" @click="confirm" size="large">确认</u-button>
</view>
</view>
</view>
</u-form>
</view>
<view style="height: 14rpx"></view>
<view class="scroll">
<view v-for="(item, index) in list" :key="item.id">
<u-form style="margin-top: 10rpx" class="form2">
<view class="list">
<view class="rowleft">
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 托盘号: </view>
<view> {{ item.userDefined2 }}</view>
</view>
<view class="row-list-item">
<view class="list-item"> 库位: </view>
<view style="word-break: break-word"> {{ item.locCode }} </view>
</view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 物料编码: </view>
<view> {{ item.materialCode }} </view>
</view>
<view class="row-list-item">
<view class="list-item"> 物料名称: </view>
<view> {{ item.materialDesc }} </view>
</view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 应盘数量: </view>
<view> {{ item.locNumber }} </view>
</view>
<view class="row-list-item">
<view class="list-item"> 实盘数量: </view>
<view> {{ item.realityNumber }} </view>
</view>
</view>
</view>
<view class="rowright">
<view class="righttitle">
<view @click.stop="ondelete(item, index)" class="boder-icon-rigth"> 删除 </view>
</view>
</view>
</view>
</u-form>
</view>
</view>
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onSubmit" type="primary">盘点完成</u-button>
</u-col>
</u-row>
</view>
<u-modal v-model="showmodal" @confirm="confirmok" :content="content" :show-cancel-button="true"></u-modal>
<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';
import { session } from '@/store/modules/session';
interface OptionType {
label: string;
value: string;
}
//import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
},
})
export default class FinishedProCheck extends BasePage {
model = model;
list: any = [];
aimWl = {} as OptionType;
boxnumber: any = '';
materilist = [];
showmodal = false;
content: any = '';
outNumber = 0;
actualnumber = 0;
unit = 0;
scandata: any = {};
orderNo: any = '';
border = true;
orderNoItemList: any = {};
showProduceCodeList: any = [];
itemdetail: any = '';
delindex: any = -1;
outnumber: any = 0;
surround = true;
bookTypeChange(e: any) {
this.aimWl = e.pickerName;
}
//
async ondelete(item, index) {
console.log('1234567', item);
this.itemdetail = item;
this.delindex = index;
await model.deleteTray(this.itemdetail.id);
if (model.SubmitCode == '200') {
this.selectscandata();
}
}
//
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入盘点单号',
// url: '/pages/user/index'
});
return;
}
await this.model.showProduceCode(this.orderNo);
console.log('model.orderNoItemList.orderStatu', model.orderNoItemList.orderStatus);
if (model.orderNoItemList.orderStatus == '0') {
this.orderNoItemList = model.orderNoItemList;
let materiallist = model.orderNoItemList.odsProductEmbryoInventoryCorrelationList;
const uniqueArray = Array.from(new Set(materiallist.map((item) => item.materialCode))).map((materialCode) => materiallist.find((item) => item.materialCode === materialCode));
this.materilist = [];
let a: any = {};
uniqueArray.forEach((item) => {
a.label = item.materialDesc;
a.value = item.materialCode;
this.materilist.push(a);
});
this.aimWl = this.materilist[0];
} else {
this.materilist = [];
(this.$refs.uToast as any).show({
title: '该单已盘点!',
// url: '/pages/user/index'
});
}
}
async addlist() {
if (this.boxnumber == '') {
(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.siteCode = session.FactoryCode;
item.sn = this.boxnumber;
item.orderCode = this.orderNo;
item.materialCode = this.aimWl.value;
await this.model.selloutconntray(item);
if (this.model.scanreturndata != null) {
this.scandata = this.model.scanreturndata;
//this.list.push({ batchCode: scandata.barCode, amount: scandata.amount, sn: scandata.sn, wlCode: scandata.wlCode, materialCode: scandata.materialCode, emOrderInSnId: scandata.emOrderInSnId });
this.boxnumber = '';
this.selectscandata();
//this.outNumber += parseFloat(scandata.amount);
} else {
(this.$refs.uToast as any).show({
title: '未查询到数据',
type: 'error',
});
// this.getlist();
this.boxnumber = '';
}
// //
// await this.model.queryOrderNo(this.form5);
// this.list = model.orderNoItemList;
}
async confirm() {
if (this.actualnumber == 0) {
(this.$refs.uToast as any).show({
title: '请输入实盘数量',
// url: '/pages/user/index'
});
return;
}
let params: any = {};
params.siteCode = session.FactoryCode;
params.realityNumber = this.actualnumber.toString();
params.id = this.scandata.id;
await this.model.confirmscan(params);
if (this.model.confirmcode == '200') {
this.scandata = null;
this.actualnumber = 0;
this.selectscandata();
}
}
///
async selectscandata() {
// if (this.orderNo == '' || this.orderNo.length == 0) {
// (this.$refs.uToast as any).show({
// title: '',
// // url: '/pages/user/index'
// });
// return;
// }
await this.model.selectscandata(this.orderNo);
console.log('ddddddd', this.model.seleconfirmcode);
if (this.model.seleconfirmcode == '200') {
console.log('999999', this.model.selectscandataobj);
this.list = this.model.selectscandataobj;
let sum = this.list.reduce((total, item) => {
// realityNumber
return total + parseInt(item.realityNumber);
}, 0);
this.unit = sum;
}
}
async onSubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入盘点单号',
// url: '/pages/user/index'
});
return;
}
if (this.list.length == 0 || this.list == '') {
(this.$refs.uToast as any).show({
title: '请先扫描托盘',
// url: '/pages/user/index'
});
return;
}
this.showmodal = true;
this.content = '是否确认盘点完成?';
}
async confirmok() {
let sum = this.list.reduce((total, item) => {
// realityNumber
return total + parseInt(item.locNumber);
}, 0);
let params = {
siteCode: session.FactoryCode,
id: this.orderNoItemList.id,
realityNumber: this.unit.toString(),
locNumber: sum.toString(),
createBy: session.loginName,
};
console.log('params', params);
await this.model.check(params);
if (this.model.SubmitCode == '200') {
(this.$refs.uToast as any).show({
title: '成功',
type: 'success',
});
this.list = [];
this.orderNo = '';
this.aimWl = {} as OptionType;
this.orderNoItemList = {};
this.materilist = [];
//this.query();
this.unit = 0;
this.actualnumber = 0;
this.scandata = null;
// this.getlist();
} else {
(this.$refs.uToast as any).show({
title: '失败',
type: 'error',
});
// this.getlist();
}
}
}
</script>
<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: 30rpx;
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: 80%;
height: 100%;
display: flex;
view {
width: 142rpx;
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;
}
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 48%;
}
.list-item {
display: flex;
flex-direction: row;
flex: 1;
}
}
}
.form3 {
background-color: #fff;
padding: 25rpx 25rpx 25rpx;
border-radius: 10rpx;
//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: 45%;
}
.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: 25%;
}
.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: 440rpx;
position: absolute;
width: 92%;
top: 770rpx;
/* bottom: 40px; */
overflow: auto;
.form2 {
background-color: #fff;
padding: 25rpx 25rpx 25rpx;
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: 90%;
.row-list {
display: flex;
flex-direction: row;
justify-content: space-between;
.row-list-item {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 48%;
}
.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,94 @@
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.FGmanagement.FinishedProCheck',
})
export class FinishedProCheck extends VuexModule {
orderNoItemList: any = [];
@MutationAction
async showProduceCode(orderNo: any) {
const result: any = await http.post(url.lanjuwms.FGmanagement.FinishedProCheck.selectOdsProductEmbryoInventory, {
orderCode: orderNo,
siteCode: session.FactoryCode,
});
// http.defaults.headers.common['Accept-Language'] = session.PoolName;
const orderNoItemList = result.data;
return { orderNoItemList };
}
information: any = [];
@MutationAction
async queryinformation(item) {
console.log(item);
const result: any = await http.get(url.lanjuwms.product.SaleOutWH.queryinformation + '/' + item.orderNo + '/' + item.value, {});
const information = result.data;
return { information };
}
TraysList: any = [];
@MutationAction
async showTrays(item: any) {
const result: any = await http.get(url.lanjuwms.product.SaleOutWH.showTrays + '/' + item.orderNo + '/' + item.value, {});
const TraysList = result.data;
return { TraysList };
}
SubmitCode: any = '';
scanreturndata: any = {};
@MutationAction
async selloutconntray(params: any) {
const result: any = await http.post(url.lanjuwms.FGmanagement.FinishedProCheck.selectScanningTray, params);
let scanreturndata: any;
if (result.data) {
scanreturndata = result.data;
} else {
scanreturndata = null;
}
const SubmitCode = result.code;
return { scanreturndata, SubmitCode };
}
confirmcode: any = '';
@MutationAction
async confirmscan(params: any) {
const result: any = await http.post(url.lanjuwms.FGmanagement.FinishedProCheck.confirmInventory, params);
const confirmcode = result.code;
return { confirmcode };
}
//查询盘点数据接口
seleconfirmcode: any = '';
selectscandataobj: any = [];
@MutationAction
async selectscandata(params: string) {
const result: any = await http.post(url.lanjuwms.FGmanagement.FinishedProCheck.selectOdsProductEmbryoInventoryCorrelation, {
orderCode: params,
siteCode: session.FactoryCode,
});
console.log('e32dwedc', result);
const seleconfirmcode = result.code;
const selectscandataobj = result.data;
return { seleconfirmcode, selectscandataobj };
}
@MutationAction
async deleteTray(item: string) {
console.log(item);
const result: any = await http.post(url.lanjuwms.FGmanagement.FinishedProCheck.cancelInventory, {
siteCode: session.FactoryCode,
id: item,
});
const SubmitCode = result.code;
return { SubmitCode };
}
@MutationAction
async check(params: any) {
const result: any = await http.post(url.lanjuwms.FGmanagement.FinishedProCheck.confirmCompletion, params);
const SubmitCode = result.code;
return { SubmitCode };
}
}
export default getModule(FinishedProCheck);

@ -129,7 +129,7 @@
:label="item.menuName"
label-pos="bottom"
size="80"
:name="item.menuName == '盘点' ? '../../static/icons/icon-53.png' : '../../static/icons/icon-56.png'"
:name="item.menuName.includes('盘点') ? '../../static/icons/icon-53.png' : '../../static/icons/icon-56.png'"
></u-icon>
</view>
</view>
@ -150,7 +150,7 @@
:label="item.menuName"
label-pos="bottom"
size="80"
:name="item.menuName == '白胚入库' || '退货入库' ? '../../static/icons/icon-54.png' : item.menuName == '白胚出库' ? '../../static/icons/icon-55.png' : '../../static/icons/icon-56.png'"
:name="item.menuName.includes('入库') ? '../../static/icons/icon-54.png' : item.menuName.includes('出库') ? '../../static/icons/icon-55.png' : '../../static/icons/icon-56.png'"
></u-icon>
<!-- 写死菜单 -->
<!-- <u-icon

@ -0,0 +1,763 @@
<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="orderNo" @search="query" :show-action="false"></u-search>
</view>
<!-- <view class="single-right">
<u-button type="primary" @click="tidan"></u-button>
</view> -->
</view>
<!-- 订单 -->
<!-- 机台 -->
<!-- <u-form-item label="出库仓库"> 成品库 </u-form-item> -->
</u-form>
<u-form style="margin-top: 1rpx" class="form3">
<view class="list">
<view class="row-list">
<view class="list-item"> 生产订单: </view>
<view> {{ orderNoItemList && orderNoItemList.productOrder }} </view>
</view>
<view class="row-list">
<view class="list-item"> 产品编码: </view>
<view> {{ orderNoItemList && orderNoItemList.productCode }} </view>
</view>
<view class="row-list">
<view class="list-item"> 产品名称: </view>
<view> {{ orderNoItemList && orderNoItemList.productName }} </view>
</view>
<view class="row-list">
<view class="list-item"> 批次号: </view>
<view> {{ orderNoItemList && orderNoItemList.batchNumber }} </view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 订单数量: </view>
<view> {{ orderNoItemList && orderNoItemList.planQuantity }} </view>
</view>
<view class="row-list-item">
<view class="list-item"> 单位: </view>
<view> {{ orderNoItemList && orderNoItemList.unitOfMeasure }} </view>
</view>
</view>
<view class="row-list">
<view class="list-item">入库数量: </view>
<u-input :border="border" v-model="number1" placeholder="" type="number" />
<!-- <view> {{ orderNoItemList && orderNoItemList.putQuantity }} </view> -->
</view>
<view class="row-list">
<view class="list-item">出库仓库: </view>
<jPicker style="width: 80%" sureColor="#ff0000" @bindpicker="warehouseChange" showKey="value" valKey="value" :val="cimWl.value" :options="warehouselist" />
</view>
<!-- <u-form-item label="出库仓库">
<jPicker sureColor="#ff0000" @bindpicker="warehouseChange" showKey="value" valKey="value" :val="cimWl.value" :options="warehouselist" />
</u-form-item> -->
</view>
</u-form>
<u-form class="form4" style="">
<!-- <u-search placeholder="请扫描" v-model="boxnumber" :show-action="false"></u-search> -->
<view class="buttontostore" @click="rukubutn"></view>
<!-- <u-input style="border: 0.5rpx solid #8d8989; border-radius: 10rpx" v-model="boxnumber" @click="clickscan"></u-input> -->
</u-form>
</view>
<view style="height: 14rpx"></view>
<view style="margin-top: 180rpx" class="scroll">
<view v-for="item in list" :key="item.id">
<u-form style="margin-top: 10rpx" class="form2">
<view class="list">
<view class="rowleft">
<view class="row-list">
<!-- <view class="row-list-item">
<view class="list-item"> 批次号: </view>
<view>{{ item.batchNumber }} </view>
</view> -->
<view class="row-list-item">
<view class="list-item"> 箱数: </view>
<view>{{ item.number }} </view>
</view>
</view>
<view class="row-list">
<view class="row-list-item">
<view class="list-item"> 库位码: </view>
<view>{{ item.wlCode }} </view>
</view>
<view class="row-list-item">
<view class="list-item"> 托盘码: </view>
<view>{{ item.sn }} </view>
</view>
</view>
</view>
<view class="rowright">
<view class="righttitle">
<view @click.stop="onPassdelet(item, index)" class="boder-icon-rigth"> 删除 </view>
</view>
</view>
</view>
</u-form>
</view>
</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>
<view>
<u-popup v-model="show" mode="center" width="550rpx" height="450rpx">
<view class="form5">
<view class="poupitem">
<view class="pouptitle">托盘号</view>
<u-input class="poupcontent" :clearable="false" v-model="form5.sn" placeholder="" style="overflow: hidden" />
</view>
<view class="poupitem">
<view class="pouptitle">入库库位</view>
<u-input class="poupcontent" :clearable="false" v-model="form5.wlCode" placeholder="" style="overflow: hidden" />
</view>
<view class="poupitem">
<view class="pouptitle">箱数</view>
<u-input class="poupcontent" :clearable="false" v-model="form5.number" placeholder="" style="overflow: hidden" />
</view>
</view>
<view class="poupbutton">
<!-- 确定 -->
<u-button @click="onOk" type="primary">确定</u-button>
<!-- 返回 -->
<u-button type="error" @click="nopoup"></u-button>
</view>
</u-popup>
<view v-if="show" class="mask"></view>
</view>
<u-modal v-model="showmodal" @confirm="confirm" :content="content" :show-cancel-button="true"></u-modal>
<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';
import { session } from '@/store/modules/session';
interface OptionType {
label: string;
value: string;
}
//import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
},
})
export default class BatchOfflineStorage extends BasePage {
model = model;
list: any = [];
orderNoItemList: any = [];
show = false;
form5: any = {};
boxnumber: any = '';
itemdetail: any = '';
showmodal = false;
content: any = '';
number1: number;
border = true;
delindex = -1;
cimWl = {} as OptionType;
warehouselist = [];
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
// this.remove = this.model.WlList[0];
// }
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
histroyItem: any = {};
barcode: any = '';
productCodeList: any = {};
async onReady() {
await this.model.getwarehouselist();
this.warehouselist = model.warehouselist;
const cimWl = this.warehouselist.find((item) => item.value === '0004');
if (cimWl) {
this.cimWl = cimWl;
} else {
this.cimWl = this.warehouselist[0];
}
}
//
async onPassdelet(item, index) {
console.log('1234567', item);
this.itemdetail = item;
this.delindex = index;
this.showmodal = true;
this.content = '是否删除?';
// let params = {
// item
// }
}
async confirm() {
this.itemdetail.orderNo = this.orderNo;
console.log(this.itemdetail, this.orderNo);
this.list.splice(this.delindex, 1);
// await this.model.deleteTray(this.itemdetail);
// if (this.model.SubmitCode == '200') {
// (this.$refs.uToast as any).show({
// title: '',
// type: 'success',
// });
// this.getlist();
// } else {
// (this.$refs.uToast as any).show({
// title: '',
// type: 'error',
// });
// this.getlist();
// }
}
//
warehouseChange(e: any) {
this.cimWl = e.pickerName;
}
//
nopoup() {
this.show = false;
this.form5 = {};
}
//
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入工单号',
// url: '/pages/user/index'
});
return;
}
await this.model.queryOrderNo(this.orderNo);
if (model.orderNoItemList) {
this.orderNoItemList = model.orderNoItemList;
this.number1 = this.orderNoItemList.attr3;
} else {
this.orderNoItemList = {};
}
//this.getlist();
}
//
async onSubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入工单号',
// url: '/pages/user/index'
});
return;
}
if (this.list.length == 0 || this.list == '') {
(this.$refs.uToast as any).show({
title: '请先入库',
// url: '/pages/user/index'
});
return;
}
let insertTarynumber = 0;
this.list.forEach((item) => {
insertTarynumber = insertTarynumber + parseInt(item.number);
});
//console.log(insertTarynumber, model.orderNoItemList.putQuantity, insertTarynumber == model.orderNoItemList.putQuantity);
if (insertTarynumber <= this.number1) {
let params = {
workOrder: this.orderNoItemList.workOrder,
factoryCode: session.FactoryCode,
whCode: this.cimWl.value, //
productName: this.orderNoItemList.productName,
productCode: this.orderNoItemList.productCode,
planQuantity: this.orderNoItemList.planQuantity,
putQuantity: this.number1,
batchNumber: this.orderNoItemList.batchNumbe, //
createBy: session.loginName,
unitOfMeasure: this.orderNoItemList.unitOfMeasure,
productOrder: this.orderNoItemList.productOrder, //
wmsProductPut: this.list,
};
//console.log('',params);
await this.model.handPut(params);
if (this.model.SubmitCode == '200') {
(this.$refs.uToast as any).show({
title: '成功',
type: 'success',
});
this.show = false;
this.list = [];
this.query();
//this.getlist();
} else {
(this.$refs.uToast as any).show({
title: '失败',
type: 'error',
});
this.show = false;
//this.getlist();
}
} else {
(this.$refs.uToast as any).show({
title: '实际入库总数量不能超过入库数量,请正确入库',
// url: '/pages/user/index'
});
}
}
async getlist() {
await (this.model as any).list(this.orderNo);
if (model.productCodeList.length > 0) {
this.list = model.productCodeList;
} else {
this.list = [];
}
console.log(model.productCodeList);
}
async rukubutn() {
this.form5 = {};
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入工单号',
// url: '/pages/user/index'
});
return;
}
if (this.list.length > 0) {
let insertTarynumber = 0;
this.list.forEach((item) => {
insertTarynumber = insertTarynumber + parseInt(item.number);
});
let ordernumber = this.number1 || 0;
if (insertTarynumber >= ordernumber) {
(this.$refs.uToast as any).show({
title: '实际入库数量不能大于入库数量,请先删除再入库',
// url: '/pages/user/index'
});
return;
}
this.show = true;
} else {
this.show = true;
}
}
//
async onOk() {
console.log(this.form5);
if (this.form5.sn == '' || this.form5.wlCode == '' || this.form5.number == '') {
(this.$refs.uToast as any).show({
title: '不能为空',
// url: '/pages/user/index'
});
return;
}
this.list.push({
number: this.form5.number,
wlCode: this.form5.wlCode,
sn: this.form5.sn,
//batchNumber: this.orderNoItemList.batchNumber,
});
this.show = false;
// await this.model.insertTary(this.form5);
// if (this.model.SubmitCode == '200') {
// (this.$refs.uToast as any).show({
// title: '',
// type: 'success',
// });
// this.show = false;
// this.getlist();
// } else {
// (this.$refs.uToast as any).show({
// title: '',
// type: 'error',
// });
// this.show = false;
// this.getlist();
// }
// //
// await this.model.queryOrderNo(this.form5);
// this.list = model.orderNoItemList;
}
}
</script>
<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: 30rpx;
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: 80%;
height: 100%;
display: flex;
view {
width: 142rpx;
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: 25rpx 25rpx 25rpx;
border-radius: 10rpx;
//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%;
}
.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: 1rpx;
border-radius: 10rpx;
margin-top: 2rpx;
display: flex;
justify-content: flex-end;
// margin-bottom: 5px;
padding-bottom: 5px;
.buttontostore {
margin-top: 5px;
background: red;
width: 13%;
/* height: 100%; */
height: 33px;
text-align: center;
/* margin: auto; */
color: #ffff;
line-height: 30px;
border-radius: 5px;
}
.u-input__input {
min-height: 36px;
}
}
.scroll {
// margin-top: 2rpx;
height: 835rpx;
position: absolute;
width: 92%;
top: 550rpx;
/* bottom: 40px; */
overflow: auto;
.form2 {
background-color: #fff;
padding: 25rpx 25rpx 25rpx;
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;
}
.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;
// }
}
.form5 {
padding: 20rpx;
//border-radius: 10rpx;
//box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.poupitem {
display: flex;
flex-direction: row;
justify-content: space-around;
margin: 20rpx;
align-items: center;
.pouptitle {
// width: 25%;
min-width: 35%;
// white-space: nowrap;
}
.poupcontent {
border: 1px solid rgba(128, 128, 128, 0.2);
}
}
}
.poupbutton {
display: flex;
justify-content: center;
}
}
</style>

@ -0,0 +1,71 @@
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.product.BatchOfflineStorage',
})
// http.defaults.headers.common['poolName'] = session.PoolName;
export class BatchOfflineStorage extends VuexModule {
WlList = [];
orderNoItemList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.post(url.lanjuwms.product.OfflineStorage.queryinformation, {
workOrder: orderNo,
factoryCode: session.FactoryCode,
// headers: {
// poolName: session.PoolName,
// },
});
// http.defaults.headers.common['Accept-Language'] = session.PoolName;
const orderNoItemList = result.data;
return { orderNoItemList };
}
productCodeList: any = [];
@MutationAction
async list(orderNo: any) {
const result: any = await http.get(url.lanjuwms.product.OfflineStorage.list + '/' + orderNo, {});
const productCodeList = result.data;
return { productCodeList };
}
SubmitCode: any = '';
@MutationAction
async insertTary(params: any) {
const result: any = await http.post(url.lanjuwms.product.OfflineStorage.insertTary, params);
const SubmitCode = result.code;
return { SubmitCode };
}
@MutationAction
async deleteTray(item: any) {
console.log(item);
const result: any = await http.delete(url.lanjuwms.product.OfflineStorage.deleteTray + '/' + item.sn + '/' + item.orderNo);
const SubmitCode = result.code;
return { SubmitCode };
}
@MutationAction
async handPut(params: any) {
const result: any = await http.post(url.lanjuwms.product.OfflineStorage.WmsProductPutByWorkOrderConfirm, params);
const SubmitCode = result.code;
return { SubmitCode };
}
warehouselist: any = [];
@MutationAction
async getwarehouselist() {
const result = await http.post(url.lanjuwms.raw.ProductionREQ.warehouselist, {
factoryCode: session.FactoryCode,
});
const warehouselist = result.data.map((element: any) => ({
label: element.warehouseName,
value: element.warehouseCode,
...element,
}));
return { warehouselist };
}
}
export default getModule(BatchOfflineStorage);

@ -369,6 +369,33 @@ export default class SaleOutWH extends BasePage {
}
async tidan() {
//
// if (this.orderNo == '' || this.orderNo.length == 0) {
// (this.$refs.uToast as any).show({
// title: '',
// // url: '/pages/user/index'
// });
// return;
// }
let item = {
factoryCode: session.FactoryCode,
//deliveryOrder: this.orderNo,
createBy: session.loginName,
};
await this.model.selectFinishedProductSales(item);
if (this.model.tidancode == '200') {
(this.$refs.uToast as any).show({
title: '提单成功',
type: 'success',
});
//this.list = [];
this.query();
//this.productCodebiaozhiwei = '';
} else {
(this.$refs.uToast as any).show({
title: '提单失败',
type: 'error',
});
}
}
}
</script>

@ -66,6 +66,13 @@ export class SaleOutWH extends VuexModule {
}));
return { warehouselist };
}
tidancode: any = '';
@MutationAction
async selectFinishedProductSales(params) {
const result: any = await http.post(url.lanjuwms.product.SaleOutWH.selectFinishedProductSales, params);
const tidancode = result.code;
return { tidancode };
}
}
export default getModule(SaleOutWH);

@ -43,5 +43,7 @@ export const page = {
SalesReturndetail: '/pages/wms/product/SalesReturn/detail',
TransferWarehouse: '/pages/wms/product/TransferWarehouse/index',
PalletShift: '/pages/wms/FGmanagement/PalletShift/index',
FinishedProCheck: '/pages/wms/FGmanagement/FinishedProCheck/index',
BatchOfflineStorage: '/pages/wms/product/BatchOfflineStorage/index',
},
};

@ -73,6 +73,8 @@ export const url = {
selectQueryFinishedProductSales: qianzhuione + '/wms/WmsToWCSmission/selectQueryFinishedProductSales',
//销售出库确认
confirmFinishedProductSales: qianzhuione + '/wms/WmsToWCSmission/confirmFinishedProductSales',
//提单接口
selectFinishedProductSales: qianzhuione + '/wms/WmsToWCSmission/selectFinishedProductSales',
},
SalesReturn: {
FinishedProductSalesReturn: qianzhuione + '/wms/WmsToWCSmission/FinishedProductSalesReturn',
@ -144,6 +146,14 @@ export const url = {
palletScanning: qianzhuione + '/wms/WmsToWCSmission/palletScanning',
palletTransferConfirmation: qianzhuione + '/wms/WmsToWCSmission/palletTransferConfirmation',
},
FinishedProCheck: {
selectOdsProductEmbryoInventory: qianzhuione + '/wms/WmsToWCSmission/selectOdsProductEmbryoInventory',
selectScanningTray: qianzhuione + '/wms/WmsToWCSmission/selectScanningTray',
confirmInventory: qianzhuione + '/wms/WmsToWCSmission/confirmInventory',
cancelInventory: qianzhuione + '/wms/WmsToWCSmission/cancelInventory',
selectOdsProductEmbryoInventoryCorrelation: qianzhuione + '/wms/WmsToWCSmission/selectOdsProductEmbryoInventoryCorrelation',
confirmCompletion: qianzhuione + '/wms/WmsToWCSmission/confirmCompletion',
},
},
},
// 设备管理

Loading…
Cancel
Save