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