|
@ -77,7 +77,8 @@ |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
|
<ImportForm ref="importFormRef" url="/wms/preparetoissue-main/import" :importTemplateData="importTemplateData" @success="importSuccess" /> |
|
|
<ImportForm ref="importFormRef" url="/wms/preparetoissue-main/import" :importTemplateData="importTemplateData" |
|
|
|
|
|
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" /> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
@ -197,7 +198,7 @@ const { getList, setSearchParams } = tableMethods |
|
|
// 列表头部按钮 |
|
|
// 列表头部按钮 |
|
|
const HeadButttondata = [ |
|
|
const HeadButttondata = [ |
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:preparetoissue-main:create'}), // 新增 |
|
|
defaultButtons.defaultAddBtn({hasPermi:'wms:preparetoissue-main:create'}), // 新增 |
|
|
// defaultButtons.defaultImportBtn({hasPermi:'wms:preparetoissue-main:import'}), // 导入 |
|
|
defaultButtons.defaultImportBtn({hasPermi:'wms:preparetoissue-main:import'}), // 导入 |
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:preparetoissue-main:export'}), // 导出 |
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:preparetoissue-main:export'}), // 导出 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
@ -357,7 +358,7 @@ const openForm =async (type: string, row?: number) => { |
|
|
if (type == 'update') { |
|
|
if (type == 'update') { |
|
|
// 修改 tableform 属性 |
|
|
// 修改 tableform 属性 |
|
|
PreparetoissueMain.allSchemas.formSchema.map(item => { |
|
|
PreparetoissueMain.allSchemas.formSchema.map(item => { |
|
|
if(item.field == 'productionPlanNumber' || |
|
|
if(item.field == 'productionPlanNumber' || |
|
|
item.field == 'workshop' || |
|
|
item.field == 'workshop' || |
|
|
item.field == 'prodLine' || |
|
|
item.field == 'prodLine' || |
|
|
item.field == 'shift' || |
|
|
item.field == 'shift' || |
|
@ -370,7 +371,7 @@ const openForm =async (type: string, row?: number) => { |
|
|
} else { |
|
|
} else { |
|
|
// 修改 tableform 属性 |
|
|
// 修改 tableform 属性 |
|
|
PreparetoissueMain.allSchemas.formSchema.map(item => { |
|
|
PreparetoissueMain.allSchemas.formSchema.map(item => { |
|
|
if(item.field == 'productionPlanNumber' || |
|
|
if(item.field == 'productionPlanNumber' || |
|
|
item.field == 'workshop' || |
|
|
item.field == 'workshop' || |
|
|
item.field == 'prodLine' || |
|
|
item.field == 'prodLine' || |
|
|
item.field == 'shift' || |
|
|
item.field == 'shift' || |
|
@ -520,6 +521,6 @@ const resetShow = async () => { |
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
getList() |
|
|
getList() |
|
|
// importTemplateData.templateUrl = await PreparetoissueMainApi.importTemplate() |
|
|
importTemplateData.templateUrl = await PreparetoissueMainApi.importTemplate() |
|
|
}) |
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|