|
@ -134,7 +134,8 @@ import { |
|
|
} from '../../supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data' |
|
|
} from '../../supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data' |
|
|
import * as PackageApi from '@/api/wms/package' |
|
|
import * as PackageApi from '@/api/wms/package' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
|
|
|
import { async } from '@antv/x6/lib/registry/marker/async' |
|
|
// 采购退货申请 |
|
|
// 采购退货申请 |
|
|
defineOptions({ name: 'PurchasereturnRequestMain' }) |
|
|
defineOptions({ name: 'PurchasereturnRequestMain' }) |
|
|
|
|
|
|
|
@ -206,8 +207,10 @@ const searchTableSuccessLabel = (formField, searchField, val, formRef, type, row |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
const searchTableSuccess = async(formField, searchField, val, formRef, type, row) => { |
|
|
nextTick(() => { |
|
|
console.log('searchTableSuccess',) |
|
|
|
|
|
|
|
|
|
|
|
nextTick(async () => { |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
// 明细查询页赋值 |
|
|
// 明细查询页赋值 |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
@ -254,6 +257,15 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
row['containerNumber'] = val[0]['containerNumber'] |
|
|
row['containerNumber'] = val[0]['containerNumber'] |
|
|
// row['fromLocationCode'] = val[0]['fromLocationCode'] |
|
|
// row['fromLocationCode'] = val[0]['fromLocationCode'] |
|
|
row['toLocationCode'] = val[0]['toLocationCode'] |
|
|
row['toLocationCode'] = val[0]['toLocationCode'] |
|
|
|
|
|
}else if(formField=='fromLocationCode'){ |
|
|
|
|
|
let params = { |
|
|
|
|
|
itemCode: row.itemCode, |
|
|
|
|
|
batch: row.batch, |
|
|
|
|
|
locationCode:val.code |
|
|
|
|
|
} |
|
|
|
|
|
let aa = await BalanceApi.getSumByConditions(params); |
|
|
|
|
|
console.log('23423423',aa); |
|
|
|
|
|
row['inventoryBalance'] = aa//库存余额 |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
const setV = {} |
|
|
const setV = {} |
|
|