|
|
@ -84,6 +84,7 @@ import * as PurchasereturnRequestMainApi from '@/api/wms/purchasereturnRequestMa |
|
|
|
import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail' |
|
|
|
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { Console } from 'console' |
|
|
|
|
|
|
|
// 采购退货申请 |
|
|
|
defineOptions({ name: 'PurchasereturnRequestMain' }) |
|
|
@ -106,25 +107,26 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
nextTick(() => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
console.log(row['batch']) |
|
|
|
console.log(val[0]['toBatch']) |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
setV['purchaseReceiptRecordNumber'] = val[0]['number'] |
|
|
|
setV['supplierCode'] = val[0]['supplierCode'] |
|
|
|
|
|
|
|
// 获取子表数据 getBomDisassemble |
|
|
|
PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailList({ |
|
|
|
masterId: val[0]['id']}).then(res => { |
|
|
|
if (res) tableData.value = res |
|
|
|
if (res) tableData.value = res; |
|
|
|
console.log(PurchasereturnRequestDetail.allSchemas.tableFormColumns) |
|
|
|
|
|
|
|
tableData.value.forEach(item=>{ |
|
|
|
item.batch = item.toBatch |
|
|
|
item.packingNumber = item.toPackingNumber |
|
|
|
item.containerNumber = item.toContainerNumber |
|
|
|
}) |
|
|
|
PurchasereturnRequestDetail.allSchemas.tableFormColumns.map(item => { |
|
|
|
// if(item.field == 'qty') { |
|
|
|
// item.tableForm.disabled = false |
|
|
|
// tableData.value.forEach(cur=>{ |
|
|
|
// item.tableForm.max = cur['qty'] |
|
|
|
// }) |
|
|
|
// } |
|
|
|
if(item.field == 'remark') { |
|
|
|
item.tableForm.disabled = false |
|
|
|
} |
|
|
|