|
|
@ -127,7 +127,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
nextTick(() => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
console.log(val[0]) |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
row['poNumber'] = val[0]['poNumber'] |
|
|
|
row['poLine'] = val[0]['poLine'] |
|
|
@ -174,7 +173,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
if (res) tableData.value = res |
|
|
|
console.log(PurchasereturnRequestDetail.allSchemas.tableFormColumns) |
|
|
|
tableData.value.forEach((item) => { |
|
|
|
item.batch = item.toBatch |
|
|
|
item.packingNumber = item.toPackingNumber |
|
|
@ -451,7 +449,6 @@ const handleAddTable = () => { |
|
|
|
// 删除明细 |
|
|
|
const handleDeleteTable = (item, index,formRef) => { |
|
|
|
tableData.value.splice(index, 1) |
|
|
|
console.log(item) |
|
|
|
if (tableData.value.length == 0) { |
|
|
|
isShowButton.value = true |
|
|
|
nextTick(() => { |
|
|
@ -468,6 +465,7 @@ const handleDeleteTable = (item, index,formRef) => { |
|
|
|
|
|
|
|
// 主子数据 提交 |
|
|
|
const submitForm = async (formType, data) => { |
|
|
|
console.log(formType) |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|