cosmoim-852 fix 俄罗斯新增原材料报废功能

master
hou 3 years ago
parent 461785dc7b
commit 4fe22d715d

@ -202,7 +202,6 @@ export default {
Pi_tip17: '请选择一条DN单', Pi_tip17: '请选择一条DN单',
Pi_tip18: '请选中要移库的数据', Pi_tip18: '请选中要移库的数据',
Pi_tip19: '只能选择一条修改数量', Pi_tip19: '只能选择一条修改数量',
Pi_tip20: '本次添加数量超过最大可添加数量',
//汇总交接 //汇总交接
Summary_Query: '汇总查询', Summary_Query: '汇总查询',
Summary_Contain: '包含', Summary_Contain: '包含',
@ -474,7 +473,6 @@ export default {
AppendMateriel3: '不能大于需求数量,请重新输入', AppendMateriel3: '不能大于需求数量,请重新输入',
AppendMateriel4: '请选择正确的库位', AppendMateriel4: '请选择正确的库位',
AppendMateriel5: '请先选择一个物料', AppendMateriel5: '请先选择一个物料',
AppendMateriel6: '请先选择一条数据',
demandQuantity: '总数量大于需求数量', demandQuantity: '总数量大于需求数量',
//俄罗斯海外PO //俄罗斯海外PO
ImportPO: 'PO海外收货', ImportPO: 'PO海外收货',

@ -306,6 +306,22 @@
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white" // white-black-
} }
}, },
{
"path": "pages/raw/warehouse/RUS-rowCollect/index",
"style": {
"navigationBarTitleText": "俄罗斯成本中心",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{
"path": "pages/raw/warehouse/RUS-rowCollect/details",
"style": {
"navigationBarTitleText": "俄罗斯成本中心明细",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{ {
"path": "pages/raw/ingoods/poReceipt/index", "path": "pages/raw/ingoods/poReceipt/index",
"style": { "style": {

@ -0,0 +1,45 @@
/**
*
*/
import vm from '@/main';
export const headers = [
{
label: vm.$t('message.Warehouse_OrderNo'),
key: 'orderNo',
// width: '15%',
},
{
label: vm.$t('message.po_MaterielNo'),
key: 'productCode',
// width: '15%',
},
{
label: vm.$t('message.po_MaterielDes'),
key: 'productDescZh',
width: 350,
},
{
label: vm.$t('message.dn_Number'),
key: 'qty',
},
{
label: vm.$t('message.Warehouse_OriginalLocation'),
key: 'originWl',
},
{
label: vm.$t('message.product_costCenter'),
key: 'costCenter',
},
// {
// label: '库存地点',
// key: 'wkposCode',
// },
// {
// label: '校验状态',
// key: 'checkResult',
// },
// {
// label: '看单号',
// key: 'kdOrderNo',
// },
];

@ -0,0 +1,163 @@
<template>
<view class="page-kan-dan-detail">
<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.borrow_CollectionAndBorrowingDetails') }}</view>
<view class="right"></view>
</view>
<wyb-table class="table" ref="table" width="100%" enable-check="multiple" show-left-and-right-border :headers="headers" :contents="model.orderInInfoList" :show-vert-border="false" />
<view class="bottom-bar">
<!-- <view class="extra">
<u-row>
<u-col :span="2"> 看单号: </u-col>
<u-col :span="8">
<u-input v-model="order3" @confirm="onKdOrderNoConfirm" placeholder="看单号" />
</u-col>
</u-row>
<u-row>
<u-col :span="2"> 接收人 </u-col>
<u-col :span="3">
<u-input v-model="receiverName" @confirm="onReceiverNameConfirm" placeholder="接收人" />
</u-col>
<u-col :span="2"> 口令 </u-col>
<u-col :span="3">
<u-input v-model="operatorPass" placeholder="口令" />
</u-col>
</u-row>
</view> -->
<view class="container">
<u-row>
<u-col :span="6">
<u-button type="primary" @click="Confirm">{{ $t('message.dn_Confirm') }}</u-button>
</u-col>
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({ delta: 1 })">{{ $t('message.po_Return') }}</u-button>
</u-col>
</u-row>
</view>
</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';
// import { order, OrderDetail } from '@/pages/raw/warehouse/transfer/model';
// import { auth } from '@/store/modules/auth';
// import { pick, omit, cloneDeep } from 'lodash/fp';
import { headers } from './config';
@Component
export default class KanDanHandOverDetails extends BasePage {
order = '';
headers = headers;
/**
* 页面Module
*/
model = model;
async Confirm() {
const orderlist: any = [];
this.model.orderInInfoList.forEach((item: any) => {
if (item.checked) {
orderlist.push(item);
}
});
if (orderlist.length == 0) {
this.customToast(this.$t('message.Pi_tip18') as string);
return;
}
orderlist.forEach((item: any) => {
item.type = '1';
item.keepBy = session.loginName;
item.orderType = '2';
});
await model.onTakeoutConfirm(orderlist);
setTimeout(() => {
uni.navigateBack({ delta: 1 });
}, 2000);
}
}
</script>
<style lang="scss" scoped>
.page-kan-dan-detail {
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 {
z-index: 21;
position: fixed;
bottom: 0;
left: 0;
right: 0;
.container {
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.extra {
background-color: #fff;
margin: 5px;
border-radius: 5px;
padding: 0 10px;
}
.bottom-info {
.u-form-item {
padding: 0;
}
}
}
}
</style>

@ -0,0 +1,241 @@
<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.RowCollectionAndBorrowing') }}</view>
<view class="right"></view>
</view>
<u-form class="form" label-width="130rpx">
<!-- 单号 -->
<view class="single">
<view class="single-left">
<view>{{ $t('message.CommissionedSingleNumber') }}</view>
<u-search :placeholder="$t('message.Commission_tips1')" v-model.trim="order3" @search="query" :show-action="false"></u-search>
</view>
<view class="single-right">
<u-button type="primary" @click="query">{{ $t('message.Query') }}</u-button>
</view>
</view>
<!-- 物料号 -->
<u-form-item :label="$t('message.po_MaterielNo')">
<jPicker sureColor="#ff0000" style="width: 260rpx" @bindpicker="materialChoice" showKey="value" valKey="value" :val="wl.value" class="search" :options="MaterialList" />
</u-form-item>
<!-- 物料描述 -->
<u-form-item :label="$t('message.po_MaterielDes')">
<u-input :disabled="true" v-model="Some.productDescZh" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 数量 -->
<u-form-item :label="$t('message.Summary_Number')">
<u-input v-model="Some.qty" placeholder="" type="number" disabled />
</u-form-item>
<!-- 原库位 -->
<u-form-item :label="$t('message.Warehouse_OriginalLocation')">
<u-input :disabled="true" v-model="Some.originWl" placeholder="" />
</u-form-item>
<!-- 成本中心 -->
<u-form-item :label="$t('message.product_costCenter')">
<u-input :disabled="true" v-model="Some.costCenter" placeholder="" />
</u-form-item>
<!-- 文件号 -->
<!-- <u-form-item :label="$t('message.DocumentNumber')">
<u-input v-model="Some.fileNo" placeholder="" />
</u-form-item> -->
<u-row class="button-bar">
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})">{{ $t('message.po_Return') }}</u-button>
</u-col>
<u-col :span="6">
<u-button type="primary" @click="submit">{{ $t('message.InventoryFinish') }} </u-button></u-col
>
</u-row>
</u-form>
</view>
</template>
<script lang="ts">
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 {
//
order3 = '';
model = model;
wl: any = {};
Some: any = {};
MaterialList: any = [];
//
async query() {
if (this.order3 === '') {
this.customToast(this.$t('message.Commission_tips1') as string);
return;
} else {
await this.model.takeLYOrder({
order3: this.order3,
});
if (this.model.code == '1') {
uni.showToast({
//icon: 'success',
title: this.$t('message.successful') as string,
duration: 2000,
image: '/static/icons/icon-51.png',
});
this.model.orderInInfoList.forEach((item: any) => {
//item.fileNo = '';
let arr: any = {
label: item.productCode,
value: item.productCode,
};
this.MaterialList.push(arr);
});
this.Some = this.model.orderInInfoList[0];
this.wl = this.MaterialList[0];
}
}
}
//
materialChoice(e: any) {
this.wl = e.pickerName;
this.model.orderInInfoList.forEach((item: any) => {
if (item.productCode == e.pickerName.value) {
this.Some = item;
}
});
}
//
async submit() {
if (this.order3 === '') {
this.customToast(this.$t('message.Commission_tips1') as string);
return;
}
if (!this.Some) {
this.customToast(this.$t('message.Warehouse_Tip5') as string);
return;
}
let orderlist = [];
this.Some.type = '1';
this.Some.keepBy = session.loginName;
this.Some.orderType = '2';
orderlist.push(this.Some);
await model.onTakeoutConfirm(orderlist);
if (this.model.code == '1') {
uni.showToast({
//icon: 'success',
title: this.$t('message.success') as string,
duration: 2000,
image: '/static/icons/icon-51.png',
});
this.Some = {};
//this.Some.fileNo = ' ';
this.wl = {};
this.MaterialList = [];
this.query();
}
}
}
</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: 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 {
// line-height: 35rpx;
// background-color: #f7f6fb;
// padding: 10rpx 30rpx;
// border-radius: 8rpx;
// &:after {
// border-bottom-width: 0;
// }
// }
.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;
}
}
.single-right {
button {
margin-top: 15rpx;
width: 150rpx;
height: 70rpx;
}
}
}
.title {
margin-bottom: 40rpx;
color: #1a1a1a;
font-size: 30rpx;
font-weight: 500;
}
.button-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,79 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
// import { page } from '@/utils/page';
import { session } from '@/store/modules/session';
import vm from '@/main';
class OrderInInfo {
checked?: boolean;
poNo?: string;
kw?: string;
userDefined10?: string;
orderStatus?: string;
}
@Module({
namespaced: true,
dynamic: true,
store,
name: 'raw.warehouse.rowCollect',
})
export class rowCollect extends VuexModule {
/**
* sap
*/
cboPlaceList = [];
/**
*
*/
poNo = '';
/**
*
*/
orderInInfo: OrderInInfo = new OrderInInfo();
/**
*
*/
orderInInfoList: OrderInInfo[] = [];
code: any = '';
/**
*
*/
// orderInInfoListEx: OrderInInfo[] = [];
/**
// * 查询看单号
* @param poNo
*/
@MutationAction
async takeLYOrder(order3: any) {
try {
const records: any = await http.post(url.warehouse.rowTransfer.list, {
...order3,
orderType: 'LY',
page: 1,
rows: 50,
factoryCode: session.factoryCode,
loginName: session.loginName,
});
const orderInInfoList = records.data.records;
const code = records.code;
console.log('获取来的数据', orderInInfoList);
return { orderInInfoList, code };
} catch {
//uni.showToast({ icon: 'none', title: vm.$t('message.Warehouse_Tip11') as any });
vm.customToast(vm.$t('message.Warehouse_Tip11') as any);
}
}
@MutationAction
async onTakeoutConfirm(list: any) {
const records: any = await http.post(url.warehouse.rowTransfer.commit, list);
const code = records.code;
return { code };
}
}
export default getModule(rowCollect);

@ -38,16 +38,38 @@ export const headers = [
label: vm.$t('message.DocumentNumber'), label: vm.$t('message.DocumentNumber'),
key: 'fileNo', key: 'fileNo',
}, },
// { ];
// label: '库存地点', export const RUSdetailHeader = [
// key: 'wkposCode', {
// }, label: vm.$t('message.Warehouse_OrderNo'),
// { key: 'orderNo', //单号
// label: '校验状态', width: 270,
// key: 'checkResult', },
// }, {
// { label: vm.$t('message.po_MaterielNo'),
// label: '看单号', key: 'productCode', //物料号
// key: 'kdOrderNo', width: 270,
// }, },
{
label: vm.$t('message.po_MaterielDes'),
key: 'productDescZh', //物料描述
width: 520,
},
{
label: vm.$t('message.Container'),
key: 'barCode', //物料描述
width: 400,
},
{
label: vm.$t('message.dn_Number'),
key: 'qty', //数量
},
{
label: vm.$t('message.Warehouse_OriginalLocation'),
key: 'originWl', //原库位
},
{
label: vm.$t('message.Warehouse_TargetLocation'),
key: 'aimWl', //目标库位
},
]; ];

@ -26,10 +26,6 @@
<u-form-item :label="$t('message.po_MaterielDes')"> <u-form-item :label="$t('message.po_MaterielDes')">
<u-input :disabled="true" v-model="Some.productDescZh" placeholder="" style="overflow: hidden" /> <u-input :disabled="true" v-model="Some.productDescZh" placeholder="" style="overflow: hidden" />
</u-form-item> </u-form-item>
<!-- 数量 -->
<u-form-item :label="$t('message.Summary_Number')">
<u-input v-model="Some.qty" placeholder="" type="number" />
</u-form-item>
<!-- 原库位 --> <!-- 原库位 -->
<u-form-item :label="$t('message.Warehouse_OriginalLocation')"> <u-form-item :label="$t('message.Warehouse_OriginalLocation')">
<u-input :disabled="true" v-model="Some.originWl" placeholder="" /> <u-input :disabled="true" v-model="Some.originWl" placeholder="" />
@ -46,6 +42,22 @@
<u-form-item :label="$t('message.DocumentNumber')"> <u-form-item :label="$t('message.DocumentNumber')">
<u-input v-model="Some.fileNo" :border="border" :placeholder="$t('message.fileNumber')" /> <u-input v-model="Some.fileNo" :border="border" :placeholder="$t('message.fileNumber')" />
</u-form-item> </u-form-item>
<!-- 容器编码 -->
<view class="single">
<view class="single-left">
<view>{{ $t('message.Container') }}:</view>
<u-search :placeholder="$t('message.PleaseScan')" style="z-index: 10000" v-model="Barcode" @search="searchBarcode" :show-action="false"></u-search>
</view>
</view>
<!-- 添加 -->
<view class="add">
<u-button type="primary" @click="Add">{{ $t('message.product_add') }}</u-button>
</view>
<!-- 数量 -->
<u-form-item :label="$t('message.product_Number')">
<u-input v-model="qty" placeholder="" :border="border" type="number" />
</u-form-item>
<wyb-table class="table" ref="table" width="100%" show-left-and-right-border :headers="RUSdetailHeader" :contents="SubmitOrderlist" :show-vert-border="false" @onCellClick="deleteItem($event)"></wyb-table>
<u-row class="button-bar"> <u-row class="button-bar">
<u-col :span="6"> <u-col :span="6">
<u-button type="error" @click="uni.navigateBack()">{{ $t('message.po_Return') }}</u-button> <u-button type="error" @click="uni.navigateBack()">{{ $t('message.po_Return') }}</u-button>
@ -58,6 +70,7 @@
</view> </view>
</template> </template>
<script lang="ts"> <script lang="ts">
import { RUSdetailHeader } from './config';
import { Component } from 'vue-property-decorator'; import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page'; import { BasePage } from '@/components/base/page';
import model from './model'; import model from './model';
@ -69,12 +82,17 @@ import { session } from '@/store/modules/session';
}, },
}) })
export default class KanDanHandOver extends BasePage { export default class KanDanHandOver extends BasePage {
RUSdetailHeader = RUSdetailHeader;
order3 = ''; order3 = '';
model = model; model = model;
border = true; border = true;
wl: any = {}; wl: any = {};
Some: any = {}; Some: any = {};
MaterialList: any = []; MaterialList: any = [];
SubmitOrderlist: any = [];
Container: any = '';
qty = 0;
Barcode: any = '';
async query() { async query() {
if (this.order3 === '') { if (this.order3 === '') {
this.customToast(this.$t('message.Commission_tips1') as string); this.customToast(this.$t('message.Commission_tips1') as string);
@ -110,7 +128,25 @@ export default class KanDanHandOver extends BasePage {
} }
}); });
} }
async submit() { async searchBarcode() {
if (this.order3 == '') {
this.customToast(this.$t('message.Warehouse_Tip5') as string);
return;
}
if (!this.wl.value) {
this.customToast(this.$t('message.AppendMateriel5') as string);
return;
}
let params = {
productCode: this.Some.productCode,
barcode: this.Barcode,
locCode: this.Some.originWl,
};
await this.model.searchBarcode(params);
this.Container = this.model.ContainerCode;
this.qty = this.Container.qty;
}
Add() {
if (this.order3 === '') { if (this.order3 === '') {
this.customToast(this.$t('message.Commission_tips1') as string); this.customToast(this.$t('message.Commission_tips1') as string);
return; return;
@ -123,12 +159,70 @@ export default class KanDanHandOver extends BasePage {
this.customToast(this.$t('message.fileNumber') as string); this.customToast(this.$t('message.fileNumber') as string);
return; return;
} }
let orderlist = []; if (!this.Container) {
this.Some.type = '1'; this.customToast(this.$t('message.scanningContainer') as string);
this.Some.keepBy = session.loginName; return;
this.Some.orderType = '1'; }
orderlist.push(this.Some); if (this.Container.cpRef4 == null) {
await model.onTakeoutConfirm(orderlist); if (this.qty <= 0 || this.qty > this.Container.qty) {
this.customToast(this.$t('message.AppendMateriel3') as string);
return;
}
} else {
if (this.qty <= 0 || this.qty > this.Container.qty - this.Container.cpRef4) {
this.customToast(this.$t('message.AppendMateriel3') as string);
return;
}
}
let num = 0;
if (this.SubmitOrderlist.length != 0) {
this.SubmitOrderlist.forEach((item: any) => {
if (item.barCode == this.Container.barcode) {
num += item.qty;
}
});
}
if (this.Container.cpRef4 == null) {
if (this.qty + num > this.Container.qty) {
this.customToast(this.$t('message.AppendMateriel3') as string);
return;
}
} else {
if (this.qty + num > this.Container.qty - this.Container.cpRef4) {
this.customToast(this.$t('message.AppendMateriel3') as string);
return;
}
}
this.SubmitOrderlist.push(JSON.parse(JSON.stringify(this.Some)));
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].type = '1';
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].keepBy = session.loginName;
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].orderType = '1';
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].qty = this.qty;
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].barCode = this.Container.barcode;
this.Container = '';
this.qty = 0;
this.Barcode = '';
}
deleteItem(e: any) {
uni.showModal({
content: this.$t('message.product_Delete') as string,
cancelText: this.$t('message.Cancel') as string,
confirmText: this.$t('message.workArea_Confirm') as string,
success: (res) => {
if (res.confirm) {
this.SubmitOrderlist.splice(e.contentIndex, 1);
} else if (res.cancel) {
return;
}
},
});
}
async submit() {
if (this.SubmitOrderlist.length == 0) {
this.customToast(this.$t('message.Pi_NoData') as string);
return;
}
await model.onTakeoutConfirm(this.SubmitOrderlist);
if (this.model.code == '1') { if (this.model.code == '1') {
uni.showToast({ uni.showToast({
title: this.$t('message.success') as string, title: this.$t('message.success') as string,
@ -139,6 +233,10 @@ export default class KanDanHandOver extends BasePage {
this.Some.fileNo = ' '; this.Some.fileNo = ' ';
this.wl = {}; this.wl = {};
this.MaterialList = []; this.MaterialList = [];
this.qty = 0;
this.Container = '';
this.SubmitOrderlist = [];
this.Barcode = '';
this.query(); this.query();
} }
} }
@ -154,17 +252,18 @@ export default class KanDanHandOver extends BasePage {
.header { .header {
position: fixed; position: fixed;
top: 36rpx; top: 0;
left: 0; left: 0;
right: 0; right: 0;
z-index: 99; z-index: 99;
display: flex; display: flex;
height: 88rpx; height: 67px;
line-height: 88rpx; line-height: 88rpx;
color: #fff; color: #fff;
font-size: 34rpx; font-size: 34rpx;
font-weight: 500; font-weight: 500;
text-align: center; text-align: center;
padding-top: 19px;
.title { .title {
flex: 3; flex: 3;
} }
@ -222,6 +321,19 @@ export default class KanDanHandOver extends BasePage {
} }
} }
} }
.add {
width: 100%;
height: 100rpx;
position: absolute;
top: 550px;
left: 0;
button {
position: absolute;
top: 3rpx;
right: 35rpx;
z-index: 10000;
}
}
.title { .title {
margin-bottom: 40rpx; margin-bottom: 40rpx;
color: #1a1a1a; color: #1a1a1a;

@ -2,10 +2,8 @@ import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decor
import store from '@/store'; import store from '@/store';
import http from '@/utils/request'; import http from '@/utils/request';
import { url } from '@/utils/url'; import { url } from '@/utils/url';
// import { page } from '@/utils/page';
import { session } from '@/store/modules/session'; import { session } from '@/store/modules/session';
import vm from '@/main'; import vm from '@/main';
class OrderInInfo { class OrderInInfo {
checked?: boolean; checked?: boolean;
poNo?: string; poNo?: string;
@ -13,7 +11,6 @@ class OrderInInfo {
userDefined10?: string; userDefined10?: string;
orderStatus?: string; orderStatus?: string;
} }
@Module({ @Module({
namespaced: true, namespaced: true,
dynamic: true, dynamic: true,
@ -21,28 +18,12 @@ class OrderInInfo {
name: 'raw.warehouse.rowScrap', name: 'raw.warehouse.rowScrap',
}) })
export class rowScrap extends VuexModule { export class rowScrap extends VuexModule {
/**
* sap
*/
cboPlaceList = []; cboPlaceList = [];
/**
*
*/
poNo = ''; poNo = '';
/**
*
*/
orderInInfo: OrderInInfo = new OrderInInfo(); orderInInfo: OrderInInfo = new OrderInInfo();
/**
*
*/
orderInInfoList: OrderInInfo[] = []; orderInInfoList: OrderInInfo[] = [];
code: any = ''; code: any = '';
/** ContainerCode: any = '';
*
*/
// orderInInfoListEx: OrderInInfo[] = [];
/** /**
// * 查询看单号 // * 查询看单号
* @param poNo * @param poNo
@ -60,20 +41,30 @@ export class rowScrap extends VuexModule {
}); });
const orderInInfoList = records.data.records; const orderInInfoList = records.data.records;
const code = records.code; const code = records.code;
console.log('获取来的数据', orderInInfoList);
return { orderInInfoList, code }; return { orderInInfoList, code };
} catch { } catch {
//uni.showToast({ icon: 'none', title: vm.$t('message.Warehouse_Tip11') as any });
vm.customToast(vm.$t('message.Warehouse_Tip11') as any); vm.customToast(vm.$t('message.Warehouse_Tip11') as any);
} }
} }
@MutationAction @MutationAction
async onTakeoutConfirm(list: any) { async onTakeoutConfirm(list: any) {
const records: any = await http.post(url.warehouse.rowTransfer.commit, list); const records: any = await http.post(url.warehouse.rowTransfer.russia, list);
const code = records.code; const code = records.code;
return { code }; return { code };
} }
@MutationAction
async searchBarcode(params: any) {
const res: any = await http.post(url.auth.query.barcode, {
factoryCode: session.factoryCode,
loginName: session.loginName,
barcode: params.barcode,
productCode: params.productCode,
locCode: params.locCode,
});
const ContainerCode = res.data;
return { ContainerCode };
}
} }
export default getModule(rowScrap); export default getModule(rowScrap);

Loading…
Cancel
Save