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