|
@ -31,9 +31,9 @@ |
|
|
v-model:currentPage="tableObject.currentPage" |
|
|
v-model:currentPage="tableObject.currentPage" |
|
|
v-model:sort="tableObject.sort" |
|
|
v-model:sort="tableObject.sort" |
|
|
> |
|
|
> |
|
|
<template #code="{ row }"> |
|
|
<template #itemNumber="{ row }"> |
|
|
<el-button type="primary" link @click="openDetail(row, '代码', row.code)"> |
|
|
<el-button type="primary" link @click="openDetail(row, '代码', row.itemNumber)"> |
|
|
<span>{{ row.code }}</span> |
|
|
<span>{{ row.itemNumber }}</span> |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
|
<template #action="{ row }"> |
|
|
<template #action="{ row }"> |
|
@ -42,13 +42,6 @@ |
|
|
@button-base-click="buttonTableClick($event, row)" |
|
|
@button-base-click="buttonTableClick($event, row)" |
|
|
/> |
|
|
/> |
|
|
</template> |
|
|
</template> |
|
|
<!-- <template #upload="{ row }"> |
|
|
|
|
|
<ButtonBase |
|
|
|
|
|
v-if="row.filePathList != null && row.filePathList.length != 0" |
|
|
|
|
|
:Butttondata="butttondataView(row)" |
|
|
|
|
|
@button-base-click="buttonTableClick($event, row)" |
|
|
|
|
|
/> |
|
|
|
|
|
</template> --> |
|
|
|
|
|
</Table> |
|
|
</Table> |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
|
|
|
|
|
@ -67,7 +60,20 @@ |
|
|
<SearchTable ref="searchTableRef" @searchTableSuccess="submitItem" /> |
|
|
<SearchTable ref="searchTableRef" @searchTableSuccess="submitItem" /> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="ItemAccounts.allSchemas" /> |
|
|
<DetailLedger |
|
|
|
|
|
ref="detailRef" |
|
|
|
|
|
:isBasic="true" |
|
|
|
|
|
:allSchemas="ItemAccounts.allSchemas" |
|
|
|
|
|
:subTabs="subTabList" |
|
|
|
|
|
:operationRecordList="operationRecordList" |
|
|
|
|
|
@handleOperationTabsChange="handleOperationTabsChange" |
|
|
|
|
|
:detailAllSchemas="detailAllSchemas" |
|
|
|
|
|
:apiPage="apiPage" |
|
|
|
|
|
:dialogApiPage="dialogApiPage" |
|
|
|
|
|
:dialogAllSchemas="dialogAllSchemas" |
|
|
|
|
|
:dynamicInfoFields="dynamicInfoFields" |
|
|
|
|
|
funcCode="tool_mould_file" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
|
<ImportForm |
|
|
<ImportForm |
|
@ -309,6 +315,20 @@ const openForm = (type: string, row?: any) => { |
|
|
urls.value = row.filePathList |
|
|
urls.value = row.filePathList |
|
|
viewKey.value += 1 |
|
|
viewKey.value += 1 |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
if (type == 'create') { |
|
|
|
|
|
ItemAccounts.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'qty') { |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (type == 'update') { |
|
|
|
|
|
ItemAccounts.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'qty') { |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -340,7 +360,7 @@ const formsSuccess = async (formType, data) => { |
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'basicItemAccounts') |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'ItemAccounts') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
/** 删除按钮操作 */ |
|
|