|
@ -143,9 +143,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
row['supplierQty'] = val[0]['supplierQty'] |
|
|
row['supplierQty'] = val[0]['supplierQty'] |
|
|
row['supplierUom'] = val[0]['supplierUom'] |
|
|
row['supplierUom'] = val[0]['supplierUom'] |
|
|
row['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
row['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
row['fromLocationCode'] = val[0]['fromLocationCode'] |
|
|
row['fromLocationCode'] = val[0]['locationCode'] |
|
|
row['toLocationCode'] = null |
|
|
row['toLocationCode'] = null |
|
|
row['fromLocationGroupCode'] = val[0]['fromLocationGroupCode'] |
|
|
row['fromLocationGroupCode'] = val[0]['locationGroupCode'] |
|
|
row['toLocationGroupCode'] = null |
|
|
row['toLocationGroupCode'] = null |
|
|
row['toWarehouseCode'] = null |
|
|
row['toWarehouseCode'] = null |
|
|
row['toLocationTypes'] = null |
|
|
row['toLocationTypes'] = null |
|
@ -183,8 +183,17 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
item.toWarehouseCode = null |
|
|
item.toWarehouseCode = null |
|
|
item.toLocationTypes = null |
|
|
item.toLocationTypes = null |
|
|
item.toLocationCode = null |
|
|
item.toLocationCode = null |
|
|
|
|
|
// item.fromLocationCode = item.fromLocationCode |
|
|
|
|
|
// item.fromLocationGroupCode = item.fromLocationGroupCode |
|
|
}) |
|
|
}) |
|
|
isShowButton.value = false |
|
|
isShowButton.value = false |
|
|
|
|
|
console.log('formSchema', PurchasereturnRequestMain.allSchemas.formSchema) |
|
|
|
|
|
|
|
|
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'supplierCode') { |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
PurchasereturnRequestDetail.allSchemas.tableFormColumns.map((item) => { |
|
|
PurchasereturnRequestDetail.allSchemas.tableFormColumns.map((item) => { |
|
|
item.tableForm.disabled = true |
|
|
item.tableForm.disabled = true |
|
|
if (item.field == 'remark') { |
|
|
if (item.field == 'remark') { |
|
@ -337,6 +346,11 @@ const formRef = ref() |
|
|
const openForm = async (type: string, row?: number) => { |
|
|
const openForm = async (type: string, row?: number) => { |
|
|
tableData.value = [] // 重置明细数据 |
|
|
tableData.value = [] // 重置明细数据 |
|
|
isShowButton.value = true |
|
|
isShowButton.value = true |
|
|
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'supplierCode') { |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -451,12 +465,16 @@ const handleAddTable = () => { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
// 删除明细 |
|
|
// 删除明细 |
|
|
const handleDeleteTable = (item, index,formRef) => { |
|
|
const handleDeleteTable = (item, index, formRef) => { |
|
|
tableData.value.splice(index, 1) |
|
|
tableData.value.splice(index, 1) |
|
|
if (tableData.value.length == 0) { |
|
|
if (tableData.value.length == 0) { |
|
|
isShowButton.value = true |
|
|
isShowButton.value = true |
|
|
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'supplierCode') { |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
|
|
|
|
|
|
const setV = {} |
|
|
const setV = {} |
|
|
|
|
|
|
|
|
setV['purchaseReceiptRecordNumber'] = '' |
|
|
setV['purchaseReceiptRecordNumber'] = '' |
|
@ -464,7 +482,6 @@ const handleDeleteTable = (item, index,formRef) => { |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 主子数据 提交 |
|
|
// 主子数据 提交 |
|
|