Browse Source

WMS 需求:HL-5264 维修备件退库 导入导出

hella_online_20240821
gaojs 3 months ago
parent
commit
ca84ac3e84
  1. 6
      src/components/ImportForm/src/ImportForm.vue
  2. 4
      src/views/wms/inventoryjobManage/sparepartReturn/sparepartReturnRequestMain/index.vue

6
src/components/ImportForm/src/ImportForm.vue

@ -16,7 +16,8 @@
outFile +
'&extend=' + extend +
'&fromInventoryStatus=' + fromInventoryStatus +
'&toInventoryStatus=' + toInventoryStatus
'&toInventoryStatus=' + toInventoryStatus +
dataType
"
:auto-upload="false"
:disabled="formLoading"
@ -229,6 +230,9 @@ const props = defineProps({
}
})
const importTemplateData = ref(props.importTemplateData)
console.log(333,props.importTemplateData.dataType)
const dataType = ref('')
dataType.value = props.importTemplateData.dataType ?'&dataType=' + props.importTemplateData.dataType :''
const accept = ref(props.accept)
const mode = ref(props.mode) //.1
const updateIsDisable = ref(props.updateIsDisable) //,

4
src/views/wms/inventoryjobManage/sparepartReturn/sparepartReturnRequestMain/index.vue

@ -90,7 +90,7 @@
/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/unplannedreceipt-request-main/import" :importTemplateData="importTemplateData"
<ImportForm ref="importFormRef" url="/wms/unplannedreceipt-request-main/import" :importTemplateData="importTemplateData"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" />
</template>
@ -615,6 +615,7 @@ const handleImport = () => {
//
const importTemplateData = reactive({
dataType:'2',
templateUrl: '',
templateTitle: `${route.meta.title}】导入模版.xlsx`
})
@ -692,5 +693,6 @@ const tableFormSelectOnBlur = (field, val, row, index) => {
onMounted(async () => {
getList()
importTemplateData.templateUrl = await UnplannedreceiptRequestMainApi.importTemplate()
console.log(344,importTemplateData)
})
</script>

Loading…
Cancel
Save