cosmoim-852 fix 俄罗斯半成品判废

master
guoshuang 3 years ago
parent fd88761957
commit 703a19f8d6

@ -512,9 +512,11 @@ export default {
PleaseThere: '请输入责任工序', PleaseThere: '请输入责任工序',
rawWasteJudgment: '原材料判废', rawWasteJudgment: '原材料判废',
reason1: '原因', reason1: '原因',
PleaseFour: '请输入原因',
ResponsibilityCategory: '责任大类', ResponsibilityCategory: '责任大类',
Please_category: '请选择责任大类', Please_category: '请选择责任大类',
VirtualReplenishment: '虚拟补料', VirtualReplenishment: '虚拟补料',
VirtualInventory: '虚拟库存', VirtualInventory: '虚拟库存',
semifinishedWasteJudgment: '半成品判废',
}, },
}; };

@ -512,9 +512,11 @@ export default {
PleaseThere: 'Please enter the responsible operation', PleaseThere: 'Please enter the responsible operation',
rawWasteJudgment: 'Waste judgment of raw materials', rawWasteJudgment: 'Waste judgment of raw materials',
reason1: 'reason', reason1: 'reason',
PleaseFour: 'Please enter the reason',
ResponsibilityCategory: 'Responsibility category', ResponsibilityCategory: 'Responsibility category',
Please_category: 'Please select the responsibility category', Please_category: 'Please select the responsibility category',
VirtualReplenishment: 'Virtual replenishment', VirtualReplenishment: 'Virtual replenishment',
VirtualInventory: 'Virtual inventory', VirtualInventory: 'Virtual inventory',
semifinishedWasteJudgment: 'Semi finished products are scrapped',
}, },
}; };

@ -512,9 +512,11 @@ export default {
PleaseThere: 'Введите ответственную операцию', PleaseThere: 'Введите ответственную операцию',
rawWasteJudgment: 'утилизация сырья', rawWasteJudgment: 'утилизация сырья',
reason1: 'причина', reason1: 'причина',
PleaseFour: 'Введите причину',
ResponsibilityCategory: 'категория ответственности', ResponsibilityCategory: 'категория ответственности',
Please_category: 'Выберите категорию ответственности', Please_category: 'Выберите категорию ответственности',
VirtualReplenishment: 'виртуальная добавка', VirtualReplenishment: 'виртуальная добавка',
VirtualInventory: 'виртуальный запас', VirtualInventory: 'виртуальный запас',
semifinishedWasteJudgment: 'браковка полуфабрикатов',
}, },
}; };

@ -1258,6 +1258,14 @@
// "navigationBarTextStyle": "white" // white-black- // "navigationBarTextStyle": "white" // white-black-
// } // }
// }, // },
{
"path": "pages/raw/LineSide/semifinished-wasteJudgment/index",
"style": {
"navigationBarTitleText": "半成品判废",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{ {
"path": "pages/product/STO-Outbound/index", "path": "pages/product/STO-Outbound/index",
"style": { "style": {

@ -0,0 +1,276 @@
<template>
<view class="page-kan-dan-index">
<view class="header" :style="{ backgroundColor: `rgba(23, 83, 234, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">{{ $t('message.semifinishedWasteJudgment') }}</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.product_barCode')" prop="orderNo">
<u-search :placeholder="$t('message.barcode')" v-model.trim="barcode" @search="query" :show-action="false"></u-search>
</u-form-item>
<!-- 订单号 -->
<u-form-item :label="$t('message.Pi_OrderNo')">
<u-input :disabled="true" v-model="every.cpRef5" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 物料编码 -->
<u-form-item :label="$t('message.matcode')">
<u-input :disabled="true" v-model="every.productCode" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 物料描述 -->
<u-form-item :label="$t('message.po_MaterielDes')">
<u-input :disabled="true" v-model="every.productDescZh" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 库位 -->
<u-form-item :label="$t('message.po_MaterielDes')">
<u-input :disabled="true" v-model="every.locCode" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 原因 -->
<u-form-item :required="true" :label="$t('message.reason1')">
<u-input v-model="reason" :border="border" :placeholder="$t('message.po_PleaseInput')" />
</u-form-item>
<!-- 责任人 -->
<u-form-item :required="true" :label="$t('message.personLiable')">
<u-input v-model="responsibleUser" :border="border" :placeholder="$t('message.po_PleaseInput')" />
</u-form-item>
<!-- 责任工序 -->
<u-form-item :required="true" :label="$t('message.ResponsibleProcess')">
<u-input v-model="responsibleProcess" :border="border" :placeholder="$t('message.po_PleaseInput')" />
</u-form-item>
</u-form>
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button type="primary" @click="submit">{{ $t('message.product_Confirm') }}</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})">{{ $t('message.po_Return') }}</u-button>
</u-col>
</u-row>
</view>
</view>
</template>
<script lang="ts">
//import { TargetTitle } from './config';
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import jPicker from '@/components/J-Picker/jPicker.vue';
import { session } from '@/store/modules/session';
@Component({
components: {
jPicker,
},
})
export default class KanDanHandOver extends BasePage {
//TargetTitle = TargetTitle;
border = true;
model = model;
barcode = '';
reason = '';
responsibleUser = '';
responsibleProcess = '';
every: any = {};
async query() {
if (this.barcode == '' || this.barcode.length == 0) {
this.customToast(this.$t('message.barcode') as string);
return;
}
await this.model.searchBarcode(this.barcode);
if (this.model.SearchCode == '1') {
uni.showToast({
title: this.$t('message.successful') as string,
duration: 2000,
image: '/static/icons/icon-51.png',
});
this.every = this.model.CodeDetail;
}
}
costCenter = '';
async submit() {
if (this.barcode == '' || this.barcode.length == 0) {
this.customToast(this.$t('message.barcode') as string);
return;
}
if (this.every == {} || !this.every.barcode) {
this.customToast(this.$t('message.barcode') as string);
return;
}
if (this.reason == '') {
this.customToast(this.$t('message.PleaseFour') as string);
return;
}
if (this.responsibleUser == '') {
this.customToast(this.$t('message.PleaseOne') as string);
return;
}
if (this.responsibleProcess == '') {
this.customToast(this.$t('message.PleaseThere') as string);
return;
}
// if (this.every.qty != 0) {
// this.customToast(this.$t('message.scrapped') as string);
// return;
// }
let params = {
factoryCode: session.factoryCode,
loginName: session.loginName,
barcode: this.every.barcode,
orderNo: this.every.cpRef5,
productCode: this.every.productCode,
productDesc: this.every.productDescZh,
locCode: this.every.locCode,
reason: this.reason,
responsibleUser: this.responsibleUser,
responsibleProcess: this.responsibleProcess,
};
await this.model.submit(params);
if (this.model.submitCode == '1') {
this.customToast(this.$t('message.success') as string);
this.barcode = '';
this.every = {};
this.reason = '';
this.responsibleUser = '';
this.responsibleProcess = '';
}
}
}
</script>
<style lang="scss" scoped>
.page-kan-dan-index {
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: 0;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 67px;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding-top: 19px;
.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;
}
.single {
width: 100%;
height: 100rpx;
display: flex;
.single-left {
width: 80%;
height: 100%;
display: flex;
view {
width: 110rpx;
height: 100%;
line-height: 100rpx;
z-index: 10000;
}
}
.single-right {
button {
margin-top: 15rpx;
width: 150rpx;
height: 70rpx;
}
}
}
.add {
width: 100%;
height: 100rpx;
position: absolute;
top: 442px;
left: 0;
button {
position: absolute;
top: 3rpx;
right: 35rpx;
z-index: 10000;
}
}
.NumAdd {
width: 100%;
height: 100rpx;
position: relative;
// top: 496px;
// left: 0;
button {
position: absolute;
top: 3rpx;
right: 35rpx;
z-index: 10000;
}
}
.newly {
display: flex;
}
}
.single-right {
button {
//margin-top: 15rpx;
width: 110rpx;
height: 70rpx;
}
}
.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>

@ -0,0 +1,49 @@
/*
* @Author: zhou lei
* @Date: 2022-09-29 13:45:51
* @LastEditTime: 2022-10-27 17:33:47
* @LastEditors: zhou lei
* @Description:
* @FilePath: \hgwms-factory-app\src\pages\raw\LineSide\semifinished-wasteJudgment\model.ts
* :910592680@qq.com 18669792120
*/
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: 'raw.LineSide.semifinished-wasteJudgment',
})
export class semifinishedWasteJudgment extends VuexModule {
//目标容器查询
SearchCode: any = '';
CodeDetail: any = '';
@MutationAction
async searchBarcode(barcode: any) {
const res: any = await http.post(url.warehouse.container.getSfgStorageSnPreScrap, {
barcode,
factoryCode: session.factoryCode,
loginName: session.loginName,
});
const SearchCode = res.code;
const CodeDetail = res.data;
// if (CodeDetail.cpRef4 != null) {
// CodeDetail.qty = parseFloat(CodeDetail.qty) - parseFloat(CodeDetail.cpRef4);
// }
return { SearchCode, CodeDetail };
}
//提交数据
submitCode: any = '';
@MutationAction
async submit(params: any) {
const res: any = await http.post(url.warehouse.container.preScrapSfgConfirm, params);
const submitCode = res.code;
return { submitCode };
}
}
export default getModule(semifinishedWasteJudgment);

@ -256,6 +256,8 @@ export const url = {
scrapContainers: '/wmspda/material/scrapContainers', scrapContainers: '/wmspda/material/scrapContainers',
getOdsRawStorageSnNewHalf: '/wmspda/bl/getOdsRawStorageSnNewHalf', getOdsRawStorageSnNewHalf: '/wmspda/bl/getOdsRawStorageSnNewHalf',
odsRawStorageSnNewScrapped: '/wmspda/bl/odsRawStorageSnNewScrapped', odsRawStorageSnNewScrapped: '/wmspda/bl/odsRawStorageSnNewScrapped',
getSfgStorageSnPreScrap: '/wmspda/material/getSfgStorageSnPreScrap',
preScrapSfgConfirm: '/wmspda/fg/preScrapSfgConfirm',
}, },
rowScrap: { rowScrap: {
list: '/wmspda/fg/listByOrder', list: '/wmspda/fg/listByOrder',

Loading…
Cancel
Save