dam-7 feat 拣配 交接 增加展示字段 && 委外出库去掉关闭按钮 && 等等

master
hou 3 years ago
parent cfa5ea05cd
commit 8783bd4d08

@ -95,7 +95,6 @@ import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page'; import { BasePage } from '@/components/base/page';
import jPicker from '@/components/J-Picker/jPicker.vue'; import jPicker from '@/components/J-Picker/jPicker.vue';
import { session } from '@/store/modules/session'; import { session } from '@/store/modules/session';
//import { VForm, VFormRules } from 'vue/types/form';
import model from './model'; import model from './model';
@Component({ @Component({
components: { components: {
@ -133,8 +132,6 @@ export default class dnReceiptDom extends BasePage {
workArea: session.workareaCode, workArea: session.workareaCode,
}; };
await this.model.queryByFactoryCodeAndWorkAreaCode(content); await this.model.queryByFactoryCodeAndWorkAreaCode(content);
// undefined
//guoshuang undefiend
this.model.LoctionList.forEach((item: any) => { this.model.LoctionList.forEach((item: any) => {
let pickerName: any = {}; let pickerName: any = {};
pickerName.label = item.locationCode; pickerName.label = item.locationCode;
@ -233,6 +230,7 @@ export default class dnReceiptDom extends BasePage {
this.every = ''; this.every = '';
this.materialList = []; this.materialList = [];
} }
//
async bill() { async bill() {
if (this.form.documentNo == '') { if (this.form.documentNo == '') {
this.customToast(this.$t('message._tips6') as any); this.customToast(this.$t('message._tips6') as any);

@ -64,16 +64,16 @@
<!-- 底部按钮 --> <!-- 底部按钮 -->
<view class="bottom-bar"> <view class="bottom-bar">
<u-row class="button-bar"> <u-row class="button-bar">
<u-col :span="3"> <u-col :span="4">
<u-button type="primary" @click="bill">{{ $t('message.CommissionedDetails') }}</u-button> <u-button type="primary" @click="bill">{{ $t('message.CommissionedDetails') }}</u-button>
</u-col> </u-col>
<u-col :span="3"> <!-- <u-col :span="3">
<u-button type="primary" @click="close">{{ $t('message.Closed') }}</u-button> <u-button type="primary" @click="close">{{ $t('message.Closed') }}</u-button>
</u-col> </u-col> -->
<u-col :span="3"> <u-col :span="4">
<u-button type="primary" @click="onSubmit">{{ $t('message.product_Upload') }}</u-button> <u-button type="primary" @click="onSubmit">{{ $t('message.product_Upload') }}</u-button>
</u-col> </u-col>
<u-col :span="3"> <u-col :span="4">
<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>
</u-col> </u-col>
</u-row> </u-row>

@ -28,6 +28,15 @@ export const headers = [
key: 'requireDate', //生产日期 key: 'requireDate', //生产日期
width: 300, width: 300,
}, },
{
label: vm.$t('message.product_FGCode'),
key: 'prodCode', //成品编码
},
{
label: vm.$t('message.Pi_FinishedProductModel'),
key: 'prodDesc', //成品型号
width: 300,
},
]; ];
/** /**
@ -81,6 +90,15 @@ export const resultHeaders = [
label: vm.$t('message.po_Location'), label: vm.$t('message.po_Location'),
key: 'wkposCode', key: 'wkposCode',
}, },
{
label: vm.$t('message.product_FGCode'),
key: 'prodCode', //成品编码
},
{
label: vm.$t('message.Pi_FinishedProductModel'),
key: 'prodDesc', //成品型号
width: 300,
},
]; ];
/** /**
@ -187,12 +205,17 @@ export const orderHeaders = [
label: vm.$t('message.Pi_OrderNo'), label: vm.$t('message.Pi_OrderNo'),
key: 'prdOrder', key: 'prdOrder',
}, },
{
label: vm.$t('message.Pi_FinishedProductModel'),
key: 'proType',
},
{ {
label: vm.$t('message.po_Location'), label: vm.$t('message.po_Location'),
key: 'wkposCode', key: 'wkposCode',
}, },
{
label: vm.$t('message.product_FGCode'),
key: 'prodCode', //成品编码
},
{
label: vm.$t('message.Pi_FinishedProductModel'),
key: 'prodDesc', //成品型号
width: 300,
},
]; ];

@ -302,26 +302,14 @@ export default class RawReceiptDetail extends BasePage {
} }
Add() { Add() {
if (this.qty == '' || this.wlCode == '') { if (this.qty == '' || this.wlCode == '') {
// uni.showToast({
// icon: 'none',
// title: this.$t('message.AppendMateriel1') as string,
// });
this.customToast(this.$t('message.AppendMateriel1') as string); this.customToast(this.$t('message.AppendMateriel1') as string);
return; return;
} }
if (parseFloat(this.qty) <= 0) { if (parseFloat(this.qty) <= 0) {
// uni.showToast({
// icon: 'none',
// title: this.$t('message.AppendMateriel2') as string,
// });
this.customToast(this.$t('message.AppendMateriel2') as string); this.customToast(this.$t('message.AppendMateriel2') as string);
return; return;
} }
if (parseFloat(this.qty) > model.blDetailList[this.someIndex].amount) { if (parseFloat(this.qty) > model.blDetailList[this.someIndex].amount) {
// uni.showToast({
// icon: 'none',
// title: this.$t('message.AppendMateriel3') as string,
// });
this.customToast(this.$t('message.AppendMateriel3') as string); this.customToast(this.$t('message.AppendMateriel3') as string);
return; return;
} }
@ -330,10 +318,6 @@ export default class RawReceiptDetail extends BasePage {
num += parseFloat(item.qty); num += parseFloat(item.qty);
}); });
if (num > this.model.blDetailList[this.someIndex].amount) { if (num > this.model.blDetailList[this.someIndex].amount) {
// uni.showToast({
// icon: 'none',
// title: this.$t('message.AppendMateriel3') as string,
// });
this.customToast(this.$t('message.AppendMateriel3') as string); this.customToast(this.$t('message.AppendMateriel3') as string);
return; return;
} }
@ -341,20 +325,12 @@ export default class RawReceiptDetail extends BasePage {
if (this.LocationList.length != 0) { if (this.LocationList.length != 0) {
this.model.blDetailList[this.someIndex].wlList.forEach((item: any) => { this.model.blDetailList[this.someIndex].wlList.forEach((item: any) => {
if (this.wlCode.sendSpot != item.Code) { if (this.wlCode.sendSpot != item.Code) {
// uni.showToast({
// icon: 'none',
// title: this.$t('message.AppendMateriel4') as string,
// });
this.customToast(this.$t('message.AppendMateriel4') as string); this.customToast(this.$t('message.AppendMateriel4') as string);
return (isTrue = false); return (isTrue = false);
} }
}); });
} }
if (this.some == {}) { if (this.some == {}) {
// uni.showToast({
// icon: 'none',
// title: this.$t('message.AppendMateriel5') as string,
// });
this.customToast(this.$t('message.AppendMateriel5') as string); this.customToast(this.$t('message.AppendMateriel5') as string);
return; return;
} }

@ -28,6 +28,15 @@ export const headers = [
key: 'requireDate', //生产日期 key: 'requireDate', //生产日期
width: 300, width: 300,
}, },
{
label: vm.$t('message.product_FGCode'),
key: 'prodCode', //成品编码
},
{
label: vm.$t('message.Pi_FinishedProductModel'),
key: 'prodDesc', //成品型号
width: 300,
},
]; ];
/** /**
@ -77,15 +86,24 @@ export const resultHeaders = [
label: vm.$t('message.Pi_OrderNo'), label: vm.$t('message.Pi_OrderNo'),
key: 'prdOrder', key: 'prdOrder',
}, },
{ // {
label: vm.$t('message.Pi_FinishedProductModel'), // label: vm.$t('message.Pi_FinishedProductModel'),
key: 'prdMaterialDesc', // key: 'prdMaterialDesc',
width: 300, // width: 300,
}, // },
{ {
label: vm.$t('message.po_Location'), label: vm.$t('message.po_Location'),
key: 'wkposCode', key: 'wkposCode',
}, },
{
label: vm.$t('message.product_FGCode'),
key: 'prodCode', //成品编码
},
{
label: vm.$t('message.Pi_FinishedProductModel'),
key: 'prodDesc', //成品型号
width: 300,
},
]; ];
/** /**
@ -210,6 +228,15 @@ export const orderHeaders = [
label: vm.$t('message.Pi_OrderNo'), label: vm.$t('message.Pi_OrderNo'),
key: 'prdOrder', key: 'prdOrder',
}, },
{
label: vm.$t('message.product_FGCode'),
key: 'prodCode', //成品编码
},
{
label: vm.$t('message.Pi_FinishedProductModel'),
key: 'prodDesc', //成品型号
width: 300,
},
]; ];
export const Headers = [ export const Headers = [

@ -245,6 +245,7 @@ export default class dnReceiptDom extends BasePage {
this.poNo = e.pickerName.value; this.poNo = e.pickerName.value;
// //
this.materialList = JSON.parse(JSON.stringify(this.removeDuplicates(this.material, 'materialCode'))); this.materialList = JSON.parse(JSON.stringify(this.removeDuplicates(this.material, 'materialCode')));
console.log('this.materialList??>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', this.materialList);
// poNo // poNo
this.materialList = this.materialList.filter((item: any) => { this.materialList = this.materialList.filter((item: any) => {
if (item.poNo == e.pickerName.value) { if (item.poNo == e.pickerName.value) {
@ -253,6 +254,7 @@ export default class dnReceiptDom extends BasePage {
return true; return true;
} }
}); });
console.log('this.materialList', this.materialList);
// //
this.materialChoice({ this.materialChoice({
pickerName: this.materialList.find(() => true), pickerName: this.materialList.find(() => true),

@ -173,6 +173,7 @@ export default class RawReceiptDetail extends BasePage {
await this.GetLocation(); await this.GetLocation();
this.wlCode = this.Location[0]; this.wlCode = this.Location[0];
} }
//
async GetLocation() { async GetLocation() {
let content = { let content = {
loginName: session.loginName, loginName: session.loginName,
@ -189,9 +190,11 @@ export default class RawReceiptDetail extends BasePage {
}); });
this.wlCode = this.Location[0]; this.wlCode = this.Location[0];
} }
//
onUpload() { onUpload() {
uni.navigateBack({ delta: 1 }); uni.navigateBack({ delta: 1 });
} }
//
async query() { async query() {
if (!this.form.documentNo) { if (!this.form.documentNo) {
this.customToast(this.$t('message.Commission_tips1') as any); this.customToast(this.$t('message.Commission_tips1') as any);
@ -210,10 +213,12 @@ export default class RawReceiptDetail extends BasePage {
}); });
this.wl = this.materialList[0]; this.wl = this.materialList[0];
this.some = this.model.dnReturnList[0]; this.some = this.model.dnReturnList[0];
this.qty = this.model.dnReturnList[0].poAmount;
console.log('this.some', this.some); console.log('this.some', this.some);
} }
}); });
} }
//
materialChoice(e: any) { materialChoice(e: any) {
console.log('e', e); console.log('e', e);
this.model.dnReturnList.forEach((item: any, index: any) => { this.model.dnReturnList.forEach((item: any, index: any) => {
@ -222,6 +227,7 @@ export default class RawReceiptDetail extends BasePage {
this.someIndex = index; this.someIndex = index;
} }
}); });
this.qty = this.some.poAmount;
console.log('this.some', this.some); console.log('this.some', this.some);
console.log('this.someIndex', this.someIndex); console.log('this.someIndex', this.someIndex);
} }
@ -288,9 +294,11 @@ export default class RawReceiptDetail extends BasePage {
}, },
}); });
} }
//
appoint() { appoint() {
this.toPage(this.page.raw.ingoods.dnReturnGoods.Local); this.toPage(this.page.raw.ingoods.dnReturnGoods.Local);
} }
//
async onSubmit() { async onSubmit() {
let isTrue = true; let isTrue = true;
// this.model.dnReturnList.forEach((item: any) => { // this.model.dnReturnList.forEach((item: any) => {

Loading…
Cancel
Save