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