|
|
@ -163,18 +163,18 @@ export default { |
|
|
|
// searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物品选择', this.addPopData_HB) }, |
|
|
|
width:"auto" |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: "filterSelect", label: "供应商代码", prop: "supplierCode", optionsLabel: "supplierSimpleName", optionsValue: "supplierCode", clearable:true, |
|
|
|
beforeFocus:(tableScope)=>{if(!this.addPopData_FS[tableScope.$index].itemCode || this.addPopData_FS[tableScope.$index].length <= 0){this.$message.error('请选择'+_Names.itemCode); return false}else{return true}}, |
|
|
|
focus: (type,val,tableScope) => { return this.getFilterList(type, val, "basedata/supplier-item",this.isFilter("itemCode", this.addPopData_FS[tableScope.$index].itemCode),1000)}, |
|
|
|
width:"auto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: "filterSelect", label: "采购订单号", prop: "poNumber",optionsValue: "number", clearable:true,getType:"getPage", |
|
|
|
beforeFocus:(tableScope)=>{if(!this.addPopData_FS[tableScope.$index].itemCode || this.addPopData_FS[tableScope.$index].itemCode.length <= 0 || !this.addPopData_FS[tableScope.$index].supplierCode || this.addPopData_FS[tableScope.$index].supplierCode.length <= 0){this.$message.error('请选择'+_Names.itemCode+'和供应商代码'); return false}else{return true}}, |
|
|
|
focus: (type,val,tableScope) => { return this.getFilterList(type, {itemCode:this.addPopData_FS[tableScope.$index].itemCode,supplierCode:this.addPopData_FS[tableScope.$index].supplierCode}, "wms/store/purchase-order/get-list-by-supplier-code-and-item-code")}, |
|
|
|
colSpan: 12,width:"auto", |
|
|
|
}, |
|
|
|
// { |
|
|
|
// type: "filterSelect", label: "供应商代码", prop: "supplierCode", optionsLabel: "supplierSimpleName", optionsValue: "supplierCode", clearable:true, |
|
|
|
// beforeFocus:(tableScope)=>{if(!this.addPopData_FS[tableScope.$index].itemCode || this.addPopData_FS[tableScope.$index].length <= 0){this.$message.error('请选择'+_Names.itemCode); return false}else{return true}}, |
|
|
|
// focus: (type,val,tableScope) => { return this.getFilterList(type, val, "basedata/supplier-item",this.isFilter("itemCode", this.addPopData_FS[tableScope.$index].itemCode),1000)}, |
|
|
|
// width:"auto", |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// type: "filterSelect", label: "采购订单号", prop: "poNumber",optionsValue: "number", clearable:true,getType:"getPage", |
|
|
|
// beforeFocus:(tableScope)=>{if(!this.addPopData_FS[tableScope.$index].itemCode || this.addPopData_FS[tableScope.$index].itemCode.length <= 0 || !this.addPopData_FS[tableScope.$index].supplierCode || this.addPopData_FS[tableScope.$index].supplierCode.length <= 0){this.$message.error('请选择'+_Names.itemCode+'和供应商代码'); return false}else{return true}}, |
|
|
|
// focus: (type,val,tableScope) => { return this.getFilterList(type, {itemCode:this.addPopData_FS[tableScope.$index].itemCode,supplierCode:this.addPopData_FS[tableScope.$index].supplierCode}, "wms/store/purchase-order/get-list-by-supplier-code-and-item-code")}, |
|
|
|
// colSpan: 12,width:"auto", |
|
|
|
// }, |
|
|
|
{ type: "filterSelect", label: "目标库位", prop: "locationCode", optionsLabel: "name", optionsValue: "code", |
|
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/Location",this.isFilter("type", "2"),1000)}, |
|
|
|
// searchButton: (val) => { this.showSerarchPage(val, 'basedata/Location', 'InventoryBalance', '库位选择', this.addPopData_HB) }, |
|
|
@ -259,18 +259,18 @@ export default { |
|
|
|
// searchButton: (val) => { this.showSerarchPage(val, 'basedata/Item-Basic', 'ItemBasic', '物品选择', this.addPopData_HB) }, |
|
|
|
width:"auto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: "filterSelect", label: "供应商代码", prop: "supplierCode", optionsLabel: "supplierSimpleName", optionsValue: "supplierCode", clearable:true, |
|
|
|
beforeFocus:(tableScope)=>{if(!this.addPopData_HB[tableScope.$index].itemCode || this.addPopData_HB[tableScope.$index].length <= 0){this.$message.error('请选择'+_Names.itemCode); return false}else{return true}}, |
|
|
|
focus: (type,val,tableScope) => { return this.getFilterList(type, val, "basedata/supplier-item",this.isFilter("itemCode", this.addPopData_HB[tableScope.$index].itemCode),1000)}, |
|
|
|
width:"auto", |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: "filterSelect", label: "采购订单号", prop: "poNumber",optionsValue: "number", clearable:true,getType:"getPage", |
|
|
|
beforeFocus:(tableScope)=>{if(!this.addPopData_HB[tableScope.$index].itemCode || this.addPopData_HB[tableScope.$index].itemCode.length <= 0 || !this.addPopData_HB[tableScope.$index].supplierCode || this.addPopData_HB[tableScope.$index].supplierCode.length <= 0){this.$message.error('请选择'+_Names.itemCode+'和供应商代码'); return false}else{return true}}, |
|
|
|
focus: (type,val,tableScope) => { return this.getFilterList(type, {itemCode:this.addPopData_HB[tableScope.$index].itemCode,supplierCode:this.addPopData_HB[tableScope.$index].supplierCode}, "wms/store/purchase-order/get-list-by-supplier-code-and-item-code")}, |
|
|
|
colSpan: 12,width:"auto", |
|
|
|
}, |
|
|
|
// { |
|
|
|
// type: "filterSelect", label: "供应商代码", prop: "supplierCode", optionsLabel: "supplierSimpleName", optionsValue: "supplierCode", clearable:true, |
|
|
|
// beforeFocus:(tableScope)=>{if(!this.addPopData_HB[tableScope.$index].itemCode || this.addPopData_HB[tableScope.$index].length <= 0){this.$message.error('请选择'+_Names.itemCode); return false}else{return true}}, |
|
|
|
// focus: (type,val,tableScope) => { return this.getFilterList(type, val, "basedata/supplier-item",this.isFilter("itemCode", this.addPopData_HB[tableScope.$index].itemCode),1000)}, |
|
|
|
// width:"auto", |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// type: "filterSelect", label: "采购订单号", prop: "poNumber",optionsValue: "number", clearable:true,getType:"getPage", |
|
|
|
// beforeFocus:(tableScope)=>{if(!this.addPopData_HB[tableScope.$index].itemCode || this.addPopData_HB[tableScope.$index].itemCode.length <= 0 || !this.addPopData_HB[tableScope.$index].supplierCode || this.addPopData_HB[tableScope.$index].supplierCode.length <= 0){this.$message.error('请选择'+_Names.itemCode+'和供应商代码'); return false}else{return true}}, |
|
|
|
// focus: (type,val,tableScope) => { return this.getFilterList(type, {itemCode:this.addPopData_HB[tableScope.$index].itemCode,supplierCode:this.addPopData_HB[tableScope.$index].supplierCode}, "wms/store/purchase-order/get-list-by-supplier-code-and-item-code")}, |
|
|
|
// colSpan: 12,width:"auto", |
|
|
|
// }, |
|
|
|
{ type: "filterSelect", label: "目标库位", prop: "locationCode", optionsLabel: "name", optionsValue: "code", |
|
|
|
focus: (type,val) => { return this.getFilterList(type, val, "basedata/Location",false,1000)}, |
|
|
|
// searchButton: (val) => { this.showSerarchPage(val, 'basedata/Location', 'InventoryBalance', '库位选择', this.addPopData_HB) }, |
|
|
@ -495,7 +495,7 @@ export default { |
|
|
|
.then(item=>{ |
|
|
|
this.Loading.appMainLoading = false |
|
|
|
// 提示是否打印箱码,之后在清除数据 |
|
|
|
this.$confirm('提交成功, 是否需要打印箱标签?', '提示', { |
|
|
|
this.$confirm('提交成功, 是否需要打印混拌料箱标签?', '提示', { |
|
|
|
confirmButtonText: '打印', |
|
|
|
cancelButtonText: '关闭', |
|
|
|
type: 'warning' |
|
|
@ -514,7 +514,14 @@ export default { |
|
|
|
} |
|
|
|
_HBPack.packingCode = _HBPack.code |
|
|
|
_printData.details.push(_HBPack) |
|
|
|
let _data = initPrintPackingCodeData(_printData); |
|
|
|
// 前端反查配置,描述 |
|
|
|
_printData.details.forEach(item=>{ |
|
|
|
item.configuration = this.itemStagingLists[item.itemCode].configuration |
|
|
|
item.itemDesc1 = this.itemStagingLists[item.itemCode].desc1 |
|
|
|
}) |
|
|
|
console.log(521,_printData) |
|
|
|
let _data = initPrintPackingCodeData(_printData,null,'xiangbq_hsl.rdlx'); |
|
|
|
console.log(523,_data) |
|
|
|
this.Loading.appMainLoading = true |
|
|
|
this.Print(_data) |
|
|
|
.then(data=>{ |
|
|
@ -560,10 +567,10 @@ export default { |
|
|
|
let _item = this.needNewPackingList[index] |
|
|
|
let _item_info = this.itemStagingLists[_item.itemCode] |
|
|
|
let _location_info = this.locationStagingLists[_item.locationCode] |
|
|
|
let _supplieritem_name = _item.supplierCode + '_' + _item.itemCode |
|
|
|
let _supplieritem_info = this.supplierItemStagingLists[_supplieritem_name] |
|
|
|
let _supplier_only_info = this.supplierOnlyStagingLists[_item.supplierCode] |
|
|
|
let _asn_info = this.asnStagingLists[_item.poNumber] |
|
|
|
// let _supplieritem_name = _item.supplierCode + '_' + _item.itemCode |
|
|
|
// let _supplieritem_info = this.supplierItemStagingLists[_supplieritem_name] |
|
|
|
// let _supplier_only_info = this.supplierOnlyStagingLists[_item.supplierCode] |
|
|
|
// let _asn_info = this.asnStagingLists[_item.poNumber] |
|
|
|
let _creatPackData = { |
|
|
|
itemCode: _item_info.code || null, |
|
|
|
itemName: _item_info.name || null, |
|
|
@ -582,8 +589,10 @@ export default { |
|
|
|
containerCode: null, |
|
|
|
supplierCode: _item.supplierCode, |
|
|
|
poNumber: _item.poNumber, |
|
|
|
rpNumber: _asn_info.rpNumber, |
|
|
|
asnNumber: _asn_info.number, |
|
|
|
// rpNumber: _asn_info.rpNumber, |
|
|
|
// asnNumber: _asn_info.number, |
|
|
|
rpNumber: null, |
|
|
|
asnNumber: null, |
|
|
|
qLevel: _item_info.elevel || null, |
|
|
|
qualityFile: null, |
|
|
|
prodLine: null, |
|
|
@ -592,10 +601,14 @@ export default { |
|
|
|
specifications: null, |
|
|
|
supplierBatch: null, |
|
|
|
supplierName: null, |
|
|
|
supplierSimpleName: _supplier_only_info.shortName, |
|
|
|
supplierItemCode: _supplieritem_info.supplierItemCode, |
|
|
|
supplierItemName: _supplieritem_info.itemName, |
|
|
|
labelType: 1,//采购标签 |
|
|
|
// supplierSimpleName: _supplier_only_info.shortName, |
|
|
|
// supplierItemCode: _supplieritem_info.supplierItemCode, |
|
|
|
// supplierItemName: _supplieritem_info.itemName, |
|
|
|
supplierSimpleName: null, |
|
|
|
supplierItemCode: null, |
|
|
|
supplierItemName: null, |
|
|
|
// labelType: 1,//采购标签 |
|
|
|
labelType: 2,//生成标签 |
|
|
|
planArriveDate: "9999-12-31", |
|
|
|
remark:null, |
|
|
|
} |
|
|
@ -612,7 +625,7 @@ export default { |
|
|
|
// 验证【粉碎料】信息是否填全 |
|
|
|
let _err_FS=0 |
|
|
|
this.addPopData_FS.forEach(item=>{ |
|
|
|
if(!item.itemCode || Number(item.qty <= 0) || !item.locationCode || !item.supplierCode || !item.poNumber){ |
|
|
|
if(!item.itemCode || Number(item.qty <= 0) || !item.locationCode){ |
|
|
|
_err_FS++ |
|
|
|
} |
|
|
|
}) |
|
|
@ -645,7 +658,7 @@ export default { |
|
|
|
// 验证【混拌料】信息是否填全 |
|
|
|
let _err_HB=0 |
|
|
|
this.addPopData_HB.forEach(item=>{ |
|
|
|
if(!item.itemCode || Number(item.qty <= 0) || !item.locationCode || !item.supplierCode || !item.poNumber){ |
|
|
|
if(!item.itemCode || Number(item.qty <= 0) || !item.locationCode){ |
|
|
|
_err_HB++ |
|
|
|
} |
|
|
|
}) |
|
|
|