guoshuang 4 years ago
commit 449d5ed8b4

@ -42,6 +42,7 @@ export default {
workArea_WorkAreaName: '工作区名称', workArea_WorkAreaName: '工作区名称',
workArea_WarehouseClassify: '仓库类', workArea_WarehouseClassify: '仓库类',
workArea_Confirm: '确定', workArea_Confirm: '确定',
ReservoirArea: '库区',
//原材料菜单 //原材料菜单
rawMenu_ReceivingGoods: '收货', rawMenu_ReceivingGoods: '收货',
rawMenu_Handover: '交接', rawMenu_Handover: '交接',
@ -156,6 +157,9 @@ export default {
Pi_QuantityHandedOver: '已交接数量', Pi_QuantityHandedOver: '已交接数量',
Pi_distribution: '分配', Pi_distribution: '分配',
successful: '查询成功', successful: '查询成功',
ModelCode: '型号编码',
ModelName: '型号名称',
ModelScanned: '型号已扫',
//汇总交接 //汇总交接
Summary_Query: '汇总查询', Summary_Query: '汇总查询',
@ -198,8 +202,11 @@ export default {
return_Tip4: '退料数量不能大于总数', return_Tip4: '退料数量不能大于总数',
quantitys: '不能大于应退货数量', quantitys: '不能大于应退货数量',
actual: '实际退货数量不等于应退货数量', actual: '实际退货数量不等于应退货数量',
Requisition: '领用单',
greater: '不能大于总数', greater: '不能大于总数',
receiveAStation: '接收工位', receiveAStation: '接收工位',
collecting: '请输入领用单号',
MaterialCount: '物料盘点',
//库内主菜单 //库内主菜单
Warehouse: '成品库内', Warehouse: '成品库内',
@ -225,6 +232,7 @@ export default {
InventoryMateriel: '物料名', InventoryMateriel: '物料名',
InventoryTotalNumber: '盘点总数', InventoryTotalNumber: '盘点总数',
InventoryPleaseScan: '请扫描单号', InventoryPleaseScan: '请扫描单号',
InventoryNumber: '盘点单号',
InventoryFinish: '完成', InventoryFinish: '完成',
// 委外-入库 // 委外-入库
@ -370,8 +378,10 @@ export default {
Warehouse_Tip5: '请扫描单号', Warehouse_Tip5: '请扫描单号',
Warehouse_Tip6: '请选择物料', Warehouse_Tip6: '请选择物料',
Warehouse_Tip7: '盘点未完成,确定继续吗', Warehouse_Tip7: '盘点未完成,确定继续吗',
selectCode: '请先选择编码',
Warehouse_Tip8: '请输入成本中心', Warehouse_Tip8: '请输入成本中心',
Warehouse_Tip9: '操作成功', Warehouse_Tip9: '操作成功',
DocumentNumber: '文件号',
Warehouse_Tip10: '请选择sap库存地点', Warehouse_Tip10: '请选择sap库存地点',
Warehouse_Tip11: '该单号不存在或已经操作完成', Warehouse_Tip11: '该单号不存在或已经操作完成',
Warehouse_TotalNumber: '总数', Warehouse_TotalNumber: '总数',
@ -380,6 +390,7 @@ export default {
Warehouse_WX: '外销', Warehouse_WX: '外销',
Warehouse_YJ: '样机', Warehouse_YJ: '样机',
Warehouse_BCP: '半成品', Warehouse_BCP: '半成品',
DocumentScanned: '单据已扫',
//提示 //提示
AppendMateriel1: '请输入正确的库位和数量', AppendMateriel1: '请输入正确的库位和数量',

@ -216,6 +216,16 @@ export default {
InventoryTotalNumber: 'Total', InventoryTotalNumber: 'Total',
InventoryPleaseScan: 'Please scan No.', InventoryPleaseScan: 'Please scan No.',
InventoryFinish: 'Finish', InventoryFinish: 'Finish',
collecting: 'Please enter the collecting doc No',
MaterialCount: 'Material count',
InventoryNumber: 'Inventory number',
DocumentScanned: 'Document scanned',
ReservoirArea: 'Reservoir area',
ModelCode: 'Model code',
ModelName: 'Model name',
ModelScanned: 'Model scanned',
selectCode: 'Please select code first',
DocumentNumber: 'Document number',
// 委外-入库 // 委外-入库
CommissionEntrant: 'Subcontracting receipt', CommissionEntrant: 'Subcontracting receipt',
@ -224,6 +234,7 @@ export default {
CommissionedMaterielDesc: 'describe', CommissionedMaterielDesc: 'describe',
SourceLocation: 'Source location', SourceLocation: 'Source location',
barcode: 'Please enter barcode', barcode: 'Please enter barcode',
Requisition: 'Requisition',
scrapForm: 'Please scan the scrap form first', scrapForm: 'Please scan the scrap form first',
finishedProduct: 'Please select finished product code first', finishedProduct: 'Please select finished product code first',
CommissionedDemandData: 'Demand', CommissionedDemandData: 'Demand',

@ -25,6 +25,14 @@
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white" // white-black-
} }
}, },
{
"path": "pages/product/warehouse/MaterialInventory/index",
"style": {
"navigationBarTitleText": "物料盘点",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{ {
"path": "pages/product/outbound/index", "path": "pages/product/outbound/index",
"style": { "style": {

@ -0,0 +1,308 @@
<template>
<view class="page-product-receipt">
<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.MaterialCount') }}</view>
<view class="right"></view>
</view>
<u-form class="form" ref="form" :model="form" label-width="180rpx">
<!-- 盘点单号 -->
<view class="single">
<view class="single-left">
<view>{{ $t('message.InventoryNumber') }}</view>
<u-search :placeholder="$t('message.Commission_tips1')" v-model="form.pddNo" @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.DocumentScanned')">
<u-input :disabled="true" v-model="total" placeholder="" />
</u-form-item>
<!-- 库区 -->
<u-form-item :label="$t('message.ReservoirArea')">
<u-input :disabled="true" v-model="areaCode" placeholder="" />
</u-form-item>
<!-- 型号编码 -->
<u-form-item :label="$t('message.ModelCode')">
<jPicker sureColor="#ff0000" style="width: 260rpx" @bindpicker="materialChoice" showKey="value" valKey="value" :val="wl.value" class="search" :options="codeList" />
</u-form-item>
<!-- 型号名称 -->
<u-form-item :label="$t('message.ModelName')">
<u-input :disabled="true" v-model="Some.productDescZh" placeholder="" />
</u-form-item>
<!-- 型号已扫 -->
<u-form-item :label="$t('message.ModelScanned')">
<u-input v-model="Some.spQty" :disabled="true" placeholder="" />
</u-form-item>
<!-- 条码 -->
<u-form-item :label="$t('message.product_BarCode')">
<u-search :placeholder="$t('message.barcode')" v-model="form.barcode" @search="scanning" :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="primary" @click="onSubmit">{{ $t('message.product_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>
</template>
<script lang="ts">
import { Component, Ref } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import { VForm, VFormRules } from 'vue/types/form';
import model from './model';
import jPicker from '@/components/J-Picker/jPicker.vue';
import { session } from '@/store/modules/session';
interface OptionType {
label: string;
value: string;
}
@Component({
components: {
jPicker,
},
})
export default class ProductCheckReceipt extends BasePage {
@Ref('form') readonly $form!: VForm;
model = model;
//
form = {
pddNo: '',
barcode: '',
};
wl: any = {};
Some: any = {};
codeList: any = [];
total: any = '';
areaCode: any = '';
// onReadyonLoad
onReady() {
this.model.orderInInfo.productDescZh = '';
this.model.orderInInfo.productCode = '';
this.model.orderInInfo.qty = '';
this.model.orderInInfo.locCode = '';
this.model.orderInInfo.costCenter = '';
}
//
async query() {
if (!this.form.pddNo) {
uni.showToast({
icon: 'none',
title: this.$t('message.Commission_tips1') as string,
});
return;
}
let param = {
factoryCode: session.factoryCode,
loginName: session.loginName,
pddNo: this.form.pddNo,
};
await this.model.queryScrapList(param);
if (this.model.code == '1') {
uni.showToast({
icon: 'none',
title: this.$t('message.product_Tip8') as string,
});
let num: number = 0;
this.model.modelList.forEach((item: any) => {
num += parseFloat(item.spQty);
let arr: any = {};
arr.value = item.productCode;
arr.label = item.productCode;
this.codeList.push(arr);
});
this.total = num;
this.areaCode = this.model.modelList[0].areaCode;
this.Some = this.model.modelList[0];
}
}
//
materialChoice(e: any) {
this.wl = e.pickerName;
this.model.modelList.forEach((item: any) => {
if (item.productCode == this.wl.value) {
this.Some = item;
}
});
}
//
async scanning() {
if (!this.form.pddNo) {
uni.showToast({
icon: 'none',
title: this.$t('message.scrapForm') as string,
});
}
let params = {
factoryCode: session.factoryCode,
user: session.loginName,
pdCd: this.form.pddNo,
regionCode: this.Some.regionCode,
areaCode: this.Some.areaCode,
whCode: this.Some.whCode,
snFlag: '1',
pdMode: '10',
sn: this.form.barcode,
productCode: this.wl.value,
qty: '1',
};
await this.model.getProductCode(params);
if (this.model.code == '1') {
uni.showToast({
icon: 'none',
title: this.$t('message.product_Tip8') as string,
});
this.total += 1;
this.model.modelList.forEach((item: any, index: any) => {
if (item.productCode == this.wl.value) {
this.model.modelList[index].spQty += 1;
}
});
this.form.barcode = '';
}
}
//
async onSubmit() {
if (this.form.pddNo == '') {
uni.showToast({
icon: 'none',
title: this.$t('message.Warehouse_Tip5') as string,
});
return;
}
if (this.total == '') {
uni.showToast({
icon: 'none',
title: this.$t('message.Warehouse_Tip5') as string,
});
return;
}
if (!this.Some) {
uni.showToast({
icon: 'none',
title: this.$t('message.selectCode') as string,
});
return;
}
const params = {
factoryCode: session.factoryCode,
user: session.loginName,
pddno: this.form.pddNo,
regionCode: this.Some.regionCode,
areaCode: this.Some.areaCode,
whCode: this.Some.whCode,
snFlag: '1',
pdMode: '10',
};
await this.model.onTakeoutConfirm(params);
if (this.model.status == 'S') {
uni.showToast({
icon: 'none',
title: this.$t('message.success') as string,
});
this.form.pddNo = '';
this.form.barcode = '';
this.wl = {};
this.Some = {};
this.codeList = [];
this.total = '';
this.areaCode = '';
this.model.modelList = [];
}
}
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
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;
}
.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;
}
}
}
}
.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;
}
.button-bar {
}
}
</style>

@ -0,0 +1,91 @@
import { Action, 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';
// import { page } from '@/utils/page';
import vm from '@/main';
class OrderInInfo {
productDescZh?: string;
qty?: string;
custCode?: string;
custCodeName?: string;
productCode?: string;
locCode?: string;
costCenter?: string;
}
@Module({
namespaced: true,
dynamic: true,
store,
name: 'product.warehouse.wholeCollect',
})
export class wholeCollect extends VuexModule {
WlList = [];
code: any = '';
recordsList: any = [];
choiceCodeList: any = [];
dnNo = '';
orderInInfo: OrderInInfo = new OrderInInfo();
modelList: any = [];
status: any = '';
@MutationAction
async queryLocation() {
const result: any = await http.get(url.warehouse.wholeTransfer.list, {
params: {
factoryCode: session.factoryCode,
loginName: session.loginName,
},
});
// console.log('库位数据',result)
const WlList = result.data.map((_: any) => ({
label: _.locationCode,
value: _.locationCode,
}));
return { WlList };
}
@MutationAction
async queryScrapList(param: any) {
const res: any = await http.post(url.warehouse.MaterialInventory.list, param);
const code = res.code;
const modelList = res.data;
console.log('modelList', modelList);
return { code, modelList };
}
/**
*
* DN
* @param dnNo
*/
@MutationAction
async getProductCode(params: any) {
const res: any = await http.post(url.warehouse.MaterialInventory.content, params);
const code = res.code;
console.log('resssss', res);
return { code };
}
@MutationAction
async onTakeoutConfirm(params: any) {
const records: any = await http.post(url.warehouse.MaterialInventory.commit, params);
const status = records.data.status;
return { status };
}
@Action({ commit: 'updateCheckedOrderInInfoListKw' })
async changeOrderInLocation(kw: string) {
await http.post('/wmspda/material/orderin/enter', {
loginName: session.loginName,
warehouseCode: '',
factoryCode: session.factoryCode,
locationCode: kw,
});
return kw;
}
}
export default getModule(wholeCollect);

@ -8,37 +8,50 @@
<view class="right"></view> <view class="right"></view>
</view> </view>
<u-form class="form" ref="form" :model="form" label-width="180rpx"> <u-form class="form" ref="form" :model="form" label-width="180rpx">
<!-- 条码 --> <!-- 领用单 -->
<u-form-item :required="true" :label="$t('message.product_barCode')" prop="productCode"> <view class="single">
<u-search :placeholder="$t('message.po_PleaseInput')" v-model="form.productCode" @search="model.getProductCode" :show-action="false"></u-search> <view class="single-left">
</u-form-item> <view>{{ $t('message.Requisition') }}</view>
<u-search :placeholder="$t('message.collecting')" v-model="form.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.product_FGCode')"> <u-form-item :label="$t('message.product_FGCode')">
<u-input :disabled="true" v-model="model.orderInInfo.productCode" placeholder="" /> <jPicker sureColor="#ff0000" style="width: 260rpx" @bindpicker="materialChoice" showKey="value" valKey="value" :val="wl.value" class="search" :options="model.choiceCodeList" />
</u-form-item> </u-form-item>
<!-- 成品描述 --> <!-- 成品描述 -->
<u-form-item :label="$t('message.product_FGDes')"> <u-form-item :label="$t('message.product_FGDes')">
<u-input :disabled="true" v-model="model.orderInInfo.productDescZh" placeholder="" /> <u-input :disabled="true" v-model="Some.productDescZh" placeholder="" />
</u-form-item> </u-form-item>
<!-- 数量 --> <!-- 数量 -->
<u-form-item :label="$t('message.product_Number')"> <u-form-item :label="$t('message.product_Number')">
<u-input :disabled="true" v-model="model.orderInInfo.qty" placeholder="" /> <u-input :disabled="true" v-model="Some.qty" placeholder="" />
</u-form-item> </u-form-item>
<!-- 库位 --> <!-- 库位 -->
<u-form-item :label="$t('message.product_Location')"> <u-form-item :label="$t('message.SourceLocation')">
<u-input :disabled="true" v-model="model.orderInInfo.locCode" placeholder="" /> <u-input :disabled="true" v-model="Some.originWl" placeholder="" />
</u-form-item> </u-form-item>
<!-- 成本中心 --> <!-- 成本中心 -->
<u-form-item :required="true" :label="$t('message.product_costCenter')"> <u-form-item :label="$t('message.product_costCenter')">
<u-input v-model="model.orderInInfo.costCenter" :placeholder="$t('message.po_PleaseInput')" /> <u-input v-model="Some.costCenter" :disabled="true" :placeholder="$t('message.po_PleaseInput')" />
</u-form-item>
<!-- 条码 -->
<u-form-item :label="$t('message.product_BarCode')">
<u-search :placeholder="$t('message.barcode')" v-model="form.barcode" @search="scanning" :show-action="false"></u-search>
</u-form-item> </u-form-item>
</u-form> </u-form>
<view class="bottom-bar"> <view class="bottom-bar">
<u-row class="button-bar"> <u-row class="button-bar">
<u-col :span="6"> <u-col :span="4">
<u-button type="primary" @click="onSubmit">{{ $t('message.workArea_Confirm') }}</u-button> <u-button type="primary" @click="onSubmit">{{ $t('message.detailed') }}</u-button>
</u-col> </u-col>
<u-col :span="6"> <u-col :span="4">
<u-button type="primary" @click="onSubmit">{{ $t('message.InventoryFinish') }}</u-button>
</u-col>
<u-col :span="4">
<u-button type="error" @click="uni.navigateBack({ delta: 1 })">{{ $t('message.po_Return') }}</u-button> <u-button type="error" @click="uni.navigateBack({ delta: 1 })">{{ $t('message.po_Return') }}</u-button>
</u-col> </u-col>
</u-row> </u-row>
@ -50,33 +63,27 @@ import { Component, Ref } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page'; import { BasePage } from '@/components/base/page';
import { VForm, VFormRules } from 'vue/types/form'; import { VForm, VFormRules } from 'vue/types/form';
import model from './model'; import model from './model';
import jPicker from '@/components/J-Picker/jPicker.vue';
import { session } from '@/store/modules/session'; import { session } from '@/store/modules/session';
interface OptionType { interface OptionType {
label: string; label: string;
value: string; value: string;
} }
@Component @Component({
components: {
jPicker,
},
})
export default class ProductCheckReceipt extends BasePage { export default class ProductCheckReceipt extends BasePage {
@Ref('form') readonly $form!: VForm; @Ref('form') readonly $form!: VForm;
model = model; model = model;
// //
form = { form = {
...this.model.orderInInfo, order3: '',
originWl: {} as OptionType, barcode: '',
aimWl: {} as OptionType,
qty: {} as OptionType,
}; };
originWlSelect = false; wl: any = {};
aimWlSelect = false; Some: any = {};
cboPlaceSelect = false;
rules: VFormRules<any> = {
documentNo: [{ required: true, message: this.$t('message.Warehouse_Tip1') as string }],
originWl: [{ required: true, message: this.$t('message.Warehouse_Tip2') as string }],
aimWl: [{ required: true, message: this.$t('message.Warehouse_Tip3') as string }],
cboPlace: [{ required: true, message: this.$t('message.Warehouse_Tip4') as string }],
};
value = '';
show = false;
// onReadyonLoad // onReadyonLoad
onReady() { onReady() {
this.model.orderInInfo.productDescZh = ''; this.model.orderInInfo.productDescZh = '';
@ -84,49 +91,107 @@ export default class ProductCheckReceipt extends BasePage {
this.model.orderInInfo.qty = ''; this.model.orderInInfo.qty = '';
this.model.orderInInfo.locCode = ''; this.model.orderInInfo.locCode = '';
this.model.orderInInfo.costCenter = ''; this.model.orderInInfo.costCenter = '';
this.$form.setRules(this.rules);
this.model.queryLocation();
} }
onSubmit() { //
this.$form.validate((valid: boolean) => { async query() {
if (!valid) return; if (!this.form.order3) {
if (!this.form.productCode) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: this.$t('message.Warehouse_Tip5') as string, title: this.$t('message.Commission_tips1') as string,
}); });
return; return;
} }
if (!this.model.orderInInfo.costCenter) { let param = {
factoryCode: session.factoryCode,
loginName: session.loginName,
order3: this.form.order3,
orderType: 'LY',
page: '1',
rows: '50',
};
await this.model.queryScrapList(param);
if (this.model.code == '1') {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: this.$t('message.Warehouse_Tip8') as string, title: this.$t('message.product_Tip8') as string,
});
this.wl.value = this.model.choiceCodeList[0].value;
this.Some = this.model.recordsList[0];
}
}
//
materialChoice(e: any) {
this.wl = e.pickerName;
this.model.recordsList.forEach((item: any) => {
if (item.productCode == e.pickerName.value) {
this.Some = item;
}
});
}
//
async scanning() {
if (!this.form.order3) {
uni.showToast({
icon: 'none',
title: this.$t('message.scrapForm') as string,
});
}
if (!this.Some) {
uni.showToast({
icon: 'none',
title: this.$t('message.finishedProduct') as string,
});
}
if (!this.form.barcode) {
uni.showToast({
icon: 'none',
title: this.$t('message.barcode') as string,
}); });
return; return;
} }
console.log('orderlist'); let params = {
factoryCode: session.factoryCode,
loginName: session.loginName,
barcode: this.form.barcode,
productCode: this.wl.value,
locCode: this.Some.originWl,
};
await this.model.getProductCode(params);
if (this.model.code == '1') {
uni.showToast({
icon: 'none',
title: this.$t('message.product_Tip8') as string,
});
}
}
//
async onSubmit() {
const orderlist = [ const orderlist = [
{ {
...this.model.orderInInfo, ...this.model.orderInInfo,
// originWl: this.form.originWl.value, originWl: this.Some.originWl,
originWl: this.model.orderInInfo.locCode, barCode: this.form.barcode,
// aimWl: this.form.aimWl.value, custcode aimWl: this.Some.aimWl,
type: '0', type: '0',
orderType: '2', orderType: '2',
keepBy: session.loginName, keepBy: session.loginName as string,
factoryCode: session.factoryCode, factoryCode: session.factoryCode as string,
order3: this.form.order3,
costCenter: this.Some.costCenter,
}, },
]; ];
console.log('orderlist', orderlist); await this.model.onTakeoutConfirm(orderlist);
this.model.onTakeoutConfirm(orderlist); if (this.model.code == '1') {
this.model.orderInInfo.productDescZh = ''; uni.showToast({
this.model.orderInInfo.productCode = ''; icon: 'none',
this.model.orderInInfo.qty = ''; title: this.$t('message.success') as string,
this.model.orderInInfo.locCode = '';
this.model.orderInInfo.costCenter = '';
this.form.productCode = '';
}); });
} }
this.Some = {};
this.wl = {};
this.form.order3 = '';
this.form.barcode = '';
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -175,6 +240,28 @@ export default class ProductCheckReceipt extends BasePage {
padding: 30rpx 0; padding: 30rpx 0;
line-height: 35rpx; 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;
}
}
}
} }
.bottom-bar { .bottom-bar {

@ -27,7 +27,9 @@ export class wholeCollect extends VuexModule {
* *
*/ */
WlList = []; WlList = [];
code: any = '';
recordsList: any = [];
choiceCodeList: any = [];
/** /**
* *
*/ */
@ -77,40 +79,39 @@ export class wholeCollect extends VuexModule {
return { WlList }; return { WlList };
} }
@MutationAction
async queryScrapList(param: any) {
const res: any = await http.post(url.warehouse.rowTransfer.list, param);
const code = res.code;
console.log('res', res);
const recordsList = res.data.records;
const choiceCodeList = [];
recordsList.forEach((item: any) => {
let arr: any = {};
arr.label = item.productCode;
arr.value = item.productCode;
choiceCodeList.push(arr);
});
console.log('choiceCodeList', choiceCodeList);
return { code, recordsList, choiceCodeList };
}
/** /**
* *
* DN * DN
* @param dnNo * @param dnNo
*/ */
@MutationAction @MutationAction
async getProductCode(barcode: string) { async getProductCode(params: any) {
const res: any = await http.post(url.warehouse.wholeTransfer.content, { const res: any = await http.post(url.warehouse.wholeTransfer.content, params);
barcode, const orderInInfo = res.data.records[0];
factoryCode: session.factoryCode, const code = res.code;
loginName: session.loginName, return { code, orderInInfo };
});
console.log('获取来的数据', res.data.records);
const orderInInfo = res.data.records[0] || {};
if (orderInInfo.custCode == '0') {
orderInInfo.custCodeName = vm.$t('message.Warehouse_NX') as any;
} else if (orderInInfo.custCode == '1') {
orderInInfo.custCodeName = vm.$t('message.Warehouse_WX') as any;
} else if (orderInInfo.custCode == '2') {
orderInInfo.custCodeName = vm.$t('message.Warehouse_YJ') as any;
} else if (orderInInfo.custCode == '4') {
orderInInfo.custCodeName = vm.$t('message.Warehouse_BCP') as any;
} }
return { orderInInfo };
}
@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.commit, list);
if (records.code == 1) { const code = records.code;
uni.showToast({ icon: 'success', title: 'success' }); return { code };
// uni.navigateTo({ url: page.product.warehouse.index });
}
return {};
} }
// /** // /**
// * 提交看单明细 // * 提交看单明细

@ -35,12 +35,16 @@
<u-input :disabled="true" v-model="Some.originWl" placeholder="" /> <u-input :disabled="true" v-model="Some.originWl" placeholder="" />
</u-form-item> </u-form-item>
<!-- 目标库位 --> <!-- 目标库位 -->
<u-form-item :required="true" :label="$t('message.Warehouse_TargetLocation')" prop="aimWl"> <u-form-item :label="$t('message.Warehouse_TargetLocation')" prop="aimWl">
<u-input :disabled="true" v-model="Some.aimWl" placeholder="" /> <u-input :disabled="true" v-model="Some.aimWl" placeholder="" />
</u-form-item> </u-form-item>
<!-- 成本中心 --> <!-- 成本中心 -->
<u-form-item :required="true" :label="$t('message.product_costCenter')"> <u-form-item :label="$t('message.product_costCenter')">
<u-input v-model="Some.costCenter" :placeholder="$t('message.po_PleaseInput')" /> <u-input v-model="Some.costCenter" :disabled="true" placeholder="" />
</u-form-item>
<!-- 文件号 -->
<u-form-item :label="$t('message.DocumentNumber')">
<u-input v-model="Some.fileNo" :disabled="true" placeholder="" />
</u-form-item> </u-form-item>
<!-- 条码 --> <!-- 条码 -->
<u-form-item :label="$t('message.product_BarCode')"> <u-form-item :label="$t('message.product_BarCode')">
@ -50,7 +54,7 @@
<view class="bottom-bar"> <view class="bottom-bar">
<u-row class="button-bar"> <u-row class="button-bar">
<u-col :span="4"> <u-col :span="4">
<u-button type="primary" @click="onSubmit">{{ $t('message.detailed') }}</u-button> <u-button type="primary">{{ $t('message.detailed') }}</u-button>
</u-col> </u-col>
<u-col :span="4"> <u-col :span="4">
<u-button type="primary" @click="onSubmit">{{ $t('message.InventoryFinish') }}</u-button> <u-button type="primary" @click="onSubmit">{{ $t('message.InventoryFinish') }}</u-button>
@ -82,19 +86,8 @@ interface OptionType {
}, },
}) })
export default class productCheckReceipt extends BasePage { export default class productCheckReceipt extends BasePage {
/**
* 表单引用
*/
@Ref('form') readonly $form!: VForm; @Ref('form') readonly $form!: VForm;
/**
* 页面Module
*/
model = model; model = model;
/**
* 表单数据
*/
form = { form = {
productCode: '', productCode: '',
order3: '', order3: '',
@ -102,6 +95,7 @@ export default class productCheckReceipt extends BasePage {
}; };
wl: any = {}; wl: any = {};
Some: any = {}; Some: any = {};
//
materialChoice(e: any) { materialChoice(e: any) {
this.wl = e.pickerName; this.wl = e.pickerName;
this.model.recordsList.forEach((item: any) => { this.model.recordsList.forEach((item: any) => {
@ -110,6 +104,7 @@ export default class productCheckReceipt extends BasePage {
} }
}); });
} }
//
async scanning() { async scanning() {
if (!this.form.order3) { if (!this.form.order3) {
uni.showToast({ uni.showToast({
@ -145,16 +140,7 @@ export default class productCheckReceipt extends BasePage {
}); });
} }
} }
rules: VFormRules<any> = {
documentNo: [{ required: true, message: this.$t('message.Warehouse_Tip1') as string }],
// originWl: [{ required: true, message: '' }],
aimWl: [{ required: true, message: this.$t('message.Warehouse_Tip3') as string }],
cboPlace: [{ required: true, message: this.$t('message.Warehouse_Tip4') as string }],
};
value = ''; value = '';
show = false;
// onReadyonLoad // onReadyonLoad
onReady() { onReady() {
this.model.orderInInfo.productDescZh = ''; this.model.orderInInfo.productDescZh = '';
@ -162,8 +148,8 @@ export default class productCheckReceipt extends BasePage {
this.model.orderInInfo.qty = ''; this.model.orderInInfo.qty = '';
this.model.orderInInfo.locCode = ''; this.model.orderInInfo.locCode = '';
this.model.orderInInfo.costCenter = ''; this.model.orderInInfo.costCenter = '';
this.$form.setRules(this.rules);
} }
//
async query() { async query() {
if (!this.form.order3) { if (!this.form.order3) {
uni.showToast({ uni.showToast({
@ -190,9 +176,8 @@ export default class productCheckReceipt extends BasePage {
this.Some = this.model.recordsList[0]; this.Some = this.model.recordsList[0];
} }
} }
onSubmit() { //
this.$form.validate(async (valid: boolean) => { async onSubmit() {
if (!valid) return;
const orderlist = [ const orderlist = [
{ {
...this.model.orderInInfo, ...this.model.orderInInfo,
@ -205,6 +190,7 @@ export default class productCheckReceipt extends BasePage {
factoryCode: session.factoryCode as string, factoryCode: session.factoryCode as string,
order3: this.form.order3, order3: this.form.order3,
costCenter: this.Some.costCenter, costCenter: this.Some.costCenter,
fileNo: this.Some.fileNo,
}, },
]; ];
await this.model.onTakeoutConfirm(orderlist); await this.model.onTakeoutConfirm(orderlist);
@ -218,7 +204,6 @@ export default class productCheckReceipt extends BasePage {
this.wl = {}; this.wl = {};
this.form.order3 = ''; this.form.order3 = '';
this.form.barcode = ''; this.form.barcode = '';
});
} }
} }
</script> </script>
@ -303,8 +288,5 @@ export default class productCheckReceipt extends BasePage {
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2); box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx; padding: 20rpx;
} }
.button-bar {
}
} }
</style> </style>

@ -236,6 +236,10 @@ export class AggregatingModule extends VuexModule {
const { queryParams, proOrderResultList } = params; const { queryParams, proOrderResultList } = params;
await http.post(url.sumscan.lock.list, queryParams); await http.post(url.sumscan.lock.list, queryParams);
const orderList = cloneDeep<any>(proOrderResultList); const orderList = cloneDeep<any>(proOrderResultList);
console.log('orderList', orderList);
if (orderList.length == 0) {
return { orderList };
}
return { orderList }; return { orderList };
} }
/** /**

@ -34,6 +34,10 @@ export const headers = [
label: vm.$t('message.product_costCenter'), label: vm.$t('message.product_costCenter'),
key: 'costCenter', key: 'costCenter',
}, },
{
label: vm.$t('message.DocumentNumber'),
key: 'fileNo',
},
// { // {
// label: '库存地点', // label: '库存地点',
// key: 'wkposCode', // key: 'wkposCode',

@ -1,171 +1,173 @@
export const page = { export const page = {
index: { index: {
index: "/pages/index/index", index: '/pages/index/index',
}, },
demo: { demo: {
index: "/pages/demo/index", index: '/pages/demo/index',
}, },
login: { login: {
login: "/pages/login/login/index", login: '/pages/login/login/index',
server: "/pages/login/server/index", server: '/pages/login/server/index',
area: "/pages/login/area/index", area: '/pages/login/area/index',
}, },
product: { product: {
index: "/pages/product/index", index: '/pages/product/index',
inbound: { inbound: {
// index: '/pages/product/inbound/index', // index: '/pages/product/inbound/index',
// index2: '/pages/product/inbound/index2', // index2: '/pages/product/inbound/index2',
index3: "/pages/product/inbound/index3", index3: '/pages/product/inbound/index3',
offlineIn: "/pages/product/inbound/offline-in/index", offlineIn: '/pages/product/inbound/offline-in/index',
finishProductOffline: "/pages/product/inbound/finishProductOffline/index", finishProductOffline: '/pages/product/inbound/finishProductOffline/index',
// semiFinishProductOfflineRefrigerator: // semiFinishProductOfflineRefrigerator:
// '/pages/product/inbound/semiFinishProductOfflineRefrigerator/index', // '/pages/product/inbound/semiFinishProductOfflineRefrigerator/index',
semiFinishProductOffline2: semiFinishProductOffline2: '/pages/product/inbound/semiFinishProductOffline2/index',
"/pages/product/inbound/semiFinishProductOffline2/index",
// semiFinishProductOnlineDoor: '/pages/product/inbound/semiFinishProductOnlineDoor/index', // semiFinishProductOnlineDoor: '/pages/product/inbound/semiFinishProductOnlineDoor/index',
// semiFinishProductOnlineBox: '/pages/product/inbound/semiFinishProductOnlineBox/index', // semiFinishProductOnlineBox: '/pages/product/inbound/semiFinishProductOnlineBox/index',
}, },
outbound: { outbound: {
index: "/pages/product/outbound/index", index: '/pages/product/outbound/index',
internal: "/pages/product/outbound/internal/index", internal: '/pages/product/outbound/internal/index',
foreign: "/pages/product/outbound/foreign/index", foreign: '/pages/product/outbound/foreign/index',
stoOutbound: "/pages/product/outbound/stoOutbound/index", stoOutbound: '/pages/product/outbound/stoOutbound/index',
delivergoods: "/pages/product/outbound/stoOutbound/DN-delivergoods", delivergoods: '/pages/product/outbound/stoOutbound/DN-delivergoods',
stoOutboundDetail: "/pages/product/outbound/stoOutbound/detail", stoOutboundDetail: '/pages/product/outbound/stoOutbound/detail',
}, },
warehouse: { warehouse: {
index: "/pages/product/warehouse/index", index: '/pages/product/warehouse/index',
wholeTransfer: { wholeTransfer: {
index: "/pages/product/warehouse/wholeTransfer/index", index: '/pages/product/warehouse/wholeTransfer/index',
Local: "/pages/product/warehouse/wholeTransfer/Local-details", Local: '/pages/product/warehouse/wholeTransfer/Local-details',
}, },
wholeScrap: { wholeScrap: {
index: "/pages/product/warehouse/wholeScrap/index", index: '/pages/product/warehouse/wholeScrap/index',
}, },
wholeCollect: { wholeCollect: {
index: "/pages/product/warehouse/wholeCollect/index", index: '/pages/product/warehouse/wholeCollect/index',
},
MaterialInventory: {
index: '/pages/product/warehouse/MaterialInventory/index',
}, },
wholeLnventory: { wholeLnventory: {
index: "/pages/product/warehouse/wholeLnventory/index", index: '/pages/product/warehouse/wholeLnventory/index',
}, },
}, },
}, },
raw: { raw: {
index: "/pages/raw/index", index: '/pages/raw/index',
appointment: { appointment: {
index: "/pages/raw/appointment/index", index: '/pages/raw/appointment/index',
checkin: "/pages/raw/appointment/checkin/index", checkin: '/pages/raw/appointment/checkin/index',
checkinList: "/pages/raw/appointment/checkin/list", checkinList: '/pages/raw/appointment/checkin/list',
checkout: "/pages/raw/appointment/checkout/index", checkout: '/pages/raw/appointment/checkout/index',
}, },
handover: { handover: {
index: "/pages/raw/handover/index", index: '/pages/raw/handover/index',
kanDan: { kanDan: {
index: "/pages/raw/handover/kan-dan/index", index: '/pages/raw/handover/kan-dan/index',
details: "/pages/raw/handover/kan-dan/details", details: '/pages/raw/handover/kan-dan/details',
}, },
picking: { picking: {
index: "/pages/raw/handover/picking/index", index: '/pages/raw/handover/picking/index',
result: "/pages/raw/handover/picking/result", result: '/pages/raw/handover/picking/result',
summary: "/pages/raw/handover/picking/summary", summary: '/pages/raw/handover/picking/summary',
bysummary: "/pages/raw/handover/picking/BySummary", bysummary: '/pages/raw/handover/picking/BySummary',
order: "/pages/raw/handover/picking/order", order: '/pages/raw/handover/picking/order',
idetailed: "/pages/raw/handover/picking/idetailed", idetailed: '/pages/raw/handover/picking/idetailed',
query: "/pages/raw/handover/picking/query", query: '/pages/raw/handover/picking/query',
total: "/pages/raw/handover/picking/total", total: '/pages/raw/handover/picking/total',
byorder: "/pages/raw/handover/picking/ByOrder", byorder: '/pages/raw/handover/picking/ByOrder',
Local: "/pages/raw/handover/picking/Local-details", Local: '/pages/raw/handover/picking/Local-details',
SummaryLocal: "/pages/raw/handover/picking/Summary-details", SummaryLocal: '/pages/raw/handover/picking/Summary-details',
}, },
feeding: { feeding: {
index: "/pages/raw/handover/feeding/index", index: '/pages/raw/handover/feeding/index',
detail: "/pages/raw/handover/feeding/detail", detail: '/pages/raw/handover/feeding/detail',
Location: "/pages/raw/handover/feeding/Location", Location: '/pages/raw/handover/feeding/Location',
Local: "/pages/raw/handover/feeding/Local-details", Local: '/pages/raw/handover/feeding/Local-details',
}, },
returning: { returning: {
index: "/pages/raw/handover/returning/index", index: '/pages/raw/handover/returning/index',
filter: "/pages/raw/handover/returning/Time-filter", filter: '/pages/raw/handover/returning/Time-filter',
}, },
aggregating: { aggregating: {
index: "/pages/raw/handover/aggregating/index", index: '/pages/raw/handover/aggregating/index',
result: "/pages/raw/handover/aggregating/result", result: '/pages/raw/handover/aggregating/result',
order: "/pages/raw/handover/aggregating/order", order: '/pages/raw/handover/aggregating/order',
summary: "/pages/raw/handover/aggregating/summary", summary: '/pages/raw/handover/aggregating/summary',
accessory: "/pages/raw/handover/aggregating/accessory", accessory: '/pages/raw/handover/aggregating/accessory',
}, },
virtual: { virtual: {
index: "/pages/raw/handover/virtual/index", index: '/pages/raw/handover/virtual/index',
result: "/pages/raw/handover/virtual/result", result: '/pages/raw/handover/virtual/result',
summary: "/pages/raw/handover/virtual/summary", summary: '/pages/raw/handover/virtual/summary',
}, },
}, },
ingoods: { ingoods: {
index: "/pages/raw/ingoods/index", index: '/pages/raw/ingoods/index',
receipt: { receipt: {
index: "/pages/raw/ingoods/receipt/index", index: '/pages/raw/ingoods/receipt/index',
detail: "/pages/raw/ingoods/receipt/detail", detail: '/pages/raw/ingoods/receipt/detail',
detailEx: "/pages/raw/ingoods/receipt/detail-ex", detailEx: '/pages/raw/ingoods/receipt/detail-ex',
}, },
poReceipt: { poReceipt: {
index: "/pages/raw/ingoods/poReceipt/index", index: '/pages/raw/ingoods/poReceipt/index',
detail: "/pages/raw/ingoods/poReceipt/detail", detail: '/pages/raw/ingoods/poReceipt/detail',
detailEx: "/pages/raw/ingoods/poReceipt/detail-ex", detailEx: '/pages/raw/ingoods/poReceipt/detail-ex',
idetailed: "/pages/raw/ingoods/poReceipt/idetailed", idetailed: '/pages/raw/ingoods/poReceipt/idetailed',
poReceiving: "/pages/raw/ingoods/poReceipt/poReceiving", poReceiving: '/pages/raw/ingoods/poReceipt/poReceiving',
bill: "/pages/raw/ingoods/poReceipt/bill", bill: '/pages/raw/ingoods/poReceipt/bill',
}, },
dnReceipt: { dnReceipt: {
index: "/pages/raw/ingoods/dnReceipt/index", index: '/pages/raw/ingoods/dnReceipt/index',
detail: "/pages/raw/ingoods/dnReceipt/detail", detail: '/pages/raw/ingoods/dnReceipt/detail',
detailEx: "/pages/raw/ingoods/dnReceipt/detail-ex", detailEx: '/pages/raw/ingoods/dnReceipt/detail-ex',
idetailed: "/pages/raw/ingoods/dnReceipt/idetailed", idetailed: '/pages/raw/ingoods/dnReceipt/idetailed',
dnReceiving: "/pages/raw/ingoods/dnReceipt/dnReceiving", dnReceiving: '/pages/raw/ingoods/dnReceipt/dnReceiving',
importDN: "/pages/raw/ingoods/dnReceipt/ImportDN", importDN: '/pages/raw/ingoods/dnReceipt/ImportDN',
bill: "/pages/raw/ingoods/dnReceipt/bill", bill: '/pages/raw/ingoods/dnReceipt/bill',
Local: "/pages/raw/ingoods/dnReceipt/Local-details", Local: '/pages/raw/ingoods/dnReceipt/Local-details',
}, },
dnReturnGoods: { dnReturnGoods: {
index: "/pages/raw/ingoods/dnReturnGoods/index", index: '/pages/raw/ingoods/dnReturnGoods/index',
detail: "/pages/raw/ingoods/dnReturnGoods/detail", detail: '/pages/raw/ingoods/dnReturnGoods/detail',
location: "/pages/raw/ingoods/dnReturnGoods/Location", location: '/pages/raw/ingoods/dnReturnGoods/Location',
Local: "/pages/raw/ingoods/dnReturnGoods/Local-details", Local: '/pages/raw/ingoods/dnReturnGoods/Local-details',
detailEx: "/pages/raw/ingoods/dnReturnGoods/detail-ex", detailEx: '/pages/raw/ingoods/dnReturnGoods/detail-ex',
idetailed: "/pages/raw/ingoods/dnReturnGoods/idetailed", idetailed: '/pages/raw/ingoods/dnReturnGoods/idetailed',
}, },
}, },
warehouse: { warehouse: {
index: "/pages/raw/warehouse/index", index: '/pages/raw/warehouse/index',
rowTransfer: { rowTransfer: {
index: "/pages/raw/warehouse/rowTransfer/index", index: '/pages/raw/warehouse/rowTransfer/index',
details: "/pages/raw/warehouse/rowTransfer/details", details: '/pages/raw/warehouse/rowTransfer/details',
}, },
rowScrap: { rowScrap: {
index: "/pages/raw/warehouse/rowScrap/index", index: '/pages/raw/warehouse/rowScrap/index',
details: "/pages/raw/warehouse/rowScrap/details", details: '/pages/raw/warehouse/rowScrap/details',
}, },
rowCollect: { rowCollect: {
index: "/pages/raw/warehouse/rowCollect/index", index: '/pages/raw/warehouse/rowCollect/index',
details: "/pages/raw/warehouse/rowCollect/details", details: '/pages/raw/warehouse/rowCollect/details',
}, },
rowInventory: { rowInventory: {
index: "/pages/raw/warehouse/rowInventory/index", index: '/pages/raw/warehouse/rowInventory/index',
}, },
}, },
commission: { commission: {
index: "/pages/raw/commission/index", index: '/pages/raw/commission/index',
entrant: { entrant: {
index: "/pages/raw/commission/entrant/index", index: '/pages/raw/commission/entrant/index',
detail: "/pages/raw/commission/entrant/detail", detail: '/pages/raw/commission/entrant/detail',
}, },
goOut: { goOut: {
index: "/pages/raw/commission/goOut/index", index: '/pages/raw/commission/goOut/index',
detail: "/pages/raw/commission/goOut/detail", detail: '/pages/raw/commission/goOut/detail',
}, },
}, },
}, },
SemiProduct: { SemiProduct: {
index: "/pages/SemiProduct/index", index: '/pages/SemiProduct/index',
// inbound: { // inbound: {
// index: '/pages/SemiProduct/inbound/index', // index: '/pages/SemiProduct/inbound/index',
// index2: '/pages/SemiProduct/inbound/index2', // index2: '/pages/SemiProduct/inbound/index2',
@ -175,20 +177,20 @@ export const page = {
// semiFinishProductOnlineBox: '/pages/SemiProduct/inbound/semiFinishProductOnlineBox/index', // semiFinishProductOnlineBox: '/pages/SemiProduct/inbound/semiFinishProductOnlineBox/index',
// }, // },
outbound: { outbound: {
index: "/pages/SemiProduct/outbound/index", index: '/pages/SemiProduct/outbound/index',
}, },
inbound: { inbound: {
index: "/pages/SemiProduct/inbound/index", index: '/pages/SemiProduct/inbound/index',
}, },
DumpList: { DumpList: {
index: "/pages/SemiProduct/DumpList/index", index: '/pages/SemiProduct/DumpList/index',
DumpListFH: { DumpListFH: {
index: "/pages/SemiProduct/DumpList/DumpListFH/index", index: '/pages/SemiProduct/DumpList/DumpListFH/index',
detail: "/pages/SemiProduct/DumpList/DumpListFH/detail", detail: '/pages/SemiProduct/DumpList/DumpListFH/detail',
}, },
DumpListSH: { DumpListSH: {
index: "/pages/SemiProduct/DumpList/DumpListSH/index", index: '/pages/SemiProduct/DumpList/DumpListSH/index',
detail: "/pages/SemiProduct/DumpList/DumpListSH/detail", detail: '/pages/SemiProduct/DumpList/DumpListSH/detail',
}, },
}, },
}, },

@ -199,6 +199,11 @@ export const url = {
rowCollect: { rowCollect: {
list: '/wmspda/fg/listByOrder', list: '/wmspda/fg/listByOrder',
}, },
MaterialInventory: {
list: '/wmspda/fg/findMaterialByPddNoWl',
content: '/wmspda/fg/inventoryUploadSn',
commit: '/wmspda/fg/completePd',
},
wholeTransfer: { wholeTransfer: {
list: '/wmspda/fg/getMdLocation', list: '/wmspda/fg/getMdLocation',
content: '/wmspda/fg/getMaterialByCode', content: '/wmspda/fg/getMaterialByCode',

Loading…
Cancel
Save