退料去掉库区扫描

master
guoshuang 3 months ago
parent 78496c75a0
commit 3afe19030d

@ -142,7 +142,7 @@ export default class LoginPage extends BasePage {
// console.log('Version////', this.Version); // console.log('Version////', this.Version);
} }
///****************** ///******************
version = '0.0.171'; // version = '0.0.172'; //
//version = '0.0.14'; // //version = '0.0.14'; //
//*************** false true **************** //*************** false true ****************
//isTest = true; //isTest = true;

@ -12,12 +12,12 @@
<u-form-item label="退料单"> <u-form-item label="退料单">
<u-search placeholder="请扫描" v-model="orderNo" @search="query" :show-action="false"></u-search> <u-search placeholder="请扫描" v-model="orderNo" @search="query" :show-action="false"></u-search>
</u-form-item> </u-form-item>
<u-form-item label="库区"> <!-- <u-form-item label="库区">
<u-search placeholder="请扫描" v-model="areaCode" @search="queryloc" :show-action="false"></u-search> <u-search placeholder="请扫描" v-model="areaCode" @search="queryloc" :show-action="false"></u-search>
</u-form-item> </u-form-item>
<u-form-item label="仓库"> <u-form-item label="仓库">
{{ waCodeList && waCodeList.warehouseName }} {{ waCodeList && waCodeList.warehouseName }}
</u-form-item> </u-form-item> -->
<u-form-item label="标志卡"> <u-form-item label="标志卡">
<u-search placeholder="请扫描" v-model="Idcard" @search="querybyidcard" :show-action="false"></u-search> <u-search placeholder="请扫描" v-model="Idcard" @search="querybyidcard" :show-action="false"></u-search>
</u-form-item> </u-form-item>
@ -143,14 +143,14 @@ export default class ReturnMaterials extends BasePage {
itemdetail: any = ''; itemdetail: any = '';
outNumber: any = 0; outNumber: any = 0;
realityaddNumber = 0; realityaddNumber = 0;
async queryloc() { // async queryloc() {
let params = { // let params = {
factoryCode: session.FactoryCode, // factoryCode: session.FactoryCode,
areaCode: this.areaCode, // areaCode: this.areaCode,
}; // };
await this.model.getworkloc(params); // await this.model.getworkloc(params);
this.waCodeList = model.workloclist; // this.waCodeList = model.workloclist;
} // }
// //
async query() { async query() {
if (this.orderNo == '' || this.orderNo.length == 0) { if (this.orderNo == '' || this.orderNo.length == 0) {
@ -234,20 +234,20 @@ export default class ReturnMaterials extends BasePage {
}); });
return; return;
} }
if (this.areaCode == '') { // if (this.areaCode == '') {
(this.$refs.uToast as any).show({ // (this.$refs.uToast as any).show({
title: '请先扫描或输入库区', // title: '',
type: 'default', // type: 'default',
}); // });
return; // return;
} // }
if (Object.keys(this.waCodeList).length == 0) { // if (Object.keys(this.waCodeList).length == 0) {
(this.$refs.uToast as any).show({ // (this.$refs.uToast as any).show({
title: '没有仓库信息', // title: '',
type: 'default', // type: 'default',
}); // });
return; // return;
} // }
if (this.list.length == 0 || this.list == '') { if (this.list.length == 0 || this.list == '') {
(this.$refs.uToast as any).show({ (this.$refs.uToast as any).show({
@ -261,8 +261,8 @@ export default class ReturnMaterials extends BasePage {
params.push({ params.push({
createBy: session.loginName, createBy: session.loginName,
factoryCode: session.FactoryCode, factoryCode: session.FactoryCode,
whCode: this.waCodeList.warehouseCode, // whCode: this.waCodeList.warehouseCode,
waCode: this.areaCode, // waCode: this.areaCode,
planNumber: item.planNumber, planNumber: item.planNumber,
procureCode: item.procureCode, procureCode: item.procureCode,
userDefined6: item.userDefined1, userDefined6: item.userDefined1,
@ -292,8 +292,8 @@ export default class ReturnMaterials extends BasePage {
mepty() { mepty() {
this.list = []; this.list = [];
this.materilist = []; this.materilist = [];
this.areaCode = ''; //this.areaCode = '';
this.waCodeList = {}; //this.waCodeList = {};
this.query(); this.query();
} }
delet(deletobj, index) { delet(deletobj, index) {

Loading…
Cancel
Save