cosmoim-852 fix 俄罗斯成品sto出库退扫

master
guoshuang 2 years ago
parent 9b91c96d00
commit f3f4537991

@ -1282,6 +1282,14 @@
"navigationBarTextStyle": "white" // white-black-
}
},
{
"path": "pages/product/STO-Outbound/Back",
"style": {
"navigationBarTitleText": "成品STO出库退扫",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{
"path": "pages/demo/index",
"style": {

@ -0,0 +1,188 @@
<template>
<view class="page-raw-returning">
<view class="header" :style="{ backgroundColor: `rgba(23, 83, 234, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({ delta: 1 })" />
</view>
<view class="title">{{ $t('message.BackSweep') }}</view>
<view class="right"></view>
</view>
<u-form class="form" ref="form" :error-type="['toast']" label-width="150rpx">
<!-- 单号查询 -->
<u-form-item :required="true" :label="$t('message.dn_OddNumbers')" prop="orderNo">
<u-search :placeholder="$t('message.Commission_tips1')" v-model.trim="form.orderNo" @search="query" :show-action="false"></u-search>
<view class="single-right">
<u-button type="primary" @click="query">{{ $t('message.Query') }}</u-button>
</view>
</u-form-item>
<!-- 已扫数量 -->
<!-- <u-form-item :label="$t('message.SweptQuantity')">
<u-input v-model="scanAmount" :disabled="true" />
</u-form-item> -->
<!-- 已退数量 -->
<!-- <u-form-item :label="$t('message.QuantityReturned')">
<u-input v-model="retreatNum" :disabled="true" />
</u-form-item> -->
<!-- 成品条码 -->
<u-form-item :label="$t('message.product_barCode')">
<u-search :placeholder="$t('message.barcode')" v-model="barCode" @search="BackSweep" :show-action="false"></u-search>
</u-form-item>
</u-form>
<!-- <view class="bottom-bar">
<u-row class="button-bar">
<u-col :span="6">
<u-button type="warning" @click="uni.navigateBack({ delta: 1 })">{{ $t('message.po_Return') }}</u-button>
</u-col>
<u-col :span="6">
<u-button type="primary" @click="BackSweep">{{ $t('message.BackSweep') }}</u-button>
</u-col>
</u-row>
</view> -->
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import { session } from '@/store/modules/session';
@Component
export default class stoOutboundDom extends BasePage {
model = model;
order3: any = '';
firstFocus = false;
barCode: any = '';
scanAmount = 0;
retreatNum = 0;
form = {
dockCode: null, // code
dockName: null, // name
orderNo: null,
qty: 0,
orderAmount: '',
productCode: '', // name
productDescZh: '',
scanAmount: 0,
rowItem: '',
row: '',
barCode: '',
};
rowItemIndex: any = null;
async onReady() {
//let code = uni.getStorageSync('SweepCode');
// this.order3 = JSON.parse(code);
// this.model.materielList.forEach((item: any) => {
// this.scanAmount += parseFloat(item.outAmount);
// });
// let params = {
// nxOutCode: this.order3,
// loginName: session.loginName,
// factoryCode: session.factoryCode,
// };
// await this.model.queryAmount(params);
}
async BackSweep() {
if (!this.barCode) {
this.customToast(this.$t('message.barcode') as string);
return;
}
let params = {
barCode: this.barCode,
loginName: session.loginName,
factoryCode: session.factoryCode,
dnNo: this.form.orderNo,
};
await this.model.BackSweep(params);
if (this.model.code == '1') {
uni.showToast({
//icon: 'success',
title: this.$t('message.succeeded') as string,
duration: 2000,
image: '/static/icons/icon-51.png',
});
this.barCode = '';
// this.scanAmount -= 1;
// this.retreatNum += 1;
}
}
//
async query() {
if (!this.form.orderNo) {
this.customToast(this.$t('message.Commission_tips1') as any);
return;
}
await this.model.Querydn(this.form.orderNo);
//console.log('model.DNcode', this.model.DNcode);
// if (this.model.DNcode == '1') {
// // uni.showToast({
// // title: this.$t('message.successful') as any,
// // duration: 2000,
// // image: '/static/icons/icon-51.png',
// // });
// this.model.materielList.forEach((item: any) => {
// this.scanAmount += parseFloat(item.outAmount);
// });
// }
}
}
</script>
<style lang="scss" scoped>
.page-raw-returning {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #4a78ea 51%, #1753ea 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 36rpx;
left: 0;
right: 0;
z-index: 99;
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;
}
}
.form {
background-color: #fff;
padding: 40rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 30rpx 0;
line-height: 35rpx;
}
}
.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;
}
}
</style>

@ -80,12 +80,15 @@
<!-- 底部按钮 -->
<view class="bottom-bar">
<u-row class="button-bar">
<u-col :span="6">
<u-col :span="4">
<u-button type="primary" @click="Submit">{{ $t('message.Posting') }}</u-button>
</u-col>
<u-col :span="6">
<u-col :span="4">
<u-button type="error" @click="uni.navigateBack({})">{{ $t('message.po_Return') }}</u-button>
</u-col>
<u-col :span="4">
<u-button type="error" @click="BackSweep">{{ $t('message.BackSweep') }}</u-button>
</u-col>
</u-row>
</view>
</view>
@ -199,6 +202,14 @@ export default class dnReceiptDom extends BasePage {
//this.SunmitList = [];
this.model.dnNoList.length = 0;
}
BackSweep() {
// if (!this.form.orderNo) {
// this.customToast(this.$t('message.Commission_tips1') as any);
// return;
// }
//uni.setStorageSync('SweepCode', JSON.stringify(this.form.orderNo));
this.toPage(this.page.product.outbound.stoBack);
}
}
</script>
<style lang="scss" scoped>

@ -23,6 +23,7 @@ export class ReceiptModule extends VuexModule {
dnNoList: any = [];
DnLineList: any = [];
res: any = '';
code = '';
@MutationAction
async Querydn(dnNo: any) {
console.log('dnNo', dnNo);
@ -42,6 +43,14 @@ export class ReceiptModule extends VuexModule {
});
return { dnNoList, DnLineList };
}
//俄罗斯成品sto退扫接口
@MutationAction
async BackSweep(params: any) {
const res: any = await http.post(url.outbound.stoOutbound.stoDnProdScanDel, params);
console.log('res>>>>>>>>>>>>>>>>>>>>>>>>.', res);
const code = res.code;
return { code };
}
//俄罗斯sto成品扫码出库
@MutationAction
async stoDnProdScan(list: any) {

@ -32,6 +32,7 @@ export const page = {
delivergoods: '/pages/product/outbound/stoOutbound/DN-delivergoods',
Back: '/pages/product/outbound/stoOutbound/Back',
stoOutboundDetail: '/pages/product/outbound/stoOutbound/detail',
stoBack: '/pages/product/STO-Outbound/Back',
},
SpareDeliverGoods: {
detail: '/pages/product/outbound/SpareDeliverGoods/detail',

@ -171,6 +171,7 @@ export const url = {
queryAmount: '/wmspda/fg/queryAmountByDn',
Posting: '/wmspda/fg/dnPosting',
RusPosting: '/wmspda/fg/dnPosting/russia',
stoDnProdScanDel: '/wmspda/fg/stoDnProdScanDel/russia',
},
},
inbound: {

Loading…
Cancel
Save