cosmoim-852 fix 新增STO入库功能

master
FEC7\houzeyun 3 years ago
parent 04a7180737
commit 6ebf59b7b5

@ -484,12 +484,15 @@ export default {
ScanBoxCode: '请先扫描箱码', ScanBoxCode: '请先扫描箱码',
STOTransfers: 'STO 调拨', STOTransfers: 'STO 调拨',
STOoutbound: 'STO 出库', STOoutbound: 'STO 出库',
STOStorage: 'STO 入库',
DNLine: 'DN行项目', DNLine: 'DN行项目',
STOInventoryOrderNo: 'STO单号', STOInventoryOrderNo: 'STO单号',
STOLine: 'STO行项目', STOLine: 'STO行项目',
OutboundNum: '出库数量', OutboundNum: '出库数量',
StorageNum: '入库数量',
DeliveryLoc: '出库地点', DeliveryLoc: '出库地点',
AllThem: '请全部出库', AllThem: '请全部出库',
submitted: '还有数据没提交 是否重新查询', submitted: '还有数据没提交 是否重新查询',
StorageLocation: '入库地点',
}, },
}; };

@ -484,12 +484,15 @@ export default {
ScanBoxCode: 'Please scan the box code first', ScanBoxCode: 'Please scan the box code first',
STOTransfers: 'STO Transfers', STOTransfers: 'STO Transfers',
STOoutbound: 'STO Outbound', STOoutbound: 'STO Outbound',
DNLine: 'DNRowItem', STOStorage: 'STO Storage',
DNLine: 'DNItem',
STOInventoryOrderNo: 'STO Order', STOInventoryOrderNo: 'STO Order',
STOLine: 'STORowItem', STOLine: 'STORowItem',
OutboundNum: 'Outbound QTY', OutboundNum: 'total',
StorageNum: 'total',
DeliveryLoc: 'Delivery Loc', DeliveryLoc: 'Delivery Loc',
AllThem: 'All of them, please', AllThem: 'All of them, please',
submitted: 'There is data not submitted whether to re-query', submitted: 'There is data not submitted whether to re-query',
StorageLocation: 'Storage Loc',
}, },
}; };

@ -89,7 +89,7 @@ export default {
po_Return: 'Вернуть', po_Return: 'Вернуть',
po_MaterielNo: 'код', po_MaterielNo: 'код',
Materiel: 'MAT', Materiel: 'MAT',
po_MaterielDes: 'описание МАТ', po_MaterielDes: 'описыва',
returned: 'Количество возвратов', returned: 'Количество возвратов',
returneds: 'Количество возвратов', returneds: 'Количество возвратов',
quantity: 'Совокупное количество возвратов', quantity: 'Совокупное количество возвратов',
@ -355,7 +355,7 @@ export default {
product_Delete: 'Удалить', product_Delete: 'Удалить',
product_Empty: 'Пустой', product_Empty: 'Пустой',
product_AllSelect: 'Выбрать все', product_AllSelect: 'Выбрать все',
product_add: 'Добавлять', product_add: 'добавля',
product_Confirm: 'Подтверждать', product_Confirm: 'Подтверждать',
product_Upload: 'Представлять на рассмотрение', product_Upload: 'Представлять на рассмотрение',
product_Tip1: 'Лок не может быть пустым', product_Tip1: 'Лок не может быть пустым',
@ -441,7 +441,7 @@ export default {
Operation: 'Оператор.', Operation: 'Оператор.',
StorageTime: 'Время входа в хранилище', StorageTime: 'Время входа в хранилище',
spareGoods: 'Доставка запчастей', spareGoods: 'Доставка запчастей',
matcode: 'Кодирование вещества', matcode: 'ярд',
Quantity: 'Количество спроса', Quantity: 'Количество спроса',
scanningContainer: 'Сначала просканируйте код контейнера', scanningContainer: 'Сначала просканируйте код контейнера',
Pi_tipqty: 'Пожалуйста, убедитесь, что равняется количеству спроса', Pi_tipqty: 'Пожалуйста, убедитесь, что равняется количеству спроса',
@ -484,12 +484,15 @@ export default {
ScanBoxCode: 'Сначала просканируйте ящики', ScanBoxCode: 'Сначала просканируйте ящики',
STOTransfers: 'STO отпускн', STOTransfers: 'STO отпускн',
STOoutbound: 'STO На продаж', STOoutbound: 'STO На продаж',
DNLine: 'DNСтрокаItem', STOStorage: 'STO На склад',
DNLine: 'Строка',
STOInventoryOrderNo: 'STO Заказ', STOInventoryOrderNo: 'STO Заказ',
STOLine: 'STOСтрокаItem', STOLine: 'STOСтрока',
OutboundNum: 'На продаж количеств', OutboundNum: 'совокупн',
DeliveryLoc: 'Место выхода', StorageNum: 'совокупн',
DeliveryLoc: 'банк',
AllThem: 'Все из библиотеки, пожалуйста', AllThem: 'Все из библиотеки, пожалуйста',
submitted: 'Есть также данные, которые не были представлены для повторного запроса', submitted: 'Есть также данные, которые не были представлены для повторного запроса',
StorageLocation: 'Вход.',
}, },
}; };

@ -1178,6 +1178,14 @@
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white" // white-black-
} }
}, },
{
"path": "pages/raw/STO/STO-Storage/index",
"style": {
"navigationBarTitleText": "STO调拨入库",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{ {
"path": "pages/demo/index", "path": "pages/demo/index",
"style": { "style": {

@ -261,6 +261,10 @@ export default class dnReceiptDom extends BasePage {
if (isTrue) { if (isTrue) {
await this.model.SubmitList(this.SunmitList); await this.model.SubmitList(this.SunmitList);
if (this.model.SubCode == 1) { if (this.model.SubCode == 1) {
uni.showToast({
title: this.$t('message.success') as string,
image: '/static/icons/icon-51.png',
});
this.empty(); this.empty();
} }
} }

@ -5,7 +5,7 @@
<view class="left"> <view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" /> <u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view> </view>
<view class="title">{{ $t('message.STOoutbound') }}</view> <view class="title">{{ $t('message.STOStorage') }}</view>
<view class="right"></view> <view class="right"></view>
</view> </view>
<view class="content"> <view class="content">
@ -54,22 +54,22 @@
<view class="material-right-code" style="overflow: hidden">{{ TheItem.materialDesc }}</view> <view class="material-right-code" style="overflow: hidden">{{ TheItem.materialDesc }}</view>
</view> </view>
</view> </view>
<!-- 计划数量&&数量 --> <!-- 计划数量&&数量 -->
<view class="number"> <view class="number">
<view class="number-left"> <view class="number-left">
<view class="number-left-title">{{ $t('message.plan') }}</view> <view class="number-left-title">{{ $t('message.plan') }}</view>
<u-input v-model="TheItem.orderAmount" placeholder=" " :type="item" :border="border" class="input" disabled style="padding: '0'" /> <u-input v-model="TheItem.orderAmount" placeholder=" " :type="item" :border="border" class="input" disabled style="padding: '0'" />
</view> </view>
<view class="number-right"> <view class="number-right">
<view class="number-right-title">{{ $t('message.OutboundNum') }}</view> <view class="number-right-title">{{ $t('message.StorageNum') }}</view>
<u-input v-model="TheItem.scanAmount" placeholder="" :type="type" :border="border" class="input" disabled style="padding: '0'" /> <u-input v-model="TheItem.scanAmount" placeholder="" :type="type" :border="border" class="input" disabled style="padding: '0'" />
</view> </view>
</view> </view>
<!-- 出库库位 --> <!-- 出库库位 -->
<view class="material"> <view class="material">
<view class="material-right"> <view class="material-right">
<view class="material-right-title">{{ $t('message.DeliveryLoc') }}</view> <view class="material-right-title">{{ $t('message.StorageLocation') }}</view>
<view class="material-right-code" style="overflow: hidden">{{ TheItem.deliveryRegion }}</view> <view class="material-right-code" style="overflow: hidden">{{ TheItem.receiveRegion }}</view>
</view> </view>
</view> </view>
<!-- 库位 --> <!-- 库位 -->
@ -128,7 +128,7 @@ export default class dnReceiptDom extends BasePage {
LocList: any = []; LocList: any = [];
Loc: any = {}; Loc: any = {};
async QueryLoc() { async QueryLoc() {
await this.model.QueryLoc(this.TheItem.deliveryRegion); await this.model.QueryLoc(this.TheItem.receiveRegion);
this.LocList = this.model.LocList; this.LocList = this.model.LocList;
this.Loc = this.model.LocList[0]; this.Loc = this.model.LocList[0];
} }
@ -261,6 +261,10 @@ export default class dnReceiptDom extends BasePage {
if (isTrue) { if (isTrue) {
await this.model.SubmitList(this.SunmitList); await this.model.SubmitList(this.SunmitList);
if (this.model.SubCode == 1) { if (this.model.SubCode == 1) {
uni.showToast({
title: this.$t('message.success') as string,
image: '/static/icons/icon-51.png',
});
this.empty(); this.empty();
} }
} }

@ -7,16 +7,16 @@ import { session } from '@/store/modules/session';
namespaced: true, namespaced: true,
dynamic: true, dynamic: true,
store, store,
name: 'raw.STO.STO-Outbound.index', name: 'raw.STO.STO-Storage.index',
}) })
export class ReceiptModule extends VuexModule { export class ReceiptModule extends VuexModule {
//俄罗斯 STO库 扫描DN单号 //俄罗斯 STO库 扫描DN单号
dnNoList: any = []; dnNoList: any = [];
DnLineList: any = []; DnLineList: any = [];
@MutationAction @MutationAction
async QuerydnNo(dnNo: any) { async QuerydnNo(dnNo: any) {
console.log('dnNo', dnNo); console.log('dnNo', dnNo);
const res: any = await http.post(url.auth.query.dnNo, { const res: any = await http.post(url.auth.query.findStoDnReceiveInfo, {
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
loginName: session.loginName, loginName: session.loginName,
dnNo, dnNo,
@ -32,7 +32,7 @@ export class ReceiptModule extends VuexModule {
}); });
return { dnNoList, DnLineList }; return { dnNoList, DnLineList };
} }
//俄罗斯 STO库 查询库位 //俄罗斯 STO库 查询库位
LocList: any = []; LocList: any = [];
@MutationAction @MutationAction
async QueryLoc(sendSpot: any) { async QueryLoc(sendSpot: any) {
@ -52,11 +52,11 @@ export class ReceiptModule extends VuexModule {
}); });
return { LocList }; return { LocList };
} }
//俄罗斯 库提交 //俄罗斯 库提交
SubCode: any = ''; SubCode: any = '';
@MutationAction @MutationAction
async SubmitList(list: any) { async SubmitList(list: any) {
const res: any = await http.post(url.auth.query.russia, list); const res: any = await http.post(url.auth.query.stoDnReceiveConfirm, list);
const SubCode = res.code; const SubCode = res.code;
return { SubCode }; return { SubCode };
} }

@ -31,8 +31,10 @@ export const url = {
barcode: '/wmspda/bl/getOdsRawStorageSnNew', barcode: '/wmspda/bl/getOdsRawStorageSnNew',
queryContainer: '/wmspda/material/orderin/queryContainer', queryContainer: '/wmspda/material/orderin/queryContainer',
dnNo: '/wmspda/fg/findStoDnInfo/russia', dnNo: '/wmspda/fg/findStoDnInfo/russia',
findStoDnReceiveInfo: '/wmspda/fg/findStoDnReceiveInfo/russia',
queryByFactoryCodeAndWorkAreaCode: '/wmspda/fg/queryByFactoryCodeAndWorkAreaCode', queryByFactoryCodeAndWorkAreaCode: '/wmspda/fg/queryByFactoryCodeAndWorkAreaCode',
russia: '/wmspda/fg/stoDnConfirm/russia', russia: '/wmspda/fg/stoDnConfirm/russia',
stoDnReceiveConfirm: '/wmspda/fg/stoDnReceiveConfirm/russia',
}, },
systime: '/wmspda/auth/systime', systime: '/wmspda/auth/systime',
userInfo: '/wmspda/auth/userinfo', userInfo: '/wmspda/auth/userinfo',

Loading…
Cancel
Save