cosmoim-852 fix 俄罗斯sto入库修改

master
guoshuang 3 years ago
parent e05e0a9fd9
commit 352771a138

@ -452,7 +452,7 @@ export default class dnReceiptDom extends BasePage {
display: flex;
.material-right-title {
width: 140rpx;
width: 200rpx;
height: 100%;
line-height: 100rpx;
}

@ -47,6 +47,11 @@ export const Tabheaders = [
key: 'wlCode',
width: 350,
},
{
label: vm.$t('message.Container'),
key: 'barCode',
width: 350,
},
{
label: vm.$t('message.product_Number'),
key: 'nowAmount',

@ -76,14 +76,19 @@
<view class="library">
<view class="library-left">
<view>{{ $t('message.CommissionedLocation') }}</view>
<!-- <u-input v-model="locCode" disabled placeholder="" style="margin-top: 8px" /> -->
<jPicker sureColor="#ff0000" style="width: 230rpx" @bindpicker="SelectLoc" showKey="value" valKey="value" :val="Loc.value" class="search" :options="LocList" />
</view>
</view>
<!-- 扫码 -->
<u-form-item :label="$t('message.product_BarCode')">
<u-search :placeholder="$t('message.po_PleaseInput')" v-model="barCode" @search="onOk" :focus="firstFocus" :show-action="false"></u-search>
</u-form-item>
<!-- 数量 -->
<view class="single">
<view class="single-left">
<view>{{ $t('message.dn_Number') }}:</view>
<u-input v-model="num" :placeholder="$t('message.Summary_PleaseInputNumber')" style="margin-top: 8px" />
<u-input v-model="num" disabled placeholder="" style="margin-top: 8px" />
</view>
<view class="single-right">
<u-button type="primary" @click="Add">{{ $t('message.product_add') }}</u-button>
@ -123,10 +128,13 @@ export default class dnReceiptDom extends BasePage {
Tabheaders = Tabheaders;
model = model;
dnNo: any = '';
firstFocus = false;
barCode: any = '';
dnNoList: any = [];
DnlineNo: any = {};
LocList: any = [];
Loc: any = {};
locCode: any = '';
async QueryLoc() {
await this.model.QueryLoc(this.TheItem.receiveRegion);
this.LocList = this.model.LocList;
@ -181,6 +189,37 @@ export default class dnReceiptDom extends BasePage {
SelectLoc(e: any) {
this.Loc = e.pickerName;
}
//
async onOk() {
if (!this.dnNo) {
this.customToast(this.$t('message.Warehouse_Tip1') as any);
return;
}
if (!this.barCode) {
this.customToast(this.$t('message.barcode_PleaseScan') as any);
return;
}
if (!this.DnlineNo.value) {
this.customToast(this.$t('message.DNLine_PleaseSelect') as any);
return;
}
const selctlist = {
dnNo: this.dnNo,
barCode: this.barCode,
dnItem: this.DnlineNo.value,
loginName: session.loginName,
factoryCode: session.factoryCode,
};
await this.model.stoDnProdScan(selctlist);
if (this.model.res.code == '1') {
this.customToast(this.$t('message.Warehouse_Tip9') as any);
const data = this.model.res.data;
//this.locCode = data.locCode;
this.num = parseFloat(data.scanAmount);
//this.TheItem.scanAmount = this.TheItem.scanAmount + 1;
//this.barCode = '';
}
}
num: any = '';
SunmitList: any = [];
Add() {
@ -192,10 +231,18 @@ export default class dnReceiptDom extends BasePage {
this.customToast(this.$t('message.Warehouse_Tip6') as any);
return;
}
if (!this.barCode) {
this.customToast(this.$t('message.barcode_PleaseScan') as any);
return;
}
if (!this.Loc) {
this.customToast(this.$t('message.Warehouse_Tip2') as any);
return;
}
// if (!this.Loc) {
// this.customToast(this.$t('message.Warehouse_Tip2') as any);
// return;
// }
if (!this.num) {
this.customToast(this.$t('message.Summary_PleaseInputNumber') as any);
return;
@ -225,9 +272,12 @@ export default class dnReceiptDom extends BasePage {
scanAmount: this.TheItem.orderAmount,
wlCode: this.Loc.value,
nowAmount: this.num,
barCode: this.barCode,
};
this.SunmitList.push(obj);
this.num = '';
this.barCode = '';
//this.locCode = '';
console.log('this.model.dnNoList', this.model.dnNoList);
}
deleteItem(e: any) {
@ -272,6 +322,8 @@ export default class dnReceiptDom extends BasePage {
empty() {
this.dnNo = '';
this.LocList = [];
this.barCode = '';
//this.locCode = '';
this.Loc = {};
this.TheItem = {};
this.ItemIndex = 0;
@ -405,7 +457,7 @@ export default class dnReceiptDom extends BasePage {
display: flex;
.material-right-title {
width: 140rpx;
width: 200rpx;
height: 100%;
line-height: 100rpx;
}

@ -1,3 +1,12 @@
/*
* @Author: zhou lei
* @Date: 2022-09-28 10:26:36
* @LastEditTime: 2022-10-28 20:00:58
* @LastEditors: zhou lei
* @Description:
* @FilePath: \hgwms-factory-app\src\pages\raw\STO\STO-Storage\model.ts
* :910592680@qq.com 18669792120
*/
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
@ -52,6 +61,14 @@ export class ReceiptModule extends VuexModule {
});
return { LocList };
}
//扫描条码
res: any = '';
@MutationAction
async stoDnProdScan(list: any) {
const res: any = await http.post(url.auth.query.stoDnReceiveScan, list);
//const SubCode = res.code;
return { res };
}
//俄罗斯 入库提交
SubCode: any = '';
@MutationAction

@ -35,6 +35,7 @@ export const url = {
queryByFactoryCodeAndWorkAreaCode: '/wmspda/fg/queryByFactoryCodeAndWorkAreaCode',
russia: '/wmspda/fg/stoDnConfirm/russia',
stoDnReceiveConfirm: '/wmspda/fg/stoDnReceiveConfirm/russia',
stoDnReceiveScan: '/wmspda/fg/stoDnReceiveScan/russia',
},
systime: '/wmspda/auth/systime',
userInfo: '/wmspda/auth/userinfo',

Loading…
Cancel
Save