Browse Source

清空问题修复

master_hella_20240701
yufei0306 6 months ago
parent
commit
8ce306b63f
  1. 80
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

80
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -208,49 +208,51 @@ const searchTableSuccessLabel = (formField, searchField, val, formRef, type, row
// //
const searchTableSuccess = async(formField, searchField, val, formRef, type, row) => { const searchTableSuccess = async(formField, searchField, val, formRef, type, row) => {
console.log('searchTableSuccess',)
nextTick(async () => { console.log('searchTableSuccess',formField, searchField, val, formRef, type, row)
nextTick( async () => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
row['supplierCode'] = val[0]['supplierCode'] if(formField=='purchaseReceiptRecordNumber'){
row['poNumber'] = val[0]['poNumber'] row['supplierCode'] = val[0]['supplierCode']
row['poLine'] = val[0]['poLine'] row['poNumber'] = val[0]['poNumber']
row['itemCode'] = val[0]['itemCode'] row['poLine'] = val[0]['poLine']
row['itemName'] = val[0]['itemName'] row['itemCode'] = val[0]['itemCode']
row['itemDesc1'] = val[0]['itemDesc1'] row['itemName'] = val[0]['itemName']
row['itemDesc2'] = val[0]['itemDesc2'] row['itemDesc1'] = val[0]['itemDesc1']
row['batch'] = val[0]['batch'] row['itemDesc2'] = val[0]['itemDesc2']
row['altBatch'] = val[0]['altBatch'] row['batch'] = val[0]['batch']
row['containerNumber'] = val[0]['containerNumber'] row['altBatch'] = val[0]['altBatch']
row['qty'] = val[0]['qty'] row['containerNumber'] = val[0]['containerNumber']
row['uom'] = val[0]['uom'] row['qty'] = val[0]['qty']
row['supplierQty'] = val[0]['supplierQty'] row['uom'] = val[0]['uom']
row['supplierUom'] = val[0]['supplierUom'] row['supplierQty'] = val[0]['supplierQty']
row['inventoryStatus'] = val[0]['inventoryStatus'] row['supplierUom'] = val[0]['supplierUom']
// row['fromLocationCode'] = val[0]['toLocationCode'] row['inventoryStatus'] = val[0]['inventoryStatus']
row['toLocationCode'] = val[0]['toLocationCode'] // row['fromLocationCode'] = val[0]['toLocationCode']
row['fromLocationGroupCode'] = val[0]['locationGroupCode'] row['toLocationCode'] = val[0]['toLocationCode']
row['toLocationGroupCode'] = null row['fromLocationGroupCode'] = val[0]['locationGroupCode']
row['toWarehouseCode'] = null row['toLocationGroupCode'] = null
row['toAreaTypes'] = null row['toWarehouseCode'] = null
row['fromAreaCode'] = val[0]['areaCode'] row['toAreaTypes'] = null
row['toAreaCode'] = val[0]['toAreaCode'] row['fromAreaCode'] = val[0]['areaCode']
row['fromQwnerCode'] = val[0]['fromQwnerCode'] row['toAreaCode'] = val[0]['toAreaCode']
row['toOwnerCode'] = val[0]['toOwnerCode'] row['fromQwnerCode'] = val[0]['fromQwnerCode']
row['arriveDate'] = val[0]['arriveDate'] row['toOwnerCode'] = val[0]['toOwnerCode']
row['produceDate'] = val[0]['produceDate'] row['arriveDate'] = val[0]['arriveDate']
row['expireDate'] = val[0]['expireDate'] row['produceDate'] = val[0]['produceDate']
row['convertRate'] = val[0]['convertRate'] row['expireDate'] = val[0]['expireDate']
row['visualInspectResult'] = val[0]['visualInspectResult'] row['convertRate'] = val[0]['convertRate']
row['visualInspectPhotos'] = val[0]['visualInspectPhotos'] row['visualInspectResult'] = val[0]['visualInspectResult']
row['failedReason'] = val[0]['failedReason'] row['visualInspectPhotos'] = val[0]['visualInspectPhotos']
row['singlePrice'] = val[0]['singlePrice'] row['failedReason'] = val[0]['failedReason']
row['amount'] = val[0]['amount'] row['singlePrice'] = val[0]['singlePrice']
row['projectCode'] = val[0]['projectCode'] row['amount'] = val[0]['amount']
row['projectCode'] = val[0]['projectCode']
if(formField == 'itemCode'){ }else if(formField == 'itemCode'){
row['batch'] = val[0]['toBatch'] row['batch'] = val[0]['toBatch']
row['containerNumber'] = val[0]['toContainerNumber'] row['containerNumber'] = val[0]['toContainerNumber']
row['containerNumber'] = val[0]['containerNumber'] row['containerNumber'] = val[0]['containerNumber']

Loading…
Cancel
Save