Browse Source

备料计划导入功能

hella_online_20240829
TengXF 5 months ago
parent
commit
2c1c72b089
  1. 11
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

11
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -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>
<script setup lang="ts">
@ -197,7 +198,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
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.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
@ -357,7 +358,7 @@ const openForm =async (type: string, row?: number) => {
if (type == 'update') {
// tableform
PreparetoissueMain.allSchemas.formSchema.map(item => {
if(item.field == 'productionPlanNumber' ||
if(item.field == 'productionPlanNumber' ||
item.field == 'workshop' ||
item.field == 'prodLine' ||
item.field == 'shift' ||
@ -370,7 +371,7 @@ const openForm =async (type: string, row?: number) => {
} else {
// tableform
PreparetoissueMain.allSchemas.formSchema.map(item => {
if(item.field == 'productionPlanNumber' ||
if(item.field == 'productionPlanNumber' ||
item.field == 'workshop' ||
item.field == 'prodLine' ||
item.field == 'shift' ||
@ -520,6 +521,6 @@ const resetShow = async () => {
/** 初始化 **/
onMounted(async () => {
getList()
// importTemplateData.templateUrl = await PreparetoissueMainApi.importTemplate()
importTemplateData.templateUrl = await PreparetoissueMainApi.importTemplate()
})
</script>

Loading…
Cancel
Save